- 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)
-
-
-
((Owner of (Triggering unit)) controller) Equal to Computer
-
((Triggering unit) is A Hero) Equal to 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
-
-
-
-------- 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
-
-
-
-
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))
-
-
-
-------- 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
-
-
-
-
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>)
-
-
-
-------- 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)
-
-
-
-
Map Attached... Please check... The other triggers in my map is smooth and no leaks but the AI is my problem.....




Attachments
Last edited: