- Joined
- Aug 31, 2014
- Messages
- 137
heres a trigger I wish for help for might be simple might not but the units will not use their abilitys how I want when they attack eatch other or when there is more then one unit of the same kind they wont use the ability please help
-
Sorcrcess
-
Events
- Unit - A unit Is attacked
-
Conditions
- (Unit-type of (Attacking unit)) Equal to Sorceress
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of Polymage) Equal to Player 1 (Red)
-
Then - Actions
- Set point = (Center of Blue Castle <gen>)
- Set Polymage = (Attacking unit)
- Set ptarget = (Attacked unit)
- Unit - Order Polymage to Human Sorceress - Polymorph ptarget
- Wait 0.50 game-time seconds
- Unit - Order Polymage to Attack-Move To point
- Custom script: call RemoveLocation (udg_point)
-
Else - Actions
- Set point = (Center of Red Castle <gen>)
- Set ptarget = (Attacked unit)
- Set Polymage = (Attacking unit)
- Unit - Order Polymage to Human Sorceress - Polymorph ptarget
- Set ptarget = No unit
- Set Polymage = No unit
- Wait 0.25 game-time seconds
- Unit - Order Polymage to Attack-Move To point
- Custom script: call RemoveLocation (udg_point)[trigger]
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events