Scorch I
Use
When performing an action that deals fire damage, you can spend 4 SP to apply a Biological Resistance effect to the affected target. If applied, the target gains Biological Resistance 1 for a duration of 8 seconds. Reapplying this effect while it is already active resets the duration to 8 seconds; the resistance value does not stack.
Upgrades 1
- Scorch II 2 below
Technical details
-
Tags:
No tags
-
Name:
mScorchI
-
Displayed name:
Scorch I
-
Description:
When performing an action that deals fire damage, you can spend 4 SP to apply a Biological Resistance effect to the affected target. If applied, the target gains Biological Resistance 1 for a duration of 8 seconds. Reapplying this effect while it is already active resets the duration to 8 seconds; the resistance value does not stack.
-
Condition:
-
Cost:
expCost(300,150)-0 -
Script:
master.description:add("\n\nScorch: When performing an action that deals fire damage, you can spend 4 SP to apply a Biological Resistance effect to the affected target. If applied, the target gains Biological Resistance 1 for a duration of 8 seconds.\nReapplying this effect while it is already active resets the duration to 8 seconds; the resistance value does not stack.") -
Duration:
-1
-
Type:
0
-
Recurrent script:
-
Add ons:
-
Condition:
action:tagsContain([[fireDamage]]) -
Description:
-
Variables:
vScorchDuration = 8 vScorchCost = 4 vScorchResistance = 1 -
Script:
-
Action effects:
-
Use case:
vApplyScorch*3
-
Name:
Scorch
-
Description:
You can spend vScorchCost.string SP to grant Biological Resistance vScorchResistance.string for vScorchDuration.string seconds.
-
Script:
if not character:has([[sBiologicalResistance]]) then sBiologicalResistance = character:createStat("sBiologicalResistance", "temporary") sBiologicalResistance.displayName:set("Biological resistance") end if not character:has([[mScorch]]) then mScorch = character:createEffect("mScorch") mScorch.displayName:set("Scorch") mScorch.description:set("The creature gains Biological Resistance {{vScorchResistance}}.") mScorch.script:set([=[character.sBiologicalResistance:addNormal({{vScorchResistance}}, [[natural]], [[Scorch]])]=]) mScorch:activate() end character.mScorch.duration:set({{vScorchDuration}}) -
Variables:
vApplyScorch = ToggleVariable([[vApplyScorch]],[[Scorch]])
-
-
-
Upgrades:
-
Tags:
No tags
-
Name:
mScorchII
-
Displayed name:
Scorch II
-
Description:
Increase the scorch duration to 16 seconds.
-
Condition:
-
Cost:
expCost(700,350)-150 -
Script:
master.description:replace([[Scorch: When performing an action that deals fire damage, you can spend 4 SP to apply a Biological Resistance effect to the affected target. If applied, the target gains Biological Resistance 1 for a duration of 8 seconds. Reapplying this effect while it is already active resets the duration to 8 seconds; the resistance value does not stack.]],[[Scorch: When performing an action that deals fire damage, you can spend 4 SP to apply a Biological Resistance effect to the affected target. If applied, the target gains Biological Resistance 1 for a duration of 16 seconds. Reapplying this effect while it is already active resets the duration to 16 seconds; the resistance value does not stack.]]) character.mScorchI.addOns[1].variables:replace([[vScorchDuration = 8]],[[vScorchDuration = 16]]) -
Duration:
-1
-
Type:
0
-
Recurrent script:
-
Add ons:
-