Ad placeholder

Template:Action page: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
(Added support for attack roll types)
mNo edit summary
(28 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>{{PageSeo
<includeonly>{{#lvardef: filename | {{#replace:{{#replace:{{#replace:{{#replace:{{#titleparts: {{PAGENAME}} }}|:|}}|/|<nowiki/> <nowiki/>}}|(|<nowiki/> <nowiki/>}}|)|<nowiki/> <nowiki/>}}}}{{#lvardef: icon | {{#if: {{{icon|}}} | {{{icon}}} | {{#lvar: filename}} Unfaded Icon.webp }} }}{{#lvardef: controllericon | {{#if: {{{controller icon|}}} | {{{controller icon}}} | {{#lvar: filename}} Icon.webp }} }}{{#switch: {{{this is an example}}}
| yes =
| #default = {{PageSeo
| description = {{{plain summary|{{{summary}}}}}}
| description = {{{plain summary|{{{summary}}}}}}
| image = {{#if: {{{image|}}} | {{{image|}}} | NoImage Icon.webp}}
| image = {{#lvar: controllericon}}
}}
}} }}
__NOTOC__
__NOTOC__
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">[[File:{{#if: {{{image|}}} | {{{image|}}} | NoImage Icon.webp}}|frameless|right]]
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">{{#if: {{{image|}}} | [[File:{{{image}}}|frameless|right]] | {{#if: {{{controller icon|}}} | [[File:{{{controller icon}}}|frameless|right]] }}}}
{{{summary}}}
{{{summary}}}
<h2> Description </h2>
<h2> Description </h2>
{{{description}}} {{#if: {{{warning|}}} |
{{{description}}} {{#if: {{{extra description|}}} | {{blank}}
<p>{{Colour|white|{{{warning}}}}}</p> }}
 
{{{extra description}}}
 
}}{{#if: {{{warning|}}} |  
 
<p>{{Colour|white|{{{warning}}}}}</p>  
 
}}
{{#lvardef: hasprop | {{#if: {{{damage|}}}{{{cost|}}}{{{hit cost|}}}{{{concentration|}}}{{{recharge|}}}{{{duration|}}}{{{distance|}}}{{{aoe|}}}{{{range|}}}{{{range m|}}}{{{area|}}}{{{attack roll|}}}{{{save|}}}{{{additional|}}}|1|0}} }}
{{#lvardef: hasprop | {{#if: {{{damage|}}}{{{cost|}}}{{{hit cost|}}}{{{concentration|}}}{{{recharge|}}}{{{duration|}}}{{{distance|}}}{{{aoe|}}}{{{range|}}}{{{range m|}}}{{{area|}}}{{{attack roll|}}}{{{save|}}}{{{additional|}}}|1|0}} }}
{{#ifexpr: {{#lvar: hasprop}} > 0| == Properties ==
{{#ifexpr: {{#lvar: hasprop}} > 0| == Properties ==
Line 31: Line 40:
     | per = {{{damage per|}}}
     | per = {{{damage per|}}}
     }}</dd>
     }}</dd>
| {{#if: {{{damage|}}} |
| {{#if: {{{damage|}}} | {{Main namespace only|[[Category:Pages using deprecated parameters]]}}
<dt> Damage: </dt>
<dt> Damage: </dt>
<dd> {{DamageBlob|{{{damage|}}}}} </dd>
<dd> {{DamageBlob|{{{damage|}}}}} </dd>
}} {{#if: {{{damage2|}}} |
}} {{#if: {{{damage2|}}} | {{Main namespace only|[[Category:Pages using deprecated parameters]]}}
<dd> + {{DamageBlob|{{{damage2|}}}}} </dd>
<dd> + {{DamageBlob|{{{damage2|}}}}} </dd>
}} {{#if: {{{damage3|}}} |
}} {{#if: {{{damage3|}}} | {{Main namespace only|[[Category:Pages using deprecated parameters]]}}
<dd> + {{DamageBlob|{{{damage3|}}}}} </dd>
<dd> + {{DamageBlob|{{{damage3|}}}}} </dd>
}} {{#if: {{{damage4|}}} |
}} {{#if: {{{damage4|}}} | {{Main namespace only|[[Category:Pages using deprecated parameters]]}}
<dd> + {{DamageBlob|{{{damage4|}}}}} </dd>
<dd> + {{DamageBlob|{{{damage4|}}}}} </dd>
}} }} {{#if: {{{extra damage|}}} |
}} }} {{#if: {{{extra damage|}}} |
Line 112: Line 121:
}}{{#if: {{{range m|}}} {{{range ft|}}}
}}{{#if: {{{range m|}}} {{{range ft|}}}
| {{#if: {{{range m|}}} |  
| {{#if: {{{range m|}}} |  
     {{#if: {{{range ft|}}} | <dd> {{Range | m = {{{range m}}} | ft = {{{range ft}}} }} </dd>
     {{#if: {{{range ft|}}} | <dd> {{Range | {{{range|}}} | m = {{{range m}}} | ft = {{{range ft}}} }} </dd>
     |  <dd> {{Range | m = {{{range m}}} | ft = {{#expr:ceil({{{range m}}} * 3.280839895)}}}} </dd>
     |  <dd> {{Range | {{{range|}}} | m = {{{range m}}} | ft = {{{range ft}}} }} </dd>
     }}
     }}
   |  <dd> {{Range | m = {{#expr:{{{range ft}}} / 3.280839895 round 0}} | ft = {{{range ft}}}}} </dd>
   |  <dd> {{Range | {{{range|}}} | m = {{#expr:{{{range ft}}} / 3.280839895 round 0}} | ft = {{{range ft}}}}} </dd>
   }}
   }}
| {{#if: {{{range|}}}
| {{#if: {{{range|}}}
Line 143: Line 152:
{{{additional}}}| {{blank}}
{{{additional}}}| {{blank}}
}}  
}}  
{{#if: {{{higher levels|}}} | == At Higher Levels ==}}
{{#if: {{{higher levels|}}} | {{blank}}
{{trim|{{#if: {{{higher levels|}}} | {{{higher levels}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter -->
 
{{clear}}</div>
== At Higher Levels ==
{{#if: {{{variants|}}} |
{{{higher levels}}}  
}}  
</div> {{#if: {{{variants|}}} | {{blank}}
 
== Variants ==
== Variants ==


Line 153: Line 165:
</div>
</div>


}}
}}{{#if: {{{condition|}}} | {{blank}}
{{#if: {{{condition|}}} |


== Condition: {{{condition}}} ==
== Condition: {{{condition}}} ==
Line 164: Line 175:
| duration = {{{condition duration|}}}
| duration = {{{condition duration|}}}
}}
}}
{{main namespace only|{{Inflicts|{{{condition}}}|sai}}}}
{{main namespace only|{{Inflicts|{{{condition}}}|sai|type=spell|save={{{condition save|}}}|dc={{{condition dc|}}}|duration={{{condition duration|}}}}}}}
</div>
</div>
{{#if: {{{condition2|}}} |
}}{{#if: {{{condition2|}}} | {{blank}}


== Condition: {{{condition2}}} ==
== Condition: {{{condition2}}} ==
Line 176: Line 187:
| duration = {{{condition2 duration|}}}
| duration = {{{condition2 duration|}}}
}}
}}
{{main namespace only|{{Inflicts|{{{condition2}}}|sai}}}}
{{main namespace only|{{Inflicts|{{{condition2}}}|sai|type=spell|save={{{condition2 save|}}}|dc={{{condition2 dc|}}}|duration={{{condition2 duration|}}}}}}}
</div>
</div>
}}{{#if: {{{condition3|}}} | {{blank}}


  }}
== Condition: {{{condition3}}} ==
}}{{#if: {{{area|}}} |
 
<h2> Area: {{{area}}} </h2>


<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
The action creates {{#switch: {{{area category}}}
{{Condition | {{{condition3}}}
| cloud = a cloud
| save = {{{condition3 save|}}}
| surface = a surface
| dc = {{{condition3 dc|}}}
| #default = an area
| duration = {{{condition3 duration|}}}
}} with the following properties.
}}
{{main namespace only|{{Inflicts|{{{condition3}}}|sai|type=spell|save={{{condition3 save|}}}|dc={{{condition3 dc|}}}|duration={{{condition3 duration|}}}}}}}
</div>}}{{#if: {{{condition4|}}} | {{blank}}


* {{AOE | {{{area shape}}} | m = {{{area range m}}} | ft = {{{area range ft}}} }}
== Condition: {{{condition4}}} ==
* {{Duration | {{{area duration}}} }} {{#if: {{{area turn start damage|}}} | {{blank}}


Creatures starting their turn in the area suffer:
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
{{DamageInfo
{{Condition | {{{condition4}}}
| {{{area turn start damage}}}
| save = {{{condition4 save|}}}
| {{{area turn start damage type}}}
| dc = {{{condition4 dc|}}}
| save = {{{area turn start damage save|}}}
| duration = {{{condition4 duration|}}}
| save effect = {{{area turn start damage save effect|}}}
}}
}}
}} <!-- / area turn start damage --> {{#if: {{{area turn end damage|}}} | {{blank}}
{{main namespace only|{{Inflicts|{{{condition4}}}|sai|type=spell|save={{{condition4 save|}}}|dc={{{condition4 dc|}}}|duration={{{condition4 duration|}}}}}}}
</div>
}}{{#if: {{{condition5|}}} | {{blank}}
 
== Condition: {{{condition5}}} ==


Creatures ending their turn in the area suffer:
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
{{DamageInfo
{{Condition | {{{condition5}}}
| {{{area turn end damage}}}
| save = {{{condition5 save|}}}
| {{{area turn end damage type}}}
| dc = {{{condition5 dc|}}}
| save = {{{area turn end damage save|no}}}
| duration = {{{condition5 duration|}}}
| save effect = {{{area turn end damage save effect|}}}
}}
}}
}} <!-- / area turn end damage --> {{#if: {{{area condition|}}} | {{blank}}
{{main namespace only|{{Inflicts|{{{condition5}}}|sai|type=spell|save={{{condition5 save|}}}|dc={{{condition5 dc|}}}|duration={{{condition5 duration|}}}}}}}
</div>
}}{{#if: {{{area|}}} | {{blank}}


Creatures within the area are affected by the following conditions:
<h2> Area: {{{area}}} </h2>


{{Condition | {{{area condition}}} | save = {{{area condition save|}}}}} {{#if: {{{area condition2|}}} | {{blank}}
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
{{Condition | {{{area condition2}}} | save = {{{area condition2 save|}}}}}
{{Area full|{{{area}}}|duration={{{area duration|}}}|shape={{{area shape|}}}|range m={{{area range m|}}}|range ft={{{area range ft|}}}}}
}} {{#if: {{{area condition3|}}} | {{blank}}
{{Condition | {{{area condition3}}} | save = {{{area condition3 save|}}}}}
}} {{#if: {{{area condition4|}}} | {{blank}}
{{Condition | {{{area condition4}}} | save = {{{area condition4 save|}}}}}
}}
}}<!-- / area condition -->
</div>
</div>
}}<!-- / area -->{{#ifeq: {{{common|}}}|yes||<h2> How to learn </h2>
}}<!-- / area -->{{#ifeq: {{{common|}}}|yes||<h2> How to learn </h2>
Line 228: Line 236:
     {{#loop: level | 1 | 20 |
     {{#loop: level | 1 | 20 |
       {{#if: {{{ class learns at level {{#var:level}} |}}} | {{#lvardef:hasclasslearn|1}}{{blank}}
       {{#if: {{{ class learns at level {{#var:level}} |}}} | {{#lvardef:hasclasslearn|1}}{{blank}}
* Class level {{#var:level}}: {{#invoke: ParseList | main | {{{ class learns at level {{#var:level}} }}} | useTemplate = Class }}
* Class level {{#var:level}}: {{#invoke: ParseList | main | {{{ class learns at level {{#var:level}} }}} | makeLinks = yes }}
       }}
       }}
     }}
     }}
Line 234: Line 242:
     {{#loop: level | 1 | 20 |
     {{#loop: level | 1 | 20 |
       {{#if: {{{ race learns at level {{#var:level}} |}}} | {{#lvardef:hasracelearn|1}}{{blank}}
       {{#if: {{{ race learns at level {{#var:level}} |}}} | {{#lvardef:hasracelearn|1}}{{blank}}
* Character level {{#var:level}}: {{#invoke: ParseList | main | {{{ race learns at level {{#var:level}} }}} | useTemplate = Race }}
* Character level {{#var:level}}: {{#invoke: ParseList | main | {{{ race learns at level {{#var:level}} }}} | makeLinks = yes }}
       }}
       }}
     }}
     }}
Line 245: Line 253:
{{#lvar:races-learn-list}}
{{#lvar:races-learn-list}}


(Character level is the sum of all class levels for a multi-classed character.)
([[Character level]] is the sum of all class levels for a multi-classed character.)
   }}{{#if: {{{granted by feats|}}} | {{blank}}
   }}{{#if: {{{granted by feats|}}} | {{blank}}


Granted by feats:
Granted by feats:
{{#invoke: ParseList | main | {{{granted by feats}}} | type = htmlList| useTemplate = SAI/fixedSmall }}
{{#invoke: ParseList | main | {{{granted by feats}}} | makeLinks = yes }}
   }}{{#if: {{{granted by items|}}} | {{blank}}
   }}{{#if: {{{granted by items|}}} | {{blank}}


Line 272: Line 280:
{{{other ways to learn}}} }}
{{{other ways to learn}}} }}
}}<div class="bg3wiki-tooltip-box">
}}<div class="bg3wiki-tooltip-box">
{{#lvar: how-to-learn-content | ''(Information not yet added.)'' }}}}
{{#lvar: how-to-learn-content | ''(Information not yet added.)'' }}
</div>{{clear}}
}}{{#if: {{{notes|}}} |
<h2> Notes </h2>
<div class="bg3wiki-tooltip-box bg3wiki-tooltip">
{{{notes}}}
</div>
}}{{#if: {{{bugs|}}} |
<h2> Bugs </h2>
<div class="bg3wiki-tooltip-box bg3wiki-tooltip">
{{{bugs}}}
{{Main namespace only|[[Category:Bugs]]}}
</div>
</div>
{{clear}}
}}{{#if: {{{video|}}} |
{{#if: {{{notes|}}} | == Notes == }}
{{trim|{{#if: {{{notes|}}} | <div class="bg3wiki-tooltip-box bg3wiki-tooltip">
{{{notes}}}
</div>| {{blank}}}}}}{{#if: {{{video|}}} |
 
<h2> Visuals </h2>
<h2> Visuals </h2>
[[File:{{{video}}}]]
[[File:{{{video}}}]]
 
}}{{#if: {{{area category|}}}{{{area turn start damage|}}}{{{area turn end damage|}}}{{{area condition|}}}{{{area condition 2|}}}{{{area condition 3|}}}{{{area condition 4|}}} | {{Main namespace only|[[Category:Pages using deprecated parameters]]}} }}{{#switch: {{{this is an example}}}
| yes =
| #default = {{Main namespace only|{{#ifeq: {{#lvar: hasclasslearn}} | 1 | [[Category:Class features]]}}{{#ifeq: {{#lvar: hasracelearn}} | 1 | [[Category:Racial features]]}}{{#if: {{{cost|}}} | | [[Category:Free actions]]}}{{#ifeq: {{{common|}}}|yes|[[Category:Common actions]]}}[[Category:Class actions]]{{#if: {{{cost amount|}}}{{{cost2|}}}{{{cost2 amount|}}}{{{cost3|}}}{{{cost3 amount|}}}{{{hit cost amount|}}}{{{hit cost2|}}}{{{hit cost2 amount|}}}{{{higherlevels|}}} | [[Category:Pages using deprecated parameters]]}}{{#cargo_store:
_table = spells
| name = {{{name|{{#titleparts: {{PAGENAME}} }} }}}
| image = {{{image|}}}
| controller_icon = {{#lvar:controllericon}}
| icon = {{#lvar:icon}}
| is_spell = no
| is_weapon_action = no
| aoe = {{{aoe|}}}
| aoe_size = {{#if:{{{aoe|}}}|{{{aoe m|}}}/{{{aoe ft|}}} }}
| is_npc = {{#if:{{{npc only|}}}|yes}}
| can_upcast = {{#if:{{{higher levels|}}}|yes}}
| has_attack_roll = {{#if:{{{attack roll|}}}|yes}}
| description = {{{description|}}}
| extra_description = {{{extra description|}}}
| action_type = {{#if:{{#pos:{{{cost|}}}|reaction}}|reaction|{{#if:{{#pos:{{{cost|}}}|bonus}}|bonus|{{#if:{{#pos:{{{cost|}}}|action}}|action|{{#if:{{#pos:{{{cost|}}}|movement}}|movement|}}}}}}}}
| spell_range = {{#if:{{{range m|}}}{{{range ft|}}}|{{{range m|}}}/{{{range ft|}}}|{{{range|}}} }}
<!-- A little logic to try to make sure the list of classes only contains unique values. -->
| save = {{{save|}}}
| damage = {{{damage|}}}
| damage_type = {{{damage type|}}}
| damage_modifier = {{{damage modifier|}}}
| extra_damage = {{{extra damage|}}}
| extra_damage_type = {{{extra damage type|}}}
| extra_damage_modifier = {{{extra damage modifier|}}}
| extra_damage_2 = {{{extra damage 2|}}}
| extra_damage_type_2 = {{{extra damage type 2|}}}
| extra_damage_modifier_2 = {{{extra damage modifier 2|}}}
| extra_damage_3 = {{{extra damage 3|}}}
| extra_damage_type_3 = {{{extra damage type 3|}}}
| extra_damage_modifier_3 = {{{extra damage modifier 3|}}}
| damage_save = {{{damage save|{{{condition save|}}} }}}
| condition_duration = {{{condition duration|}}}
| recharge = {{{recharge|}}}
}}
}} }}<!-- End if type is not none --></includeonly><noinclude>
{{documentation}}{{#cargo_attach:
_table = spells
}}
}}
<!-- CATEGORIES -->{{#ifeq: {{{this is an example|}}} ||
{{#ifeq: {{#lvar: hasclasslearn}} | 1 | [[Category:Class features]]}}
{{#ifeq: {{#lvar: hasracelearn}} | 1 | [[Category:Racial features]]}}
{{#if: {{{cost|}}} | | [[Category:Free actions]]}}
{{#ifeq: {{{common|}}}|yes|[[Category:Common actions]]}}
[[Category:Class actions]]
{{#if: {{{cost amount|}}}{{{cost2|}}}{{{cost2 amount|}}}{{{cost3|}}}{{{cost3 amount|}}}{{{hit cost amount|}}}{{{hit cost2|}}}{{{hit cost2 amount|}}}{{{higherlevels|}}} | [[Category:Pages using deprecated parameters]]}}
}}<!-- End if type is not none -->
</includeonly><noinclude>
{{documentation}}
</noinclude>
</noinclude>

Navigation menu