heres the code
as you see it create field of 7x7 size. after both loops finish, it go on with loop x1. so on another run, new field should be offest by 420 but is not :/
weird is that text is displayed properly with 1,2,3etc, so loop dont crash or anything
EDIT: Ok what it does, it first proceed loop2 for loop1 times then it goes to loop x1 and procced ignoring loop2 and loop1 in futher loops. why?
FIXED I never reset loop1s after each x1 run... 18 viewvs and i needed to handle myself
JASS:
loop
exitwhen x1 > x2
loop
exitwhen loop1s > loop1e
set loop2s = 1
set loop2e = 7
loop
exitwhen loop2s > loop2e
set textloc = Location( GetLocationX(loc2) + loop1s * 20.00, GetLocationY(loc2) - loop2s * 20.00)
set blank<i> = CreateUnitAtLoc(Player(14), 039;e000039;, textloc, 270.00)
call UnitApplyTimedLife(blank<i>, 039;BTLF039;, life)
set i = i + 1
call RemoveLocation(textloc)
set textloc = null
set loop2s = loop2s + 1
endloop
set loop1s = loop1s + 1
endloop
if something
else if
else if
else if
endif
=> set loc2 = Location(GetLocationX(loc2) + 420.00, GetLocationY(loc2))
call DisplayTextToForce(GetPlayersAll(), I2S(x1))
set x1 = x1 + 1
endloop</i></i>
as you see it create field of 7x7 size. after both loops finish, it go on with loop x1. so on another run, new field should be offest by 420 but is not :/
weird is that text is displayed properly with 1,2,3etc, so loop dont crash or anything
EDIT: Ok what it does, it first proceed loop2 for loop1 times then it goes to loop x1 and procced ignoring loop2 and loop1 in futher loops. why?
FIXED I never reset loop1s after each x1 run... 18 viewvs and i needed to handle myself