-
General Kite
-
Events
- Unit - A unit Is attacked
-
Conditions
- (Owner of (Attacking unit)) Equal to Hostiles
- ((Attacking unit) is A ranged attacker) Equal to True
- (Random integer number between 1 and 100) Less than or equal to (Difficulty x 25)
- (Percentage life of (Attacked unit)) Greater than or equal to (Percentage life of (Attacking unit))
-
Actions
- Set Monstermod_Attacker = (Attacking unit)
- Set Monstermod_Attacked = (Attacked unit)
- Set Monstermove[1] = (Position of Monstermod_Attacker)
- Set Monstermove[2] = (Position of Monstermod_Attacked)
- Set TempReal = ((Default acquisition range of (Attacking unit)) / 2.00)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Distance between Monstermove[1] and Monstermove[2]) Less than or equal to TempReal
-
Then - Actions
- Game - Display to (All players) the text: TEST
- Set Monstermove[3] = (Monstermove[1] offset by (Random real number between TempReal and (TempReal + 200.00)) towards (Facing of Monstermod_Attacked) degrees)
- Unit - Order (Attacking unit) to Move To (Center of (Playable map area))
- Else - Actions
-
If - Conditions
- Custom script: call RemoveLocation(udg_Monstermove[1])
- Custom script: call RemoveLocation(udg_Monstermove[2])
- Custom script: call RemoveLocation(udg_Monstermove[3])
-
Events
Problem is that it doesn't work.
The TEST text does show ingame, therefore it can be assumed that all the conditons are correct.
Ive double checked and there no other triggers that are interrupting this.