|
globals
dialog udg_dhk=null
button array udg_dhk1
trigger gg_trg____________________001=null
trigger gg_trg____________________002=null
endglobals
function InitGlobals takes nothing returns nothing
local integer i=0
set udg_dhk=DialogCreate()
endfunction
function Trig____________________001_Actions takes nothing returns nothing
call DialogClear(udg_dhk)
call DialogSetMessage(udg_dhk,"TRIGSTR_001")
set udg_dhk1[1]=DialogAddButtonWithHotkeyBJ(udg_dhk,"TRIGSTR_002",'A')
call DialogDisplayBJ(true,udg_dhk,GetTriggerPlayer())
endfunction
function InitTrig____________________001 takes nothing returns nothing
set gg_trg____________________001=CreateTrigger()
call TriggerRegisterPlayerEventEndCinematic(gg_trg____________________001,Player(0))
call TriggerAddAction(gg_trg____________________001,function Trig____________________001_Actions)
endfunction
function Trig____________________002_Conditions takes nothing returns boolean
return(udg_dhk1[1]==GetClickedButtonBJ())
endfunction
function Trig____________________002_Actions takes nothing returns nothing
call AdjustPlayerStateBJ(1000,GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function InitTrig____________________002 takes nothing returns nothing
set gg_trg____________________002=CreateTrigger()
call TriggerRegisterDialogEventBJ(gg_trg____________________002,udg_dhk)
call TriggerAddCondition(gg_trg____________________002,Condition(function Trig____________________002_Conditions))
call TriggerAddAction(gg_trg____________________002,function Trig____________________002_Actions)
endfunction
function InitCustomTriggers takes nothing returns nothing
call InitTrig____________________001()
call InitTrig____________________002()
endfunction
自己写的 怎么复制加到别人地图里不加钱了 |
|