Template:Effect: Difference between revisions
From Archaelund Wiki
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<onlyinclude><includeonly>{{#switch:{{#explode:{{{1|}}}|,|0}} | <onlyinclude><includeonly>{{#switch:{{#explode:{{{1|}}}|,|0}} | ||
|TagList = Stun; Paralysis; Poison | |TagList = Stun; Paralysis; Poison | ||
|Stun = Stun (Power {{#explode:{{{1|}}}|,|1}}, | |Stun = Stun (Power {{#explode:{{{1|}}}|,|1}}, {{Resistances/icons|{{#explode:{{{1|}}}|,|2}}}}{{#if:{{#explode:{{{1|}}}|,|3}}|+{{#explode:{{{1|}}}|,|3}}}} resist) | ||
|Paralysis = Paralysis (Power {{#explode:{{{1|}}}|,|1}}, | |Paralysis = Paralysis (Power {{#explode:{{{1|}}}|,|1}}, {{Resistances/icons|{{#explode:{{{1|}}}|,|2}}}}{{#if:{{#explode:{{{1|}}}|,|3}}|+{{#explode:{{{1|}}}|,|3}}}} resist) | ||
|Poison = Poison (Power {{#explode:{{{1|}}}|,|1}}, | |Poison = Poison (Power {{#explode:{{{1|}}}|,|1}}, {{Resistances/icons|{{#explode:{{{1|}}}|,|2}}}}{{#if:{{#explode:{{{1|}}}|,|3}}|+{{#explode:{{{1|}}}|,|3}}}} resist) | ||
}}</includeonly></onlyinclude> | }}</includeonly></onlyinclude> | ||
{{Documentation}} | {{Documentation}} | ||
[[Category:General Templates]] | [[Category:General Templates]] | ||
Revision as of 17:25, 6 February 2025
Description
This template contains a list of all character effects and conditions (Stun • Paralysis • Poison) and converts raw effect input (e.g. "Poison,3,4,10") into a standardized output format: Poison (Power 3,
+10 resist).
Usage
{{Effect|<effect input>}}
where <effect input> represents a vector of 4 comma-separated entries (e.g. "Poison,3,4,10") detailed below.
For generating a semicolon-separated list of all available effects (intended for documentation purposes) use
{{Effect|TagList}}
Effect input vector
| Index | Description | Value |
|---|---|---|
| 1 | The name of the effect. | one of the following tags: Stun • Paralysis • Poison |
| 2 | The power of the effect. | positive number |
| 3 | The type of resistance which is used for avoiding the effect. | the index of the resistance (see Template:Resistances) |
| 4 | An optional modifier added to the resistance value. | arbitary number |
View/Edit documentation page