- Joined
- Jun 2, 2009
- Messages
- 1,233
Hello everyone. This is my trigger. It is working.
If yes, thank you. My problem is solved.
If no, check the bottom.
But after i do that, i am using TempPoint again but this time position
I cannot set TempPoint = Position of (Matching unit) why?
This is why because of many units can be picked?
Or we cannot use matching unit outside of the conditions? (probably this one true)
And if i did correctly (i mean my first trigger) is there any downside of my system?
This is my AI system for my map.
-
Then - Actions
-
Set TempPoint = (Position of (Picked unit))
-
Set TempGroup = (Units within 1000.00 of TempPoint matching ((((Matching unit) is in HerolarALL) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of (Picked unit))) Equal to True)))
-
Custom script: call RemoveLocation (udg_TempPoint)
-
Unit - Order (Picked unit) to Human Archmage - Blizzard (Position of (Random unit from TempGroup))
-
If yes, thank you. My problem is solved.
If no, check the bottom.
-
Then - Actions
-
Set TempPoint = (Position of (Picked unit))
-
Set TempGroup = (Units within 1000.00 of TempPoint matching ((((Matching unit) is in HerolarALL) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of (Picked unit))) Equal to True)))
-
Custom script: call RemoveLocation (udg_TempPoint)
-
Set TempPoint = (Position of (Matching unit))
-
Unit Group - Pick every unit in TempGroup and do (Actions)
-
Loop - Actions
-
Unit - Order zU_AIHero[(Integer A)] to Human Archmage - Blizzard TempPoint
-
-
-
But after i do that, i am using TempPoint again but this time position
I cannot set TempPoint = Position of (Matching unit) why?
This is why because of many units can be picked?
Or we cannot use matching unit outside of the conditions? (probably this one true)
And if i did correctly (i mean my first trigger) is there any downside of my system?
This is my AI system for my map.