12,661
editsAdd possibility to specify initiative bonus value instead of directly overriding initiative.
(Improve handling of unspecified ability stat parameters.) |
(Add possibility to specify initiative bonus value instead of directly overriding initiative.) |
||
Line 19: | Line 19: | ||
<!-- Initiative --> | <!-- Initiative --> | ||
{{#lvardef: initiative | {{{initiative | {{#if: {{{dex|}}} | {{#lvar:dex_mod}} }} }}} }} | {{#lvardef: initiative | | ||
{{{initiative | | |||
{{#if: {{{dex|}}} | | |||
{{#expr: {{#lvar:dex_mod}} + {{{init bonus|0}}} }} | |||
}} | |||
}}} | |||
}} | |||
<!-- Proficiency bonus --> | <!-- Proficiency bonus --> | ||
Line 75: | Line 81: | ||
<!-- Explorer initiative --> | <!-- Explorer initiative --> | ||
{{#lvardef: e_initiative | {{{e initiative | {{#if: {{#lvar:e_dex}} | {{#lvar:e_dex_mod}} }} }}} }} | {{#lvardef: e_init_bonus | {{{e init bonus | {{{init bonus|}}} }}} }} | ||
{{#lvardef: e_initiative | | |||
{{{e initiative | | |||
{{{initiative | | |||
{{#if: {{#lvar:e_dex}} | | |||
{{#expr: {{#lvar:e_dex_mod}} + {{#lvar:e_init_bonus|0}} }} | |||
}} | |||
}}} | |||
}}} | |||
}} | |||
<!-- Explorer level --> | <!-- Explorer level --> | ||
Line 148: | Line 163: | ||
<!-- Tactician initiative --> | <!-- Tactician initiative --> | ||
{{#lvardef: t_initiative | {{{t initiative | {{#if: {{#lvar:t_dex}} | {{#lvar:t_dex_mod}} }} }}} }} | {{#lvardef: t_init_bonus | {{{t init bonus | {{{init bonus|}}} }}} }} | ||
{{#lvardef: t_initiative | | |||
{{{t initiative | | |||
{{{initiative | | |||
{{#if: {{#lvar:t_dex}} | | |||
{{#expr: {{#lvar:t_dex_mod}} + {{#lvar:t_init_bonus|0}} }} | |||
}} | |||
}}} | |||
}}} | |||
}} | |||
<!-- Tactician level --> | <!-- Tactician level --> | ||
Line 221: | Line 245: | ||
<!-- Honour initiative --> | <!-- Honour initiative --> | ||
{{#lvardef: h_initiative | {{{h initiative | {{#if: {{#lvar:h_dex}} | {{#lvar: | {{#lvardef: h_init_bonus | {{{h init bonus | {{#lvar:t_init_bonus}} }}} }} | ||
{{#lvardef: h_initiative | | |||
{{{h initiative | | |||
{{{t initiative | | |||
{{{initiative | | |||
{{#if: {{#lvar:h_dex}} | | |||
{{#expr: {{#lvar:h_dex_mod}} + {{#lvar:h_init_bonus|0}} }} | |||
}} | |||
}}} | |||
}}} | |||
}}} | |||
}} | |||
<!-- Honour level --> | <!-- Honour level --> | ||
Line 262: | Line 297: | ||
{{#lvardef: h_conditions | {{{h conditions | {{#lvar:t_conditions}} }}} }} | {{#lvardef: h_conditions | {{{h conditions | {{#lvar:t_conditions}} }}} }} | ||
{{#lvardef: h_passives | {{{h passives | {{#lvar:t_passives}} }}} }} | {{#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 | }}{{Infobox creature/internal |