Template:Weapon action page: Difference between revisions

Jump to navigation Jump to search
Fixed name generation
No edit summary
(Fixed name generation)
(38 intermediate revisions by 5 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|}}}}}}
   }}
   }}
}}
}}
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common"> {{#if: {{#lvar:image}} | [[File:{{#lvar:image}}|300px|right]] }}
__NOTOC__
{{{summary|'''{{#lvar:name}}''' is a [[Weapon Actions|weapon action]] {{#if: {{{weapons|}}}
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common"> {{#if: {{{image|}}} | [[File:{{{image}}}|frameless|right]] }}
{{{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.
}} }}}
}} }}}


<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>
Line 27: Line 30:
{{#if: {{{cost|}}} |
{{#if: {{{cost|}}} |
<dt> Cost:</dt>
<dt> Cost:</dt>
<dd> {{InfoBlob|{{Resource|{{{cost}}}|{{{cost amount|1}}}}}}} {{#if: {{{cost2|}}} | + {{InfoBlob|{{Resource|{{{cost2}}}|{{{cost2 amount|1}}}}}}}}}</dd>
<dd> {{InfoBlob|{{ResourceList|{{{cost}}}}}}} </dd>
| <dt> Cost:</dt>
<dd> {{InfoBlob | {{#switch: {{{action type|}}}
    | movement = {{action | movement | ft = {{{movement ft}}} | m = {{{movement m}}} }}
    | #default = {{action | {{{action type|}}} }}
    }} }}</dd>
}} {{#if: {{{hit cost|}}} |
}} {{#if: {{{hit cost|}}} |
<dt> Cost on hit:</dt>
<dt> Cost on hit:</dt>
<dd> {{InfoBlob|{{Resource|{{{hit cost}}}|{{{hit cost amount|1}}}}}}} {{#if: {{{hit cost2|}}} | + {{InfoBlob|{{Resource|{{{hit cost2}}}|{{{hit cost2 amount|1}}}}}}}}}</dd>
<dd> {{InfoBlob|{{ResourceList|{{{hit cost}}}}}}} </dd>
}} {{#if: {{{damage|}}} |
}} {{#if: {{{damage|}}} |
<dt> Damage:
<dt> Damage:</dt>
{{#if: {{{save effect|}}} |
<dd> {{DamageInfo | {{{damage}}} | {{{damage type}}} | modifier = {{{damage modifier|}}} }} </dd>
<dd> {{DamageInfo | {{{damage}}} | {{{damage type}}} | modifier = {{{damage modifier|}}} | save = {{{save|}}} | save effect = {{{save effect|}}} }} |
}} {{#if: {{{extra damage|}}} |
<dd> {{DamageInfo | {{{damage}}} | {{{damage type}}} | modifier = {{{damage modifier|}}} }}
<dd> + {{DamageInfo | {{{extra damage}}} | {{{extra damage type}}} | con = {{{extra damage con|}}} }} </dd>
}}}} {{#if: {{{extra damage|}}} |
}} {{#if: {{{extra damage 2|}}} |
<dt> Extra damage:
<dd> + {{DamageInfo | {{{extra damage 2}}} | {{{extra damage type 2}}} | con = {{{extra damage con 2|}}} }} </dd>
{{#if: {{{extra damage con|}}} |
}} {{#if: {{{attack roll|}}} {{{range m|}}} {{{range ft|}}} {{{range|}}} {{{aoe|}}} {{{duration|}}} {{{recharge|}}} |
<dd> {{DamageInfo | {{{extra damage}}} | {{{extra damage type}}} | con }} |
<dt> Details:</dt> <!-- If you add any more details below, remember to expand the list above too. -->
<dd> {{DamageInfo | {{{extra damage}}} | {{{extra damage type}}}}}
}}}} {{#if: {{{extra damage 2|}}} |
{{#if: {{{extra damage con 2|}}} |
<dd> {{DamageInfo | {{{extra damage 2}}} | {{{extra damage type 2}}} | con }} |
<dd> {{DamageInfo | {{{extra damage 2}}} | {{{extra damage type 2}}}}}
}}}} {{#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. -->
{{#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 72: Line 63:
{{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|}}} |
 
== Condition: {{{condition}}} ==


<h2>Conditions</h2>
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
{{Inflicts|{{{condition}}}|weapon action}}
<div class="bg3wiki-tooltip-box">
{{Condition | {{{condition}}}
{{Condition | {{{condition}}}
| save = {{{condition save|}}}
| save = {{{condition save|}}}
Line 82: 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
| name = {{{name|{{#titleparts: {{PAGENAME}} }} }}}
| recharge = Short Rest
| image = {{{image|}}}
| this is an example = yes
| controller_icon = {{#lvar:controllericon}}
| icon = {{#lvar:icon}}
| is_spell = no
| is_weapon_action = yes
| aoe = {{{aoe|}}}
| aoe_size = {{#if:{{{aoe|}}}|{{{aoe m|}}}/{{{aoe ft|}}} }}
| 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|}}} }}
| 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>
{{clear}}
{{documentation}}{{#cargo_attach:
 
_table = spells
= 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}}
 
= Profane Scourge =
 
{{WeaponActionPage
| name = Profane Scourge
| 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}}
----
 
[[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}}
| image = {{#lvar:image}}
| icon = {{#lvar:icon}}
| action_type = {{{action type|action}}}
| attack_roll = {{{attack roll|no}}}
| duration = {{{duration|0}}}
| range_ft = {{{range ft|0}}}
| range_m = {{{range m|0}}}
| condition_name = {{{condition|}}}
| condition_duration = {{{condition duration|0}}}
}}
}}
}}</includeonly>
</noinclude>

Navigation menu