- Joined
- Apr 17, 2017
- Messages
- 14
I'm aware that most functions wont work in an AI script.
My coding skills suck
This is for a risk based map. I want my AI to go from base to base to expand.
I know I can pass coordinates to it via jass/gui, but I want to use the build into the JASS Script to find a close target and attack move to it.
I read that you can use group enum, can you give me an example?
Doesnt do much like what I want it to, but if I could make the city an actual nearby unit, as opposed to whatever the HELL the AI determines to be an "Expansion"
How can I use groupenum to find nearby unit?
My coding skills suck
This is for a risk based map. I want my AI to go from base to base to expand.
I know I can pass coordinates to it via jass/gui, but I want to use the build into the JASS Script to find a close target and attack move to it.
I read that you can use group enum, can you give me an example?
JASS:
set city = GetEnemyExpansion()
if city == null then
call StartGetEnemyBase()
loop
exitwhen not WaitGetEnemyBase()
call SuicideSleep(1)
endloop
set city = GetEnemyBase()
endif
call SetAllianceTarget(city)
call FormGroup(3,true)
call AttackMoveKillA(city)
Doesnt do much like what I want it to, but if I could make the city an actual nearby unit, as opposed to whatever the HELL the AI determines to be an "Expansion"
How can I use groupenum to find nearby unit?