|
-
- function invilization_1 takes nothing returns nothing
- local integer i=0
- call PlayMusic( gg_snd_bgm)
- loop
- call SetPlayerState(Player(i),PLAYER_STATE_RESOURCE_GOLD,1000)
- set i=i+1
- exitwhen i>11
- endloop
- endfunction
- function invilization_all takes nothing returns nothing
- local trigger trg_invilization = CreateTrigger()
- call TriggerAddAction(trg_invilization,function invilization_1)
- call TriggerRegisterTimerEventSingle( trg_invilization, 0.01 )
- endfunction
- //===========================================================================
- function InitTrig_GameInvilization takes nothing returns nothing
- set gg_trg_GameInvilization = CreateTrigger( )
- call TriggerAddAction( gg_trg_GameInvilization, function invilization_all )
- call DestroyTrigger(gg_trg_GameInvilization)
- endfunction
复制代码 |
|