12,661
editsImprove variable names, pass "init bonus" to internal template, showcase use of "extra init" parameters.
m (Rename "init bonus" variables to "extra init" to be less confusing.) |
(Improve variable names, pass "init bonus" to internal template, showcase use of "extra init" parameters.) |
||
Line 18: | Line 18: | ||
{{#lvardef: cha_mod | {{#ifexpr: {{{cha}}} > 11 | + }}{{#expr: floor({{{cha}}} / 2) - 5 }} }} | {{#lvardef: cha_mod | {{#ifexpr: {{{cha}}} > 11 | + }}{{#expr: floor({{{cha}}} / 2) - 5 }} }} | ||
<!-- Initiative --> | <!-- Initiative bonus --> | ||
{{#lvardef: | {{#lvardef: init_bonus | | ||
{{{initiative | | {{{initiative | | ||
{{#if: {{{dex|}}} | | {{#if: {{{dex|}}} | | ||
Line 80: | Line 80: | ||
{{#lvardef: e_cha_mod | {{#ifexpr: {{#lvar:e_cha}} > 11 | + }}{{#expr: floor({{#lvar:e_cha}} / 2) - 5 }} }} | {{#lvardef: e_cha_mod | {{#ifexpr: {{#lvar:e_cha}} > 11 | + }}{{#expr: floor({{#lvar:e_cha}} / 2) - 5 }} }} | ||
<!-- Explorer initiative --> | <!-- Explorer initiative bonus --> | ||
{{#lvardef: e_extra_init | {{{e extra init | {{{extra init|}}} }}} }} | {{#lvardef: e_extra_init | {{{e extra init | {{{extra init|}}} }}} }} | ||
{{#lvardef: | {{#lvardef: e_init_bonus | | ||
{{{e initiative | | {{{e initiative | | ||
{{{initiative | | {{{initiative | | ||
Line 162: | Line 162: | ||
{{#lvardef: t_cha_mod | {{#ifexpr: {{#lvar:t_cha}} > 11 | + }}{{#expr: floor({{#lvar:t_cha}} / 2) - 5 }} }} | {{#lvardef: t_cha_mod | {{#ifexpr: {{#lvar:t_cha}} > 11 | + }}{{#expr: floor({{#lvar:t_cha}} / 2) - 5 }} }} | ||
<!-- Tactician initiative --> | <!-- Tactician initiative bonus --> | ||
{{#lvardef: t_extra_init | {{{t extra init | {{{extra init|}}} }}} }} | {{#lvardef: t_extra_init | {{{t extra init | {{{extra init|}}} }}} }} | ||
{{#lvardef: | {{#lvardef: t_init_bonus | | ||
{{{t initiative | | {{{t initiative | | ||
{{{initiative | | {{{initiative | | ||
Line 244: | Line 244: | ||
{{#lvardef: h_cha_mod | {{#ifexpr: {{#lvar:h_cha}} > 11 | + }}{{#expr: floor({{#lvar:h_cha}} / 2) - 5 }} }} | {{#lvardef: h_cha_mod | {{#ifexpr: {{#lvar:h_cha}} > 11 | + }}{{#expr: floor({{#lvar:h_cha}} / 2) - 5 }} }} | ||
<!-- Honour initiative --> | <!-- Honour initiative bonus --> | ||
{{#lvardef: h_extra_init | {{{h extra init | {{#lvar:t_extra_init}} }}} }} | {{#lvardef: h_extra_init | {{{h extra init | {{#lvar:t_extra_init}} }}} }} | ||
{{#lvardef: | {{#lvardef: h_init_bonus | | ||
{{{h initiative | | {{{h initiative | | ||
{{{t initiative | | {{{t initiative | | ||
Line 322: | Line 322: | ||
| hp = {{{hp|}}} | | hp = {{{hp|}}} | ||
| ac = {{{ac|}}} | | ac = {{{ac|}}} | ||
| | | init bonus = {{#lvar:init_bonus}} | ||
| prof bonus = {{#lvar:prof_bonus}} | | prof bonus = {{#lvar:prof_bonus}} | ||
| movement m = {{{movement m|}}} | | movement m = {{{movement m|}}} | ||
Line 365: | Line 365: | ||
| e hp = {{#lvar:e_hp}} | | e hp = {{#lvar:e_hp}} | ||
| e ac = {{#lvar:e_ac}} | | e ac = {{#lvar:e_ac}} | ||
| e | | e init bonus = {{#lvar:e_init_bonus}} | ||
| e prof bonus = {{#lvar:e_prof_bonus}} | | e prof bonus = {{#lvar:e_prof_bonus}} | ||
| e movement m = {{#lvar:e_movement_m}} | | e movement m = {{#lvar:e_movement_m}} | ||
Line 408: | Line 408: | ||
| t hp = {{#lvar:t_hp}} | | t hp = {{#lvar:t_hp}} | ||
| t ac = {{#lvar:t_ac}} | | t ac = {{#lvar:t_ac}} | ||
| t | | t init bonus = {{#lvar:t_init_bonus}} | ||
| t prof bonus = {{#lvar:t_prof_bonus}} | | t prof bonus = {{#lvar:t_prof_bonus}} | ||
| t movement m = {{#lvar:t_movement_m}} | | t movement m = {{#lvar:t_movement_m}} | ||
Line 451: | Line 451: | ||
| h hp = {{#lvar:h_hp}} | | h hp = {{#lvar:h_hp}} | ||
| h ac = {{#lvar:h_ac}} | | h ac = {{#lvar:h_ac}} | ||
| h | | h init bonus = {{#lvar:h_init_bonus}} | ||
| h prof bonus = {{#lvar:h_prof_bonus}} | | h prof bonus = {{#lvar:h_prof_bonus}} | ||
| h movement m = {{#lvar:h_movement_m}} | | h movement m = {{#lvar:h_movement_m}} | ||
Line 516: | Line 516: | ||
| hp = 10 | | hp = 10 | ||
| ac = 10 | | ac = 10 | ||
| | | extra init = +3 | ||
| prof bonus = +4 | | prof bonus = +4 | ||
| movement m = 9 | | movement m = 9 | ||
Line 539: | Line 539: | ||
| e hp = 8 | | e hp = 8 | ||
| e ac = 8 | | e ac = 8 | ||
| e | | e extra init = +2 | ||
| e prof bonus = +3 | | e prof bonus = +3 | ||
Line 557: | Line 557: | ||
| t hp = 12 | | t hp = 12 | ||
| t ac = 12 | | t ac = 12 | ||
| t | | t extra init = +4 | ||
| t prof bonus = +5 | | t prof bonus = +5 | ||
| t movement m = 12 | | t movement m = 12 | ||
Line 577: | Line 577: | ||
| h hp = 14 | | h hp = 14 | ||
| h ac = 14 | | h ac = 14 | ||
| h | | h extra init = +5 | ||
| h prof bonus = +6 | | h prof bonus = +6 | ||