Ad placeholder

Template:Weapon action page: Difference between revisions

Jump to navigation Jump to search
Store weapon actions in the spells table
mNo edit summary
(Store weapon actions in the spells table)
Line 132: Line 132:


}} {{Main namespace only|{{#if: {{{cost|}}} | | [[Category:Free actions]]}}
}} {{Main namespace only|{{#if: {{{cost|}}} | | [[Category:Free actions]]}}
[[Category:Weapon actions]] {{#cargo_store: _table = weapon_actions
[[Category:Weapon actions]] {{#cargo_store:  
| name = {{#lvar:name}}
_table = spells
| image = {{#lvar:image}}
| name = {{{name|{{#titleparts: {{PAGENAME}} }} }}}
| image = {{{image|}}}
| controller_icon = {{#lvar:controllericon}}
| icon = {{#lvar:icon}}
| icon = {{#lvar:icon}}
| action_type = {{{cost|}}}
| is_spell = no
| attack_roll = {{{attack roll|no}}}
| is_weapon_action = yes
| duration = {{{duration|0}}}
| aoe = {{{aoe|}}}
| range_ft = {{{range ft|0}}}
| aoe_size = {{#if:{{{aoe|}}}|{{{aoe m|}}}/{{{aoe ft|}}} }}
| range_m = {{{range m|0}}}
| has_attack_roll = {{#if:{{{attack roll|}}}|yes}}
| condition_name = {{{condition|}}}
| action_type = {{#if:{{#pos:{{{cost|}}}|reaction}}|reaction|{{#if:{{#pos:{{{cost|}}}|bonus}}|bonus|{{#if:{{#pos:{{{cost|}}}|action}}|action|{{#if:{{#pos:{{{cost|}}}|movement}}|movement|}}}}}}}}
| condition_duration = {{{condition duration|0}}}
| spell_range = {{#if:{{{range m|}}}{{{range ft|}}}|{{{range m|}}}/{{{range ft|}}}|{{{range|}}} }}
| save = {{{save|}}}
| damage = {{{damage|}}}
| damage_type = {{{damage type|}}}
| extra_damage = {{{extra damage|}}}
| extra_damage_type = {{{extra damage type|}}}
| damage_save = {{{damage save|{{{condition save|}}} }}}
| condition_duration = {{{condition duration|}}}
| recharge = {{{recharge|}}}
}}
}}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
{{documentation}}
{{documentation}}{{#cargo_attach:
{{#cargo_declare: _table = weapon_actions
_table = spells
| name = String (unique, mandatory)
| image = File
| icon = File
| action_type = String
| weapon_types = List (,) of String
| weapons = List (,) of Page
| description = Wikitext
| damage = String
| damage_type = String
| damage_modifier = String
| attack_roll = Boolean
| duration = Integer
<!-- "range" is an SQL keyword, so we use "range_type" -->
| range_type = String
| range_ft = Float
| range_m = Float
<!-- "condition" is an SQL keyword, so we use "condition_name" -->
| condition_name = String
| condition_save = String
| condition_duration = Integer
| recharge = String
}}
}}
</noinclude>
</noinclude>

Navigation menu