|
楼主 |
发表于 2007-2-23 14:03:04
|
显示全部楼层
function Trig_000GW_Actions takes nothing returns nothing
call AdjustPlayerStateBJ(10, ConvertedPlayer(1), PLAYER_STATE_RESOURCE_LUMBER )
call AdjustPlayerStateBJ(10, ConvertedPlayer(1), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function InitTrig_000GW takes nothing returns nothing
set gg_trg_000GW = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_000GW, ConvertedPlayer(1), "++GW", true )
call TriggerAddAction( gg_trg_000GW, function Trig_000GW_Actions )
endfunction
function InitCustomTriggers takes nothing returns nothing
call InitTrig_000GW( )
endfunction
这样对吗? |
|