- Joined
- Jul 24, 2009
- Messages
- 37
Im making a map that changes seasons and decided to use a loop inside of a loop to change the terrain to a different type based on what use to be there, all over the map(80x80). But it stops after the loop repeats four hundred and forty times leaving only a small part of the maps terrain changed. Is there like a limit to how many times I can do, it what should i do?
JASS:
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set bj_forLoopBIndex = 0
set bj_forLoopBIndexEnd = 80
loop
exitwhen bj_forLoopBIndex > bj_forLoopBIndexEnd
if ( Trig_Change_every_3_days_Copy_Func001Func017Func002Func001Func001C() ) then
call SetTerrainTypeBJ( OffsetLocation(Location(-4032.00, -4032.00), ( 128.00 * I2R(GetForLoopIndexA()) ), ( 128.00 * I2R(GetForLoopIndexB()) )), 'Wdrt', -1, 1, 0 )
else
endif
if ( Trig_Change_every_3_days_Copy_Func001Func017Func002Func001Func002C() ) then
call SetTerrainTypeBJ( OffsetLocation(Location(-4032.00, -4032.00), ( 128.00 * I2R(GetForLoopIndexA()) ), ( 128.00 * I2R(GetForLoopIndexB()) )), 'Wdro', -1, 1, 0 )
else
endif
if ( Trig_Change_every_3_days_Copy_Func001Func017Func002Func001Func003C() ) then
call SetTerrainTypeBJ( OffsetLocation(Location(-4032.00, -4032.00), ( 128.00 * I2R(GetForLoopIndexA()) ), ( 128.00 * I2R(GetForLoopIndexB()) )), 'Wsng', -1, 1, 0 )
else
endif
if ( Trig_Change_every_3_days_Copy_Func001Func017Func002Func001Func004C() ) then
call SetTerrainTypeBJ( OffsetLocation(Location(-4032.00, -4032.00), ( 128.00 * I2R(GetForLoopIndexA()) ), ( 128.00 * I2R(GetForLoopIndexB()) )), 'Wrok', -1, 1, 0 )
else
endif
if ( Trig_Change_every_3_days_Copy_Func001Func017Func002Func001Func005C() ) then
call SetTerrainTypeBJ( OffsetLocation(Location(-4032.00, -4032.00), ( 128.00 * I2R(GetForLoopIndexA()) ), ( 128.00 * I2R(GetForLoopIndexB()) )), 'Wgrs', -1, 1, 0 )
else
endif
if ( Trig_Change_every_3_days_Copy_Func001Func017Func002Func001Func006C() ) then
call SetTerrainTypeBJ( OffsetLocation(Location(-4032.00, -4032.00), ( 128.00 * I2R(GetForLoopIndexA()) ), ( 128.00 * I2R(GetForLoopIndexB()) )), 'Wsnw', -1, 1, 0 )
else
endif
set bj_forLoopBIndex = bj_forLoopBIndex + 1
endloop
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set udg_Season = ( udg_Season + 1 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_009" )