About the use of events
call TriggerRegisterDestDeathInRegionEvent( gg_trg_Learning, GetCurrentCameraBoundsMapRectBJ() )
call TriggerRegisterDialogEventBJ( gg_trg_Learning, udg_a )
call TriggerRegisterDeathEvent( gg_trg_Learning, gg_dest_LTbr_0000 )
call TriggerRegisterGameStateEventTimeOfDay( gg_trg_Learning, EQUAL, 12 )
call TriggerRegisterVariableEvent( gg_trg_Learning, "udg_zz", EQUAL, 0 )
call TriggerRegisterGameLoadedEventBJ( gg_trg_Learning )
call TriggerRegisterGameSavedEventBJ( gg_trg_Learning )
call TriggerRegisterShowSkillEventBJ( gg_trg_Learning )
call TriggerRegisterBuildSubmenuEventBJ( gg_trg_Learning )
call TriggerRegisterGameEvent( gg_trg_Learning, EVENT_GAME_TOURNAMENT_FINISH_NOW )
call TriggerRegisterPlayerChatEvent( gg_trg_Learning, Player(0), "string", true )
call TriggerRegisterPlayerEventEndCinematic( gg_trg_Learning, Player(0) )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_Learning, Player(0), true )
call TriggerRegisterPlayerKeyEventBJ( gg_trg_Learning, Player(0), bj_KEYEVENTTYPE_DEPRESS, bj_KEYEVENTKEY_LEFT )
call TriggerRegisterPlayerStateEvent( gg_trg_Learning, Player(0), PLAYER_STATE_RESOURCE_GOLD, GREATER_THAN_OR_EQUAL, 1000 )
call TriggerRegisterPlayerStateEvent( gg_trg_Learning, Player(0), PLAYER_STATE_RESOURCE_GOLD, GREATER_THAN_OR_EQUAL, 1000 )
call TriggerRegisterPlayerEventAllianceChanged( gg_trg_Learning, Player(0) )
call TriggerRegisterPlayerAllianceChange( gg_trg_Learning, Player(0), ALLIANCE_PASSIVE )
call TriggerRegisterPlayerEventVictory( gg_trg_Learning, Player(0) )
call TriggerRegisterPlayerEventDefeat( gg_trg_Learning, Player(0) )
call TriggerRegisterPlayerEventLeave( gg_trg_Learning, Player(0) )
call TriggerRegisterTimerEventSingle( gg_trg_Learning, 5 )
call TriggerRegisterTimerExpireEventBJ( gg_trg_Learning, udg_w )
call TriggerRegisterUnitEvent( gg_trg_Learning, gg_unit_hpea_0001, EVENT_UNIT_DEATH )
call TriggerRegisterEnterRectSimple( gg_trg_Learning, GetPlayableMapRect() )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Learning, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerRegisterEnterRectSimple( gg_trg_Learning, GetEntireMapRect() )
call TriggerRegisterLeaveRectSimple( gg_trg_Learning, GetCameraBoundsMapRect() )
call TriggerRegisterUnitInRangeSimple( gg_trg_Learning, 256, gg_unit_hsor_0002 )
call TriggerRegisterUnitLifeEvent( gg_trg_Learning, gg_unit_hmpr_0003, LESS_THAN, 50 )
call TriggerRegisterUnitManaEvent( gg_trg_Learning, gg_unit_hrif_0004, LESS_THAN, 50 )
call TriggerAddAction( gg_trg_Learning, function Trig_Learning_Actions )
call TriggerRegisterDestDeathInRegionEvent( gg_trg_Learning, GetCurrentCameraBoundsMapRectBJ() )
call TriggerRegisterDialogEventBJ( gg_trg_Learning, udg_a )
call TriggerRegisterDeathEvent( gg_trg_Learning, gg_dest_LTbr_0000 )
call TriggerRegisterGameStateEventTimeOfDay( gg_trg_Learning, EQUAL, 12 )
call TriggerRegisterVariableEvent( gg_trg_Learning, "udg_zz", EQUAL, 0 )
call TriggerRegisterGameLoadedEventBJ( gg_trg_Learning )
call TriggerRegisterGameSavedEventBJ( gg_trg_Learning )
call TriggerRegisterShowSkillEventBJ( gg_trg_Learning )
call TriggerRegisterBuildSubmenuEventBJ( gg_trg_Learning )
call TriggerRegisterGameEvent( gg_trg_Learning, EVENT_GAME_TOURNAMENT_FINISH_NOW )
call TriggerRegisterPlayerChatEvent( gg_trg_Learning, Player(0), "string", true )
call TriggerRegisterPlayerEventEndCinematic( gg_trg_Learning, Player(0) )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_Learning, Player(0), true )
call TriggerRegisterPlayerKeyEventBJ( gg_trg_Learning, Player(0), bj_KEYEVENTTYPE_DEPRESS, bj_KEYEVENTKEY_LEFT )
call TriggerRegisterPlayerStateEvent( gg_trg_Learning, Player(0), PLAYER_STATE_RESOURCE_GOLD, GREATER_THAN_OR_EQUAL, 1000 )
call TriggerRegisterPlayerStateEvent( gg_trg_Learning, Player(0), PLAYER_STATE_RESOURCE_GOLD, GREATER_THAN_OR_EQUAL, 1000 )
call TriggerRegisterPlayerEventAllianceChanged( gg_trg_Learning, Player(0) )
call TriggerRegisterPlayerAllianceChange( gg_trg_Learning, Player(0), ALLIANCE_PASSIVE )
call TriggerRegisterPlayerEventVictory( gg_trg_Learning, Player(0) )
call TriggerRegisterPlayerEventDefeat( gg_trg_Learning, Player(0) )
call TriggerRegisterPlayerEventLeave( gg_trg_Learning, Player(0) )
call TriggerRegisterTimerEventSingle( gg_trg_Learning, 5 )
call TriggerRegisterTimerExpireEventBJ( gg_trg_Learning, udg_w )
call TriggerRegisterUnitEvent( gg_trg_Learning, gg_unit_hpea_0001, EVENT_UNIT_DEATH )
call TriggerRegisterEnterRectSimple( gg_trg_Learning, GetPlayableMapRect() )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Learning, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerRegisterEnterRectSimple( gg_trg_Learning, GetEntireMapRect() )
call TriggerRegisterLeaveRectSimple( gg_trg_Learning, GetCameraBoundsMapRect() )
call TriggerRegisterUnitInRangeSimple( gg_trg_Learning, 256, gg_unit_hsor_0002 )
call TriggerRegisterUnitLifeEvent( gg_trg_Learning, gg_unit_hmpr_0003, LESS_THAN, 50 )
call TriggerRegisterUnitManaEvent( gg_trg_Learning, gg_unit_hrif_0004, LESS_THAN, 50 )
call TriggerAddAction( gg_trg_Learning, function Trig_Learning_Actions )