Template:Infobox creature: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
No edit summary
m (Revert test changes.)
Tag: Manual revert
 
(45 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{trim|
<includeonly>{{hidden code|
 
<!-- Set page image -->
{{#if: {{{page image|}}}
| {{#seo: image = {{{page image}}} }}
| {{#if: {{{image|}}}
  | {{#if: {{#invoke:HasTag | main | gallery | {{{image}}} }}
    | <!-- do nothing -->
    | {{#seo: image = {{{image}}} }}
    }}
  }}
}}
 
<!-- Movement and weight in ft and lb -->
<!-- Movement and weight in ft and lb -->
{{#lvardef: movement_ft | {{m to ft | {{{movement m|0}}} }} }}
{{#lvardef: movement_ft | {{m to ft | {{{movement m|0}}} }} }}
{{#lvardef: weight_lb | {{kg to lb | {{{weight kg|0}}} }} }}
{{#lvardef: weight_lb | {{kg to lb | {{{weight kg|0}}} }} }}
<!-- Level -->
{{#lvardef: level | {{{level | {{{hidden level|}}} }}} }}
<!-- Ability score modifiers -->
{{#lvardef: str_mod | {{plus if pos | floor({{{str}}} / 2) - 5 }} }}
{{#lvardef: dex_mod | {{plus if pos | floor({{{dex}}} / 2) - 5 }} }}
{{#lvardef: con_mod | {{plus if pos | floor({{{con}}} / 2) - 5 }} }}
{{#lvardef: int_mod | {{plus if pos | floor({{{int}}} / 2) - 5 }} }}
{{#lvardef: wis_mod | {{plus if pos | floor({{{wis}}} / 2) - 5 }} }}
{{#lvardef: cha_mod | {{plus if pos | floor({{{cha}}} / 2) - 5 }} }}
<!-- Initiative bonus -->
{{#lvardef: init_bonus | {{plus if pos |
  {{{initiative |
    {{#if: {{{dex|}}} |
      {{#lvar:dex_mod}} + {{{extra init|0}}}
    }}
  }}}
}} }}
<!-- Proficiency bonus -->
{{#if: {{{prof bonus|}}}
| {{#lvardef: prof_bonus | {{{prof bonus}}} }}
| {{#if: {{#lvar:level}}
  | {{#lvardef: prof_bonus | +{{#expr: 2 {{#ifexpr: {{#lvar:level}} >= 5 | + 1}} {{#ifexpr: {{#lvar:level}} >= 9 | + 1}} }} }}
  }}
}}
<!-- Saving throw bonuses -->
{{#lvardef: str_save | {{plus if pos | {{#lvar:str_mod}} {{#if: {{{str save prof|}}} | {{#lvar:prof_bonus}} }} }} }}
{{#lvardef: dex_save | {{plus if pos | {{#lvar:dex_mod}} {{#if: {{{dex save prof|}}} | {{#lvar:prof_bonus}} }} }} }}
{{#lvardef: con_save | {{plus if pos | {{#lvar:con_mod}} {{#if: {{{con save prof|}}} | {{#lvar:prof_bonus}} }} }} }}
{{#lvardef: int_save | {{plus if pos | {{#lvar:int_mod}} {{#if: {{{int save prof|}}} | {{#lvar:prof_bonus}} }} }} }}
{{#lvardef: wis_save | {{plus if pos | {{#lvar:wis_mod}} {{#if: {{{wis save prof|}}} | {{#lvar:prof_bonus}} }} }} }}
{{#lvardef: cha_save | {{plus if pos | {{#lvar:cha_mod}} {{#if: {{{cha save prof|}}} | {{#lvar:prof_bonus}} }} }} }}
<!--
  Explorer overrides
  -->
<!-- Explorer base stats -->
{{#lvardef: e_hp | {{{e hp | {{{hp|}}} }}} }}
{{#lvardef: e_ac | {{{e ac | {{{ac|}}} }}} }}
<!-- Explorer movement and weight -->
{{#lvardef: e_movement_m | {{{e movement m | {{{movement m|}}} }}} }}
{{#lvardef: e_weight_kg | {{{e weight kg | {{{weight kg|}}} }}} }}
{{#lvardef: e_movement_ft | {{m to ft | {{#lvar:e_movement_m|0}} }} }}
{{#lvardef: e_weight_lb | {{kg to lb | {{#lvar:e_weight_kg|0}} }} }}
<!-- Explorer ability scores -->
{{#lvardef: e_str | {{{e str | {{{str|}}} }}} }}
{{#lvardef: e_dex | {{{e dex | {{{dex|}}} }}} }}
{{#lvardef: e_con | {{{e con | {{{con|}}} }}} }}
{{#lvardef: e_int | {{{e int | {{{int|}}} }}} }}
{{#lvardef: e_wis | {{{e wis | {{{wis|}}} }}} }}
{{#lvardef: e_cha | {{{e cha | {{{cha|}}} }}} }}
<!-- Explorer ability score modifiers -->
{{#lvardef: e_str_mod | {{plus if pos | floor({{#lvar:e_str}} / 2) - 5 }} }}
{{#lvardef: e_dex_mod | {{plus if pos | floor({{#lvar:e_dex}} / 2) - 5 }} }}
{{#lvardef: e_con_mod | {{plus if pos | floor({{#lvar:e_con}} / 2) - 5 }} }}
{{#lvardef: e_int_mod | {{plus if pos | floor({{#lvar:e_int}} / 2) - 5 }} }}
{{#lvardef: e_wis_mod | {{plus if pos | floor({{#lvar:e_wis}} / 2) - 5 }} }}
{{#lvardef: e_cha_mod | {{plus if pos | floor({{#lvar:e_cha}} / 2) - 5 }} }}
<!-- Explorer initiative bonus -->
{{#lvardef: e_extra_init | {{{e extra init | {{{extra init|}}} }}} }}
{{#lvardef: e_init_bonus | {{plus if pos |
  {{{e initiative |
    {{{initiative |
      {{#if: {{#lvar:e_dex}} |
        {{#lvar:e_dex_mod}} + {{#lvar:e_extra_init|0}}
      }}
    }}}
  }}}
}} }}
<!-- Explorer level -->
{{#lvardef: e_level | {{{e level | {{{e hidden level | {{#lvar:level}} }}} }}} }}
<!-- Explorer proficiency bonus -->
{{#if: {{{e prof bonus | {{{prof bonus|}}} }}}
| {{#lvardef: e_prof_bonus | {{{e prof bonus | {{{prof bonus|}}} }}} }}
| {{#if: {{#lvar:e_level}}
  | {{#lvardef: e_prof_bonus | +{{#expr: 2 {{#ifexpr: {{#lvar:e_level}} >= 5 | + 1}} {{#ifexpr: {{#lvar:e_level}} >= 9 | + 1}} }} }}
  }}
}}
<!-- Explorer saving throw proficiencies -->
{{#lvardef: e_str_save_prof | {{{e str save prof | {{{str save prof|}}} }}} }}
{{#lvardef: e_dex_save_prof | {{{e dex save prof | {{{dex save prof|}}} }}} }}
{{#lvardef: e_con_save_prof | {{{e con save prof | {{{con save prof|}}} }}} }}
{{#lvardef: e_int_save_prof | {{{e int save prof | {{{int save prof|}}} }}} }}
{{#lvardef: e_wis_save_prof | {{{e wis save prof | {{{wis save prof|}}} }}} }}
{{#lvardef: e_cha_save_prof | {{{e cha save prof | {{{cha save prof|}}} }}} }}
<!-- Explorer saving throw bonuses -->
{{#lvardef: e_str_save | {{plus if pos | {{#lvar:e_str_mod}} {{#if: {{#lvar:e_str_save_prof}} | {{#lvar:e_prof_bonus}} }} }} }}
{{#lvardef: e_dex_save | {{plus if pos | {{#lvar:e_dex_mod}} {{#if: {{#lvar:e_dex_save_prof}} | {{#lvar:e_prof_bonus}} }} }} }}
{{#lvardef: e_con_save | {{plus if pos | {{#lvar:e_con_mod}} {{#if: {{#lvar:e_con_save_prof}} | {{#lvar:e_prof_bonus}} }} }} }}
{{#lvardef: e_int_save | {{plus if pos | {{#lvar:e_int_mod}} {{#if: {{#lvar:e_int_save_prof}} | {{#lvar:e_prof_bonus}} }} }} }}
{{#lvardef: e_wis_save | {{plus if pos | {{#lvar:e_wis_mod}} {{#if: {{#lvar:e_wis_save_prof}} | {{#lvar:e_prof_bonus}} }} }} }}
{{#lvardef: e_cha_save | {{plus if pos | {{#lvar:e_cha_mod}} {{#if: {{#lvar:e_cha_save_prof}} | {{#lvar:e_prof_bonus}} }} }} }}
<!-- Explorer resistances, actions, conditions, passives -->
{{#lvardef: e_resistances | {{{e resistances | {{{resistances|}}} }}} }}
{{#lvardef: e_actions | {{{e actions | {{{actions|}}} }}} }}
{{#lvardef: e_conditions | {{{e conditions | {{{conditions|}}} }}} }}
{{#lvardef: e_passives | {{{e passives | {{{passives|}}} }}} }}
<!--
  Tactician overrides
  -->
<!-- Tactician base stats -->
{{#lvardef: t_hp | {{{t hp | {{{hp|}}} }}} }}
{{#lvardef: t_ac | {{{t ac | {{{ac|}}} }}} }}


<!-- Tactician movement and weight -->
<!-- Tactician movement and weight -->
Line 11: Line 142:


<!-- Tactician ability scores -->
<!-- Tactician ability scores -->
{{#lvardef: t_str | {{{t str | {{{str}}} }}} }}
{{#lvardef: t_str | {{{t str | {{{str|}}} }}} }}
{{#lvardef: t_dex | {{{t dex | {{{dex}}} }}} }}
{{#lvardef: t_dex | {{{t dex | {{{dex|}}} }}} }}
{{#lvardef: t_con | {{{t con | {{{con}}} }}} }}
{{#lvardef: t_con | {{{t con | {{{con|}}} }}} }}
{{#lvardef: t_int | {{{t int | {{{int}}} }}} }}
{{#lvardef: t_int | {{{t int | {{{int|}}} }}} }}
{{#lvardef: t_wis | {{{t wis | {{{wis}}} }}} }}
{{#lvardef: t_wis | {{{t wis | {{{wis|}}} }}} }}
{{#lvardef: t_cha | {{{t cha | {{{cha}}} }}} }}
{{#lvardef: t_cha | {{{t cha | {{{cha|}}} }}} }}
 
<!-- Ability score modifiers -->
{{#lvardef: strmod | {{#ifexpr: {{{str}}} > 11 | + }}{{#expr: floor({{{str}}} / 2) - 5 }} }}
{{#lvardef: dexmod | {{#ifexpr: {{{dex}}} > 11 | + }}{{#expr: floor({{{dex}}} / 2) - 5 }} }}
{{#lvardef: conmod | {{#ifexpr: {{{con}}} > 11 | + }}{{#expr: floor({{{con}}} / 2) - 5 }} }}
{{#lvardef: intmod | {{#ifexpr: {{{int}}} > 11 | + }}{{#expr: floor({{{int}}} / 2) - 5 }} }}
{{#lvardef: wismod | {{#ifexpr: {{{wis}}} > 11 | + }}{{#expr: floor({{{wis}}} / 2) - 5 }} }}
{{#lvardef: chamod | {{#ifexpr: {{{cha}}} > 11 | + }}{{#expr: floor({{{cha}}} / 2) - 5 }} }}


<!-- Tactician ability score modifiers -->
<!-- Tactician ability score modifiers -->
{{#lvardef: t_strmod | {{#ifexpr: {{#lvar:t_str}} > 11 | + }}{{#expr: floor({{#lvar:t_str}} / 2) - 5 }} }}
{{#lvardef: t_str_mod | {{plus if pos | floor({{#lvar:t_str}} / 2) - 5 }} }}
{{#lvardef: t_dexmod | {{#ifexpr: {{#lvar:t_dex}} > 11 | + }}{{#expr: floor({{#lvar:t_dex}} / 2) - 5 }} }}
{{#lvardef: t_dex_mod | {{plus if pos | floor({{#lvar:t_dex}} / 2) - 5 }} }}
{{#lvardef: t_conmod | {{#ifexpr: {{#lvar:t_con}} > 11 | + }}{{#expr: floor({{#lvar:t_con}} / 2) - 5 }} }}
{{#lvardef: t_con_mod | {{plus if pos | floor({{#lvar:t_con}} / 2) - 5 }} }}
{{#lvardef: t_intmod | {{#ifexpr: {{#lvar:t_int}} > 11 | + }}{{#expr: floor({{#lvar:t_int}} / 2) - 5 }} }}
{{#lvardef: t_int_mod | {{plus if pos | floor({{#lvar:t_int}} / 2) - 5 }} }}
{{#lvardef: t_wismod | {{#ifexpr: {{#lvar:t_wis}} > 11 | + }}{{#expr: floor({{#lvar:t_wis}} / 2) - 5 }} }}
{{#lvardef: t_wis_mod | {{plus if pos | floor({{#lvar:t_wis}} / 2) - 5 }} }}
{{#lvardef: t_chamod | {{#ifexpr: {{#lvar:t_cha}} > 11 | + }}{{#expr: floor({{#lvar:t_cha}} / 2) - 5 }} }}
{{#lvardef: t_cha_mod | {{plus if pos | floor({{#lvar:t_cha}} / 2) - 5 }} }}


<!-- Level -->
<!-- Tactician initiative bonus -->
{{#lvardef: level | {{{level | {{{hidden level|}}} }}} }}
{{#lvardef: t_extra_init | {{{t extra init | {{{extra init|}}} }}} }}
{{#lvardef: t_init_bonus | {{plus if pos |
  {{{t initiative |
    {{{initiative |
      {{#if: {{#lvar:t_dex}} |
        {{#lvar:t_dex_mod}} + {{#lvar:t_extra_init|0}}
      }}
    }}}
  }}}
}} }}


<!-- Tactician level -->
<!-- Tactician level -->
{{#lvardef: t_level | {{{t level | {{{t hidden level | {{#lvar:level}} }}} }}} }}
{{#lvardef: t_level | {{{t level | {{{t hidden level | {{#lvar:level}} }}} }}} }}
<!-- Proficiency bonus -->
{{#if: {{{prof bonus|}}}
| {{#lvardef: profbonus | {{{prof bonus}}} }}
| {{#if: {{#lvar:level}}
  | {{#lvardef: profbonus | +{{#expr: 2 {{#ifexpr: {{#lvar:level}} >= 5 | + 1}} {{#ifexpr: {{#lvar:level}} >= 9 | + 1}} }} }}
  }}
}}


<!-- Tactician proficiency bonus -->
<!-- Tactician proficiency bonus -->
{{#if: {{{t prof bonus | {{{prof bonus|}}} }}}
{{#if: {{{t prof bonus | {{{prof bonus|}}} }}}
| {{#lvardef: t_profbonus | {{{t prof bonus | {{{prof bonus|}}} }}} }}
| {{#lvardef: t_prof_bonus | {{{t prof bonus | {{{prof bonus|}}} }}} }}
| {{#if: {{#lvar:t_level}}
| {{#if: {{#lvar:t_level}}
   | {{#lvardef: t_profbonus | +{{#expr: 2 {{#ifexpr: {{#lvar:t_level}} >= 5 | + 1}} {{#ifexpr: {{#lvar:t_level}} >= 9 | + 1}} }} }}
   | {{#lvardef: t_prof_bonus | +{{#expr: 2 {{#ifexpr: {{#lvar:t_level}} >= 5 | + 1}} {{#ifexpr: {{#lvar:t_level}} >= 9 | + 1}} }} }}
   }}
   }}
}}
}}
<!-- Saving throw bonuses -->
{{#lvardef: strsave | {{#expr: {{#lvar:strmod}} {{#if: {{{str save prof|}}} | {{#lvar:profbonus}} }} }} }}
{{#lvardef: dexsave | {{#expr: {{#lvar:dexmod}} {{#if: {{{dex save prof|}}} | {{#lvar:profbonus}} }} }} }}
{{#lvardef: consave | {{#expr: {{#lvar:conmod}} {{#if: {{{con save prof|}}} | {{#lvar:profbonus}} }} }} }}
{{#lvardef: intsave | {{#expr: {{#lvar:intmod}} {{#if: {{{int save prof|}}} | {{#lvar:profbonus}} }} }} }}
{{#lvardef: wissave | {{#expr: {{#lvar:wismod}} {{#if: {{{wis save prof|}}} | {{#lvar:profbonus}} }} }} }}
{{#lvardef: chasave | {{#expr: {{#lvar:chamod}} {{#if: {{{cha save prof|}}} | {{#lvar:profbonus}} }} }} }}


<!-- Tactician saving throw proficiencies -->
<!-- Tactician saving throw proficiencies -->
Line 73: Line 189:


<!-- Tactician saving throw bonuses -->
<!-- Tactician saving throw bonuses -->
{{#lvardef: t_strsave | {{#expr: {{#lvar:t_strmod}} {{#if: {{#lvar:t_str_save_prof}} | {{#lvar:t_profbonus}} }} }} }}
{{#lvardef: t_str_save | {{plus if pos | {{#lvar:t_str_mod}} {{#if: {{#lvar:t_str_save_prof}} | {{#lvar:t_prof_bonus}} }} }} }}
{{#lvardef: t_dexsave | {{#expr: {{#lvar:t_dexmod}} {{#if: {{#lvar:t_dex_save_prof}} | {{#lvar:t_profbonus}} }} }} }}
{{#lvardef: t_dex_save | {{plus if pos | {{#lvar:t_dex_mod}} {{#if: {{#lvar:t_dex_save_prof}} | {{#lvar:t_prof_bonus}} }} }} }}
{{#lvardef: t_consave | {{#expr: {{#lvar:t_conmod}} {{#if: {{#lvar:t_con_save_prof}} | {{#lvar:t_profbonus}} }} }} }}
{{#lvardef: t_con_save | {{plus if pos | {{#lvar:t_con_mod}} {{#if: {{#lvar:t_con_save_prof}} | {{#lvar:t_prof_bonus}} }} }} }}
{{#lvardef: t_intsave | {{#expr: {{#lvar:t_intmod}} {{#if: {{#lvar:t_int_save_prof}} | {{#lvar:t_profbonus}} }} }} }}
{{#lvardef: t_int_save | {{plus if pos | {{#lvar:t_int_mod}} {{#if: {{#lvar:t_int_save_prof}} | {{#lvar:t_prof_bonus}} }} }} }}
{{#lvardef: t_wissave | {{#expr: {{#lvar:t_wismod}} {{#if: {{#lvar:t_wis_save_prof}} | {{#lvar:t_profbonus}} }} }} }}
{{#lvardef: t_wis_save | {{plus if pos | {{#lvar:t_wis_mod}} {{#if: {{#lvar:t_wis_save_prof}} | {{#lvar:t_prof_bonus}} }} }} }}
{{#lvardef: t_chasave | {{#expr: {{#lvar:t_chamod}} {{#if: {{#lvar:t_cha_save_prof}} | {{#lvar:t_profbonus}} }} }} }}
{{#lvardef: t_cha_save | {{plus if pos | {{#lvar:t_cha_mod}} {{#if: {{#lvar:t_cha_save_prof}} | {{#lvar:t_prof_bonus}} }} }} }}
}}{{Infobox creature/internal
 
<!-- Tactician resistances, conditions, passives -->
{{#lvardef: t_resistances | {{{t resistances | {{{resistances|}}} }}} }}
{{#lvardef: t_actions | {{{t actions | {{{actions|}}} }}} }}
{{#lvardef: t_conditions | {{{t conditions | {{{conditions|}}} }}} }}
{{#lvardef: t_passives | {{{t passives | {{{passives|}}} }}} }}
 
<!--
  Honour overrides; Note: Based on Tactician!
  -->
 
<!-- Honour base stats -->
{{#lvardef: h_hp | {{{h hp | {{#lvar:t_hp}} }}} }}
{{#lvardef: h_ac | {{{h ac | {{#lvar:t_ac}} }}} }}
 
<!-- Honour movement and weight -->
{{#lvardef: h_movement_m | {{{h movement m | {{#lvar:t_movement_m}} }}} }}
{{#lvardef: h_weight_kg | {{{h weight kg | {{#lvar:t_weight_kg}} }}} }}
{{#lvardef: h_movement_ft | {{m to ft | {{#lvar:h_movement_m|0}} }} }}
{{#lvardef: h_weight_lb | {{kg to lb | {{#lvar:h_weight_kg|0}} }} }}
 
<!-- Honour ability scores -->
{{#lvardef: h_str | {{{h str | {{#lvar:t_str}} }}} }}
{{#lvardef: h_dex | {{{h dex | {{#lvar:t_dex}} }}} }}
{{#lvardef: h_con | {{{h con | {{#lvar:t_con}} }}} }}
{{#lvardef: h_int | {{{h int | {{#lvar:t_int}} }}} }}
{{#lvardef: h_wis | {{{h wis | {{#lvar:t_wis}} }}} }}
{{#lvardef: h_cha | {{{h cha | {{#lvar:t_cha}} }}} }}
 
<!-- Honour ability score modifiers -->
{{#lvardef: h_str_mod | {{plus if pos | floor({{#lvar:h_str}} / 2) - 5 }} }}
{{#lvardef: h_dex_mod | {{plus if pos | floor({{#lvar:h_dex}} / 2) - 5 }} }}
{{#lvardef: h_con_mod | {{plus if pos | floor({{#lvar:h_con}} / 2) - 5 }} }}
{{#lvardef: h_int_mod | {{plus if pos | floor({{#lvar:h_int}} / 2) - 5 }} }}
{{#lvardef: h_wis_mod | {{plus if pos | floor({{#lvar:h_wis}} / 2) - 5 }} }}
{{#lvardef: h_cha_mod | {{plus if pos | floor({{#lvar:h_cha}} / 2) - 5 }} }}
 
<!-- Honour initiative bonus -->
{{#lvardef: h_extra_init | {{{h extra init | {{#lvar:t_extra_init}} }}} }}
{{#lvardef: h_init_bonus | {{plus if pos |
  {{{h initiative |
    {{{t initiative |
      {{{initiative |
        {{#if: {{#lvar:h_dex}} |
          {{#lvar:h_dex_mod}} + {{#lvar:h_extra_init|0}}
        }}
      }}}
    }}}
  }}}
}} }}
 
<!-- Honour level -->
{{#lvardef: h_level | {{{h level | {{{h hidden level | {{#lvar:t_level}} }}} }}} }}
 
<!-- Honour proficiency bonus -->
{{#if: {{{h prof bonus | {{{t prof bonus | {{{prof bonus|}}} }}} }}}
| {{#lvardef: h_prof_bonus | {{{h prof bonus | {{{t prof bonus | {{{prof bonus}}} }}} }}} }}
| {{#if: {{#lvar:h_level}}
  | {{#lvardef: h_prof_bonus | +{{#expr: 2 {{#ifexpr: {{#lvar:h_level}} >= 5 | + 1}} {{#ifexpr: {{#lvar:h_level}} >= 9 | + 1}} }} }}
  }}
}}
 
<!-- Honour saving throw proficiencies -->
{{#lvardef: h_str_save_prof | {{{h str save prof | {{#lvar:t_str_save_prof}} }}} }}
{{#lvardef: h_dex_save_prof | {{{h dex save prof | {{#lvar:t_dex_save_prof}} }}} }}
{{#lvardef: h_con_save_prof | {{{h con save prof | {{#lvar:t_con_save_prof}} }}} }}
{{#lvardef: h_int_save_prof | {{{h int save prof | {{#lvar:t_int_save_prof}} }}} }}
{{#lvardef: h_wis_save_prof | {{{h wis save prof | {{#lvar:t_wis_save_prof}} }}} }}
{{#lvardef: h_cha_save_prof | {{{h cha save prof | {{#lvar:t_cha_save_prof}} }}} }}
 
<!-- Honour saving throw bonuses -->
{{#lvardef: h_str_save | {{plus if pos | {{#lvar:h_str_mod}} {{#if: {{#lvar:h_str_save_prof}} | {{#lvar:h_prof_bonus}} }} }} }}
{{#lvardef: h_dex_save | {{plus if pos | {{#lvar:h_dex_mod}} {{#if: {{#lvar:h_dex_save_prof}} | {{#lvar:h_prof_bonus}} }} }} }}
{{#lvardef: h_con_save | {{plus if pos | {{#lvar:h_con_mod}} {{#if: {{#lvar:h_con_save_prof}} | {{#lvar:h_prof_bonus}} }} }} }}
{{#lvardef: h_int_save | {{plus if pos | {{#lvar:h_int_mod}} {{#if: {{#lvar:h_int_save_prof}} | {{#lvar:h_prof_bonus}} }} }} }}
{{#lvardef: h_wis_save | {{plus if pos | {{#lvar:h_wis_mod}} {{#if: {{#lvar:h_wis_save_prof}} | {{#lvar:h_prof_bonus}} }} }} }}
{{#lvardef: h_cha_save | {{plus if pos | {{#lvar:h_cha_mod}} {{#if: {{#lvar:h_cha_save_prof}} | {{#lvar:h_prof_bonus}} }} }} }}
 
<!-- Honour resistances, conditions, passives -->
{{#lvardef: h_resistances | {{{h resistances | {{#lvar:t_resistances}} }}} }}
{{#lvardef: h_actions | {{{h actions | {{#lvar:t_actions}} }}} }}
{{#lvardef: h_conditions | {{{h conditions | {{#lvar:t_conditions}} }}} }}
{{#lvardef: h_passives | {{{h passives | {{#lvar:t_passives}} }}} }}
 
{{#if: {{{initiative|}}} {{{e initiative|}}} {{{t initiative|}}} {{{h initiative|}}}
| [[Category:Pages setting creature infobox initiative directly]]
}}
 
}}
 
{{Infobox creature/internal
| name = {{{name|}}}
| name = {{{name|}}}
| title = {{{title|}}}
| title = {{{title|}}}
| image = {{{image|}}}
| image = {{{image|}}}
| full name = {{{full name|}}}
| va = {{{va|}}}
| va = {{{va|}}}
| role = {{{role|}}}
| faction = {{{faction|}}}
| faction = {{{faction|}}}
| family = {{{family|}}}
| hometown = {{{hometown|}}}
| size = {{{size|}}}
| type = {{{type|}}}
| race = {{{race|}}}
| race = {{{race|}}}
| type = {{{type|}}}
| class = {{{class|}}}
| size = {{{size|}}}
| background = {{{background|}}}


| level = {{#lvar:level}}
| level = {{{level|}}}
| hp = {{{hp|}}}
| hp = {{{hp|}}}
| ac = {{{ac|}}}
| ac = {{{ac|}}}
| prof bonus = {{#lvar:profbonus}}
| init bonus = {{#lvar:init_bonus}}
| initiative = {{{initiative|}}}
| prof bonus = {{#lvar:prof_bonus}}
| movement m = {{{movement m|}}}
| movement m = {{{movement m|}}}
| movement ft = {{#lvar:movement_ft}}
| movement ft = {{#lvar:movement_ft}}
Line 99: Line 312:
| weight lb = {{#lvar:weight_lb}}
| weight lb = {{#lvar:weight_lb}}


| t level = {{#lvar:t_level}}
| str = {{{str|}}}
| t hp = {{{t hp | {{{hp|}}} }}}
| dex = {{{dex|}}}
| t ac = {{{t ac | {{{ac|}}} }}}
| con = {{{con|}}}
| t prof bonus = {{#lvar:t_profbonus}}
| int = {{{int|}}}
| t initiative = {{{t initiative | {{{initiative|}}} }}}
| wis = {{{wis|}}}
| t movement m = {{#lvar:t_movement_m}}
| cha = {{{cha|}}}
| t movement ft = {{#lvar:t_movement_ft}}
 
| t weight kg = {{#lvar:t_weight_kg}}
| str mod = {{#lvar:str_mod}}
| t weight lb = {{#lvar:t_weight_lb}}
| dex mod = {{#lvar:dex_mod}}
| con mod = {{#lvar:con_mod}}
| int mod = {{#lvar:int_mod}}
| wis mod = {{#lvar:wis_mod}}
| cha mod = {{#lvar:cha_mod}}
 
| str save = {{#lvar:str_save}}
| dex save = {{#lvar:dex_save}}
| con save = {{#lvar:con_save}}
| int save = {{#lvar:int_save}}
| wis save = {{#lvar:wis_save}}
| cha save = {{#lvar:cha_save}}


| str save prof = {{{str save prof|}}}
| str save prof = {{{str save prof|}}}
Line 115: Line 339:
| wis save prof = {{{wis save prof|}}}
| wis save prof = {{{wis save prof|}}}
| cha save prof = {{{cha save prof|}}}
| cha save prof = {{{cha save prof|}}}
| resistances = {{{resistances|}}}
| actions = {{{actions|}}}
| conditions = {{{conditions|}}}
| passives = {{{passives|}}}
| e level = {{{e level | {{{level|}}} }}}
| e hp = {{#lvar:e_hp}}
| e ac = {{#lvar:e_ac}}
| e init bonus = {{#lvar:e_init_bonus}}
| e prof bonus = {{#lvar:e_prof_bonus}}
| e movement m = {{#lvar:e_movement_m}}
| e movement ft = {{#lvar:e_movement_ft}}
| e weight kg = {{#lvar:e_weight_kg}}
| e weight lb = {{#lvar:e_weight_lb}}
| e str save prof = {{#lvar:e_str_save_prof}}
| e dex save prof = {{#lvar:e_dex_save_prof}}
| e con save prof = {{#lvar:e_con_save_prof}}
| e int save prof = {{#lvar:e_int_save_prof}}
| e wis save prof = {{#lvar:e_wis_save_prof}}
| e cha save prof = {{#lvar:e_cha_save_prof}}
| e str = {{#lvar:e_str}}
| e dex = {{#lvar:e_dex}}
| e con = {{#lvar:e_con}}
| e int = {{#lvar:e_int}}
| e wis = {{#lvar:e_wis}}
| e cha = {{#lvar:e_cha}}
| e str mod = {{#lvar:e_str_mod}}
| e dex mod = {{#lvar:e_dex_mod}}
| e con mod = {{#lvar:e_con_mod}}
| e int mod = {{#lvar:e_int_mod}}
| e wis mod = {{#lvar:e_wis_mod}}
| e cha mod = {{#lvar:e_cha_mod}}
| e str save = {{#lvar:e_str_save}}
| e dex save = {{#lvar:e_dex_save}}
| e con save = {{#lvar:e_con_save}}
| e int save = {{#lvar:e_int_save}}
| e wis save = {{#lvar:e_wis_save}}
| e cha save = {{#lvar:e_cha_save}}
| e resistances = {{#lvar:e_resistances}}
| e actions = {{#lvar:e_actions}}
| e conditions = {{#lvar:e_conditions}}
| e passives = {{#lvar:e_passives}}
| t level = {{{t level | {{{level|}}} }}}
| t hp = {{#lvar:t_hp}}
| t ac = {{#lvar:t_ac}}
| t init bonus = {{#lvar:t_init_bonus}}
| t prof bonus = {{#lvar:t_prof_bonus}}
| t movement m = {{#lvar:t_movement_m}}
| t movement ft = {{#lvar:t_movement_ft}}
| t weight kg = {{#lvar:t_weight_kg}}
| t weight lb = {{#lvar:t_weight_lb}}


| t str save prof = {{#lvar:t_str_save_prof}}
| t str save prof = {{#lvar:t_str_save_prof}}
Line 122: Line 404:
| t wis save prof = {{#lvar:t_wis_save_prof}}
| t wis save prof = {{#lvar:t_wis_save_prof}}
| t cha save prof = {{#lvar:t_cha_save_prof}}
| t cha save prof = {{#lvar:t_cha_save_prof}}
| str = {{{str|}}}
| dex = {{{dex|}}}
| con = {{{con|}}}
| int = {{{int|}}}
| wis = {{{wis|}}}
| cha = {{{cha|}}}
| str mod = {{#lvar:strmod}}
| dex mod = {{#lvar:dexmod}}
| con mod = {{#lvar:conmod}}
| int mod = {{#lvar:intmod}}
| wis mod = {{#lvar:wismod}}
| cha mod = {{#lvar:chamod}}
| str save = {{#lvar:strsave}}
| dex save = {{#lvar:dexsave}}
| con save = {{#lvar:consave}}
| int save = {{#lvar:intsave}}
| wis save = {{#lvar:wissave}}
| cha save = {{#lvar:chasave}}


| t str = {{#lvar:t_str}}
| t str = {{#lvar:t_str}}
Line 151: Line 412:
| t cha = {{#lvar:t_cha}}
| t cha = {{#lvar:t_cha}}


| t str mod = {{#lvar:t_strmod}}
| t str mod = {{#lvar:t_str_mod}}
| t dex mod = {{#lvar:t_dexmod}}
| t dex mod = {{#lvar:t_dex_mod}}
| t con mod = {{#lvar:t_conmod}}
| t con mod = {{#lvar:t_con_mod}}
| t int mod = {{#lvar:t_intmod}}
| t int mod = {{#lvar:t_int_mod}}
| t wis mod = {{#lvar:t_wismod}}
| t wis mod = {{#lvar:t_wis_mod}}
| t cha mod = {{#lvar:t_chamod}}
| t cha mod = {{#lvar:t_cha_mod}}
 
| t str save = {{#lvar:t_strsave}}
| t dex save = {{#lvar:t_dexsave}}
| t con save = {{#lvar:t_consave}}
| t int save = {{#lvar:t_intsave}}
| t wis save = {{#lvar:t_wissave}}
| t cha save = {{#lvar:t_chasave}}


| resistances = {{{resistances|}}}
| t str save = {{#lvar:t_str_save}}
| t resistances = {{{t resistances | {{{resistances|}}} }}}
| t dex save = {{#lvar:t_dex_save}}
| t con save = {{#lvar:t_con_save}}
| t int save = {{#lvar:t_int_save}}
| t wis save = {{#lvar:t_wis_save}}
| t cha save = {{#lvar:t_cha_save}}


}}</includeonly><noinclude>
| t resistances = {{#lvar:t_resistances}}
{{Infobox creature
| t actions = {{#lvar:t_actions}}
| name = Test
| t conditions = {{#lvar:t_conditions}}
| title = Title
| t passives = {{#lvar:t_passives}}
| image =
<gallery>
Steel Watcher Ranged.png|Ranged
Steel Watcher Model.png|Model
</gallery>
| va = Keanu Reeves
| faction = Gondor
| race = Cat
| type = Mammal
| size = Smol


| level = 10
| h level = {{{h level | {{{t level | {{{level|}}} }}} }}}
| hp = 10
| h hp = {{#lvar:h_hp}}
| ac = 10
| h ac = {{#lvar:h_ac}}
| prof bonus = +4
| h init bonus = {{#lvar:h_init_bonus}}
| initiative = +5
| h prof bonus = {{#lvar:h_prof_bonus}}
| movement m = 9
| h movement m = {{#lvar:h_movement_m}}
| weight kg = 600
| h movement ft = {{#lvar:h_movement_ft}}
| h weight kg = {{#lvar:h_weight_kg}}
| h weight lb = {{#lvar:h_weight_lb}}


| t level = 12
| h str save prof = {{#lvar:h_str_save_prof}}
| t hp = 12
| h dex save prof = {{#lvar:h_dex_save_prof}}
| t ac = 12
| h con save prof = {{#lvar:h_con_save_prof}}
| t prof bonus = +5
| h int save prof = {{#lvar:h_int_save_prof}}
| t initiative = +6
| h wis save prof = {{#lvar:h_wis_save_prof}}
| t movement m = 12
| h cha save prof = {{#lvar:h_cha_save_prof}}
| t weight kg = 800


| dex save prof = yes
| h str = {{#lvar:h_str}}
| con save prof = yes
| h dex = {{#lvar:h_dex}}
| h con = {{#lvar:h_con}}
| h int = {{#lvar:h_int}}
| h wis = {{#lvar:h_wis}}
| h cha = {{#lvar:h_cha}}


| str = 6
| h str mod = {{#lvar:h_str_mod}}
| dex = 8
| h dex mod = {{#lvar:h_dex_mod}}
| con = 10
| h con mod = {{#lvar:h_con_mod}}
| int = 12
| h int mod = {{#lvar:h_int_mod}}
| wis = 14
| h wis mod = {{#lvar:h_wis_mod}}
| cha = 16
| h cha mod = {{#lvar:h_cha_mod}}


| t str = 8
| h str save = {{#lvar:h_str_save}}
| t dex = 10
| h dex save = {{#lvar:h_dex_save}}
| t con = 12
| h con save = {{#lvar:h_con_save}}
| t int = 14
| h int save = {{#lvar:h_int_save}}
| t wis = 16
| h wis save = {{#lvar:h_wis_save}}
| t cha = 18
| h cha save = {{#lvar:h_cha_save}}


| resistances = fire resistant, cold resistant, lightning vulnerable
| h resistances = {{#lvar:h_resistances}}
| t resistances = fire immune, cold resistant, slashing immune nm, piercing immune nm, bludgeoning immune nm
| h actions = {{#lvar:h_actions}}
}}
| h conditions = {{#lvar:h_conditions}}
| h passives = {{#lvar:h_passives}}


This is the main creature infobox template. It does a bunch of processing on its parameters before passing on all the results to [[Template:Infobox creature/internal]] for displaying.
}}</includeonly><noinclude>{{documentation}}</noinclude>
</noinclude>

Latest revision as of 00:07, 11 June 2024

Template documentation

This is the main creature infobox template. It does a bunch of processing on its parameters before passing on all the results to Template:Infobox creature/internal for displaying.

List of helper sub-templates:

Usage tips:

  • To override stats for Explorer, Tactician, or Honour mode, use parameters starting with e, t, or h, respectively. E.g. use t hp to specify the HP value for Tactician difficulty. Explorer and Tactician fall back to Balanced (default) stats when a stat isn't overridden; Honour falls abck to Tactician stats.
  • The passives list may contain elements of the format Passive name @ Item name to specify the item that grants the passive. This will make that item's icon be used if the passive itself doesn't have an icon.
  • The image property may contain a <gallery>...</gallery>.
  • The provided image will be automatically set as the page image (as if using Template:PageSeo), unless it's a gallery. If it's a gallery, you can use the page image property instead to set the page image.

How to specify a creature's initiative bonus:

  • If a creature's initiative bonus is just their Dex modifier, then you mustn't use any initiative-related parameters. It will automatically use the Dex modifier.
  • If a creature has extra initiative bonus through sources other than Dex, use the extra init parameter to specify the extra value (without Dex modifier).
  • For example, if a creature has Alert (+5), Feral Instinct (+3), and Ambusher (+1), then you would specify extra init = 9, and the Dex modifier will be automatically added on top.
  • This way, if the creature's Dex changes between difficulties, the correct initiative bonus will be calculated. If necessary, the extra init parameter can also be changed per difficulty; for example, if the creature's Dex stays the same between difficulties, but they have an additional passive feature in a higher difficulty that grants them extra initiative.

Example use:

{{Infobox creature
| name = Test
| title = Title
| image =
<gallery>
Steel Watcher Ranged.png|Ranged
Steel Watcher Model.png|Model
</gallery>
| page image = Steel Watcher Model.png
| full name = Duke Wellington
| va = Keanu Reeves
| role = Mascot
| faction = Gondor
| family = The Reeves'
| hometown = The Shire

| size = Smol
| type = Mammal
| race = Cat
| class = Felinid
| background = Outlander

| level = 10
| hp = 10
| ac = 10
| extra init = +3
| prof bonus = +4
| movement m = 9
| weight kg = 600

| str = 11
| dex = 12
| con = 13
| int = 14
| wis = 15
| cha = 16

| dex save prof = yes
| con save prof = yes

| resistances = fire resistant, cold resistant, lightning vulnerable
| actions = Absolute Power, Dueller's Enthusiasm
| conditions = Aura of Protection, Aura of Hate
| passives = Agile Chassis, Cull the Weak (Drider)

| e level = 8
| e hp = 8
| e ac = 8
| e extra init = +2
| e prof bonus = +3

| e str = 10
| e dex = 11
| e con = 12
| e int = 13
| e wis = 14
| e cha = 15

| e resistances = cold resistant
| e actions = Absolute Power
| e conditions = Aura of Protection
| e passives = Agile Chassis

| t level = 12
| t hp = 12
| t ac = 12
| t extra init = +4
| t prof bonus = +5
| t movement m = 12
| t weight kg = 800

| t str = 13
| t dex = 14
| t con = 15
| t int = 16
| t wis = 17
| t cha = 18

| t resistances = fire immune, cold resistant, slashing immune nm, piercing immune nm, bludgeoning immune nm
| t actions = Absolute Power, Dueller's Enthusiasm, Entangle
| t conditions = Aura of Protection, Aura of Hate, Unstoppable
| t passives = Agile Chassis, Cull the Weak (Drider), Adamantine Shield @ Adamantine Shield

| h level = 14
| h hp = 14
| h ac = 14
| h extra init = +5
| h prof bonus = +6

| h str = 14
| h dex = 15
| h con = 16
| h int = 17
| h wis = 18
| h cha = 19

| h resistances = fire immune, cold immune, slashing immune nm, piercing immune nm, bludgeoning immune nm
| h actions = Absolute Power, Dueller's Enthusiasm, Entangle, Fireball
| h conditions = Aura of Protection, Aura of Hate, Unstoppable, Legendary Resistance: Incapacitation
| h passives = Agile Chassis, Cull the Weak (Drider), Adamantine Shield @ Adamantine Shield, Fast Hands
}}