Static discharge I
Use
When performing an action that uses the Electric element, you can spend 3 SP to apply a reactive electrical discharge effect to yourself. For the next 5 seconds, if a creature hits you with a melee action, you can use the discharge without using a reaction and the attacking creature immediately suffers 1d6 Electric damage. This damage is applied after the triggering melee hit is confirmed. The effect remains active for its full duration or until it has been triggered once, whichever occurs first. If the effect is triggered, it ends immediately after dealing damage. Reapplying this effect while it is already active resets the duration to 5 seconds; the effect does not stack and cannot trigger more than once per application.
Upgrades 1
- Static discharge II 3 below
Technical details
-
Tags:
No tags
-
Name:
mStaticDischargeI
-
Displayed name:
Static discharge I
-
Description:
When performing an action that uses the Electric element, you can spend 3 SP to apply a reactive electrical discharge effect to yourself. For the next 5 seconds, if a creature hits you with a melee action, you can use the discharge without using a reaction and the attacking creature immediately suffers 1d6 Electric damage. This damage is applied after the triggering melee hit is confirmed. The effect remains active for its full duration or until it has been triggered once, whichever occurs first. If the effect is triggered, it ends immediately after dealing damage. Reapplying this effect while it is already active resets the duration to 5 seconds; the effect does not stack and cannot trigger more than once per application.
-
Condition:
-
Cost:
expCost(500,500)-0 -
Script:
master.description:add("\n\nStatic discharge: When performing an action that uses the Electric element, you can spend 3 SP to apply a reactive electrical discharge effect to yourself. For the next 5 seconds, if a creature hits you with a melee action, you can use the discharge without using a reaction and the attacking creature immediately suffers 1d6 Electric damage. This damage is applied after the triggering melee hit is confirmed.\nThe effect remains active for its full duration or until it has been triggered once, whichever occurs first. If the effect is triggered, it ends immediately after dealing damage. Reapplying this effect while it is already active resets the duration to 5 seconds; the effect does not stack and cannot trigger more than once per application.") -
Duration:
-1
-
Type:
0
-
Recurrent script:
-
Add ons:
-
Condition:
action:tagsContain([[electricDamage]]) or action:tagsContain([[electric]]) -
Description:
-
Variables:
vStaticDischargeDuration = 5 vStaticDischargeDamage = 1 -
Script:
-
Action effects:
-
Use case:
vUseStaticDischarge
-
Name:
Static discharge
-
Description:
You can spend 3 SP to gain a Static discharge for vStaticDischargeDuration.string seconds that deals vStaticDischargeDamage.string d6 Electric damage.
-
Script:
if character:has([[mStaticDischarge]]) then mStaticDischarge = character.mStaticDischarge else mStaticDischarge = character:createEffect([[mStaticDischarge]]) mStaticDischarge.displayName:set([[Static discharge]]) mStaticDischarge.description:set([[If a creature hits you with a melee action, you can use the discharge and the attacking creature immediately suffers {{vStaticDischargeDamage}}d6 Electric damage.]]) mStaticDischarge:activate() end mStaticDischarge.duration:set({{vStaticDischargeDuration}}) -
Variables:
vUseStaticDischarge = ToggleVariable([[vUseStaticDischarge]],[[Static discharge]])
-
-
-
Upgrades:
-
Tags:
No tags
-
Name:
mStaticDischargeII
-
Displayed name:
Static discharge II
-
Description:
Increase the damage of the Static discharge to 2d6 and the duration to 6 seconds.
-
Condition:
-
Cost:
expCost(1200,600)-250 -
Script:
master.description:replace([[Static discharge: When performing an action that uses the Electric element, you can spend 3 SP to apply a reactive electrical discharge effect to yourself. For the next 5 seconds, if a creature hits you with a melee action, you can use the discharge without using a reaction and the attacking creature immediately suffers 1d6 Electric damage. This damage is applied after the triggering melee hit is confirmed. The effect remains active for its full duration or until it has been triggered once, whichever occurs first. If the effect is triggered, it ends immediately after dealing damage. Reapplying this effect while it is already active resets the duration to 5 seconds; the effect does not stack and cannot trigger more than once per application.]],[[Static discharge: When performing an action that uses the Electric element, you can spend 3 SP to apply a reactive electrical discharge effect to yourself. For the next 6 seconds, if a creature hits you with a melee action, you can use the discharge without using a reaction and the attacking creature immediately suffers 2d6 Electric damage. This damage is applied after the triggering melee hit is confirmed. The effect remains active for its full duration or until it has been triggered once, whichever occurs first. If the effect is triggered, it ends immediately after dealing damage. Reapplying this effect while it is already active resets the duration to 6 seconds; the effect does not stack and cannot trigger more than once per application.]]) character.mStaticDischargeI.addOns[1].variables:replace([[vStaticDischargeDamage = 1]],[[vStaticDischargeDamage = 2]]) character.mStaticDischargeI.addOns[1].variables:replace([[vStaticDischargeDuration = 5]],[[vStaticDischargeDuration = 6]]) -
Duration:
-1
-
Type:
0
-
Recurrent script:
-
Add ons:
-