Template:IOEffectProc: Difference between revisions
m (altering behavior to allow more generic support for 120s proc effects. Just testing at the moment, may revert if it doesn't work as expected) |
m (updating the proc120 portion to reflect behavior when the proc is slotted in an auto power) |
||
Line 1: | Line 1: | ||
<includeonly>This enhancement {{#if: {{{120|}}}|grants {{{120}}} for 120 seconds. When used in a [[Click Power|click]] power, the effect is granted every time the power is used. When used in a [[Toggle|toggle]] power, the effect persists until 120 seconds after the [[Toggle|toggle]] power is deactivated|adds {{#if: {{{custom|}}}|{{{custom}}}|{{#if: {{{other|}}}|{{#if: {{{chancemod|}}}|a {{{chancemod}}} chance|a chance}} to {{{other}}}|{{#if: {{{damage|}}}|{{#if: {{{chancemod|}}}|a {{{chancemod}}} chance|a chance}} to inflict [[Invention Origin Enhancement Proc Damage Scaling|{{{damage}}}]] damage upon|''' No valid argument provided'''}}}} your target(s)}}}}{{#switch: {{{ppm}}}|0=.|. This effect will trigger approximately {{{ppm}}} {{#ifeq: {{{ppm|}}}|1|time|times}} per minute.}}</includeonly><noinclude>{{Documentation}}</noinclude> | <includeonly>This enhancement {{#if: {{{120|}}}|grants {{{120}}} for 120 seconds. When used in a [[Click Power|click]] power, the effect is granted every time the power is used. When used in a [[Toggle|toggle]] power, the effect persists until 120 seconds after the [[Toggle|toggle]] power is deactivated. When used in an [[Auto Power|auto]] power, the effect is always active|adds {{#if: {{{custom|}}}|{{{custom}}}|{{#if: {{{other|}}}|{{#if: {{{chancemod|}}}|a {{{chancemod}}} chance|a chance}} to {{{other}}}|{{#if: {{{damage|}}}|{{#if: {{{chancemod|}}}|a {{{chancemod}}} chance|a chance}} to inflict [[Invention Origin Enhancement Proc Damage Scaling|{{{damage}}}]] damage upon|''' No valid argument provided'''}}}} your target(s)}}}}{{#switch: {{{ppm}}}|0=.|. This effect will trigger approximately {{{ppm}}} {{#ifeq: {{{ppm|}}}|1|time|times}} per minute.}}</includeonly><noinclude>{{Documentation}}</noinclude> |
Revision as of 20:06, 3 May 2022
Usage
This template requires two parameters. It must have one of the following parameters:
- custom for procs with custom text that does not fit the other, damage, or stealth formats
- other for procs that provide a chance to effect a target in a way other than damage
- damage for procs that provide a change to inflict damage on a target
- 120 for procs that provide a 120 second effect to the character from a click, toggle, or auto power
It must also have the ppm parameter to specify the approximate number of procs per minute. Entering a ppm of 0 will omit the sentence referring to the procs per minute.
An optional parameter chancemod may be provided if the enhancement text specifies a modifier (such as 'minor') for the proc chance.
A custom proc coded as below:
{{IOEffectProc|custom=a chance to reduce your target's damage resistance by 20%|ppm=3.5}}
will appear as:
This enhancement adds a chance to reduce your target's damage resistance by 20%. This effect will trigger approximately 3.5 times per minute.
An 'other' proc which includes a chance modifier coded as below:
{{IOEffectProc|chancemod=minor|other=[[Knockdown|knock down]]|ppm=1}}
will appear as:
This enhancement adds a minor chance to knock down your target(s). This effect will trigger approximately 1 time per minute.
A damage proc coded as below:
{{IOEffectProc|damage=minor energy|ppm=3}}
will appear as:
This enhancement adds a chance to inflict minor energy damage upon your target(s). This effect will trigger approximately 3 times per minute.
A stealth proc coded as below:
{{IOEffectProc|120=[[Stealth and Perception|stealth]]|ppm=0}}
will appear as:
This enhancement grants stealth for 120 seconds. When used in a click power, the effect is granted every time the power is used. When used in a toggle power, the effect persists until 120 seconds after the toggle power is deactivated. When used in an auto power, the effect is always active.