| 02-22-2007, 03:59 AM | #1 |
You have one function that screws up everything and it takes you a long time to figure out what's wrong? JASS:
set i = 0
loop
exitwhen i >= num_injuredUnits
call Sleep(0.1*num_ai)
if injured_cmd[i] == true and (not town_threatened or group_leader == null) then
call IssuePointOrder(injuredUnits[i], "move", townhallsX[0], townhallsY[0])
elseif town_threatened and group_leader != null then
call IssuePointOrder(injuredUnits[i], "move", GetUnitX(group_leader), GetUnitY(group_leader))
endif
endloop
OMG... finally I know what's wrong after so long... this has been present since ver 0.8 of my A.I |
| 02-22-2007, 04:20 AM | #2 |
lol gj i dont know what u mean but gj |
| 02-22-2007, 11:05 AM | #3 |
Congrats, but yes i hate it too. Sole reason i had to improve the debugging systems so such problems can be found with hardly any detective work myself. I'm lazy like that ... = mathematician :D |
