Template:CharacterSheet: Difference between revisions

From The Wild Beyond the Witchlight
No edit summary
No edit summary
 
(127 intermediate revisions by 2 users not shown)
Line 7: Line 7:


<!-- CHARACTER -->   
<!-- CHARACTER -->   
<div>  
<div class="leftcolumn wider">
  {|class="rpgtable character"
  {|class="rpgtable character"
! colspan="4" | CHARACTER
! colspan="4" | CHARACTER
Line 13: Line 13:
| Name
| Name
| colspan="3" | {{{Name}}}
| colspan="3" | {{{Name}}}
|-
| Player
| colspan="3" | {{{Player}}}
|-  
|-  
     | Background
     | Background
Line 26: Line 29:
     | colspan="3" | {{{Subclass}}}
     | colspan="3" | {{{Subclass}}}
|-  
|-  
     | Level
     | Alignment
     | {{{Level}}}
    | colspan="3" | {{{Alignment|}}}
    | XP
     |}
     | {{{Xp|...}}}
</div>
<div class="rightcolumn smaller">
{|class="rpgtable level"
! LEVEL
|-
| <div id="base">{{{Level}}}</div>
|-
     | XP: {{{Xp|...}}}
    |}
{|class="rpgtable lost"
! LOST
|-
    | {{{LostFeature|}}}
     |}
     |}
</div>
</div>
Line 91: Line 106:
     {{Template:StatRow|Stat={{{Cha|0}}}}}
     {{Template:StatRow|Stat={{{Cha|0}}}}}
     {{Template:SkillRow|Level={{{Level|0}}}|Attr={{{Cha|0}}}|Skill=Saving Throw|SkillProf={{{ChaProf|0}}}}}
     {{Template:SkillRow|Level={{{Level|0}}}|Attr={{{Cha|0}}}|Skill=Saving Throw|SkillProf={{{ChaProf|0}}}}}
{{Template:SkillRow|Level={{{Level|0}}}|Attr={{{Cha|0}}}|Skill=Deception|SkillProf={{{Deception|0}}}}}
{{Template:SkillRow|Level={{{Level|0}}}|Attr={{{Cha|0}}}|Skill=Deception|SkillProf={{{Deception|0}}}|ExtraAttr={{{{{{DeceptionAdd|}}}|10}}}}}
{{Template:SkillRow|Level={{{Level|0}}}|Attr={{{Cha|0}}}|Skill=Intimidation|SkillProf={{{Intimidation|0}}}}}
{{Template:SkillRow|Level={{{Level|0}}}|Attr={{{Cha|0}}}|Skill=Intimidation|SkillProf={{{Intimidation|0}}}|ExtraAttr={{{{{{IntimidationAdd|}}}|10}}}}}
{{Template:SkillRow|Level={{{Level|0}}}|Attr={{{Cha|0}}}|Skill=Performance|SkillProf={{{Performance|0}}}}}
{{Template:SkillRow|Level={{{Level|0}}}|Attr={{{Cha|0}}}|Skill=Performance|SkillProf={{{Performance|0}}}|ExtraAttr={{{{{{PerformanceAdd|}}}|10}}}}}
{{Template:SkillRow|Level={{{Level|0}}}|Attr={{{Cha|0}}}|Skill=Persuasion|SkillProf={{{Persuasion|0}}}}}
{{Template:SkillRow|Level={{{Level|0}}}|Attr={{{Cha|0}}}|Skill=Persuasion|SkillProf={{{Persuasion|0}}}|ExtraAttr={{{{{{PersuasionAdd|x}}}|10}}}}}
|}
|}
   </div>
   </div>
