Template:Weapon action page: Difference between revisions

Jump to navigation Jump to search
Added extra description
(Hopefully fixed last cases where (Save to negate) was showing up incorrectly)
(Added extra description)
(43 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>{{
<includeonly>{{#lvardef: name | {{{name | {{#explode: {{#titleparts: {{PAGENAME}} }} | ( | 0 }} }}}}}{{#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|}}}
#lvardef: name | {{{name | {{#explode: {{#titleparts: {{PAGENAME}} }} | ( | 0 }} }}}
}}{{
#lvardef: image | {{{image | {{#replace:{{#replace:{{#replace:{{#replace:{{#lvar:name}}|:|}}|/|}}|(|}}|)|}}.webp }}}
}}{{
#lvardef: icon | {{{icon | {{#replace:{{#replace:{{#replace:{{#replace:{{#lvar:name}}|:|}}|/|}}|(|}}|)|}} Icon.webp }}}
}}{{#switch: {{{this is an example|}}}
| yes =
| yes =
| #default = {{PageSeo
| #default = {{PageSeo
   | image = {{#lvar:image}}
   | image = {{#lvar:controllericon}}
   | description = {{{seo description|{{{description|}}}}}}
   | description = {{{seo description|{{{description|}}}}}}
   }}
   }}
}}
}}
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common"> {{#if: {{#lvar:image}} | [[File:{{#lvar:image}}|300px|right]] }}
__NOTOC__
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common"> {{#if: {{{image|}}} | [[File:{{{image}}}|frameless|right]] }}
{{{summary|'''{{#lvar:name}}''' is a [[Weapon Actions|weapon action]] {{#if: {{{weapons|}}}
{{{summary|'''{{#lvar:name}}''' is a [[Weapon Actions|weapon action]] {{#if: {{{weapons|}}}
| granted by {{#invoke: ParseList | main | {{{weapons}}} | useTemplate = RarityItem }}.
| granted by {{#invoke: ParseList | main | {{{weapons}}} | useTemplate = RarityItem }}.
| available to characters [[proficient]] in and wielding a {{#invoke: ParseList | main | {{{weapon types}}} | makeLinks = yes | makeSingular = yes | makeLowercase = yes | joinWord = or }} in their main hand.
| available to characters [[proficient]] in and wielding a {{#invoke: ParseList | main | {{{weapon types}}} | makeLinks = yes | makeSingular = yes | makeLowercase = yes | textLastDelim = <nowiki>, or </nowiki> }} in their main hand.
}} }}}
}} }}}


<h2>Description</h2>
<h2>Description</h2>


{{{description}}}
{{{description}}} {{#if: {{{extra description|}}} | {{blank}}
 
{{{extra description}}}
 
}}{{#if: {{{warning|}}} | {{blank}}
 
<p>{{Colour|white|{{{warning}}}}}</p>
 
}}


<h2>Properties</h2>
<h2>Properties</h2>


<dl class="bg3wiki-property-list">
<dl class="bg3wiki-property-list">
<dt> Cost:
{{#if: {{{cost|}}} |
<dd> {{InfoBlob | {{#switch: {{{action type|}}}
<dt> Cost:</dt>
    | movement = {{action | movement | ft = {{{movement ft}}} | m = {{{movement m}}} }}
<dd> {{InfoBlob|{{ResourceList|{{{cost}}}}}}} </dd>
    | #default = {{action | {{{action type|}}} }}
}} {{#if: {{{hit cost|}}} |
    }} }}
<dt> Cost on hit:</dt>
{{#if: {{{damage|}}} |
<dd> {{InfoBlob|{{ResourceList|{{{hit cost}}}}}}} </dd>
<dt> Damage:
}} {{#if: {{{damage|}}} |
{{#if: {{{save effect|}}} |
<dt> Damage:</dt>
<dd> {{DamageInfo | {{{damage}}} | {{{damage type}}} | modifier = {{{damage modifier|}}} | save = {{{save|}}} | save effect = {{{save effect|}}} }} |
<dd> {{DamageInfo | {{{damage}}} | {{{damage type}}} | modifier = {{{damage modifier|}}} }} </dd>
<dd> {{DamageInfo | {{{damage}}} | {{{damage type}}} | modifier = {{{damage modifier|}}} }}
}} {{#if: {{{extra damage|}}} |
}}}} {{#if: {{{extra damage|}}} |
<dd> + {{DamageInfo | {{{extra damage}}} | {{{extra damage type}}} | con = {{{extra damage con|}}} }} </dd>
<dt> Extra damage:
<dd> {{DamageInfo | {{{extra damage}}} | {{{extra damage type}}} }}
}} {{#if: {{{extra damage 2|}}} |
}} {{#if: {{{extra damage 2|}}} |
<dd> {{DamageInfo | {{{extra damage 2}}} | {{{extra damage type 2}}} }}
<dd> + {{DamageInfo | {{{extra damage 2}}} | {{{extra damage type 2}}} | con = {{{extra damage con 2|}}} }} </dd>
}} {{#if: {{{attack roll|}}} {{{range m|}}} {{{range ft|}}} {{{range|}}} {{{aoe|}}} {{{duration|}}} {{{recharge|}}} |
}} {{#if: {{{attack roll|}}} {{{range m|}}} {{{range ft|}}} {{{range|}}} {{{aoe|}}} {{{duration|}}} {{{recharge|}}} |
<dt> Details: <!-- If you add any more details below, remember to expand the list above too. -->
<dt> Details:</dt> <!-- If you add any more details below, remember to expand the list above too. -->
{{#if: {{{attack roll|}}} |
{{#if: {{{attack roll|}}} |
<dd> {{Attack Roll}}
<dd> {{Attack roll|{{{attack roll|}}}}} {{#if: {{{on miss|}}} | (On Miss: {{{on miss}}}) }}</dd>
}} {{#if: {{{save|}}} |
}} {{#if: {{{save|}}} |
<dd> {{SavingThrow|{{{save}}}|dc={{{save dc|}}}}}
<dd> {{Save | {{{save}}} | dc = {{{save dc|}}} }} {{#if: {{{on save|}}} | (On Save: {{{on save}}}) }}</dd>
}} {{#if: {{{range m|}}} {{{range ft|}}} |
}} {{#if: {{{range m|}}} {{{range ft|}}} |
<dd> {{Range | m = {{{range m}}} | ft = {{{range ft}}} }}
<dd> {{Range | m = {{{range m}}} | ft = {{{range ft}}} }} </dd>
}} {{#if: {{{range|}}} |
}} {{#if: {{{range|}}} |
<dd> {{Range | {{{range | {{{range}}} }}} }}
<dd> {{Range | {{{range | {{{range}}} }}} }} </dd>
}} {{#if: {{{aoe|}}} |
}} {{#if: {{{aoe|}}} |
<dd> {{AOE | {{{aoe}}} | m = {{{aoe m}}} | ft = {{{aoe ft}}} }}
<dd> {{AOE | {{{aoe}}} | m = {{{aoe m}}} | ft = {{{aoe ft}}} }} </dd>
}} {{#if: {{{duration|}}} |
}} {{#if: {{{duration|}}} |
<dd> {{Duration | {{{duration}}} }}
<dd> {{Duration | {{{duration}}} }} </dd>
}} {{#if: {{{recharge|}}} |
}} {{#if: {{{recharge|}}} |
<dd> {{Recharge | {{{recharge}}} }}
<dd> {{Recharge | {{{recharge}}} }} </dd>
}}
}}
}}
}}
Line 62: Line 63:
{{clear}}
{{clear}}


</div> {{#if: {{{condition|}}} | {{blank}}
</div>  
{{#if: {{{variants|}}} |
== Variants ==


<h2>Conditions</h2>
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
{{Inflicts|{{{condition}}}|weapon action}}
{{#invoke: ParseList | main | {{{variants}}} | type = htmlListNoBullets | useTemplate = SAI/fixed }}
<div class="bg3wiki-tooltip-box">
</div>
 
}}{{#if: {{{condition|}}} |
 
== Condition: {{{condition}}} ==
 
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
{{Condition | {{{condition}}}
{{Condition | {{{condition}}}
| save = {{{condition save|}}}
| save = {{{condition save|}}}
Line 72: Line 81:
| duration = {{{condition duration|}}}
| duration = {{{condition duration|}}}
}}
}}
</div>{{#if: {{{condition 2|}}} |
{{main namespace only|{{Inflicts|{{{condition}}}|sai}}}}
{{Inflicts|{{{condition 2}}}|weapon action}}
<div class="bg3wiki-tooltip-box">
{{Condition | {{{condition 2}}}
| save = {{{condition 2 save|}}}
| dc = {{{condition 2 dc|}}}
| duration = {{{condition 2 duration|}}}
}}
</div>
</div>
}}
{{#if: {{{condition2|}}} |
}} {{#if: {{{notes|}}} | {{blank}}


<h2>Notes</h2>
== Condition: {{{condition2}}} ==


<div class="bg3wiki-tooltip-box">
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
{{{notes}}}
{{Condition | {{{condition2}}}
| save = {{{condition2 save|}}}
| dc = {{{condition2 dc|}}}
| duration = {{{condition2 duration|}}}
}}
{{main namespace only|{{Inflicts|{{{condition2}}}|sai}}}}
</div>
</div>


}} {{#switch: {{{this is an example|}}}
  }}
| yes =
| #default = [[Category:Weapon Actions]] {{#switch: {{{action type|}}}
  | bonus = [[Category:Bonus Actions]]
  | movement = [[Category:Movement-Expending Actions]]
  | reaction = [[Category:Reactions]]
  | #default = [[Category:Actions]]
  }}
}}</includeonly><noinclude>
Examples follow.
 
= Piercing Strike =
 
{{WeaponActionPage
| name = Piercing Strike
| weapon types = Daggers, Pikes, Rapiers, Shortswords, Tridents
| description = Stab an enemy and possibly inflict [[Gaping Wounds (Condition)|Gaping Wounds]]. [[List_of_Creature_Types#Undead|Undead]] and [[List_of_Creature_Types#Construct|Constructs]] can't suffer '''Gaping Wounds'''.
| damage = weapon
| range = weapon
| attack roll = yes
| recharge = Short Rest
| condition = Gaping Wounds
| condition save = CON
| condition duration = 2
| this is an example = yes
}}
}}
<h2> How to learn </h2>
{{#lvardef: how-to-learn-content |
  {{#lvardef: classes-learn-list |
    {{#loop: level | 1 | 20 |
      {{#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 }}
      }}
    }}
  }}{{#if: {{#lvar:classes-learn-list}} |


{{clear}}
Classes:
{{#lvar:classes-learn-list}}
  }}{{#if: {{{granted by feats|}}} | {{blank}}


= Gargantuan Cleave =
Granted by feats:
{{#invoke: ParseList | main | {{{granted by feats}}} | makeLinks = yes }}
  }}{{#cargo_query:
tables=weapons
|fields= _pageName = page, name, legacy
|where=special_weapon_actions HOLDS "{{PAGENAME}}"
|order by=weapons._pageName
|more results text=
|intro=Granted by the weapons:<ul style="list-style: none;">
|outre=</ul>
|default=
|format=template
|named args = yes
|template=Passive sources/format
}}{{#if: {{{used by creatures|}}} | {{blank}}


{{WeaponActionPage
Used by creatures:
| name = Gargantuan Cleave
{{#invoke: ParseList | main | {{{used by creatures}}} | makeLinks = yes }}
| weapons = Very Heavy Greataxe
  }}{{#if: {{{variant of|}}} | {{blank}}
| description = Swing your weapon with all your might. You can attack multiple targets, but become Off Balanced.
 
| damage = weapon
This action is a variation of:<br>
| extra damage = 1d6
{{SAI|{{{variant of}}}|w=40}}
| extra damage type = Slashing
  }}{{#if:{{{other ways to learn|}}} | {{blank}}
| aoe = cone
Other ways to learn:
| aoe m = 1.5
| aoe ft = 5
| attack roll = yes
| recharge = Short Rest
| this is an example = yes
}}


{{clear}}
{{{other ways to learn}}} }}
}}<div class="bg3wiki-tooltip-box">
{{#lvar: how-to-learn-content | ''(Information not yet added.)'' }}
</div>
{{#if: {{{notes|}}} | {{blank}}


= Pommel Strike =
<h2>Notes</h2>


{{WeaponActionPage
<div class="bg3wiki-tooltip-box">
| name = Pommel Strike
{{{notes}}}
| action type = bonus
</div>
| weapon types = Greatswords, Longswords
| description = Make a non-lethal attack against an enemy and possibly [[Dazed (Condition)|daze]] them.
| damage = 1d4
| damage type = Bludgeoning
| damage modifier = Strength
| attack roll = yes
| range = melee
| condition = Dazed
| condition save = CON
| condition duration = 2
| recharge = Short Rest
| this is an example = yes
}}


{{clear}}
}} {{#if: {{{bugs|}}} |


= Brace (Melee) =
<h2> Bugs </h2>


{{WeaponActionPage
<div class="bg3wiki-tooltip-box">
| name = Brace (Melee)
{{{bugs}}}
| action type = movement
{{Main namespace only|[[Category:Bugs]]}}
| movement ft = 20
</div>
| movement m = 6
}} {{Main namespace only|{{#if: {{{cost|}}} | | [[Category:Free actions]]}}
| weapon types = Glaives, Pikes
[[Category:Weapon actions]] {{#cargo_store:  
| description = Spend {{distance|ft=20}} of your [[Movement Speed|movement]]. For the rest of your turn, roll melee damage twice and use the highest result.
_table = spells
| duration = 1
| recharge = Short Rest
| this is an example = yes
}}
 
{{clear}}
 
= Tenacity =
 
{{WeaponActionPage
| name = Tenacity
| action type = reaction
| weapon types = Greatclubs, Maces, Mauls, Morningstars
| description = When you miss an attack, deal {{DamageType|Bludgeoning}} damage equal to your [[Ability Score Modifier|Strength Modifier]] (or a minimum of 1).
| this is an example = yes
}}
 
{{clear}}
 
= Zephyr Flash =
{{WeaponActionPage
|name=Zephyr Flash
|description=Rush forward, creating an air vortex that blasts foes and possibly inflicts {{Cond|Bleeding}}.
|damage=6d8
|save effect = half
|weapons=Nyrulna
|damage type=Thunder
|recharge=Short Rest
|condition=Bleeding
|condition save=DEX
|condition duration=3
|range m=12
|range ft=40
|save = Dexterity
|this is an example = yes
}}
 
{{clear}}
 
----
 
[[Category:Page generating templates]]
 
{{#cargo_declare: _table = weapon_actions
| 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><includeonly>{{#switch: {{{this is an example|}}}
| yes =
| #default = {{#cargo_store: _table = weapon_actions
| name = {{#lvar:name}}
| name = {{#lvar:name}}
| image = {{#lvar:image}}
| image = {{{image|}}}
| controller_icon = {{#lvar:controllericon}}
| icon = {{#lvar:icon}}
| icon = {{#lvar:icon}}
| action_type = {{{action type|action}}}
| 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|}}}
| description = {{{description|}}}
| condition_duration = {{{condition duration|0}}}
| 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|}}} }}
| 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>
{{documentation}}{{#cargo_attach:
_table = spells
}}
}}
}}</includeonly>
</noinclude>

Navigation menu