- Joined
- Dec 29, 2006
- Messages
- 994
JASS:
function InitTrig_Red_Spawn takes nothing returns nothing
set gg_trg_Red_Spawn = CreateTrigger( )
call TriggerRegisterTimerExpireEventBJ( gg_trg_Red_Spawn, udg_Next_Level )
local integer x
set x = 1
call CreateNUnitsAtLoc( udg_Monster_Amount, udg_Monster_Type, Player(11), GetRectCenter(gg_rct_Red_Spawn), bj_UNIT_FACING )
call DisplayTextToForce( bj_FORCE_PLAYER[0], ( GetUnitName(GetLastCreatedUnit()) + "s" ) )
loop
exitwhen (udg_Level_Number == 10 )
exitwhen (udg_Level_Number == 20 )
exitwhen (udg_Level_Number == 30 )
call CreateNUnitsAtLoc( udg_Monster_Amount, udg_Monster_Type, Player(11), GetRectCenter(gg_rct_Red_Spawn), bj_UNIT_FACING )
call TriggerSleepAction( 1.00 )
exitwhen x > 20
set x = x + 1
endloop
set gg_trg_Red_Spawn = null
endfunction
The problem is with declaring the integer. I keep getting error messeges with it. Help someone?