</div>
</div>
{{#if:{{{GenericSections|}}}|
{{#if:{{{GenericSections|}}}|{{#af_foreach:{{{GenericSections}}}| |Section|{{#ifeq: {{#sub:{{#af_get: {{{Section}}} | 0 }}|0|{{#pos:{{#af_get: {{{Section}}} | 0 }}|::}}}} | Left | {{Template:DisplaySection|{{{Section}}}}} |}}}}}}
  {{#af_foreach:{{{GenericSections}}}| |Section|{{#ifeq: {{#sub:{{#af_get: {{{Section}}} | 0 }}|0|{{#pos:{{#af_get: {{{Section}}} | 0 }}|::}}}} | Left | {{Template:DisplaySection|{{{Section}}}}} |}}}}
}}
</div>
</div>
<div class="column">
<div class="column">
Line 108: Line 121:
! colspan="4" |ARMOR CLASS
! colspan="4" |ARMOR CLASS
|- class="big"  
|- class="big"  
     | {{{ArmorClass|0}}}
     | <div class="armorClass">{{#expr:{{{ArmorClass|0}}} + {{{UsesShield|0}}}*2 }}</div><div class="armorClassShield">Shield: {{Template:Circles|Circles=1|small=small|FilledCircles={{{UsesShield|0}}}|PermanentCircles=0}}</div>
|-
    | style="text-align:right;" |Shield: {{Template:Circles|Circles=1|small=small|FilledCircles={{{UsesShield|0}}}|PermanentCircles=0}}
     |}
     |}
{| class="rpgtable deathsaves"
{| class="rpgtable deathsaves"
Line 121: Line 132:
     | colspan="2"| {{Template:Circles|Circles=3|FilledCircles={{{DeathSaveFailures|0}}}|PermanentCircles=0|Break=&nbsp;}}
     | colspan="2"| {{Template:Circles|Circles=3|FilledCircles={{{DeathSaveFailures|0}}}|PermanentCircles=0|Break=&nbsp;}}
   |}
   |}
    {| class="rpgtable box"
! colspan="4" |INITIATIVE
|- class="big"
    | {{#ifexpr:floor(({{{Dex|0}}}-10)/2) + {{{InitiativeProf|0}}}*(2+floor(({{{Level|0}}}-1)/4))>0|+|}}{{#expr:floor(floor(({{{Dex|0}}}-10)/2) + {{{InitiativeProf|0}}}*(2+floor(({{{Level|0}}}-1)/4)))}}
    |}
{| class="rpgtable box"
! colspan="4" |SIZE
|- class="big smallerfont" 
    | {{{Size|0}}}
    |}
</div>
</div>
<div class="rightcolumn">   
<div class="rightcolumn">   
Line 127: Line 148:
|-  
|-  
     | Max
     | Max
| {{{MaxHp|0}}}
| {{#ifexpr:{{{MaxHp|0}}}=0|{{#expr: ({{{HitDie|1}}} + floor(({{{Con|0}}}-10)/2)) + (({{{Level|0}}}-1) * (floor({{{HitDie|1}}}/2+1) + floor(({{{Con|0}}}-10)/2)) ) }}|{{{MaxHp|0}}}}}
|-  
|-  
     | Current
     | Current
Line 133: Line 154:
  |-  
  |-  
     | Temp
     | Temp
| {{{temphp|}}}
| {{{TempHp|}}}
     |}  
     |}  
{| class="rpgtable hitdice"
{| class="rpgtable hitdice"
Line 139: Line 160:
|-  
|-  
     | Max
     | Max
| {{{Level|0}}}{{{HitDie|d1}}}
| '''{{{Level|0}}}d{{{HitDie|1}}}'''
     | Spent
     | Spent
| {{{HitDiceSpend|}}}
| {{{HitDiceSpend|}}}
     |}  
     |}
</div>
<div class="leftcolumn"> 
{| class="rpgtable box"
! colspan="4" |INITIATIVE
|- class="big"
    | {{#ifexpr:{{{Dex|0}}}>11|+|}}{{#expr:floor(({{{Dex|0}}}-10)/2)}}
    |}
</div>
<div class="rightcolumn"> 
{| class="rpgtable box"
{| class="rpgtable box"
! colspan="4" |SPEED
! colspan="4" |SPEED
|- class="big"  
|- class="big"  
     | {{{Speed|0}}}
     | {{{Speed|0}}}
     |}
     |}  
</div>
<div class="leftcolumn"> 
{| class="rpgtable box"
! colspan="4" |SIZE
|- class="big smallerfont" 
    | {{{Size|0}}}
    |}
</div>
<div class="rightcolumn"> 
{| class="rpgtable box"
{| class="rpgtable box"
! colspan="4" |PASSIVE PERCEPTION
! colspan="4" |PASSIVE PERCEPTION
Line 176: Line 179:
{| class="rpgtable""
{| class="rpgtable""
! WEAPONS/CANTRIPS
! WEAPONS/CANTRIPS
! Attack/DC
! ATT/DC
! Damage/Type
! DMG/TYPE
|- class="weapon" |
|- class="weapon" |
| {{{Weapon1|&nbsp;}}}
| {{{Weapon1|&nbsp;}}}
| {{{Weapon1AttackBonusOrDC|&nbsp;}}}
| {{#if:{{{Weapon1AttackOrDC|}}}|{{#ifeq: {{{Weapon1AttackOrDC}}} | DC | 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|0}}}}} }} }}
     | {{{Weapon1DmgAndType|&nbsp;}}}
     | {{{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|&nbsp;}}}</td></tr>}}  
     {{#ifeq: {{{Weapon1Notes}}} | | | <tr class="notes"><td class="special" colspan="3">{{{Weapon1Notes|&nbsp;}}}</td></tr>}}  
|- class="weapon" |
|- class="weapon" |
| {{{Weapon2|&nbsp;}}}
| {{{Weapon2|&nbsp;}}}
| {{{Weapon2AttackBonusOrDC|&nbsp;}}}
| {{#if:{{{Weapon2AttackOrDC|}}}|{{#ifeq: {{{Weapon2AttackOrDC}}} | DC | 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|0}}}}} }} }}
     | {{{Weapon2DmgAndType|&nbsp;}}}
     | {{{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|&nbsp;}}}</td></tr>}}  
     {{#ifeq: {{{Weapon2Notes}}} | | | <tr class="notes"><td class="special" colspan="3">{{{Weapon2Notes|&nbsp;}}}</td></tr>}}  
|- class="weapon" |
{{#if:{{{Weapon3|}}} |
| {{{Weapon3|&nbsp;}}}
{{!}}- class="weapon" {{!}}
| {{{Weapon3AttackBonusOrDC|&nbsp;}}}
{{!}} {{{Weapon3|&nbsp;}}}
     | {{{Weapon3DmgAndType|&nbsp;}}}
{{!}} {{#if:{{{Weapon3AttackOrDC|}}}|{{#ifeq: {{{Weapon3AttackOrDC}}} | DC | 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|0}}}}} }} }}
     {{!}} {{{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|&nbsp;}}}</td></tr>}}  
     {{#ifeq: {{{Weapon3Notes}}} | | | <tr class="notes"><td class="special" colspan="3">{{{Weapon3Notes|&nbsp;}}}</td></tr>}}  
     |- class="weapon" |
|}}
| {{{Weapon4|&nbsp;}}}
{{#if:{{{Weapon4|}}} |
| {{{Weapon4AttackBonusOrDC|&nbsp;}}}
     {{!}}- class="weapon" {{!}}
     | {{{Weapon4DmgAndType|&nbsp;}}}
{{!}} {{{Weapon4|&nbsp;}}}
    {{#ifeq: {{{Weapon4Notes}}} | | | <tr class="notes"><td class="special" colspan="3">{{{Weapon4Notes|&nbsp;}}}</td></tr>}}
{{!}} {{#if:{{{Weapon4AttackOrDC|}}}|{{#ifeq: {{{Weapon4AttackOrDC}}} | DC | 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|0}}}}} }}
}}
     {{!}} {{{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|&nbsp;}}}</td></tr>}}
|}}
|}
|}
</div>
</div>
Line 231: Line 239:
     | {{{SpellcastingAbility}}}
     | {{{SpellcastingAbility}}}
     |}
     |}
     {| class="rpgtable box"
     {| class="rpgtable box"
! colspan="4" |SPELLCAST. MODIFIER
! colspan="4" |SPELLCAST. MODIFIER
Line 243: Line 252:
     | {{#expr: 8 + floor(({{{{{{SpellcastingAbility}}}}}}-10)/2) + 2+floor(({{{Level|0}}}-1)/4)}}
     | {{#expr: 8 + floor(({{{{{{SpellcastingAbility}}}}}}-10)/2) + 2+floor(({{{Level|0}}}-1)/4)}}
     |}
     |}
     {| class="rpgtable box"
     {| class="rpgtable box"
! colspan="4" |SPELL ATTACK BONUS
! colspan="4" |SPELL ATTACK BONUS
Line 250: Line 260:
</div>
</div>
<div {{#ifexpr: {{{Spellcaster|0}}}=0|style="display:none;"}}>  
<div {{#ifexpr: {{{Spellcaster|0}}}=0|style="display:none;"}}>  
  {|class="rpgtable character"
  {|class="rpgtable spellslots"
! colspan="6" | SPELL SLOTS
! colspan="6" | SPELL SLOTS
|-
|-
| Level 1
| Lvl 1:
| {{#af_get: {{{SpellSlots}}} | 0 }}
| {{Template:Circles|Circles={{#af_get: {{{SpellSlots}}} | 0 }}|small=small|FilledCircles={{#af_get: {{{SpellSlotsUsed}}} | 0 }}|PermanentCircles=0|Break=}}
| Level 4
| {{#ifexpr: {{#af_get: {{{SpellSlots}}} | 3 }}=0| class="disabled"{{!}}}} Lvl 4:
| {{#af_get: {{{SpellSlots}}} | 3 }}
| {{Template:Circles|Circles={{#af_get: {{{SpellSlots}}} | 3 }}|small=small|FilledCircles={{#af_get: {{{SpellSlotsUsed}}} | 3 }}|PermanentCircles=0|Break=}}
| Level 7
| {{#ifexpr: {{#af_get: {{{SpellSlots}}} | 6 }}=0| class="disabled"{{!}}}} Lvl 7:
| {{#af_get: {{{SpellSlots}}} | 6 }}
| {{Template:Circles|Circles={{#af_get: {{{SpellSlots}}} | 6 }}|small=small|FilledCircles={{#af_get: {{{SpellSlotsUsed}}} | 6 }}|PermanentCircles=0|Break=}}
|-  
|-  
| Level 2
| {{#ifexpr: {{#af_get: {{{SpellSlots}}} | 1 }}=0| class="disabled"{{!}}}} Lvl 2:
| {{#af_get: {{{SpellSlots}}} | 1 }}
| {{Template:Circles|Circles={{#af_get: {{{SpellSlots}}} | 1 }}|small=small|FilledCircles={{#af_get: {{{SpellSlotsUsed}}} | 1 }}|PermanentCircles=0|Break=}}
| Level 5
| {{#ifexpr: {{#af_get: {{{SpellSlots}}} | 4 }}=0| class="disabled"{{!}}}} Lvl 5:
| {{#af_get: {{{SpellSlots}}} | 4 }}
| {{Template:Circles|Circles={{#af_get: {{{SpellSlots}}} | 4 }}|small=small|FilledCircles={{#af_get: {{{SpellSlotsUsed}}} | 4 }}|PermanentCircles=0|Break=}}
| Level 8
| {{#ifexpr: {{#af_get: {{{SpellSlots}}} | 7 }}=0| class="disabled"{{!}}}} Lvl 8:
| {{#af_get: {{{SpellSlots}}} | 7 }}
| {{Template:Circles|Circles={{#af_get: {{{SpellSlots}}} | 7 }}|small=small|FilledCircles={{#af_get: {{{SpellSlotsUsed}}} | 7 }}|PermanentCircles=0|Break=}}
|-
|-
| Level 3
| {{#ifexpr: {{#af_get: {{{SpellSlots}}} | 2 }}=0| class="disabled"{{!}}}} Lvl 3:
| {{#af_get: {{{SpellSlots}}} | 3 }}
| {{Template:Circles|Circles={{#af_get: {{{SpellSlots}}} | 2 }}|small=small|FilledCircles={{#af_get: {{{SpellSlotsUsed}}} | 2 }}|PermanentCircles=0|Break=}}
| Level 6
| {{#ifexpr: {{#af_get: {{{SpellSlots}}} | 5 }}=0| class="disabled"{{!}}}} Lvl 6:
| {{#af_get: {{{SpellSlots}}} | 5 }}
| {{Template:Circles|Circles={{#af_get: {{{SpellSlots}}} | 5 }}|small=small|FilledCircles={{#af_get: {{{SpellSlotsUsed}}} | 5 }}|PermanentCircles=0|Break=}}
| Level 9
| {{#ifexpr: {{#af_get: {{{SpellSlots}}} | 8 }}=0| class="disabled"{{!}}}} Lvl 9:
| {{#af_get: {{{SpellSlots}}} | 8 }}
| {{Template:Circles|Circles={{#af_get: {{{SpellSlots}}} | 8 }}|small=small|FilledCircles={{#af_get: {{{SpellSlotsUsed}}} | 8 }}|PermanentCircles=0|Break=}}
    |}
|}
</div>
</div>


<!-- Display all spells/sections  for the LEFT column -->
<!-- Display all spells/sections  for the LEFT column -->
{{#if:{{{GenericSectionsPage2|}}}|
{{#if:{{{GenericSectionsPage2|}}}|
   {{#af_foreach:{{{GenericSectionsPage2}}}| |Section|{{#switch: {{#af_get: {{{Section}}} | 1 }}
   {{#af_foreach:{{{GenericSectionsPage2}}}| |Section|{{#ifeq: {{#sub:{{#af_get: {{{Section}}} | 0 }}|0|{{#pos:{{#af_get: {{{Section}}} | 0 }}|::}}}} | Left | {{#switch: {{#af_get: {{{Section}}} | 1 }}
  | 0 | 1 | 2 | 3 | 4 | | 6 | 8 | 9 = {{Template:DisplaySpell|{{{Section}}}}}
  | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 9 = {{Template:DisplaySpell|{{{Section}}}}}
  | #default = {{Template:DisplaySection|{{{Section}}}}}}}
  | #default = {{Template:DisplaySection|{{{Section}}}}}}} |}}
   }}
   }}
}}
}}
Line 288: Line 298:
<!-- Display all spells/sections for the MIDDLE column -->
<!-- Display all spells/sections for the MIDDLE column -->
{{#if:{{{GenericSectionsPage2|}}}|
{{#if:{{{GenericSectionsPage2|}}}|
   {{#af_foreach:{{{GenericSectionsPage2}}}| |Section|{{#switch:{{#sub:{{#af_get: {{{Section}}} | 0 }}|0|{{#pos:{{#af_get: {{{Section}}} | 0 }}|::}}}} |condition1=branch1 |Middle.Spell={{Template:DisplaySpell|{{{Section}}}}} |Middle={{Template:DisplaySection|{{{Section}}}}}}}}}
   {{#af_foreach:{{{GenericSectionsPage2}}}| |Section|{{#ifeq: {{#sub:{{#af_get: {{{Section}}} | 0 }}|0|{{#pos:{{#af_get: {{{Section}}} | 0 }}|::}}}} | Middle| {{#switch: {{#af_get: {{{Section}}} | 1 }}
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 9 = {{Template:DisplaySpell|{{{Section}}}}}
| #default = {{Template:DisplaySection|{{{Section}}}}}}} |}}
  }}
}}
}}
</div>
</div>
Line 294: Line 307:
<!-- Display all spells/sections for the RIGHTcolumn -->
<!-- Display all spells/sections for the RIGHTcolumn -->
{{#if:{{{GenericSectionsPage2|}}}|
{{#if:{{{GenericSectionsPage2|}}}|
   {{#af_foreach:{{{GenericSectionsPage2}}}| |Section|{{#switch:{{#sub:{{#af_get: {{{Section}}} | 0 }}|0|{{#pos:{{#af_get: {{{Section}}} | 0 }}|::}}}} |condition1=branch1 |Right.Spell={{Template:DisplaySpell|{{{Section}}}}} |Right={{Template:DisplaySection|{{{Section}}}}}}}}}
   {{#af_foreach:{{{GenericSectionsPage2}}}| |Section|{{#ifeq: {{#sub:{{#af_get: {{{Section}}} | 0 }}|0|{{#pos:{{#af_get: {{{Section}}} | 0 }}|::}}}} | Right| {{#switch: {{#af_get: {{{Section}}} | 1 }}
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 9 = {{Template:DisplaySpell|{{{Section}}}}}
| #default = {{Template:DisplaySection|{{{Section}}}}}}} |}}
  }}
}}
}}
</div>
</div>

Latest revision as of 09:34, 18 November 2024