- Joined
- Feb 24, 2018
- Messages
- 71
Hello ! I have this trigger which boosts the target's health by 10%,20% and 30%.
-
Life Boost
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Life Boost
-
-
Actions
-
Set int = (Integer(((Max life of (Target unit of ability being cast)) - (0.10 x (Real((Level of Life Boost for (Triggering unit))))))))
-
Set int3 = (int / 100)
-
Set int = (int - (int3 x 100))
-
Set int2 = (int / 10)
-
Set int = (int - (int2 x 10))
-
For each (Integer A) from 1 to int3, do (Actions)
-
Loop - Actions
-
Unit - Add 100 HP to (Target unit of ability being cast)
-
Unit - Set level of 100 HP for (Target unit of ability being cast) to 2
-
Unit - Remove 100 HP from (Target unit of ability being cast)
-
-
-
For each (Integer A) from 1 to int2, do (Actions)
-
Loop - Actions
-
Unit - Add 10 HP to (Target unit of ability being cast)
-
Unit - Set level of 10 HP for (Target unit of ability being cast) to 2
-
Unit - Remove 10 HP from (Target unit of ability being cast)
-
-
-
For each (Integer A) from 1 to int, do (Actions)
-
Loop - Actions
-
Unit - Add 1 HP to (Target unit of ability being cast)
-
Unit - Set level of 1 HP for (Target unit of ability being cast) to 2
-
Unit - Remove 1 HP from (Target unit of ability being cast)
-
-
-
-