Ad placeholder

Template:Weapon action page: Difference between revisions

Jump to navigation Jump to search
Updated area template name
(Added new fields "on save", "on miss" and "warning" to separate out some info from description)
(Updated area template name)
(31 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>{{
<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|}}}
#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|}}}}}}
   }}
   }}
}}
}}
__NOTOC__
__NOTOC__
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common"> {{#if: {{#lvar:image}} | [[File:{{#lvar:image}}|300px|right]] }}
<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|'''{{{name|{{#titleparts: {{PAGENAME}} }} }}}''' 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 | textLastDelim = <nowiki>, or </nowiki> }} 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.
Line 21: Line 15:
<h2>Description</h2>
<h2>Description</h2>


{{{description}}} {{#if: {{{on save|}}} | {{Colour|white|On Save: {{{on save}}}}} }} {{#if: {{{on miss|}}} |
{{{description}}} {{#if: {{{extra description|}}} | {{blank}}
<p>{{Colour|white|On Miss: {{{on miss}}}}}</p> }} {{#if: {{{warning|}}} |
 
<p>{{Colour|white|{{{warning}}}}}</p> }}
{{{extra description}}}
 
}}{{#if: {{{warning|}}} | {{blank}}
 
<p>{{Colour|white|{{{warning}}}}}</p>  
 
}}


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


<dl class="bg3wiki-property-list">
<div class="bg3wiki-property-list">
{{#if: {{{cost|}}} |
{{#if: {{{cost|}}} |
<dt> Cost:</dt>
; Cost:
<dd> {{InfoBlob|{{ResourceList|{{{cost}}}}}}} </dd>
: {{InfoBlob|{{ResourceList|{{{cost}}}}}}}
}} {{#if: {{{hit cost|}}} |
}} {{#if: {{{hit cost|}}} |
<dt> Cost on hit:</dt>
; Cost on hit:
<dd> {{InfoBlob|{{ResourceList|{{{hit cost}}}}}}} </dd>
: {{InfoBlob|{{ResourceList|{{{hit cost}}}}}}}
}} {{#if: {{{damage|}}} |
}} {{#if: {{{damage|}}} |
<dt> Damage:</dt>
; Damage:
<dd> {{DamageInfo | {{{damage}}} | {{{damage type}}} | modifier = {{{damage modifier|}}} }} </dd>
: {{DamageInfo | {{{damage}}} | {{{damage type}}} | modifier = {{{damage modifier|}}} }}
}} {{#if: {{{extra damage|}}} |
}} {{#if: {{{extra damage|}}} |
<dt> Extra damage:</dt>
: + {{DamageInfo | {{{extra damage}}} | {{{extra damage type}}} | con = {{{extra damage con|}}} }}
<dd> {{DamageInfo | {{{extra damage}}} | {{{extra damage type}}} | con = {{{extra damage con|}}} }} </dd>
}} {{#if: {{{extra damage 2|}}} |
}} {{#if: {{{extra damage 2|}}} |
<dd> + {{DamageInfo | {{{extra damage 2}}} | {{{extra damage type 2}}} | con = {{{extra damage con2|}}} }} </dd>
: + {{DamageInfo | {{{extra damage 2}}} | {{{extra damage type 2}}} | con = {{{extra damage con 2|}}} }}
}} {{#if: {{{attack roll|}}} {{{range m|}}} {{{range ft|}}} {{{range|}}} {{{aoe|}}} {{{duration|}}} {{{recharge|}}} |
}} {{#if: {{{attack roll|}}} {{{range m|}}} {{{range ft|}}} {{{range|}}} {{{aoe|}}} {{{area|}}} {{{duration|}}} {{{recharge|}}} |
<dt> Details:</dt> <!-- If you add any more details below, remember to expand the list above too. -->
; Details: <!-- 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}}}) }}
}} {{#if: {{{save|}}} |
}} {{#if: {{{save|}}} |
<dd> {{Save | {{{save}}} | dc = {{{save dc|}}} }} </dd>
: {{Save | {{{save}}} | dc = {{{save dc|}}} }} {{#if: {{{on save|}}} | (On Save: {{{on save}}}) }}
}} {{#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}}} }}
}} {{#if: {{{range|}}} |
}} {{#if: {{{range|}}} |
<dd> {{Range | {{{range | {{{range}}} }}} }} </dd>
: {{Range | {{{range | {{{range}}} }}} }}
}} {{#if: {{{aoe|}}} |
}} {{#if: {{{aoe|}}} |
<dd> {{AOE | {{{aoe}}} | m = {{{aoe m}}} | ft = {{{aoe ft}}} }} </dd>
: {{AOE | {{{aoe}}} | m = {{{aoe m}}} | ft = {{{aoe ft}}} }}
}} {{#if: {{{area|}}} |
: {{SmallIcon | Aoe Icon.png }} Creates Area: {{{area}}}
}} {{#if: {{{duration|}}} |
}} {{#if: {{{duration|}}} |
<dd> {{Duration | {{{duration}}} }} </dd>
: {{Duration | {{{duration}}} }}
}} {{#if: {{{recharge|}}} |
}} {{#if: {{{recharge|}}} |
<dd> {{Recharge | {{{recharge}}} }} </dd>
: {{Recharge | {{{recharge}}} }}
}}
}}
}}
}}
</dl>
</div>


