Template:CharacterSheet: Difference between revisions
From The Wild Beyond the Witchlight
No edit summary |
No edit summary |
||
Line 179: | Line 179: | ||
| {{{Weapon1| }}} | | {{{Weapon1| }}} | ||
| {{#ifeq: {{{Weapon1AttackOrDC}}} | DC | {{#expr: 8 + floor(({{{{{{Weapon1Ability}}}}}}-10)/2) + 2+floor(({{{Level|0}}}-1)/4)+{{{Weapon1MagicItemBonus}}}}} | +{{#expr:floor(floor(({{{{{{Weapon1Ability}}}}}}-10)/2) + (2+floor(({{{Level|0}}}-1)/4)))+{{{Weapon1MagicItemBonus}}}}} }} | | {{#ifeq: {{{Weapon1AttackOrDC}}} | DC | {{#expr: 8 + floor(({{{{{{Weapon1Ability}}}}}}-10)/2) + 2+floor(({{{Level|0}}}-1)/4)+{{{Weapon1MagicItemBonus}}}}} | +{{#expr:floor(floor(({{{{{{Weapon1Ability}}}}}}-10)/2) + (2+floor(({{{Level|0}}}-1)/4)))+{{{Weapon1MagicItemBonus}}}}} }} | ||
| {{{Weapon1Dmg|}}}{{#ifexpr: {{{Weapon1DmgAddAbility|0}}}=0 and {{{Weapon1MagicItemBonus|0}}}=0| | +{{#expr: {{#ifexpr: {{{Weapon1DmgAddAbility|0}}}=1 | floor(({{{{{{Weapon1Ability}}}}}}-10)/2) | 0 }}+{{{Weapon1MagicItemBonus|0}}}}} {{{Weapon1DmgType| | | {{{Weapon1Dmg|}}}{{#ifexpr: {{{Weapon1DmgAddAbility|0}}}=0 and {{{Weapon1MagicItemBonus|0}}}=0| | +{{#expr: {{#ifexpr: {{{Weapon1DmgAddAbility|0}}}=1 | floor(({{{{{{Weapon1Ability}}}}}}-10)/2) | 0 }}+{{{Weapon1MagicItemBonus|0}}}}} }} {{{Weapon1DmgType|}}} {{{Weapon1MagicDmg|}}} | ||
{{#ifeq: {{{Weapon1Notes}}} | | | <tr class="notes"><td class="special" colspan="3">{{{Weapon1Notes| }}}</td></tr>}} | {{#ifeq: {{{Weapon1Notes}}} | | | <tr class="notes"><td class="special" colspan="3">{{{Weapon1Notes| }}}</td></tr>}} | ||
|- class="weapon" | | |- class="weapon" | | ||
| {{{Weapon2| }}} | | {{{Weapon2| }}} | ||
| {{#ifeq: {{{Weapon2AttackOrDC}}} | DC | {{#expr: 8 + floor(({{{{{{Weapon2Ability}}}}}}-10)/2) + 2+floor(({{{Level|0}}}-1)/4)+{{{Weapon2MagicItemBonus}}}}} | +{{#expr:floor(floor(({{{{{{Weapon2Ability}}}}}}-10)/2) + (2+floor(({{{Level|0}}}-1)/4)))+{{{Weapon2MagicItemBonus}}}}} }} | | {{#ifeq: {{{Weapon2AttackOrDC}}} | DC | {{#expr: 8 + floor(({{{{{{Weapon2Ability}}}}}}-10)/2) + 2+floor(({{{Level|0}}}-1)/4)+{{{Weapon2MagicItemBonus}}}}} | +{{#expr:floor(floor(({{{{{{Weapon2Ability}}}}}}-10)/2) + (2+floor(({{{Level|0}}}-1)/4)))+{{{Weapon2MagicItemBonus}}}}} }} | ||
| {{{Weapon2Dmg|}}}{{#ifexpr: {{{Weapon2DmgAddAbility|0}}}=0 and {{{Weapon2MagicItemBonus|0}}}=0| | +{{#expr: {{#ifexpr: {{{Weapon2DmgAddAbility|0}}}=1 | floor(({{{{{{Weapon2Ability}}}}}}-10)/2) | 0 }}+{{{Weapon2MagicItemBonus|0}}}}} {{{Weapon2DmgType| | | {{{Weapon2Dmg|}}}{{#ifexpr: {{{Weapon2DmgAddAbility|0}}}=0 and {{{Weapon2MagicItemBonus|0}}}=0| | +{{#expr: {{#ifexpr: {{{Weapon2DmgAddAbility|0}}}=1 | floor(({{{{{{Weapon2Ability}}}}}}-10)/2) | 0 }}+{{{Weapon2MagicItemBonus|0}}}}} }} {{{Weapon2DmgType|}}}{{{Weapon2MagicDmg|}}} | ||
{{#ifeq: {{{Weapon2Notes}}} | | | <tr class="notes"><td class="special" colspan="3">{{{Weapon2Notes| }}}</td></tr>}} | {{#ifeq: {{{Weapon2Notes}}} | | | <tr class="notes"><td class="special" colspan="3">{{{Weapon2Notes| }}}</td></tr>}} | ||
|- class="weapon" | | |- class="weapon" | | ||
| {{{Weapon3| }}} | | {{{Weapon3| }}} | ||
| {{#ifeq: {{{Weapon3AttackOrDC}}} | DC | {{#expr: 8 + floor(({{{{{{Weapon3Ability}}}}}}-10)/2) + 2+floor(({{{Level|0}}}-1)/4)+{{{Weapon3MagicItemBonus}}}}} | +{{#expr:floor(floor(({{{{{{Weapon3Ability}}}}}}-10)/2) + (2+floor(({{{Level|0}}}-1)/4)))+{{{Weapon3MagicItemBonus}}}}} }} | | {{#ifeq: {{{Weapon3AttackOrDC}}} | DC | {{#expr: 8 + floor(({{{{{{Weapon3Ability}}}}}}-10)/2) + 2+floor(({{{Level|0}}}-1)/4)+{{{Weapon3MagicItemBonus}}}}} | +{{#expr:floor(floor(({{{{{{Weapon3Ability}}}}}}-10)/2) + (2+floor(({{{Level|0}}}-1)/4)))+{{{Weapon3MagicItemBonus}}}}} }} | ||
| {{{Weapon3Dmg|}}}{{#ifexpr: {{{Weapon3DmgAddAbility|0}}}=0 and {{{Weapon3MagicItemBonus|0}}}=0| | +{{#expr: {{#ifexpr: {{{Weapon3DmgAddAbility|0}}}=1 | floor(({{{{{{Weapon3Ability}}}}}}-10)/2) | 0 }}+{{{Weapon3MagicItemBonus|0}}}}} {{{Weapon3DmgType| | | {{{Weapon3Dmg|}}}{{#ifexpr: {{{Weapon3DmgAddAbility|0}}}=0 and {{{Weapon3MagicItemBonus|0}}}=0| | +{{#expr: {{#ifexpr: {{{Weapon3DmgAddAbility|0}}}=1 | floor(({{{{{{Weapon3Ability}}}}}}-10)/2) | 0 }}+{{{Weapon3MagicItemBonus|0}}}}} }} {{{Weapon3DmgType|}}} {{{Weapon3MagicDmg|}}} | ||
{{#ifeq: {{{Weapon3Notes}}} | | | <tr class="notes"><td class="special" colspan="3">{{{Weapon3Notes| }}}</td></tr>}} | {{#ifeq: {{{Weapon3Notes}}} | | | <tr class="notes"><td class="special" colspan="3">{{{Weapon3Notes| }}}</td></tr>}} | ||
|- class="weapon" | | |- class="weapon" | | ||
| {{{Weapon4| }}} | | {{{Weapon4| }}} | ||
| {{#ifeq: {{{Weapon4AttackOrDC}}} | DC | {{#expr: 8 + floor(({{{{{{Weapon4Ability}}}}}}-10)/2) + 2+floor(({{{Level|0}}}-1)/4)+{{{Weapon4MagicItemBonus}}}}} | +{{#expr:floor(floor(({{{{{{Weapon4Ability}}}}}}-10)/2) + (2+floor(({{{Level|0}}}-1)/4)))+{{{Weapon4MagicItemBonus}}}}} }} | | {{#ifeq: {{{Weapon4AttackOrDC}}} | DC | {{#expr: 8 + floor(({{{{{{Weapon4Ability}}}}}}-10)/2) + 2+floor(({{{Level|0}}}-1)/4)+{{{Weapon4MagicItemBonus}}}}} | +{{#expr:floor(floor(({{{{{{Weapon4Ability}}}}}}-10)/2) + (2+floor(({{{Level|0}}}-1)/4)))+{{{Weapon4MagicItemBonus}}}}} }} | ||
| {{{Weapon4Dmg|}}}{{#ifexpr: {{{Weapon4DmgAddAbility|0}}}=0 and {{{Weapon4MagicItemBonus|0}}}=0| | +{{#expr: {{#ifexpr: {{{Weapon4DmgAddAbility|0}}}=1 | floor(({{{{{{Weapon4Ability}}}}}}-10)/2) | 0 }}+{{{Weapon4MagicItemBonus|0}}}}} {{{Weapon4DmgType| | | {{{Weapon4Dmg|}}}{{#ifexpr: {{{Weapon4DmgAddAbility|0}}}=0 and {{{Weapon4MagicItemBonus|0}}}=0| | +{{#expr: {{#ifexpr: {{{Weapon4DmgAddAbility|0}}}=1 | floor(({{{{{{Weapon4Ability}}}}}}-10)/2) | 0 }}+{{{Weapon4MagicItemBonus|0}}}}} }} {{{Weapon4DmgType|}}}{{{Weapon4MagicDmg|}}} | ||
{{#ifeq: {{{Weapon4Notes}}} | | | <tr class="notes"><td class="special" colspan="3">{{{Weapon4Notes| }}}</td></tr>}} | {{#ifeq: {{{Weapon4Notes}}} | | | <tr class="notes"><td class="special" colspan="3">{{{Weapon4Notes| }}}</td></tr>}} | ||
|} | |} |
Revision as of 11:17, 26 October 2024