Template:ID to Character: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(Created page with "<includeonly>{{#invoke:CargoQuery |main |tables=Characters=C, GeneralData=GD, PhysicalProperties=P |join on=C.JoinKey=GD.JoinKey,C.JoinKey=P.JoinKey |where=GD.PlainName LIKE {...")
 
mNo edit summary
Line 3: Line 3:
|tables=Characters=C, GeneralData=GD, PhysicalProperties=P
|tables=Characters=C, GeneralData=GD, PhysicalProperties=P
|join on=C.JoinKey=GD.JoinKey,C.JoinKey=P.JoinKey
|join on=C.JoinKey=GD.JoinKey,C.JoinKey=P.JoinKey
|where=GD.PlainName LIKE {{{1}}}
|where=GD.PlainName LIKE "{{{1}}}"
|fields = C.Level=lv, C.HP=hp, C.AV=av, C.DV=dv, C.MA=ma, C.MARange=marange, C.Strength=strength, C.StrengthMult=strengthmult, C.Agility=agility, C.AgilityMult=agilitymult, C.Intelligence=intelligence, C.IntelligenceMult=intelligencemult, C.Willpower=willpower, C.WillpowerMult=willpowermult, C.Ego=ego, C.EgoMult=egomult, C.XPValue=xpvalue, C.XPTier=xptier, GD.Description=desc, C.Corpse=corpse, C.CorpseChance=corpsechance, C.MoveSpeed=movespeed, C.Demeanor=demeanor, C.Skills=skills, C.Quickness=quickness, C.HarvestedInto=harvestedinto, C.Role=role, GD.DisplayName=title, GD.Image=image, GD.DisplayChar=renderstr, GD.Weight=weight, GD.Tier=tier, GD.Categories=categories, GD.ParentObject=inheritingfrom, P.AcidResist=acid, P.ElectricResist=electric, P.ColdResist=coldresist, P.HeatResist=heat, P.LightRadius=light, P.Seeping=seeping, P.Inhaled=inhaled, P.Volume=maxvol, P.LiquidGenType=liquidgentype, P.LiquidGenRate=liquidgenrate
|fields = C.Level=lv, C.HP=hp, C.AV=av, C.DV=dv, C.MA=ma, C.MARange=marange, C.Strength=strength, C.StrengthMult=strengthmult, C.Agility=agility, C.AgilityMult=agilitymult, C.Intelligence=intelligence, C.IntelligenceMult=intelligencemult, C.Willpower=willpower, C.WillpowerMult=willpowermult, C.Ego=ego, C.EgoMult=egomult, C.XPValue=xpvalue, C.XPTier=xptier, GD.Description=desc, C.Corpse=corpse, C.CorpseChance=corpsechance, C.MoveSpeed=movespeed, C.Demeanor=demeanor, C.Skills=skills, C.Quickness=quickness, C.HarvestedInto=harvestedinto, C.Role=role, GD.DisplayName=title, GD.Image=image, GD.DisplayChar=renderstr, GD.Weight=weight, GD.Tier=tier, GD.Categories=categories, GD.ParentObject=inheritingfrom, P.AcidResist=acid, P.ElectricResist=electric, P.ColdResist=coldresist, P.HeatResist=heat, P.LightRadius=light, P.Seeping=seeping, P.Inhaled=inhaled, P.Volume=maxvol, P.LiquidGenType=liquidgentype, P.LiquidGenRate=liquidgenrate
|template=Character nostore
|template=Character nostore

Revision as of 06:12, 25 August 2022

Takes a pattern (yeah, misnomer, it's late and I'll fix it later) and returns most of a character infobox/namebox for that ID. Usage:

{{ID to Character|Jotun%}}

Output:

Jotun, Who Parts Limbs
Jotun who parts limbs.png
Character

T

Demeanor

neutral

Skills
Skills
Corpse Dropped

troll corpse (90%)

Experience?The XP granted when killed. Click
"toggle detailed stats" above for
a level-based breakdown.

1700 XP

XP Tier

3

Role

Hero

Jotun, Who Parts Limbs

A hoary humanoid slumps beneath the weight of his broad and cragged back. Soaking fibers of inky, unkempt hair enswathe the great pale shoulder-rocks, and crossed over his wide chest are two carbide axes rotting with rust. Rumpled lids lay half-shut over the discs of his sluggish eyes, glazed in the respite of a convalessence bath.

Perfect