{{clear}}
{{clear}}


</div> {{#if: {{{condition|}}} | {{blank}}
</div>  
{{#if: {{{variants|}}} |
== Variants ==
 
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
{{#invoke: ParseList | main | {{{variants}}} | type = htmlListNoBullets | useTemplate = SAI/fixed }}
</div>
 
}}{{#if: {{{condition|}}} |


<h2>Conditions</h2>
== Condition: {{{condition}}} ==
{{#switch: {{{this is an example|}}}
 
| yes =  
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
| #default = {{Inflicts|{{{condition}}}|weapon action}}
}}
<div class="bg3wiki-tooltip-box">
{{Condition | {{{condition}}}
{{Condition | {{{condition}}}
| save = {{{condition save|}}}
| save = {{{condition save|}}}
Line 77: Line 83:
| duration = {{{condition duration|}}}
| duration = {{{condition duration|}}}
}}
}}
</div>{{#if: {{{condition 2|}}} |
{{main namespace only|{{Inflicts|{{{condition}}}|sai}}}}
{{#switch: {{{this is an example|}}}
</div>
| yes =  
}} {{#if: {{{condition2|}}} |
| #default = {{Inflicts|{{{condition 2}}}|weapon action}}
 
}}
== Condition: {{{condition2}}} ==
<div class="bg3wiki-tooltip-box">
 
{{Condition | {{{condition 2}}}
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
| save = {{{condition 2 save|}}}
{{Condition | {{{condition2}}}
| dc = {{{condition 2 dc|}}}
| save = {{{condition2 save|}}}
| duration = {{{condition 2 duration|}}}
| dc = {{{condition2 dc|}}}
| duration = {{{condition2 duration|}}}
}}
}}
{{main namespace only|{{Inflicts|{{{condition2}}}|sai}}}}
</div>
}} {{#if: {{{area|}}} |
<h2> Area: {{{area}}} </h2>
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
{{Area full|{{{area}}}|duration={{{area duration|}}}|shape={{{area shape|}}}|range m={{{area range m|}}}|range ft={{{area range ft|}}}}}
</div>
</div>
}}
}} <!-- / area -->
}}
 
<h2> How to learn </h2>
<h2> How to learn </h2>
{{#lvardef: how-to-learn-content |
{{#lvardef: how-to-learn-content |
Line 105: Line 121:
   }}{{#if: {{{granted by feats|}}} | {{blank}}
   }}{{#if: {{{granted by feats|}}} | {{blank}}


Granted by the feats:
Granted by feats:
{{#invoke: ParseList | main | {{{granted by feats}}} | makeLinks = yes }}
{{#invoke: ParseList | main | {{{granted by feats}}} | makeLinks = yes }}
   }}{{#if: {{{weapons|}}} | {{blank}}
   }}{{#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}}


Granted by the items:
Used by creatures:
{{#invoke: ParseList | main | {{{weapons}}} | useTemplate = MdRarityItem }}
{{#invoke: ParseList | main | {{{used by creatures}}} | makeLinks = yes }}
  }}{{#if: {{{variant of|}}} | {{blank}}
 
This action is a variation of:<br>
{{SAI|{{{variant of}}}|w=40}}
   }}{{#if:{{{other ways to learn|}}} | {{blank}}
   }}{{#if:{{{other ways to learn|}}} | {{blank}}
Other ways to learn:
Other ways to learn:
Line 126: Line 158:
</div>
</div>


}} {{#switch: {{{this is an example|}}}
}} {{#if: {{{bugs|}}} |
| yes =
 
| #default = {{#if: {{{cost|}}} | | [[Category:Free actions]]}}
<h2> Bugs </h2>
[[Category:Weapon actions]] {{#cargo_store: _table = weapon_actions
 
| name = {{#lvar:name}}
<div class="bg3wiki-tooltip-box">
| image = {{#lvar:image}}
{{{bugs}}}
{{Main namespace only|[[Category:Bugs]]}}
</div>
}} {{Main namespace only|{{#if: {{{cost|}}} | | [[Category:Free actions]]}}
[[Category:Weapon actions]] {{#cargo_store:  
_table = spells
| 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|}}}
| 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>
}}</includeonly><noinclude>
Examples follow.
{{documentation}}{{#cargo_attach:
 
_table = spells
= Piercing Strike =
 
{{WeaponActionPage
| name = Piercing Strike
| cost = action
| 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
}}
 
{{clear}}
 
= Gargantuan Cleave =
 
{{WeaponActionPage
| name = Gargantuan Cleave
| weapons = Very Heavy Greataxe
| cost = action
| description = Swing your weapon with all your might. You can attack multiple targets, but become Off Balanced.
| damage = weapon
| extra damage = 1d6
| extra damage type = Slashing
| aoe = cone
| aoe m = 1.5
| aoe ft = 5
| attack roll = yes
| recharge = Short Rest
| this is an example = yes
}}
 
{{clear}}
 
= Pommel Strike =
 
{{WeaponActionPage
| name = Pommel Strike
| cost = bonus
| 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}}
 
= Brace (Melee) =
 
{{WeaponActionPage
| name = Brace (Melee)
| cost = movement:20
| weapon types = Glaives, Pikes
| 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.
| duration = 1
| recharge = Short Rest
| this is an example = yes
}}
 
{{clear}}
 
= Tenacity =
 
{{WeaponActionPage
| name = Tenacity
| cost = 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
|cost=action
|hit cost=bonus
|description=Rush forward, creating an air vortex that blasts foes and possibly inflicts {{Cond|Bleeding}}.
|damage=6d8
|save effect = half
|on save=Targets still take half damage.
|warning=Doesn't provoke Opportunity Attacks.
|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}}
 
= Profane Scourge =
 
{{WeaponActionPage
| name = Profane Scourge
| cost = action, bonus
| weapons = The Undead Bane
| description = Strike with subjugating fury, adding your [[proficiency bonus]] to the damage roll. If you hit a [[Fiend]] or [[Undead]] creature, deal an additional {{DamageText|2d6|Slashing|drs=t}} damage and possibly {{cond|Bane}} it.
| damage = weapon
| damage type = Slashing
| damage modifier =
| extra damage = prof
| extra damage type = Slashing
| extra damage 2 = 2d6
| extra damage type 2 = Slashing
| extra damage con 2 = yes
| attack roll = yes
| range = weapon
| recharge = Short Rest
| condition = Bane
| condition save = STR
| condition duration = 3
|this is an example = yes
}}
 
{{clear}}
 
{{WeaponActionPage
| summary = '''Menacing Attack (Melee)''' is a {{Class|Battle Master}} Action. This combat manoeuvre allows the Fighter to deal damage to enemies with Melee Weapons and possibly Frighten them.
| description = Spend a superiority die to deal {{C|Weapon Damage + 1d8 Physical damage}} and possibly {{Cond|Frightened|Frighten}} the target.
| image = Menacing Attack Melee.webp
| icon = Menacing Attack Melee Icon.webp
| cost = action
| hit cost = supdie
| concentration =
| damage = weapon
| extra damage = superiority die
| attack roll = yes
| on miss = Does not spend {{R|supdie}}.
| condition = Frightened
| condition duration = 1
| condition save = WIS
| class learns at level 3 = Battle Master
}}
 
{{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>
</noinclude>

Navigation menu