• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

for each integer help plz

Status
Not open for further replies.
Level 3
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" )
 
Status
Not open for further replies.
Top