|
发表于 2007-2-23 15:41:02
|
显示全部楼层
如果可以直接+T的话这样就好了
function Trig_GW_Actions takes nothing returns nothing
call AdjustPlayerStateBJ(10, GetTriggerPlayer(), PLAYER_STATE_RESOURCE_LUMBER )
call AdjustPlayerStateBJ(10, GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function InitTrig_GW takes nothing returns nothing
local integer i = 0
set gg_trg_GW = CreateTrigger( )
loop
exitwhen i > 11
call TriggerRegisterPlayerChatEvent( gg_trg_GW, Player(i), "1", true )
set i = i + 1
endloop
call TriggerAddAction( gg_trg_GW, function Trig_GW_Actions )
endfunction |
|