- Joined
- Mar 1, 2013
- Messages
- 555
I am making an AI for may map with GUI and am not sure which of these 2 methods would be fastest for the computer.
There can be up to 12 heroes in my map. Lets make 9 of them AI players. So when I code the AI, sould it be like this:
---
pick every unit in AI and do actions
set Temp_Unit to picked unit
if Temp_Unit then else...
---
or this:
---
for Temp_Int 1 to AI_Count do actions
if AI_Hero[Temp_Int] then else...
---
Please let me know if there is a better way as long as there is no JASS. I'll use custom scripts but no JASS.
Thanks for your time
There can be up to 12 heroes in my map. Lets make 9 of them AI players. So when I code the AI, sould it be like this:
---
pick every unit in AI and do actions
set Temp_Unit to picked unit
if Temp_Unit then else...
---
or this:
---
for Temp_Int 1 to AI_Count do actions
if AI_Hero[Temp_Int] then else...
---
Please let me know if there is a better way as long as there is no JASS. I'll use custom scripts but no JASS.
Thanks for your time