Template:ID to Character: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
<includeonly>{{#invoke:CargoQuery
<includeonly>{{#invoke:CargoQuery
|main
|main
|tables=Characters=C, GeneralData=GD, PhysicalProperties=P
|tables=Characters=C, GeneralData=GD, PhysicalProperties=P, FurnitureData=F
|join on=C.JoinKey=GD.JoinKey,C.JoinKey=P.JoinKey
|join on=C.JoinKey=GD.JoinKey,C.JoinKey=P.JoinKey,C.JoinKey=F.JoinKey
|where=GD.PlainName LIKE "{{{1}}}"
|where=GD.ObjectID="{{{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, F.ChairLevel=chairlevel
|template=Character nostore
|template=Character nostore
|order by= GD.PlainName ASC
|order by= GD.PlainName ASC
}}</includeonly><noinclude>
}}</includeonly><noinclude>
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, using [[Template:Character nostore]]. Notably missing character mutations, which don't seem to get stored anywhere really. Usage: <pre>{{ID to Character|Jotun%}}</pre>
Takes an object ID and returns most of a character infobox/namebox for that ID, using [[Template:Character nostore]]. Notably missing character mutations, faction relationships, inventory contents, and extra info, which have their own templates for storage and thus can't be directly fed into Character. Usage: <pre>{{ID to Character|Troll King 1}}</pre>


Output:
Output:
{{ID to Character|Jotun%}}
{{ID to Character|Troll King 1}}

Latest revision as of 06:25, 25 August 2022

Takes an object ID and returns most of a character infobox/namebox for that ID, using Template:Character nostore. Notably missing character mutations, faction relationships, inventory contents, and extra info, which have their own templates for storage and thus can't be directly fed into Character. Usage:

{{ID to Character|Troll King 1}}

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