- Joined
- Sep 2, 2005
- Messages
- 234
Code:
function Trig_Untitled_Trigger_001_Conditions takes nothing returns boolean
if ( not ( IsUnitAliveBJ(gg_unit_H001_0053) == true ) ) then
return false
endif
return true
endfunction
function Trig_Untitled_Trigger_001_Actions takes nothing returns nothing
call DialogDisplayBJ( true, returndialog(Hello), Player(0) )
endfunction
//===========================================================================
function InitTrig_Untitled_Trigger_001 takes nothing returns nothing
set gg_trg_Untitled_Trigger_001 = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Untitled_Trigger_001, 1.00 )
call TriggerAddCondition( gg_trg_Untitled_Trigger_001, Condition( function Trig_Untitled_Trigger_001_Conditions ) )
call TriggerAddAction( gg_trg_Untitled_Trigger_001, function Trig_Untitled_Trigger_001_Actions )
endfunction