User:Vergir/AbilityInteraction: Difference between revisions

Vergir (talk | contribs)
Darker header colors; fix Unstoppable icon; link Charges; add bullet_armor type; optional text with defaults (with help from vergir-bot LLM)
Vergir (talk | contribs)
Rename bullet_armor to bullet_effect; fix default texts for movement_restriction and charges only; remove defaults for all others (with help from vergir-bot LLM)
Line 3: Line 3:
   Parameters:
   Parameters:
     type - interaction type key (see valid values in doc)
     type - interaction type key (see valid values in doc)
     text - (optional) freeform wikitext description. Falls back to a default per type.
     text - (optional) freeform wikitext description. Only movement_restriction
          and charges have a default; all other types require explicit text.


   Color is determined automatically by type:
   Color is determined automatically by type:
     vitality (#4a7a35) : unstoppable, counterspell, debuff_resist, dispel_magic, bullet_armor
     vitality (#4a7a35) : unstoppable, counterspell, debuff_resist, dispel_magic, bullet_effect
     spirit  (#7a3fa8) : movement_restriction, ability_range, ability_duration, charges
     spirit  (#7a3fa8) : movement_restriction, ability_range, ability_duration, charges
     default  (#4a4e57) : unknown types
     default  (#4a4e57) : unknown types
Line 17: Line 18:
     | debuff_resist        = #4a7a35
     | debuff_resist        = #4a7a35
     | dispel_magic        = #4a7a35
     | dispel_magic        = #4a7a35
     | bullet_armor        = #4a7a35
     | bullet_effect        = #4a7a35
     | movement_restriction = #7a3fa8
     | movement_restriction = #7a3fa8
     | ability_range        = #7a3fa8
     | ability_range        = #7a3fa8
Line 28: Line 29:
     | debuff_resist        = Debuff_Reducer.png
     | debuff_resist        = Debuff_Reducer.png
     | dispel_magic        = Dispel_Magic.png
     | dispel_magic        = Dispel_Magic.png
     | bullet_armor        = Plated_Armor.png
     | bullet_effect        = Plated_Armor.png
     | movement_restriction = Slowing_Hex.png
     | movement_restriction = Slowing_Hex.png
     | ability_range        = Greater_Expansion.png
     | ability_range        = Greater_Expansion.png
Line 39: Line 40:
     | debuff_resist        = [[Debuff Resist]]
     | debuff_resist        = [[Debuff Resist]]
     | dispel_magic        = [[Dispel Magic]]
     | dispel_magic        = [[Dispel Magic]]
     | bullet_armor        = [[Plated Armor|Bullet Armor]]
     | bullet_effect        = [[Plated Armor|Bullet Effect]]
     | movement_restriction = [[Slowing Hex|Movement Restriction]]
     | movement_restriction = [[Slowing Hex|Movement Restriction]]
     | ability_range        = [[Ability Range]]
     | ability_range        = [[Ability Range]]
Line 47: Line 48:
   }}</div>
   }}</div>
   <div style="background:#1e1a22; padding:6px 10px; font-size:0.85rem; color:#FFEFD7;">{{#if:{{{text|}}}|{{{text}}}|{{#switch:{{{type|}}}
   <div style="background:#1e1a22; padding:6px 10px; font-size:0.85rem; color:#FFEFD7;">{{#if:{{{text|}}}|{{{text}}}|{{#switch:{{{type|}}}
     | unstoppable          = [[Unstoppable]] does not prevent this ability's effects from applying.
     | movement_restriction = This ability's cast is categorized as a movement action and will be prevented by effects that restrict movement abilities, such as [[Slowing Hex]].
    | counterspell        = [[Counterspell]] blocks debuffs applied by this ability, but not the damage.
     | charges              = This is a charged ability and interacts with items that affect [[Charges]].
    | debuff_resist        = [[Debuff Resist]] reduces the duration of debuffs applied by this ability.
    | dispel_magic        = [[Dispel Magic]] removes debuffs applied by this ability before they expire.
    | bullet_armor        = [[Plated Armor|Bullet armor]] does not reduce damage dealt by this ability.
    | movement_restriction = [[Slowing Hex|Movement restriction]] does not prevent casting this ability.
     | ability_range        = [[Ability Range]] items increase the range of this ability.
    | ability_duration    = [[Ability Duration]] items increase the duration of effects applied by this ability.
    | charges              = [[Charges]] items increase the number of charges available for this ability.
     | #default            =
     | #default            =
   }}}}</div>
   }}}}</div>
Line 69: Line 63:
| <code>type</code> || Interaction type key. Must be one of the valid values below. || Yes
| <code>type</code> || Interaction type key. Must be one of the valid values below. || Yes
|-
|-
| <code>text</code> || Description of the interaction. If omitted, a generic default text is used for the type. || No
| <code>text</code> || Description of the interaction. <code>movement_restriction</code> and <code>charges</code> have a built-in default; all other types require explicit text. || No (for movement_restriction/charges), Yes (for all others)
|}
|}


Line 82: Line 76:
* <code>debuff_resist</code> — [[Debuff Resist]]
* <code>debuff_resist</code> — [[Debuff Resist]]
* <code>dispel_magic</code> — [[Dispel Magic]]
* <code>dispel_magic</code> — [[Dispel Magic]]
* <code>bullet_armor</code> — [[Plated Armor|Bullet Armor]]
* <code>bullet_effect</code> — [[Plated Armor|Bullet Effect]]


; Spirit (dark purple, #7a3fa8)
; Spirit (dark purple, #7a3fa8)
* <code>movement_restriction</code> — [[Slowing Hex|Movement Restriction]]
* <code>movement_restriction</code> — [[Slowing Hex|Movement Restriction]] (has default text)
* <code>ability_range</code> — [[Ability Range]]
* <code>ability_range</code> — [[Ability Range]]
* <code>ability_duration</code> — [[Ability Duration]]
* <code>ability_duration</code> — [[Ability Duration]]
* <code>charges</code> — [[Charges]]
* <code>charges</code> — [[Charges]] (has default text)


=== Example ===
=== Example ===
<pre>
<pre>
<!-- With custom text -->
{{User:Vergir/AbilityInteraction
{{User:Vergir/AbilityInteraction
| type = counterspell
| type = counterspell
Line 97: Line 92:
}}
}}


<!-- Using default text -->
{{User:Vergir/AbilityInteraction
{{User:Vergir/AbilityInteraction
| type = debuff_resist
| type = charges
}}
}}
</pre>
</pre>
</noinclude>
</noinclude>