- Joined
- May 23, 2011
- Messages
- 179
Recently i was making a Map and the Leader of Microtriggers Ent. Here comes a problem. I am making a hero defense AI. The problem with the AI is that the AI will sometimes disobey the trigger :
commands
Map Attached... Please check... The other triggers in my map is smooth and no leaks but the AI is my problem.....
commands
-
Unit Attaked Admiral Config AI
-
Events
- Unit - A unit Is attacked
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Owner of (Triggering unit)) Equal to Player 1 (Red)
- (Owner of (Triggering unit)) Equal to Player 2 (Blue)
- (Owner of (Triggering unit)) Equal to Player 3 (Teal)
- (Owner of (Triggering unit)) Equal to Player 4 (Purple)
- (Owner of (Triggering unit)) Equal to Player 5 (Yellow)
-
Conditions
- ((Owner of (Triggering unit)) controller) Equal to Computer
- ((Triggering unit) is A Hero) Equal to True
-
Or - Any (Conditions) are true
-
Actions
- -------- Hero --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Owner of (Triggering unit)) controller) Equal to Computer
- ((Triggering unit) is A Hero) Equal to True
- (Percentage life of (Triggering unit)) Greater than or equal to 38.00
-
Then - Actions
- Unit - Order (Triggering unit) to Attack (Attacking unit)
-
Else - Actions
- Unit - Order (Triggering unit) to Hold Position
-
If - Conditions
- -------- Tower --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Owner of (Triggering unit)) controller) Equal to Computer
- ((Triggering unit) is A Hero) Equal to True
- (Percentage life of (Triggering unit)) Greater than or equal to 42.00
-
Or - Any (Conditions) are true
-
Conditions
- (Unit-type of (Attacking unit)) Equal to Guard Tower
- (Unit-type of (Attacking unit)) Equal to Eilite Guard Tower
-
Conditions
-
Then - Actions
- Unit - Order (Triggering unit) to Attack (Attacking unit)
-
Else - Actions
- Wait until (((Percentage life of (Triggering unit)) Equal to 40.00) or ((Percentage life of (Triggering unit)) Greater than or equal to 39.00)), checking every 0.10 seconds
- Unit - Order (Triggering unit) to Move To (Center of Sprawn Hero Admiral Army <gen>)
- Wait 2.00 seconds
- Unit - Order (Triggering unit) to Move To (Position of (Attacking unit))
-
If - Conditions
- -------- Creeps --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Owner of (Triggering unit)) controller) Equal to Computer
- ((Triggering unit) is A Hero) Equal to True
- ((Attacking unit) is A Hero) Equal to True
- (Percentage life of (Triggering unit)) Greater than or equal to 30.00
-
Or - Any (Conditions) are true
-
Conditions
- (Unit-type of (Attacking unit)) Equal to Rugbyboys
- (Unit-type of (Attacking unit)) Equal to Rugbyboys Slasher
-
Conditions
-
Then - Actions
- Unit - Order (Triggering unit) to Attack (Attacking unit)
-
Else - Actions
- Wait until ((Percentage life of (Triggering unit)) Less than or equal to 30.00), checking every 0.10 seconds
- Unit - Order (Triggering unit) to Move To (Center of Sprawn Hero Admiral Army <gen>)
- Wait 2.00 seconds
- Unit - Order (Triggering unit) to Move To (Position of Cheftain's Camp 0033 <gen>)
-
If - Conditions
- -------- Retreat --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Owner of (Triggering unit)) controller) Equal to Computer
- ((Triggering unit) is A Hero) Equal to True
- (Percentage life of (Triggering unit)) Less than or equal to 25.00
-
Then - Actions
- Wait until ((Percentage life of (Triggering unit)) Less than or equal to 25.00), checking every 0.10 seconds
- Unit - Order (Triggering unit) to Move To (Center of Sprawn Hero Admiral Army <gen>)
- Wait until ((Life of (Triggering unit)) Greater than or equal to 99.00), checking every 0.10 seconds
- Unit - Order (Triggering unit) to Move To (Position of Cheftain's Camp 0033 <gen>)
-
Else - Actions
- Wait until ((Percentage life of (Triggering unit)) Greater than or equal to 99.00), checking every 0.10 seconds
- Unit - Order (Triggering unit) to Attack (Attacking unit)
-
If - Conditions
-
Events
Map Attached... Please check... The other triggers in my map is smooth and no leaks but the AI is my problem.....
Attachments
Last edited: