Name | Type | is_array | initial_value |
Active_Playes | force | No | |
Agility_DialogButton | button | Yes | |
Board | leaderboard | No | |
Choices | dialog | Yes | |
DialogButton | button | Yes | |
Fast_mode | boolean | No | false |
Game_Time | real | No | |
Game_Timer | timer | No | |
HasBlade | boolean | Yes | |
I | integer | No | |
Points | integer | Yes | |
Points_per_Interval | integer | No | 3 |
R | integer | No | |
Strength_DialogButton | button | Yes |
function Trig_Spawn_Blades_Func002C takes nothing returns integer
if ( i == 1 ) then
return 1
else
if ( i == 2 ) then
return 2
else
return 3
endif
endif
endfunction
function Trig_Spawn_Blades_Actions takes nothing returns nothing
local integer i = GetRandomInt(1, 3)
if ( Trig_Spawn_Blades_Func002C() = 1) then
call CreateItemLoc( 'I00A', GetRectCenter(gg_rct_Top_Sword_Spawn) )
else
if ( Trig_Spawn_Blades_Func002C() = 2) then
call CreateItemLoc( 'I00B', GetRectCenter(gg_rct_Bottom_Sword_Spawn) )
else
if ( Trig_Spawn_Blades_Func002C() = 3) then
call CreateItemLoc( 'I00C', GetRectCenter(gg_rct_Mid_Sword_Spawn) )
endif
endif
endif
endfunction
//===========================================================================
function InitTrig_Spawn_Blades takes nothing returns nothing
set gg_trg_Spawn_Blades = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Spawn_Blades, 360.00 )
call TriggerAddAction( gg_trg_Spawn_Blades, function Trig_Spawn_Blades_Actions )
endfunction