User:Toancaro/Cleric/Template:ExtraSpellTable/Row: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(18 intermediate revisions by the same user not shown)
Line 2: Line 2:
   {{#arraydefine:arr_classes|{{{classes|}}}|,|sort=asc}}
   {{#arraydefine:arr_classes|{{{classes|}}}|,|sort=asc}}
   {{#arraydefine:lifeSpells|Bless,Cure Wounds,Aid,Lesser Restoration,Revivify,Beacon of Hope,Guardian of Faith,Death Ward,Greater Restoration,Mass Cure Wounds}}
   {{#arraydefine:lifeSpells|Bless,Cure Wounds,Aid,Lesser Restoration,Revivify,Beacon of Hope,Guardian of Faith,Death Ward,Greater Restoration,Mass Cure Wounds}}
   {{#vardefine: domainName|{{#arraysearch: lifeSpells|{{{spell}}}|0|Life|}}}}
   {{#arraydefine:lightSpells|Light,Burning Hands,Faerie Fire,Flaming Sphere,Scorching Ray,Daylight,Fireball,Guardian of Faith,Wall of Fire,Destructive Wave,Flame Strike}}
  {{#arraydefine:trickerySpells|Charm Person,Disguise Self,Mirror Image,Pass Without Trace,Bestow Curse,Fear,Dimension Door,Polymorph,Dominate Person,Seeming}}
  {{#arraydefine:knowledgeSpells|Command,Sleep,Calm Emotions,Hold Person,Slow,Speak with Dead,Confusion,Otiluke's Resilient Sphere,Otiluke's Resilient Sphere,Dominate Person,Telekinesis}}
  {{#arraydefine:natureSpells|Poison Spray,Produce Flame,Shillelagh,Thorn Whip,Speak with Animals,Animal Friendship,Barkskin,Spike Growth,Plant Growth,Sleet Storm,Dominate Beast,Grasping Vine,Insect Plague,Wall of Stone}}
  {{#arraydefine:tempestSpells|Thunderwave,Fog Cloud,Gust of Wind,Shatter,Call Lightning,Sleet Storm,Freedom of Movement,Ice Storm,Destructive Wave,Insect Plague}}
  {{#arraydefine:warSpells|Divine Favour,Shield of Faith,Magic Weapon,Spiritual Weapon,Spirit Guardians,Crusader's Mantle,Crusader's Mantle,Freedom of Movement,Stoneskin,Flame Strike,Hold Monster}}
    
    
  {{#vardefine: domainName
    | {{#arraysearch: lifeSpells|{{{name}}}|0|Life|
      {{#arraysearch: lightSpells|{{{name}}}|0|Light|
      {{#arraysearch: trickerySpells|{{{name}}}|0|Trickery|
      {{#arraysearch: knowledgeSpells|{{{name}}}|0|Knowledge|
      {{#arraysearch: natureSpells|{{{name}}}|0|Nature|
      {{#arraysearch: tempestSpells|{{{name}}}|0|Tempest|
      {{#arraysearch: warSpells|{{{name}}}|0|War|
      }}
      }}
      }}
      }}
      }}
      }}
      }}
  }}
  {{#vardefine:saveShort|{{#switch: {{{save|{{!}}}}}
    | STR
    | Strength = STR
    | DEX
    | Dexterity = DEX
    | CON
    | Constitution = CON
    | INT
    | Intelligence = INT
    | WIS
    | Wisdom = WIS
    | CHAR
    | Charisma = CHA
    | #default =
  }} }}
   <tr>
   <tr>
     <td>{{SAI|{{{spell}}}|{{{name}}}|w=30|c={{#if:{{{conc|}}}| 20 | }}|r={{#if:{{{ritual|}}}|16}}}}</td>
     <td>{{Icon|{{#replace:{{#replace:{{#replace:{{#replace:{{{spell}}}|:|}}|/|<nowiki/> <nowiki/>}}|(|<nowiki/> <nowiki/>}}|)|<nowiki/> <nowiki/>}} Icon.webp|link={{{spell}}}|w=40}}</td>
     <td>{{User:Toancaro/Template:Domain|{{#var:domainName|}}}}</td>
    <td>[[{{{name}}}]]</td>
     <td>{{User:Toancaro/Template:SpellSchool|{{{spell school|}}}}}</td>
     <td>{{User:Toancaro/Template:Class|{{#var:domainName|}}}}</td>
     <td>{{User:Toancaro/Template:Class|{{{spell school|}}}}}</td>
     <td>{{#if: {{{classes|}}} | {{#arrayprint:arr_classes|<br/>|@|{{User:Toancaro/Template:Class|@}}}} | <div style="text-align:center"></div> }}</td>
     <td>{{#if: {{{classes|}}} | {{#arrayprint:arr_classes|<br/>|@|{{User:Toancaro/Template:Class|@}}}} | <div style="text-align:center"></div> }}</td>
     <td>{{#if: {{{damage|}}} | {{DamageType|{{{damage}}} }} | <div style="text-align:center"></div> }}</td>
     <td>{{#if: {{{casttime|}}} | {{Action icon|{{{casttime}}} }} | }}</td>
    <td>{{#if: {{{conc|}}} | {{Icon|Concentration Icons.png|link=Concentration|w=20}} | }}</td>
    <td>{{#if: {{{ritual|}}} | {{Icon|Ritual Spell Icon.png|link=Ritual|w=16}} | }}</td>
    <td>{{#if: {{{attack|}}} | <span style="display:inline-block">[[File:Attack Roll Icon.png|25px|alt=Attack roll|link=Attack roll]]</span> | }}</td>
    <td>{{#if: {{{save|}}} | [[{{{save}}}|{{#var:saveShort}}]] | }}</td>
    <td>{{#switch: {{{range|{{!}}}}}
      | self
      | Self = 0m
      | melee
      | Melee
      | touch
      | Touch = 1.5m
      | weapon
      | Weapon = Weapon Range
      | short ranged = 15m
      | ranged = 18m
      | #default = {{#explode: {{{range}}} |/|0 }}m
    }}</td>
    <td>{{#if: {{{area|}}}
      | {{#explode: {{{area}}} |/|0 }}m
      |
    }}</td>
    <td>{{#if: {{{damage|}}} | {{DamageIcon|{{{damage}}} }} | }}</td>
     <td>{{{description}}}</td>
     <td>{{{description}}}</td>
   </tr>
   </tr>
Line 16: Line 75:
<noinclude>
<noinclude>
{{User:Toancaro/Cleric/Template:ExtraSpellTable/Header}}
{{User:Toancaro/Cleric/Template:ExtraSpellTable/Header}}
{{User:Toancaro/Cleric/Template:ExtraSpellTable/Row|name=Cure Wounds|spell=Cure Wounds|classes=Bard, Cleric, Druid, Paladin, Ranger|spell school=Evocation|description=Heal a creature you can touch.}}
{{User:Toancaro/Cleric/Template:ExtraSpellTable/Row|name=Otiluke's Resilient Sphere|spell=Otiluke's Resilient Sphere|classes=Bard, Cleric, Druid, Paladin, Ranger|spell school=Evocation|description=Heal a creature you can touch.|range=self}}
{{User:Toancaro/Cleric/Template:ExtraSpellTable/Footer}}
{{User:Toancaro/Cleric/Template:ExtraSpellTable/Footer}}
</noinclude>
</noinclude>

Latest revision as of 08:29, 13 January 2024


Name Subclass Spell School Classes C C R A Saving Throw Icon.png Range Icon.png D Description
Otiluke's Resilient Sphere Otiluke's Resilient Sphere Knowledge Knowledge Evocation Evocation Bard Bard
Cleric Cleric
Druid Druid
Paladin Paladin
Ranger Ranger
0m Heal a creature you can touch.