Name | Type | is_array | initial_value |
Integer_A | integer | No | |
Special_Unit | unit | No |
function Trig_Map_Initialization_Actions takes nothing returns nothing
call SetTimeOfDay( 2.00 )
call CreateFogModifierRectBJ( true, Player(0), FOG_OF_WAR_VISIBLE, gg_rct_Region_000 )
call PanCameraToTimedLocForPlayer( Player(0), GetUnitLoc(gg_unit_H000_0004), 0 )
call CameraSetSmoothingFactorBJ( 1.25 )
call SetCameraQuickPositionLocForPlayer( Player(0), GetRectCenter(gg_rct_Region_006) )
endfunction
//===========================================================================
function InitTrig_Map_Initialization takes nothing returns nothing
set gg_trg_Map_Initialization = CreateTrigger( )
call TriggerAddAction( gg_trg_Map_Initialization, function Trig_Map_Initialization_Actions )
endfunction
function Trig_Cinematic_Actions takes nothing returns nothing
call CinematicModeBJ( true, GetPlayersAll() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_044" )
call CinematicFilterGenericBJ( 0.00, BLEND_MODE_MODULATE, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0.00, 0.00, 0.00, 100, 0, 0, 0, 0.00 )
call TriggerSleepAction( 12.00 )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUT, 2, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call RotateCameraAroundLocBJ( 90, GetUnitLoc(gg_unit_H000_0004), Player(0), 6.00 )
call DisplayCineFilterBJ( false )
call CinematicFilterGenericBJ( 0.00, BLEND_MODE_BLEND, "ReplaceableTextures\\CameraMasks\\HazeAndFogFilter_Mask.blp", 0.00, 0.00, 0.00, 100, 0, 0, 0, 0.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_006" )
call TriggerSleepAction( 5.00 )
call RotateCameraAroundLocBJ( -90.00, GetUnitLoc(gg_unit_H000_0004), Player(0), 10.00 )
call TriggerSleepAction( 2.50 )
call ResetToGameCameraForPlayer( Player(0), 3.00 )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUT, 1.00, "ReplaceableTextures\\CameraMasks\\White_mask.blp", 0, 0, 0, 0 )
call TriggerSleepAction( 1.00 )
call SetUnitAnimation( gg_unit_H000_0004, "stand" )
call TriggerSleepAction( 0.50 )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEIN, 1.00, "ReplaceableTextures\\CameraMasks\\White_mask.blp", 0, 0, 0, 0 )
call TriggerSleepAction( 2.00 )
call EnableTrigger( gg_trg_Special_1 )
call EnableTrigger( gg_trg_Special_2 )
call CinematicModeBJ( false, GetPlayersAll() )
call PingMinimapLocForForce( GetPlayersAll(), GetRectCenter(gg_rct_Region_006), 4.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_007" )
endfunction
//===========================================================================
function InitTrig_Cinematic takes nothing returns nothing
set gg_trg_Cinematic = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Cinematic, 0.00 )
call TriggerAddAction( gg_trg_Cinematic, function Trig_Cinematic_Actions )
endfunction
function Trig_Camera_Actions takes nothing returns nothing
call SetCameraFieldForPlayer( Player(0), CAMERA_FIELD_TARGET_DISTANCE, 1950.00, 0 )
endfunction
//===========================================================================
function InitTrig_Camera takes nothing returns nothing
set gg_trg_Camera = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Camera, 0.01 )
call TriggerAddAction( gg_trg_Camera, function Trig_Camera_Actions )
endfunction
function Trig_Ping_Actions takes nothing returns nothing
call PingMinimapLocForForce( GetPlayersAll(), GetRectCenter(gg_rct_Region_006), 4.00 )
endfunction
//===========================================================================
function InitTrig_Ping takes nothing returns nothing
set gg_trg_Ping = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Ping, 8.00 )
call TriggerAddAction( gg_trg_Ping, function Trig_Ping_Actions )
endfunction
function Trig_Special_1_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Region_000), "Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl" )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Region_000), "Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl" )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Region_000), "Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl" )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Region_000), "Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl" )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Region_000), "Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl" )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Region_000), "Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl" )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Region_000), "Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl" )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Region_000), "Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl" )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Region_000), "Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl" )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Region_000), "Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl" )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Region_000), "Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl" )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Region_000), "Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl" )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Region_000), "Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl" )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Region_000), "Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl" )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Region_000), "Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl" )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Region_000), "Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl" )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Region_000), "Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl" )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Region_000), "Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl" )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Region_000), "Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl" )
call SetDestructableAnimationBJ( gg_dest_BTrs_7321, "work" )
call TriggerSleepAction( 2.50 )
call SetDestructableAnimationBJ( gg_dest_BTrs_7321, "stand" )
endfunction
//===========================================================================
function InitTrig_Special_1 takes nothing returns nothing
set gg_trg_Special_1 = CreateTrigger( )
call DisableTrigger( gg_trg_Special_1 )
call TriggerRegisterTimerEventPeriodic( gg_trg_Special_1, 15.00 )
call TriggerAddAction( gg_trg_Special_1, function Trig_Special_1_Actions )
endfunction
function Trig_Special_2_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'hfoo', Player(0), PolarProjectionBJ(GetUnitLoc(gg_unit_H000_0004), 128.00, AngleBetweenPoints(GetUnitLoc(gg_unit_H000_0004), GetUnitLoc(gg_unit_H001_0001))), bj_UNIT_FACING )
set udg_Special_Unit = GetLastCreatedUnit()
call UnitApplyTimedLifeBJ( 0.75, 'BTLF', GetLastCreatedUnit() )
set udg_Integer_A = 128
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = R2I(( DistanceBetweenPoints(GetUnitLoc(udg_Special_Unit), GetUnitLoc(gg_unit_H001_0001)) / 128.00 ))
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set udg_Integer_A = ( udg_Integer_A + 128 )
call CreateNUnitsAtLoc( 1, 'hfoo', Player(0), PolarProjectionBJ(GetUnitLoc(udg_Special_Unit), I2R(udg_Integer_A), AngleBetweenPoints(GetUnitLoc(gg_unit_H000_0004), GetUnitLoc(gg_unit_H001_0001))), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 0.75, 'BTLF', GetLastCreatedUnit() )
call TriggerSleepAction( 0.05 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_Special_2 takes nothing returns nothing
set gg_trg_Special_2 = CreateTrigger( )
call DisableTrigger( gg_trg_Special_2 )
call TriggerRegisterTimerEventPeriodic( gg_trg_Special_2, 12.00 )
call TriggerAddAction( gg_trg_Special_2, function Trig_Special_2_Actions )
endfunction
function Trig_Regions_1_Conditions takes nothing returns boolean
if ( not ( GetEnteringUnit() == gg_unit_H000_0004 ) ) then
return false
endif
return true
endfunction
function Trig_Regions_1_Actions takes nothing returns nothing
call PlaySoundBJ( gg_snd_InfernalPissed2 )
call SetSoundVolumeBJ( gg_snd_InfernalPissed2, 100 )
call SetSoundPitchBJ( gg_snd_InfernalPissed2, 75.00 )
call PingMinimapLocForForce( GetPlayersAll(), GetRectCenter(gg_rct_Region_006), 4.00 )
endfunction
//===========================================================================
function InitTrig_Regions_1 takes nothing returns nothing
set gg_trg_Regions_1 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Regions_1, gg_rct_Region_005 )
call TriggerAddCondition( gg_trg_Regions_1, Condition( function Trig_Regions_1_Conditions ) )
call TriggerAddAction( gg_trg_Regions_1, function Trig_Regions_1_Actions )
endfunction
function Trig_Regions_2_Conditions takes nothing returns boolean
if ( not ( GetEnteringUnit() == gg_unit_H000_0004 ) ) then
return false
endif
return true
endfunction
function Trig_Regions_2_Actions takes nothing returns nothing
call CinematicModeBJ( true, GetPlayersAll() )
call PanCameraToTimedLocForPlayer( Player(0), GetUnitLoc(gg_unit_H000_0004), 1.00 )
call IssueImmediateOrderBJ( GetEnteringUnit(), "stop" )
call SetUnitFacingToFaceUnitTimed( GetEnteringUnit(), gg_unit_H001_0001, 0.35 )
call TriggerSleepAction( 1.00 )
call DisableTrigger( gg_trg_Special_2 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_H001_0001, "TRIGSTR_011", null, "TRIGSTR_012", bj_TIMETYPE_ADD, 2.00, true )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetEnteringUnit(), "TRIGSTR_013", null, "TRIGSTR_014", bj_TIMETYPE_ADD, 1.00, true )
call SetUnitAnimation( gg_unit_H001_0001, "stand talk first" )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_H001_0001, "TRIGSTR_015", null, "TRIGSTR_016", bj_TIMETYPE_ADD, 2.00, true )
call ResetUnitAnimation( gg_unit_H001_0001 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetEnteringUnit(), "TRIGSTR_017", null, "TRIGSTR_018", bj_TIMETYPE_ADD, 1.50, true )
call SetUnitAnimation( gg_unit_H001_0001, "stand talk second" )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_H001_0001, "TRIGSTR_019", null, "TRIGSTR_020", bj_TIMETYPE_ADD, 2.15, true )
call ResetUnitAnimation( gg_unit_H001_0001 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetEnteringUnit(), "TRIGSTR_021", null, "TRIGSTR_022", bj_TIMETYPE_ADD, 1.50, true )
call SetUnitAnimation( gg_unit_H001_0001, "stand talk third" )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_H001_0001, "TRIGSTR_023", null, "TRIGSTR_024", bj_TIMETYPE_ADD, 2.00, true )
call ResetUnitAnimation( gg_unit_H001_0001 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetEnteringUnit(), "TRIGSTR_025", null, "TRIGSTR_026", bj_TIMETYPE_ADD, 0.75, true )
call SetUnitAnimation( gg_unit_H001_0001, "stand talk fourth" )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_H001_0001, "TRIGSTR_027", null, "TRIGSTR_028", bj_TIMETYPE_ADD, 2.50, true )
call ResetUnitAnimation( gg_unit_H001_0001 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetEnteringUnit(), "TRIGSTR_029", null, "TRIGSTR_030", bj_TIMETYPE_ADD, 1.00, true )
call SetUnitAnimation( gg_unit_H001_0001, "stand talk fourth" )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_H001_0001, "TRIGSTR_031", null, "TRIGSTR_032", bj_TIMETYPE_ADD, 2.50, true )
call ResetUnitAnimation( gg_unit_H001_0001 )
call TriggerSleepAction( 0.75 )
call DisableTrigger( gg_trg_Ping )
call DisableTrigger( gg_trg_Regions_1 )
call EnableTrigger( gg_trg_Auto_select )
call ResetUnitAnimation( gg_unit_H001_0001 )
call CinematicModeBJ( false, GetPlayersAll() )
call CinematicFilterGenericBJ( 0.00, BLEND_MODE_MODULATE, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0.00, 0.00, 0.00, 100, 0, 0, 0, 0.00 )
call SelectUnitForPlayerSingle( gg_unit_H001_0001, Player(0) )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_045" )
call SetCameraTargetControllerNoZForPlayer( Player(0), gg_unit_H001_0001, 0, 0, false )
endfunction
//===========================================================================
function InitTrig_Regions_2 takes nothing returns nothing
set gg_trg_Regions_2 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Regions_2, gg_rct_Region_006 )
call TriggerAddCondition( gg_trg_Regions_2, Condition( function Trig_Regions_2_Conditions ) )
call TriggerAddAction( gg_trg_Regions_2, function Trig_Regions_2_Actions )
endfunction
function Trig_Regions_3_E_Conditions takes nothing returns boolean
if ( not ( GetEnteringUnit() == gg_unit_H000_0004 ) ) then
return false
endif
return true
endfunction
function Trig_Regions_3_E_Actions takes nothing returns nothing
call SetUnitMoveSpeed( GetEnteringUnit(), ( GetUnitMoveSpeed(GetEnteringUnit()) / 1.50 ) )
endfunction
//===========================================================================
function InitTrig_Regions_3_E takes nothing returns nothing
set gg_trg_Regions_3_E = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Regions_3_E, gg_rct_Region_009 )
call TriggerAddCondition( gg_trg_Regions_3_E, Condition( function Trig_Regions_3_E_Conditions ) )
call TriggerAddAction( gg_trg_Regions_3_E, function Trig_Regions_3_E_Actions )
endfunction
function Trig_Regions_3_L_Conditions takes nothing returns boolean
if ( not ( GetLeavingUnit() == gg_unit_H000_0004 ) ) then
return false
endif
return true
endfunction
function Trig_Regions_3_L_Actions takes nothing returns nothing
call SetUnitMoveSpeed( GetLeavingUnit(), ( GetUnitMoveSpeed(GetLeavingUnit()) * 1.50 ) )
endfunction
//===========================================================================
function InitTrig_Regions_3_L takes nothing returns nothing
set gg_trg_Regions_3_L = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Regions_3_L, gg_rct_Region_009 )
call TriggerAddCondition( gg_trg_Regions_3_L, Condition( function Trig_Regions_3_L_Conditions ) )
call TriggerAddAction( gg_trg_Regions_3_L, function Trig_Regions_3_L_Actions )
endfunction
function Trig_Auto_select_Actions takes nothing returns nothing
call SelectUnitForPlayerSingle( gg_unit_H001_0001, Player(0) )
endfunction
//===========================================================================
function InitTrig_Auto_select takes nothing returns nothing
set gg_trg_Auto_select = CreateTrigger( )
call DisableTrigger( gg_trg_Auto_select )
call TriggerRegisterTimerEventPeriodic( gg_trg_Auto_select, 0.01 )
call TriggerAddAction( gg_trg_Auto_select, function Trig_Auto_select_Actions )
endfunction
function Trig_Way_Choose_Func001C takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I002' ) ) then
return false
endif
return true
endfunction
function Trig_Way_Choose_Func002C takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I001' ) ) then
return false
endif
return true
endfunction
function Trig_Way_Choose_Func003C takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I000' ) ) then
return false
endif
return true
endfunction
function Trig_Way_Choose_Actions takes nothing returns nothing
if ( Trig_Way_Choose_Func001C() ) then
call CinematicModeBJ( true, GetPlayersAll() )
call DisplayCineFilterBJ( false )
call ResetToGameCameraForPlayer( Player(0), 0 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_H001_0001, "TRIGSTR_070", null, "TRIGSTR_071", bj_TIMETYPE_ADD, 2.35, true )
call SetUnitAnimation( gg_unit_H001_0001, "spell channel" )
call AddSpecialEffectTargetUnitBJ( "origin", gg_unit_H000_0004, "Abilities\\Spells\\Items\\AIam\\AIamTarget.mdl" )
call AddSpecialEffectTargetUnitBJ( "origin", gg_unit_H001_0001, "Abilities\\Spells\\Human\\DispelMagic\\DispelMagicTarget.mdl" )
call CinematicModeBJ( false, GetPlayersAll() )
call SetUserControlForceOff( GetPlayersAll() )
call CinematicFilterGenericBJ( 5.00, BLEND_MODE_MODULATE, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 100, 100, 100, 100, 0, 0, 0, 0 )
call CinematicModeBJ( true, GetPlayersAll() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_072" )
call DisableTrigger( gg_trg_Auto_select )
call TriggerSleepAction( 0.50 )
call ResetUnitAnimation( gg_unit_H001_0001 )
call TriggerSleepAction( 20.00 )
call CustomVictoryBJ( Player(0), true, true )
else
endif
if ( Trig_Way_Choose_Func002C() ) then
call CinematicModeBJ( true, GetPlayersAll() )
call DisplayCineFilterBJ( false )
call ResetToGameCameraForPlayer( Player(0), 0 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_H001_0001, "TRIGSTR_079", null, "TRIGSTR_080", bj_TIMETYPE_ADD, 2.35, true )
call SetUnitAnimation( gg_unit_H001_0001, "spell channel" )
call AddSpecialEffectTargetUnitBJ( "origin", gg_unit_H000_0004, "Abilities\\Spells\\Items\\AIlm\\AIlmTarget.mdl" )
call AddSpecialEffectTargetUnitBJ( "origin", gg_unit_H001_0001, "Abilities\\Spells\\Human\\DispelMagic\\DispelMagicTarget.mdl" )
call CinematicModeBJ( false, GetPlayersAll() )
call SetUserControlForceOff( GetPlayersAll() )
call CinematicFilterGenericBJ( 5.00, BLEND_MODE_MODULATE, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 100, 100, 100, 100, 0, 0, 0, 0 )
call CinematicModeBJ( true, GetPlayersAll() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_075" )
call DisableTrigger( gg_trg_Auto_select )
call TriggerSleepAction( 0.50 )
call ResetUnitAnimation( gg_unit_H001_0001 )
call TriggerSleepAction( 25.00 )
call CustomVictoryBJ( Player(0), true, true )
else
endif
if ( Trig_Way_Choose_Func003C() ) then
call CinematicModeBJ( true, GetPlayersAll() )
call DisplayCineFilterBJ( false )
call ResetToGameCameraForPlayer( Player(0), 0 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_H001_0001, "TRIGSTR_081", null, "TRIGSTR_082", bj_TIMETYPE_ADD, 2.35, true )
call SetUnitAnimation( gg_unit_H001_0001, "spell channel" )
call AddSpecialEffectTargetUnitBJ( "origin", gg_unit_H000_0004, "Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl" )
call AddSpecialEffectTargetUnitBJ( "origin", gg_unit_H001_0001, "Abilities\\Spells\\Human\\DispelMagic\\DispelMagicTarget.mdl" )
call CinematicModeBJ( false, GetPlayersAll() )
call SetUserControlForceOff( GetPlayersAll() )
call CinematicFilterGenericBJ( 5.00, BLEND_MODE_MODULATE, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 100, 100, 100, 100, 0, 0, 0, 0 )
call CinematicModeBJ( true, GetPlayersAll() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_078" )
call DisableTrigger( gg_trg_Auto_select )
call TriggerSleepAction( 0.50 )
call ResetUnitAnimation( gg_unit_H001_0001 )
call TriggerSleepAction( 25.00 )
call CustomVictoryBJ( Player(0), true, true )
else
endif
endfunction
//===========================================================================
function InitTrig_Way_Choose takes nothing returns nothing
set gg_trg_Way_Choose = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Way_Choose, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddAction( gg_trg_Way_Choose, function Trig_Way_Choose_Actions )
endfunction