Chaosy
Tutorial Reviewer
- Joined
- Jun 9, 2011
- Messages
- 13,219
I am currently trying to create a spell but it fails slightly..
The following trigger should reduce the hp until it reaches 1 (aka not killing the unit) however it stays at 2 instead of 1.
The following trigger should reduce the hp until it reaches 1 (aka not killing the unit) however it stays at 2 instead of 1.
- Set target_unit = (Picked unit)
- Set life = (Life of target_unit)
- Set max_life = (Max life of target_unit)
- Set calculation = (life - (max_life / 100.00))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- calculation Less than 2.00
-
Then - Actions
- Unit - Set life of target_unit to (life - (life - 1.00))
-
Else - Actions
- Unit - Set life of target_unit to (life - (max_life / 100.00))
-
If - Conditions