Template:Character: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(did it properly)
(store throwability in cargo)
 
(152 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly><!--
[[Category:Characters]]
 
{{#invoke:infobox|infobox
  Article Variable definitions for convenience
| rows =
 
{{#if: {{{faction|}}} | {{infobox row|label=Faction|field={{{faction}}} }} }}
-->{{#vardefine:name|{{{title|{{PAGENAME}}}}}}}<!--
{{#if: {{{level|}}}  | {{infobox row|Level|{{{level}}} }} }}
-->{{#vardefine:plainname|{{#titleparts:{{PAGENAME}}}}}}<!--
{{#if: {{{hp|}}}      | {{infobox row|HP|{{{hp}}} }} }}
-->{{#vardefine:dynamicstats|{{#pos: {{{strength|}}}{{{agility|}}}{{{toughness|}}}{{{intelligence|}}}{{{willpower|}}}{{{ego|}}} | d }}}}<!--
{{#if: {{{av|}}}      | {{infobox row|AV|{{{av}}} }} }}
-->{{#vardefine:needsdetailedstats|{{#ifexpr: {{formatnum:{{#if:{{#var:dynamicstats}}|1|0}}}} > 0 or {{formatnum:{{{xpvalue|0}}}|R}} > 0|yes|no}}}}<!--
{{#if: {{{dv|}}}      | {{infobox row|DV|{{{dv}}} }} }}
-->{{#vardefine:id|{{{wikiidoverride|{{{id|}}}}}} }}</includeonly><!--
{{#if: {{{ma|}}}      | {{infobox row|MA|{{{ma}}} }} }}
 
<!--Makes the attributes box show up if *any* of the attributes are filled out-->
  Cargo Declare
{{#if: {{{strength|}}}{{{agility|}}}{{{toughness|}}}{{{intelligence|}}}{{{willpower|}}}{{{ego|}}} |
 
{{infobox row|Attributes|
--><noinclude>[[Category:Cargo Store Templates]]
{{#if: {{{strength|}}}     | <p style="color:#FFFFFF">   {{{strength}}} Strength}}
{{#cargo_declare:_table=Characters
{{#if: {{{agility|}}}      | <p style="color:#CFC041">  {{{agility}}} Agility}}
|Level=Integer
{{#if: {{{toughness|}}}    | <p style="color:#D74200">    {{{toughness}}} Toughness}}
|HP=Integer
{{#if: {{{intelligence|}}} | <p style="color:rgb(51,102,255)">    {{{intelligence}}} Intelligence}}
|AV=Integer
{{#if: {{{willpower|}}}    | <p style="color:#00C420">    {{{willpower}}} Willpower}}
|DV=Integer
{{#if: {{{ego|}}}          | <p style="color:#DA5BD6"> {{{ego}}} Ego}} }} }}
|MA=Integer|MARange=String
<!--Makes the resistances box show up if *any* of the resistances are filled out-->
|Strength=String|Agility=String|Toughness=String
{{#if: {{{acid|}}}{{{electric|}}}{{{cold|}}}{{{heat|}}} |
|Intelligence=String|Willpower=String|Ego=String
{{infobox row|Resistance|
|StrengthMult=Float|AgilityMult=Float|ToughnessMult=Float
{{#if: {{{acid|}}}    | <p style="color:#00C420">  {{{acid}}} Acid</p>}}
|IntelligenceMult=Float|WillpowerMult=Float|EgoMult=Float
{{#if: {{{electric|}}} | <p style="color:#CFC041"> {{{electric}}} Electric</p>}}
|XPValue=Integer
{{#if: {{{cold|}}}    | <p style="color:#0096FF">  {{{cold}}} Cold</p>}}
|XPTier=Integer
{{#if: {{{heat|}}}    | <p style="color:#D74200">    {{{heat}}} Heat</p>}} }} }}
|Gender=String
|Pronouns=String
|Description=Wikitext
|Corpse=String
|CorpseChance=Integer
|MoveSpeed=Integer
|Demeanor=String (allowed values=docile,aggressive,neutral)
|Skills=List (</br>) of Page
|Quickness=Integer
|HarvestedInto=Page
|Role=String
|JoinKey=String
|ObjectID=String}}
 
{{#cargo_attach:
_table = GeneralData
}}
}}
{{#if: {{{desc|}}} | {{Quote | {{{desc}}} }} }}
 
</includeonly>
</noinclude><!--
<noinclude>
 
[[Category:Templates]]
  Cargo Store
</noinclude>
 
{{doc}}
--><includeonly>{{#cargo_store:_table=Characters
|Level={{{lv|}}}
|HP={{{hp|}}}
|AV={{{av|}}}
|DV={{{dv|}}}
|MA={{{ma|}}}
|MARange={{{marange|}}}
|Strength={{{strength|}}}
|StrengthMult={{{strengthmult|}}}
|Agility={{{agility|}}}
|AgilityMult={{{agilitymult|}}}
|Toughness={{{toughness|}}}
|ToughnessMult={{{toughnessmult|}}}
|Intelligence={{{intelligence|}}}
|IntelligenceMult={{{intelligencemult|}}}
|Willpower={{{willpower|}}}
|WillpowerMult={{{willpowermult|}}}
|Ego={{{ego|}}}
|EgoMult={{{egomult|}}}
|XPValue={{{xpvalue|}}}|XPTier={{{xptier|}}}
|Gender={{{gender|}}}|Pronouns={{{pronouns|}}}
|Description={{{desc|}}}
|Corpse={{{corpse|}}}|CorpseChance={{{corpsechance|0}}}
|MoveSpeed={{{movespeed|100}}}
|Demeanor={{{demeanor|neutral}}}
|Skills={{{skills|}}}
|Mutations={{{mutations|}}}
|Quickness={{{quickness|100}}}
|HarvestedInto={{{harvestedinto|}}}
|Role={{{role|}}}
|JoinKey={{FULLPAGENAME}}
|ObjectID={{{wikiidoverride|{{{id|}}}}}} }}<!--
 
  General Data Cargo Store
 
-->{{#cargo_store:_table=GeneralData
|ObjectID={{{wikiidoverride|{{{id|}}}}}}
|DisplayName={{{title|{{PAGENAME}}}}}
|Image={{#ifeq: {{{image|}}} | none ||{{{image|}}}}}
|PlainName={{StripFormatting|1={{{title|{{#titleparts:{{PAGENAME}}}} }}} }}
|DisplayChar={{qud char|{{{colorstr|}}}|{{{renderstr|}}}}}
|Weight={{{weight|}}}
|Tier={{{tier|}}}
|Categories={{{categories|}}}
|ParentObject={{{inheritingfrom|}}}
|Aliases={{#var:aliases|}}
|IDAliases={{#var:idaliases|}}
|JoinKey={{FULLPAGENAME}}
|Description={{grammar|text={{{desc}}}|gender={{{gender|nonspecific}}}|pronouns={{{pronouns|}}} }} }}<!--
 
  Artifact Data Cargo Storage:
 
-->{{#if: {{{complexity|}}}{{{bits|}}}{{{tinkertier|}}}{{{canbuild|}}}{{{candisassemble|}}}{{{chargeused|}}}{{{chargeperdram|}}}{{{maxcharge|}}}{{{mods|}}}{{{capacitorcharge|}}}{{{capacitormax|}}}{{{capacitorrate|}}}{{{chargeconsumebroadcast|}}}{{{chargeconsumeelectrical|}}}{{{chargeconsumehydraulic|}}}{{{chargeconsumemechanical|}}}{{{chargeproducebroadcast|}}}{{{chargeproduceelectric|}}}{{{chargeproducehydraulic|}}}{{{chargeproducemechanical|}}}{{{chargeproducesolar|}}}{{{unidentifiedimage|}}}{{{unidentifiedname|}}}{{{unidentifiedaltname|}}}|{{Artifact data store|complexity={{{complexity|}}}|bits={{{bits|}}}|tinkertier={{{tinkertier|}}}|canbuild={{{canbuild|}}}|candisassemble={{{candisassemble|}}}|chargeused={{{chargeused|}}}|chargeperdram={{{chargeperdram|}}}|maxcharge={{{maxcharge|}}}|mods={{{mods|}}}|modcount={{{modcount|}}}|capacitorcharge={{{capacitorcharge|}}}|capacitormax={{{capacitormax|}}}|capacitorrate={{{capacitorrate|}}}|chargeconsumebroadcast={{{chargeconsumebroadcast|}}}|chargeconsumeelectrical={{{chargeconsumeelectrical|}}}|chargeconsumehydraulic={{{chargeconsumehydraulic|}}}|chargeconsumemechanical={{{chargeconsumemechanical|}}}|chargeproducebroadcast={{{chargeproducebroadcast|}}}|chargeproduceelectric={{{chargeproduceelectric|}}}|chargeproducehydraulic={{{chargeproducehydraulic|}}}|chargeproducemechanical={{{chargeproducemechanical|}}}|chargeproducesolar={{{chargeproducesolar|}}}|unidentifiedimage={{{unidentifiedimage|}}}|unidentifiedname={{{unidentifiedname|}}}|unidentifiedaltname={{{unidentifiedaltname|}}}|id={{{id|}}}}}}}<!--
 
  Physical Properties Cargo Storage:
 
-->{{#if: {{{acid|}}}{{{electric|}}}{{{heat|}}}{{{cold|}}}{{{lightradius|}}}{{{seeping|}}}{{{inhaled|}}}{{{maxvol|}}}{{{liquidgentype|}}}{{{liquidgenrate|}}}|{{Physical_properties_data_store|acid={{{acid|}}}|electric={{{electric|}}}|heat={{{heat|}}}|cold={{{cold|}}}|lightradius={{{lightradius|}}}|throwable=|seeping={{{seeping|}}}|inhaled={{{inhaled|}}}|volume={{{maxvol|}}}|liquidgentype={{{liquidgentype|}}}|liquidgenrate={{{liquidgenrate|}}}}}}}<!--
 
  Modability Data Cargo Storage:
 
-->{{#if: {{{supportedmods|}}}|{{Modability_data_store|id={{{wikiidoverride|{{{id|}}}}}}|supportedmods={{{supportedmods}}}}}}}<!--
 
  Furniture Data Cargo Storage:
 
-->{{#if: {{{chairlevel|}}}|{{Furniture_data_store|chairlevel={{{chairlevel|}}}}}}}<!--
 
  Infobox Start
 
-->{{#invoke:infobox|infobox
| class = qud-character-infobox
| imagearea =
{{#if: {{{overrideimages|}}} | {{{overrideimages}}} |
  {{#switch: {{{image|none}}}
  | none = {{#if: {{{renderstr|}}} | <div class{{=}}"qud-displaychar-standin-for-image">{{Qud char|{{{colorstr|&amp;y}}}|{{{renderstr}}}}}</div> | }}
  | #default = {{#ifexist: File:{{{image|}}} |{{#if:{{{gif|}}}|{{infobox image and gif|{{{image}}}|{{{gif}}}|{{PAGENAME}}}}}}| {{#if: {{{renderstr|}}} | <div class{{=}}"qud-displaychar-standin-for-image">{{Qud char|{{{colorstr|&amp;y}}}|{{{renderstr}}}}}</div> | }} }}
  }}
}}
| rows =
<!----------------------------------------
 
      CORE STATS  (HP/AV/DV/Level)
 
----------------------------------------->
{{#if: {{#pos: {{{hp|~}}}{{{av|~}}}{{{dv|~}}} | ~ }}
| <!-- Don't create stat table if HP, AV, or DV are missing -->
|{{infobox row|class=qud-core-stats navigation-not-searchable|field=
{{Character/CoreStats | hp={{{hp}}}| av={{{av}}}| dv={{{dv}}}}}
}} <!-- end infobox row -->
}} <!-- end #if -->
{{#if: {{{lv|}}} | {{infobox row|class=qud-character-level navigation-not-searchable|field={{Character/Level | {{{lv}}} }} }} }}
<!----------------------------------------
 
      ATTRIBUTES
 
----------------------------------------->
{{infobox row|class=qud-attributes navigation-not-searchable|field=
<!----------------------------------------
          ATTRIBUTES (Desktop / Fullscreen)
----------------------------------------->
<div class="nomobile">
{{#ifeq: {{#var:needsdetailedstats}}|yes
| <!-- Only create the "toggle detailed stats" button if XP > 0 or there are variable stats. -->
<div class="qud-attributes-header-row">
<div class="qud-attributes-header-button mw-customtoggle-qud-basic-attributes mw-customtoggle-qud-detailed-attributes" title="Show full stat possibilities">toggle detailed stats</div>
</div>
<div class="mw-collapsible" id="mw-customcollapsible-qud-basic-attributes">
}} <!-- end #if -->
{{#if: {{{strength|}}}{{{agility|}}}{{{toughness|}}}{{{intelligence|}}}{{{willpower|}}}{{{ego|}}}
| <!-- Only create attributes block if at least one stat is specified -->
<div class="qud-attributes-wrapper">
<div class="qud-attributes-row">
<!-- The Character/Attributes template doesn't handle extra spaces very well, so there are none below -->
{{Character/Attribute|Strength|ST|{{{strength|}}}|Attributes|{{{strengthmult|1}}}|{{{strengthextrinsic|0}}}}}
{{Character/Attribute|Agility|AG|{{{agility|}}}|Attributes|{{{agilitymult|1}}}|{{{agilityextrinsic|0}}}}}
{{Character/Attribute|Quickness|QN|{{{quickness|100}}}|Quickness}}
</div>
<div class="qud-attributes-row">
{{Character/Attribute|Toughness|TO|{{{toughness|}}}|Attributes|{{{toughnessmult|1}}}|{{{toughnessextrinsic|0}}}}}
{{Character/Attribute|Willpower|WI|{{{willpower|}}}|Attributes|{{{willpowermult|1}}}|{{{willpowerextrinsic|0}}}}}
{{Character/Attribute|Movespeed|MS|{{{movespeed|100}}}|Movement Speed}}
</div>
<div class="qud-attributes-row">
{{Character/Attribute|Intelligence|IN|{{{intelligence|}}}|Attributes|{{{intelligencemult|1}}}|{{{intelligenceextrinsic|0}}}}}
{{Character/Attribute|Ego|EG|{{{ego|}}}|Attributes|{{{egomult|1}}}|{{{egoextrinsic|0}}}}}
{{Character/Attribute|Mental Armor|MA|{{{marange|{{{ma|}}}}}}|MA}}
</div>
</div>
{{#ifeq: {{#var:needsdetailedstats}}|yes|</div>}}
}} <!-- end #if -->
<!----------------------------------------
          DETAILED ATTRIBUTES (Desktop / Fullscreen)
----------------------------------------->
{{#ifeq: {{#var:needsdetailedstats}}|yes
| <!-- Only create the detailed stats block if there are variable stats. -->
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-qud-detailed-attributes" style="width:260px;">
<div class="mw-collapsible-content" style="display:none;">
<div class="qud-stat-details-wrapper">
{{ Character/DetailedAttributeHeader }}
{{#if: {{{strength|}}}    | {{ Character/DetailedAttribute | Strength    |{{{strength}}}|Attributes|{{{strengthmult|1}}}|{{{strengthextrinsic|0}}}}} | }}
{{#if: {{{agility|}}}      | {{ Character/DetailedAttribute | Agility    |{{{agility}}}|Attributes|{{{agilitymult|1}}}|{{{agilityextrinsic|0}}}}} | }}
{{#if: {{{toughness|}}}    | {{ Character/DetailedAttribute | Toughness  |{{{toughness}}}|Attributes|{{{toughnessmult|1}}}|{{{toughnessextrinsic|0}}}}} | }}
{{#if: {{{intelligence|}}} | {{ Character/DetailedAttribute | Intelligence|{{{intelligence}}}|Attributes|{{{intelligencemult|1}}}|{{{intelligenceextrinsic|0}}}}} | }}
{{#if: {{{willpower|}}}    | {{ Character/DetailedAttribute | Willpower  |{{{willpower}}}|Attributes|{{{willpowermult|1}}}|{{{willpowerextrinsic|0}}}}} | }}
{{#if: {{{ego|}}}          | {{ Character/DetailedAttribute | Ego        |{{{ego}}}|Attributes|{{{egomult|1}}}|{{{egoextrinsic|0}}}}} | }}
</div>
{{#if:{{{xpvalue|}}}|{{ Character/DetailedXP | xpvalue={{{xpvalue}}} | xptier={{{xptier}}} }}
}}
</div>
</div>
}} <!-- end #if -->
</div> <!-- end nomobile -->
<!----------------------------------------
          ATTRIBUTES (Mobile)
----------------------------------------->
<div class="mobileonly">
{{#ifeq: {{#var:needsdetailedstats}}|yes
| <!-- Only create the "toggle detailed stats" button if there are variable stats. -->
<div class="qud-attributes-header-row">
<div class="qud-attributes-header-button collapsetoggle-custom collapsible-qud-basic-attributes-toggle collapsible-qud-detailed-attributes-toggle" title="Show full stat possibilities">toggle detailed stats</div>
</div>
<div class="collapsible" id="collapsible-qud-basic-attributes" data-expandtext="toggle detailed stats" data-collapsetext="toggle detailed stats">
}} <!-- end #if -->
{{#if: {{{strength|}}}{{{agility|}}}{{{toughness|}}}{{{intelligence|}}}{{{willpower|}}}{{{ego|}}}
| <!-- Only create attributes block if at least one stat is specified -->
<div class="qud-attributes-wrapper collapsible-content">
<div class="qud-attributes-row">
<!-- The Character/Attributes template doesn't handle extra spaces very well, so there are none below -->
{{Character/Attribute|Strength|ST|{{{strength|}}}|Attributes|{{{strengthmult|1}}}|{{{strengthextrinsic|0}}}}}
{{Character/Attribute|Agility|AG|{{{agility|}}}|Attributes|{{{agilitymult|1}}}|{{{agilityextrinsic|0}}}}}
{{Character/Attribute|Quickness|QN|{{{quickness|100}}}|Quickness}}
</div>
<div class="qud-attributes-row">
{{Character/Attribute|Toughness|TO|{{{toughness|}}}|Attributes|{{{toughnessmult|1}}}|{{{toughnessextrinsic|0}}}}}
{{Character/Attribute|Willpower|WI|{{{willpower|}}}|Attributes|{{{willpowermult|1}}}|{{{willpowerextrinsic|0}}}}}
{{Character/Attribute|Movespeed|MS|{{{movespeed|100}}}|Movement Speed}}
</div>
<div class="qud-attributes-row">
{{Character/Attribute|Intelligence|IN|{{{intelligence|}}}|Attributes|{{{intelligencemult|1}}}|{{{intelligenceextrinsic|0}}}}}
{{Character/Attribute|Ego|EG|{{{ego|}}}|Attributes|{{{egomult|1}}}|{{{egoextrinsic|0}}}}}
{{Character/Attribute|Mental Armor|MA|{{{marange|{{{ma|}}}}}}|Attributes}}
</div>
</div>
{{#ifeq: {{#var:needsdetailedstats}}|yes|</div>}}
}} <!-- end #if -->
<!----------------------------------------
          DETAILED ATTRIBUTES (Mobile)
----------------------------------------->
{{#ifeq: {{#var:needsdetailedstats}}|yes
| <!-- Only create the detailed stats block if there are variable stats. To test this, we just check if there's a "d" in the stat string indicating a dice roll -->
<div class="collapsible collapsed" id="collapsible-qud-detailed-attributes" data-expandtext="toggle detailed stats" data-collapsetext="toggle detailed stats">
<div class="collapsible-content">
<div class="qud-stat-details-wrapper">
{{ Character/DetailedAttributeHeader }}
{{#if: {{{strength|}}}    | {{ Character/DetailedAttribute | Strength    |{{{strength}}}|Attributes|{{{strengthmult|1}}}|{{{strengthextrinsic|0}}}}} | }}
{{#if: {{{agility|}}}      | {{ Character/DetailedAttribute | Agility    |{{{agility}}}|Attributes|{{{agilitymult|1}}}|{{{agilityextrinsic|0}}}}} | }}
{{#if: {{{toughness|}}}    | {{ Character/DetailedAttribute | Toughness  |{{{toughness}}}|Attributes|{{{toughnessmult|1}}}|{{{toughnessextrinsic|0}}}}} | }}
{{#if: {{{intelligence|}}} | {{ Character/DetailedAttribute | Intelligence|{{{intelligence}}}|Attributes|{{{intelligencemult|1}}}|{{{intelligenceextrinsic|0}}}}} | }}
{{#if: {{{willpower|}}}    | {{ Character/DetailedAttribute | Willpower  |{{{willpower}}}|Attributes|{{{willpowermult|1}}}|{{{willpowerextrinsic|0}}}}} | }}
{{#if: {{{ego|}}}          | {{ Character/DetailedAttribute | Ego        |{{{ego}}}|Attributes|{{{egomult|1}}}|{{{egoextrinsic|0}}}}} | }}
</div>
{{#if:{{{xpvalue|}}}|{{ Character/DetailedXP | xpvalue={{{xpvalue}}} | xptier={{{xptier}}} }}
}}
</div>
</div>
}} <!-- end #if -->
</div> <!-- end mobileonly -->
}} <!-- end infobox row -->
<!----------------------------------------
 
      RESISTANCES
 
----------------------------------------->
{{#if: {{{acid|}}}{{{electric|}}}{{{cold|}}}{{{heat|}}}
| <!-- Only create resistances block if at least one resistance is specified -->
{{infobox row|class=qud-resistances navigation-not-searchable|field=
<div class="qud-resistances-wrapper">
{{ Character/Resistance |Acid|{{{acid|0}}}}}
{{ Character/Resistance |Elec|{{{electric|0}}}}}
{{ Character/Resistance |Cold|{{{cold|0}}}}}
{{ Character/Resistance |Heat|{{{heat|0}}}}}
</div>
}} <!-- end infobox row -->
}} <!-- end #if -->
<!----------------------------------------
 
      GENERIC DATA
 
      This is a good place to add new rows
 
----------------------------------------->
{{#ifeq: {{{featureweightinfo|no}}}|no||{{#if:{{{weight|}}}|{{infobox row|Weight|{{{weight}}}}}}}}}
{{#if: {{{renderstr|}}}
| {{infobox row|Character|{{Qud char|{{{colorstr|&amp;y}}}|{{{renderstr|}}} }} }}
}}
{{#if: {{{id|}}}
| {{#ifeq: {{{id}}}<!-- special handling for TinkerTurret, since there are a lot of them, and it can't be wished for directly -->
  |TinkerTurret
  |{{infobox row|ID{{Tooltip|This is the base ID of all dynamic turrets.<br>This turret cannot be [[Wishes|wished]] for directly.||nosearch}}|{{{id}}} }}
  |{{infobox row|ID{{Tooltip|Use this ID to [[Wishes|Wish]] for {{StripFormatting|{{{title}}}}}||nosearch}}|{{{id}}} }}
  }}
}}
{{#if: {{{faction|}}}
| {{infobox row|Faction|{{{faction}}} }}
}}
{{#if: {{{demeanor|}}}
| {{infobox row|Demeanor|{{{demeanor}}} }}
}}
{{#if: {{{gender|}}}
| {{infobox row|Gender|[[Gender and Pronouns#{{ucfirst:{{{gender}}}}}{{!}}{{{gender}}}]] {{#if: {{{pronouns|}}}|([[Gender and Pronouns#{{ucfirst:{{{pronouns}}}}}{{!}}{{{pronouns}}}]])}} }}
| {{#if: {{{pronouns|}}} | {{infobox row|Pronouns|[[Gender and Pronouns#{{ucfirst:{{{pronouns}}}}}{{!}}{{{pronouns}}}]] }} }}
}}
{{#if: {{{lightradius|}}}| {{infobox row|Light Radius{{Tooltip|This object acts as<br>a [[light source]]||nosearch}}|{{{lightradius}}} }} }}
{{#if: {{{chargeused|}}}
| {{infobox row|Charge per Use|{{#if: {{{energycellrequired|}}} | {{cell performance for charge|{{{chargeused}}}}} | {{{chargeused}}} }} }}
{{#if: {{{chargefunction|}}}  | {{infobox row|Charge Used For|{{{chargefunction}}} }} }}
}}
<!--liquid containers-->
{{#if: {{{maxvol|}}}  | {{infobox row|Max Volume|{{{maxvol}}} drams }} }}
{{#if: {{{liquidgenrate|}}}| {{infobox row|Liquid Generation|1 dram of [[{{{liquidgentype}}}]] every {{#if:{{#pos:{{{liquidgenrate}}}|-}}|{{dice tooltip|{{{liquidgenrate}}}}}|{{{liquidgenrate}}}}} turns}} }}
<!--tinkering-->
{{#if: {{{complexity|}}}| {{infobox row|Complexity|{{{complexity}}} }} }}
{{#if: {{{xpvalue|}}} |<!--only output this here if there is NOT an xpvalue-->|
  {{#if: {{{tier|}}}    | {{#vardefine:TIER|{{{tier}}}}} |
    {{#if: {{{bits|}}}  | {{#vardefine:TIER|{{#sub:{{{bits}}}| -1 }} }} }} }}<!--
    Determine tier from bits if not specified. Then, check for final value
  -->{{#varexists:TIER  | {{infobox row|Tier|{{#if:{{{modcount|}}} | {{#expr:{{#var:TIER}} + {{{modcount}}} }} {{Color|K|({{#var_final:TIER}}+{{{modcount}}}) }}
      | {{#var_final:TIER}} }} }}
    }}
}}
{{#if: {{{bits|}}}    | {{#if:{{{canbuild|}}}{{{candisassemble|}}}| {{infobox row|[[Bits]]|{{Bits|{{{bits}}}}} }} }} }}
{{#if: {{{candisassemble|}}}| {{infobox row|Can Disassemble|{{{candisassemble}}} }} }}
{{#if: {{{canbuild|}}}{{{candisassemble|}}}| {{infobox row|Can Build|{{{canbuild|no}}} }} }}
{{#ifeq: {{{canbuild|}}} | yes | {{infobox row|Tinker Skill|[[{{Tinker check| {{#sub:{{{bits|0}}}| -1 }} }}]] }} }}
{{#if: {{{chairlevel|}}}
| {{infobox row|Chair Level{{Tooltip|Chair level affects the power<br>of the [[sitting]] effect||nosearch}}|{{{chairlevel}}} }}
}}
{{#if: {{{supportedmods|}}}
| {{infobox row|Potential<br>Mods{{Tooltip|Mods this item can support<br>(subject to additional logic & rules)||nosearch}}|{{consecutive templates|{{{supportedmods}}}|,|, |||mod type to category link}} }}
}}
{{#if: {{{mods|}}}| {{infobox row|Modifications|{{consecutive links|{{{mods|}}}|</br>|</br>}} }} }}
<!----------------------------------------
 
      INVENTORY
 
----------------------------------------->
{{#if: {{{equipment|}}}{{{inventory|}}}
| <!-- only show Inventory section if the character has some inventory or equipment -->
{{QudInfoboxCollapser |Inventory|qud-inventory|qud-inv-content-itemlist
|<!-- inventory content follows --> {{#if: {{{equipment|}}} | <div class="qud-inv-group qud-equipped"><div class="qud-equipped-title">Equipped</div>{{{equipment}}}</div>}}
{{#if: {{{inventory|}}} | <div class="qud-inv-group qud-carried">{{#if: {{{equipment|}}} | <div class="qud-equipped-title">Carried</div> }}{{{inventory}}}</div>}}
}} <!-- end QudInfoboxCollapser -->
}} <!-- end #if -->
<!----------------------------------------
 
      SKILLS
 
----------------------------------------->
{{#if: {{{skills|}}}
| <!-- only show Skills section if the character has some skills -->
{{QudInfoboxCollapser |Skills|qud-skills|qud-skills-wrapper
|<!-- skills content follows -->
{{consecutive links|{{{skills}}}|</br>|</div><div class{{=}}"qud-skill-entry">|<div class{{=}}"qud-skill-entry">|</div>}}
}} <!-- end QudInfoboxCollapser -->
}} <!-- end #if -->
<!----------------------------------------
 
      MUTATIONS
 
----------------------------------------->
{{#if: {{{mutations|}}}
| <!-- only show Mutations section if the character has some mutations -->
{{QudInfoboxCollapser |Mutations|qud-mutations|qud-mutations-wrapper
|<!-- mutations content follows -->
{{{mutations}}}
}} <!-- end QudInfoboxCollapser -->
}} <!-- end #if -->
<!----------------------------------------
 
      MORE GENERIC DATA
 
      This is the other good place to add new rows
 
----------------------------------------->
{{#if: {{{corpse|}}}      | {{infobox row|Corpse Dropped|{{favilink id|{{{corpse}}}}} ({{{corpsechance|0}}}%) }} }}
{{#if: {{{xpvalue|}}} |
  {{infobox row|Experience{{Tooltip|The [[XP]] granted when killed. Click<br>"toggle detailed stats" above for<br>a level-based breakdown.||nosearch}}|{{{xpvalue}}} XP }}
  {{#if: {{{tier|}}} |
    {{infobox row|XP Tier|{{{tier}}} }}
  }}
}}
{{#if: {{{harvestedinto|}}}| {{infobox row|Harvested into|{{favilink id|{{{harvestedinto}}} }} }} }}
{{#if: {{{role|}}}        | {{infobox row|Role|{{{role}}} }} }}
{{#if: {{{dynamictable|}}} | {{infobox row|Spawns in|{{{dynamictable}}} }} }}
{{#if: {{{extra|}}}| {{infobox row|field=<hr><div style="padding:1em;><b>Extra info:</b>{{{extra|}}}</div> }} }}
}} <!-- END OF MAIN INFOBOX -->
{{#if: {{{desc|}}}        | {{Qud look|text={{grammar|text={{{desc}}}|gender={{{gender|nonspecific}}}|pronouns={{{pronouns|}}}}}|title={{{title|{{#titleparts:{{BASEPAGENAME}}}} }}} }} }} {{#if: {{{categories|}}}|[[Category:{{{categories}}}]] }}
</includeonly><noinclude><!--
 
-->{{doc}}<!--
 
--></noinclude>

Latest revision as of 22:42, 18 January 2024

This template defines the table "Characters". View table.

This template adds rows to the table "GeneralData", which is declared by the template General data table. View table.

Template-info.png Documentation

The Character template is used to define basic data for creatures, walls, trees, unmovable furniture, and other unmovable objects like rubble.

These objects have many properties in common, such as HP, AV, and DV.

Usage Example:

{{Character
| title = {{Qud text|Jotun, Who Parts Limbs}}
| image = jotun who parts limbs.png
| lv = 17
| hp = 165
| av = 6
| dv = 10
| ma = 3
| marange = 3
| weight = 200
| featureweightinfo = no
| id = Troll King 1
| tier = 3
| colorstr = &M
| tilecolors = MY
| renderstr = T
| corpse = Troll Corpse
| corpsechance = 90
| role = Hero
| extra = {{Extra info|weight = 200 | swarmbonus = 2 | uniquechara = yes | waterritualable = yes | bodytype = Humanoid}}
| inheritingfrom = Troll King
| quickness = 100
| movespeed = 100
| strength = 34
| agility = 24
| toughness = 29
| intelligence = 12
| willpower = 14
| ego = 19
| strengthmult = 1.5
| toughnessmult = 1.5
| acid = 0
| electric = 25
| cold = 50
| heat = 0
| xpvalue = 1700
| xptier = 3
| faction = {{creature faction|{{FactionID to name|Trolls}}|100}}
| demeanor = neutral
| gender = male
| inventory = {{inventory|Battle Axe3th|1|no|100}}{{inventory|Battle Axe4th|1|no|100}}{{inventory|ThrowingAxe|16|no|100}}{{inventory|Copper Trollking Key|1|no|100}}
| skills = {{SkillID to name|Axe}} </br>{{SkillID to name|Axe_Expertise}} </br>{{SkillID to name|Axe_Dismember}} </br>{{SkillID to name|Axe_Cleave}} </br>{{SkillID to name|Axe_HookAndDrag}} </br>{{SkillID to name|Tactics_Charge}} </br>{{SkillID to name|Dual_Wield_Offhand_Strikes}} </br>{{SkillID to name|Dual_Wield_Ambidexterity}} </br>{{SkillID to name|Cudgel}} </br>{{SkillID to name|Endurance_Swimming}}
| desc = The troll called Jotun slumps beneath the weight of =pronouns.possessive= broad and cragged back. Soaking fibers of inky, unkempt hair enswathe the great, pale rocks that are =pronouns.possessive= shoulders. Crossed over =pronouns.possessive= chest are two carbide axes, their shafts knurled and rotting with rust. Jotun's rumpled eyelids lay half-shut over the discs of =pronouns.possessive= sluggish eyes as =pronouns.subjective= =verb:recline:afterpronoun= in =pronouns.possessive= bath of convalessence.
| categories = Unique Characters
| gameversion = 2.0.201.114
}}

Supported parameters include:

Parameter Description Example
Metadata
id Object ID from ObjectBlueprints.xml ElderBob
wikiidoverride A unique override ID used on the wiki - used to distinguish certain objects that share the same Object ID, such as dynamic turrets TinkerTurretFlamethrower
inheritingfrom Parent object that this object inherits from in ObjectBlueprints.xml BaseHelmet
categories Primary wiki category (currently supports only a single category despite the name) Long Blades
Descriptive Data
title Display name of the creature or object hydraulic turbine
desc Description of the creature or object. Will be automatically prettified using Template:Qud look. Variables surrounded in = will be replaced with their respective words according to the gender and/or pronouns specified using Template:Grammar. If no gender is specified, it will default to nonspecified. (they/them/their)
gender Gender of the creature Female
pronouns Pronouns for the creature She/Her
faction Faction association for the creature
demeanor Creature's demeanor, such as "docile", "neutral", or "aggressive" aggressive
role Creature role - for example: Hero, NPC, or Minion. Affects certain stat calculations among other things. Brute
Visual Data
image The primary image for the object. If the item has no associated sprite, set equal to none.
overrideimages A set of variant images for the object, if applicable
gif An animated GIF image for the object, if applicable
colorstr Color for the creature's tile or font glyph &M
tilecolors Color for the creature's tile or font glyph Mc
renderstr Font glyph for the creature or object (when tiles are disabled) Æ
Core Stats
tier Character or item tier
lv Level of the creature
hp Hitpoints
av Armor value
dv Dodge value
quickness Quickness stat - defaults to 100. 90
movespeed Movement speed stat - defaults to 100 150
ma Calculated / average mental armor stat
marange Full range of possible mental armor stat values
Attributes
strength Intrinsic strength stat 18
agility Intrinsic agility stat 15-1
toughness Intrinsic toughness stat 16-1d2
intelligence Intrinsic intelligence stat 19
willpower Intrinsic willpower stat 17+2
ego Intrinsic ego stat 16+2d4
strengthmult Boost factor applied as a multiplier after intrinsic strength is calculated
agilitymult Boost factor applied as a multiplier after intrinsic agility is calculated
toughnessmult Boost factor applied as a multiplier after intrinsic toughness is calculated
intelligencemult Boost factor applied as a multiplier after intrinsic intelligence is calculated
willpowermult Boost factor applied as a multiplier after intrinsic willpower is calculated
egomult Boost factor applied as a multiplier after intrinsic ego is calculated
strengthextrinsic Extra strength added by extrinsic factors, such as mutations or equipment
agilityextrinsic Extra agility added by extrinsic factors, such as mutations or equipment
toughnessextrinsic Extra toughness added by extrinsic factors, such as mutations or equipment
willpowerextrinsic Extra willpower added by extrinsic factors, such as mutations or equipment
intelligenceextrinsic Extra intelligence added by extrinsic factors, such as mutations or equipment
egoextrinsic Extra strength ego by extrinsic factors, such as mutations or equipment
Resistances
acid Acid resistance for the creature or object
electric Electric resistance for the creature or object
heat Heat resistance for the creature or object
cold Cold resistance for the creature or object
Physical Properties
weight weight of the creature or object
featureweightinfo whether the weight should be featured near the top of the infobox (yes) or moved into the extra data field (no)
lightradius the radius of light emitted by this creature or object
maxvol Capacity for holding liquids (in drams)
liquidgentype The type of liquid generated.
liquidgenrate for liquid generators. how many turns it takes for 1 dram to generate. (can be a number or a range like 20-40)
Artifact Data
complexity Complexity of the artifact
bits Bits that compose the artifact
canbuild Yes if the object can be built with tinkering
candisassemble Yes if the object can be disassembled for bits
energycellrequired whether an energy cell is required to power this object
chargeused amount of energy required per use
chargeperdram how much charge is one dram (for liquid cells)
maxcharge how much charge it can hold (usually reserved for cells)
chargefunction what the charge is used for
mods List of item mods on the object
modcount Number of item mods on the object
supportedmods the list of mods this object supports (comma-delimited)
chairlevel the Chair Level of this chair - affects the power of sitting
unidentifiedimage Sprite shown for the unidentified artifact.
unidentifiedname Name of the artifact when it is not yet identified.
unidentifiedaltname Name of the artifact when it is only partially identified.
Items and Abilities
skills skill list delimited by </br> - for example: Tactful</br>Gadget Inspector</br>Disassemble
mutations one or more things using the Template:Creature mutation template
equipment one or more objects using Template:Inventory - be sure to specify the equipped parameter for these
inventory one or more objects using Template:Inventory
Other Data
xpvalue Amount of XP awarded when slaying this creature
xptier XP tier - affects experience calculations
corpse ID of the corpse object associated with this character
corpsechance percent chance for the corpse to drop (1-100)
harvestedinto the thing this can be harvested into
dynamictable Dynamic object table that this object is included in
extra A wide variety of potential extra information, using Template:Extra info