- Joined
- May 21, 2015
- Messages
- 70
heya again there is another trigger i want to know if it is MUI, and if not can you help and point out whats wrong.
>
>
-
Protection Learn
-
Events
-
Unit - A unit Learns a skill
-
-
Conditions
-
(Learned Hero Skill) Equal to Protection (Warrior)
-
-
Actions
-
Trigger - Add to Protection Run <gen> the event (Unit - ProtectionCaster[Index] Takes damage)
-
-
-
Protection
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Protection (Warrior)
-
-
Actions
-
Set Index = (Player number of (Owner of (Casting unit)))
-
Set ProtectionCaster[Index] = (Casting unit)
-
Set ProtectionPercentage[Index] = (ProtectionPercentage[Index] + 0.15)
-
Trigger - Turn on Protection Run <gen>
-
Trigger - Turn on Protection Timer <gen>
-
-
-
Protection Run
-
Events
-
Conditions
-
Actions
-
Set ProtectionDamageTaken[Index] = (Damage taken)
-
Countdown Timer - Start ProtectionHealthRestore as a One-shot timer that will expire in 0.00 seconds
-
-
-
Protection Restore
-
Events
-
Time - ProtectionHealthRestore expires
-
-
Conditions
-
Actions
-
Unit - Set life of ProtectionCaster[Index] to ((Life of ProtectionCaster[Index]) + (ProtectionDamageTaken[Index] x ProtectionPercentage[Index]))
-
-
-
Protection Timer
-
Events
-
Time - Every 1.00 seconds of game time
-
-
Conditions
-
Actions
-
Set ProtectionTimer[Index] = (ProtectionTimer[Index] + 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
ProtectionTimer[Index] Greater than or equal to 15
-
-
Then - Actions
-
Trigger - Turn off Protection Run <gen>
-
-
Else - Actions
-
Trigger - Turn off (This trigger)
-
Set ProtectionPercentage[Index] = 0.00
-
-
-
-