Name | Type | is_array | initial_value |
ADialog_bottomland | dialog | No | |
ADialog_bottomlandbutton | button | Yes | |
ADialog_largeisland | dialog | No | |
ADialog_largeislandbutton | button | Yes | |
ADialog_medium1island | dialog | No | |
ADialog_medium1islandbutton | button | Yes | |
ADialog_medium2island | dialog | No | |
ADialog_medium2islandbutton | button | Yes | |
ADialog_middleland | dialog | No | |
ADialog_middlelandbutton | button | Yes | |
ADialog_Rightland | dialog | No | |
ADialog_Rightlandbutton | button | Yes | |
ADialog_smallisland | dialog | No | |
ADialog_smallislandbutton | button | Yes | |
ADialog_topland | dialog | No | |
ADialog_toplandbutton | button | Yes | |
Africa | force | No | |
allegience | dialog | No | |
allegiencebtn | button | Yes | |
allybtn | button | Yes | |
allymenu | dialog | No | |
America | force | No | |
bail | integer | No | 0 |
buildertradermax | integer | Yes | 0 |
buy | dialog | Yes | |
choose | dialog | No | |
choosebtn | button | Yes | |
dead | integer | No | 0 |
differ | boolean | No | false |
drunkenvillager | integer | Yes | 0 |
England | force | No | |
farmpeople | player | Yes | |
gatedoors | player | Yes | |
genderbtn | button | Yes | |
gendermenu | dialog | No | |
give | dialog | No | |
givebtn | button | Yes | |
giveunit | unit | No | |
hero | unit | Yes | |
jailowner | player | No | |
landmenu | dialog | Yes | |
landmenubtns | button | Yes | |
landowner | player | Yes | |
Locking_Islands | rect | No | RectNull |
marraige2 | integer | No | 0 |
married | boolean | Yes | false |
medicanmanmax | integer | No | 0 |
menu | dialog | No | |
peacewar | dialog | No | |
peacewarbtn | button | Yes | |
selection | button | Yes | |
sell | dialog | Yes | |
sell2 | button | Yes | |
sell2_Copy | button | Yes | |
sell2_Copy_Copy | button | Yes | |
sell2_Copy_Copy_Copy | button | Yes | |
slavebtn | button | Yes | |
slavemenu | dialog | No | |
slaveunit | unit | No | |
temp | string | No | |
unallybtn | button | Yes | |
unallymenu | dialog | No | |
unit | unit | Yes | |
yesno | button | Yes | |
yesno_Copy | button | Yes | |
yesno_Copy_Copy | button | Yes | |
yesno_Copy_Copy_Copy | button | Yes | |
ZBottom_Land_Owner | player | No | PlayerNP |
ZLarge_Island_Owner | player | No | PlayerNP |
ZMedium1_Island_Owner | player | No | PlayerNP |
ZMedium2_Island_Owner | player | No | PlayerNP |
ZMiddle_Land_Owner | player | No | PlayerNP |
ZRight_Land_Owner | player | No | PlayerNP |
ZSmall_Island_Owner | player | No | PlayerNP |
ZTop_Land_Owner | player | No | PlayerNP |
zz_ActionAndTrig | trigger | No | |
zz_AdjustCam | boolean | Yes | |
zz_ai_only_mode | button | No | |
zz_AllItems | item | Yes | |
zz_AllUnits | unit | Yes | |
zz_Anfangsfarbe | integer | Yes | |
zz_AnyDamageTrig | trigger | No | |
zz_AnzahlVoter | integer | No | |
zz_ATLastSound | sound | Yes | |
zz_AttackDiceUpgr | integer | Yes | |
zz_AttackRateUpgr | integer | Yes | |
zz_ATToBeSkipped | boolean | Yes | |
zz_BnsBit | integer | Yes | |
zz_CamAlreadyOff | boolean | Yes | |
zz_CamAngle | real | Yes | |
zz_CameraSettingVal | real | Yes | |
zz_CamFollowUnit | unit | Yes | |
zz_CamOffset | real | Yes | |
zz_CamPid | integer | Yes | |
zz_CamPidIndex | integer | No | |
zz_CamRoll | real | Yes | |
zz_CamRotation | real | Yes | |
zz_CamSysPlayer | player | No | |
zz_CamSysT | real | No | |
zz_CamSysTime | real | No | |
zz_CamZOffset | real | Yes | |
zz_cdlg_button | button | Yes | |
zz_cdlg_dialog | dialog | Yes | |
zz_cdlg_length | integer | No | |
zz_cdlg_number | integer | Yes | |
zz_chat_no_ally | string | No | |
zz_CheckLocation | location | No | |
zz_ClosestDestructable | destructable | No | |
zz_ClosestDistance | real | No | |
zz_ClosestItem | item | No | |
zz_CodeIdA | string | Yes | |
zz_CodeIdB | string | Yes | |
zz_CodeRow | string | No | |
zz_CodeRows | integer | Yes | |
zz_color_board | leaderboard | No | |
zz_command_dlg1 | string | Yes | |
zz_command_dlg2 | string | Yes | |
zz_command_dlg3 | string | Yes | |
zz_command_hotkey1 | integer | Yes | |
zz_command_hotkey2 | integer | Yes | |
zz_command_hotkey3 | integer | Yes | |
zz_command_key1 | string | Yes | |
zz_command_key2 | string | Yes | |
zz_command_key3 | string | Yes | |
zz_command_language | string | No | |
zz_command_length | integer | No | |
zz_command_msg | string | Yes | |
zz_command_number | integer | Yes | |
zz_command_par1 | integer | Yes | |
zz_command_par2 | integer | Yes | |
zz_command_par3 | integer | Yes | |
zz_command_prefix | string | No | |
zz_commanded_player | player | No | |
zz_commander_mode | button | No | |
zz_commanding_player | player | No | |
zz_Comp | boolean | No | |
zz_current_command | integer | No | |
zz_current_number_par | integer | No | |
zz_current_player_par | integer | No | |
zz_CurrentlySelectedHero | unit | Yes | |
zz_CustomBooleanValue | boolean | Yes | |
zz_CustomRealValue | real | Yes | |
zz_CustomStringValue | string | Yes | |
zz_DamageTaken | real | No | |
zz_debug_BlackMaskTrig | trigger | No | |
zz_debugCamAoaTrig | trigger | No | |
zz_debugCamDistTrig | trigger | No | |
zz_debugCamFarzTrig | trigger | No | |
zz_debugCamFovTrig | trigger | No | |
zz_debugCamInfoTrig | trigger | No | |
zz_debugCamResetTrig | trigger | No | |
zz_debugCamRollTrig | trigger | No | |
zz_debugCamRotTrig | trigger | No | |
zz_debugCloneTrig | trigger | No | |
zz_debugDemoTrig | trigger | No | |
zz_debugDifficultyTrig | trigger | No | |
zz_debugDispelTrig | trigger | No | |
zz_debugFingerOfDeathEnabled | boolean | Yes | |
zz_debugFingerOfDeathTrig | trigger | Yes | |
zz_debugGimmeTrig | trigger | No | |
zz_debugGotoUnits | integer | No | |
zz_debugGotoUnitTrig | trigger | No | |
zz_debugGotoUnitX | real | No | |
zz_debugGotoUnitY | real | No | |
zz_debugGotoXTrig | trigger | No | |
zz_debugGotoXYTrig | trigger | No | |
zz_debugGotoYTrig | trigger | No | |
zz_debugTeleportTrig | trigger | No | |
zz_debugToolOfDeathTrig | trigger | Yes | |
zz_debugUnitInfoTrig | trigger | No | |
zz_DefendCaster | sound | No | |
zz_DetectRandom | real | No | |
zz_DetectSelected | real | No | |
zz_deutsch_button | button | No | |
zz_dialog_in_use | boolean | No | |
zz_DialogAktion | string | Yes | |
zz_DialogButton | button | Yes | |
zz_DialogFolge | trigger | Yes | |
zz_DialogShortcut | integer | Yes | |
zz_DialogSpieler | dialog | Yes | |
zz_DivineShield | sound | No | |
zz_dlg_dialog | dialog | Yes | |
zz_dlg_length | integer | No | |
zz_dlg_string | string | Yes | |
zz_dlgbutton_ai_only | string | No | |
zz_dlgbutton_all | string | No | |
zz_dlgbutton_cancel | string | No | |
zz_dlgbutton_commander | string | No | |
zz_dlgbutton_gold | string | No | |
zz_dlgbutton_lumber | string | No | |
zz_dlgbutton_no_human | string | No | |
zz_dlgbutton_tribute | string | No | |
zz_dlghdr_choose_ally | string | No | |
zz_dlghdr_choose_number | string | No | |
zz_dlghdr_choose_player | string | No | |
zz_dlghdr_game_type | string | No | |
zz_dlghdr_root | string | No | |
zz_dlghdr_tribute_amount | string | No | |
zz_dlghdr_tribute_type | string | No | |
zz_Empty0p5 | sound | No | |
zz_Empty1 | sound | No | |
zz_Empty10 | sound | No | |
zz_Empty11 | sound | No | |
zz_Empty12 | sound | No | |
zz_Empty14 | sound | No | |
zz_Empty16 | sound | No | |
zz_Empty18 | sound | No | |
zz_Empty1p5 | sound | No | |
zz_Empty2 | sound | No | |
zz_Empty20 | sound | No | |
zz_Empty22 | sound | No | |
zz_Empty24 | sound | No | |
zz_Empty26 | sound | No | |
zz_Empty28 | sound | No | |
zz_Empty2p5 | sound | No | |
zz_Empty3 | sound | No | |
zz_Empty30 | sound | No | |
zz_Empty32 | sound | No | |
zz_Empty4 | sound | No | |
zz_Empty5 | sound | No | |
zz_Empty6 | sound | No | |
zz_Empty7 | sound | No | |
zz_Empty8 | sound | No | |
zz_Empty9 | sound | No | |
zz_EngineTimerDialogs | timerdialog | Yes | |
zz_EngineTimers | timer | Yes | |
zz_english_button | button | No | |
zz_EnumItemType | integer | No | |
zz_EnumItemTypeT | itemtype | No | |
zz_ErweckteIndex | integer | No | |
zz_ErweckteKreaturen | unit | Yes | |
zz_Farbinterval | real | Yes | |
zz_ForRectItem | boolean | No | |
zz_french_button | button | No | |
zz_game_start_dialog | dialog | No | |
zz_game_start_trigger | trigger | No | |
zz_GewitterBlitze | integer | No | |
zz_GewitterCenter | location | No | |
zz_GlowEffect | effect | Yes | |
zz_GlowEffectPlus | effect | Yes | |
zz_heap_array_0 | integer | Yes | |
zz_heap_array_1 | integer | Yes | |
zz_heap_array_2 | integer | Yes | |
zz_heap_array_begin | integer | No | |
zz_heap_array_end | integer | No | |
zz_heap_arraycount | integer | No | |
zz_heap_descriptor_alloccursor | integer | No | |
zz_heap_descriptor_array_0 | integer | Yes | |
zz_heap_descriptor_array_1 | integer | Yes | |
zz_heap_descriptor_arraycount | integer | No | |
zz_heap_descriptor_begin | integer | No | |
zz_heap_descriptor_end | integer | No | |
zz_heap_descriptor_first | integer | No | |
zz_heap_descriptor_last | integer | No | |
zz_heap_descriptor_record_size | integer | No | |
zz_HeroChoice | trigger | No | |
zz_HeroDiedMsg | trigger | No | |
zz_HeroSkill1 | integer | Yes | |
zz_HeroSkill2 | integer | Yes | |
zz_HeroSkill3 | integer | Yes | |
zz_HeroSkill4 | integer | Yes | |
zz_HeroSkill5 | integer | Yes | |
zz_IsAlreadyPathing | boolean | Yes | |
zz_ItemIndex | integer | No | |
zz_language_dialog | dialog | No | |
zz_language_trigger | trigger | No | |
zz_LastClickedButtonNr | integer | Yes | |
zz_LastCreatedMovingSFX | integer | No | |
zz_LastCreatedMultiboardItem | multiboarditem | No | |
zz_LastMidiSound | sound | No | |
zz_LastMultipleChoice | integer | Yes | |
zz_LifeRegenUpgr | integer | Yes | |
zz_ManaRegenUpgr | integer | Yes | |
zz_MissileLength | integer | No | |
zz_MissileModel | string | Yes | |
zz_MissileOrder | string | Yes | |
zz_MissileUnitType | integer | Yes | |
zz_MJAuswahl | boolean | Yes | |
zz_MJAuswahleinheit | unit | Yes | |
zz_MJLastSound | sound | Yes | |
zz_MJPlayerPointer | integer | No | |
zz_MJSelected | group | Yes | |
zz_MJTrig1 | trigger | Yes | |
zz_MJTrig2 | trigger | Yes | |
zz_ModuloHex | integer | No | |
zz_MoveRateUpgr | integer | Yes | |
zz_MovForward | trigger | No | |
zz_MovingSFX | effect | Yes | |
zz_MovingSFXAbstand | real | Yes | |
zz_MovingSFXCenter | location | Yes | |
zz_MovingSFXCounter | integer | Yes | |
zz_MovingSFXKilled | boolean | Yes | |
zz_MovingSFXLength | integer | No | |
zz_MovingSFXLoop | boolean | Yes | |
zz_MovingSFXNach | rect | Yes | |
zz_MovingSFXNr | integer | Yes | |
zz_MovingSFXPath | string | Yes | |
zz_MovingSFXRadius | real | Yes | |
zz_MovingSFXStartAngle | real | Yes | |
zz_MovingSFXTrigger | trigger | Yes | |
zz_MovingSFXType | integer | Yes | |
zz_MovingSFXUnit | unit | Yes | |
zz_MovingSFXVor | rect | Yes | |
zz_MovingSFXWait | real | Yes | |
zz_MovLeft | integer | Yes | |
zz_MovMoving | boolean | Yes | |
zz_MovRight | integer | Yes | |
zz_MovSidewards | trigger | No | |
zz_MovUnit | unit | Yes | |
zz_ndbn_button | button | Yes | |
zz_ndbn_length | integer | No | |
zz_no_human_mode | button | No | |
zz_NoBuildIndex | integer | No | |
zz_NoBuildRects | rect | Yes | |
zz_NoBuildTrig | trigger | No | |
zz_number_dialog | dialog | No | |
zz_observer_god | boolean | No | |
zz_parsed_command | string | Yes | |
zz_pcbn_button | button | Yes | |
zz_pcbn_length | integer | No | |
zz_pcbn_number | integer | Yes | |
zz_player_dialog | dialog | No | |
zz_PlayerLeftMsg | trigger | No | |
zz_PortaleffektA | effect | Yes | |
zz_PortaleffektB | effect | No | |
zz_PortaltriggerA | trigger | No | |
zz_PortaltriggerB | trigger | No | |
zz_PressDown | trigger | No | |
zz_PressLeft | trigger | No | |
zz_PressRight | trigger | No | |
zz_PressUp | trigger | No | |
zz_PrevCam | camerasetup | Yes | |
zz_RangeUpgr | integer | Yes | |
zz_RegrowingTrees | trigger | No | |
zz_ReleaseLeft | trigger | No | |
zz_ReleaseRight | trigger | No | |
zz_ReleaseUp | trigger | No | |
zz_root_dialog | dialog | No | |
zz_SaveLoadSettings | boolean | Yes | |
zz_sdbn_button | button | Yes | |
zz_sdbn_length | integer | No | |
zz_sdbn_number | integer | Yes | |
zz_SEAnzahl | integer | No | |
zz_SECaster | unit | No | |
zz_SECastingType | integer | Yes | |
zz_SEFunc | string | Yes | |
zz_SEId | integer | Yes | |
zz_SEIndex | integer | No | |
zz_SELastOrder | string | No | |
zz_SelectableHeros | group | No | |
zz_SEMana | real | Yes | |
zz_SEOrder | string | Yes | |
zz_SERange | real | Yes | |
zz_SETarget | unit | No | |
zz_SETX | real | No | |
zz_SETY | real | No | |
zz_ShortcutId | string | Yes | |
zz_start_dialog | dialog | No | |
zz_StimmeAbgegeben | boolean | Yes | |
zz_Stimmen | integer | Yes | |
zz_StimmenAbgabe | trigger | No | |
zz_StimmenAbgegeben | integer | No | |
zz_StringIdent | string | No | |
zz_swedish_button | button | No | |
zz_TargetDistance | real | Yes | |
zz_TargetUpgr | integer | Yes | |
zz_TimerCounter | integer | No | |
zz_TPCenter | rect | No | |
zz_TPCondition | triggercondition | Yes | |
zz_TPEingang | rect | Yes | |
zz_TPNextTown | rect | No | |
zz_TPOpen | boolean | Yes | |
zz_TPPointer | integer | No | |
zz_TPRestrictGroup | group | No | |
zz_TPRestrictType | integer | No | |
zz_TPWatchersA | real | No | |
zz_TPWatchersB | real | No | |
zz_tribute_amount | string | No | |
zz_tribute_dlg | dialog | No | |
zz_tribute_dlg_button | button | Yes | |
zz_tribute_dlg_length | integer | No | |
zz_tribute_g | button | No | |
zz_tribute_l | button | No | |
zz_tribute_type | string | No | |
zz_TrigAlways | trigger | No | |
zz_UnfertigeGebaeude | unit | Yes | |
zz_UnfertigeGebIndex | integer | No | |
zz_UnfertigeUpgrades | unit | Yes | |
zz_UnfertigeUpgradesIndex | integer | No | |
zz_UnitIndex | integer | No | |
zz_UseAngle | boolean | Yes | |
zz_UseDistance | boolean | Yes | |
zz_UseOffset | boolean | Yes | |
zz_UseRoll | boolean | Yes | |
zz_UseRotation | boolean | Yes | |
zz_UseZOffset | boolean | Yes | |
zz_VotingAuswahl | string | Yes | |
zz_VotingBoard | leaderboard | Yes | |
zz_VotingErgebnis | string | No | |
zz_VotingFolge | string | Yes | |
zz_VotingGeheim | boolean | No | |
zz_VotingTimer | timerdialog | No | |
zz_XAcquiredItem | item | Yes | |
zz_XBuiltConstruction | unit | Yes | |
zz_XDroppedItem | item | Yes | |
zz_XLearnedSkill | integer | Yes | |
zz_XResearchedUpgrade | integer | Yes | |
zz_XSoldItem | item | Yes | |
zz_XSoldUnit | unit | Yes | |
zz_XSummonedUnit | unit | Yes | |
zz_XTrainedUnit | unit | Yes |
function Trig_change_menu_Actions takes nothing returns nothing
call DialogDisplayBJ( true, udg_allegience, GetTriggerPlayer() )
endfunction
//===========================================================================
function InitTrig_change_menu takes nothing returns nothing
set gg_trg_change_menu = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_change_menu, Player(0), "-change Allegience", false )
call TriggerRegisterPlayerChatEvent( gg_trg_change_menu, Player(1), "-change Allegience", false )
call TriggerRegisterPlayerChatEvent( gg_trg_change_menu, Player(2), "-change Allegience", false )
call TriggerRegisterPlayerChatEvent( gg_trg_change_menu, Player(3), "-change Allegience", false )
call TriggerRegisterPlayerChatEvent( gg_trg_change_menu, Player(4), "-change Allegience", false )
call TriggerRegisterPlayerChatEvent( gg_trg_change_menu, Player(5), "-change Allegience", false )
call TriggerRegisterPlayerChatEvent( gg_trg_change_menu, Player(6), "-change Allegience", false )
call TriggerRegisterPlayerChatEvent( gg_trg_change_menu, Player(7), "-change Allegience", false )
call TriggerRegisterPlayerChatEvent( gg_trg_change_menu, Player(8), "-change Allegience", false )
call TriggerRegisterPlayerChatEvent( gg_trg_change_menu, Player(11), "-change Allegience", false )
call TriggerAddAction( gg_trg_change_menu, function Trig_change_menu_Actions )
endfunction
function Trig_respawn_indians_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'ohun' ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then
return false
endif
return true
endfunction
function Trig_respawn_indians_Actions takes nothing returns nothing
call PolledWait( 90.00 )
call CreateNUnitsAtLoc( 1, GetUnitTypeId(GetTriggerUnit()), Player(10), GetUnitLoc(GetTriggerUnit()), bj_UNIT_FACING )
endfunction
//===========================================================================
function InitTrig_respawn_indians takes nothing returns nothing
set gg_trg_respawn_indians = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_respawn_indians, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_respawn_indians, Condition( function Trig_respawn_indians_Conditions ) )
call TriggerAddAction( gg_trg_respawn_indians, function Trig_respawn_indians_Actions )
endfunction
function Trig_change_allegience_setup_Actions takes nothing returns nothing
call DialogSetMessageBJ( udg_allegience, "TRIGSTR_510" )
call DialogAddButtonBJ( udg_allegience, "TRIGSTR_512" )
set udg_allegiencebtn[1] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_allegience, "TRIGSTR_513" )
set udg_allegiencebtn[2] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_allegience, "TRIGSTR_514" )
set udg_allegiencebtn[3] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_allegience, "TRIGSTR_515" )
endfunction
//===========================================================================
function InitTrig_change_allegience_setup takes nothing returns nothing
set gg_trg_change_allegience_setup = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_change_allegience_setup, 2.00 )
call TriggerAddAction( gg_trg_change_allegience_setup, function Trig_change_allegience_setup_Actions )
endfunction
function Trig_Africa_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_allegiencebtn[1] ) ) then
return false
endif
return true
endfunction
function Trig_Africa_Actions takes nothing returns nothing
call ForceRemovePlayerSimple( GetTriggerPlayer(), udg_America )
call ForceRemovePlayerSimple( GetTriggerPlayer(), udg_Africa )
call ForceRemovePlayerSimple( GetTriggerPlayer(), udg_England )
call ForceAddPlayerSimple( GetTriggerPlayer(), udg_Africa )
endfunction
//===========================================================================
function InitTrig_Africa takes nothing returns nothing
set gg_trg_Africa = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_Africa, udg_allegience )
call TriggerAddCondition( gg_trg_Africa, Condition( function Trig_Africa_Conditions ) )
call TriggerAddAction( gg_trg_Africa, function Trig_Africa_Actions )
endfunction
function Trig_America_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_allegiencebtn[2] ) ) then
return false
endif
return true
endfunction
function Trig_America_Actions takes nothing returns nothing
call ForceRemovePlayerSimple( GetTriggerPlayer(), udg_America )
call ForceRemovePlayerSimple( GetTriggerPlayer(), udg_Africa )
call ForceRemovePlayerSimple( GetTriggerPlayer(), udg_England )
call ForceAddPlayerSimple( GetTriggerPlayer(), udg_America )
endfunction
//===========================================================================
function InitTrig_America takes nothing returns nothing
set gg_trg_America = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_America, udg_allegience )
call TriggerAddCondition( gg_trg_America, Condition( function Trig_America_Conditions ) )
call TriggerAddAction( gg_trg_America, function Trig_America_Actions )
endfunction
function Trig_America_Copy_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_allegiencebtn[3] ) ) then
return false
endif
return true
endfunction
function Trig_America_Copy_Actions takes nothing returns nothing
call ForceRemovePlayerSimple( GetTriggerPlayer(), udg_America )
call ForceRemovePlayerSimple( GetTriggerPlayer(), udg_Africa )
call ForceRemovePlayerSimple( GetTriggerPlayer(), udg_England )
call ForceAddPlayerSimple( GetTriggerPlayer(), udg_England )
endfunction
//===========================================================================
function InitTrig_England takes nothing returns nothing
set gg_trg_England = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_England, udg_allegience )
call TriggerAddCondition( gg_trg_England, Condition( function Trig_America_Copy_Conditions ) )
call TriggerAddAction( gg_trg_England, function Trig_America_Copy_Actions )
endfunction
function Trig_choose_Actions takes nothing returns nothing
call DialogAddButtonBJ( udg_choose, "TRIGSTR_518" )
call DialogAddButtonBJ( udg_choose, "TRIGSTR_520" )
set udg_choosebtn[1] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_choose, "TRIGSTR_521" )
set udg_choosebtn[2] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_choose, "TRIGSTR_522" )
endfunction
//===========================================================================
function InitTrig_choose takes nothing returns nothing
set gg_trg_choose = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_choose, 5 )
call TriggerAddAction( gg_trg_choose, function Trig_choose_Actions )
endfunction
function Trig_war_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_choosebtn[1] ) ) then
return false
endif
return true
endfunction
function Trig_war_Actions takes nothing returns nothing
set udg_differ = true
call DialogSetMessageBJ( udg_peacewar, "TRIGSTR_523" )
call DialogDisplayBJ( true, udg_peacewar, GetTriggerPlayer() )
endfunction
//===========================================================================
function InitTrig_war takes nothing returns nothing
set gg_trg_war = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_war, udg_choose )
call TriggerAddCondition( gg_trg_war, Condition( function Trig_war_Conditions ) )
call TriggerAddAction( gg_trg_war, function Trig_war_Actions )
endfunction
function Trig_war_Copy_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_choosebtn[2] ) ) then
return false
endif
return true
endfunction
function Trig_war_Copy_Actions takes nothing returns nothing
set udg_differ = false
call DialogSetMessageBJ( udg_peacewar, "TRIGSTR_524" )
call DialogDisplayBJ( true, udg_peacewar, GetTriggerPlayer() )
endfunction
//===========================================================================
function InitTrig_war_Copy takes nothing returns nothing
set gg_trg_war_Copy = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_war_Copy, udg_choose )
call TriggerAddCondition( gg_trg_war_Copy, Condition( function Trig_war_Copy_Conditions ) )
call TriggerAddAction( gg_trg_war_Copy, function Trig_war_Copy_Actions )
endfunction
function Trig_peacewar_setup_Actions takes nothing returns nothing
call DialogAddButtonBJ( udg_peacewar, "TRIGSTR_525" )
set udg_peacewarbtn[1] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_peacewar, "TRIGSTR_526" )
set udg_peacewarbtn[2] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_peacewar, "TRIGSTR_527" )
set udg_peacewarbtn[3] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_peacewar, "TRIGSTR_528" )
endfunction
//===========================================================================
function InitTrig_peacewar_setup takes nothing returns nothing
set gg_trg_peacewar_setup = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_peacewar_setup, 5 )
call TriggerAddAction( gg_trg_peacewar_setup, function Trig_peacewar_setup_Actions )
endfunction
function Trig_africa_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_peacewarbtn[1] ) ) then
return false
endif
return true
endfunction
function Trig_africa_Func001Func001C takes nothing returns boolean
if ( not ( udg_differ == true ) ) then
return false
endif
return true
endfunction
function Trig_africa_Func001C takes nothing returns boolean
if ( not ( ForcePickRandomPlayer(udg_Africa) == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_africa_Func002Func001C takes nothing returns boolean
if ( not ( udg_differ == true ) ) then
return false
endif
return true
endfunction
function Trig_africa_Func002C takes nothing returns boolean
if ( not ( ForcePickRandomPlayer(udg_America) == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_africa_Func003Func001C takes nothing returns boolean
if ( not ( udg_differ == true ) ) then
return false
endif
return true
endfunction
function Trig_africa_Func003C takes nothing returns boolean
if ( not ( ForcePickRandomPlayer(udg_England) == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_africa_Actions takes nothing returns nothing
if ( Trig_africa_Func001C() ) then
if ( Trig_africa_Func001Func001C() ) then
call SetForceAllianceStateBJ( udg_Africa, udg_Africa, bj_ALLIANCE_UNALLIED )
else
call SetForceAllianceStateBJ( udg_Africa, udg_Africa, bj_ALLIANCE_ALLIED_VISION )
endif
else
endif
if ( Trig_africa_Func002C() ) then
if ( Trig_africa_Func002Func001C() ) then
call SetForceAllianceStateBJ( udg_America, udg_Africa, bj_ALLIANCE_UNALLIED )
else
call SetForceAllianceStateBJ( udg_America, udg_Africa, bj_ALLIANCE_ALLIED_VISION )
endif
else
endif
if ( Trig_africa_Func003C() ) then
if ( Trig_africa_Func003Func001C() ) then
call SetForceAllianceStateBJ( udg_England, udg_Africa, bj_ALLIANCE_UNALLIED )
else
call SetForceAllianceStateBJ( udg_England, udg_Africa, bj_ALLIANCE_ALLIED_VISION )
endif
else
endif
endfunction
//===========================================================================
function InitTrig_africa takes nothing returns nothing
set gg_trg_africa = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_africa, udg_peacewar )
call TriggerAddCondition( gg_trg_africa, Condition( function Trig_africa_Conditions ) )
call TriggerAddAction( gg_trg_africa, function Trig_africa_Actions )
endfunction
function Trig_africa_Copy_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_peacewarbtn[2] ) ) then
return false
endif
return true
endfunction
function Trig_africa_Copy_Func001Func001C takes nothing returns boolean
if ( not ( udg_differ == true ) ) then
return false
endif
return true
endfunction
function Trig_africa_Copy_Func001C takes nothing returns boolean
if ( not ( ForcePickRandomPlayer(udg_Africa) == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_africa_Copy_Func002Func001C takes nothing returns boolean
if ( not ( udg_differ == true ) ) then
return false
endif
return true
endfunction
function Trig_africa_Copy_Func002C takes nothing returns boolean
if ( not ( ForcePickRandomPlayer(udg_America) == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_africa_Copy_Func003Func001C takes nothing returns boolean
if ( not ( udg_differ == true ) ) then
return false
endif
return true
endfunction
function Trig_africa_Copy_Func003C takes nothing returns boolean
if ( not ( ForcePickRandomPlayer(udg_England) == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_africa_Copy_Actions takes nothing returns nothing
if ( Trig_africa_Copy_Func001C() ) then
if ( Trig_africa_Copy_Func001Func001C() ) then
call SetForceAllianceStateBJ( udg_Africa, udg_America, bj_ALLIANCE_UNALLIED )
else
call SetForceAllianceStateBJ( udg_Africa, udg_America, bj_ALLIANCE_ALLIED_VISION )
endif
else
endif
if ( Trig_africa_Copy_Func002C() ) then
if ( Trig_africa_Copy_Func002Func001C() ) then
call SetForceAllianceStateBJ( udg_America, udg_America, bj_ALLIANCE_UNALLIED )
else
call SetForceAllianceStateBJ( udg_America, udg_America, bj_ALLIANCE_ALLIED_VISION )
endif
else
endif
if ( Trig_africa_Copy_Func003C() ) then
if ( Trig_africa_Copy_Func003Func001C() ) then
call SetForceAllianceStateBJ( udg_England, udg_America, bj_ALLIANCE_UNALLIED )
else
call SetForceAllianceStateBJ( udg_England, udg_America, bj_ALLIANCE_ALLIED_VISION )
endif
else
endif
endfunction
//===========================================================================
function InitTrig_africa_Copy takes nothing returns nothing
set gg_trg_africa_Copy = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_africa_Copy, udg_peacewar )
call TriggerAddCondition( gg_trg_africa_Copy, Condition( function Trig_africa_Copy_Conditions ) )
call TriggerAddAction( gg_trg_africa_Copy, function Trig_africa_Copy_Actions )
endfunction
function Trig_africa_Copy_2_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_peacewarbtn[3] ) ) then
return false
endif
return true
endfunction
function Trig_africa_Copy_2_Func001Func001C takes nothing returns boolean
if ( not ( udg_differ == true ) ) then
return false
endif
return true
endfunction
function Trig_africa_Copy_2_Func001C takes nothing returns boolean
if ( not ( ForcePickRandomPlayer(udg_Africa) == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_africa_Copy_2_Func002Func001C takes nothing returns boolean
if ( not ( udg_differ == true ) ) then
return false
endif
return true
endfunction
function Trig_africa_Copy_2_Func002C takes nothing returns boolean
if ( not ( ForcePickRandomPlayer(udg_America) == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_africa_Copy_2_Func003Func001C takes nothing returns boolean
if ( not ( udg_differ == true ) ) then
return false
endif
return true
endfunction
function Trig_africa_Copy_2_Func003C takes nothing returns boolean
if ( not ( ForcePickRandomPlayer(udg_England) == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_africa_Copy_2_Actions takes nothing returns nothing
if ( Trig_africa_Copy_2_Func001C() ) then
if ( Trig_africa_Copy_2_Func001Func001C() ) then
call SetForceAllianceStateBJ( udg_Africa, udg_England, bj_ALLIANCE_UNALLIED )
else
call SetForceAllianceStateBJ( udg_Africa, udg_England, bj_ALLIANCE_ALLIED_VISION )
endif
else
endif
if ( Trig_africa_Copy_2_Func002C() ) then
if ( Trig_africa_Copy_2_Func002Func001C() ) then
call SetForceAllianceStateBJ( udg_America, udg_England, bj_ALLIANCE_UNALLIED )
else
call SetForceAllianceStateBJ( udg_America, udg_England, bj_ALLIANCE_ALLIED_VISION )
endif
else
endif
if ( Trig_africa_Copy_2_Func003C() ) then
if ( Trig_africa_Copy_2_Func003Func001C() ) then
call SetForceAllianceStateBJ( udg_England, udg_England, bj_ALLIANCE_UNALLIED )
else
call SetForceAllianceStateBJ( udg_England, udg_England, bj_ALLIANCE_ALLIED_VISION )
endif
else
endif
endfunction
//===========================================================================
function InitTrig_africa_Copy_2 takes nothing returns nothing
set gg_trg_africa_Copy_2 = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_africa_Copy_2, udg_peacewar )
call TriggerAddCondition( gg_trg_africa_Copy_2, Condition( function Trig_africa_Copy_2_Conditions ) )
call TriggerAddAction( gg_trg_africa_Copy_2, function Trig_africa_Copy_2_Actions )
endfunction
function Trig_Far_Camera_Actions takes nothing returns nothing
call SetCameraFieldForPlayer( GetTriggerPlayer(), CAMERA_FIELD_TARGET_DISTANCE, 3200.00, 1.00 )
endfunction
//===========================================================================
function InitTrig_Far_Camera takes nothing returns nothing
set gg_trg_Far_Camera = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Far_Camera, Player(0), "-far", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Far_Camera, Player(1), "-far", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Far_Camera, Player(2), "-far", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Far_Camera, Player(3), "-far", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Far_Camera, Player(4), "-far", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Far_Camera, Player(5), "-far", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Far_Camera, Player(6), "-far", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Far_Camera, Player(7), "-far", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Far_Camera, Player(8), "-far", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Far_Camera, Player(9), "-far", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Far_Camera, Player(10), "-far", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Far_Camera, Player(11), "-far", true )
call TriggerAddAction( gg_trg_Far_Camera, function Trig_Far_Camera_Actions )
endfunction
function Trig_Close_Camera_Actions takes nothing returns nothing
call SetCameraFieldForPlayer( GetTriggerPlayer(), CAMERA_FIELD_TARGET_DISTANCE, bj_CAMERA_DEFAULT_DISTANCE, 1.00 )
endfunction
//===========================================================================
function InitTrig_Close_Camera takes nothing returns nothing
set gg_trg_Close_Camera = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Close_Camera, Player(0), "-near", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Close_Camera, Player(1), "-near", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Close_Camera, Player(2), "-near", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Close_Camera, Player(3), "-near", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Close_Camera, Player(4), "-near", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Close_Camera, Player(5), "-near", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Close_Camera, Player(6), "-near", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Close_Camera, Player(7), "-near", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Close_Camera, Player(8), "-near", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Close_Camera, Player(9), "-near", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Close_Camera, Player(10), "-near", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Close_Camera, Player(11), "-near", true )
call TriggerAddAction( gg_trg_Close_Camera, function Trig_Close_Camera_Actions )
endfunction
function Trig_Medium_Camera_Actions takes nothing returns nothing
call SetCameraFieldForPlayer( GetTriggerPlayer(), CAMERA_FIELD_TARGET_DISTANCE, 2450.00, 1.00 )
endfunction
//===========================================================================
function InitTrig_Medium_Camera takes nothing returns nothing
set gg_trg_Medium_Camera = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Medium_Camera, Player(0), "-medium", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Medium_Camera, Player(1), "-medium", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Medium_Camera, Player(2), "-medium", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Medium_Camera, Player(3), "-medium", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Medium_Camera, Player(4), "-medium", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Medium_Camera, Player(5), "-medium", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Medium_Camera, Player(6), "-medium", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Medium_Camera, Player(7), "-medium", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Medium_Camera, Player(8), "-medium", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Medium_Camera, Player(9), "-medium", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Medium_Camera, Player(10), "-medium", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Medium_Camera, Player(11), "-medium", true )
call TriggerAddAction( gg_trg_Medium_Camera, function Trig_Medium_Camera_Actions )
endfunction
function Trig_Set_Start_Camera_Actions takes nothing returns nothing
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call SetCameraFieldForPlayer( ConvertedPlayer(GetForLoopIndexA()), CAMERA_FIELD_TARGET_DISTANCE, 2450.00, 0.00 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_Set_Start_Camera takes nothing returns nothing
set gg_trg_Set_Start_Camera = CreateTrigger( )
call TriggerAddAction( gg_trg_Set_Start_Camera, function Trig_Set_Start_Camera_Actions )
endfunction
function Trig_gate_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(gg_unit_ncp2_0392) == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_gate_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_DTg3_6836 )
endfunction
//===========================================================================
function InitTrig_gate takes nothing returns nothing
set gg_trg_gate = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_gate, Player(0), "-open Dock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_gate, Player(1), "-open Dock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_gate, Player(2), "-open Dock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_gate, Player(3), "-open Dock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_gate, Player(4), "-open Dock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_gate, Player(5), "-open Dock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_gate, Player(6), "-open Dock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_gate, Player(7), "-open Dock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_gate, Player(8), "-open Dock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_gate, Player(11), "-open Dock", true )
call TriggerAddCondition( gg_trg_gate, Condition( function Trig_gate_Conditions ) )
call TriggerAddAction( gg_trg_gate, function Trig_gate_Actions )
endfunction
function Trig_gate_Copy_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(gg_unit_ncp2_0392) == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_gate_Copy_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_CLOSE, gg_dest_DTg3_6836 )
endfunction
//===========================================================================
function InitTrig_gate_Copy takes nothing returns nothing
set gg_trg_gate_Copy = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_gate_Copy, Player(0), "-close Dock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_gate_Copy, Player(1), "-close Dock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_gate_Copy, Player(2), "-close Dock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_gate_Copy, Player(3), "-close Dock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_gate_Copy, Player(4), "-close Dock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_gate_Copy, Player(5), "-close Dock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_gate_Copy, Player(6), "-close Dock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_gate_Copy, Player(7), "-close Dock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_gate_Copy, Player(8), "-close Dock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_gate_Copy, Player(11), "-close Dock", true )
call TriggerAddCondition( gg_trg_gate_Copy, Condition( function Trig_gate_Copy_Conditions ) )
call TriggerAddAction( gg_trg_gate_Copy, function Trig_gate_Copy_Actions )
endfunction
function Trig_sea_open_Copy_5_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(gg_unit_ncp2_0392) == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_sea_open_Copy_5_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_DTg2_6835 )
endfunction
//===========================================================================
function InitTrig_sea_open_Copy_5 takes nothing returns nothing
set gg_trg_sea_open_Copy_5 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_5, Player(0), "-open sea", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_5, Player(1), "-open sea", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_5, Player(2), "-open sea", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_5, Player(3), "-open sea", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_5, Player(4), "-open sea", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_5, Player(5), "-open sea", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_5, Player(6), "-open sea", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_5, Player(7), "-open sea", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_5, Player(8), "-open sea", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_5, Player(11), "-open sea", true )
call TriggerAddCondition( gg_trg_sea_open_Copy_5, Condition( function Trig_sea_open_Copy_5_Conditions ) )
call TriggerAddAction( gg_trg_sea_open_Copy_5, function Trig_sea_open_Copy_5_Actions )
endfunction
function Trig_sea_open_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(gg_unit_ncp2_0392) == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_sea_open_Copy_Copy_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_CLOSE, gg_dest_DTg2_6835 )
endfunction
//===========================================================================
function InitTrig_sea_open_Copy_Copy takes nothing returns nothing
set gg_trg_sea_open_Copy_Copy = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_Copy, Player(0), "-close sea", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_Copy, Player(1), "-close sea", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_Copy, Player(2), "-close sea", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_Copy, Player(3), "-close sea", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_Copy, Player(4), "-close sea", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_Copy, Player(5), "-close sea", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_Copy, Player(6), "-close sea", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_Copy, Player(7), "-close sea", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_Copy, Player(8), "-close sea", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_Copy, Player(11), "-close sea", true )
call TriggerAddCondition( gg_trg_sea_open_Copy_Copy, Condition( function Trig_sea_open_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_sea_open_Copy_Copy, function Trig_sea_open_Copy_Copy_Actions )
endfunction
function Trig_ship_build_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_ncp2_0392) ) ) then
return false
endif
return true
endfunction
function Trig_ship_build_Func001C takes nothing returns boolean
if ( not ( GetPlayerState(GetOwningPlayer(gg_unit_ncp2_0392), PLAYER_STATE_RESOURCE_GOLD) >= 90 ) ) then
return false
endif
return true
endfunction
function Trig_ship_build_Actions takes nothing returns nothing
if ( Trig_ship_build_Func001C() ) then
call AdjustPlayerStateBJ( -90, GetOwningPlayer(GetTriggerUnit()), PLAYER_STATE_RESOURCE_GOLD )
call CreateNUnitsAtLoc( 1, 'h00K', GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Rect_169), bj_UNIT_FACING )
else
call DisplayTextToPlayer( GetOwningPlayer(gg_unit_ncp2_0392), 0, 0, "TRIGSTR_432" )
endif
endfunction
//===========================================================================
function InitTrig_ship_build takes nothing returns nothing
set gg_trg_ship_build = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_ship_build, gg_rct_Rect_168 )
call TriggerAddCondition( gg_trg_ship_build, Condition( function Trig_ship_build_Conditions ) )
call TriggerAddAction( gg_trg_ship_build, function Trig_ship_build_Actions )
endfunction
function Trig_ship_build_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_ncp2_0392) ) ) then
return false
endif
return true
endfunction
function Trig_ship_build_Copy_Func001C takes nothing returns boolean
if ( not ( GetPlayerState(GetOwningPlayer(gg_unit_ncp2_0392), PLAYER_STATE_RESOURCE_GOLD) >= 25 ) ) then
return false
endif
return true
endfunction
function Trig_ship_build_Copy_Actions takes nothing returns nothing
if ( Trig_ship_build_Copy_Func001C() ) then
call AdjustPlayerStateBJ( -25, GetOwningPlayer(GetTriggerUnit()), PLAYER_STATE_RESOURCE_GOLD )
call CreateNUnitsAtLoc( 1, 'hbot', GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Rect_169), bj_UNIT_FACING )
else
call DisplayTextToPlayer( GetOwningPlayer(gg_unit_ncp2_0392), 0, 0, "TRIGSTR_433" )
endif
endfunction
//===========================================================================
function InitTrig_ship_build_Copy takes nothing returns nothing
set gg_trg_ship_build_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_ship_build_Copy, gg_rct_Rect_170 )
call TriggerAddCondition( gg_trg_ship_build_Copy, Condition( function Trig_ship_build_Copy_Conditions ) )
call TriggerAddAction( gg_trg_ship_build_Copy, function Trig_ship_build_Copy_Actions )
endfunction
function Trig_ship_build_Copy_2_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_ncp2_0392) ) ) then
return false
endif
return true
endfunction
function Trig_ship_build_Copy_2_Func001C takes nothing returns boolean
if ( not ( GetPlayerState(GetOwningPlayer(gg_unit_ncp2_0392), PLAYER_STATE_RESOURCE_GOLD) >= 370 ) ) then
return false
endif
return true
endfunction
function Trig_ship_build_Copy_2_Actions takes nothing returns nothing
if ( Trig_ship_build_Copy_2_Func001C() ) then
call AdjustPlayerStateBJ( -370, GetOwningPlayer(GetTriggerUnit()), PLAYER_STATE_RESOURCE_GOLD )
call CreateNUnitsAtLoc( 1, 'h00N', GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Rect_169), bj_UNIT_FACING )
else
call DisplayTextToPlayer( GetOwningPlayer(gg_unit_ncp2_0392), 0, 0, "TRIGSTR_435" )
endif
endfunction
//===========================================================================
function InitTrig_ship_build_Copy_2 takes nothing returns nothing
set gg_trg_ship_build_Copy_2 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_ship_build_Copy_2, gg_rct_Rect_171 )
call TriggerAddCondition( gg_trg_ship_build_Copy_2, Condition( function Trig_ship_build_Copy_2_Conditions ) )
call TriggerAddAction( gg_trg_ship_build_Copy_2, function Trig_ship_build_Copy_2_Actions )
endfunction
function Trig_ship_build_Copy_3_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_ncp2_0392) ) ) then
return false
endif
return true
endfunction
function Trig_ship_build_Copy_3_Func001C takes nothing returns boolean
if ( not ( GetPlayerState(GetOwningPlayer(gg_unit_ncp2_0392), PLAYER_STATE_RESOURCE_GOLD) >= 35 ) ) then
return false
endif
return true
endfunction
function Trig_ship_build_Copy_3_Actions takes nothing returns nothing
if ( Trig_ship_build_Copy_3_Func001C() ) then
call AdjustPlayerStateBJ( -35, GetOwningPlayer(GetTriggerUnit()), PLAYER_STATE_RESOURCE_GOLD )
call CreateNUnitsAtLoc( 1, 'h00L', GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Rect_169), bj_UNIT_FACING )
else
call DisplayTextToPlayer( GetOwningPlayer(gg_unit_ncp2_0392), 0, 0, "TRIGSTR_436" )
endif
endfunction
//===========================================================================
function InitTrig_ship_build_Copy_3 takes nothing returns nothing
set gg_trg_ship_build_Copy_3 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_ship_build_Copy_3, gg_rct_Rect_172 )
call TriggerAddCondition( gg_trg_ship_build_Copy_3, Condition( function Trig_ship_build_Copy_3_Conditions ) )
call TriggerAddAction( gg_trg_ship_build_Copy_3, function Trig_ship_build_Copy_3_Actions )
endfunction
function Trig_ship_build_Copy_4_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_ncp2_0392) ) ) then
return false
endif
return true
endfunction
function Trig_ship_build_Copy_4_Func001C takes nothing returns boolean
if ( not ( GetPlayerState(GetOwningPlayer(gg_unit_ncp2_0392), PLAYER_STATE_RESOURCE_GOLD) >= 140 ) ) then
return false
endif
return true
endfunction
function Trig_ship_build_Copy_4_Actions takes nothing returns nothing
if ( Trig_ship_build_Copy_4_Func001C() ) then
call AdjustPlayerStateBJ( -142, GetOwningPlayer(GetTriggerUnit()), PLAYER_STATE_RESOURCE_GOLD )
call CreateNUnitsAtLoc( 1, 'h00M', GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Rect_169), bj_UNIT_FACING )
else
call DisplayTextToPlayer( GetOwningPlayer(gg_unit_ncp2_0392), 0, 0, "TRIGSTR_437" )
endif
endfunction
//===========================================================================
function InitTrig_ship_build_Copy_4 takes nothing returns nothing
set gg_trg_ship_build_Copy_4 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_ship_build_Copy_4, gg_rct_Rect_173 )
call TriggerAddCondition( gg_trg_ship_build_Copy_4, Condition( function Trig_ship_build_Copy_4_Conditions ) )
call TriggerAddAction( gg_trg_ship_build_Copy_4, function Trig_ship_build_Copy_4_Actions )
endfunction
function Trig_givemenu_Actions takes nothing returns nothing
call DialogSetMessageBJ( udg_give, "TRIGSTR_438" )
call DialogAddButtonBJ( udg_give, "TRIGSTR_440" )
set udg_givebtn[1] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_give, "TRIGSTR_441" )
set udg_givebtn[2] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_give, "TRIGSTR_442" )
set udg_givebtn[3] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_give, "TRIGSTR_443" )
set udg_givebtn[4] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_give, "TRIGSTR_444" )
set udg_givebtn[5] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_give, "TRIGSTR_445" )
set udg_givebtn[6] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_give, "TRIGSTR_446" )
set udg_givebtn[7] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_give, "TRIGSTR_447" )
set udg_givebtn[8] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_give, "TRIGSTR_448" )
set udg_givebtn[9] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_give, "TRIGSTR_449" )
set udg_givebtn[10] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_give, "TRIGSTR_450" )
endfunction
//===========================================================================
function InitTrig_givemenu takes nothing returns nothing
set gg_trg_givemenu = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_givemenu, 5 )
call TriggerAddAction( gg_trg_givemenu, function Trig_givemenu_Actions )
endfunction
function Trig_color_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_givebtn[1] ) ) then
return false
endif
return true
endfunction
function Trig_color_Actions takes nothing returns nothing
call SetUnitOwner( udg_giveunit, Player(0), true )
endfunction
//===========================================================================
function InitTrig_color takes nothing returns nothing
set gg_trg_color = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_color, udg_give )
call TriggerAddCondition( gg_trg_color, Condition( function Trig_color_Conditions ) )
call TriggerAddAction( gg_trg_color, function Trig_color_Actions )
endfunction
function Trig_color_Copy_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_givebtn[2] ) ) then
return false
endif
return true
endfunction
function Trig_color_Copy_Actions takes nothing returns nothing
call SetUnitOwner( udg_giveunit, Player(1), true )
endfunction
//===========================================================================
function InitTrig_color_Copy takes nothing returns nothing
set gg_trg_color_Copy = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_color_Copy, udg_give )
call TriggerAddCondition( gg_trg_color_Copy, Condition( function Trig_color_Copy_Conditions ) )
call TriggerAddAction( gg_trg_color_Copy, function Trig_color_Copy_Actions )
endfunction
function Trig_color_Copy_2_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_givebtn[3] ) ) then
return false
endif
return true
endfunction
function Trig_color_Copy_2_Actions takes nothing returns nothing
call SetUnitOwner( udg_giveunit, Player(2), true )
endfunction
//===========================================================================
function InitTrig_color_Copy_2 takes nothing returns nothing
set gg_trg_color_Copy_2 = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_color_Copy_2, udg_give )
call TriggerAddCondition( gg_trg_color_Copy_2, Condition( function Trig_color_Copy_2_Conditions ) )
call TriggerAddAction( gg_trg_color_Copy_2, function Trig_color_Copy_2_Actions )
endfunction
function Trig_color_Copy_3_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_givebtn[4] ) ) then
return false
endif
return true
endfunction
function Trig_color_Copy_3_Actions takes nothing returns nothing
call SetUnitOwner( udg_giveunit, Player(3), true )
endfunction
//===========================================================================
function InitTrig_color_Copy_3 takes nothing returns nothing
set gg_trg_color_Copy_3 = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_color_Copy_3, udg_give )
call TriggerAddCondition( gg_trg_color_Copy_3, Condition( function Trig_color_Copy_3_Conditions ) )
call TriggerAddAction( gg_trg_color_Copy_3, function Trig_color_Copy_3_Actions )
endfunction
function Trig_color_Copy_3_Copy_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_givebtn[5] ) ) then
return false
endif
return true
endfunction
function Trig_color_Copy_3_Copy_Actions takes nothing returns nothing
call SetUnitOwner( udg_giveunit, Player(4), true )
endfunction
//===========================================================================
function InitTrig_color_Copy_3_Copy takes nothing returns nothing
set gg_trg_color_Copy_3_Copy = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_color_Copy_3_Copy, udg_give )
call TriggerAddCondition( gg_trg_color_Copy_3_Copy, Condition( function Trig_color_Copy_3_Copy_Conditions ) )
call TriggerAddAction( gg_trg_color_Copy_3_Copy, function Trig_color_Copy_3_Copy_Actions )
endfunction
function Trig_color_Copy_3_Copy_2_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_givebtn[6] ) ) then
return false
endif
return true
endfunction
function Trig_color_Copy_3_Copy_2_Actions takes nothing returns nothing
call SetUnitOwner( udg_giveunit, Player(5), true )
endfunction
//===========================================================================
function InitTrig_color_Copy_3_Copy_2 takes nothing returns nothing
set gg_trg_color_Copy_3_Copy_2 = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_color_Copy_3_Copy_2, udg_give )
call TriggerAddCondition( gg_trg_color_Copy_3_Copy_2, Condition( function Trig_color_Copy_3_Copy_2_Conditions ) )
call TriggerAddAction( gg_trg_color_Copy_3_Copy_2, function Trig_color_Copy_3_Copy_2_Actions )
endfunction
function Trig_color_Copy_3_Copy_3_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_givebtn[7] ) ) then
return false
endif
return true
endfunction
function Trig_color_Copy_3_Copy_3_Actions takes nothing returns nothing
call SetUnitOwner( udg_giveunit, Player(6), true )
endfunction
//===========================================================================
function InitTrig_color_Copy_3_Copy_3 takes nothing returns nothing
set gg_trg_color_Copy_3_Copy_3 = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_color_Copy_3_Copy_3, udg_give )
call TriggerAddCondition( gg_trg_color_Copy_3_Copy_3, Condition( function Trig_color_Copy_3_Copy_3_Conditions ) )
call TriggerAddAction( gg_trg_color_Copy_3_Copy_3, function Trig_color_Copy_3_Copy_3_Actions )
endfunction
function Trig_color_Copy_3_Copy_4_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_givebtn[8] ) ) then
return false
endif
return true
endfunction
function Trig_color_Copy_3_Copy_4_Actions takes nothing returns nothing
call SetUnitOwner( udg_giveunit, Player(7), true )
endfunction
//===========================================================================
function InitTrig_color_Copy_3_Copy_4 takes nothing returns nothing
set gg_trg_color_Copy_3_Copy_4 = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_color_Copy_3_Copy_4, udg_give )
call TriggerAddCondition( gg_trg_color_Copy_3_Copy_4, Condition( function Trig_color_Copy_3_Copy_4_Conditions ) )
call TriggerAddAction( gg_trg_color_Copy_3_Copy_4, function Trig_color_Copy_3_Copy_4_Actions )
endfunction
function Trig_color_Copy_3_Copy_5_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_givebtn[9] ) ) then
return false
endif
return true
endfunction
function Trig_color_Copy_3_Copy_5_Actions takes nothing returns nothing
call SetUnitOwner( udg_giveunit, Player(8), true )
endfunction
//===========================================================================
function InitTrig_color_Copy_3_Copy_5 takes nothing returns nothing
set gg_trg_color_Copy_3_Copy_5 = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_color_Copy_3_Copy_5, udg_give )
call TriggerAddCondition( gg_trg_color_Copy_3_Copy_5, Condition( function Trig_color_Copy_3_Copy_5_Conditions ) )
call TriggerAddAction( gg_trg_color_Copy_3_Copy_5, function Trig_color_Copy_3_Copy_5_Actions )
endfunction
function Trig_color_Copy_3_Copy_6_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_givebtn[10] ) ) then
return false
endif
return true
endfunction
function Trig_color_Copy_3_Copy_6_Actions takes nothing returns nothing
call SetUnitOwner( udg_giveunit, Player(11), true )
endfunction
//===========================================================================
function InitTrig_color_Copy_3_Copy_6 takes nothing returns nothing
set gg_trg_color_Copy_3_Copy_6 = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_color_Copy_3_Copy_6, udg_give )
call TriggerAddCondition( gg_trg_color_Copy_3_Copy_6, Condition( function Trig_color_Copy_3_Copy_6_Conditions ) )
call TriggerAddAction( gg_trg_color_Copy_3_Copy_6, function Trig_color_Copy_3_Copy_6_Actions )
endfunction
function Trig_open_give_Func006C takes nothing returns boolean
if ( ( GetUnitTypeId(GetTriggerUnit()) == 'h00L' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetTriggerUnit()) == 'h00K' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetTriggerUnit()) == 'h00N' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetTriggerUnit()) == 'h00M' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetTriggerUnit()) == 'hbot' ) ) then
return true
endif
return false
endfunction
function Trig_open_give_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(gg_unit_ncp2_0392) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not Trig_open_give_Func006C() ) then
return false
endif
return true
endfunction
function Trig_open_give_Actions takes nothing returns nothing
call DialogDisplayBJ( false, udg_give, GetOwningPlayer(GetTriggerUnit()) )
set udg_giveunit = GetTriggerUnit()
call DialogDisplayBJ( true, udg_give, GetOwningPlayer(GetTriggerUnit()) )
endfunction
//===========================================================================
function InitTrig_open_give takes nothing returns nothing
set gg_trg_open_give = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_open_give, gg_rct_Rect_176 )
call TriggerAddCondition( gg_trg_open_give, Condition( function Trig_open_give_Conditions ) )
call TriggerAddAction( gg_trg_open_give, function Trig_open_give_Actions )
endfunction
function Trig_Get_Shipyard_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0392, Player(9)) == true ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0017, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0031, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0011, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0033, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0034, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0089, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0107, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0112, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0263, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0264, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0292, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0300, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0309, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0315, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0316, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0161, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0327, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0328, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0336, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0337, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0401, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0404, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0406, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
return true
endfunction
function Trig_Get_Shipyard_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncp2_0392, GetOwningPlayer(GetTriggerUnit()), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_430" )
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_leave_Shipyard )
endfunction
//===========================================================================
function InitTrig_Get_Shipyard takes nothing returns nothing
set gg_trg_Get_Shipyard = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Get_Shipyard, gg_rct_Rect_167 )
call TriggerAddCondition( gg_trg_Get_Shipyard, Condition( function Trig_Get_Shipyard_Conditions ) )
call TriggerAddAction( gg_trg_Get_Shipyard, function Trig_Get_Shipyard_Actions )
endfunction
function Trig_basic_pay_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 10, GetOwningPlayer(gg_unit_ncp2_0392), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 5, GetOwningPlayer(gg_unit_ncp2_0392), PLAYER_STATE_RESOURCE_LUMBER )
endfunction
//===========================================================================
function InitTrig_basic_pay takes nothing returns nothing
set gg_trg_basic_pay = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_basic_pay, 15.00 )
call TriggerAddAction( gg_trg_basic_pay, function Trig_basic_pay_Actions )
endfunction
function Trig_leave_Shipyard_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0392, GetOwningPlayer(GetTriggerUnit())) == true ) ) then
return false
endif
return true
endfunction
function Trig_leave_Shipyard_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncp2_0392, Player(9), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_431" )
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 5.00 )
call EnableTrigger( gg_trg_Get_Shipyard )
endfunction
//===========================================================================
function InitTrig_leave_Shipyard takes nothing returns nothing
set gg_trg_leave_Shipyard = CreateTrigger( )
call DisableTrigger( gg_trg_leave_Shipyard )
call TriggerRegisterEnterRectSimple( gg_trg_leave_Shipyard, gg_rct_Rect_167 )
call TriggerAddCondition( gg_trg_leave_Shipyard, Condition( function Trig_leave_Shipyard_Conditions ) )
call TriggerAddAction( gg_trg_leave_Shipyard, function Trig_leave_Shipyard_Actions )
endfunction
function Trig_setup_ally_Actions takes nothing returns nothing
call DialogSetMessageBJ( udg_allymenu, "TRIGSTR_364" )
call DialogAddButtonBJ( udg_allymenu, "TRIGSTR_366" )
set udg_allybtn[1] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_allymenu, "TRIGSTR_367" )
set udg_allybtn[2] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_allymenu, "TRIGSTR_368" )
set udg_allybtn[3] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_allymenu, "TRIGSTR_369" )
set udg_allybtn[4] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_allymenu, "TRIGSTR_370" )
set udg_allybtn[5] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_allymenu, "TRIGSTR_371" )
set udg_allybtn[6] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_allymenu, "TRIGSTR_372" )
set udg_allybtn[7] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_allymenu, "TRIGSTR_373" )
set udg_allybtn[8] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_allymenu, "TRIGSTR_374" )
set udg_allybtn[9] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_allymenu, "TRIGSTR_375" )
set udg_allybtn[10] = GetLastCreatedButtonBJ()
endfunction
//===========================================================================
function InitTrig_setup_ally takes nothing returns nothing
set gg_trg_setup_ally = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_setup_ally, 1.00 )
call TriggerAddAction( gg_trg_setup_ally, function Trig_setup_ally_Actions )
endfunction
function Trig_btn_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_allybtn[1] ) ) then
return false
endif
return true
endfunction
function Trig_btn_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(0), bj_ALLIANCE_ALLIED_VISION )
endfunction
//===========================================================================
function InitTrig_btn takes nothing returns nothing
set gg_trg_btn = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_btn, udg_allymenu )
call TriggerAddCondition( gg_trg_btn, Condition( function Trig_btn_Conditions ) )
call TriggerAddAction( gg_trg_btn, function Trig_btn_Actions )
endfunction
function Trig_btn_Copy_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_allybtn[2] ) ) then
return false
endif
return true
endfunction
function Trig_btn_Copy_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(1), bj_ALLIANCE_ALLIED_VISION )
endfunction
//===========================================================================
function InitTrig_btn_Copy takes nothing returns nothing
set gg_trg_btn_Copy = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_btn_Copy, udg_allymenu )
call TriggerAddCondition( gg_trg_btn_Copy, Condition( function Trig_btn_Copy_Conditions ) )
call TriggerAddAction( gg_trg_btn_Copy, function Trig_btn_Copy_Actions )
endfunction
function Trig_btn_Copy_2_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_allybtn[3] ) ) then
return false
endif
return true
endfunction
function Trig_btn_Copy_2_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(2), bj_ALLIANCE_ALLIED_VISION )
endfunction
//===========================================================================
function InitTrig_btn_Copy_2 takes nothing returns nothing
set gg_trg_btn_Copy_2 = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_btn_Copy_2, udg_allymenu )
call TriggerAddCondition( gg_trg_btn_Copy_2, Condition( function Trig_btn_Copy_2_Conditions ) )
call TriggerAddAction( gg_trg_btn_Copy_2, function Trig_btn_Copy_2_Actions )
endfunction
function Trig_btn_Copy_2_Copy_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_allybtn[4] ) ) then
return false
endif
return true
endfunction
function Trig_btn_Copy_2_Copy_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(3), bj_ALLIANCE_ALLIED_VISION )
endfunction
//===========================================================================
function InitTrig_btn_Copy_2_Copy takes nothing returns nothing
set gg_trg_btn_Copy_2_Copy = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_btn_Copy_2_Copy, udg_allymenu )
call TriggerAddCondition( gg_trg_btn_Copy_2_Copy, Condition( function Trig_btn_Copy_2_Copy_Conditions ) )
call TriggerAddAction( gg_trg_btn_Copy_2_Copy, function Trig_btn_Copy_2_Copy_Actions )
endfunction
function Trig_btn_Copy_2_Copy_2_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_allybtn[5] ) ) then
return false
endif
return true
endfunction
function Trig_btn_Copy_2_Copy_2_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(4), bj_ALLIANCE_ALLIED_VISION )
endfunction
//===========================================================================
function InitTrig_btn_Copy_2_Copy_2 takes nothing returns nothing
set gg_trg_btn_Copy_2_Copy_2 = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_btn_Copy_2_Copy_2, udg_allymenu )
call TriggerAddCondition( gg_trg_btn_Copy_2_Copy_2, Condition( function Trig_btn_Copy_2_Copy_2_Conditions ) )
call TriggerAddAction( gg_trg_btn_Copy_2_Copy_2, function Trig_btn_Copy_2_Copy_2_Actions )
endfunction
function Trig_btn_Copy_2_Copy_3_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_allybtn[6] ) ) then
return false
endif
return true
endfunction
function Trig_btn_Copy_2_Copy_3_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(5), bj_ALLIANCE_ALLIED_VISION )
endfunction
//===========================================================================
function InitTrig_btn_Copy_2_Copy_3 takes nothing returns nothing
set gg_trg_btn_Copy_2_Copy_3 = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_btn_Copy_2_Copy_3, udg_allymenu )
call TriggerAddCondition( gg_trg_btn_Copy_2_Copy_3, Condition( function Trig_btn_Copy_2_Copy_3_Conditions ) )
call TriggerAddAction( gg_trg_btn_Copy_2_Copy_3, function Trig_btn_Copy_2_Copy_3_Actions )
endfunction
function Trig_btn_Copy_2_Copy_4_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_allybtn[7] ) ) then
return false
endif
return true
endfunction
function Trig_btn_Copy_2_Copy_4_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(6), bj_ALLIANCE_ALLIED_VISION )
endfunction
//===========================================================================
function InitTrig_btn_Copy_2_Copy_4 takes nothing returns nothing
set gg_trg_btn_Copy_2_Copy_4 = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_btn_Copy_2_Copy_4, udg_allymenu )
call TriggerAddCondition( gg_trg_btn_Copy_2_Copy_4, Condition( function Trig_btn_Copy_2_Copy_4_Conditions ) )
call TriggerAddAction( gg_trg_btn_Copy_2_Copy_4, function Trig_btn_Copy_2_Copy_4_Actions )
endfunction
function Trig_btn_Copy_2_Copy_5_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_allybtn[8] ) ) then
return false
endif
return true
endfunction
function Trig_btn_Copy_2_Copy_5_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(7), bj_ALLIANCE_ALLIED_VISION )
endfunction
//===========================================================================
function InitTrig_btn_Copy_2_Copy_5 takes nothing returns nothing
set gg_trg_btn_Copy_2_Copy_5 = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_btn_Copy_2_Copy_5, udg_allymenu )
call TriggerAddCondition( gg_trg_btn_Copy_2_Copy_5, Condition( function Trig_btn_Copy_2_Copy_5_Conditions ) )
call TriggerAddAction( gg_trg_btn_Copy_2_Copy_5, function Trig_btn_Copy_2_Copy_5_Actions )
endfunction
function Trig_btn_Copy_2_Copy_6_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_allybtn[9] ) ) then
return false
endif
return true
endfunction
function Trig_btn_Copy_2_Copy_6_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(8), bj_ALLIANCE_ALLIED_VISION )
endfunction
//===========================================================================
function InitTrig_btn_Copy_2_Copy_6 takes nothing returns nothing
set gg_trg_btn_Copy_2_Copy_6 = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_btn_Copy_2_Copy_6, udg_allymenu )
call TriggerAddCondition( gg_trg_btn_Copy_2_Copy_6, Condition( function Trig_btn_Copy_2_Copy_6_Conditions ) )
call TriggerAddAction( gg_trg_btn_Copy_2_Copy_6, function Trig_btn_Copy_2_Copy_6_Actions )
endfunction
function Trig_btn_Copy_2_Copy_7_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_allybtn[10] ) ) then
return false
endif
return true
endfunction
function Trig_btn_Copy_2_Copy_7_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(11), bj_ALLIANCE_ALLIED_VISION )
endfunction
//===========================================================================
function InitTrig_btn_Copy_2_Copy_7 takes nothing returns nothing
set gg_trg_btn_Copy_2_Copy_7 = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_btn_Copy_2_Copy_7, udg_allymenu )
call TriggerAddCondition( gg_trg_btn_Copy_2_Copy_7, Condition( function Trig_btn_Copy_2_Copy_7_Conditions ) )
call TriggerAddAction( gg_trg_btn_Copy_2_Copy_7, function Trig_btn_Copy_2_Copy_7_Actions )
endfunction
function Trig_show_Actions takes nothing returns nothing
call DialogDisplayBJ( true, udg_allymenu, GetTriggerPlayer() )
endfunction
//===========================================================================
function InitTrig_show takes nothing returns nothing
set gg_trg_show = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_show, Player(0), "-ally", false )
call TriggerRegisterPlayerChatEvent( gg_trg_show, Player(1), "-ally", false )
call TriggerRegisterPlayerChatEvent( gg_trg_show, Player(2), "-ally", false )
call TriggerRegisterPlayerChatEvent( gg_trg_show, Player(3), "-ally", false )
call TriggerRegisterPlayerChatEvent( gg_trg_show, Player(4), "-ally", false )
call TriggerRegisterPlayerChatEvent( gg_trg_show, Player(5), "-ally", false )
call TriggerRegisterPlayerChatEvent( gg_trg_show, Player(6), "-ally", false )
call TriggerRegisterPlayerChatEvent( gg_trg_show, Player(7), "-ally", false )
call TriggerRegisterPlayerChatEvent( gg_trg_show, Player(8), "-ally", false )
call TriggerRegisterPlayerChatEvent( gg_trg_show, Player(11), "-ally", false )
call TriggerAddAction( gg_trg_show, function Trig_show_Actions )
endfunction
function Trig_setup_ally_Copy_Actions takes nothing returns nothing
call DialogSetMessageBJ( udg_unallymenu, "TRIGSTR_376" )
call DialogAddButtonBJ( udg_unallymenu, "TRIGSTR_377" )
set udg_unallybtn[1] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_unallymenu, "TRIGSTR_378" )
set udg_unallybtn[2] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_unallymenu, "TRIGSTR_379" )
set udg_unallybtn[3] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_unallymenu, "TRIGSTR_380" )
set udg_unallybtn[4] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_unallymenu, "TRIGSTR_381" )
set udg_unallybtn[5] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_unallymenu, "TRIGSTR_382" )
set udg_unallybtn[6] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_unallymenu, "TRIGSTR_383" )
set udg_unallybtn[7] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_unallymenu, "TRIGSTR_384" )
set udg_unallybtn[8] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_unallymenu, "TRIGSTR_385" )
set udg_unallybtn[9] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_unallymenu, "TRIGSTR_386" )
set udg_unallybtn[10] = GetLastCreatedButtonBJ()
endfunction
//===========================================================================
function InitTrig_setup_ally_Copy takes nothing returns nothing
set gg_trg_setup_ally_Copy = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_setup_ally_Copy, 1.00 )
call TriggerAddAction( gg_trg_setup_ally_Copy, function Trig_setup_ally_Copy_Actions )
endfunction
function Trig_unallybtn_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_unallybtn[1] ) ) then
return false
endif
return true
endfunction
function Trig_unallybtn_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(0), bj_ALLIANCE_UNALLIED )
endfunction
//===========================================================================
function InitTrig_unallybtn takes nothing returns nothing
set gg_trg_unallybtn = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_unallybtn, udg_unallymenu )
call TriggerAddCondition( gg_trg_unallybtn, Condition( function Trig_unallybtn_Conditions ) )
call TriggerAddAction( gg_trg_unallybtn, function Trig_unallybtn_Actions )
endfunction
function Trig_unallybtn_Copy_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_unallybtn[2] ) ) then
return false
endif
return true
endfunction
function Trig_unallybtn_Copy_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(1), bj_ALLIANCE_UNALLIED )
endfunction
//===========================================================================
function InitTrig_unallybtn_Copy takes nothing returns nothing
set gg_trg_unallybtn_Copy = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_unallybtn_Copy, udg_unallymenu )
call TriggerAddCondition( gg_trg_unallybtn_Copy, Condition( function Trig_unallybtn_Copy_Conditions ) )
call TriggerAddAction( gg_trg_unallybtn_Copy, function Trig_unallybtn_Copy_Actions )
endfunction
function Trig_unallybtn_Copy_2_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_unallybtn[3] ) ) then
return false
endif
return true
endfunction
function Trig_unallybtn_Copy_2_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(2), bj_ALLIANCE_UNALLIED )
endfunction
//===========================================================================
function InitTrig_unallybtn_Copy_2 takes nothing returns nothing
set gg_trg_unallybtn_Copy_2 = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_unallybtn_Copy_2, udg_unallymenu )
call TriggerAddCondition( gg_trg_unallybtn_Copy_2, Condition( function Trig_unallybtn_Copy_2_Conditions ) )
call TriggerAddAction( gg_trg_unallybtn_Copy_2, function Trig_unallybtn_Copy_2_Actions )
endfunction
function Trig_unallybtn_Copy_3_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_unallybtn[4] ) ) then
return false
endif
return true
endfunction
function Trig_unallybtn_Copy_3_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(3), bj_ALLIANCE_UNALLIED )
endfunction
//===========================================================================
function InitTrig_unallybtn_Copy_3 takes nothing returns nothing
set gg_trg_unallybtn_Copy_3 = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_unallybtn_Copy_3, udg_unallymenu )
call TriggerAddCondition( gg_trg_unallybtn_Copy_3, Condition( function Trig_unallybtn_Copy_3_Conditions ) )
call TriggerAddAction( gg_trg_unallybtn_Copy_3, function Trig_unallybtn_Copy_3_Actions )
endfunction
function Trig_unallybtn_Copy_4_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_unallybtn[5] ) ) then
return false
endif
return true
endfunction
function Trig_unallybtn_Copy_4_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(4), bj_ALLIANCE_UNALLIED )
endfunction
//===========================================================================
function InitTrig_unallybtn_Copy_4 takes nothing returns nothing
set gg_trg_unallybtn_Copy_4 = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_unallybtn_Copy_4, udg_unallymenu )
call TriggerAddCondition( gg_trg_unallybtn_Copy_4, Condition( function Trig_unallybtn_Copy_4_Conditions ) )
call TriggerAddAction( gg_trg_unallybtn_Copy_4, function Trig_unallybtn_Copy_4_Actions )
endfunction
function Trig_unallybtn_Copy_5_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_unallybtn[6] ) ) then
return false
endif
return true
endfunction
function Trig_unallybtn_Copy_5_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(5), bj_ALLIANCE_UNALLIED )
endfunction
//===========================================================================
function InitTrig_unallybtn_Copy_5 takes nothing returns nothing
set gg_trg_unallybtn_Copy_5 = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_unallybtn_Copy_5, udg_unallymenu )
call TriggerAddCondition( gg_trg_unallybtn_Copy_5, Condition( function Trig_unallybtn_Copy_5_Conditions ) )
call TriggerAddAction( gg_trg_unallybtn_Copy_5, function Trig_unallybtn_Copy_5_Actions )
endfunction
function Trig_unallybtn_Copy_5_Copy_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_unallybtn[7] ) ) then
return false
endif
return true
endfunction
function Trig_unallybtn_Copy_5_Copy_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(6), bj_ALLIANCE_UNALLIED )
endfunction
//===========================================================================
function InitTrig_unallybtn_Copy_5_Copy takes nothing returns nothing
set gg_trg_unallybtn_Copy_5_Copy = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_unallybtn_Copy_5_Copy, udg_unallymenu )
call TriggerAddCondition( gg_trg_unallybtn_Copy_5_Copy, Condition( function Trig_unallybtn_Copy_5_Copy_Conditions ) )
call TriggerAddAction( gg_trg_unallybtn_Copy_5_Copy, function Trig_unallybtn_Copy_5_Copy_Actions )
endfunction
function Trig_unallybtn_Copy_5_Copy_2_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_unallybtn[8] ) ) then
return false
endif
return true
endfunction
function Trig_unallybtn_Copy_5_Copy_2_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(7), bj_ALLIANCE_UNALLIED )
endfunction
//===========================================================================
function InitTrig_unallybtn_Copy_5_Copy_2 takes nothing returns nothing
set gg_trg_unallybtn_Copy_5_Copy_2 = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_unallybtn_Copy_5_Copy_2, udg_unallymenu )
call TriggerAddCondition( gg_trg_unallybtn_Copy_5_Copy_2, Condition( function Trig_unallybtn_Copy_5_Copy_2_Conditions ) )
call TriggerAddAction( gg_trg_unallybtn_Copy_5_Copy_2, function Trig_unallybtn_Copy_5_Copy_2_Actions )
endfunction
function Trig_unallybtn_Copy_5_Copy_3_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_unallybtn[9] ) ) then
return false
endif
return true
endfunction
function Trig_unallybtn_Copy_5_Copy_3_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(8), bj_ALLIANCE_UNALLIED )
endfunction
//===========================================================================
function InitTrig_unallybtn_Copy_5_Copy_3 takes nothing returns nothing
set gg_trg_unallybtn_Copy_5_Copy_3 = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_unallybtn_Copy_5_Copy_3, udg_unallymenu )
call TriggerAddCondition( gg_trg_unallybtn_Copy_5_Copy_3, Condition( function Trig_unallybtn_Copy_5_Copy_3_Conditions ) )
call TriggerAddAction( gg_trg_unallybtn_Copy_5_Copy_3, function Trig_unallybtn_Copy_5_Copy_3_Actions )
endfunction
function Trig_unallybtn_Copy_5_Copy_3_Copy_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_unallybtn[10] ) ) then
return false
endif
return true
endfunction
function Trig_unallybtn_Copy_5_Copy_3_Copy_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(11), bj_ALLIANCE_UNALLIED )
endfunction
//===========================================================================
function InitTrig_unallybtn_Copy_5_Copy_3_Copy takes nothing returns nothing
set gg_trg_unallybtn_Copy_5_Copy_3_Copy = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_unallybtn_Copy_5_Copy_3_Copy, udg_unallymenu )
call TriggerAddCondition( gg_trg_unallybtn_Copy_5_Copy_3_Copy, Condition( function Trig_unallybtn_Copy_5_Copy_3_Copy_Conditions ) )
call TriggerAddAction( gg_trg_unallybtn_Copy_5_Copy_3_Copy, function Trig_unallybtn_Copy_5_Copy_3_Copy_Actions )
endfunction
function Trig_show_Copy_Actions takes nothing returns nothing
call DialogDisplayBJ( true, udg_unallymenu, GetTriggerPlayer() )
endfunction
//===========================================================================
function InitTrig_show_Copy takes nothing returns nothing
set gg_trg_show_Copy = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_show_Copy, Player(0), "-unally", false )
call TriggerRegisterPlayerChatEvent( gg_trg_show_Copy, Player(1), "-unally", false )
call TriggerRegisterPlayerChatEvent( gg_trg_show_Copy, Player(2), "-unally", false )
call TriggerRegisterPlayerChatEvent( gg_trg_show_Copy, Player(3), "-unally", false )
call TriggerRegisterPlayerChatEvent( gg_trg_show_Copy, Player(4), "-unally", false )
call TriggerRegisterPlayerChatEvent( gg_trg_show_Copy, Player(6), "-unally", false )
call TriggerRegisterPlayerChatEvent( gg_trg_show_Copy, Player(5), "-unally", false )
call TriggerRegisterPlayerChatEvent( gg_trg_show_Copy, Player(7), "-unally", false )
call TriggerRegisterPlayerChatEvent( gg_trg_show_Copy, Player(8), "-unally", false )
call TriggerRegisterPlayerChatEvent( gg_trg_show_Copy, Player(11), "-unally", false )
call TriggerAddAction( gg_trg_show_Copy, function Trig_show_Copy_Actions )
endfunction
function Trig_periodic_drop_in_drunkeness_Func011C takes nothing returns boolean
if ( not ( udg_drunkenvillager[1] <= 0 ) ) then
return false
endif
return true
endfunction
function Trig_periodic_drop_in_drunkeness_Func012C takes nothing returns boolean
if ( not ( udg_drunkenvillager[2] <= 0 ) ) then
return false
endif
return true
endfunction
function Trig_periodic_drop_in_drunkeness_Func013C takes nothing returns boolean
if ( not ( udg_drunkenvillager[3] <= 0 ) ) then
return false
endif
return true
endfunction
function Trig_periodic_drop_in_drunkeness_Func014C takes nothing returns boolean
if ( not ( udg_drunkenvillager[4] <= 0 ) ) then
return false
endif
return true
endfunction
function Trig_periodic_drop_in_drunkeness_Func015C takes nothing returns boolean
if ( not ( udg_drunkenvillager[5] <= 0 ) ) then
return false
endif
return true
endfunction
function Trig_periodic_drop_in_drunkeness_Func016C takes nothing returns boolean
if ( not ( udg_drunkenvillager[6] <= 0 ) ) then
return false
endif
return true
endfunction
function Trig_periodic_drop_in_drunkeness_Func017C takes nothing returns boolean
if ( not ( udg_drunkenvillager[7] <= 0 ) ) then
return false
endif
return true
endfunction
function Trig_periodic_drop_in_drunkeness_Func018C takes nothing returns boolean
if ( not ( udg_drunkenvillager[8] <= 0 ) ) then
return false
endif
return true
endfunction
function Trig_periodic_drop_in_drunkeness_Func019C takes nothing returns boolean
if ( not ( udg_drunkenvillager[9] <= 0 ) ) then
return false
endif
return true
endfunction
function Trig_periodic_drop_in_drunkeness_Func020C takes nothing returns boolean
if ( not ( udg_drunkenvillager[10] <= 0 ) ) then
return false
endif
return true
endfunction
function Trig_periodic_drop_in_drunkeness_Actions takes nothing returns nothing
set udg_drunkenvillager[1] = ( udg_drunkenvillager[1] - 1 )
set udg_drunkenvillager[2] = ( udg_drunkenvillager[2] - 1 )
set udg_drunkenvillager[3] = ( udg_drunkenvillager[3] - 1 )
set udg_drunkenvillager[4] = ( udg_drunkenvillager[4] - 1 )
set udg_drunkenvillager[5] = ( udg_drunkenvillager[5] - 1 )
set udg_drunkenvillager[6] = ( udg_drunkenvillager[6] - 1 )
set udg_drunkenvillager[7] = ( udg_drunkenvillager[7] - 1 )
set udg_drunkenvillager[8] = ( udg_drunkenvillager[8] - 1 )
set udg_drunkenvillager[9] = ( udg_drunkenvillager[9] - 1 )
set udg_drunkenvillager[10] = ( udg_drunkenvillager[10] - 1 )
if ( Trig_periodic_drop_in_drunkeness_Func011C() ) then
set udg_drunkenvillager[1] = 0
else
endif
if ( Trig_periodic_drop_in_drunkeness_Func012C() ) then
set udg_drunkenvillager[2] = 0
else
endif
if ( Trig_periodic_drop_in_drunkeness_Func013C() ) then
set udg_drunkenvillager[3] = 0
else
endif
if ( Trig_periodic_drop_in_drunkeness_Func014C() ) then
set udg_drunkenvillager[4] = 0
else
endif
if ( Trig_periodic_drop_in_drunkeness_Func015C() ) then
set udg_drunkenvillager[5] = 0
else
endif
if ( Trig_periodic_drop_in_drunkeness_Func016C() ) then
set udg_drunkenvillager[6] = 0
else
endif
if ( Trig_periodic_drop_in_drunkeness_Func017C() ) then
set udg_drunkenvillager[7] = 0
else
endif
if ( Trig_periodic_drop_in_drunkeness_Func018C() ) then
set udg_drunkenvillager[8] = 0
else
endif
if ( Trig_periodic_drop_in_drunkeness_Func019C() ) then
set udg_drunkenvillager[9] = 0
else
endif
if ( Trig_periodic_drop_in_drunkeness_Func020C() ) then
set udg_drunkenvillager[10] = 0
else
endif
endfunction
//===========================================================================
function InitTrig_periodic_drop_in_drunkeness takes nothing returns nothing
set gg_trg_periodic_drop_in_drunkeness = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_periodic_drop_in_drunkeness, 60.00 )
call TriggerAddAction( gg_trg_periodic_drop_in_drunkeness, function Trig_periodic_drop_in_drunkeness_Actions )
endfunction
function Trig_drunk_does_Func001C takes nothing returns boolean
if ( not ( udg_drunkenvillager[1] >= 1 ) ) then
return false
endif
return true
endfunction
function Trig_drunk_does_Func002C takes nothing returns boolean
if ( not ( udg_drunkenvillager[2] >= 1 ) ) then
return false
endif
return true
endfunction
function Trig_drunk_does_Func003C takes nothing returns boolean
if ( not ( udg_drunkenvillager[3] >= 1 ) ) then
return false
endif
return true
endfunction
function Trig_drunk_does_Func004C takes nothing returns boolean
if ( not ( udg_drunkenvillager[4] >= 1 ) ) then
return false
endif
return true
endfunction
function Trig_drunk_does_Func005C takes nothing returns boolean
if ( not ( udg_drunkenvillager[5] >= 1 ) ) then
return false
endif
return true
endfunction
function Trig_drunk_does_Func006C takes nothing returns boolean
if ( not ( udg_drunkenvillager[6] >= 1 ) ) then
return false
endif
return true
endfunction
function Trig_drunk_does_Func007C takes nothing returns boolean
if ( not ( udg_drunkenvillager[7] <= 6 ) ) then
return false
endif
if ( not ( udg_drunkenvillager[7] >= 1 ) ) then
return false
endif
return true
endfunction
function Trig_drunk_does_Func008C takes nothing returns boolean
if ( not ( udg_drunkenvillager[8] >= 1 ) ) then
return false
endif
return true
endfunction
function Trig_drunk_does_Func009C takes nothing returns boolean
if ( not ( udg_drunkenvillager[9] >= 1 ) ) then
return false
endif
return true
endfunction
function Trig_drunk_does_Func010C takes nothing returns boolean
if ( not ( udg_drunkenvillager[10] >= 1 ) ) then
return false
endif
return true
endfunction
function Trig_drunk_does_Actions takes nothing returns nothing
if ( Trig_drunk_does_Func001C() ) then
call CreateNUnitsAtLoc( 1, 'h00F', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_hero[1]), bj_UNIT_FACING )
else
endif
if ( Trig_drunk_does_Func002C() ) then
call CreateNUnitsAtLoc( 1, 'h00F', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_hero[2]), bj_UNIT_FACING )
else
endif
if ( Trig_drunk_does_Func003C() ) then
call CreateNUnitsAtLoc( 1, 'h00F', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_hero[3]), bj_UNIT_FACING )
else
endif
if ( Trig_drunk_does_Func004C() ) then
call CreateNUnitsAtLoc( 1, 'h00F', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_hero[4]), bj_UNIT_FACING )
else
endif
if ( Trig_drunk_does_Func005C() ) then
call CreateNUnitsAtLoc( 1, 'h00F', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_hero[5]), bj_UNIT_FACING )
else
endif
if ( Trig_drunk_does_Func006C() ) then
call CreateNUnitsAtLoc( 1, 'h00F', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_hero[6]), bj_UNIT_FACING )
else
endif
if ( Trig_drunk_does_Func007C() ) then
call CreateNUnitsAtLoc( 1, 'h00F', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_hero[7]), bj_UNIT_FACING )
else
endif
if ( Trig_drunk_does_Func008C() ) then
call CreateNUnitsAtLoc( 1, 'h00F', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_hero[8]), bj_UNIT_FACING )
else
endif
if ( Trig_drunk_does_Func009C() ) then
call CreateNUnitsAtLoc( 1, 'h00F', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_hero[9]), bj_UNIT_FACING )
else
endif
if ( Trig_drunk_does_Func010C() ) then
call CreateNUnitsAtLoc( 1, 'h00F', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_hero[12]), bj_UNIT_FACING )
else
endif
endfunction
//===========================================================================
function InitTrig_drunk_does takes nothing returns nothing
set gg_trg_drunk_does = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_drunk_does, 10.00 )
call TriggerAddAction( gg_trg_drunk_does, function Trig_drunk_does_Actions )
endfunction
function Trig_set_drunk_count_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I008' ) ) then
return false
endif
return true
endfunction
function Trig_set_drunk_count_Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetManipulatingUnit()) == Player(0) ) ) then
return false
endif
return true
endfunction
function Trig_set_drunk_count_Func002C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetManipulatingUnit()) == Player(1) ) ) then
return false
endif
return true
endfunction
function Trig_set_drunk_count_Func003C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetManipulatingUnit()) == Player(2) ) ) then
return false
endif
return true
endfunction
function Trig_set_drunk_count_Func004C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetManipulatingUnit()) == Player(3) ) ) then
return false
endif
return true
endfunction
function Trig_set_drunk_count_Func005C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetManipulatingUnit()) == Player(4) ) ) then
return false
endif
return true
endfunction
function Trig_set_drunk_count_Func006C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetManipulatingUnit()) == Player(5) ) ) then
return false
endif
return true
endfunction
function Trig_set_drunk_count_Func007C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetManipulatingUnit()) == Player(6) ) ) then
return false
endif
return true
endfunction
function Trig_set_drunk_count_Func008C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetManipulatingUnit()) == Player(7) ) ) then
return false
endif
return true
endfunction
function Trig_set_drunk_count_Func009C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetManipulatingUnit()) == Player(8) ) ) then
return false
endif
return true
endfunction
function Trig_set_drunk_count_Func010C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetManipulatingUnit()) == Player(11) ) ) then
return false
endif
return true
endfunction
function Trig_set_drunk_count_Actions takes nothing returns nothing
if ( Trig_set_drunk_count_Func001C() ) then
set udg_drunkenvillager[1] = ( udg_drunkenvillager[1] + 1 )
else
endif
if ( Trig_set_drunk_count_Func002C() ) then
set udg_drunkenvillager[2] = ( udg_drunkenvillager[2] + 1 )
else
endif
if ( Trig_set_drunk_count_Func003C() ) then
set udg_drunkenvillager[3] = ( udg_drunkenvillager[3] + 1 )
else
endif
if ( Trig_set_drunk_count_Func004C() ) then
set udg_drunkenvillager[4] = ( udg_drunkenvillager[4] + 1 )
else
endif
if ( Trig_set_drunk_count_Func005C() ) then
set udg_drunkenvillager[5] = ( udg_drunkenvillager[5] + 1 )
else
endif
if ( Trig_set_drunk_count_Func006C() ) then
set udg_drunkenvillager[6] = ( udg_drunkenvillager[6] + 1 )
else
endif
if ( Trig_set_drunk_count_Func007C() ) then
set udg_drunkenvillager[7] = ( udg_drunkenvillager[7] + 1 )
else
endif
if ( Trig_set_drunk_count_Func008C() ) then
set udg_drunkenvillager[8] = ( udg_drunkenvillager[8] + 1 )
else
endif
if ( Trig_set_drunk_count_Func009C() ) then
set udg_drunkenvillager[9] = ( udg_drunkenvillager[9] + 1 )
else
endif
if ( Trig_set_drunk_count_Func010C() ) then
set udg_drunkenvillager[10] = ( udg_drunkenvillager[10] + 1 )
else
endif
endfunction
//===========================================================================
function InitTrig_set_drunk_count takes nothing returns nothing
set gg_trg_set_drunk_count = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_set_drunk_count, EVENT_PLAYER_UNIT_USE_ITEM )
call TriggerAddCondition( gg_trg_set_drunk_count, Condition( function Trig_set_drunk_count_Conditions ) )
call TriggerAddAction( gg_trg_set_drunk_count, function Trig_set_drunk_count_Actions )
endfunction
function Trig_unlink_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A009' ) ) then
return false
endif
return true
endfunction
function Trig_unlink_Actions takes nothing returns nothing
call WaygateActivateBJ( false, GetSpellAbilityUnit() )
endfunction
//===========================================================================
function InitTrig_unlink takes nothing returns nothing
set gg_trg_unlink = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_unlink, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_unlink, Condition( function Trig_unlink_Conditions ) )
call TriggerAddAction( gg_trg_unlink, function Trig_unlink_Actions )
endfunction
function Trig_Untitled_Trigger_001_Copy_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A007' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'n008' ) ) then
return false
endif
return true
endfunction
function Trig_Untitled_Trigger_001_Copy_2_Actions takes nothing returns nothing
call WaygateActivateBJ( true, GetSpellAbilityUnit() )
call WaygateSetDestinationLocBJ( GetSpellAbilityUnit(), GetUnitLoc(GetSpellTargetUnit()) )
endfunction
//===========================================================================
function InitTrig_Untitled_Trigger_001_Copy_2 takes nothing returns nothing
set gg_trg_Untitled_Trigger_001_Copy_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Untitled_Trigger_001_Copy_2, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Untitled_Trigger_001_Copy_2, Condition( function Trig_Untitled_Trigger_001_Copy_2_Conditions ) )
call TriggerAddAction( gg_trg_Untitled_Trigger_001_Copy_2, function Trig_Untitled_Trigger_001_Copy_2_Actions )
endfunction
function Trig_leaderboard_Actions takes nothing returns nothing
call CreateLeaderboardBJ( GetPlayersAll(), "TRIGSTR_359" )
call LeaderboardAddItemBJ( Player(bj_PLAYER_NEUTRAL_VICTIM), GetLastCreatedLeaderboard(), "TRIGSTR_362", 0 )
call LeaderboardSetPlayerItemStyleBJ( Player(bj_PLAYER_NEUTRAL_VICTIM), GetLastCreatedLeaderboard(), true, false, false )
call LeaderboardSetPlayerItemLabelColorBJ( Player(bj_PLAYER_NEUTRAL_VICTIM), GetLastCreatedLeaderboard(), 70.00, 70.00, 70.00, 0 )
call LeaderboardAddItemBJ( Player(0), GetLastCreatedLeaderboard(), GetPlayerName(Player(0)), 0 )
call LeaderboardAddItemBJ( Player(1), GetLastCreatedLeaderboard(), GetPlayerName(Player(1)), 0 )
call LeaderboardAddItemBJ( Player(2), GetLastCreatedLeaderboard(), GetPlayerName(Player(2)), 0 )
call LeaderboardAddItemBJ( Player(3), GetLastCreatedLeaderboard(), GetPlayerName(Player(3)), 0 )
call LeaderboardAddItemBJ( Player(4), GetLastCreatedLeaderboard(), GetPlayerName(Player(4)), 0 )
call LeaderboardAddItemBJ( Player(5), GetLastCreatedLeaderboard(), GetPlayerName(Player(5)), 0 )
call LeaderboardAddItemBJ( Player(6), GetLastCreatedLeaderboard(), GetPlayerName(Player(6)), 0 )
call LeaderboardAddItemBJ( Player(7), GetLastCreatedLeaderboard(), GetPlayerName(Player(7)), 0 )
call LeaderboardAddItemBJ( Player(8), GetLastCreatedLeaderboard(), GetPlayerName(Player(8)), 0 )
call LeaderboardAddItemBJ( Player(11), GetLastCreatedLeaderboard(), GetPlayerName(Player(11)), 0 )
endfunction
//===========================================================================
function InitTrig_leaderboard takes nothing returns nothing
set gg_trg_leaderboard = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_leaderboard, 60.00 )
call TriggerAddAction( gg_trg_leaderboard, function Trig_leaderboard_Actions )
endfunction
function Trig_refresh_Actions takes nothing returns nothing
call LeaderboardSetPlayerItemValueBJ( Player(0), GetLastCreatedLeaderboard(), GetPlayerState(Player(0), PLAYER_STATE_RESOURCE_GOLD) )
call LeaderboardSetPlayerItemValueBJ( Player(1), GetLastCreatedLeaderboard(), GetPlayerState(Player(1), PLAYER_STATE_RESOURCE_GOLD) )
call LeaderboardSetPlayerItemValueBJ( Player(2), GetLastCreatedLeaderboard(), GetPlayerState(Player(2), PLAYER_STATE_RESOURCE_GOLD) )
call LeaderboardSetPlayerItemValueBJ( Player(3), GetLastCreatedLeaderboard(), GetPlayerState(Player(3), PLAYER_STATE_RESOURCE_GOLD) )
call LeaderboardSetPlayerItemValueBJ( Player(4), GetLastCreatedLeaderboard(), GetPlayerState(Player(4), PLAYER_STATE_RESOURCE_GOLD) )
call LeaderboardSetPlayerItemValueBJ( Player(5), GetLastCreatedLeaderboard(), GetPlayerState(Player(5), PLAYER_STATE_RESOURCE_GOLD) )
call LeaderboardSetPlayerItemValueBJ( Player(6), GetLastCreatedLeaderboard(), GetPlayerState(Player(6), PLAYER_STATE_RESOURCE_GOLD) )
call LeaderboardSetPlayerItemValueBJ( Player(7), GetLastCreatedLeaderboard(), GetPlayerState(Player(7), PLAYER_STATE_RESOURCE_GOLD) )
call LeaderboardSetPlayerItemValueBJ( Player(8), GetLastCreatedLeaderboard(), GetPlayerState(Player(8), PLAYER_STATE_RESOURCE_GOLD) )
call LeaderboardSetPlayerItemValueBJ( Player(11), GetLastCreatedLeaderboard(), GetPlayerState(Player(11), PLAYER_STATE_RESOURCE_GOLD) )
endfunction
//===========================================================================
function InitTrig_refresh takes nothing returns nothing
set gg_trg_refresh = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_refresh, 2 )
call TriggerAddAction( gg_trg_refresh, function Trig_refresh_Actions )
endfunction
function Trig_revive_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_revive_Func002Func002C takes nothing returns boolean
if ( ( GetUnitTypeId(GetDyingUnit()) == 'H003' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'H005' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'H004' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'H00E' ) ) then
return true
endif
return false
endfunction
function Trig_revive_Func002C takes nothing returns boolean
if ( not Trig_revive_Func002Func002C() ) then
return false
endif
return true
endfunction
function Trig_revive_Actions takes nothing returns nothing
if ( Trig_revive_Func002C() ) then
call ReviveHeroLoc( GetDyingUnit(), GetRectCenter(gg_rct_Hero_Start), false )
else
call ReviveHeroLoc( GetDyingUnit(), GetRectCenter(gg_rct_Rect_104), false )
endif
endfunction
//===========================================================================
function InitTrig_revive takes nothing returns nothing
set gg_trg_revive = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_revive, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_revive, Condition( function Trig_revive_Conditions ) )
call TriggerAddAction( gg_trg_revive, function Trig_revive_Actions )
endfunction
function Trig_Untitled_Trigger_002_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_239" )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Untitled_Trigger_002 takes nothing returns nothing
set gg_trg_Untitled_Trigger_002 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Untitled_Trigger_002, gg_rct_Rect_071 )
call TriggerAddAction( gg_trg_Untitled_Trigger_002, function Trig_Untitled_Trigger_002_Actions )
endfunction
function Trig_forest_tree_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetConstructingStructure()) == 'h009' ) ) then
return false
endif
return true
endfunction
function Trig_forest_tree_Actions takes nothing returns nothing
call KillUnit( GetConstructingStructure() )
call CreateDestructableLoc( 'ATtr', GetUnitLoc(GetConstructingStructure()), GetRandomDirectionDeg(), 1, 0 )
endfunction
//===========================================================================
function InitTrig_forest_tree takes nothing returns nothing
set gg_trg_forest_tree = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_forest_tree, EVENT_PLAYER_UNIT_CONSTRUCT_START )
call TriggerAddCondition( gg_trg_forest_tree, Condition( function Trig_forest_tree_Conditions ) )
call TriggerAddAction( gg_trg_forest_tree, function Trig_forest_tree_Actions )
endfunction
function Trig_forest_tree_Copy_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetConstructingStructure()) == 'h00A' ) ) then
return false
endif
return true
endfunction
function Trig_forest_tree_Copy_Actions takes nothing returns nothing
call KillUnit( GetConstructingStructure() )
call CreateDestructableLoc( 'ZTtc', GetUnitLoc(GetConstructingStructure()), GetRandomDirectionDeg(), 1, 0 )
endfunction
//===========================================================================
function InitTrig_forest_tree_Copy takes nothing returns nothing
set gg_trg_forest_tree_Copy = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_forest_tree_Copy, EVENT_PLAYER_UNIT_CONSTRUCT_START )
call TriggerAddCondition( gg_trg_forest_tree_Copy, Condition( function Trig_forest_tree_Copy_Conditions ) )
call TriggerAddAction( gg_trg_forest_tree_Copy, function Trig_forest_tree_Copy_Actions )
endfunction
function Trig_fading_text_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0316, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
return true
endfunction
function Trig_fading_text_Actions takes nothing returns nothing
call CreateTextTagLocBJ( "TRIGSTR_078", GetRectCenter(gg_rct_Gov1), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_533", GetRectCenter(gg_rct_Rect_178), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_534", GetRectCenter(gg_rct_Rect_177), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_139", GetRectCenter(gg_rct_farm1), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_140", GetRectCenter(gg_rct_farm2), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_079", GetRectCenter(gg_rct_soldier1), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_080", GetRectCenter(gg_rct_Small_House_3), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_269", GetRectCenter(gg_rct_Rect_008), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_111", GetRectCenter(gg_rct_Rect_023), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_114", GetRectCenter(gg_rct_Rect_028), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_476", GetRectCenter(gg_rct_Rect_167), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_504", GetRectCenter(gg_rct_Rect_175), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_505", GetRectCenter(gg_rct_Rect_176), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_081", GetRectCenter(gg_rct_Small_Island), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_082", GetRectCenter(gg_rct_Medium_2_Island), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_267", GetRectCenter(gg_rct_Rect_085), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_083", GetRectCenter(gg_rct_Large_Island), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_399", GetRectCenter(gg_rct_Rect_153), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_425", GetRectCenter(gg_rct_Rect_162), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_426", GetRectCenter(gg_rct_Rect_166), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_400", GetRectCenter(gg_rct_Rect_154), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_401", GetRectCenter(gg_rct_Rect_145), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_402", GetRectCenter(gg_rct_Rect_139), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_084", GetRectCenter(gg_rct_Medium_1_Island), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_085", GetRectCenter(gg_rct_gaurd1), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_451", GetRectCenter(gg_rct_Rect_172), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_452", GetRectCenter(gg_rct_Rect_170), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_453", GetRectCenter(gg_rct_Rect_168), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_454", GetRectCenter(gg_rct_Rect_171), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_455", GetRectCenter(gg_rct_Rect_173), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_159", GetRectCenter(gg_rct_sildier2), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_141", GetRectCenter(gg_rct_navy1), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_150", GetRectCenter(gg_rct_Rect_058), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_151", GetRectCenter(gg_rct_Rect_057), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_152", GetRectCenter(gg_rct_Rect_056), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_403", GetRectCenter(gg_rct_Rect_156), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_404", GetRectCenter(gg_rct_Rect_157), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_268", GetRectCenter(gg_rct_Rect_092), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_278", GetRectCenter(gg_rct_Rect_105), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_355", GetRectCenter(gg_rct_Rect_135), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_356", GetRectCenter(gg_rct_Rect_137), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_308", GetRectCenter(gg_rct_Rect_112), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_153", GetRectCenter(gg_rct_Rect_055), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_237", GetRectCenter(gg_rct_Rect_069), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_238", GetRectCenter(gg_rct_Rect_070), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_261", GetRectCenter(gg_rct_Rect_077), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_262", GetRectCenter(gg_rct_Rect_078), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_263", GetRectCenter(gg_rct_Rect_066), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_264", GetRectCenter(gg_rct_Rect_083), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_265", GetRectCenter(gg_rct_Rect_080), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_266", GetRectCenter(gg_rct_Rect_079), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_270", GetRectCenter(gg_rct_Top_Land), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_271", GetRectCenter(gg_rct_Bottom_Land), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_272", GetRectCenter(gg_rct_Middle_Land), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_302", GetRectCenter(gg_rct_Rect_106), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_303", GetRectCenter(gg_rct_Rect_110), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_316", GetRectCenter(gg_rct_Rect_113), 0, 10, 100, 100, 100, 0 )
call CreateTextTagLocBJ( "TRIGSTR_325", GetRectCenter(gg_rct_Rect_126), 0, 10, 100, 100, 100, 0 )
endfunction
//===========================================================================
function InitTrig_fading_text takes nothing returns nothing
set gg_trg_fading_text = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_fading_text, 15.00 )
call TriggerRegisterTimerEventSingle( gg_trg_fading_text, 1.00 )
call TriggerAddCondition( gg_trg_fading_text, Condition( function Trig_fading_text_Conditions ) )
call TriggerAddAction( gg_trg_fading_text, function Trig_fading_text_Actions )
endfunction
function Trig_paler_leavce_Func001002 takes nothing returns nothing
call SetUnitOwner( GetEnumUnit(), Player(9), true )
endfunction
function Trig_paler_leavce_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsOfPlayerAll(GetTriggerPlayer()), function Trig_paler_leavce_Func001002 )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + " has disapeared and one of his allies has control over his units." ) )
endfunction
//===========================================================================
function InitTrig_paler_leavce takes nothing returns nothing
set gg_trg_paler_leavce = CreateTrigger( )
call TriggerRegisterPlayerEventLeave( gg_trg_paler_leavce, Player(0) )
call TriggerRegisterPlayerEventLeave( gg_trg_paler_leavce, Player(1) )
call TriggerRegisterPlayerEventLeave( gg_trg_paler_leavce, Player(2) )
call TriggerRegisterPlayerEventLeave( gg_trg_paler_leavce, Player(3) )
call TriggerRegisterPlayerEventLeave( gg_trg_paler_leavce, Player(4) )
call TriggerRegisterPlayerEventLeave( gg_trg_paler_leavce, Player(5) )
call TriggerRegisterPlayerEventLeave( gg_trg_paler_leavce, Player(6) )
call TriggerRegisterPlayerEventLeave( gg_trg_paler_leavce, Player(7) )
call TriggerRegisterPlayerEventLeave( gg_trg_paler_leavce, Player(8) )
call TriggerRegisterPlayerEventLeave( gg_trg_paler_leavce, Player(11) )
call TriggerAddAction( gg_trg_paler_leavce, function Trig_paler_leavce_Actions )
endfunction
function Trig_lumberjack_smack_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hlum_0101, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
//===========================================================================
function InitTrig_lumberjack_smack takes nothing returns nothing
set gg_trg_lumberjack_smack = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_lumberjack_smack, gg_rct_Rect_055 )
call TriggerAddAction( gg_trg_lumberjack_smack, function Trig_lumberjack_smack_Actions )
endfunction
function Trig_lumberjack_smack_Copy_7_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hlum_0342, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
//===========================================================================
function InitTrig_lumberjack_smack_Copy_7 takes nothing returns nothing
set gg_trg_lumberjack_smack_Copy_7 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_lumberjack_smack_Copy_7, gg_rct_Rect_157 )
call TriggerAddAction( gg_trg_lumberjack_smack_Copy_7, function Trig_lumberjack_smack_Copy_7_Actions )
endfunction
function Trig_lumberjack_smack_Copy_6_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hlum_0344, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
//===========================================================================
function InitTrig_lumberjack_smack_Copy_6 takes nothing returns nothing
set gg_trg_lumberjack_smack_Copy_6 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_lumberjack_smack_Copy_6, gg_rct_Rect_156 )
call TriggerAddAction( gg_trg_lumberjack_smack_Copy_6, function Trig_lumberjack_smack_Copy_6_Actions )
endfunction
function Trig_lumberjack_smack_Copy_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hlum_0100, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
//===========================================================================
function InitTrig_lumberjack_smack_Copy takes nothing returns nothing
set gg_trg_lumberjack_smack_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_lumberjack_smack_Copy, gg_rct_Rect_056 )
call TriggerAddAction( gg_trg_lumberjack_smack_Copy, function Trig_lumberjack_smack_Copy_Actions )
endfunction
function Trig_lumberjack_smack_Copy_2_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hlum_0099, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
//===========================================================================
function InitTrig_lumberjack_smack_Copy_2 takes nothing returns nothing
set gg_trg_lumberjack_smack_Copy_2 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_lumberjack_smack_Copy_2, gg_rct_Rect_057 )
call TriggerAddAction( gg_trg_lumberjack_smack_Copy_2, function Trig_lumberjack_smack_Copy_2_Actions )
endfunction
function Trig_lumberjack_smack_Copy_3_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hlum_0098, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
//===========================================================================
function InitTrig_lumberjack_smack_Copy_3 takes nothing returns nothing
set gg_trg_lumberjack_smack_Copy_3 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_lumberjack_smack_Copy_3, gg_rct_Rect_058 )
call TriggerAddAction( gg_trg_lumberjack_smack_Copy_3, function Trig_lumberjack_smack_Copy_3_Actions )
endfunction
function Trig_lumberjack_smack_Copy_4_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hlum_0167, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
//===========================================================================
function InitTrig_lumberjack_smack_Copy_4 takes nothing returns nothing
set gg_trg_lumberjack_smack_Copy_4 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_lumberjack_smack_Copy_4, gg_rct_Rect_079 )
call TriggerAddAction( gg_trg_lumberjack_smack_Copy_4, function Trig_lumberjack_smack_Copy_4_Actions )
endfunction
function Trig_lumberjack_smack_Copy_5_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hlum_0165, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
//===========================================================================
function InitTrig_lumberjack_smack_Copy_5 takes nothing returns nothing
set gg_trg_lumberjack_smack_Copy_5 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_lumberjack_smack_Copy_5, gg_rct_Rect_080 )
call TriggerAddAction( gg_trg_lumberjack_smack_Copy_5, function Trig_lumberjack_smack_Copy_5_Actions )
endfunction
function Trig_Invul_Keep_Func046002 takes nothing returns nothing
call SetCameraBoundsToRectForPlayerBJ( GetEnumPlayer(), gg_rct_Rect_034 )
endfunction
function Trig_Invul_Keep_Actions takes nothing returns nothing
call SetUnitInvulnerable( gg_unit_htow_0012, true )
call SetUnitInvulnerable( gg_unit_h002_0013, true )
call SetUnitInvulnerable( gg_unit_hdes_0015, true )
call SetUnitInvulnerable( gg_unit_hbot_0016, true )
call SetUnitInvulnerable( gg_unit_htow_0093, true )
call SetUnitInvulnerable( gg_unit_hwtw_0096, true )
call SetUnitInvulnerable( gg_unit_n000_0092, true )
call SetUnitInvulnerable( gg_unit_htow_0164, true )
call SetUnitInvulnerable( gg_unit_hwtw_0097, true )
call SetUnitInvulnerable( gg_unit_h002_0094, true )
call SetUnitInvulnerable( gg_unit_hwtw_0095, true )
call SetDestructableInvulnerableBJ( gg_dest_ATg1_0145, true )
call SetDestructableInvulnerableBJ( gg_dest_ATg3_2950, true )
call SetDestructableInvulnerableBJ( gg_dest_ATg1_0144, true )
call SetDestructableInvulnerableBJ( gg_dest_ATg2_4040, true )
call SetDestructableInvulnerableBJ( gg_dest_DTg3_6210, true )
call SetDestructableInvulnerableBJ( gg_dest_DTg5_6211, true )
call SetDestructableInvulnerableBJ( gg_dest_DTg7_6212, true )
call SetDestructableInvulnerableBJ( gg_dest_DTg1_6213, true )
call SetDestructableInvulnerableBJ( gg_dest_ATg1_0143, true )
call SetDestructableInvulnerableBJ( gg_dest_ATg1_4607, true )
call SetDestructableInvulnerableBJ( gg_dest_ATg1_0142, true )
call SetDestructableInvulnerableBJ( gg_dest_ATg2_1676, true )
call SetDestructableInvulnerableBJ( gg_dest_LTe1_0439, true )
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTe1_0439 )
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_ATg3_2950 )
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTe3_4608 )
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTg1_4017 )
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTg1_5923 )
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTg3_5925 )
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTg3_5924 )
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTe1_6618 )
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_ZTd1_5471 )
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTg1_6021 )
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTg3_6022 )
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTg3_6023 )
call SetUnitInvulnerable( gg_unit_ncbe_0018, true )
call SetUnitInvulnerable( gg_unit_ncba_0020, true )
call SetUnitInvulnerable( gg_unit_ncb9_0019, true )
call SetUnitInvulnerable( gg_unit_hlum_0098, true )
call SetUnitInvulnerable( gg_unit_hlum_0099, true )
call SetUnitInvulnerable( gg_unit_hlum_0100, true )
call SetUnitInvulnerable( gg_unit_hlum_0101, true )
call SetUnitInvulnerable( gg_unit_hlum_0165, true )
call SetUnitInvulnerable( gg_unit_hlum_0167, true )
call ForForce( GetPlayersAll(), function Trig_Invul_Keep_Func046002 )
endfunction
//===========================================================================
function InitTrig_Invul_Keep takes nothing returns nothing
set gg_trg_Invul_Keep = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Invul_Keep, 0.01 )
call TriggerAddAction( gg_trg_Invul_Keep, function Trig_Invul_Keep_Actions )
endfunction
function Trig_quests_Actions takes nothing returns nothing
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_056", "TRIGSTR_057", "ReplaceableTextures\\CommandButtons\\BTNAmbush.blp" )
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_304", "TRIGSTR_305", "ReplaceableTextures\\CommandButtons\\BTNAmbush.blp" )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_115", "TRIGSTR_116", "ReplaceableTextures\\CommandButtons\\BTNAmbush.blp" )
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_306", "TRIGSTR_307", "ReplaceableTextures\\CommandButtons\\BTNAmbush.blp" )
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_076", "TRIGSTR_077", "ReplaceableTextures\\CommandButtons\\BTNAmbush.blp" )
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_506", "TRIGSTR_507", "ReplaceableTextures\\CommandButtons\\BTNAmbush.blp" )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_397", "TRIGSTR_398", "ReplaceableTextures\\CommandButtons\\BTNAmbush.blp" )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_472", "TRIGSTR_473", "ReplaceableTextures\\CommandButtons\\BTNAmbush.blp" )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_474", "TRIGSTR_475", "ReplaceableTextures\\CommandButtons\\BTNAmbush.blp" )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_508", "TRIGSTR_509", "ReplaceableTextures\\CommandButtons\\BTNAmbush.blp" )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_516", "TRIGSTR_517", "ReplaceableTextures\\CommandButtons\\BTNAmbush.blp" )
endfunction
//===========================================================================
function InitTrig_quests takes nothing returns nothing
set gg_trg_quests = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_quests, 1.00 )
call TriggerAddAction( gg_trg_quests, function Trig_quests_Actions )
endfunction
function Trig_View_Britain_Actions takes nothing returns nothing
call CreateFogModifierRectBJ( true, Player(0), FOG_OF_WAR_VISIBLE, gg_rct_View_City )
call CreateFogModifierRectBJ( true, Player(1), FOG_OF_WAR_VISIBLE, gg_rct_View_City )
call CreateFogModifierRectBJ( true, Player(2), FOG_OF_WAR_VISIBLE, gg_rct_View_City )
call CreateFogModifierRectBJ( true, Player(3), FOG_OF_WAR_VISIBLE, gg_rct_View_City )
call CreateFogModifierRectBJ( true, Player(4), FOG_OF_WAR_VISIBLE, gg_rct_View_City )
call CreateFogModifierRectBJ( true, Player(5), FOG_OF_WAR_VISIBLE, gg_rct_View_City )
call CreateFogModifierRectBJ( true, Player(6), FOG_OF_WAR_VISIBLE, gg_rct_View_City )
call CreateFogModifierRectBJ( true, Player(7), FOG_OF_WAR_VISIBLE, gg_rct_View_City )
call CreateFogModifierRectBJ( true, Player(8), FOG_OF_WAR_VISIBLE, gg_rct_View_City )
call CreateFogModifierRectBJ( true, Player(9), FOG_OF_WAR_VISIBLE, gg_rct_View_City )
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTg1_4017 )
endfunction
//===========================================================================
function InitTrig_View_Britain takes nothing returns nothing
set gg_trg_View_Britain = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_View_Britain, 0.01 )
call TriggerAddAction( gg_trg_View_Britain, function Trig_View_Britain_Actions )
endfunction
function Trig_setup_Func010002 takes nothing returns nothing
call DialogDisplayBJ( true, udg_menu, GetEnumPlayer() )
endfunction
function Trig_setup_Actions takes nothing returns nothing
call DialogSetMessageBJ( udg_menu, "TRIGSTR_045" )
call DialogAddButtonBJ( udg_menu, "TRIGSTR_046" )
set udg_selection[1] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_menu, "TRIGSTR_047" )
set udg_selection[2] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_menu, "TRIGSTR_240" )
set udg_selection[4] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_menu, "TRIGSTR_048" )
set udg_selection[3] = GetLastCreatedButtonBJ()
call ForForce( GetPlayersAll(), function Trig_setup_Func010002 )
endfunction
//===========================================================================
function InitTrig_setup takes nothing returns nothing
set gg_trg_setup = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_setup, 1.00 )
call TriggerAddAction( gg_trg_setup, function Trig_setup_Actions )
endfunction
function Trig_setup2_Actions takes nothing returns nothing
call DialogSetMessageBJ( udg_gendermenu, "TRIGSTR_333" )
call DialogAddButtonBJ( udg_gendermenu, "TRIGSTR_335" )
set udg_genderbtn[1] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_gendermenu, "TRIGSTR_336" )
set udg_genderbtn[2] = GetLastCreatedButtonBJ()
endfunction
//===========================================================================
function InitTrig_setup2 takes nothing returns nothing
set gg_trg_setup2 = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_setup2, 1.00 )
call TriggerAddAction( gg_trg_setup2, function Trig_setup2_Actions )
endfunction
function Trig_selected_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_selection[1] ) ) then
return false
endif
return true
endfunction
function Trig_selected_Func001Func009C takes nothing returns boolean
if ( not ( udg_buildertradermax[1] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_selected_Func001Func010C takes nothing returns boolean
if ( not ( udg_buildertradermax[1] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_selected_Func001Func011C takes nothing returns boolean
if ( not ( udg_buildertradermax[1] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_selected_Func001C takes nothing returns boolean
if ( not ( udg_buildertradermax[1] < 11 ) ) then
return false
endif
return true
endfunction
function Trig_selected_Actions takes nothing returns nothing
if ( Trig_selected_Func001C() ) then
call DialogDisplayBJ( false, udg_menu, GetTriggerPlayer() )
call AdjustPlayerStateBJ( 100, GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 50, GetTriggerPlayer(), PLAYER_STATE_RESOURCE_LUMBER )
call CreateNUnitsAtLoc( 1, 'H003', GetTriggerPlayer(), GetRectCenter(gg_rct_Hero_Start), bj_UNIT_FACING )
set udg_hero[GetConvertedPlayerId(GetTriggerPlayer())] = GetLastCreatedUnit()
set udg_buildertradermax[1] = ( udg_buildertradermax[1] + 1 )
if ( Trig_selected_Func001Func009C() ) then
call SetUnitOwner( gg_unit_nwgt_0293, GetTriggerPlayer(), true )
call SetUnitOwner( gg_unit_nwgt_0294, GetTriggerPlayer(), true )
else
endif
if ( Trig_selected_Func001Func010C() ) then
call SetUnitOwner( gg_unit_nwgt_0296, GetTriggerPlayer(), true )
call SetUnitOwner( gg_unit_nwgt_0297, GetTriggerPlayer(), true )
else
endif
if ( Trig_selected_Func001Func011C() ) then
call SetUnitOwner( gg_unit_nwgt_0295, GetTriggerPlayer(), true )
call SetUnitOwner( gg_unit_nwgt_0298, GetTriggerPlayer(), true )
else
endif
call ForceAddPlayerSimple( GetTriggerPlayer(), udg_England )
else
call DialogDisplayBJ( true, udg_menu, GetTriggerPlayer() )
call DisplayTextToPlayer( GetTriggerPlayer(), 0, 0, "TRIGSTR_479" )
endif
endfunction
//===========================================================================
function InitTrig_selected takes nothing returns nothing
set gg_trg_selected = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_selected, udg_menu )
call TriggerAddCondition( gg_trg_selected, Condition( function Trig_selected_Conditions ) )
call TriggerAddAction( gg_trg_selected, function Trig_selected_Actions )
endfunction
function Trig_selected_Copy_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_selection[2] ) ) then
return false
endif
return true
endfunction
function Trig_selected_Copy_Func001C takes nothing returns boolean
if ( not ( udg_buildertradermax[2] < 11 ) ) then
return false
endif
return true
endfunction
function Trig_selected_Copy_Actions takes nothing returns nothing
if ( Trig_selected_Copy_Func001C() ) then
call AdjustPlayerStateBJ( 100, GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 50, GetTriggerPlayer(), PLAYER_STATE_RESOURCE_LUMBER )
call DialogDisplayBJ( false, udg_menu, GetTriggerPlayer() )
call CreateNUnitsAtLoc( 1, 'H004', GetTriggerPlayer(), GetRectCenter(gg_rct_trader_start), bj_UNIT_FACING )
set udg_hero[GetConvertedPlayerId(GetTriggerPlayer())] = GetLastCreatedUnit()
call SetCameraBoundsToRectForPlayerBJ( GetTriggerPlayer(), gg_rct_Rect_065 )
call PanCameraToTimedLocForPlayer( GetTriggerPlayer(), GetRectCenter(gg_rct_Rect_062), 0 )
set udg_buildertradermax[2] = ( udg_buildertradermax[2] + 1 )
call ForceAddPlayerSimple( GetTriggerPlayer(), udg_England )
else
call DialogDisplayBJ( true, udg_menu, GetTriggerPlayer() )
call DisplayTextToPlayer( GetTriggerPlayer(), 0, 0, "TRIGSTR_480" )
endif
endfunction
//===========================================================================
function InitTrig_selected_Copy takes nothing returns nothing
set gg_trg_selected_Copy = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_selected_Copy, udg_menu )
call TriggerAddCondition( gg_trg_selected_Copy, Condition( function Trig_selected_Copy_Conditions ) )
call TriggerAddAction( gg_trg_selected_Copy, function Trig_selected_Copy_Actions )
endfunction
function Trig_selected_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_selection[4] ) ) then
return false
endif
return true
endfunction
function Trig_selected_Copy_Copy_Func001C takes nothing returns boolean
if ( not ( udg_buildertradermax[3] < 1 ) ) then
return false
endif
return true
endfunction
function Trig_selected_Copy_Copy_Actions takes nothing returns nothing
if ( Trig_selected_Copy_Copy_Func001C() ) then
call AdjustPlayerStateBJ( 100, GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 50, GetTriggerPlayer(), PLAYER_STATE_RESOURCE_LUMBER )
call DialogDisplayBJ( false, udg_menu, GetTriggerPlayer() )
call CreateNUnitsAtLoc( 1, 'H00D', GetTriggerPlayer(), GetRectCenter(gg_rct_Rect_072), bj_UNIT_FACING )
set udg_hero[GetConvertedPlayerId(GetTriggerPlayer())] = GetLastCreatedUnit()
set udg_buildertradermax[3] = ( udg_buildertradermax[3] + 1 )
call ForceAddPlayerSimple( GetTriggerPlayer(), udg_America )
else
call DialogDisplayBJ( true, udg_menu, GetTriggerPlayer() )
call DisplayTextToPlayer( GetTriggerPlayer(), 0, 0, "TRIGSTR_481" )
endif
endfunction
//===========================================================================
function InitTrig_selected_Copy_Copy takes nothing returns nothing
set gg_trg_selected_Copy_Copy = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_selected_Copy_Copy, udg_menu )
call TriggerAddCondition( gg_trg_selected_Copy_Copy, Condition( function Trig_selected_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_selected_Copy_Copy, function Trig_selected_Copy_Copy_Actions )
endfunction
function Trig_selected_Copy_2_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_selection[3] ) ) then
return false
endif
return true
endfunction
function Trig_selected_Copy_2_Actions takes nothing returns nothing
call DialogDisplayBJ( false, udg_menu, GetTriggerPlayer() )
call DialogDisplayBJ( true, udg_gendermenu, GetTriggerPlayer() )
endfunction
//===========================================================================
function InitTrig_selected_Copy_2 takes nothing returns nothing
set gg_trg_selected_Copy_2 = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_selected_Copy_2, udg_menu )
call TriggerAddCondition( gg_trg_selected_Copy_2, Condition( function Trig_selected_Copy_2_Conditions ) )
call TriggerAddAction( gg_trg_selected_Copy_2, function Trig_selected_Copy_2_Actions )
endfunction
function Trig_selected_Copy_2_Copy_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_genderbtn[1] ) ) then
return false
endif
return true
endfunction
function Trig_selected_Copy_2_Copy_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 100, GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 50, GetTriggerPlayer(), PLAYER_STATE_RESOURCE_LUMBER )
call DialogDisplayBJ( false, udg_gendermenu, GetTriggerPlayer() )
call CreateNUnitsAtLoc( 1, 'H005', GetTriggerPlayer(), GetRectCenter(gg_rct_Hero_Start), bj_UNIT_FACING )
set udg_hero[GetConvertedPlayerId(GetTriggerPlayer())] = GetLastCreatedUnit()
call ForceAddPlayerSimple( GetTriggerPlayer(), udg_England )
endfunction
//===========================================================================
function InitTrig_selected_Copy_2_Copy takes nothing returns nothing
set gg_trg_selected_Copy_2_Copy = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_selected_Copy_2_Copy, udg_gendermenu )
call TriggerAddCondition( gg_trg_selected_Copy_2_Copy, Condition( function Trig_selected_Copy_2_Copy_Conditions ) )
call TriggerAddAction( gg_trg_selected_Copy_2_Copy, function Trig_selected_Copy_2_Copy_Actions )
endfunction
function Trig_selected_Copy_2_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_genderbtn[2] ) ) then
return false
endif
return true
endfunction
function Trig_selected_Copy_2_Copy_Copy_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 100, GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 50, GetTriggerPlayer(), PLAYER_STATE_RESOURCE_LUMBER )
call DialogDisplayBJ( false, udg_gendermenu, GetTriggerPlayer() )
call CreateNUnitsAtLoc( 1, 'H00E', GetTriggerPlayer(), GetRectCenter(gg_rct_Hero_Start), bj_UNIT_FACING )
set udg_hero[GetConvertedPlayerId(GetTriggerPlayer())] = GetLastCreatedUnit()
call ForceAddPlayerSimple( GetTriggerPlayer(), udg_England )
endfunction
//===========================================================================
function InitTrig_selected_Copy_2_Copy_Copy takes nothing returns nothing
set gg_trg_selected_Copy_2_Copy_Copy = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_selected_Copy_2_Copy_Copy, udg_gendermenu )
call TriggerAddCondition( gg_trg_selected_Copy_2_Copy_Copy, Condition( function Trig_selected_Copy_2_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_selected_Copy_2_Copy_Copy, function Trig_selected_Copy_2_Copy_Copy_Actions )
endfunction
function Trig_Gov1_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0011, Player(9)) == true ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0031, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0017, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0034, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0033, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0089, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0107, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0112, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0264, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0263, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0292, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0300, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0309, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0315, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0316, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0161, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0327, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0328, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0336, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0337, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0392, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0401, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0404, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0406, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
return true
endfunction
function Trig_Gov1_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncop_0011, GetOwningPlayer(GetTriggerUnit()), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_087" )
call UnitAddAbilityBJ( 'A00F', GetTriggerUnit() )
call ForceRemovePlayerSimple( GetOwningPlayer(GetTriggerUnit()), udg_America )
call ForceRemovePlayerSimple( GetOwningPlayer(GetTriggerUnit()), udg_Africa )
call ForceAddPlayerSimple( GetOwningPlayer(GetTriggerUnit()), udg_England )
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_Gov3Leave )
endfunction
//===========================================================================
function InitTrig_Gov1 takes nothing returns nothing
set gg_trg_Gov1 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Gov1, gg_rct_Gov1 )
call TriggerAddCondition( gg_trg_Gov1, Condition( function Trig_Gov1_Conditions ) )
call TriggerAddAction( gg_trg_Gov1, function Trig_Gov1_Actions )
endfunction
function Trig_Gov2Payment_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0011, Player(PLAYER_NEUTRAL_PASSIVE)) == false ) ) then
return false
endif
return true
endfunction
function Trig_Gov2Payment_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 17, GetOwningPlayer(gg_unit_ncop_0011), PLAYER_STATE_RESOURCE_GOLD )
endfunction
//===========================================================================
function InitTrig_Gov2Payment takes nothing returns nothing
set gg_trg_Gov2Payment = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Gov2Payment, 20.00 )
call TriggerAddCondition( gg_trg_Gov2Payment, Condition( function Trig_Gov2Payment_Conditions ) )
call TriggerAddAction( gg_trg_Gov2Payment, function Trig_Gov2Payment_Actions )
endfunction
function Trig_Gov3Leave_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0011, GetOwningPlayer(GetTriggerUnit())) == true ) ) then
return false
endif
return true
endfunction
function Trig_Gov3Leave_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncop_0011, Player(9), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_089" )
call UnitRemoveAbilityBJ( 'A00F', GetTriggerUnit() )
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 5.00 )
call EnableTrigger( gg_trg_Gov1 )
endfunction
//===========================================================================
function InitTrig_Gov3Leave takes nothing returns nothing
set gg_trg_Gov3Leave = CreateTrigger( )
call DisableTrigger( gg_trg_Gov3Leave )
call TriggerRegisterEnterRectSimple( gg_trg_Gov3Leave, gg_rct_Gov1 )
call TriggerAddCondition( gg_trg_Gov3Leave, Condition( function Trig_Gov3Leave_Conditions ) )
call TriggerAddAction( gg_trg_Gov3Leave, function Trig_Gov3Leave_Actions )
endfunction
function Trig_Gov1_Copy_4_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0406, Player(9)) == true ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0011, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0031, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0017, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0034, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0033, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0089, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0107, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0112, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0264, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0263, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0292, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0300, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0309, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0315, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0316, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0161, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0327, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0328, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0336, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0337, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0392, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0401, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0404, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
return true
endfunction
function Trig_Gov1_Copy_4_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncp2_0406, GetOwningPlayer(GetTriggerUnit()), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_535" )
call UnitAddAbilityBJ( 'A00F', GetTriggerUnit() )
call ForceRemovePlayerSimple( GetOwningPlayer(GetTriggerUnit()), udg_England )
call ForceRemovePlayerSimple( GetOwningPlayer(GetTriggerUnit()), udg_Africa )
call ForceAddPlayerSimple( GetOwningPlayer(GetTriggerUnit()), udg_America )
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_Gov3Leave_Copy_4 )
endfunction
//===========================================================================
function InitTrig_Gov1_Copy_4 takes nothing returns nothing
set gg_trg_Gov1_Copy_4 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Gov1_Copy_4, gg_rct_Rect_178 )
call TriggerAddCondition( gg_trg_Gov1_Copy_4, Condition( function Trig_Gov1_Copy_4_Conditions ) )
call TriggerAddAction( gg_trg_Gov1_Copy_4, function Trig_Gov1_Copy_4_Actions )
endfunction
function Trig_Gov2Payment_Copy_4_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0406, Player(9)) == false ) ) then
return false
endif
return true
endfunction
function Trig_Gov2Payment_Copy_4_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 17, GetOwningPlayer(gg_unit_ncp2_0406), PLAYER_STATE_RESOURCE_GOLD )
endfunction
//===========================================================================
function InitTrig_Gov2Payment_Copy_4 takes nothing returns nothing
set gg_trg_Gov2Payment_Copy_4 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Gov2Payment_Copy_4, 20.00 )
call TriggerAddCondition( gg_trg_Gov2Payment_Copy_4, Condition( function Trig_Gov2Payment_Copy_4_Conditions ) )
call TriggerAddAction( gg_trg_Gov2Payment_Copy_4, function Trig_Gov2Payment_Copy_4_Actions )
endfunction
function Trig_Gov3Leave_Copy_4_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0406, GetOwningPlayer(GetTriggerUnit())) == true ) ) then
return false
endif
return true
endfunction
function Trig_Gov3Leave_Copy_4_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncp2_0406, Player(9), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_536" )
call UnitRemoveAbilityBJ( 'A00F', GetTriggerUnit() )
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 5.00 )
call EnableTrigger( gg_trg_Gov1_Copy_4 )
endfunction
//===========================================================================
function InitTrig_Gov3Leave_Copy_4 takes nothing returns nothing
set gg_trg_Gov3Leave_Copy_4 = CreateTrigger( )
call DisableTrigger( gg_trg_Gov3Leave_Copy_4 )
call TriggerRegisterEnterRectSimple( gg_trg_Gov3Leave_Copy_4, gg_rct_Rect_178 )
call TriggerAddCondition( gg_trg_Gov3Leave_Copy_4, Condition( function Trig_Gov3Leave_Copy_4_Conditions ) )
call TriggerAddAction( gg_trg_Gov3Leave_Copy_4, function Trig_Gov3Leave_Copy_4_Actions )
endfunction
function Trig_Gov1_Copy_3_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0404, Player(9)) == true ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0011, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0031, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0017, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0034, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0033, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0089, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0107, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0112, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0264, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0263, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0292, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0300, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0309, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0315, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0316, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0161, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0327, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0328, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0336, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0337, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0392, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0401, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0406, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
return true
endfunction
function Trig_Gov1_Copy_3_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncp2_0404, GetOwningPlayer(GetTriggerUnit()), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_529" )
call ForceAddPlayerSimple( GetOwningPlayer(GetTriggerUnit()), udg_Africa )
call ForceRemovePlayerSimple( GetOwningPlayer(GetTriggerUnit()), udg_America )
call ForceRemovePlayerSimple( GetOwningPlayer(GetTriggerUnit()), udg_England )
call UnitAddAbilityBJ( 'A00F', GetTriggerUnit() )
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_Gov3Leave_Copy_3 )
endfunction
//===========================================================================
function InitTrig_Gov1_Copy_3 takes nothing returns nothing
set gg_trg_Gov1_Copy_3 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Gov1_Copy_3, gg_rct_Rect_177 )
call TriggerAddCondition( gg_trg_Gov1_Copy_3, Condition( function Trig_Gov1_Copy_3_Conditions ) )
call TriggerAddAction( gg_trg_Gov1_Copy_3, function Trig_Gov1_Copy_3_Actions )
endfunction
function Trig_Gov2Payment_Copy_3_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0404, Player(9)) == false ) ) then
return false
endif
return true
endfunction
function Trig_Gov2Payment_Copy_3_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 17, GetOwningPlayer(gg_unit_ncp2_0404), PLAYER_STATE_RESOURCE_GOLD )
endfunction
//===========================================================================
function InitTrig_Gov2Payment_Copy_3 takes nothing returns nothing
set gg_trg_Gov2Payment_Copy_3 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Gov2Payment_Copy_3, 20.00 )
call TriggerAddCondition( gg_trg_Gov2Payment_Copy_3, Condition( function Trig_Gov2Payment_Copy_3_Conditions ) )
call TriggerAddAction( gg_trg_Gov2Payment_Copy_3, function Trig_Gov2Payment_Copy_3_Actions )
endfunction
function Trig_Gov3Leave_Copy_3_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0404, GetOwningPlayer(GetTriggerUnit())) == true ) ) then
return false
endif
return true
endfunction
function Trig_Gov3Leave_Copy_3_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncp2_0404, Player(9), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_530" )
call UnitRemoveAbilityBJ( 'A00F', GetTriggerUnit() )
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 5.00 )
call EnableTrigger( gg_trg_Gov1_Copy_3 )
endfunction
//===========================================================================
function InitTrig_Gov3Leave_Copy_3 takes nothing returns nothing
set gg_trg_Gov3Leave_Copy_3 = CreateTrigger( )
call DisableTrigger( gg_trg_Gov3Leave_Copy_3 )
call TriggerRegisterEnterRectSimple( gg_trg_Gov3Leave_Copy_3, gg_rct_Rect_177 )
call TriggerAddCondition( gg_trg_Gov3Leave_Copy_3, Condition( function Trig_Gov3Leave_Copy_3_Conditions ) )
call TriggerAddAction( gg_trg_Gov3Leave_Copy_3, function Trig_Gov3Leave_Copy_3_Actions )
endfunction
function Trig_Gov1_Copy_2_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0292, Player(9)) == true ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0011, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0031, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0017, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0034, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0033, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0089, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0107, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0112, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0264, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0263, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0300, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0309, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0316, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0315, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0161, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0327, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0328, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0336, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0337, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0392, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0401, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0404, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0406, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
return true
endfunction
function Trig_Gov1_Copy_2_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncp2_0292, GetOwningPlayer(GetTriggerUnit()), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_275" )
call UnitAddAbilityBJ( 'A000', GetTriggerUnit() )
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_Gov3Leave_Copy_2 )
endfunction
//===========================================================================
function InitTrig_Gov1_Copy_2 takes nothing returns nothing
set gg_trg_Gov1_Copy_2 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Gov1_Copy_2, gg_rct_Rect_105 )
call TriggerAddCondition( gg_trg_Gov1_Copy_2, Condition( function Trig_Gov1_Copy_2_Conditions ) )
call TriggerAddAction( gg_trg_Gov1_Copy_2, function Trig_Gov1_Copy_2_Actions )
endfunction
function Trig_Gov2Payment_Copy_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A000' ) ) then
return false
endif
return true
endfunction
function Trig_Gov2Payment_Copy_2_Func001C takes nothing returns boolean
if ( not ( GetPlayerState(GetOwningPlayer(GetSpellTargetUnit()), PLAYER_STATE_RESOURCE_GOLD) >= 50 ) ) then
return false
endif
return true
endfunction
function Trig_Gov2Payment_Copy_2_Actions takes nothing returns nothing
if ( Trig_Gov2Payment_Copy_2_Func001C() ) then
call AdjustPlayerStateBJ( 50, GetOwningPlayer(gg_unit_ncp2_0292), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( -50, GetOwningPlayer(GetSpellTargetUnit()), PLAYER_STATE_RESOURCE_GOLD )
else
call DisplayTextToPlayer( GetOwningPlayer(gg_unit_ncp2_0292), 0, 0, "TRIGSTR_277" )
endif
endfunction
//===========================================================================
function InitTrig_Gov2Payment_Copy_2 takes nothing returns nothing
set gg_trg_Gov2Payment_Copy_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Gov2Payment_Copy_2, EVENT_PLAYER_UNIT_SPELL_CHANNEL )
call TriggerAddCondition( gg_trg_Gov2Payment_Copy_2, Condition( function Trig_Gov2Payment_Copy_2_Conditions ) )
call TriggerAddAction( gg_trg_Gov2Payment_Copy_2, function Trig_Gov2Payment_Copy_2_Actions )
endfunction
function Trig_Gov3Leave_Copy_2_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0292, GetOwningPlayer(GetTriggerUnit())) == true ) ) then
return false
endif
return true
endfunction
function Trig_Gov3Leave_Copy_2_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncp2_0292, Player(9), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_276" )
call UnitRemoveAbilityBJ( 'A000', GetTriggerUnit() )
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 3.00 )
call EnableTrigger( gg_trg_Gov1_Copy_2 )
endfunction
//===========================================================================
function InitTrig_Gov3Leave_Copy_2 takes nothing returns nothing
set gg_trg_Gov3Leave_Copy_2 = CreateTrigger( )
call DisableTrigger( gg_trg_Gov3Leave_Copy_2 )
call TriggerRegisterEnterRectSimple( gg_trg_Gov3Leave_Copy_2, gg_rct_Rect_105 )
call TriggerAddCondition( gg_trg_Gov3Leave_Copy_2, Condition( function Trig_Gov3Leave_Copy_2_Conditions ) )
call TriggerAddAction( gg_trg_Gov3Leave_Copy_2, function Trig_Gov3Leave_Copy_2_Actions )
endfunction
function Trig_Gov1_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0017, Player(9)) == true ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0031, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0011, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0033, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0034, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0089, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0107, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0112, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0263, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0264, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0292, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0300, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0309, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0315, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0316, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0161, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0327, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0328, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0336, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0337, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0392, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0401, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0404, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0406, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
return true
endfunction
function Trig_Gov1_Copy_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncp2_0017, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_h002_0013, GetOwningPlayer(GetTriggerUnit()), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_090" )
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_Gov3Leave_Copy )
endfunction
//===========================================================================
function InitTrig_Gov1_Copy takes nothing returns nothing
set gg_trg_Gov1_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Gov1_Copy, gg_rct_soldier1 )
call TriggerAddCondition( gg_trg_Gov1_Copy, Condition( function Trig_Gov1_Copy_Conditions ) )
call TriggerAddAction( gg_trg_Gov1_Copy, function Trig_Gov1_Copy_Actions )
endfunction
function Trig_Gov2Payment_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_h002_0013, Player(PLAYER_NEUTRAL_PASSIVE)) == false ) ) then
return false
endif
return true
endfunction
function Trig_Gov2Payment_Copy_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 15, GetOwningPlayer(gg_unit_h002_0013), PLAYER_STATE_RESOURCE_GOLD )
endfunction
//===========================================================================
function InitTrig_Gov2Payment_Copy takes nothing returns nothing
set gg_trg_Gov2Payment_Copy = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Gov2Payment_Copy, 20.00 )
call TriggerAddCondition( gg_trg_Gov2Payment_Copy, Condition( function Trig_Gov2Payment_Copy_Conditions ) )
call TriggerAddAction( gg_trg_Gov2Payment_Copy, function Trig_Gov2Payment_Copy_Actions )
endfunction
function Trig_Gov2Payment_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetKillingUnitBJ()) == GetOwningPlayer(gg_unit_h002_0013) ) ) then
return false
endif
return true
endfunction
function Trig_Gov2Payment_Copy_Copy_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 5, GetOwningPlayer(gg_unit_h002_0013), PLAYER_STATE_RESOURCE_GOLD )
endfunction
//===========================================================================
function InitTrig_Gov2Payment_Copy_Copy takes nothing returns nothing
set gg_trg_Gov2Payment_Copy_Copy = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Gov2Payment_Copy_Copy, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Gov2Payment_Copy_Copy, Condition( function Trig_Gov2Payment_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_Gov2Payment_Copy_Copy, function Trig_Gov2Payment_Copy_Copy_Actions )
endfunction
function Trig_Gov3Leave_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0017, GetOwningPlayer(GetTriggerUnit())) == true ) ) then
return false
endif
return true
endfunction
function Trig_Gov3Leave_Copy_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_h002_0013, Player(9), true )
call SetUnitOwner( gg_unit_ncp2_0017, Player(9), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_091" )
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 5.00 )
call EnableTrigger( gg_trg_Gov1_Copy )
endfunction
//===========================================================================
function InitTrig_Gov3Leave_Copy takes nothing returns nothing
set gg_trg_Gov3Leave_Copy = CreateTrigger( )
call DisableTrigger( gg_trg_Gov3Leave_Copy )
call TriggerRegisterEnterRectSimple( gg_trg_Gov3Leave_Copy, gg_rct_soldier1 )
call TriggerAddCondition( gg_trg_Gov3Leave_Copy, Condition( function Trig_Gov3Leave_Copy_Conditions ) )
call TriggerAddAction( gg_trg_Gov3Leave_Copy, function Trig_Gov3Leave_Copy_Actions )
endfunction
function Trig_Gov1_Copy_Copy_3_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0300, Player(9)) == true ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0017, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0031, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0011, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0033, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0034, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0089, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0107, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0112, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0263, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0264, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0292, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0309, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0315, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0316, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0161, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0327, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0328, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0336, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0337, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0392, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0401, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0404, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0406, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
return true
endfunction
function Trig_Gov1_Copy_Copy_3_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncp2_0300, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_ubot_0301, GetOwningPlayer(GetTriggerUnit()), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_298" )
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_Gov3Leave_Copy_Copy_3 )
endfunction
//===========================================================================
function InitTrig_Gov1_Copy_Copy_3 takes nothing returns nothing
set gg_trg_Gov1_Copy_Copy_3 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Gov1_Copy_Copy_3, gg_rct_Rect_106 )
call TriggerAddCondition( gg_trg_Gov1_Copy_Copy_3, Condition( function Trig_Gov1_Copy_Copy_3_Conditions ) )
call TriggerAddAction( gg_trg_Gov1_Copy_Copy_3, function Trig_Gov1_Copy_Copy_3_Actions )
endfunction
function Trig_Gov2Payment_Copy_Copy_Copy_3_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_ncp2_0300) ) ) then
return false
endif
return true
endfunction
function Trig_Gov2Payment_Copy_Copy_Copy_3_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 150, GetOwningPlayer(gg_unit_ncp2_0300), PLAYER_STATE_RESOURCE_GOLD )
call SetUnitOwner( gg_unit_ubot_0301, Player(9), true )
call IssuePointOrderLocBJ( gg_unit_ubot_0301, "move", GetRectCenter(gg_rct_Rect_108) )
endfunction
//===========================================================================
function InitTrig_Gov2Payment_Copy_Copy_Copy_3 takes nothing returns nothing
set gg_trg_Gov2Payment_Copy_Copy_Copy_3 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Gov2Payment_Copy_Copy_Copy_3, gg_rct_Rect_107 )
call TriggerAddCondition( gg_trg_Gov2Payment_Copy_Copy_Copy_3, Condition( function Trig_Gov2Payment_Copy_Copy_Copy_3_Conditions ) )
call TriggerAddAction( gg_trg_Gov2Payment_Copy_Copy_Copy_3, function Trig_Gov2Payment_Copy_Copy_Copy_3_Actions )
endfunction
function Trig_Untitled_Trigger_003_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'ubot' ) ) then
return false
endif
return true
endfunction
function Trig_Untitled_Trigger_003_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ubot_0301, GetOwningPlayer(gg_unit_ncp2_0300), true )
endfunction
//===========================================================================
function InitTrig_Untitled_Trigger_003 takes nothing returns nothing
set gg_trg_Untitled_Trigger_003 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Untitled_Trigger_003, gg_rct_Rect_109 )
call TriggerAddCondition( gg_trg_Untitled_Trigger_003, Condition( function Trig_Untitled_Trigger_003_Conditions ) )
call TriggerAddAction( gg_trg_Untitled_Trigger_003, function Trig_Untitled_Trigger_003_Actions )
endfunction
function Trig_Gov3Leave_Copy_Copy_3_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0300, GetOwningPlayer(GetTriggerUnit())) == true ) ) then
return false
endif
return true
endfunction
function Trig_Gov3Leave_Copy_Copy_3_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncp2_0300, Player(9), true )
call SetUnitOwner( gg_unit_ubot_0301, Player(9), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_299" )
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 5.00 )
call EnableTrigger( gg_trg_Gov1_Copy_Copy_3 )
endfunction
//===========================================================================
function InitTrig_Gov3Leave_Copy_Copy_3 takes nothing returns nothing
set gg_trg_Gov3Leave_Copy_Copy_3 = CreateTrigger( )
call DisableTrigger( gg_trg_Gov3Leave_Copy_Copy_3 )
call TriggerRegisterEnterRectSimple( gg_trg_Gov3Leave_Copy_Copy_3, gg_rct_Rect_106 )
call TriggerAddCondition( gg_trg_Gov3Leave_Copy_Copy_3, Condition( function Trig_Gov3Leave_Copy_Copy_3_Conditions ) )
call TriggerAddAction( gg_trg_Gov3Leave_Copy_Copy_3, function Trig_Gov3Leave_Copy_Copy_3_Actions )
endfunction
function Trig_gaurd1_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0031, Player(9)) == true ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0011, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0033, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0034, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0017, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0089, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0107, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0112, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0264, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0263, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0292, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0309, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0315, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0316, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0161, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0327, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0328, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0336, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0337, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0392, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0401, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0404, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0406, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
return true
endfunction
function Trig_gaurd1_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncp2_0031, GetOwningPlayer(GetTriggerUnit()), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_086" )
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_gaurd3_quit )
endfunction
//===========================================================================
function InitTrig_gaurd1 takes nothing returns nothing
set gg_trg_gaurd1 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_gaurd1, gg_rct_gaurd1 )
call TriggerAddCondition( gg_trg_gaurd1, Condition( function Trig_gaurd1_Conditions ) )
call TriggerAddAction( gg_trg_gaurd1, function Trig_gaurd1_Actions )
endfunction
function Trig_gaurd2_payement_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0031, Player(PLAYER_NEUTRAL_PASSIVE)) == false ) ) then
return false
endif
return true
endfunction
function Trig_gaurd2_payement_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 12, GetOwningPlayer(gg_unit_ncp2_0031), PLAYER_STATE_RESOURCE_GOLD )
endfunction
//===========================================================================
function InitTrig_gaurd2_payement takes nothing returns nothing
set gg_trg_gaurd2_payement = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_gaurd2_payement, 20.00 )
call TriggerAddCondition( gg_trg_gaurd2_payement, Condition( function Trig_gaurd2_payement_Conditions ) )
call TriggerAddAction( gg_trg_gaurd2_payement, function Trig_gaurd2_payement_Actions )
endfunction
function Trig_gaurd3_quit_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0031, GetOwningPlayer(GetTriggerUnit())) == true ) ) then
return false
endif
return true
endfunction
function Trig_gaurd3_quit_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncp2_0031, Player(9), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_088" )
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 5.00 )
call EnableTrigger( gg_trg_gaurd1 )
endfunction
//===========================================================================
function InitTrig_gaurd3_quit takes nothing returns nothing
set gg_trg_gaurd3_quit = CreateTrigger( )
call DisableTrigger( gg_trg_gaurd3_quit )
call TriggerRegisterEnterRectSimple( gg_trg_gaurd3_quit, gg_rct_gaurd1 )
call TriggerAddCondition( gg_trg_gaurd3_quit, Condition( function Trig_gaurd3_quit_Conditions ) )
call TriggerAddAction( gg_trg_gaurd3_quit, function Trig_gaurd3_quit_Actions )
endfunction
function Trig_Gates_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(gg_unit_ncp2_0401) == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_Gates_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_ZTg3_6263 )
endfunction
//===========================================================================
function InitTrig_Gates takes nothing returns nothing
set gg_trg_Gates = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Gates, Player(0), "-open Main", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Gates, Player(1), "-open Main", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Gates, Player(2), "-open Main", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Gates, Player(3), "-open Main", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Gates, Player(4), "-open Main", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Gates, Player(5), "-open Main", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Gates, Player(6), "-open Main", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Gates, Player(7), "-open Main", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Gates, Player(8), "-open Main", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Gates, Player(11), "-open Main", true )
call TriggerAddCondition( gg_trg_Gates, Condition( function Trig_Gates_Conditions ) )
call TriggerAddAction( gg_trg_Gates, function Trig_Gates_Actions )
endfunction
function Trig_Gates_Copy_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(gg_unit_ncp2_0401) == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_Gates_Copy_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_CLOSE, gg_dest_ZTg3_6263 )
endfunction
//===========================================================================
function InitTrig_Gates_Copy takes nothing returns nothing
set gg_trg_Gates_Copy = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Gates_Copy, Player(0), "-close Main", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Gates_Copy, Player(1), "-close Main", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Gates_Copy, Player(2), "-close Main", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Gates_Copy, Player(3), "-close Main", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Gates_Copy, Player(4), "-close Main", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Gates_Copy, Player(5), "-close Main", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Gates_Copy, Player(6), "-close Main", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Gates_Copy, Player(7), "-close Main", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Gates_Copy, Player(8), "-close Main", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Gates_Copy, Player(11), "-close Main", true )
call TriggerAddCondition( gg_trg_Gates_Copy, Condition( function Trig_Gates_Copy_Conditions ) )
call TriggerAddAction( gg_trg_Gates_Copy, function Trig_Gates_Copy_Actions )
endfunction
function Trig_Slave_setup_Actions takes nothing returns nothing
call DialogSetMessageBJ( udg_slavemenu, "TRIGSTR_482" )
call DialogAddButtonBJ( udg_slavemenu, "TRIGSTR_483" )
set udg_slavebtn[1] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_slavemenu, "TRIGSTR_484" )
set udg_slavebtn[2] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_slavemenu, "TRIGSTR_485" )
set udg_slavebtn[3] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_slavemenu, "TRIGSTR_486" )
set udg_slavebtn[4] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_slavemenu, "TRIGSTR_487" )
set udg_slavebtn[5] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_slavemenu, "TRIGSTR_488" )
set udg_slavebtn[6] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_slavemenu, "TRIGSTR_489" )
set udg_slavebtn[7] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_slavemenu, "TRIGSTR_490" )
set udg_slavebtn[8] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_slavemenu, "TRIGSTR_491" )
set udg_slavebtn[9] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_slavemenu, "TRIGSTR_492" )
set udg_slavebtn[10] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_slavemenu, "TRIGSTR_493" )
endfunction
//===========================================================================
function InitTrig_Slave_setup takes nothing returns nothing
set gg_trg_Slave_setup = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Slave_setup, 1.00 )
call TriggerAddAction( gg_trg_Slave_setup, function Trig_Slave_setup_Actions )
endfunction
function Trig_give_red_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_slavebtn[1] ) ) then
return false
endif
return true
endfunction
function Trig_give_red_Actions takes nothing returns nothing
call SetUnitOwner( udg_slaveunit, Player(0), true )
endfunction
//===========================================================================
function InitTrig_give_red takes nothing returns nothing
set gg_trg_give_red = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_give_red, udg_slavemenu )
call TriggerAddCondition( gg_trg_give_red, Condition( function Trig_give_red_Conditions ) )
call TriggerAddAction( gg_trg_give_red, function Trig_give_red_Actions )
endfunction
function Trig_give_blue_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_slavebtn[2] ) ) then
return false
endif
return true
endfunction
function Trig_give_blue_Actions takes nothing returns nothing
call SetUnitOwner( udg_slaveunit, Player(1), true )
endfunction
//===========================================================================
function InitTrig_give_blue takes nothing returns nothing
set gg_trg_give_blue = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_give_blue, udg_slavemenu )
call TriggerAddCondition( gg_trg_give_blue, Condition( function Trig_give_blue_Conditions ) )
call TriggerAddAction( gg_trg_give_blue, function Trig_give_blue_Actions )
endfunction
function Trig_Give_Teal_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_slavebtn[3] ) ) then
return false
endif
return true
endfunction
function Trig_Give_Teal_Actions takes nothing returns nothing
call SetUnitOwner( udg_slaveunit, Player(2), true )
endfunction
//===========================================================================
function InitTrig_Give_Teal takes nothing returns nothing
set gg_trg_Give_Teal = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_Give_Teal, udg_slavemenu )
call TriggerAddCondition( gg_trg_Give_Teal, Condition( function Trig_Give_Teal_Conditions ) )
call TriggerAddAction( gg_trg_Give_Teal, function Trig_Give_Teal_Actions )
endfunction
function Trig_Give_Purple_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_slavebtn[4] ) ) then
return false
endif
return true
endfunction
function Trig_Give_Purple_Actions takes nothing returns nothing
call SetUnitOwner( udg_slaveunit, Player(3), true )
endfunction
//===========================================================================
function InitTrig_Give_Purple takes nothing returns nothing
set gg_trg_Give_Purple = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_Give_Purple, udg_slavemenu )
call TriggerAddCondition( gg_trg_Give_Purple, Condition( function Trig_Give_Purple_Conditions ) )
call TriggerAddAction( gg_trg_Give_Purple, function Trig_Give_Purple_Actions )
endfunction
function Trig_Give_Yellow_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_slavebtn[5] ) ) then
return false
endif
return true
endfunction
function Trig_Give_Yellow_Actions takes nothing returns nothing
call SetUnitOwner( udg_slaveunit, Player(4), true )
endfunction
//===========================================================================
function InitTrig_Give_Yellow takes nothing returns nothing
set gg_trg_Give_Yellow = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_Give_Yellow, udg_slavemenu )
call TriggerAddCondition( gg_trg_Give_Yellow, Condition( function Trig_Give_Yellow_Conditions ) )
call TriggerAddAction( gg_trg_Give_Yellow, function Trig_Give_Yellow_Actions )
endfunction
function Trig_Give_Orange_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_slavebtn[6] ) ) then
return false
endif
return true
endfunction
function Trig_Give_Orange_Actions takes nothing returns nothing
call SetUnitOwner( udg_slaveunit, Player(5), true )
endfunction
//===========================================================================
function InitTrig_Give_Orange takes nothing returns nothing
set gg_trg_Give_Orange = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_Give_Orange, udg_slavemenu )
call TriggerAddCondition( gg_trg_Give_Orange, Condition( function Trig_Give_Orange_Conditions ) )
call TriggerAddAction( gg_trg_Give_Orange, function Trig_Give_Orange_Actions )
endfunction
function Trig_Give_Green_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_slavebtn[7] ) ) then
return false
endif
return true
endfunction
function Trig_Give_Green_Actions takes nothing returns nothing
call SetUnitOwner( udg_slaveunit, Player(6), true )
endfunction
//===========================================================================
function InitTrig_Give_Green takes nothing returns nothing
set gg_trg_Give_Green = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_Give_Green, udg_slavemenu )
call TriggerAddCondition( gg_trg_Give_Green, Condition( function Trig_Give_Green_Conditions ) )
call TriggerAddAction( gg_trg_Give_Green, function Trig_Give_Green_Actions )
endfunction
function Trig_Give_Pink_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_slavebtn[8] ) ) then
return false
endif
return true
endfunction
function Trig_Give_Pink_Actions takes nothing returns nothing
call SetUnitOwner( udg_slaveunit, Player(7), true )
endfunction
//===========================================================================
function InitTrig_Give_Pink takes nothing returns nothing
set gg_trg_Give_Pink = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_Give_Pink, udg_slavemenu )
call TriggerAddCondition( gg_trg_Give_Pink, Condition( function Trig_Give_Pink_Conditions ) )
call TriggerAddAction( gg_trg_Give_Pink, function Trig_Give_Pink_Actions )
endfunction
function Trig_Give_Grey_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_slavebtn[9] ) ) then
return false
endif
return true
endfunction
function Trig_Give_Grey_Actions takes nothing returns nothing
call SetUnitOwner( udg_slaveunit, Player(8), true )
endfunction
//===========================================================================
function InitTrig_Give_Grey takes nothing returns nothing
set gg_trg_Give_Grey = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_Give_Grey, udg_slavemenu )
call TriggerAddCondition( gg_trg_Give_Grey, Condition( function Trig_Give_Grey_Conditions ) )
call TriggerAddAction( gg_trg_Give_Grey, function Trig_Give_Grey_Actions )
endfunction
function Trig_Give_Brown_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_slavebtn[10] ) ) then
return false
endif
return true
endfunction
function Trig_Give_Brown_Actions takes nothing returns nothing
call SetUnitOwner( udg_slaveunit, Player(11), true )
endfunction
//===========================================================================
function InitTrig_Give_Brown takes nothing returns nothing
set gg_trg_Give_Brown = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_Give_Brown, udg_slavemenu )
call TriggerAddCondition( gg_trg_Give_Brown, Condition( function Trig_Give_Brown_Conditions ) )
call TriggerAddAction( gg_trg_Give_Brown, function Trig_Give_Brown_Actions )
endfunction
function Trig_slave_give_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'n007' ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_ncp2_0401) ) ) then
return false
endif
return true
endfunction
function Trig_slave_give_Actions takes nothing returns nothing
set udg_slaveunit = GetTriggerUnit()
call DialogDisplayBJ( false, udg_slavemenu, GetOwningPlayer(GetTriggerUnit()) )
call DialogDisplayBJ( true, udg_slavemenu, GetOwningPlayer(GetTriggerUnit()) )
endfunction
//===========================================================================
function InitTrig_slave_give takes nothing returns nothing
set gg_trg_slave_give = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_slave_give, gg_rct_Rect_175 )
call TriggerAddCondition( gg_trg_slave_give, Condition( function Trig_slave_give_Conditions ) )
call TriggerAddAction( gg_trg_slave_give, function Trig_slave_give_Actions )
endfunction
function Trig_basic_pay_keeper_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( ( CountUnitsInGroup(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(gg_unit_ncp2_0401), 'n007')) * 2 ), GetOwningPlayer(gg_unit_ncp2_0401), PLAYER_STATE_RESOURCE_GOLD )
endfunction
//===========================================================================
function InitTrig_basic_pay_keeper takes nothing returns nothing
set gg_trg_basic_pay_keeper = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_basic_pay_keeper, 25.00 )
call TriggerAddAction( gg_trg_basic_pay_keeper, function Trig_basic_pay_keeper_Actions )
endfunction
function Trig_Get_Keeper_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0401, Player(9)) == true ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0112, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0017, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0089, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0031, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0011, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0033, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0034, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0107, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0112, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0263, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0264, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0292, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0300, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0309, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0315, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0316, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0161, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0327, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0328, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0336, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0337, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0392, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0404, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0406, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
return true
endfunction
function Trig_Get_Keeper_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncp2_0401, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hlum_0403, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_h00Q_0402, GetOwningPlayer(GetTriggerUnit()), true )
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_ZTg3_6263 )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_477" )
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_Quit_Keeper )
endfunction
//===========================================================================
function InitTrig_Get_Keeper takes nothing returns nothing
set gg_trg_Get_Keeper = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Get_Keeper, gg_rct_Rect_174 )
call TriggerAddCondition( gg_trg_Get_Keeper, Condition( function Trig_Get_Keeper_Conditions ) )
call TriggerAddAction( gg_trg_Get_Keeper, function Trig_Get_Keeper_Actions )
endfunction
function Trig_Quit_Keeper_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0401, GetOwningPlayer(GetTriggerUnit())) == true ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Quit_Keeper_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncp2_0401, Player(9), true )
call SetUnitOwner( gg_unit_h00Q_0402, Player(9), true )
call SetUnitOwner( gg_unit_hlum_0403, Player(9), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_478" )
call ModifyGateBJ( bj_GATEOPERATION_CLOSE, gg_dest_ZTg3_6263 )
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 3.00 )
call EnableTrigger( gg_trg_Get_Keeper )
endfunction
//===========================================================================
function InitTrig_Quit_Keeper takes nothing returns nothing
set gg_trg_Quit_Keeper = CreateTrigger( )
call DisableTrigger( gg_trg_Quit_Keeper )
call TriggerRegisterEnterRectSimple( gg_trg_Quit_Keeper, gg_rct_Rect_174 )
call TriggerAddCondition( gg_trg_Quit_Keeper, Condition( function Trig_Quit_Keeper_Conditions ) )
call TriggerAddAction( gg_trg_Quit_Keeper, function Trig_Quit_Keeper_Actions )
endfunction
function Trig_enterfarm_Func001Func002C takes nothing returns boolean
if ( ( GetOwningPlayer(GetTriggerUnit()) == udg_farmpeople[2] ) ) then
return true
endif
if ( ( GetOwningPlayer(GetTriggerUnit()) == udg_farmpeople[3] ) ) then
return true
endif
return false
endfunction
function Trig_enterfarm_Func001C takes nothing returns boolean
if ( not Trig_enterfarm_Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_enterfarm_Actions takes nothing returns nothing
if ( Trig_enterfarm_Func001C() ) then
call DoNothing( )
else
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Hero_Start) )
endif
endfunction
//===========================================================================
function InitTrig_enterfarm takes nothing returns nothing
set gg_trg_enterfarm = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_enterfarm, gg_rct_Rect_016 )
call TriggerAddAction( gg_trg_enterfarm, function Trig_enterfarm_Actions )
endfunction
function Trig_enterfarm_Copy_Func001Func002C takes nothing returns boolean
if ( ( GetOwningPlayer(GetTriggerUnit()) == udg_farmpeople[1] ) ) then
return true
endif
if ( ( GetOwningPlayer(GetTriggerUnit()) == udg_farmpeople[4] ) ) then
return true
endif
return false
endfunction
function Trig_enterfarm_Copy_Func001C takes nothing returns boolean
if ( not Trig_enterfarm_Copy_Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_enterfarm_Copy_Actions takes nothing returns nothing
if ( Trig_enterfarm_Copy_Func001C() ) then
call DoNothing( )
else
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Rect_074) )
endif
endfunction
//===========================================================================
function InitTrig_enterfarm_Copy takes nothing returns nothing
set gg_trg_enterfarm_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_enterfarm_Copy, gg_rct_Rect_073 )
call TriggerAddAction( gg_trg_enterfarm_Copy, function Trig_enterfarm_Copy_Actions )
endfunction
function Trig_farm1_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0031, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0011, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0034, Player(9)) == true ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0033, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0017, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0089, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0107, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0112, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0263, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0264, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0292, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0300, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0309, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0315, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0316, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0161, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0327, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0328, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0336, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0337, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0392, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0401, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0404, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0406, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
return true
endfunction
function Trig_farm1_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncop_0034, GetOwningPlayer(GetTriggerUnit()), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_092" )
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_quit1 )
set udg_farmpeople[1] = GetOwningPlayer(GetTriggerUnit())
endfunction
//===========================================================================
function InitTrig_farm1 takes nothing returns nothing
set gg_trg_farm1 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_farm1, gg_rct_farm1 )
call TriggerAddCondition( gg_trg_farm1, Condition( function Trig_farm1_Conditions ) )
call TriggerAddAction( gg_trg_farm1, function Trig_farm1_Actions )
endfunction
function Trig_farm1_Copy_2_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0031, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0011, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0263, Player(9)) == true ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0033, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0034, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0017, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0089, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0107, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0112, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0264, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0292, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0300, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0309, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0315, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0316, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0161, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0327, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0328, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0336, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0337, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0392, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0401, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0404, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0406, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
return true
endfunction
function Trig_farm1_Copy_2_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncop_0263, GetOwningPlayer(GetTriggerUnit()), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_252" )
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_quit1_Copy_2 )
set udg_farmpeople[4] = GetOwningPlayer(GetTriggerUnit())
endfunction
//===========================================================================
function InitTrig_farm1_Copy_2 takes nothing returns nothing
set gg_trg_farm1_Copy_2 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_farm1_Copy_2, gg_rct_Rect_077 )
call TriggerAddCondition( gg_trg_farm1_Copy_2, Condition( function Trig_farm1_Copy_2_Conditions ) )
call TriggerAddAction( gg_trg_farm1_Copy_2, function Trig_farm1_Copy_2_Actions )
endfunction
function Trig_farm1_Copy_2_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0031, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0011, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0263, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0264, Player(9)) == true ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0033, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0034, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0017, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0089, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0107, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0112, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0292, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0300, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0309, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0315, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0316, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0161, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0327, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0328, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0336, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0337, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0392, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0401, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0404, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0406, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
return true
endfunction
function Trig_farm1_Copy_2_Copy_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncop_0264, GetOwningPlayer(GetTriggerUnit()), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_253" )
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_quit1_Copy_2_Copy )
set udg_farmpeople[3] = GetOwningPlayer(GetTriggerUnit())
endfunction
//===========================================================================
function InitTrig_farm1_Copy_2_Copy takes nothing returns nothing
set gg_trg_farm1_Copy_2_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_farm1_Copy_2_Copy, gg_rct_Rect_078 )
call TriggerAddCondition( gg_trg_farm1_Copy_2_Copy, Condition( function Trig_farm1_Copy_2_Copy_Conditions ) )
call TriggerAddAction( gg_trg_farm1_Copy_2_Copy, function Trig_farm1_Copy_2_Copy_Actions )
endfunction
function Trig_farm1_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0031, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0011, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0033, Player(9)) == true ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0034, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0017, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0089, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0107, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0112, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0263, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0264, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0292, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0300, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0309, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0315, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0316, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0161, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0327, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0328, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0336, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0337, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0392, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0401, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0404, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0406, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
return true
endfunction
function Trig_farm1_Copy_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncop_0033, GetOwningPlayer(GetTriggerUnit()), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_093" )
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_quit1_Copy )
set udg_farmpeople[2] = GetOwningPlayer(GetTriggerUnit())
endfunction
//===========================================================================
function InitTrig_farm1_Copy takes nothing returns nothing
set gg_trg_farm1_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_farm1_Copy, gg_rct_farm2 )
call TriggerAddCondition( gg_trg_farm1_Copy, Condition( function Trig_farm1_Copy_Conditions ) )
call TriggerAddAction( gg_trg_farm1_Copy, function Trig_farm1_Copy_Actions )
endfunction
function Trig_replenish_Conditions takes nothing returns boolean
if ( not ( RectContainsUnit(gg_rct_Rect_018, GetSellingUnit()) == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetBuyingUnit()) == 'ngme' ) ) then
return false
endif
return true
endfunction
function Trig_replenish_Actions takes nothing returns nothing
call CreateItemLoc( 'I000', GetRandomLocInRect(gg_rct_Rect_017) )
endfunction
//===========================================================================
function InitTrig_replenish takes nothing returns nothing
set gg_trg_replenish = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_replenish, EVENT_PLAYER_UNIT_PAWN_ITEM )
call TriggerAddCondition( gg_trg_replenish, Condition( function Trig_replenish_Conditions ) )
call TriggerAddAction( gg_trg_replenish, function Trig_replenish_Actions )
endfunction
function Trig_replenish_Copy_Conditions takes nothing returns boolean
if ( not ( RectContainsUnit(gg_rct_Rect_075, GetSellingUnit()) == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetBuyingUnit()) == 'n002' ) ) then
return false
endif
return true
endfunction
function Trig_replenish_Copy_Actions takes nothing returns nothing
call CreateItemLoc( 'I000', GetRandomLocInRect(gg_rct_Rect_076) )
endfunction
//===========================================================================
function InitTrig_replenish_Copy takes nothing returns nothing
set gg_trg_replenish_Copy = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_replenish_Copy, EVENT_PLAYER_UNIT_PAWN_ITEM )
call TriggerAddCondition( gg_trg_replenish_Copy, Condition( function Trig_replenish_Copy_Conditions ) )
call TriggerAddAction( gg_trg_replenish_Copy, function Trig_replenish_Copy_Actions )
endfunction
function Trig_quit1_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0034, GetOwningPlayer(GetTriggerUnit())) == true ) ) then
return false
endif
return true
endfunction
function Trig_quit1_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncop_0034, Player(9), true )
set udg_farmpeople[1] = Player(9)
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 5.00 )
call EnableTrigger( gg_trg_farm1 )
endfunction
//===========================================================================
function InitTrig_quit1 takes nothing returns nothing
set gg_trg_quit1 = CreateTrigger( )
call DisableTrigger( gg_trg_quit1 )
call TriggerRegisterEnterRectSimple( gg_trg_quit1, gg_rct_farm1 )
call TriggerAddCondition( gg_trg_quit1, Condition( function Trig_quit1_Conditions ) )
call TriggerAddAction( gg_trg_quit1, function Trig_quit1_Actions )
endfunction
function Trig_quit1_Copy_2_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0263, GetOwningPlayer(GetTriggerUnit())) == true ) ) then
return false
endif
return true
endfunction
function Trig_quit1_Copy_2_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncop_0263, Player(9), true )
set udg_farmpeople[4] = Player(9)
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 5.00 )
call EnableTrigger( gg_trg_farm1_Copy_2 )
endfunction
//===========================================================================
function InitTrig_quit1_Copy_2 takes nothing returns nothing
set gg_trg_quit1_Copy_2 = CreateTrigger( )
call DisableTrigger( gg_trg_quit1_Copy_2 )
call TriggerRegisterEnterRectSimple( gg_trg_quit1_Copy_2, gg_rct_Rect_077 )
call TriggerAddCondition( gg_trg_quit1_Copy_2, Condition( function Trig_quit1_Copy_2_Conditions ) )
call TriggerAddAction( gg_trg_quit1_Copy_2, function Trig_quit1_Copy_2_Actions )
endfunction
function Trig_quit1_Copy_2_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0264, GetOwningPlayer(GetTriggerUnit())) == true ) ) then
return false
endif
return true
endfunction
function Trig_quit1_Copy_2_Copy_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncop_0264, Player(9), true )
set udg_farmpeople[3] = Player(9)
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 5.00 )
call EnableTrigger( gg_trg_farm1_Copy_2_Copy )
endfunction
//===========================================================================
function InitTrig_quit1_Copy_2_Copy takes nothing returns nothing
set gg_trg_quit1_Copy_2_Copy = CreateTrigger( )
call DisableTrigger( gg_trg_quit1_Copy_2_Copy )
call TriggerRegisterEnterRectSimple( gg_trg_quit1_Copy_2_Copy, gg_rct_Rect_078 )
call TriggerAddCondition( gg_trg_quit1_Copy_2_Copy, Condition( function Trig_quit1_Copy_2_Copy_Conditions ) )
call TriggerAddAction( gg_trg_quit1_Copy_2_Copy, function Trig_quit1_Copy_2_Copy_Actions )
endfunction
function Trig_quit1_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0033, GetOwningPlayer(GetTriggerUnit())) == true ) ) then
return false
endif
return true
endfunction
function Trig_quit1_Copy_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncop_0033, Player(9), true )
set udg_farmpeople[2] = Player(9)
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 5.00 )
call EnableTrigger( gg_trg_farm1_Copy )
endfunction
//===========================================================================
function InitTrig_quit1_Copy takes nothing returns nothing
set gg_trg_quit1_Copy = CreateTrigger( )
call DisableTrigger( gg_trg_quit1_Copy )
call TriggerRegisterEnterRectSimple( gg_trg_quit1_Copy, gg_rct_farm2 )
call TriggerAddCondition( gg_trg_quit1_Copy, Condition( function Trig_quit1_Copy_Conditions ) )
call TriggerAddAction( gg_trg_quit1_Copy, function Trig_quit1_Copy_Actions )
endfunction
function Trig_unit_dies_jobs_over_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncop_0089, Player(9), true )
call DisableTrigger( gg_trg_Gov1_Copy_Copy )
call DisableTrigger( gg_trg_Gov2Payment_Copy_Copy_2 )
call DisableTrigger( gg_trg_Gov2Payment_Copy_Copy_Copy )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_unit_dies_jobs_over takes nothing returns nothing
set gg_trg_unit_dies_jobs_over = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_unit_dies_jobs_over, gg_unit_hdes_0088, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_unit_dies_jobs_over, function Trig_unit_dies_jobs_over_Actions )
endfunction
function Trig_Gov1_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0017, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0089, Player(9)) == true ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0031, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0011, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0033, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0034, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0107, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0112, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0263, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0264, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0292, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0300, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0309, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0315, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0316, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0161, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0327, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0328, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0336, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0337, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0392, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0401, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0404, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0406, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
return true
endfunction
function Trig_Gov1_Copy_Copy_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncop_0089, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hdes_0088, GetOwningPlayer(GetTriggerUnit()), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_112" )
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_Gov3Leave_Copy_Copy )
endfunction
//===========================================================================
function InitTrig_Gov1_Copy_Copy takes nothing returns nothing
set gg_trg_Gov1_Copy_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Gov1_Copy_Copy, gg_rct_navy1 )
call TriggerAddCondition( gg_trg_Gov1_Copy_Copy, Condition( function Trig_Gov1_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_Gov1_Copy_Copy, function Trig_Gov1_Copy_Copy_Actions )
endfunction
function Trig_Gov2Payment_Copy_Copy_2_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_hdes_0088, Player(PLAYER_NEUTRAL_PASSIVE)) == false ) ) then
return false
endif
return true
endfunction
function Trig_Gov2Payment_Copy_Copy_2_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 13, GetOwningPlayer(gg_unit_hdes_0088), PLAYER_STATE_RESOURCE_GOLD )
endfunction
//===========================================================================
function InitTrig_Gov2Payment_Copy_Copy_2 takes nothing returns nothing
set gg_trg_Gov2Payment_Copy_Copy_2 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Gov2Payment_Copy_Copy_2, 20.00 )
call TriggerAddCondition( gg_trg_Gov2Payment_Copy_Copy_2, Condition( function Trig_Gov2Payment_Copy_Copy_2_Conditions ) )
call TriggerAddAction( gg_trg_Gov2Payment_Copy_Copy_2, function Trig_Gov2Payment_Copy_Copy_2_Actions )
endfunction
function Trig_Gov2Payment_Copy_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetKillingUnitBJ()) == GetOwningPlayer(gg_unit_hdes_0088) ) ) then
return false
endif
return true
endfunction
function Trig_Gov2Payment_Copy_Copy_Copy_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 5, GetOwningPlayer(gg_unit_hdes_0088), PLAYER_STATE_RESOURCE_GOLD )
endfunction
//===========================================================================
function InitTrig_Gov2Payment_Copy_Copy_Copy takes nothing returns nothing
set gg_trg_Gov2Payment_Copy_Copy_Copy = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Gov2Payment_Copy_Copy_Copy, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Gov2Payment_Copy_Copy_Copy, Condition( function Trig_Gov2Payment_Copy_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_Gov2Payment_Copy_Copy_Copy, function Trig_Gov2Payment_Copy_Copy_Copy_Actions )
endfunction
function Trig_Gov3Leave_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0089, GetOwningPlayer(GetTriggerUnit())) == true ) ) then
return false
endif
return true
endfunction
function Trig_Gov3Leave_Copy_Copy_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncop_0089, Player(9), true )
call SetUnitOwner( gg_unit_hdes_0088, Player(9), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_113" )
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 5.00 )
call EnableTrigger( gg_trg_Gov1_Copy_Copy )
endfunction
//===========================================================================
function InitTrig_Gov3Leave_Copy_Copy takes nothing returns nothing
set gg_trg_Gov3Leave_Copy_Copy = CreateTrigger( )
call DisableTrigger( gg_trg_Gov3Leave_Copy_Copy )
call TriggerRegisterEnterRectSimple( gg_trg_Gov3Leave_Copy_Copy, gg_rct_navy1 )
call TriggerAddCondition( gg_trg_Gov3Leave_Copy_Copy, Condition( function Trig_Gov3Leave_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_Gov3Leave_Copy_Copy, function Trig_Gov3Leave_Copy_Copy_Actions )
endfunction
function Trig_Gov1_Copy_Copy_Copy_2_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0336, Player(9)) == true ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0017, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0089, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0031, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0011, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0033, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0034, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0107, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0112, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0263, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0264, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0292, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0300, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0309, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0315, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0316, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0161, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0327, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0328, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0337, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0392, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0401, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0404, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0406, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
return true
endfunction
function Trig_Gov1_Copy_Copy_Copy_2_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncp2_0336, GetOwningPlayer(GetTriggerUnit()), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_393" )
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_Gov3Leave_Copy_Copy_Copy_2 )
endfunction
//===========================================================================
function InitTrig_Gov1_Copy_Copy_Copy_2 takes nothing returns nothing
set gg_trg_Gov1_Copy_Copy_Copy_2 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Gov1_Copy_Copy_Copy_2, gg_rct_Rect_151 )
call TriggerAddCondition( gg_trg_Gov1_Copy_Copy_Copy_2, Condition( function Trig_Gov1_Copy_Copy_Copy_2_Conditions ) )
call TriggerAddAction( gg_trg_Gov1_Copy_Copy_Copy_2, function Trig_Gov1_Copy_Copy_Copy_2_Actions )
endfunction
function Trig_Gov2Payment_Copy_Copy_2_Copy_2_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0336, Player(PLAYER_NEUTRAL_PASSIVE)) == false ) ) then
return false
endif
return true
endfunction
function Trig_Gov2Payment_Copy_Copy_2_Copy_2_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 6, GetOwningPlayer(gg_unit_ncp2_0336), PLAYER_STATE_RESOURCE_GOLD )
endfunction
//===========================================================================
function InitTrig_Gov2Payment_Copy_Copy_2_Copy_2 takes nothing returns nothing
set gg_trg_Gov2Payment_Copy_Copy_2_Copy_2 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Gov2Payment_Copy_Copy_2_Copy_2, 10.00 )
call TriggerAddCondition( gg_trg_Gov2Payment_Copy_Copy_2_Copy_2, Condition( function Trig_Gov2Payment_Copy_Copy_2_Copy_2_Conditions ) )
call TriggerAddAction( gg_trg_Gov2Payment_Copy_Copy_2_Copy_2, function Trig_Gov2Payment_Copy_Copy_2_Copy_2_Actions )
endfunction
function Trig_Gov2Payment_Copy_Copy_Copy_Copy_2_Func003C takes nothing returns boolean
if ( ( GetUnitTypeId(GetDyingUnit()) == 'hdes' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'h00G' ) ) then
return true
endif
return false
endfunction
function Trig_Gov2Payment_Copy_Copy_Copy_Copy_2_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetKillingUnitBJ()) == GetOwningPlayer(gg_unit_ncp2_0336) ) ) then
return false
endif
if ( not Trig_Gov2Payment_Copy_Copy_Copy_Copy_2_Func003C() ) then
return false
endif
return true
endfunction
function Trig_Gov2Payment_Copy_Copy_Copy_Copy_2_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 70, GetOwningPlayer(gg_unit_ncp2_0336), PLAYER_STATE_RESOURCE_GOLD )
endfunction
//===========================================================================
function InitTrig_Gov2Payment_Copy_Copy_Copy_Copy_2 takes nothing returns nothing
set gg_trg_Gov2Payment_Copy_Copy_Copy_Copy_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Gov2Payment_Copy_Copy_Copy_Copy_2, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Gov2Payment_Copy_Copy_Copy_Copy_2, Condition( function Trig_Gov2Payment_Copy_Copy_Copy_Copy_2_Conditions ) )
call TriggerAddAction( gg_trg_Gov2Payment_Copy_Copy_Copy_Copy_2, function Trig_Gov2Payment_Copy_Copy_Copy_Copy_2_Actions )
endfunction
function Trig_Gov3Leave_Copy_Copy_Copy_2_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0336, GetOwningPlayer(GetTriggerUnit())) == true ) ) then
return false
endif
return true
endfunction
function Trig_Gov3Leave_Copy_Copy_Copy_2_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncp2_0336, Player(9), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_394" )
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 5.00 )
call EnableTrigger( gg_trg_Gov1_Copy_Copy_Copy_2 )
endfunction
//===========================================================================
function InitTrig_Gov3Leave_Copy_Copy_Copy_2 takes nothing returns nothing
set gg_trg_Gov3Leave_Copy_Copy_Copy_2 = CreateTrigger( )
call DisableTrigger( gg_trg_Gov3Leave_Copy_Copy_Copy_2 )
call TriggerRegisterEnterRectSimple( gg_trg_Gov3Leave_Copy_Copy_Copy_2, gg_rct_Rect_151 )
call TriggerAddCondition( gg_trg_Gov3Leave_Copy_Copy_Copy_2, Condition( function Trig_Gov3Leave_Copy_Copy_Copy_2_Conditions ) )
call TriggerAddAction( gg_trg_Gov3Leave_Copy_Copy_Copy_2, function Trig_Gov3Leave_Copy_Copy_Copy_2_Actions )
endfunction
function Trig_Gov1_Copy_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0017, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0112, Player(9)) == true ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0089, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0031, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0011, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0033, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0034, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0107, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0112, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0263, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0264, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0292, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0300, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0309, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0315, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0316, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0161, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0327, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0328, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0336, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0337, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0392, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0401, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0404, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0406, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
return true
endfunction
function Trig_Gov1_Copy_Copy_Copy_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncop_0112, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hdes_0111, GetOwningPlayer(GetTriggerUnit()), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_235" )
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_Gov3Leave_Copy_Copy_Copy )
endfunction
//===========================================================================
function InitTrig_Gov1_Copy_Copy_Copy takes nothing returns nothing
set gg_trg_Gov1_Copy_Copy_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Gov1_Copy_Copy_Copy, gg_rct_Rect_069 )
call TriggerAddCondition( gg_trg_Gov1_Copy_Copy_Copy, Condition( function Trig_Gov1_Copy_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_Gov1_Copy_Copy_Copy, function Trig_Gov1_Copy_Copy_Copy_Actions )
endfunction
function Trig_Gov2Payment_Copy_Copy_2_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_hdes_0111, Player(PLAYER_NEUTRAL_PASSIVE)) == false ) ) then
return false
endif
return true
endfunction
function Trig_Gov2Payment_Copy_Copy_2_Copy_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 14, GetOwningPlayer(gg_unit_hdes_0111), PLAYER_STATE_RESOURCE_GOLD )
endfunction
//===========================================================================
function InitTrig_Gov2Payment_Copy_Copy_2_Copy takes nothing returns nothing
set gg_trg_Gov2Payment_Copy_Copy_2_Copy = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Gov2Payment_Copy_Copy_2_Copy, 20.00 )
call TriggerAddCondition( gg_trg_Gov2Payment_Copy_Copy_2_Copy, Condition( function Trig_Gov2Payment_Copy_Copy_2_Copy_Conditions ) )
call TriggerAddAction( gg_trg_Gov2Payment_Copy_Copy_2_Copy, function Trig_Gov2Payment_Copy_Copy_2_Copy_Actions )
endfunction
function Trig_Gov2Payment_Copy_Copy_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetKillingUnitBJ()) == GetOwningPlayer(gg_unit_ncop_0112) ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'hdes' ) ) then
return false
endif
return true
endfunction
function Trig_Gov2Payment_Copy_Copy_Copy_Copy_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 100, GetOwningPlayer(gg_unit_ncop_0112), PLAYER_STATE_RESOURCE_GOLD )
endfunction
//===========================================================================
function InitTrig_Gov2Payment_Copy_Copy_Copy_Copy takes nothing returns nothing
set gg_trg_Gov2Payment_Copy_Copy_Copy_Copy = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Gov2Payment_Copy_Copy_Copy_Copy, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Gov2Payment_Copy_Copy_Copy_Copy, Condition( function Trig_Gov2Payment_Copy_Copy_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_Gov2Payment_Copy_Copy_Copy_Copy, function Trig_Gov2Payment_Copy_Copy_Copy_Copy_Actions )
endfunction
function Trig_Gov3Leave_Copy_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0112, GetOwningPlayer(GetTriggerUnit())) == true ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Gov3Leave_Copy_Copy_Copy_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncop_0112, Player(9), true )
call SetUnitOwner( gg_unit_hdes_0111, Player(9), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_236" )
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 3.00 )
call EnableTrigger( gg_trg_Gov1_Copy_Copy_Copy )
endfunction
//===========================================================================
function InitTrig_Gov3Leave_Copy_Copy_Copy takes nothing returns nothing
set gg_trg_Gov3Leave_Copy_Copy_Copy = CreateTrigger( )
call DisableTrigger( gg_trg_Gov3Leave_Copy_Copy_Copy )
call TriggerRegisterEnterRectSimple( gg_trg_Gov3Leave_Copy_Copy_Copy, gg_rct_Rect_069 )
call TriggerAddCondition( gg_trg_Gov3Leave_Copy_Copy_Copy, Condition( function Trig_Gov3Leave_Copy_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_Gov3Leave_Copy_Copy_Copy, function Trig_Gov3Leave_Copy_Copy_Copy_Actions )
endfunction
function Trig_islesetup_Func006002 takes nothing returns nothing
call DialogDisplayBJ( false, udg_sell[1], GetEnumPlayer() )
endfunction
function Trig_islesetup_Actions takes nothing returns nothing
call DialogSetMessageBJ( udg_buy[1], "TRIGSTR_049" )
call DialogAddButtonBJ( udg_buy[1], "TRIGSTR_051" )
set udg_yesno[1] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_buy[1], "TRIGSTR_052" )
set udg_yesno[2] = GetLastCreatedButtonBJ()
call ForForce( GetPlayersAll(), function Trig_islesetup_Func006002 )
endfunction
//===========================================================================
function InitTrig_islesetup takes nothing returns nothing
set gg_trg_islesetup = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_islesetup, 2.00 )
call TriggerAddAction( gg_trg_islesetup, function Trig_islesetup_Actions )
endfunction
function Trig_islesetup2_Func006002 takes nothing returns nothing
call DialogDisplayBJ( false, udg_buy[1], GetEnumPlayer() )
endfunction
function Trig_islesetup2_Actions takes nothing returns nothing
call DialogSetMessageBJ( udg_sell[1], "TRIGSTR_053" )
call DialogAddButtonBJ( udg_sell[1], "TRIGSTR_054" )
set udg_sell2[1] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_sell[1], "TRIGSTR_055" )
set udg_sell2[2] = GetLastCreatedButtonBJ()
call ForForce( GetPlayersAll(), function Trig_islesetup2_Func006002 )
endfunction
//===========================================================================
function InitTrig_islesetup2 takes nothing returns nothing
set gg_trg_islesetup2 = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_islesetup2, 3.00 )
call TriggerAddAction( gg_trg_islesetup2, function Trig_islesetup2_Actions )
endfunction
function Trig_buymenu_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_buymenu_Actions takes nothing returns nothing
call DialogDisplayBJ( true, udg_buy[1], GetOwningPlayer(GetTriggerUnit()) )
endfunction
//===========================================================================
function InitTrig_buymenu takes nothing returns nothing
set gg_trg_buymenu = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_buymenu, gg_rct_Small_Island )
call TriggerAddCondition( gg_trg_buymenu, Condition( function Trig_buymenu_Conditions ) )
call TriggerAddAction( gg_trg_buymenu, function Trig_buymenu_Actions )
endfunction
function Trig_sellmenu_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == udg_gatedoors[1] ) ) then
return false
endif
return true
endfunction
function Trig_sellmenu_Actions takes nothing returns nothing
call DialogDisplayBJ( true, udg_sell[1], GetOwningPlayer(GetTriggerUnit()) )
endfunction
//===========================================================================
function InitTrig_sellmenu takes nothing returns nothing
set gg_trg_sellmenu = CreateTrigger( )
call DisableTrigger( gg_trg_sellmenu )
call TriggerRegisterEnterRectSimple( gg_trg_sellmenu, gg_rct_Small_Island )
call TriggerAddCondition( gg_trg_sellmenu, Condition( function Trig_sellmenu_Conditions ) )
call TriggerAddAction( gg_trg_sellmenu, function Trig_sellmenu_Actions )
endfunction
function Trig_yes_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_yesno[1] ) ) then
return false
endif
if ( not ( GetPlayerState(GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD) >= 150 ) ) then
return false
endif
return true
endfunction
function Trig_yes_Actions takes nothing returns nothing
set udg_gatedoors[1] = GetTriggerPlayer()
call DialogDisplayBJ( false, udg_buy[1], GetTriggerPlayer() )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + " has bought his own private carrabian island for 150$!!" ) )
call AdjustPlayerStateBJ( -150, GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD )
call DisableTrigger( gg_trg_buymenu )
call EnableTrigger( gg_trg_sellmenu )
call SetUnitOwner( gg_unit_ncp2_0030, GetTriggerPlayer(), true )
endfunction
//===========================================================================
function InitTrig_yes takes nothing returns nothing
set gg_trg_yes = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_yes, udg_buy[1] )
call TriggerAddCondition( gg_trg_yes, Condition( function Trig_yes_Conditions ) )
call TriggerAddAction( gg_trg_yes, function Trig_yes_Actions )
endfunction
function Trig_no_Func003001 takes nothing returns boolean
return ( GetClickedButtonBJ() == udg_sell2[2] )
endfunction
function Trig_no_Func003002 takes nothing returns boolean
return ( GetClickedButtonBJ() == udg_yesno[2] )
endfunction
function Trig_no_Conditions takes nothing returns boolean
if ( not GetBooleanOr( Trig_no_Func003001(), Trig_no_Func003002() ) ) then
return false
endif
return true
endfunction
function Trig_no_Actions takes nothing returns nothing
call DialogDisplayBJ( false, udg_buy[1], GetTriggerPlayer() )
call DialogDisplayBJ( false, udg_sell[1], GetTriggerPlayer() )
endfunction
//===========================================================================
function InitTrig_no takes nothing returns nothing
set gg_trg_no = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_no, udg_buy[1] )
call TriggerRegisterDialogEventBJ( gg_trg_no, udg_sell[1] )
call TriggerAddCondition( gg_trg_no, Condition( function Trig_no_Conditions ) )
call TriggerAddAction( gg_trg_no, function Trig_no_Actions )
endfunction
function Trig_sell_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_sell2[1] ) ) then
return false
endif
return true
endfunction
function Trig_sell_Actions takes nothing returns nothing
set udg_gatedoors[1] = Player(9)
call AdjustPlayerStateBJ( 100, GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD )
call DialogDisplayBJ( false, udg_sell[1], GetTriggerPlayer() )
call SetUnitOwner( gg_unit_ncp2_0030, Player(PLAYER_NEUTRAL_PASSIVE), true )
call DisableTrigger( gg_trg_sellmenu )
call EnableTrigger( gg_trg_buymenu )
endfunction
//===========================================================================
function InitTrig_sell takes nothing returns nothing
set gg_trg_sell = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_sell, udg_sell[1] )
call TriggerAddCondition( gg_trg_sell, Condition( function Trig_sell_Conditions ) )
call TriggerAddAction( gg_trg_sell, function Trig_sell_Actions )
endfunction
function Trig_open_Conditions takes nothing returns boolean
if ( not ( udg_gatedoors[1] == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_open_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_ATg1_0142 )
endfunction
//===========================================================================
function InitTrig_open takes nothing returns nothing
set gg_trg_open = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_open, Player(0), "-open small island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_open, Player(1), "-open small island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_open, Player(2), "-open small island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_open, Player(3), "-open small island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_open, Player(4), "-open small island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_open, Player(5), "-open small island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_open, Player(6), "-open small island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_open, Player(7), "-open small island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_open, Player(8), "-open small island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_open, Player(11), "-open small island", true )
call TriggerAddCondition( gg_trg_open, Condition( function Trig_open_Conditions ) )
call TriggerAddAction( gg_trg_open, function Trig_open_Actions )
endfunction
function Trig_close_Conditions takes nothing returns boolean
if ( not ( udg_gatedoors[1] == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_close_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_CLOSE, gg_dest_ATg1_0142 )
endfunction
//===========================================================================
function InitTrig_close takes nothing returns nothing
set gg_trg_close = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_close, Player(0), "-close small island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_close, Player(1), "-close small island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_close, Player(2), "-close small island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_close, Player(3), "-close small island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_close, Player(4), "-close small island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_close, Player(5), "-close small island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_close, Player(6), "-close small island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_close, Player(7), "-close small island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_close, Player(8), "-close small island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_close, Player(11), "-close small island", true )
call TriggerAddCondition( gg_trg_close, Condition( function Trig_close_Conditions ) )
call TriggerAddAction( gg_trg_close, function Trig_close_Actions )
endfunction
function Trig_islesetup_Copy_Func006002 takes nothing returns nothing
call DialogDisplayBJ( false, udg_buy[2], GetEnumPlayer() )
endfunction
function Trig_islesetup_Copy_Actions takes nothing returns nothing
call DialogSetMessageBJ( udg_buy[2], "TRIGSTR_058" )
call DialogAddButtonBJ( udg_buy[2], "TRIGSTR_059" )
set udg_yesno_Copy[1] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_buy[2], "TRIGSTR_060" )
set udg_yesno_Copy[2] = GetLastCreatedButtonBJ()
call ForForce( GetPlayersAll(), function Trig_islesetup_Copy_Func006002 )
endfunction
//===========================================================================
function InitTrig_islesetup_Copy takes nothing returns nothing
set gg_trg_islesetup_Copy = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_islesetup_Copy, 2.00 )
call TriggerAddAction( gg_trg_islesetup_Copy, function Trig_islesetup_Copy_Actions )
endfunction
function Trig_islesetup2_Copy_Func006002 takes nothing returns nothing
call DialogDisplayBJ( false, udg_sell[2], GetEnumPlayer() )
endfunction
function Trig_islesetup2_Copy_Actions takes nothing returns nothing
call DialogSetMessageBJ( udg_sell[2], "TRIGSTR_061" )
call DialogAddButtonBJ( udg_sell[2], "TRIGSTR_062" )
set udg_sell2_Copy[1] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_sell[2], "TRIGSTR_063" )
set udg_sell2_Copy[2] = GetLastCreatedButtonBJ()
call ForForce( GetPlayersAll(), function Trig_islesetup2_Copy_Func006002 )
endfunction
//===========================================================================
function InitTrig_islesetup2_Copy takes nothing returns nothing
set gg_trg_islesetup2_Copy = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_islesetup2_Copy, 3.00 )
call TriggerAddAction( gg_trg_islesetup2_Copy, function Trig_islesetup2_Copy_Actions )
endfunction
function Trig_buymenu_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_buymenu_Copy_Actions takes nothing returns nothing
call DialogDisplayBJ( true, udg_buy[2], GetOwningPlayer(GetTriggerUnit()) )
endfunction
//===========================================================================
function InitTrig_buymenu_Copy takes nothing returns nothing
set gg_trg_buymenu_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_buymenu_Copy, gg_rct_Medium_2_Island )
call TriggerAddCondition( gg_trg_buymenu_Copy, Condition( function Trig_buymenu_Copy_Conditions ) )
call TriggerAddAction( gg_trg_buymenu_Copy, function Trig_buymenu_Copy_Actions )
endfunction
function Trig_sellmenu_Copy_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == udg_gatedoors[2] ) ) then
return false
endif
return true
endfunction
function Trig_sellmenu_Copy_Actions takes nothing returns nothing
call DialogDisplayBJ( true, udg_sell[2], GetOwningPlayer(GetTriggerUnit()) )
endfunction
//===========================================================================
function InitTrig_sellmenu_Copy takes nothing returns nothing
set gg_trg_sellmenu_Copy = CreateTrigger( )
call DisableTrigger( gg_trg_sellmenu_Copy )
call TriggerRegisterEnterRectSimple( gg_trg_sellmenu_Copy, gg_rct_Medium_2_Island )
call TriggerAddCondition( gg_trg_sellmenu_Copy, Condition( function Trig_sellmenu_Copy_Conditions ) )
call TriggerAddAction( gg_trg_sellmenu_Copy, function Trig_sellmenu_Copy_Actions )
endfunction
function Trig_yes_Copy_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_yesno_Copy[1] ) ) then
return false
endif
if ( not ( GetPlayerState(GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD) >= 250 ) ) then
return false
endif
return true
endfunction
function Trig_yes_Copy_Actions takes nothing returns nothing
set udg_gatedoors[2] = GetTriggerPlayer()
call DialogDisplayBJ( false, udg_buy[2], GetTriggerPlayer() )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + " has bought his own private carrabian island for 250$!!" ) )
call AdjustPlayerStateBJ( -250, GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD )
call DisableTrigger( gg_trg_buymenu_Copy )
call EnableTrigger( gg_trg_sellmenu_Copy )
call SetUnitOwner( gg_unit_ncp2_0029, GetTriggerPlayer(), true )
endfunction
//===========================================================================
function InitTrig_yes_Copy takes nothing returns nothing
set gg_trg_yes_Copy = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_yes_Copy, udg_buy[2] )
call TriggerAddCondition( gg_trg_yes_Copy, Condition( function Trig_yes_Copy_Conditions ) )
call TriggerAddAction( gg_trg_yes_Copy, function Trig_yes_Copy_Actions )
endfunction
function Trig_no_Copy_Func003001 takes nothing returns boolean
return ( GetClickedButtonBJ() == udg_sell2_Copy[2] )
endfunction
function Trig_no_Copy_Func003002 takes nothing returns boolean
return ( GetClickedButtonBJ() == udg_yesno_Copy[2] )
endfunction
function Trig_no_Copy_Conditions takes nothing returns boolean
if ( not GetBooleanOr( Trig_no_Copy_Func003001(), Trig_no_Copy_Func003002() ) ) then
return false
endif
return true
endfunction
function Trig_no_Copy_Actions takes nothing returns nothing
call DialogDisplayBJ( false, udg_buy[2], GetTriggerPlayer() )
call DialogDisplayBJ( false, udg_sell[2], GetTriggerPlayer() )
endfunction
//===========================================================================
function InitTrig_no_Copy takes nothing returns nothing
set gg_trg_no_Copy = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_no_Copy, udg_buy[2] )
call TriggerRegisterDialogEventBJ( gg_trg_no_Copy, udg_sell[2] )
call TriggerAddCondition( gg_trg_no_Copy, Condition( function Trig_no_Copy_Conditions ) )
call TriggerAddAction( gg_trg_no_Copy, function Trig_no_Copy_Actions )
endfunction
function Trig_sell_Copy_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_sell2_Copy[1] ) ) then
return false
endif
return true
endfunction
function Trig_sell_Copy_Actions takes nothing returns nothing
set udg_gatedoors[2] = Player(9)
call AdjustPlayerStateBJ( 200, GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD )
call DialogDisplayBJ( false, udg_sell[2], GetTriggerPlayer() )
call SetUnitOwner( gg_unit_ncp2_0030, Player(PLAYER_NEUTRAL_PASSIVE), true )
call DisableTrigger( gg_trg_sellmenu_Copy )
call EnableTrigger( gg_trg_buymenu_Copy )
endfunction
//===========================================================================
function InitTrig_sell_Copy takes nothing returns nothing
set gg_trg_sell_Copy = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_sell_Copy, udg_sell[2] )
call TriggerAddCondition( gg_trg_sell_Copy, Condition( function Trig_sell_Copy_Conditions ) )
call TriggerAddAction( gg_trg_sell_Copy, function Trig_sell_Copy_Actions )
endfunction
function Trig_open2_Conditions takes nothing returns boolean
if ( not ( udg_gatedoors[2] == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_open2_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_ATg1_0143 )
endfunction
//===========================================================================
function InitTrig_open2 takes nothing returns nothing
set gg_trg_open2 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_open2, Player(0), "-open island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_open2, Player(1), "-open island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_open2, Player(2), "-open island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_open2, Player(3), "-open island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_open2, Player(4), "-open island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_open2, Player(5), "-open island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_open2, Player(6), "-open island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_open2, Player(7), "-open island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_open2, Player(8), "-open island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_open2, Player(11), "-open island", true )
call TriggerAddCondition( gg_trg_open2, Condition( function Trig_open2_Conditions ) )
call TriggerAddAction( gg_trg_open2, function Trig_open2_Actions )
endfunction
function Trig_close2_Conditions takes nothing returns boolean
if ( not ( udg_gatedoors[2] == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_close2_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_CLOSE, gg_dest_ATg1_0143 )
endfunction
//===========================================================================
function InitTrig_close2 takes nothing returns nothing
set gg_trg_close2 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_close2, Player(0), "-close island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_close2, Player(1), "-close island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_close2, Player(2), "-close island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_close2, Player(3), "-close island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_close2, Player(4), "-close island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_close2, Player(5), "-close island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_close2, Player(6), "-close island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_close2, Player(7), "-close island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_close2, Player(8), "-close island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_close2, Player(11), "-close island", true )
call TriggerAddCondition( gg_trg_close2, Condition( function Trig_close2_Conditions ) )
call TriggerAddAction( gg_trg_close2, function Trig_close2_Actions )
endfunction
function Trig_islesetup_Copy_Copy_Func006002 takes nothing returns nothing
call DialogDisplayBJ( false, udg_buy[3], GetEnumPlayer() )
endfunction
function Trig_islesetup_Copy_Copy_Actions takes nothing returns nothing
call DialogSetMessageBJ( udg_buy[3], "TRIGSTR_064" )
call DialogAddButtonBJ( udg_buy[3], "TRIGSTR_065" )
set udg_yesno_Copy_Copy[1] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_buy[3], "TRIGSTR_066" )
set udg_yesno_Copy_Copy[2] = GetLastCreatedButtonBJ()
call ForForce( GetPlayersAll(), function Trig_islesetup_Copy_Copy_Func006002 )
endfunction
//===========================================================================
function InitTrig_islesetup_Copy_Copy takes nothing returns nothing
set gg_trg_islesetup_Copy_Copy = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_islesetup_Copy_Copy, 2.00 )
call TriggerAddAction( gg_trg_islesetup_Copy_Copy, function Trig_islesetup_Copy_Copy_Actions )
endfunction
function Trig_islesetup2_Copy_Copy_Func006002 takes nothing returns nothing
call DialogDisplayBJ( false, udg_sell[3], GetEnumPlayer() )
endfunction
function Trig_islesetup2_Copy_Copy_Actions takes nothing returns nothing
call DialogSetMessageBJ( udg_sell[3], "TRIGSTR_067" )
call DialogAddButtonBJ( udg_sell[3], "TRIGSTR_068" )
set udg_sell2_Copy_Copy[1] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_sell[3], "TRIGSTR_069" )
set udg_sell2_Copy_Copy[2] = GetLastCreatedButtonBJ()
call ForForce( GetPlayersAll(), function Trig_islesetup2_Copy_Copy_Func006002 )
endfunction
//===========================================================================
function InitTrig_islesetup2_Copy_Copy takes nothing returns nothing
set gg_trg_islesetup2_Copy_Copy = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_islesetup2_Copy_Copy, 3.00 )
call TriggerAddAction( gg_trg_islesetup2_Copy_Copy, function Trig_islesetup2_Copy_Copy_Actions )
endfunction
function Trig_buymenu_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_buymenu_Copy_Copy_Actions takes nothing returns nothing
call DialogDisplayBJ( true, udg_buy[3], GetOwningPlayer(GetTriggerUnit()) )
endfunction
//===========================================================================
function InitTrig_buymenu_Copy_Copy takes nothing returns nothing
set gg_trg_buymenu_Copy_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_buymenu_Copy_Copy, gg_rct_Medium_1_Island )
call TriggerAddCondition( gg_trg_buymenu_Copy_Copy, Condition( function Trig_buymenu_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_buymenu_Copy_Copy, function Trig_buymenu_Copy_Copy_Actions )
endfunction
function Trig_sellmenu_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == udg_gatedoors[3] ) ) then
return false
endif
return true
endfunction
function Trig_sellmenu_Copy_Copy_Actions takes nothing returns nothing
call DialogDisplayBJ( true, udg_sell[3], GetOwningPlayer(GetTriggerUnit()) )
endfunction
//===========================================================================
function InitTrig_sellmenu_Copy_Copy takes nothing returns nothing
set gg_trg_sellmenu_Copy_Copy = CreateTrigger( )
call DisableTrigger( gg_trg_sellmenu_Copy_Copy )
call TriggerRegisterEnterRectSimple( gg_trg_sellmenu_Copy_Copy, gg_rct_Medium_1_Island )
call TriggerAddCondition( gg_trg_sellmenu_Copy_Copy, Condition( function Trig_sellmenu_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_sellmenu_Copy_Copy, function Trig_sellmenu_Copy_Copy_Actions )
endfunction
function Trig_yes_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_yesno_Copy_Copy[1] ) ) then
return false
endif
if ( not ( GetPlayerState(GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD) >= 250 ) ) then
return false
endif
return true
endfunction
function Trig_yes_Copy_Copy_Actions takes nothing returns nothing
set udg_gatedoors[3] = GetTriggerPlayer()
call DialogDisplayBJ( false, udg_buy[3], GetTriggerPlayer() )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + " has bought his own private carrabian island for 250$!!" ) )
call AdjustPlayerStateBJ( -250, GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD )
call DisableTrigger( gg_trg_buymenu_Copy_Copy )
call EnableTrigger( gg_trg_sellmenu_Copy_Copy )
call SetUnitOwner( gg_unit_ncp2_0026, GetTriggerPlayer(), true )
endfunction
//===========================================================================
function InitTrig_yes_Copy_Copy takes nothing returns nothing
set gg_trg_yes_Copy_Copy = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_yes_Copy_Copy, udg_buy[3] )
call TriggerAddCondition( gg_trg_yes_Copy_Copy, Condition( function Trig_yes_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_yes_Copy_Copy, function Trig_yes_Copy_Copy_Actions )
endfunction
function Trig_no_Copy_Copy_Func003001 takes nothing returns boolean
return ( GetClickedButtonBJ() == udg_sell2_Copy_Copy[2] )
endfunction
function Trig_no_Copy_Copy_Func003002 takes nothing returns boolean
return ( GetClickedButtonBJ() == udg_yesno_Copy_Copy[2] )
endfunction
function Trig_no_Copy_Copy_Conditions takes nothing returns boolean
if ( not GetBooleanOr( Trig_no_Copy_Copy_Func003001(), Trig_no_Copy_Copy_Func003002() ) ) then
return false
endif
return true
endfunction
function Trig_no_Copy_Copy_Actions takes nothing returns nothing
call DialogDisplayBJ( false, udg_buy[3], GetTriggerPlayer() )
call DialogDisplayBJ( false, udg_sell[3], GetTriggerPlayer() )
endfunction
//===========================================================================
function InitTrig_no_Copy_Copy takes nothing returns nothing
set gg_trg_no_Copy_Copy = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_no_Copy_Copy, udg_buy[3] )
call TriggerRegisterDialogEventBJ( gg_trg_no_Copy_Copy, udg_sell[3] )
call TriggerAddCondition( gg_trg_no_Copy_Copy, Condition( function Trig_no_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_no_Copy_Copy, function Trig_no_Copy_Copy_Actions )
endfunction
function Trig_sell_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_sell2_Copy_Copy[1] ) ) then
return false
endif
return true
endfunction
function Trig_sell_Copy_Copy_Actions takes nothing returns nothing
set udg_gatedoors[3] = Player(9)
call AdjustPlayerStateBJ( 200, GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD )
call DialogDisplayBJ( false, udg_sell[3], GetTriggerPlayer() )
call SetUnitOwner( gg_unit_ncp2_0026, Player(PLAYER_NEUTRAL_PASSIVE), true )
call DisableTrigger( gg_trg_sellmenu_Copy_Copy )
call EnableTrigger( gg_trg_buymenu_Copy_Copy )
endfunction
//===========================================================================
function InitTrig_sell_Copy_Copy takes nothing returns nothing
set gg_trg_sell_Copy_Copy = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_sell_Copy_Copy, udg_sell[3] )
call TriggerAddCondition( gg_trg_sell_Copy_Copy, Condition( function Trig_sell_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_sell_Copy_Copy, function Trig_sell_Copy_Copy_Actions )
endfunction
function Trig_open2_Copy_Conditions takes nothing returns boolean
if ( not ( udg_gatedoors[3] == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_open2_Copy_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_ATg1_0144 )
endfunction
//===========================================================================
function InitTrig_open2_Copy takes nothing returns nothing
set gg_trg_open2_Copy = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_open2_Copy, Player(0), "-open island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_open2_Copy, Player(1), "-open island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_open2_Copy, Player(2), "-open island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_open2_Copy, Player(3), "-open island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_open2_Copy, Player(4), "-open island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_open2_Copy, Player(5), "-open island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_open2_Copy, Player(6), "-open island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_open2_Copy, Player(7), "-open island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_open2_Copy, Player(8), "-open island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_open2_Copy, Player(11), "-open island", true )
call TriggerAddCondition( gg_trg_open2_Copy, Condition( function Trig_open2_Copy_Conditions ) )
call TriggerAddAction( gg_trg_open2_Copy, function Trig_open2_Copy_Actions )
endfunction
function Trig_close2_Copy_Conditions takes nothing returns boolean
if ( not ( udg_gatedoors[3] == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_close2_Copy_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_CLOSE, gg_dest_ATg1_0144 )
endfunction
//===========================================================================
function InitTrig_close2_Copy takes nothing returns nothing
set gg_trg_close2_Copy = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_close2_Copy, Player(0), "-close island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_close2_Copy, Player(1), "-close island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_close2_Copy, Player(2), "-close island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_close2_Copy, Player(3), "-close island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_close2_Copy, Player(4), "-close island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_close2_Copy, Player(5), "-close island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_close2_Copy, Player(6), "-close island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_close2_Copy, Player(7), "-close island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_close2_Copy, Player(8), "-close island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_close2_Copy, Player(11), "-close island", true )
call TriggerAddCondition( gg_trg_close2_Copy, Condition( function Trig_close2_Copy_Conditions ) )
call TriggerAddAction( gg_trg_close2_Copy, function Trig_close2_Copy_Actions )
endfunction
function Trig_islesetup_Copy_Copy_Copy_Func006002 takes nothing returns nothing
call DialogDisplayBJ( false, udg_buy[4], GetEnumPlayer() )
endfunction
function Trig_islesetup_Copy_Copy_Copy_Actions takes nothing returns nothing
call DialogSetMessageBJ( udg_buy[4], "TRIGSTR_070" )
call DialogAddButtonBJ( udg_buy[4], "TRIGSTR_071" )
set udg_yesno_Copy_Copy_Copy[1] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_buy[4], "TRIGSTR_072" )
set udg_yesno_Copy_Copy_Copy[2] = GetLastCreatedButtonBJ()
call ForForce( GetPlayersAll(), function Trig_islesetup_Copy_Copy_Copy_Func006002 )
endfunction
//===========================================================================
function InitTrig_islesetup_Copy_Copy_Copy takes nothing returns nothing
set gg_trg_islesetup_Copy_Copy_Copy = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_islesetup_Copy_Copy_Copy, 2.00 )
call TriggerAddAction( gg_trg_islesetup_Copy_Copy_Copy, function Trig_islesetup_Copy_Copy_Copy_Actions )
endfunction
function Trig_islesetup2_Copy_Copy_Copy_Func006002 takes nothing returns nothing
call DialogDisplayBJ( false, udg_sell[4], GetEnumPlayer() )
endfunction
function Trig_islesetup2_Copy_Copy_Copy_Actions takes nothing returns nothing
call DialogSetMessageBJ( udg_sell[4], "TRIGSTR_073" )
call DialogAddButtonBJ( udg_sell[4], "TRIGSTR_074" )
set udg_sell2_Copy_Copy_Copy[1] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_sell[4], "TRIGSTR_075" )
set udg_sell2_Copy_Copy_Copy[2] = GetLastCreatedButtonBJ()
call ForForce( GetPlayersAll(), function Trig_islesetup2_Copy_Copy_Copy_Func006002 )
endfunction
//===========================================================================
function InitTrig_islesetup2_Copy_Copy_Copy takes nothing returns nothing
set gg_trg_islesetup2_Copy_Copy_Copy = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_islesetup2_Copy_Copy_Copy, 3.00 )
call TriggerAddAction( gg_trg_islesetup2_Copy_Copy_Copy, function Trig_islesetup2_Copy_Copy_Copy_Actions )
endfunction
function Trig_buymenu_Copy_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_buymenu_Copy_Copy_Copy_Actions takes nothing returns nothing
call DialogDisplayBJ( true, udg_buy[4], GetOwningPlayer(GetTriggerUnit()) )
endfunction
//===========================================================================
function InitTrig_buymenu_Copy_Copy_Copy takes nothing returns nothing
set gg_trg_buymenu_Copy_Copy_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_buymenu_Copy_Copy_Copy, gg_rct_Large_Island )
call TriggerAddCondition( gg_trg_buymenu_Copy_Copy_Copy, Condition( function Trig_buymenu_Copy_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_buymenu_Copy_Copy_Copy, function Trig_buymenu_Copy_Copy_Copy_Actions )
endfunction
function Trig_sellmenu_Copy_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == udg_gatedoors[4] ) ) then
return false
endif
return true
endfunction
function Trig_sellmenu_Copy_Copy_Copy_Actions takes nothing returns nothing
call DialogDisplayBJ( true, udg_sell[4], GetOwningPlayer(GetTriggerUnit()) )
endfunction
//===========================================================================
function InitTrig_sellmenu_Copy_Copy_Copy takes nothing returns nothing
set gg_trg_sellmenu_Copy_Copy_Copy = CreateTrigger( )
call DisableTrigger( gg_trg_sellmenu_Copy_Copy_Copy )
call TriggerRegisterEnterRectSimple( gg_trg_sellmenu_Copy_Copy_Copy, gg_rct_Large_Island )
call TriggerAddCondition( gg_trg_sellmenu_Copy_Copy_Copy, Condition( function Trig_sellmenu_Copy_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_sellmenu_Copy_Copy_Copy, function Trig_sellmenu_Copy_Copy_Copy_Actions )
endfunction
function Trig_yes_Copy_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_yesno_Copy_Copy_Copy[1] ) ) then
return false
endif
if ( not ( GetPlayerState(GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD) >= 400 ) ) then
return false
endif
return true
endfunction
function Trig_yes_Copy_Copy_Copy_Actions takes nothing returns nothing
set udg_gatedoors[4] = GetTriggerPlayer()
call DialogDisplayBJ( false, udg_buy[4], GetTriggerPlayer() )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + " has bought his own private carrabian island for 400$!!" ) )
call AdjustPlayerStateBJ( -400, GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD )
call DisableTrigger( gg_trg_buymenu_Copy_Copy_Copy )
call EnableTrigger( gg_trg_sellmenu_Copy_Copy_Copy )
call SetUnitOwner( gg_unit_ncp2_0027, GetTriggerPlayer(), true )
endfunction
//===========================================================================
function InitTrig_yes_Copy_Copy_Copy takes nothing returns nothing
set gg_trg_yes_Copy_Copy_Copy = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_yes_Copy_Copy_Copy, udg_buy[4] )
call TriggerAddCondition( gg_trg_yes_Copy_Copy_Copy, Condition( function Trig_yes_Copy_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_yes_Copy_Copy_Copy, function Trig_yes_Copy_Copy_Copy_Actions )
endfunction
function Trig_no_Copy_Copy_Copy_Func003001 takes nothing returns boolean
return ( GetClickedButtonBJ() == udg_sell2_Copy_Copy_Copy[2] )
endfunction
function Trig_no_Copy_Copy_Copy_Func003002 takes nothing returns boolean
return ( GetClickedButtonBJ() == udg_yesno_Copy_Copy_Copy[2] )
endfunction
function Trig_no_Copy_Copy_Copy_Conditions takes nothing returns boolean
if ( not GetBooleanOr( Trig_no_Copy_Copy_Copy_Func003001(), Trig_no_Copy_Copy_Copy_Func003002() ) ) then
return false
endif
return true
endfunction
function Trig_no_Copy_Copy_Copy_Actions takes nothing returns nothing
call DialogDisplayBJ( false, udg_buy[4], GetTriggerPlayer() )
call DialogDisplayBJ( false, udg_sell[4], GetTriggerPlayer() )
endfunction
//===========================================================================
function InitTrig_no_Copy_Copy_Copy takes nothing returns nothing
set gg_trg_no_Copy_Copy_Copy = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_no_Copy_Copy_Copy, udg_buy[4] )
call TriggerRegisterDialogEventBJ( gg_trg_no_Copy_Copy_Copy, udg_sell[4] )
call TriggerAddCondition( gg_trg_no_Copy_Copy_Copy, Condition( function Trig_no_Copy_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_no_Copy_Copy_Copy, function Trig_no_Copy_Copy_Copy_Actions )
endfunction
function Trig_sell_Copy_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_sell2_Copy_Copy_Copy[1] ) ) then
return false
endif
return true
endfunction
function Trig_sell_Copy_Copy_Copy_Actions takes nothing returns nothing
set udg_gatedoors[4] = Player(9)
call AdjustPlayerStateBJ( 300, GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD )
call DialogDisplayBJ( false, udg_sell[4], GetTriggerPlayer() )
call SetUnitOwner( gg_unit_ncp2_0027, Player(PLAYER_NEUTRAL_PASSIVE), true )
call DisableTrigger( gg_trg_sellmenu_Copy_Copy_Copy )
call EnableTrigger( gg_trg_buymenu_Copy_Copy_Copy )
endfunction
//===========================================================================
function InitTrig_sell_Copy_Copy_Copy takes nothing returns nothing
set gg_trg_sell_Copy_Copy_Copy = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_sell_Copy_Copy_Copy, udg_sell[4] )
call TriggerAddCondition( gg_trg_sell_Copy_Copy_Copy, Condition( function Trig_sell_Copy_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_sell_Copy_Copy_Copy, function Trig_sell_Copy_Copy_Copy_Actions )
endfunction
function Trig_open2_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( udg_gatedoors[4] == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_open2_Copy_Copy_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_ATg1_0145 )
endfunction
//===========================================================================
function InitTrig_open2_Copy_Copy takes nothing returns nothing
set gg_trg_open2_Copy_Copy = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_open2_Copy_Copy, Player(0), "-open large island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_open2_Copy_Copy, Player(1), "-open large island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_open2_Copy_Copy, Player(2), "-open large island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_open2_Copy_Copy, Player(3), "-open large island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_open2_Copy_Copy, Player(4), "-open large island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_open2_Copy_Copy, Player(5), "-open large island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_open2_Copy_Copy, Player(6), "-open large island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_open2_Copy_Copy, Player(7), "-open large island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_open2_Copy_Copy, Player(8), "-open large island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_open2_Copy_Copy, Player(11), "-open large island", true )
call TriggerAddCondition( gg_trg_open2_Copy_Copy, Condition( function Trig_open2_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_open2_Copy_Copy, function Trig_open2_Copy_Copy_Actions )
endfunction
function Trig_close_3_Conditions takes nothing returns boolean
if ( not ( udg_gatedoors[4] == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_close_3_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_CLOSE, gg_dest_ATg1_0145 )
endfunction
//===========================================================================
function InitTrig_close_3 takes nothing returns nothing
set gg_trg_close_3 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_close_3, Player(0), "-close large island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_close_3, Player(1), "-close large island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_close_3, Player(2), "-close large island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_close_3, Player(3), "-close large island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_close_3, Player(4), "-close large island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_close_3, Player(5), "-close large island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_close_3, Player(6), "-close large island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_close_3, Player(7), "-close large island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_close_3, Player(8), "-close large island", true )
call TriggerRegisterPlayerChatEvent( gg_trg_close_3, Player(11), "-close large island", true )
call TriggerAddCondition( gg_trg_close_3, Condition( function Trig_close_3_Conditions ) )
call TriggerAddAction( gg_trg_close_3, function Trig_close_3_Actions )
endfunction
function Trig_buy_Conditions takes nothing returns boolean
if ( not ( GetPlayerState(GetOwningPlayer(GetTriggerUnit()), PLAYER_STATE_RESOURCE_GOLD) >= 150 ) ) then
return false
endif
if ( not ( GetOwningPlayer(gg_unit_ncop_0021) == Player(9) ) ) then
return false
endif
return true
endfunction
function Trig_buy_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( -150, GetOwningPlayer(GetTriggerUnit()), PLAYER_STATE_RESOURCE_GOLD )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetTriggerUnit())) + " has bought a large house. to enter walk into the door." ) )
call SetUnitOwner( gg_unit_ncop_0021, GetOwningPlayer(GetTriggerUnit()), true )
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_sellhouse )
call EnableTrigger( gg_trg_enter )
endfunction
//===========================================================================
function InitTrig_buy takes nothing returns nothing
set gg_trg_buy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_buy, gg_rct_Rect_008 )
call TriggerAddCondition( gg_trg_buy, Condition( function Trig_buy_Conditions ) )
call TriggerAddAction( gg_trg_buy, function Trig_buy_Actions )
endfunction
function Trig_sellhouse_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0021, GetOwningPlayer(GetTriggerUnit())) == true ) ) then
return false
endif
return true
endfunction
function Trig_sellhouse_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncop_0021, Player(9), true )
call DisableTrigger( gg_trg_enter )
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 3.00 )
call EnableTrigger( gg_trg_buy )
endfunction
//===========================================================================
function InitTrig_sellhouse takes nothing returns nothing
set gg_trg_sellhouse = CreateTrigger( )
call DisableTrigger( gg_trg_sellhouse )
call TriggerRegisterEnterRectSimple( gg_trg_sellhouse, gg_rct_Rect_008 )
call TriggerAddCondition( gg_trg_sellhouse, Condition( function Trig_sellhouse_Conditions ) )
call TriggerAddAction( gg_trg_sellhouse, function Trig_sellhouse_Actions )
endfunction
function Trig_lock_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0021, GetTriggerPlayer()) == true ) ) then
return false
endif
return true
endfunction
function Trig_lock_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_enter )
endfunction
//===========================================================================
function InitTrig_lock takes nothing returns nothing
set gg_trg_lock = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_lock, Player(0), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock, Player(1), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock, Player(2), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock, Player(3), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock, Player(4), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock, Player(5), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock, Player(6), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock, Player(7), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock, Player(8), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock, Player(11), "-lock", true )
call TriggerAddCondition( gg_trg_lock, Condition( function Trig_lock_Conditions ) )
call TriggerAddAction( gg_trg_lock, function Trig_lock_Actions )
endfunction
function Trig_lock_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0021, GetTriggerPlayer()) == true ) ) then
return false
endif
return true
endfunction
function Trig_lock_Copy_Actions takes nothing returns nothing
call EnableTrigger( gg_trg_enter )
endfunction
//===========================================================================
function InitTrig_lock_Copy takes nothing returns nothing
set gg_trg_lock_Copy = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy, Player(0), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy, Player(1), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy, Player(2), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy, Player(3), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy, Player(4), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy, Player(5), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy, Player(6), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy, Player(7), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy, Player(8), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy, Player(11), "-unlock", true )
call TriggerAddCondition( gg_trg_lock_Copy, Condition( function Trig_lock_Copy_Conditions ) )
call TriggerAddAction( gg_trg_lock_Copy, function Trig_lock_Copy_Actions )
endfunction
function Trig_enter_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Rect_010) )
call SetCameraBoundsToRectForPlayerBJ( GetOwningPlayer(GetTriggerUnit()), gg_rct_Rect_035 )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Rect_035), 0 )
endfunction
//===========================================================================
function InitTrig_enter takes nothing returns nothing
set gg_trg_enter = CreateTrigger( )
call DisableTrigger( gg_trg_enter )
call TriggerRegisterEnterRectSimple( gg_trg_enter, gg_rct_Rect_009 )
call TriggerAddAction( gg_trg_enter, function Trig_enter_Actions )
endfunction
function Trig_enter_Copy_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Rect_012) )
call SetCameraBoundsToRectForPlayerBJ( GetOwningPlayer(GetTriggerUnit()), gg_rct_Rect_034 )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Rect_034), 0 )
endfunction
//===========================================================================
function InitTrig_enter_Copy takes nothing returns nothing
set gg_trg_enter_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_enter_Copy, gg_rct_Rect_011 )
call TriggerAddAction( gg_trg_enter_Copy, function Trig_enter_Copy_Actions )
endfunction
function Trig_buy_Copy_3_Conditions takes nothing returns boolean
if ( not ( GetPlayerState(GetOwningPlayer(GetTriggerUnit()), PLAYER_STATE_RESOURCE_GOLD) >= 100 ) ) then
return false
endif
if ( not ( GetOwningPlayer(gg_unit_ncop_0110) == Player(9) ) ) then
return false
endif
return true
endfunction
function Trig_buy_Copy_3_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( -100, GetOwningPlayer(GetTriggerUnit()), PLAYER_STATE_RESOURCE_GOLD )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetTriggerUnit())) + " has bought a small house. to enter walk into the door." ) )
call SetUnitOwner( gg_unit_ncop_0110, GetOwningPlayer(GetTriggerUnit()), true )
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_sellhouse_Copy_3 )
call EnableTrigger( gg_trg_enter_Copy_5 )
endfunction
//===========================================================================
function InitTrig_buy_Copy_3 takes nothing returns nothing
set gg_trg_buy_Copy_3 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_buy_Copy_3, gg_rct_Small_House_3 )
call TriggerAddCondition( gg_trg_buy_Copy_3, Condition( function Trig_buy_Copy_3_Conditions ) )
call TriggerAddAction( gg_trg_buy_Copy_3, function Trig_buy_Copy_3_Actions )
endfunction
function Trig_sellhouse_Copy_3_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0110, GetOwningPlayer(GetTriggerUnit())) == true ) ) then
return false
endif
return true
endfunction
function Trig_sellhouse_Copy_3_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncop_0110, Player(9), true )
call DisableTrigger( gg_trg_enter_Copy_5 )
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_buy_Copy_3 )
endfunction
//===========================================================================
function InitTrig_sellhouse_Copy_3 takes nothing returns nothing
set gg_trg_sellhouse_Copy_3 = CreateTrigger( )
call DisableTrigger( gg_trg_sellhouse_Copy_3 )
call TriggerRegisterEnterRectSimple( gg_trg_sellhouse_Copy_3, gg_rct_Small_House_3 )
call TriggerAddCondition( gg_trg_sellhouse_Copy_3, Condition( function Trig_sellhouse_Copy_3_Conditions ) )
call TriggerAddAction( gg_trg_sellhouse_Copy_3, function Trig_sellhouse_Copy_3_Actions )
endfunction
function Trig_lock_Copy_5_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0110, GetTriggerPlayer()) == true ) ) then
return false
endif
return true
endfunction
function Trig_lock_Copy_5_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_enter_Copy_5 )
endfunction
//===========================================================================
function InitTrig_lock_Copy_5 takes nothing returns nothing
set gg_trg_lock_Copy_5 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_5, Player(0), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_5, Player(1), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_5, Player(2), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_5, Player(3), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_5, Player(4), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_5, Player(5), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_5, Player(6), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_5, Player(7), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_5, Player(8), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_5, Player(11), "-lock", true )
call TriggerAddCondition( gg_trg_lock_Copy_5, Condition( function Trig_lock_Copy_5_Conditions ) )
call TriggerAddAction( gg_trg_lock_Copy_5, function Trig_lock_Copy_5_Actions )
endfunction
function Trig_lock_Copy_Copy_4_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0110, GetTriggerPlayer()) == true ) ) then
return false
endif
return true
endfunction
function Trig_lock_Copy_Copy_4_Actions takes nothing returns nothing
call EnableTrigger( gg_trg_enter_Copy_5 )
endfunction
//===========================================================================
function InitTrig_lock_Copy_Copy_4 takes nothing returns nothing
set gg_trg_lock_Copy_Copy_4 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_4, Player(0), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_4, Player(1), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_4, Player(2), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_4, Player(3), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_4, Player(4), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_4, Player(5), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_4, Player(6), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_4, Player(7), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_4, Player(8), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_4, Player(11), "-unlock", true )
call TriggerAddCondition( gg_trg_lock_Copy_Copy_4, Condition( function Trig_lock_Copy_Copy_4_Conditions ) )
call TriggerAddAction( gg_trg_lock_Copy_Copy_4, function Trig_lock_Copy_Copy_4_Actions )
endfunction
function Trig_enter_Copy_5_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Rect_100) )
call SetCameraBoundsToRectForPlayerBJ( GetOwningPlayer(GetTriggerUnit()), gg_rct_Rect_101 )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Rect_101), 0 )
endfunction
//===========================================================================
function InitTrig_enter_Copy_5 takes nothing returns nothing
set gg_trg_enter_Copy_5 = CreateTrigger( )
call DisableTrigger( gg_trg_enter_Copy_5 )
call TriggerRegisterEnterRectSimple( gg_trg_enter_Copy_5, gg_rct_Rect_099 )
call TriggerAddAction( gg_trg_enter_Copy_5, function Trig_enter_Copy_5_Actions )
endfunction
function Trig_enter_Copy_Copy_4_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Rect_103) )
call SetCameraBoundsToRectForPlayerBJ( GetOwningPlayer(GetTriggerUnit()), gg_rct_Rect_034 )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Rect_034), 0 )
endfunction
//===========================================================================
function InitTrig_enter_Copy_Copy_4 takes nothing returns nothing
set gg_trg_enter_Copy_Copy_4 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_enter_Copy_Copy_4, gg_rct_Rect_102 )
call TriggerAddAction( gg_trg_enter_Copy_Copy_4, function Trig_enter_Copy_Copy_4_Actions )
endfunction
function Trig_buy_Copy_3_Copy_Conditions takes nothing returns boolean
if ( not ( GetPlayerState(GetOwningPlayer(GetTriggerUnit()), PLAYER_STATE_RESOURCE_GOLD) >= 50 ) ) then
return false
endif
if ( not ( GetOwningPlayer(gg_unit_ncop_0331) == Player(9) ) ) then
return false
endif
return true
endfunction
function Trig_buy_Copy_3_Copy_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( -50, GetOwningPlayer(GetTriggerUnit()), PLAYER_STATE_RESOURCE_GOLD )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetTriggerUnit())) + " has bought an apartment in Africa! to enter walk into the door." ) )
call SetUnitOwner( gg_unit_ncop_0331, GetOwningPlayer(GetTriggerUnit()), true )
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_sellhouse_Copy_3_Copy )
call EnableTrigger( gg_trg_enter_Copy_5_Copy )
endfunction
//===========================================================================
function InitTrig_buy_Copy_3_Copy takes nothing returns nothing
set gg_trg_buy_Copy_3_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_buy_Copy_3_Copy, gg_rct_Rect_139 )
call TriggerAddCondition( gg_trg_buy_Copy_3_Copy, Condition( function Trig_buy_Copy_3_Copy_Conditions ) )
call TriggerAddAction( gg_trg_buy_Copy_3_Copy, function Trig_buy_Copy_3_Copy_Actions )
endfunction
function Trig_sellhouse_Copy_3_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0331, GetOwningPlayer(GetTriggerUnit())) == true ) ) then
return false
endif
return true
endfunction
function Trig_sellhouse_Copy_3_Copy_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncop_0331, Player(9), true )
call DisableTrigger( gg_trg_enter_Copy_5_Copy )
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 3.00 )
call EnableTrigger( gg_trg_buy_Copy_3_Copy )
endfunction
//===========================================================================
function InitTrig_sellhouse_Copy_3_Copy takes nothing returns nothing
set gg_trg_sellhouse_Copy_3_Copy = CreateTrigger( )
call DisableTrigger( gg_trg_sellhouse_Copy_3_Copy )
call TriggerRegisterEnterRectSimple( gg_trg_sellhouse_Copy_3_Copy, gg_rct_Rect_139 )
call TriggerAddCondition( gg_trg_sellhouse_Copy_3_Copy, Condition( function Trig_sellhouse_Copy_3_Copy_Conditions ) )
call TriggerAddAction( gg_trg_sellhouse_Copy_3_Copy, function Trig_sellhouse_Copy_3_Copy_Actions )
endfunction
function Trig_lock_Copy_5_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0331, GetTriggerPlayer()) == true ) ) then
return false
endif
return true
endfunction
function Trig_lock_Copy_5_Copy_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_enter_Copy_5_Copy )
endfunction
//===========================================================================
function InitTrig_lock_Copy_5_Copy takes nothing returns nothing
set gg_trg_lock_Copy_5_Copy = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_5_Copy, Player(0), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_5_Copy, Player(1), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_5_Copy, Player(2), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_5_Copy, Player(3), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_5_Copy, Player(4), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_5_Copy, Player(5), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_5_Copy, Player(6), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_5_Copy, Player(7), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_5_Copy, Player(8), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_5_Copy, Player(11), "-lock", true )
call TriggerAddCondition( gg_trg_lock_Copy_5_Copy, Condition( function Trig_lock_Copy_5_Copy_Conditions ) )
call TriggerAddAction( gg_trg_lock_Copy_5_Copy, function Trig_lock_Copy_5_Copy_Actions )
endfunction
function Trig_lock_Copy_Copy_4_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0331, GetTriggerPlayer()) == true ) ) then
return false
endif
return true
endfunction
function Trig_lock_Copy_Copy_4_Copy_Actions takes nothing returns nothing
call EnableTrigger( gg_trg_enter_Copy_5_Copy )
endfunction
//===========================================================================
function InitTrig_lock_Copy_Copy_4_Copy takes nothing returns nothing
set gg_trg_lock_Copy_Copy_4_Copy = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_4_Copy, Player(0), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_4_Copy, Player(1), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_4_Copy, Player(2), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_4_Copy, Player(3), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_4_Copy, Player(4), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_4_Copy, Player(5), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_4_Copy, Player(6), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_4_Copy, Player(7), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_4_Copy, Player(8), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_4_Copy, Player(11), "-unlock", true )
call TriggerAddCondition( gg_trg_lock_Copy_Copy_4_Copy, Condition( function Trig_lock_Copy_Copy_4_Copy_Conditions ) )
call TriggerAddAction( gg_trg_lock_Copy_Copy_4_Copy, function Trig_lock_Copy_Copy_4_Copy_Actions )
endfunction
function Trig_enter_Copy_5_Copy_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Rect_141) )
call SetCameraBoundsToRectForPlayerBJ( GetOwningPlayer(GetTriggerUnit()), gg_rct_Rect_142 )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Rect_141), 0 )
endfunction
//===========================================================================
function InitTrig_enter_Copy_5_Copy takes nothing returns nothing
set gg_trg_enter_Copy_5_Copy = CreateTrigger( )
call DisableTrigger( gg_trg_enter_Copy_5_Copy )
call TriggerRegisterEnterRectSimple( gg_trg_enter_Copy_5_Copy, gg_rct_Rect_140 )
call TriggerAddAction( gg_trg_enter_Copy_5_Copy, function Trig_enter_Copy_5_Copy_Actions )
endfunction
function Trig_enter_Copy_Copy_4_Copy_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Rect_144) )
call SetCameraBoundsToRectForPlayerBJ( GetOwningPlayer(GetTriggerUnit()), gg_rct_Rect_034 )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Rect_144), 0 )
endfunction
//===========================================================================
function InitTrig_enter_Copy_Copy_4_Copy takes nothing returns nothing
set gg_trg_enter_Copy_Copy_4_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_enter_Copy_Copy_4_Copy, gg_rct_Rect_143 )
call TriggerAddAction( gg_trg_enter_Copy_Copy_4_Copy, function Trig_enter_Copy_Copy_4_Copy_Actions )
endfunction
function Trig_buy_Copy_3_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( GetPlayerState(GetOwningPlayer(GetTriggerUnit()), PLAYER_STATE_RESOURCE_GOLD) >= 50 ) ) then
return false
endif
if ( not ( GetOwningPlayer(gg_unit_ncop_0332) == Player(9) ) ) then
return false
endif
return true
endfunction
function Trig_buy_Copy_3_Copy_Copy_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( -50, GetOwningPlayer(GetTriggerUnit()), PLAYER_STATE_RESOURCE_GOLD )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetTriggerUnit())) + " has bought an apartment in Africa! to enter walk into the door." ) )
call SetUnitOwner( gg_unit_ncop_0332, GetOwningPlayer(GetTriggerUnit()), true )
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_sellhouse_Copy_3_Copy_Copy )
call EnableTrigger( gg_trg_enter_Copy_5_Copy_Copy )
endfunction
//===========================================================================
function InitTrig_buy_Copy_3_Copy_Copy takes nothing returns nothing
set gg_trg_buy_Copy_3_Copy_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_buy_Copy_3_Copy_Copy, gg_rct_Rect_145 )
call TriggerAddCondition( gg_trg_buy_Copy_3_Copy_Copy, Condition( function Trig_buy_Copy_3_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_buy_Copy_3_Copy_Copy, function Trig_buy_Copy_3_Copy_Copy_Actions )
endfunction
function Trig_sellhouse_Copy_3_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0332, GetOwningPlayer(GetTriggerUnit())) == true ) ) then
return false
endif
return true
endfunction
function Trig_sellhouse_Copy_3_Copy_Copy_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncop_0332, Player(9), true )
call DisableTrigger( gg_trg_enter_Copy_5_Copy_Copy )
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 3.00 )
call EnableTrigger( gg_trg_buy_Copy_3_Copy_Copy )
endfunction
//===========================================================================
function InitTrig_sellhouse_Copy_3_Copy_Copy takes nothing returns nothing
set gg_trg_sellhouse_Copy_3_Copy_Copy = CreateTrigger( )
call DisableTrigger( gg_trg_sellhouse_Copy_3_Copy_Copy )
call TriggerRegisterEnterRectSimple( gg_trg_sellhouse_Copy_3_Copy_Copy, gg_rct_Rect_145 )
call TriggerAddCondition( gg_trg_sellhouse_Copy_3_Copy_Copy, Condition( function Trig_sellhouse_Copy_3_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_sellhouse_Copy_3_Copy_Copy, function Trig_sellhouse_Copy_3_Copy_Copy_Actions )
endfunction
function Trig_lock_Copy_5_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0332, GetTriggerPlayer()) == true ) ) then
return false
endif
return true
endfunction
function Trig_lock_Copy_5_Copy_Copy_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_enter_Copy_5_Copy_Copy )
endfunction
//===========================================================================
function InitTrig_lock_Copy_5_Copy_Copy takes nothing returns nothing
set gg_trg_lock_Copy_5_Copy_Copy = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_5_Copy_Copy, Player(0), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_5_Copy_Copy, Player(1), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_5_Copy_Copy, Player(2), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_5_Copy_Copy, Player(3), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_5_Copy_Copy, Player(4), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_5_Copy_Copy, Player(5), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_5_Copy_Copy, Player(6), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_5_Copy_Copy, Player(7), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_5_Copy_Copy, Player(8), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_5_Copy_Copy, Player(11), "-lock", true )
call TriggerAddCondition( gg_trg_lock_Copy_5_Copy_Copy, Condition( function Trig_lock_Copy_5_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_lock_Copy_5_Copy_Copy, function Trig_lock_Copy_5_Copy_Copy_Actions )
endfunction
function Trig_lock_Copy_Copy_4_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0332, GetTriggerPlayer()) == true ) ) then
return false
endif
return true
endfunction
function Trig_lock_Copy_Copy_4_Copy_Copy_Actions takes nothing returns nothing
call EnableTrigger( gg_trg_enter_Copy_5_Copy_Copy )
endfunction
//===========================================================================
function InitTrig_lock_Copy_Copy_4_Copy_Copy takes nothing returns nothing
set gg_trg_lock_Copy_Copy_4_Copy_Copy = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_4_Copy_Copy, Player(0), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_4_Copy_Copy, Player(1), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_4_Copy_Copy, Player(2), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_4_Copy_Copy, Player(3), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_4_Copy_Copy, Player(4), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_4_Copy_Copy, Player(5), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_4_Copy_Copy, Player(6), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_4_Copy_Copy, Player(7), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_4_Copy_Copy, Player(8), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_4_Copy_Copy, Player(11), "-unlock", true )
call TriggerAddCondition( gg_trg_lock_Copy_Copy_4_Copy_Copy, Condition( function Trig_lock_Copy_Copy_4_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_lock_Copy_Copy_4_Copy_Copy, function Trig_lock_Copy_Copy_4_Copy_Copy_Actions )
endfunction
function Trig_enter_Copy_5_Copy_Copy_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Rect_147) )
call SetCameraBoundsToRectForPlayerBJ( GetOwningPlayer(GetTriggerUnit()), gg_rct_Rect_148 )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Rect_148), 0 )
endfunction
//===========================================================================
function InitTrig_enter_Copy_5_Copy_Copy takes nothing returns nothing
set gg_trg_enter_Copy_5_Copy_Copy = CreateTrigger( )
call DisableTrigger( gg_trg_enter_Copy_5_Copy_Copy )
call TriggerRegisterEnterRectSimple( gg_trg_enter_Copy_5_Copy_Copy, gg_rct_Rect_146 )
call TriggerAddAction( gg_trg_enter_Copy_5_Copy_Copy, function Trig_enter_Copy_5_Copy_Copy_Actions )
endfunction
function Trig_enter_Copy_Copy_4_Copy_Copy_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Rect_150) )
call SetCameraBoundsToRectForPlayerBJ( GetOwningPlayer(GetTriggerUnit()), gg_rct_Rect_034 )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Rect_150), 0 )
endfunction
//===========================================================================
function InitTrig_enter_Copy_Copy_4_Copy_Copy takes nothing returns nothing
set gg_trg_enter_Copy_Copy_4_Copy_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_enter_Copy_Copy_4_Copy_Copy, gg_rct_Rect_149 )
call TriggerAddAction( gg_trg_enter_Copy_Copy_4_Copy_Copy, function Trig_enter_Copy_Copy_4_Copy_Copy_Actions )
endfunction
function Trig_menu_Copy_2_Actions takes nothing returns nothing
call DialogSetMessageBJ( udg_landmenu[5], "TRIGSTR_418" )
call DialogAddButtonBJ( udg_landmenu[5], "TRIGSTR_419" )
set udg_landmenubtns[7] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_landmenu[1], "TRIGSTR_420" )
set udg_landmenubtns[8] = GetLastCreatedButtonBJ()
endfunction
//===========================================================================
function InitTrig_menu_Copy_2 takes nothing returns nothing
set gg_trg_menu_Copy_2 = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_menu_Copy_2, 4.00 )
call TriggerAddAction( gg_trg_menu_Copy_2, function Trig_menu_Copy_2_Actions )
endfunction
function Trig_noland_Copy_2_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_landmenubtns[8] ) ) then
return false
endif
return true
endfunction
function Trig_noland_Copy_2_Actions takes nothing returns nothing
call DialogDisplayBJ( false, udg_landmenu[5], GetTriggerPlayer() )
endfunction
//===========================================================================
function InitTrig_noland_Copy_2 takes nothing returns nothing
set gg_trg_noland_Copy_2 = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_noland_Copy_2, udg_landmenu[5] )
call TriggerAddCondition( gg_trg_noland_Copy_2, Condition( function Trig_noland_Copy_2_Conditions ) )
call TriggerAddAction( gg_trg_noland_Copy_2, function Trig_noland_Copy_2_Actions )
endfunction
function Trig_Gov1_Copy_Copy_3_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0327, Player(9)) == true ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0300, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0017, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0031, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0011, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0033, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0034, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0089, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0107, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0112, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0263, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0264, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0292, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0309, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0315, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0316, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0161, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0328, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0336, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0337, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0392, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0401, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0404, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0406, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
return true
endfunction
function Trig_Gov1_Copy_Copy_3_Copy_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncp2_0327, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hrdh_0329, GetOwningPlayer(GetTriggerUnit()), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_353" )
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_Gov3Leave_Copy_Copy_3_Copy )
endfunction
//===========================================================================
function InitTrig_Gov1_Copy_Copy_3_Copy takes nothing returns nothing
set gg_trg_Gov1_Copy_Copy_3_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Gov1_Copy_Copy_3_Copy, gg_rct_Rect_135 )
call TriggerAddCondition( gg_trg_Gov1_Copy_Copy_3_Copy, Condition( function Trig_Gov1_Copy_Copy_3_Copy_Conditions ) )
call TriggerAddAction( gg_trg_Gov1_Copy_Copy_3_Copy, function Trig_Gov1_Copy_Copy_3_Copy_Actions )
endfunction
function Trig_Gov2Payment_Copy_Copy_Copy_3_Copy_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_ncp2_0327) ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'hrdh' ) ) then
return false
endif
return true
endfunction
function Trig_Gov2Payment_Copy_Copy_Copy_3_Copy_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 150, GetOwningPlayer(gg_unit_ncp2_0327), PLAYER_STATE_RESOURCE_GOLD )
call SetUnitOwner( gg_unit_hrdh_0329, Player(9), true )
call IssuePointOrderLocBJ( gg_unit_hrdh_0329, "move", GetRectCenter(gg_rct_Rect_136) )
endfunction
//===========================================================================
function InitTrig_Gov2Payment_Copy_Copy_Copy_3_Copy takes nothing returns nothing
set gg_trg_Gov2Payment_Copy_Copy_Copy_3_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Gov2Payment_Copy_Copy_Copy_3_Copy, gg_rct_Rect_129 )
call TriggerAddCondition( gg_trg_Gov2Payment_Copy_Copy_Copy_3_Copy, Condition( function Trig_Gov2Payment_Copy_Copy_Copy_3_Copy_Conditions ) )
call TriggerAddAction( gg_trg_Gov2Payment_Copy_Copy_Copy_3_Copy, function Trig_Gov2Payment_Copy_Copy_Copy_3_Copy_Actions )
endfunction
function Trig_Untitled_Trigger_003_Copy_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'hrdh' ) ) then
return false
endif
return true
endfunction
function Trig_Untitled_Trigger_003_Copy_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hrdh_0329, GetOwningPlayer(gg_unit_ncp2_0327), true )
endfunction
//===========================================================================
function InitTrig_Untitled_Trigger_003_Copy takes nothing returns nothing
set gg_trg_Untitled_Trigger_003_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Untitled_Trigger_003_Copy, gg_rct_Rect_131 )
call TriggerAddCondition( gg_trg_Untitled_Trigger_003_Copy, Condition( function Trig_Untitled_Trigger_003_Copy_Conditions ) )
call TriggerAddAction( gg_trg_Untitled_Trigger_003_Copy, function Trig_Untitled_Trigger_003_Copy_Actions )
endfunction
function Trig_Gov3Leave_Copy_Copy_3_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0327, GetOwningPlayer(GetTriggerUnit())) == true ) ) then
return false
endif
return true
endfunction
function Trig_Gov3Leave_Copy_Copy_3_Copy_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncp2_0327, Player(9), true )
call SetUnitOwner( gg_unit_hrdh_0329, Player(9), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_354" )
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 5.00 )
call EnableTrigger( gg_trg_Gov1_Copy_Copy_3_Copy )
endfunction
//===========================================================================
function InitTrig_Gov3Leave_Copy_Copy_3_Copy takes nothing returns nothing
set gg_trg_Gov3Leave_Copy_Copy_3_Copy = CreateTrigger( )
call DisableTrigger( gg_trg_Gov3Leave_Copy_Copy_3_Copy )
call TriggerRegisterEnterRectSimple( gg_trg_Gov3Leave_Copy_Copy_3_Copy, gg_rct_Rect_135 )
call TriggerAddCondition( gg_trg_Gov3Leave_Copy_Copy_3_Copy, Condition( function Trig_Gov3Leave_Copy_Copy_3_Copy_Conditions ) )
call TriggerAddAction( gg_trg_Gov3Leave_Copy_Copy_3_Copy, function Trig_Gov3Leave_Copy_Copy_3_Copy_Actions )
endfunction
function Trig_Gov1_Copy_Copy_3_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0328, Player(9)) == true ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0300, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0017, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0031, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0011, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0033, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0034, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0089, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0107, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0112, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0263, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0264, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0292, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0309, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0315, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0316, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0161, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0327, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0336, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0337, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0392, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0401, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0404, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0406, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
return true
endfunction
function Trig_Gov1_Copy_Copy_3_Copy_Copy_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncp2_0328, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hrdh_0330, GetOwningPlayer(GetTriggerUnit()), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_357" )
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_Gov3Leave_Copy_Copy_3_Copy_Copy )
endfunction
//===========================================================================
function InitTrig_Gov1_Copy_Copy_3_Copy_Copy takes nothing returns nothing
set gg_trg_Gov1_Copy_Copy_3_Copy_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Gov1_Copy_Copy_3_Copy_Copy, gg_rct_Rect_137 )
call TriggerAddCondition( gg_trg_Gov1_Copy_Copy_3_Copy_Copy, Condition( function Trig_Gov1_Copy_Copy_3_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_Gov1_Copy_Copy_3_Copy_Copy, function Trig_Gov1_Copy_Copy_3_Copy_Copy_Actions )
endfunction
function Trig_Gov2Payment_Copy_Copy_Copy_3_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_ncp2_0328) ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'hrdh' ) ) then
return false
endif
return true
endfunction
function Trig_Gov2Payment_Copy_Copy_Copy_3_Copy_Copy_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 150, GetOwningPlayer(gg_unit_ncp2_0328), PLAYER_STATE_RESOURCE_GOLD )
call SetUnitOwner( gg_unit_hrdh_0330, Player(9), true )
call IssuePointOrderLocBJ( gg_unit_hrdh_0330, "move", GetRectCenter(gg_rct_Rect_138) )
endfunction
//===========================================================================
function InitTrig_Gov2Payment_Copy_Copy_Copy_3_Copy_Copy takes nothing returns nothing
set gg_trg_Gov2Payment_Copy_Copy_Copy_3_Copy_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Gov2Payment_Copy_Copy_Copy_3_Copy_Copy, gg_rct_Rect_129 )
call TriggerAddCondition( gg_trg_Gov2Payment_Copy_Copy_Copy_3_Copy_Copy, Condition( function Trig_Gov2Payment_Copy_Copy_Copy_3_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_Gov2Payment_Copy_Copy_Copy_3_Copy_Copy, function Trig_Gov2Payment_Copy_Copy_Copy_3_Copy_Copy_Actions )
endfunction
function Trig_Untitled_Trigger_003_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'hrdh' ) ) then
return false
endif
return true
endfunction
function Trig_Untitled_Trigger_003_Copy_Copy_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hrdh_0330, GetOwningPlayer(gg_unit_ncp2_0328), true )
endfunction
//===========================================================================
function InitTrig_Untitled_Trigger_003_Copy_Copy takes nothing returns nothing
set gg_trg_Untitled_Trigger_003_Copy_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Untitled_Trigger_003_Copy_Copy, gg_rct_Rect_131 )
call TriggerAddCondition( gg_trg_Untitled_Trigger_003_Copy_Copy, Condition( function Trig_Untitled_Trigger_003_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_Untitled_Trigger_003_Copy_Copy, function Trig_Untitled_Trigger_003_Copy_Copy_Actions )
endfunction
function Trig_Gov3Leave_Copy_Copy_3_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0328, GetOwningPlayer(GetTriggerUnit())) == true ) ) then
return false
endif
return true
endfunction
function Trig_Gov3Leave_Copy_Copy_3_Copy_Copy_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncp2_0328, Player(9), true )
call SetUnitOwner( gg_unit_hrdh_0330, Player(9), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_358" )
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 5.00 )
call EnableTrigger( gg_trg_Gov1_Copy_Copy_3_Copy_Copy )
endfunction
//===========================================================================
function InitTrig_Gov3Leave_Copy_Copy_3_Copy_Copy takes nothing returns nothing
set gg_trg_Gov3Leave_Copy_Copy_3_Copy_Copy = CreateTrigger( )
call DisableTrigger( gg_trg_Gov3Leave_Copy_Copy_3_Copy_Copy )
call TriggerRegisterEnterRectSimple( gg_trg_Gov3Leave_Copy_Copy_3_Copy_Copy, gg_rct_Rect_137 )
call TriggerAddCondition( gg_trg_Gov3Leave_Copy_Copy_3_Copy_Copy, Condition( function Trig_Gov3Leave_Copy_Copy_3_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_Gov3Leave_Copy_Copy_3_Copy_Copy, function Trig_Gov3Leave_Copy_Copy_3_Copy_Copy_Actions )
endfunction
function Trig_buy_Copy_2_Conditions takes nothing returns boolean
if ( not ( GetPlayerState(GetOwningPlayer(GetTriggerUnit()), PLAYER_STATE_RESOURCE_GOLD) >= 100 ) ) then
return false
endif
if ( not ( GetOwningPlayer(gg_unit_ncop_0109) == Player(9) ) ) then
return false
endif
return true
endfunction
function Trig_buy_Copy_2_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( -100, GetOwningPlayer(GetTriggerUnit()), PLAYER_STATE_RESOURCE_GOLD )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetTriggerUnit())) + " has bought a small house. to enter walk into the door." ) )
call SetUnitOwner( gg_unit_ncop_0109, GetOwningPlayer(GetTriggerUnit()), true )
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_sellhouse_Copy_2 )
call EnableTrigger( gg_trg_enter_Copy_4 )
endfunction
//===========================================================================
function InitTrig_buy_Copy_2 takes nothing returns nothing
set gg_trg_buy_Copy_2 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_buy_Copy_2, gg_rct_Rect_092 )
call TriggerAddCondition( gg_trg_buy_Copy_2, Condition( function Trig_buy_Copy_2_Conditions ) )
call TriggerAddAction( gg_trg_buy_Copy_2, function Trig_buy_Copy_2_Actions )
endfunction
function Trig_sellhouse_Copy_2_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0109, GetOwningPlayer(GetTriggerUnit())) == true ) ) then
return false
endif
return true
endfunction
function Trig_sellhouse_Copy_2_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncop_0109, Player(9), true )
call AdjustPlayerStateBJ( 100, GetOwningPlayer(GetTriggerUnit()), PLAYER_STATE_RESOURCE_GOLD )
call DisableTrigger( gg_trg_enter_Copy_4 )
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 3.00 )
call EnableTrigger( gg_trg_buy_Copy_2 )
endfunction
//===========================================================================
function InitTrig_sellhouse_Copy_2 takes nothing returns nothing
set gg_trg_sellhouse_Copy_2 = CreateTrigger( )
call DisableTrigger( gg_trg_sellhouse_Copy_2 )
call TriggerRegisterEnterRectSimple( gg_trg_sellhouse_Copy_2, gg_rct_Rect_092 )
call TriggerAddCondition( gg_trg_sellhouse_Copy_2, Condition( function Trig_sellhouse_Copy_2_Conditions ) )
call TriggerAddAction( gg_trg_sellhouse_Copy_2, function Trig_sellhouse_Copy_2_Actions )
endfunction
function Trig_lock_Copy_4_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0109, GetTriggerPlayer()) == true ) ) then
return false
endif
return true
endfunction
function Trig_lock_Copy_4_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_enter_Copy_4 )
endfunction
//===========================================================================
function InitTrig_lock_Copy_4 takes nothing returns nothing
set gg_trg_lock_Copy_4 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_4, Player(0), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_4, Player(1), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_4, Player(2), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_4, Player(3), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_4, Player(4), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_4, Player(5), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_4, Player(6), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_4, Player(7), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_4, Player(8), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_4, Player(11), "-lock", true )
call TriggerAddCondition( gg_trg_lock_Copy_4, Condition( function Trig_lock_Copy_4_Conditions ) )
call TriggerAddAction( gg_trg_lock_Copy_4, function Trig_lock_Copy_4_Actions )
endfunction
function Trig_lock_Copy_Copy_3_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0109, GetTriggerPlayer()) == true ) ) then
return false
endif
return true
endfunction
function Trig_lock_Copy_Copy_3_Actions takes nothing returns nothing
call EnableTrigger( gg_trg_enter_Copy_4 )
endfunction
//===========================================================================
function InitTrig_lock_Copy_Copy_3 takes nothing returns nothing
set gg_trg_lock_Copy_Copy_3 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_3, Player(0), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_3, Player(1), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_3, Player(2), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_3, Player(3), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_3, Player(4), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_3, Player(5), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_3, Player(6), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_3, Player(7), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_3, Player(8), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_3, Player(11), "-unlock", true )
call TriggerAddCondition( gg_trg_lock_Copy_Copy_3, Condition( function Trig_lock_Copy_Copy_3_Conditions ) )
call TriggerAddAction( gg_trg_lock_Copy_Copy_3, function Trig_lock_Copy_Copy_3_Actions )
endfunction
function Trig_enter_Copy_4_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Rect_094) )
call SetCameraBoundsToRectForPlayerBJ( GetOwningPlayer(GetTriggerUnit()), gg_rct_Rect_095 )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Rect_095), 0 )
endfunction
//===========================================================================
function InitTrig_enter_Copy_4 takes nothing returns nothing
set gg_trg_enter_Copy_4 = CreateTrigger( )
call DisableTrigger( gg_trg_enter_Copy_4 )
call TriggerRegisterEnterRectSimple( gg_trg_enter_Copy_4, gg_rct_Rect_093 )
call TriggerAddAction( gg_trg_enter_Copy_4, function Trig_enter_Copy_4_Actions )
endfunction
function Trig_enter_Copy_Copy_3_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Rect_097) )
call SetCameraBoundsToRectForPlayerBJ( GetOwningPlayer(GetTriggerUnit()), gg_rct_Rect_034 )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Rect_034), 0 )
endfunction
//===========================================================================
function InitTrig_enter_Copy_Copy_3 takes nothing returns nothing
set gg_trg_enter_Copy_Copy_3 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_enter_Copy_Copy_3, gg_rct_Rect_096 )
call TriggerAddAction( gg_trg_enter_Copy_Copy_3, function Trig_enter_Copy_Copy_3_Actions )
endfunction
function Trig_buy_Copy_Conditions takes nothing returns boolean
if ( not ( GetPlayerState(GetOwningPlayer(GetTriggerUnit()), PLAYER_STATE_RESOURCE_GOLD) >= 150 ) ) then
return false
endif
if ( not ( GetOwningPlayer(gg_unit_ncop_0022) == Player(9) ) ) then
return false
endif
return true
endfunction
function Trig_buy_Copy_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( -150, GetOwningPlayer(GetTriggerUnit()), PLAYER_STATE_RESOURCE_GOLD )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetTriggerUnit())) + " has bought a large house. to enter walk into the door." ) )
call SetUnitOwner( gg_unit_ncop_0022, GetOwningPlayer(GetTriggerUnit()), true )
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_sellhouse_Copy )
call EnableTrigger( gg_trg_enter_Copy_3 )
endfunction
//===========================================================================
function InitTrig_buy_Copy takes nothing returns nothing
set gg_trg_buy_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_buy_Copy, gg_rct_Rect_023 )
call TriggerAddCondition( gg_trg_buy_Copy, Condition( function Trig_buy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_buy_Copy, function Trig_buy_Copy_Actions )
endfunction
function Trig_sellhouse_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0022, GetOwningPlayer(GetTriggerUnit())) == true ) ) then
return false
endif
return true
endfunction
function Trig_sellhouse_Copy_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncop_0022, Player(9), true )
call AdjustPlayerStateBJ( 100, GetOwningPlayer(GetTriggerUnit()), PLAYER_STATE_RESOURCE_GOLD )
call DisableTrigger( gg_trg_enter_Copy_3 )
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 3.00 )
call EnableTrigger( gg_trg_buy_Copy )
endfunction
//===========================================================================
function InitTrig_sellhouse_Copy takes nothing returns nothing
set gg_trg_sellhouse_Copy = CreateTrigger( )
call DisableTrigger( gg_trg_sellhouse_Copy )
call TriggerRegisterEnterRectSimple( gg_trg_sellhouse_Copy, gg_rct_Rect_023 )
call TriggerAddCondition( gg_trg_sellhouse_Copy, Condition( function Trig_sellhouse_Copy_Conditions ) )
call TriggerAddAction( gg_trg_sellhouse_Copy, function Trig_sellhouse_Copy_Actions )
endfunction
function Trig_lock_Copy_3_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0022, GetTriggerPlayer()) == true ) ) then
return false
endif
return true
endfunction
function Trig_lock_Copy_3_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_enter_Copy_3 )
endfunction
//===========================================================================
function InitTrig_lock_Copy_3 takes nothing returns nothing
set gg_trg_lock_Copy_3 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_3, Player(0), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_3, Player(1), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_3, Player(2), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_3, Player(3), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_3, Player(4), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_3, Player(5), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_3, Player(6), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_3, Player(7), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_3, Player(8), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_3, Player(11), "-lock", true )
call TriggerAddCondition( gg_trg_lock_Copy_3, Condition( function Trig_lock_Copy_3_Conditions ) )
call TriggerAddAction( gg_trg_lock_Copy_3, function Trig_lock_Copy_3_Actions )
endfunction
function Trig_lock_Copy_Copy_2_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0022, GetTriggerPlayer()) == true ) ) then
return false
endif
return true
endfunction
function Trig_lock_Copy_Copy_2_Actions takes nothing returns nothing
call EnableTrigger( gg_trg_enter_Copy_3 )
endfunction
//===========================================================================
function InitTrig_lock_Copy_Copy_2 takes nothing returns nothing
set gg_trg_lock_Copy_Copy_2 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_2, Player(0), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_2, Player(1), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_2, Player(2), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_2, Player(3), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_2, Player(4), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_2, Player(5), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_2, Player(6), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_2, Player(7), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_2, Player(8), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_2, Player(11), "-unlock", true )
call TriggerAddCondition( gg_trg_lock_Copy_Copy_2, Condition( function Trig_lock_Copy_Copy_2_Conditions ) )
call TriggerAddAction( gg_trg_lock_Copy_Copy_2, function Trig_lock_Copy_Copy_2_Actions )
endfunction
function Trig_enter_Copy_3_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Rect_025) )
call SetCameraBoundsToRectForPlayerBJ( GetOwningPlayer(GetTriggerUnit()), gg_rct_Rect_037 )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Rect_037), 0 )
endfunction
//===========================================================================
function InitTrig_enter_Copy_3 takes nothing returns nothing
set gg_trg_enter_Copy_3 = CreateTrigger( )
call DisableTrigger( gg_trg_enter_Copy_3 )
call TriggerRegisterEnterRectSimple( gg_trg_enter_Copy_3, gg_rct_Rect_024 )
call TriggerAddAction( gg_trg_enter_Copy_3, function Trig_enter_Copy_3_Actions )
endfunction
function Trig_enter_Copy_Copy_2_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Rect_027) )
call SetCameraBoundsToRectForPlayerBJ( GetOwningPlayer(GetTriggerUnit()), gg_rct_Rect_034 )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Rect_034), 0 )
endfunction
//===========================================================================
function InitTrig_enter_Copy_Copy_2 takes nothing returns nothing
set gg_trg_enter_Copy_Copy_2 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_enter_Copy_Copy_2, gg_rct_Rect_026 )
call TriggerAddAction( gg_trg_enter_Copy_Copy_2, function Trig_enter_Copy_Copy_2_Actions )
endfunction
function Trig_buy_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( GetPlayerState(GetOwningPlayer(GetTriggerUnit()), PLAYER_STATE_RESOURCE_GOLD) >= 150 ) ) then
return false
endif
if ( not ( GetOwningPlayer(gg_unit_ncop_0023) == Player(9) ) ) then
return false
endif
return true
endfunction
function Trig_buy_Copy_Copy_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( -150, GetOwningPlayer(GetTriggerUnit()), PLAYER_STATE_RESOURCE_GOLD )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetTriggerUnit())) + " has bought a large house. to enter walk into the door." ) )
call SetUnitOwner( gg_unit_ncop_0023, GetOwningPlayer(GetTriggerUnit()), true )
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_sellhouse_Copy_Copy )
call EnableTrigger( gg_trg_enter_Copy_3_Copy )
endfunction
//===========================================================================
function InitTrig_buy_Copy_Copy takes nothing returns nothing
set gg_trg_buy_Copy_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_buy_Copy_Copy, gg_rct_Rect_028 )
call TriggerAddCondition( gg_trg_buy_Copy_Copy, Condition( function Trig_buy_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_buy_Copy_Copy, function Trig_buy_Copy_Copy_Actions )
endfunction
function Trig_sellhouse_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0023, GetOwningPlayer(GetTriggerUnit())) == true ) ) then
return false
endif
return true
endfunction
function Trig_sellhouse_Copy_Copy_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncop_0023, Player(9), true )
call AdjustPlayerStateBJ( 100, GetOwningPlayer(GetTriggerUnit()), PLAYER_STATE_RESOURCE_GOLD )
call DisableTrigger( gg_trg_enter_Copy_3_Copy )
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 3.00 )
call EnableTrigger( gg_trg_buy_Copy_Copy )
endfunction
//===========================================================================
function InitTrig_sellhouse_Copy_Copy takes nothing returns nothing
set gg_trg_sellhouse_Copy_Copy = CreateTrigger( )
call DisableTrigger( gg_trg_sellhouse_Copy_Copy )
call TriggerRegisterEnterRectSimple( gg_trg_sellhouse_Copy_Copy, gg_rct_Rect_028 )
call TriggerAddCondition( gg_trg_sellhouse_Copy_Copy, Condition( function Trig_sellhouse_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_sellhouse_Copy_Copy, function Trig_sellhouse_Copy_Copy_Actions )
endfunction
function Trig_lock_Copy_3_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0023, GetTriggerPlayer()) == true ) ) then
return false
endif
return true
endfunction
function Trig_lock_Copy_3_Copy_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_enter_Copy_3_Copy )
endfunction
//===========================================================================
function InitTrig_lock_Copy_3_Copy takes nothing returns nothing
set gg_trg_lock_Copy_3_Copy = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_3_Copy, Player(0), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_3_Copy, Player(1), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_3_Copy, Player(2), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_3_Copy, Player(3), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_3_Copy, Player(4), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_3_Copy, Player(5), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_3_Copy, Player(6), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_3_Copy, Player(7), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_3_Copy, Player(8), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_3_Copy, Player(11), "-lock", true )
call TriggerAddCondition( gg_trg_lock_Copy_3_Copy, Condition( function Trig_lock_Copy_3_Copy_Conditions ) )
call TriggerAddAction( gg_trg_lock_Copy_3_Copy, function Trig_lock_Copy_3_Copy_Actions )
endfunction
function Trig_lock_Copy_Copy_2_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0023, GetTriggerPlayer()) == true ) ) then
return false
endif
return true
endfunction
function Trig_lock_Copy_Copy_2_Copy_Actions takes nothing returns nothing
call EnableTrigger( gg_trg_enter_Copy_3_Copy )
endfunction
//===========================================================================
function InitTrig_lock_Copy_Copy_2_Copy takes nothing returns nothing
set gg_trg_lock_Copy_Copy_2_Copy = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_2_Copy, Player(0), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_2_Copy, Player(1), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_2_Copy, Player(2), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_2_Copy, Player(3), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_2_Copy, Player(4), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_2_Copy, Player(5), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_2_Copy, Player(6), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_2_Copy, Player(7), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_2_Copy, Player(8), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_2_Copy, Player(11), "-unlock", true )
call TriggerAddCondition( gg_trg_lock_Copy_Copy_2_Copy, Condition( function Trig_lock_Copy_Copy_2_Copy_Conditions ) )
call TriggerAddAction( gg_trg_lock_Copy_Copy_2_Copy, function Trig_lock_Copy_Copy_2_Copy_Actions )
endfunction
function Trig_enter_Copy_3_Copy_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Rect_030) )
call SetCameraBoundsToRectForPlayerBJ( GetOwningPlayer(GetTriggerUnit()), gg_rct_Rect_039 )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Rect_039), 0 )
endfunction
//===========================================================================
function InitTrig_enter_Copy_3_Copy takes nothing returns nothing
set gg_trg_enter_Copy_3_Copy = CreateTrigger( )
call DisableTrigger( gg_trg_enter_Copy_3_Copy )
call TriggerRegisterEnterRectSimple( gg_trg_enter_Copy_3_Copy, gg_rct_Rect_029 )
call TriggerAddAction( gg_trg_enter_Copy_3_Copy, function Trig_enter_Copy_3_Copy_Actions )
endfunction
function Trig_enter_Copy_Copy_2_Copy_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Rect_032) )
call SetCameraBoundsToRectForPlayerBJ( GetOwningPlayer(GetTriggerUnit()), gg_rct_Rect_034 )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Rect_034), 0 )
endfunction
//===========================================================================
function InitTrig_enter_Copy_Copy_2_Copy takes nothing returns nothing
set gg_trg_enter_Copy_Copy_2_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_enter_Copy_Copy_2_Copy, gg_rct_Rect_031 )
call TriggerAddAction( gg_trg_enter_Copy_Copy_2_Copy, function Trig_enter_Copy_Copy_2_Copy_Actions )
endfunction
function Trig_buy_Copy_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( GetPlayerState(GetOwningPlayer(GetTriggerUnit()), PLAYER_STATE_RESOURCE_GOLD) >= 150 ) ) then
return false
endif
if ( not ( GetOwningPlayer(gg_unit_ncop_0108) == Player(9) ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'H004' ) ) then
return false
endif
return true
endfunction
function Trig_buy_Copy_Copy_Copy_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( -150, GetOwningPlayer(GetTriggerUnit()), PLAYER_STATE_RESOURCE_GOLD )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetTriggerUnit())) + " has boughta trading post!" ) )
call SetUnitOwner( gg_unit_ncop_0108, GetOwningPlayer(GetTriggerUnit()), true )
set udg_landowner[4] = GetOwningPlayer(GetTriggerUnit())
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_sellhouse_Copy_Copy_Copy )
call EnableTrigger( gg_trg_enter_Copy_3_Copy_Copy )
endfunction
//===========================================================================
function InitTrig_buy_Copy_Copy_Copy takes nothing returns nothing
set gg_trg_buy_Copy_Copy_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_buy_Copy_Copy_Copy, gg_rct_Rect_085 )
call TriggerAddCondition( gg_trg_buy_Copy_Copy_Copy, Condition( function Trig_buy_Copy_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_buy_Copy_Copy_Copy, function Trig_buy_Copy_Copy_Copy_Actions )
endfunction
function Trig_sellhouse_Copy_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0108, GetOwningPlayer(GetTriggerUnit())) == true ) ) then
return false
endif
return true
endfunction
function Trig_sellhouse_Copy_Copy_Copy_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncop_0108, Player(9), true )
call AdjustPlayerStateBJ( 100, GetOwningPlayer(GetTriggerUnit()), PLAYER_STATE_RESOURCE_GOLD )
set udg_landowner[4] = Player(9)
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_buy_Copy_Copy_Copy )
call DisableTrigger( gg_trg_enter_Copy_3_Copy_Copy )
endfunction
//===========================================================================
function InitTrig_sellhouse_Copy_Copy_Copy takes nothing returns nothing
set gg_trg_sellhouse_Copy_Copy_Copy = CreateTrigger( )
call DisableTrigger( gg_trg_sellhouse_Copy_Copy_Copy )
call TriggerRegisterEnterRectSimple( gg_trg_sellhouse_Copy_Copy_Copy, gg_rct_Rect_085 )
call TriggerAddCondition( gg_trg_sellhouse_Copy_Copy_Copy, Condition( function Trig_sellhouse_Copy_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_sellhouse_Copy_Copy_Copy, function Trig_sellhouse_Copy_Copy_Copy_Actions )
endfunction
function Trig_lock_Copy_3_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0108, GetTriggerPlayer()) == true ) ) then
return false
endif
return true
endfunction
function Trig_lock_Copy_3_Copy_Copy_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_enter_Copy_3_Copy_Copy )
endfunction
//===========================================================================
function InitTrig_lock_Copy_3_Copy_Copy takes nothing returns nothing
set gg_trg_lock_Copy_3_Copy_Copy = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_3_Copy_Copy, Player(0), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_3_Copy_Copy, Player(1), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_3_Copy_Copy, Player(2), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_3_Copy_Copy, Player(3), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_3_Copy_Copy, Player(4), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_3_Copy_Copy, Player(5), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_3_Copy_Copy, Player(6), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_3_Copy_Copy, Player(7), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_3_Copy_Copy, Player(8), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_3_Copy_Copy, Player(11), "-lock", true )
call TriggerAddCondition( gg_trg_lock_Copy_3_Copy_Copy, Condition( function Trig_lock_Copy_3_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_lock_Copy_3_Copy_Copy, function Trig_lock_Copy_3_Copy_Copy_Actions )
endfunction
function Trig_lock_Copy_Copy_2_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0108, GetTriggerPlayer()) == true ) ) then
return false
endif
return true
endfunction
function Trig_lock_Copy_Copy_2_Copy_Copy_Actions takes nothing returns nothing
call EnableTrigger( gg_trg_enter_Copy_3_Copy_Copy )
endfunction
//===========================================================================
function InitTrig_lock_Copy_Copy_2_Copy_Copy takes nothing returns nothing
set gg_trg_lock_Copy_Copy_2_Copy_Copy = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_2_Copy_Copy, Player(0), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_2_Copy_Copy, Player(1), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_2_Copy_Copy, Player(2), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_2_Copy_Copy, Player(3), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_2_Copy_Copy, Player(4), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_2_Copy_Copy, Player(5), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_2_Copy_Copy, Player(6), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_2_Copy_Copy, Player(7), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_2_Copy_Copy, Player(8), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock_Copy_Copy_2_Copy_Copy, Player(11), "-unlock", true )
call TriggerAddCondition( gg_trg_lock_Copy_Copy_2_Copy_Copy, Condition( function Trig_lock_Copy_Copy_2_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_lock_Copy_Copy_2_Copy_Copy, function Trig_lock_Copy_Copy_2_Copy_Copy_Actions )
endfunction
function Trig_enter_Copy_3_Copy_Copy_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Rect_087) )
call SetCameraBoundsToRectForPlayerBJ( GetOwningPlayer(GetTriggerUnit()), gg_rct_Rect_088 )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Rect_088), 0 )
endfunction
//===========================================================================
function InitTrig_enter_Copy_3_Copy_Copy takes nothing returns nothing
set gg_trg_enter_Copy_3_Copy_Copy = CreateTrigger( )
call DisableTrigger( gg_trg_enter_Copy_3_Copy_Copy )
call TriggerRegisterEnterRectSimple( gg_trg_enter_Copy_3_Copy_Copy, gg_rct_Rect_086 )
call TriggerAddAction( gg_trg_enter_Copy_3_Copy_Copy, function Trig_enter_Copy_3_Copy_Copy_Actions )
endfunction
function Trig_enter_Copy_3_Copy_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) != udg_landowner[4] ) ) then
return false
endif
return true
endfunction
function Trig_enter_Copy_3_Copy_Copy_Copy_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Rect_091) )
endfunction
//===========================================================================
function InitTrig_enter_Copy_3_Copy_Copy_Copy takes nothing returns nothing
set gg_trg_enter_Copy_3_Copy_Copy_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_enter_Copy_3_Copy_Copy_Copy, gg_rct_Rect_084 )
call TriggerAddCondition( gg_trg_enter_Copy_3_Copy_Copy_Copy, Condition( function Trig_enter_Copy_3_Copy_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_enter_Copy_3_Copy_Copy_Copy, function Trig_enter_Copy_3_Copy_Copy_Copy_Actions )
endfunction
function Trig_enter_Copy_Copy_2_Copy_Copy_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Rect_090) )
call SetCameraBoundsToRectForPlayerBJ( GetOwningPlayer(GetTriggerUnit()), gg_rct_Rect_034 )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Rect_034), 0 )
endfunction
//===========================================================================
function InitTrig_enter_Copy_Copy_2_Copy_Copy takes nothing returns nothing
set gg_trg_enter_Copy_Copy_2_Copy_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_enter_Copy_Copy_2_Copy_Copy, gg_rct_Rect_089 )
call TriggerAddAction( gg_trg_enter_Copy_Copy_2_Copy_Copy, function Trig_enter_Copy_Copy_2_Copy_Copy_Actions )
endfunction
function Trig_menu_Actions takes nothing returns nothing
call DialogSetMessageBJ( udg_landmenu[1], "TRIGSTR_154" )
call DialogAddButtonBJ( udg_landmenu[1], "TRIGSTR_155" )
set udg_landmenubtns[1] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_landmenu[1], "TRIGSTR_156" )
set udg_landmenubtns[2] = GetLastCreatedButtonBJ()
endfunction
//===========================================================================
function InitTrig_menu takes nothing returns nothing
set gg_trg_menu = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_menu, 4.00 )
call TriggerAddAction( gg_trg_menu, function Trig_menu_Actions )
endfunction
function Trig_openland_Conditions takes nothing returns boolean
if ( not ( udg_landowner[1] == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_openland_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_ATg2_1676 )
endfunction
//===========================================================================
function InitTrig_openland takes nothing returns nothing
set gg_trg_openland = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_openland, Player(0), "-open land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland, Player(1), "-open land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland, Player(2), "-open land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland, Player(3), "-open land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland, Player(5), "-open land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland, Player(4), "-open land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland, Player(6), "-open land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland, Player(7), "-open land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland, Player(8), "-open land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland, Player(11), "-open land", true )
call TriggerAddCondition( gg_trg_openland, Condition( function Trig_openland_Conditions ) )
call TriggerAddAction( gg_trg_openland, function Trig_openland_Actions )
endfunction
function Trig_openland_Copy_Conditions takes nothing returns boolean
if ( not ( udg_landowner[1] == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_openland_Copy_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_CLOSE, gg_dest_ATg2_1676 )
endfunction
//===========================================================================
function InitTrig_openland_Copy takes nothing returns nothing
set gg_trg_openland_Copy = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy, Player(0), "-close land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy, Player(1), "-close land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy, Player(2), "-close land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy, Player(3), "-close land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy, Player(5), "-close land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy, Player(4), "-close land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy, Player(6), "-close land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy, Player(7), "-close land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy, Player(8), "-close land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy, Player(11), "-close land", true )
call TriggerAddCondition( gg_trg_openland_Copy, Condition( function Trig_openland_Copy_Conditions ) )
call TriggerAddAction( gg_trg_openland_Copy, function Trig_openland_Copy_Actions )
endfunction
function Trig_noland_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_landmenubtns[2] ) ) then
return false
endif
return true
endfunction
function Trig_noland_Actions takes nothing returns nothing
call DialogDisplayBJ( false, udg_landmenu[1], GetTriggerPlayer() )
endfunction
//===========================================================================
function InitTrig_noland takes nothing returns nothing
set gg_trg_noland = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_noland, udg_landmenu[1] )
call TriggerAddCondition( gg_trg_noland, Condition( function Trig_noland_Conditions ) )
call TriggerAddAction( gg_trg_noland, function Trig_noland_Actions )
endfunction
function Trig_menu_Copy_Actions takes nothing returns nothing
call DialogSetMessageBJ( udg_landmenu[2], "TRIGSTR_255" )
call DialogAddButtonBJ( udg_landmenu[2], "TRIGSTR_256" )
set udg_landmenubtns[3] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_landmenu[2], "TRIGSTR_257" )
set udg_landmenubtns[4] = GetLastCreatedButtonBJ()
endfunction
//===========================================================================
function InitTrig_menu_Copy takes nothing returns nothing
set gg_trg_menu_Copy = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_menu_Copy, 4.00 )
call TriggerAddAction( gg_trg_menu_Copy, function Trig_menu_Copy_Actions )
endfunction
function Trig_openland_Copy_2_Conditions takes nothing returns boolean
if ( not ( udg_landowner[2] == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_openland_Copy_2_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_ATg2_4040 )
endfunction
//===========================================================================
function InitTrig_openland_Copy_2 takes nothing returns nothing
set gg_trg_openland_Copy_2 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy_2, Player(0), "-open small land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy_2, Player(1), "-open small land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy_2, Player(2), "-open small land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy_2, Player(3), "-open small land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy_2, Player(5), "-open small land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy_2, Player(4), "-open small land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy_2, Player(6), "-open small land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy_2, Player(7), "-open small land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy_2, Player(8), "-open small land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy_2, Player(11), "-open small land", true )
call TriggerAddCondition( gg_trg_openland_Copy_2, Condition( function Trig_openland_Copy_2_Conditions ) )
call TriggerAddAction( gg_trg_openland_Copy_2, function Trig_openland_Copy_2_Actions )
endfunction
function Trig_openland_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( udg_landowner[2] == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_openland_Copy_Copy_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_CLOSE, gg_dest_ATg2_4040 )
endfunction
//===========================================================================
function InitTrig_openland_Copy_Copy takes nothing returns nothing
set gg_trg_openland_Copy_Copy = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy_Copy, Player(0), "-close small land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy_Copy, Player(1), "-close small land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy_Copy, Player(2), "-close small land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy_Copy, Player(3), "-close small land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy_Copy, Player(5), "-close small land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy_Copy, Player(4), "-close small land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy_Copy, Player(6), "-close small land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy_Copy, Player(7), "-close small land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy_Copy, Player(8), "-close small land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy_Copy, Player(11), "-close small land", true )
call TriggerAddCondition( gg_trg_openland_Copy_Copy, Condition( function Trig_openland_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_openland_Copy_Copy, function Trig_openland_Copy_Copy_Actions )
endfunction
function Trig_yesland_Copy_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_landmenubtns[3] ) ) then
return false
endif
if ( not ( GetPlayerState(GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD) >= 150 ) ) then
return false
endif
return true
endfunction
function Trig_yesland_Copy_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncop_0290, GetTriggerPlayer(), true )
set udg_landowner[2] = GetTriggerPlayer()
call AdjustPlayerStateBJ( -150, GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD )
call DisableTrigger( gg_trg_buyland_Copy )
endfunction
//===========================================================================
function InitTrig_yesland_Copy takes nothing returns nothing
set gg_trg_yesland_Copy = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_yesland_Copy, udg_landmenu[2] )
call TriggerAddCondition( gg_trg_yesland_Copy, Condition( function Trig_yesland_Copy_Conditions ) )
call TriggerAddAction( gg_trg_yesland_Copy, function Trig_yesland_Copy_Actions )
endfunction
function Trig_noland_Copy_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_landmenubtns[4] ) ) then
return false
endif
return true
endfunction
function Trig_noland_Copy_Actions takes nothing returns nothing
call DialogDisplayBJ( false, udg_landmenu[2], GetTriggerPlayer() )
endfunction
//===========================================================================
function InitTrig_noland_Copy takes nothing returns nothing
set gg_trg_noland_Copy = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_noland_Copy, udg_landmenu[2] )
call TriggerAddCondition( gg_trg_noland_Copy, Condition( function Trig_noland_Copy_Conditions ) )
call TriggerAddAction( gg_trg_noland_Copy, function Trig_noland_Copy_Actions )
endfunction
function Trig_buyland_Copy_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'H003' ) ) then
return false
endif
return true
endfunction
function Trig_buyland_Copy_Actions takes nothing returns nothing
call DialogDisplayBJ( true, udg_landmenu[2], GetOwningPlayer(GetTriggerUnit()) )
endfunction
//===========================================================================
function InitTrig_buyland_Copy takes nothing returns nothing
set gg_trg_buyland_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_buyland_Copy, gg_rct_Middle_Land )
call TriggerAddCondition( gg_trg_buyland_Copy, Condition( function Trig_buyland_Copy_Conditions ) )
call TriggerAddAction( gg_trg_buyland_Copy, function Trig_buyland_Copy_Actions )
endfunction
function Trig_menu_Copy_Copy_Actions takes nothing returns nothing
call DialogSetMessageBJ( udg_landmenu[3], "TRIGSTR_258" )
call DialogAddButtonBJ( udg_landmenu[3], "TRIGSTR_259" )
set udg_landmenubtns[5] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_landmenu[3], "TRIGSTR_260" )
set udg_landmenubtns[6] = GetLastCreatedButtonBJ()
endfunction
//===========================================================================
function InitTrig_menu_Copy_Copy takes nothing returns nothing
set gg_trg_menu_Copy_Copy = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_menu_Copy_Copy, 4.00 )
call TriggerAddAction( gg_trg_menu_Copy_Copy, function Trig_menu_Copy_Copy_Actions )
endfunction
function Trig_openland_Copy_2_Copy_Conditions takes nothing returns boolean
if ( not ( udg_landowner[3] == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_openland_Copy_2_Copy_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_ATg1_4607 )
endfunction
//===========================================================================
function InitTrig_openland_Copy_2_Copy takes nothing returns nothing
set gg_trg_openland_Copy_2_Copy = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy_2_Copy, Player(0), "-open large land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy_2_Copy, Player(1), "-open large land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy_2_Copy, Player(2), "-open large land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy_2_Copy, Player(3), "-open large land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy_2_Copy, Player(5), "-open large land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy_2_Copy, Player(4), "-open large land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy_2_Copy, Player(6), "-open large land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy_2_Copy, Player(7), "-open large land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy_2_Copy, Player(8), "-open large land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy_2_Copy, Player(11), "-open large land", true )
call TriggerAddCondition( gg_trg_openland_Copy_2_Copy, Condition( function Trig_openland_Copy_2_Copy_Conditions ) )
call TriggerAddAction( gg_trg_openland_Copy_2_Copy, function Trig_openland_Copy_2_Copy_Actions )
endfunction
function Trig_openland_Copy_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( udg_landowner[3] == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_openland_Copy_Copy_Copy_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_CLOSE, gg_dest_ATg1_4607 )
endfunction
//===========================================================================
function InitTrig_openland_Copy_Copy_Copy takes nothing returns nothing
set gg_trg_openland_Copy_Copy_Copy = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy_Copy_Copy, Player(0), "-close large land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy_Copy_Copy, Player(1), "-close large land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy_Copy_Copy, Player(2), "-close large land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy_Copy_Copy, Player(3), "-close large land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy_Copy_Copy, Player(5), "-close large land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy_Copy_Copy, Player(4), "-close large land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy_Copy_Copy, Player(6), "-close large land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy_Copy_Copy, Player(7), "-close large land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy_Copy_Copy, Player(8), "-close large land", true )
call TriggerRegisterPlayerChatEvent( gg_trg_openland_Copy_Copy_Copy, Player(11), "-close large land", true )
call TriggerAddCondition( gg_trg_openland_Copy_Copy_Copy, Condition( function Trig_openland_Copy_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_openland_Copy_Copy_Copy, function Trig_openland_Copy_Copy_Copy_Actions )
endfunction
function Trig_yesland_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_landmenubtns[5] ) ) then
return false
endif
if ( not ( GetPlayerState(GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD) >= 300 ) ) then
return false
endif
return true
endfunction
function Trig_yesland_Copy_Copy_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncop_0291, GetTriggerPlayer(), true )
set udg_landowner[3] = GetTriggerPlayer()
call AdjustPlayerStateBJ( -300, GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD )
call DisableTrigger( gg_trg_buyland_Copy_Copy )
endfunction
//===========================================================================
function InitTrig_yesland_Copy_Copy takes nothing returns nothing
set gg_trg_yesland_Copy_Copy = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_yesland_Copy_Copy, udg_landmenu[3] )
call TriggerAddCondition( gg_trg_yesland_Copy_Copy, Condition( function Trig_yesland_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_yesland_Copy_Copy, function Trig_yesland_Copy_Copy_Actions )
endfunction
function Trig_noland_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_landmenubtns[6] ) ) then
return false
endif
return true
endfunction
function Trig_noland_Copy_Copy_Actions takes nothing returns nothing
call DialogDisplayBJ( false, udg_landmenu[3], GetTriggerPlayer() )
endfunction
//===========================================================================
function InitTrig_noland_Copy_Copy takes nothing returns nothing
set gg_trg_noland_Copy_Copy = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_noland_Copy_Copy, udg_landmenu[3] )
call TriggerAddCondition( gg_trg_noland_Copy_Copy, Condition( function Trig_noland_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_noland_Copy_Copy, function Trig_noland_Copy_Copy_Actions )
endfunction
function Trig_buyland_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'H003' ) ) then
return false
endif
return true
endfunction
function Trig_buyland_Copy_Copy_Actions takes nothing returns nothing
call DialogDisplayBJ( true, udg_landmenu[3], GetOwningPlayer(GetTriggerUnit()) )
endfunction
//===========================================================================
function InitTrig_buyland_Copy_Copy takes nothing returns nothing
set gg_trg_buyland_Copy_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_buyland_Copy_Copy, gg_rct_Bottom_Land )
call TriggerAddCondition( gg_trg_buyland_Copy_Copy, Condition( function Trig_buyland_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_buyland_Copy_Copy, function Trig_buyland_Copy_Copy_Actions )
endfunction
function Trig_Gov1_Copy_Copy_2_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0107, Player(9)) == true ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0017, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0031, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0011, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0033, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0034, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0089, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0112, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0263, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0264, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0292, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0300, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0309, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0315, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0316, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0161, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0327, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0328, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0336, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0337, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0392, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0401, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0404, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0406, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
return true
endfunction
function Trig_Gov1_Copy_Copy_2_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_h002_0094, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_ncp2_0107, GetOwningPlayer(GetTriggerUnit()), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_157" )
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_Gov3Leave_Copy_Copy_2 )
endfunction
//===========================================================================
function InitTrig_Gov1_Copy_Copy_2 takes nothing returns nothing
set gg_trg_Gov1_Copy_Copy_2 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Gov1_Copy_Copy_2, gg_rct_sildier2 )
call TriggerAddCondition( gg_trg_Gov1_Copy_Copy_2, Condition( function Trig_Gov1_Copy_Copy_2_Conditions ) )
call TriggerAddAction( gg_trg_Gov1_Copy_Copy_2, function Trig_Gov1_Copy_Copy_2_Actions )
endfunction
function Trig_Gov2Payment_Copy_Copy_3_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_h002_0094, Player(PLAYER_NEUTRAL_PASSIVE)) == false ) ) then
return false
endif
return true
endfunction
function Trig_Gov2Payment_Copy_Copy_3_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 15, GetOwningPlayer(gg_unit_h002_0094), PLAYER_STATE_RESOURCE_GOLD )
endfunction
//===========================================================================
function InitTrig_Gov2Payment_Copy_Copy_3 takes nothing returns nothing
set gg_trg_Gov2Payment_Copy_Copy_3 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Gov2Payment_Copy_Copy_3, 20.00 )
call TriggerAddCondition( gg_trg_Gov2Payment_Copy_Copy_3, Condition( function Trig_Gov2Payment_Copy_Copy_3_Conditions ) )
call TriggerAddAction( gg_trg_Gov2Payment_Copy_Copy_3, function Trig_Gov2Payment_Copy_Copy_3_Actions )
endfunction
function Trig_Gov2Payment_Copy_Copy_Copy_2_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetKillingUnitBJ()) == GetOwningPlayer(gg_unit_h002_0094) ) ) then
return false
endif
return true
endfunction
function Trig_Gov2Payment_Copy_Copy_Copy_2_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 5, GetOwningPlayer(gg_unit_h002_0094), PLAYER_STATE_RESOURCE_GOLD )
endfunction
//===========================================================================
function InitTrig_Gov2Payment_Copy_Copy_Copy_2 takes nothing returns nothing
set gg_trg_Gov2Payment_Copy_Copy_Copy_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Gov2Payment_Copy_Copy_Copy_2, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Gov2Payment_Copy_Copy_Copy_2, Condition( function Trig_Gov2Payment_Copy_Copy_Copy_2_Conditions ) )
call TriggerAddAction( gg_trg_Gov2Payment_Copy_Copy_Copy_2, function Trig_Gov2Payment_Copy_Copy_Copy_2_Actions )
endfunction
function Trig_Gov3Leave_Copy_Copy_2_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0107, GetOwningPlayer(GetTriggerUnit())) == true ) ) then
return false
endif
return true
endfunction
function Trig_Gov3Leave_Copy_Copy_2_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncp2_0107, Player(9), true )
call SetUnitOwner( gg_unit_h002_0094, Player(9), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_158" )
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 5.00 )
call EnableTrigger( gg_trg_Gov1_Copy_Copy_2 )
endfunction
//===========================================================================
function InitTrig_Gov3Leave_Copy_Copy_2 takes nothing returns nothing
set gg_trg_Gov3Leave_Copy_Copy_2 = CreateTrigger( )
call DisableTrigger( gg_trg_Gov3Leave_Copy_Copy_2 )
call TriggerRegisterEnterRectSimple( gg_trg_Gov3Leave_Copy_Copy_2, gg_rct_sildier2 )
call TriggerAddCondition( gg_trg_Gov3Leave_Copy_Copy_2, Condition( function Trig_Gov3Leave_Copy_Copy_2_Conditions ) )
call TriggerAddAction( gg_trg_Gov3Leave_Copy_Copy_2, function Trig_Gov3Leave_Copy_Copy_2_Actions )
endfunction
function Trig_Gov1_Copy_Copy_2_Copy_2_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0161, Player(9)) == true ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0107, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0017, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0031, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0011, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0033, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0034, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0089, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0112, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0263, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0264, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0292, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0300, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0309, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0315, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0316, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0327, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0328, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0336, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0337, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0392, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0401, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0404, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0406, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Gov1_Copy_Copy_2_Copy_2_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncp2_0161, GetOwningPlayer(GetTriggerUnit()), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_331" )
call UnitAddAbilityBJ( 'A00C', GetTriggerUnit() )
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_Gov3Leave_Copy_Copy_2_Copy_2 )
endfunction
//===========================================================================
function InitTrig_Gov1_Copy_Copy_2_Copy_2 takes nothing returns nothing
set gg_trg_Gov1_Copy_Copy_2_Copy_2 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Gov1_Copy_Copy_2_Copy_2, gg_rct_Rect_070 )
call TriggerAddCondition( gg_trg_Gov1_Copy_Copy_2_Copy_2, Condition( function Trig_Gov1_Copy_Copy_2_Copy_2_Conditions ) )
call TriggerAddAction( gg_trg_Gov1_Copy_Copy_2_Copy_2, function Trig_Gov1_Copy_Copy_2_Copy_2_Actions )
endfunction
function Trig_Gov2Payment_Copy_Copy_3_Copy_Func002C takes nothing returns boolean
if ( ( IsUnitInGroup(GroupPickRandomUnit(GetUnitsOfPlayerAll(GetOwningPlayer(gg_unit_ncp2_0161))), GetUnitsInRectAll(gg_rct_View_City)) == true ) ) then
return true
endif
if ( ( IsUnitInGroup(GroupPickRandomUnit(GetUnitsOfPlayerAll(GetOwningPlayer(gg_unit_ncp2_0161))), GetUnitsInRectAll(gg_rct_Rect_129)) == true ) ) then
return true
endif
if ( ( IsUnitInGroup(GroupPickRandomUnit(GetUnitsOfPlayerAll(GetOwningPlayer(gg_unit_ncp2_0161))), GetUnitsInRectAll(gg_rct_Rect_130)) == true ) ) then
return true
endif
if ( ( IsUnitInGroup(GroupPickRandomUnit(GetUnitsOfPlayerAll(GetOwningPlayer(gg_unit_ncp2_0161))), GetUnitsInRectAll(gg_rct_Rect_131)) == true ) ) then
return true
endif
return false
endfunction
function Trig_Gov2Payment_Copy_Copy_3_Copy_Conditions takes nothing returns boolean
if ( not Trig_Gov2Payment_Copy_Copy_3_Copy_Func002C() ) then
return false
endif
return true
endfunction
function Trig_Gov2Payment_Copy_Copy_3_Copy_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 15, GetOwningPlayer(gg_unit_ncp2_0161), PLAYER_STATE_RESOURCE_GOLD )
endfunction
//===========================================================================
function InitTrig_Gov2Payment_Copy_Copy_3_Copy takes nothing returns nothing
set gg_trg_Gov2Payment_Copy_Copy_3_Copy = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Gov2Payment_Copy_Copy_3_Copy, 20.00 )
call TriggerAddCondition( gg_trg_Gov2Payment_Copy_Copy_3_Copy, Condition( function Trig_Gov2Payment_Copy_Copy_3_Copy_Conditions ) )
call TriggerAddAction( gg_trg_Gov2Payment_Copy_Copy_3_Copy, function Trig_Gov2Payment_Copy_Copy_3_Copy_Actions )
endfunction
function Trig_Gov2Payment_Copy_Copy_Copy_2_Copy_2_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetKillingUnitBJ()) == GetOwningPlayer(gg_unit_ncp2_0161) ) ) then
return false
endif
return true
endfunction
function Trig_Gov2Payment_Copy_Copy_Copy_2_Copy_2_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 3, GetOwningPlayer(GetTriggerUnit()), PLAYER_STATE_RESOURCE_GOLD )
endfunction
//===========================================================================
function InitTrig_Gov2Payment_Copy_Copy_Copy_2_Copy_2 takes nothing returns nothing
set gg_trg_Gov2Payment_Copy_Copy_Copy_2_Copy_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Gov2Payment_Copy_Copy_Copy_2_Copy_2, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Gov2Payment_Copy_Copy_Copy_2_Copy_2, Condition( function Trig_Gov2Payment_Copy_Copy_Copy_2_Copy_2_Conditions ) )
call TriggerAddAction( gg_trg_Gov2Payment_Copy_Copy_Copy_2_Copy_2, function Trig_Gov2Payment_Copy_Copy_Copy_2_Copy_2_Actions )
endfunction
function Trig_Gov3Leave_Copy_Copy_2_Copy_2_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0161, GetOwningPlayer(GetTriggerUnit())) == true ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Gov3Leave_Copy_Copy_2_Copy_2_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncp2_0161, Player(9), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_332" )
call UnitRemoveAbilityBJ( 'A00C', GetTriggerUnit() )
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 5.00 )
call EnableTrigger( gg_trg_Gov1_Copy_Copy_2_Copy_2 )
endfunction
//===========================================================================
function InitTrig_Gov3Leave_Copy_Copy_2_Copy_2 takes nothing returns nothing
set gg_trg_Gov3Leave_Copy_Copy_2_Copy_2 = CreateTrigger( )
call DisableTrigger( gg_trg_Gov3Leave_Copy_Copy_2_Copy_2 )
call TriggerRegisterEnterRectSimple( gg_trg_Gov3Leave_Copy_Copy_2_Copy_2, gg_rct_Rect_070 )
call TriggerAddCondition( gg_trg_Gov3Leave_Copy_Copy_2_Copy_2, Condition( function Trig_Gov3Leave_Copy_Copy_2_Copy_2_Conditions ) )
call TriggerAddAction( gg_trg_Gov3Leave_Copy_Copy_2_Copy_2, function Trig_Gov3Leave_Copy_Copy_2_Copy_2_Actions )
endfunction
function Trig_Gov1_Copy_Copy_2_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0309, Player(9)) == true ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0107, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0017, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0031, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0011, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0033, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0034, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0089, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0112, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0263, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0264, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0292, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0300, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0315, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0316, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0161, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0327, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0328, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0336, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0337, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0392, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0401, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0404, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0406, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Gov1_Copy_Copy_2_Copy_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncp2_0309, GetOwningPlayer(GetTriggerUnit()), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_300" )
call UnitAddAbilityBJ( 'AHtb', GetTriggerUnit() )
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_Gov3Leave_Copy_Copy_2_Copy )
endfunction
//===========================================================================
function InitTrig_Gov1_Copy_Copy_2_Copy takes nothing returns nothing
set gg_trg_Gov1_Copy_Copy_2_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Gov1_Copy_Copy_2_Copy, gg_rct_Rect_110 )
call TriggerAddCondition( gg_trg_Gov1_Copy_Copy_2_Copy, Condition( function Trig_Gov1_Copy_Copy_2_Copy_Conditions ) )
call TriggerAddAction( gg_trg_Gov1_Copy_Copy_2_Copy, function Trig_Gov1_Copy_Copy_2_Copy_Actions )
endfunction
function Trig_Gov2Payment_Copy_Copy_Copy_2_Copy_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetKillingUnitBJ()) == GetOwningPlayer(gg_unit_ncp2_0309) ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'nzom' ) ) then
return false
endif
return true
endfunction
function Trig_Gov2Payment_Copy_Copy_Copy_2_Copy_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 15, GetOwningPlayer(gg_unit_ncp2_0309), PLAYER_STATE_RESOURCE_GOLD )
set udg_dead = ( udg_dead + 1 )
endfunction
//===========================================================================
function InitTrig_Gov2Payment_Copy_Copy_Copy_2_Copy takes nothing returns nothing
set gg_trg_Gov2Payment_Copy_Copy_Copy_2_Copy = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Gov2Payment_Copy_Copy_Copy_2_Copy, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Gov2Payment_Copy_Copy_Copy_2_Copy, Condition( function Trig_Gov2Payment_Copy_Copy_Copy_2_Copy_Conditions ) )
call TriggerAddAction( gg_trg_Gov2Payment_Copy_Copy_Copy_2_Copy, function Trig_Gov2Payment_Copy_Copy_Copy_2_Copy_Actions )
endfunction
function Trig_Gov3Leave_Copy_Copy_2_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0309, GetOwningPlayer(GetTriggerUnit())) == true ) ) then
return false
endif
return true
endfunction
function Trig_Gov3Leave_Copy_Copy_2_Copy_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncp2_0309, Player(9), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_301" )
call UnitRemoveAbilityBJ( 'AHtb', GetTriggerUnit() )
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 5.00 )
call EnableTrigger( gg_trg_Gov1_Copy_Copy_2_Copy )
endfunction
//===========================================================================
function InitTrig_Gov3Leave_Copy_Copy_2_Copy takes nothing returns nothing
set gg_trg_Gov3Leave_Copy_Copy_2_Copy = CreateTrigger( )
call DisableTrigger( gg_trg_Gov3Leave_Copy_Copy_2_Copy )
call TriggerRegisterEnterRectSimple( gg_trg_Gov3Leave_Copy_Copy_2_Copy, gg_rct_Rect_110 )
call TriggerAddCondition( gg_trg_Gov3Leave_Copy_Copy_2_Copy, Condition( function Trig_Gov3Leave_Copy_Copy_2_Copy_Conditions ) )
call TriggerAddAction( gg_trg_Gov3Leave_Copy_Copy_2_Copy, function Trig_Gov3Leave_Copy_Copy_2_Copy_Actions )
endfunction
function Trig_revive_dead_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'nzom' ) ) then
return false
endif
return true
endfunction
function Trig_revive_dead_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'nzom', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Rect_134), bj_UNIT_FACING )
endfunction
//===========================================================================
function InitTrig_revive_dead takes nothing returns nothing
set gg_trg_revive_dead = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_revive_dead, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_revive_dead, Condition( function Trig_revive_dead_Conditions ) )
call TriggerAddAction( gg_trg_revive_dead, function Trig_revive_dead_Actions )
endfunction
function Trig_the_back_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) != udg_landowner[5] ) ) then
return false
endif
return true
endfunction
function Trig_the_back_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Rect_121) )
endfunction
//===========================================================================
function InitTrig_the_back takes nothing returns nothing
set gg_trg_the_back = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_the_back, gg_rct_Rect_120 )
call TriggerAddCondition( gg_trg_the_back, Condition( function Trig_the_back_Conditions ) )
call TriggerAddAction( gg_trg_the_back, function Trig_the_back_Actions )
endfunction
function Trig_lock6_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0315, GetTriggerPlayer()) == true ) ) then
return false
endif
return true
endfunction
function Trig_lock6_Actions takes nothing returns nothing
call EnableTrigger( gg_trg_enter7 )
endfunction
//===========================================================================
function InitTrig_lock6 takes nothing returns nothing
set gg_trg_lock6 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_lock6, Player(0), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock6, Player(1), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock6, Player(2), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock6, Player(3), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock6, Player(4), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock6, Player(5), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock6, Player(6), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock6, Player(7), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock6, Player(8), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock6, Player(11), "-unlock", true )
call TriggerAddCondition( gg_trg_lock6, Condition( function Trig_lock6_Conditions ) )
call TriggerAddAction( gg_trg_lock6, function Trig_lock6_Actions )
endfunction
function Trig_lock7_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0315, GetTriggerPlayer()) == true ) ) then
return false
endif
return true
endfunction
function Trig_lock7_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_enter7 )
endfunction
//===========================================================================
function InitTrig_lock7 takes nothing returns nothing
set gg_trg_lock7 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_lock7, Player(0), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock7, Player(1), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock7, Player(2), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock7, Player(3), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock7, Player(4), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock7, Player(5), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock7, Player(6), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock7, Player(7), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock7, Player(8), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock7, Player(11), "-lock", true )
call TriggerAddCondition( gg_trg_lock7, Condition( function Trig_lock7_Conditions ) )
call TriggerAddAction( gg_trg_lock7, function Trig_lock7_Actions )
endfunction
function Trig_enter6_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Rect_119) )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Rect_119), 0 )
endfunction
//===========================================================================
function InitTrig_enter6 takes nothing returns nothing
set gg_trg_enter6 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_enter6, gg_rct_Rect_118 )
call TriggerAddAction( gg_trg_enter6, function Trig_enter6_Actions )
endfunction
function Trig_enter7_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Rect_117) )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Rect_117), 0 )
endfunction
//===========================================================================
function InitTrig_enter7 takes nothing returns nothing
set gg_trg_enter7 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_enter7, gg_rct_Rect_116 )
call TriggerAddAction( gg_trg_enter7, function Trig_enter7_Actions )
endfunction
function Trig_injoin_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0315, Player(9)) == true ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0309, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0107, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0017, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0031, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0011, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0033, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0034, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0089, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0112, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0263, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0264, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0292, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0300, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0316, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0161, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0327, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0328, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0336, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0337, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0392, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0401, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0404, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0406, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
return true
endfunction
function Trig_injoin_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncp2_0315, GetOwningPlayer(GetTriggerUnit()), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_309" )
set udg_landowner[5] = GetOwningPlayer(GetTriggerUnit())
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_inleave )
endfunction
//===========================================================================
function InitTrig_injoin takes nothing returns nothing
set gg_trg_injoin = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_injoin, gg_rct_Rect_113 )
call TriggerAddCondition( gg_trg_injoin, Condition( function Trig_injoin_Conditions ) )
call TriggerAddAction( gg_trg_injoin, function Trig_injoin_Actions )
endfunction
function Trig_inn_pay_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0315, Player(9)) == false ) ) then
return false
endif
return true
endfunction
function Trig_inn_pay_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 6, GetOwningPlayer(gg_unit_ncp2_0315), PLAYER_STATE_RESOURCE_GOLD )
endfunction
//===========================================================================
function InitTrig_inn_pay takes nothing returns nothing
set gg_trg_inn_pay = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_inn_pay, 15.00 )
call TriggerAddCondition( gg_trg_inn_pay, Condition( function Trig_inn_pay_Conditions ) )
call TriggerAddAction( gg_trg_inn_pay, function Trig_inn_pay_Actions )
endfunction
function Trig_inleave_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0315, GetOwningPlayer(GetTriggerUnit())) == true ) ) then
return false
endif
return true
endfunction
function Trig_inleave_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncp2_0315, Player(9), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_310" )
set udg_landowner[5] = Player(9)
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 5.00 )
call EnableTrigger( gg_trg_injoin )
endfunction
//===========================================================================
function InitTrig_inleave takes nothing returns nothing
set gg_trg_inleave = CreateTrigger( )
call DisableTrigger( gg_trg_inleave )
call TriggerRegisterEnterRectSimple( gg_trg_inleave, gg_rct_Rect_113 )
call TriggerAddCondition( gg_trg_inleave, Condition( function Trig_inleave_Conditions ) )
call TriggerAddAction( gg_trg_inleave, function Trig_inleave_Actions )
endfunction
function Trig_inroom_pay_Func001C takes nothing returns boolean
if ( not ( GetPlayerState(GetOwningPlayer(GetTriggerUnit()), PLAYER_STATE_RESOURCE_GOLD) >= 50 ) ) then
return false
endif
return true
endfunction
function Trig_inroom_pay_Actions takes nothing returns nothing
if ( Trig_inroom_pay_Func001C() ) then
call AdjustPlayerStateBJ( -50, GetOwningPlayer(GetTriggerUnit()), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 50, GetOwningPlayer(gg_unit_ncp2_0315), PLAYER_STATE_RESOURCE_GOLD )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUTIN, 10.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_311" )
call SetUnitLifePercentBJ( GetTriggerUnit(), 100 )
call SetUnitManaPercentBJ( GetTriggerUnit(), 100 )
else
call DisplayTimedTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, 30, "TRIGSTR_313" )
endif
endfunction
//===========================================================================
function InitTrig_inroom_pay takes nothing returns nothing
set gg_trg_inroom_pay = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_inroom_pay, gg_rct_Rect_114 )
call TriggerAddAction( gg_trg_inroom_pay, function Trig_inroom_pay_Actions )
endfunction
function Trig_inroom_pay_Copy_Func001C takes nothing returns boolean
if ( not ( GetPlayerState(GetOwningPlayer(GetTriggerUnit()), PLAYER_STATE_RESOURCE_GOLD) >= 50 ) ) then
return false
endif
return true
endfunction
function Trig_inroom_pay_Copy_Actions takes nothing returns nothing
if ( Trig_inroom_pay_Copy_Func001C() ) then
call AdjustPlayerStateBJ( -50, GetOwningPlayer(GetTriggerUnit()), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 50, GetOwningPlayer(gg_unit_ncp2_0315), PLAYER_STATE_RESOURCE_GOLD )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUTIN, 10.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_315" )
call SetUnitLifePercentBJ( GetTriggerUnit(), 100 )
call SetUnitManaPercentBJ( GetTriggerUnit(), 100 )
else
call DisplayTimedTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, 30, "TRIGSTR_314" )
endif
endfunction
//===========================================================================
function InitTrig_inroom_pay_Copy takes nothing returns nothing
set gg_trg_inroom_pay_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_inroom_pay_Copy, gg_rct_Rect_115 )
call TriggerAddAction( gg_trg_inroom_pay_Copy, function Trig_inroom_pay_Copy_Actions )
endfunction
function Trig_the_back_Copy_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) != udg_landowner[6] ) ) then
return false
endif
return true
endfunction
function Trig_the_back_Copy_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Rect_123) )
endfunction
//===========================================================================
function InitTrig_the_back_Copy takes nothing returns nothing
set gg_trg_the_back_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_the_back_Copy, gg_rct_Rect_122 )
call TriggerAddCondition( gg_trg_the_back_Copy, Condition( function Trig_the_back_Copy_Conditions ) )
call TriggerAddAction( gg_trg_the_back_Copy, function Trig_the_back_Copy_Actions )
endfunction
function Trig_lock6_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0316, GetTriggerPlayer()) == true ) ) then
return false
endif
return true
endfunction
function Trig_lock6_Copy_Actions takes nothing returns nothing
call EnableTrigger( gg_trg_enter7_Copy )
endfunction
//===========================================================================
function InitTrig_lock6_Copy takes nothing returns nothing
set gg_trg_lock6_Copy = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_lock6_Copy, Player(0), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock6_Copy, Player(1), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock6_Copy, Player(2), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock6_Copy, Player(3), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock6_Copy, Player(4), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock6_Copy, Player(5), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock6_Copy, Player(6), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock6_Copy, Player(7), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock6_Copy, Player(8), "-unlock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock6_Copy, Player(11), "-unlock", true )
call TriggerAddCondition( gg_trg_lock6_Copy, Condition( function Trig_lock6_Copy_Conditions ) )
call TriggerAddAction( gg_trg_lock6_Copy, function Trig_lock6_Copy_Actions )
endfunction
function Trig_lock7_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0316, GetTriggerPlayer()) == true ) ) then
return false
endif
return true
endfunction
function Trig_lock7_Copy_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_enter7_Copy )
endfunction
//===========================================================================
function InitTrig_lock7_Copy takes nothing returns nothing
set gg_trg_lock7_Copy = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_lock7_Copy, Player(0), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock7_Copy, Player(1), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock7_Copy, Player(2), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock7_Copy, Player(3), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock7_Copy, Player(4), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock7_Copy, Player(5), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock7_Copy, Player(6), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock7_Copy, Player(7), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock7_Copy, Player(8), "-lock", true )
call TriggerRegisterPlayerChatEvent( gg_trg_lock7_Copy, Player(11), "-lock", true )
call TriggerAddCondition( gg_trg_lock7_Copy, Condition( function Trig_lock7_Copy_Conditions ) )
call TriggerAddAction( gg_trg_lock7_Copy, function Trig_lock7_Copy_Actions )
endfunction
function Trig_enter6_Copy_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Rect_125) )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Rect_125), 0 )
endfunction
//===========================================================================
function InitTrig_enter6_Copy takes nothing returns nothing
set gg_trg_enter6_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_enter6_Copy, gg_rct_Rect_124 )
call TriggerAddAction( gg_trg_enter6_Copy, function Trig_enter6_Copy_Actions )
endfunction
function Trig_enter7_Copy_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Rect_133) )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Rect_133), 0 )
endfunction
//===========================================================================
function InitTrig_enter7_Copy takes nothing returns nothing
set gg_trg_enter7_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_enter7_Copy, gg_rct_Rect_132 )
call TriggerAddAction( gg_trg_enter7_Copy, function Trig_enter7_Copy_Actions )
endfunction
function Trig_injoin_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0316, Player(9)) == true ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0315, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0309, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0107, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0017, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0031, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0011, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0033, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0034, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0089, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0112, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0263, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0264, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0292, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0300, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0161, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0327, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0328, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0336, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0337, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0392, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0401, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0404, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0406, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
return true
endfunction
function Trig_injoin_Copy_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncp2_0316, GetOwningPlayer(GetTriggerUnit()), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_319" )
set udg_landowner[6] = GetOwningPlayer(GetTriggerUnit())
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_inleave_Copy )
endfunction
//===========================================================================
function InitTrig_injoin_Copy takes nothing returns nothing
set gg_trg_injoin_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_injoin_Copy, gg_rct_Rect_126 )
call TriggerAddCondition( gg_trg_injoin_Copy, Condition( function Trig_injoin_Copy_Conditions ) )
call TriggerAddAction( gg_trg_injoin_Copy, function Trig_injoin_Copy_Actions )
endfunction
function Trig_inn_pay_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0316, Player(9)) == false ) ) then
return false
endif
return true
endfunction
function Trig_inn_pay_Copy_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 6, GetOwningPlayer(gg_unit_ncp2_0316), PLAYER_STATE_RESOURCE_GOLD )
endfunction
//===========================================================================
function InitTrig_inn_pay_Copy takes nothing returns nothing
set gg_trg_inn_pay_Copy = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_inn_pay_Copy, 15.00 )
call TriggerAddCondition( gg_trg_inn_pay_Copy, Condition( function Trig_inn_pay_Copy_Conditions ) )
call TriggerAddAction( gg_trg_inn_pay_Copy, function Trig_inn_pay_Copy_Actions )
endfunction
function Trig_inleave_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0316, GetOwningPlayer(GetTriggerUnit())) == true ) ) then
return false
endif
return true
endfunction
function Trig_inleave_Copy_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncp2_0316, Player(9), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_320" )
set udg_landowner[6] = Player(9)
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 5.00 )
call EnableTrigger( gg_trg_injoin_Copy )
endfunction
//===========================================================================
function InitTrig_inleave_Copy takes nothing returns nothing
set gg_trg_inleave_Copy = CreateTrigger( )
call DisableTrigger( gg_trg_inleave_Copy )
call TriggerRegisterEnterRectSimple( gg_trg_inleave_Copy, gg_rct_Rect_126 )
call TriggerAddCondition( gg_trg_inleave_Copy, Condition( function Trig_inleave_Copy_Conditions ) )
call TriggerAddAction( gg_trg_inleave_Copy, function Trig_inleave_Copy_Actions )
endfunction
function Trig_inroom_pay_Copy_2_Func001C takes nothing returns boolean
if ( not ( GetPlayerState(GetOwningPlayer(GetTriggerUnit()), PLAYER_STATE_RESOURCE_GOLD) >= 50 ) ) then
return false
endif
return true
endfunction
function Trig_inroom_pay_Copy_2_Actions takes nothing returns nothing
if ( Trig_inroom_pay_Copy_2_Func001C() ) then
call AdjustPlayerStateBJ( -50, GetOwningPlayer(GetTriggerUnit()), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 50, GetOwningPlayer(gg_unit_ncp2_0316), PLAYER_STATE_RESOURCE_GOLD )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUTIN, 10.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_322" )
call SetUnitLifePercentBJ( GetTriggerUnit(), 100 )
call SetUnitManaPercentBJ( GetTriggerUnit(), 100 )
else
call DisplayTimedTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, 30, "TRIGSTR_321" )
endif
endfunction
//===========================================================================
function InitTrig_inroom_pay_Copy_2 takes nothing returns nothing
set gg_trg_inroom_pay_Copy_2 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_inroom_pay_Copy_2, gg_rct_Rect_127 )
call TriggerAddAction( gg_trg_inroom_pay_Copy_2, function Trig_inroom_pay_Copy_2_Actions )
endfunction
function Trig_inroom_pay_Copy_Copy_Func001C takes nothing returns boolean
if ( not ( GetPlayerState(GetOwningPlayer(GetTriggerUnit()), PLAYER_STATE_RESOURCE_GOLD) >= 50 ) ) then
return false
endif
return true
endfunction
function Trig_inroom_pay_Copy_Copy_Actions takes nothing returns nothing
if ( Trig_inroom_pay_Copy_Copy_Func001C() ) then
call AdjustPlayerStateBJ( -50, GetOwningPlayer(GetTriggerUnit()), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 50, GetOwningPlayer(gg_unit_ncp2_0316), PLAYER_STATE_RESOURCE_GOLD )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUTIN, 10.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_324" )
call SetUnitLifePercentBJ( GetTriggerUnit(), 100 )
call SetUnitManaPercentBJ( GetTriggerUnit(), 100 )
else
call DisplayTimedTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, 30, "TRIGSTR_323" )
endif
endfunction
//===========================================================================
function InitTrig_inroom_pay_Copy_Copy takes nothing returns nothing
set gg_trg_inroom_pay_Copy_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_inroom_pay_Copy_Copy, gg_rct_Rect_128 )
call TriggerAddAction( gg_trg_inroom_pay_Copy_Copy, function Trig_inroom_pay_Copy_Copy_Actions )
endfunction
function Trig_trader_spawn_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) != 'H004' ) ) then
return false
endif
return true
endfunction
function Trig_trader_spawn_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Rect_062) )
endfunction
//===========================================================================
function InitTrig_trader_spawn takes nothing returns nothing
set gg_trg_trader_spawn = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_trader_spawn, gg_rct_Rect_061 )
call TriggerAddCondition( gg_trg_trader_spawn, Condition( function Trig_trader_spawn_Conditions ) )
call TriggerAddAction( gg_trg_trader_spawn, function Trig_trader_spawn_Actions )
endfunction
function Trig_wooden_sword_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A003' ) ) then
return false
endif
return true
endfunction
function Trig_wooden_sword_Actions takes nothing returns nothing
call CreateItemLoc( 'I002', GetUnitLoc(GetSpellAbilityUnit()) )
endfunction
//===========================================================================
function InitTrig_wooden_sword takes nothing returns nothing
set gg_trg_wooden_sword = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_wooden_sword, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerRegisterAnyUnitEventBJ( gg_trg_wooden_sword, EVENT_PLAYER_UNIT_SPELL_CHANNEL )
call TriggerAddCondition( gg_trg_wooden_sword, Condition( function Trig_wooden_sword_Conditions ) )
call TriggerAddAction( gg_trg_wooden_sword, function Trig_wooden_sword_Actions )
endfunction
function Trig_wooden_sword_Copy_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A002' ) ) then
return false
endif
return true
endfunction
function Trig_wooden_sword_Copy_Actions takes nothing returns nothing
call CreateItemLoc( 'I005', GetSpellTargetLoc() )
endfunction
//===========================================================================
function InitTrig_wooden_sword_Copy takes nothing returns nothing
set gg_trg_wooden_sword_Copy = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_wooden_sword_Copy, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_wooden_sword_Copy, Condition( function Trig_wooden_sword_Copy_Conditions ) )
call TriggerAddAction( gg_trg_wooden_sword_Copy, function Trig_wooden_sword_Copy_Actions )
endfunction
function Trig_wooden_sword_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00A' ) ) then
return false
endif
return true
endfunction
function Trig_wooden_sword_Copy_Copy_Actions takes nothing returns nothing
call CreateItemLoc( 'phea', GetSpellTargetLoc() )
endfunction
//===========================================================================
function InitTrig_wooden_sword_Copy_Copy takes nothing returns nothing
set gg_trg_wooden_sword_Copy_Copy = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_wooden_sword_Copy_Copy, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_wooden_sword_Copy_Copy, Condition( function Trig_wooden_sword_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_wooden_sword_Copy_Copy, function Trig_wooden_sword_Copy_Copy_Actions )
endfunction
function Trig_iron_sword_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A005' ) ) then
return false
endif
return true
endfunction
function Trig_iron_sword_Actions takes nothing returns nothing
call CreateItemLoc( 'I003', GetUnitLoc(GetSpellAbilityUnit()) )
endfunction
//===========================================================================
function InitTrig_iron_sword takes nothing returns nothing
set gg_trg_iron_sword = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_iron_sword, EVENT_PLAYER_UNIT_SPELL_CHANNEL )
call TriggerAddCondition( gg_trg_iron_sword, Condition( function Trig_iron_sword_Conditions ) )
call TriggerAddAction( gg_trg_iron_sword, function Trig_iron_sword_Actions )
endfunction
function Trig_iron_sword_Copy_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A008' ) ) then
return false
endif
return true
endfunction
function Trig_iron_sword_Copy_2_Actions takes nothing returns nothing
call CreateItemLoc( 'I006', GetUnitLoc(GetSpellAbilityUnit()) )
endfunction
//===========================================================================
function InitTrig_iron_sword_Copy_2 takes nothing returns nothing
set gg_trg_iron_sword_Copy_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_iron_sword_Copy_2, EVENT_PLAYER_UNIT_SPELL_CHANNEL )
call TriggerAddCondition( gg_trg_iron_sword_Copy_2, Condition( function Trig_iron_sword_Copy_2_Conditions ) )
call TriggerAddAction( gg_trg_iron_sword_Copy_2, function Trig_iron_sword_Copy_2_Actions )
endfunction
function Trig_iron_sword_Copy_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A004' ) ) then
return false
endif
return true
endfunction
function Trig_iron_sword_Copy_Actions takes nothing returns nothing
call CreateItemLoc( 'I004', GetUnitLoc(GetSpellAbilityUnit()) )
endfunction
//===========================================================================
function InitTrig_iron_sword_Copy takes nothing returns nothing
set gg_trg_iron_sword_Copy = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_iron_sword_Copy, EVENT_PLAYER_UNIT_SPELL_CHANNEL )
call TriggerAddCondition( gg_trg_iron_sword_Copy, Condition( function Trig_iron_sword_Copy_Conditions ) )
call TriggerAddAction( gg_trg_iron_sword_Copy, function Trig_iron_sword_Copy_Actions )
endfunction
function Trig_iron_sword_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A006' ) ) then
return false
endif
return true
endfunction
function Trig_iron_sword_Copy_Copy_Actions takes nothing returns nothing
call CreateItemLoc( 'I007', GetSpellTargetLoc() )
endfunction
//===========================================================================
function InitTrig_iron_sword_Copy_Copy takes nothing returns nothing
set gg_trg_iron_sword_Copy_Copy = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_iron_sword_Copy_Copy, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_iron_sword_Copy_Copy, Condition( function Trig_iron_sword_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_iron_sword_Copy_Copy, function Trig_iron_sword_Copy_Copy_Actions )
endfunction
function Trig_iron_sword_Copy_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00B' ) ) then
return false
endif
return true
endfunction
function Trig_iron_sword_Copy_Copy_Copy_Actions takes nothing returns nothing
call CreateItemLoc( 'whwd', GetSpellTargetLoc() )
endfunction
//===========================================================================
function InitTrig_iron_sword_Copy_Copy_Copy takes nothing returns nothing
set gg_trg_iron_sword_Copy_Copy_Copy = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_iron_sword_Copy_Copy_Copy, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerRegisterAnyUnitEventBJ( gg_trg_iron_sword_Copy_Copy_Copy, EVENT_PLAYER_UNIT_SPELL_CHANNEL )
call TriggerAddCondition( gg_trg_iron_sword_Copy_Copy_Copy, Condition( function Trig_iron_sword_Copy_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_iron_sword_Copy_Copy_Copy, function Trig_iron_sword_Copy_Copy_Copy_Actions )
endfunction
function Trig_Untitled_Trigger_001_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Rect_067) )
call SetCameraBoundsToRectForPlayerBJ( GetOwningPlayer(GetTriggerUnit()), gg_rct_Rect_065 )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Rect_067), 0 )
endfunction
//===========================================================================
function InitTrig_Untitled_Trigger_001 takes nothing returns nothing
set gg_trg_Untitled_Trigger_001 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Untitled_Trigger_001, gg_rct_Rect_066 )
call TriggerAddAction( gg_trg_Untitled_Trigger_001, function Trig_Untitled_Trigger_001_Actions )
endfunction
function Trig_Untitled_Trigger_001_Copy_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Hero_Start) )
call SetCameraBoundsToRectForPlayerBJ( GetOwningPlayer(GetTriggerUnit()), gg_rct_Rect_034 )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Hero_Start), 0 )
endfunction
//===========================================================================
function InitTrig_Untitled_Trigger_001_Copy takes nothing returns nothing
set gg_trg_Untitled_Trigger_001_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Untitled_Trigger_001_Copy, gg_rct_Rect_068 )
call TriggerAddAction( gg_trg_Untitled_Trigger_001_Copy, function Trig_Untitled_Trigger_001_Copy_Actions )
endfunction
function Trig_stop_abuse_Func001A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Hero_Start) )
endfunction
function Trig_stop_abuse_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Rect_158), function Trig_stop_abuse_Func001A )
endfunction
//===========================================================================
function InitTrig_stop_abuse takes nothing returns nothing
set gg_trg_stop_abuse = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_stop_abuse, Player(0), "-stop abuse", true )
call TriggerAddAction( gg_trg_stop_abuse, function Trig_stop_abuse_Actions )
endfunction
function Trig_car_inprosonment_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetSpellAbilityUnit()) == udg_jailowner ) ) then
return false
endif
if ( not ( GetSpellAbilityId() == 'A00D' ) ) then
return false
endif
return true
endfunction
function Trig_car_inprosonment_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetSpellTargetUnit(), GetRectCenter(gg_rct_Rect_158) )
endfunction
//===========================================================================
function InitTrig_car_inprosonment takes nothing returns nothing
set gg_trg_car_inprosonment = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_car_inprosonment, EVENT_PLAYER_UNIT_SPELL_CHANNEL )
call TriggerRegisterAnyUnitEventBJ( gg_trg_car_inprosonment, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_car_inprosonment, Condition( function Trig_car_inprosonment_Conditions ) )
call TriggerAddAction( gg_trg_car_inprosonment, function Trig_car_inprosonment_Actions )
endfunction
function Trig_car_inprosonment_Copy_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetSpellAbilityUnit()) == udg_jailowner ) ) then
return false
endif
if ( not ( GetSpellAbilityId() == 'A00E' ) ) then
return false
endif
return true
endfunction
function Trig_car_inprosonment_Copy_Func001002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetUnitLoc(GetSpellAbilityUnit()) )
endfunction
function Trig_car_inprosonment_Copy_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Rect_159), function Trig_car_inprosonment_Copy_Func001002 )
endfunction
//===========================================================================
function InitTrig_car_inprosonment_Copy takes nothing returns nothing
set gg_trg_car_inprosonment_Copy = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_car_inprosonment_Copy, EVENT_PLAYER_UNIT_SPELL_CHANNEL )
call TriggerRegisterAnyUnitEventBJ( gg_trg_car_inprosonment_Copy, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_car_inprosonment_Copy, Condition( function Trig_car_inprosonment_Copy_Conditions ) )
call TriggerAddAction( gg_trg_car_inprosonment_Copy, function Trig_car_inprosonment_Copy_Actions )
endfunction
function Trig_sea_open_Copy_4_Conditions takes nothing returns boolean
if ( not ( udg_jailowner == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_sea_open_Copy_4_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_DTg3_6210 )
endfunction
//===========================================================================
function InitTrig_sea_open_Copy_4 takes nothing returns nothing
set gg_trg_sea_open_Copy_4 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_4, Player(0), "-open prison", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_4, Player(1), "-open prison", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_4, Player(2), "-open prison", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_4, Player(3), "-open prison", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_4, Player(4), "-open prison", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_4, Player(5), "-open prison", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_4, Player(6), "-open prison", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_4, Player(7), "-open prison", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_4, Player(8), "-open prison", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_4, Player(11), "-open prison", true )
call TriggerAddCondition( gg_trg_sea_open_Copy_4, Condition( function Trig_sea_open_Copy_4_Conditions ) )
call TriggerAddAction( gg_trg_sea_open_Copy_4, function Trig_sea_open_Copy_4_Actions )
endfunction
function Trig_sea_open_Copy_4_Copy_Conditions takes nothing returns boolean
if ( not ( udg_jailowner == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_sea_open_Copy_4_Copy_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_CLOSE, gg_dest_DTg3_6210 )
endfunction
//===========================================================================
function InitTrig_sea_open_Copy_4_Copy takes nothing returns nothing
set gg_trg_sea_open_Copy_4_Copy = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_4_Copy, Player(0), "-close prison", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_4_Copy, Player(1), "-close prison", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_4_Copy, Player(2), "-close prison", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_4_Copy, Player(3), "-close prison", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_4_Copy, Player(4), "-close prison", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_4_Copy, Player(5), "-close prison", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_4_Copy, Player(6), "-close prison", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_4_Copy, Player(7), "-close prison", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_4_Copy, Player(8), "-close prison", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_4_Copy, Player(11), "-close prison", true )
call TriggerAddCondition( gg_trg_sea_open_Copy_4_Copy, Condition( function Trig_sea_open_Copy_4_Copy_Conditions ) )
call TriggerAddAction( gg_trg_sea_open_Copy_4_Copy, function Trig_sea_open_Copy_4_Copy_Actions )
endfunction
function Trig_sea_open_Copy_3_Conditions takes nothing returns boolean
if ( not ( udg_jailowner == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_sea_open_Copy_3_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_DTg3_6214 )
endfunction
//===========================================================================
function InitTrig_sea_open_Copy_3 takes nothing returns nothing
set gg_trg_sea_open_Copy_3 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_3, Player(0), "-open Sec", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_3, Player(1), "-open Sec", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_3, Player(2), "-open Sec", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_3, Player(3), "-open Sec", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_3, Player(4), "-open Sec", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_3, Player(5), "-open Sec", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_3, Player(6), "-open Sec", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_3, Player(7), "-open Sec", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_3, Player(8), "-open Sec", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_3, Player(11), "-open Sec", true )
call TriggerAddCondition( gg_trg_sea_open_Copy_3, Condition( function Trig_sea_open_Copy_3_Conditions ) )
call TriggerAddAction( gg_trg_sea_open_Copy_3, function Trig_sea_open_Copy_3_Actions )
endfunction
function Trig_sea_open_Copy_3_Copy_Conditions takes nothing returns boolean
if ( not ( udg_jailowner == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_sea_open_Copy_3_Copy_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_CLOSE, gg_dest_DTg3_6214 )
endfunction
//===========================================================================
function InitTrig_sea_open_Copy_3_Copy takes nothing returns nothing
set gg_trg_sea_open_Copy_3_Copy = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_3_Copy, Player(0), "-close Sec", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_3_Copy, Player(1), "-close Sec", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_3_Copy, Player(2), "-close Sec", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_3_Copy, Player(3), "-close Sec", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_3_Copy, Player(4), "-close Sec", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_3_Copy, Player(5), "-close Sec", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_3_Copy, Player(6), "-close Sec", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_3_Copy, Player(7), "-close Sec", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_3_Copy, Player(8), "-close Sec", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_3_Copy, Player(11), "-close Sec", true )
call TriggerAddCondition( gg_trg_sea_open_Copy_3_Copy, Condition( function Trig_sea_open_Copy_3_Copy_Conditions ) )
call TriggerAddAction( gg_trg_sea_open_Copy_3_Copy, function Trig_sea_open_Copy_3_Copy_Actions )
endfunction
function Trig_sea_open_Copy_2_Conditions takes nothing returns boolean
if ( not ( udg_jailowner == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_sea_open_Copy_2_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_DTg7_6212 )
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_DTg5_6211 )
endfunction
//===========================================================================
function InitTrig_sea_open_Copy_2 takes nothing returns nothing
set gg_trg_sea_open_Copy_2 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_2, Player(0), "-open jail", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_2, Player(1), "-open jail", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_2, Player(2), "-open jail", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_2, Player(3), "-open jail", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_2, Player(4), "-open jail", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_2, Player(5), "-open jail", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_2, Player(6), "-open jail", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_2, Player(7), "-open jail", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_2, Player(8), "-open jail", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_2, Player(11), "-open jail", true )
call TriggerAddCondition( gg_trg_sea_open_Copy_2, Condition( function Trig_sea_open_Copy_2_Conditions ) )
call TriggerAddAction( gg_trg_sea_open_Copy_2, function Trig_sea_open_Copy_2_Actions )
endfunction
function Trig_sea_open_Copy_2_Copy_Conditions takes nothing returns boolean
if ( not ( udg_jailowner == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_sea_open_Copy_2_Copy_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_CLOSE, gg_dest_DTg7_6212 )
call ModifyGateBJ( bj_GATEOPERATION_CLOSE, gg_dest_DTg5_6211 )
endfunction
//===========================================================================
function InitTrig_sea_open_Copy_2_Copy takes nothing returns nothing
set gg_trg_sea_open_Copy_2_Copy = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_2_Copy, Player(0), "-close jail", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_2_Copy, Player(1), "-close jail", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_2_Copy, Player(2), "-close jail", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_2_Copy, Player(3), "-close jail", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_2_Copy, Player(4), "-close jail", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_2_Copy, Player(5), "-close jail", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_2_Copy, Player(6), "-close jail", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_2_Copy, Player(7), "-close jail", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_2_Copy, Player(8), "-close jail", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy_2_Copy, Player(11), "-close jail", true )
call TriggerAddCondition( gg_trg_sea_open_Copy_2_Copy, Condition( function Trig_sea_open_Copy_2_Copy_Conditions ) )
call TriggerAddAction( gg_trg_sea_open_Copy_2_Copy, function Trig_sea_open_Copy_2_Copy_Actions )
endfunction
function Trig_sea_open_Conditions takes nothing returns boolean
if ( not ( udg_jailowner == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_sea_open_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_DTg1_6213 )
endfunction
//===========================================================================
function InitTrig_sea_open takes nothing returns nothing
set gg_trg_sea_open = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open, Player(0), "-open sea", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open, Player(1), "-open sea", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open, Player(2), "-open sea", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open, Player(3), "-open sea", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open, Player(4), "-open sea", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open, Player(5), "-open sea", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open, Player(6), "-open sea", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open, Player(7), "-open sea", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open, Player(8), "-open sea", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open, Player(11), "-open sea", true )
call TriggerAddCondition( gg_trg_sea_open, Condition( function Trig_sea_open_Conditions ) )
call TriggerAddAction( gg_trg_sea_open, function Trig_sea_open_Actions )
endfunction
function Trig_sea_open_Copy_Conditions takes nothing returns boolean
if ( not ( udg_jailowner == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_sea_open_Copy_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_CLOSE, gg_dest_DTg1_6213 )
endfunction
//===========================================================================
function InitTrig_sea_open_Copy takes nothing returns nothing
set gg_trg_sea_open_Copy = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy, Player(0), "-close sea", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy, Player(1), "-close sea", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy, Player(2), "-close sea", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy, Player(3), "-close sea", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy, Player(4), "-close sea", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy, Player(5), "-close sea", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy, Player(6), "-close sea", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy, Player(7), "-close sea", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy, Player(8), "-close sea", true )
call TriggerRegisterPlayerChatEvent( gg_trg_sea_open_Copy, Player(11), "-close sea", true )
call TriggerAddCondition( gg_trg_sea_open_Copy, Condition( function Trig_sea_open_Copy_Conditions ) )
call TriggerAddAction( gg_trg_sea_open_Copy, function Trig_sea_open_Copy_Actions )
endfunction
function Trig_anual_basic_pay_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 7, udg_jailowner, PLAYER_STATE_RESOURCE_GOLD )
endfunction
//===========================================================================
function InitTrig_anual_basic_pay takes nothing returns nothing
set gg_trg_anual_basic_pay = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_anual_basic_pay, 15.00 )
call TriggerAddAction( gg_trg_anual_basic_pay, function Trig_anual_basic_pay_Actions )
endfunction
function Trig_auto_own_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_h00H_0339, udg_jailowner, true )
call SetUnitOwner( gg_unit_n006_0341, udg_jailowner, true )
endfunction
//===========================================================================
function InitTrig_auto_own takes nothing returns nothing
set gg_trg_auto_own = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_auto_own, 2 )
call TriggerAddAction( gg_trg_auto_own, function Trig_auto_own_Actions )
endfunction
function Trig_get_jail_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0337, Player(9)) == true ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0315, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0309, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0107, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0017, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0031, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0011, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0033, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0034, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0089, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0112, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0263, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncop_0264, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0292, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0300, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0316, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0161, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0327, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0328, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0336, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0392, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0401, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0404, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0406, GetOwningPlayer(GetTriggerUnit())) == false ) ) then
return false
endif
return true
endfunction
function Trig_get_jail_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncp2_0337, GetOwningPlayer(GetTriggerUnit()), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_395" )
set udg_jailowner = GetOwningPlayer(GetTriggerUnit())
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_leave_jail )
endfunction
//===========================================================================
function InitTrig_get_jail takes nothing returns nothing
set gg_trg_get_jail = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_get_jail, gg_rct_Rect_153 )
call TriggerAddCondition( gg_trg_get_jail, Condition( function Trig_get_jail_Conditions ) )
call TriggerAddAction( gg_trg_get_jail, function Trig_get_jail_Actions )
endfunction
function Trig_set_bail_Conditions takes nothing returns boolean
if ( not ( udg_jailowner == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_set_bail_Actions takes nothing returns nothing
set udg_temp = SubStringBJ(GetEventPlayerChatString(), 6, 10)
set udg_bail = S2I(udg_temp)
endfunction
//===========================================================================
function InitTrig_set_bail takes nothing returns nothing
set gg_trg_set_bail = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_set_bail, Player(0), "-bail", false )
call TriggerRegisterPlayerChatEvent( gg_trg_set_bail, Player(1), "-bail", false )
call TriggerRegisterPlayerChatEvent( gg_trg_set_bail, Player(2), "-bail", false )
call TriggerRegisterPlayerChatEvent( gg_trg_set_bail, Player(3), "-bail", false )
call TriggerRegisterPlayerChatEvent( gg_trg_set_bail, Player(4), "-bail", false )
call TriggerRegisterPlayerChatEvent( gg_trg_set_bail, Player(5), "-bail", false )
call TriggerRegisterPlayerChatEvent( gg_trg_set_bail, Player(6), "-bail", false )
call TriggerRegisterPlayerChatEvent( gg_trg_set_bail, Player(7), "-bail", false )
call TriggerRegisterPlayerChatEvent( gg_trg_set_bail, Player(8), "-bail", false )
call TriggerRegisterPlayerChatEvent( gg_trg_set_bail, Player(11), "-bail", false )
call TriggerAddCondition( gg_trg_set_bail, Condition( function Trig_set_bail_Conditions ) )
call TriggerAddAction( gg_trg_set_bail, function Trig_set_bail_Actions )
endfunction
function Trig_pay_bail_Func001Func001C takes nothing returns boolean
if ( not ( GetPlayerState(GetOwningPlayer(GetTriggerUnit()), PLAYER_STATE_RESOURCE_GOLD) >= udg_bail ) ) then
return false
endif
return true
endfunction
function Trig_pay_bail_Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) != udg_jailowner ) ) then
return false
endif
return true
endfunction
function Trig_pay_bail_Actions takes nothing returns nothing
if ( Trig_pay_bail_Func001C() ) then
if ( Trig_pay_bail_Func001Func001C() ) then
call AdjustPlayerStateBJ( udg_bail, udg_jailowner, PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( ( udg_bail * -1 ), GetOwningPlayer(GetTriggerUnit()), PLAYER_STATE_RESOURCE_GOLD )
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_DTg3_6210 )
set udg_bail = 50
else
endif
else
endif
endfunction
//===========================================================================
function InitTrig_pay_bail takes nothing returns nothing
set gg_trg_pay_bail = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_pay_bail, gg_rct_Rect_154 )
call TriggerAddAction( gg_trg_pay_bail, function Trig_pay_bail_Actions )
endfunction
function Trig_leave_bail_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) != udg_jailowner ) ) then
return false
endif
return true
endfunction
function Trig_leave_bail_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_CLOSE, gg_dest_DTg3_6210 )
endfunction
//===========================================================================
function InitTrig_leave_bail takes nothing returns nothing
set gg_trg_leave_bail = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_leave_bail, gg_rct_Rect_155 )
call TriggerAddCondition( gg_trg_leave_bail, Condition( function Trig_leave_bail_Conditions ) )
call TriggerAddAction( gg_trg_leave_bail, function Trig_leave_bail_Actions )
endfunction
function Trig_leave_jail_Conditions takes nothing returns boolean
if ( not ( IsUnitOwnedByPlayer(gg_unit_ncp2_0337, GetOwningPlayer(GetTriggerUnit())) == true ) ) then
return false
endif
return true
endfunction
function Trig_leave_jail_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncp2_0337, Player(9), true )
call DisplayTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, "TRIGSTR_396" )
set udg_jailowner = Player(9)
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 3.00 )
call EnableTrigger( gg_trg_get_jail )
endfunction
//===========================================================================
function InitTrig_leave_jail takes nothing returns nothing
set gg_trg_leave_jail = CreateTrigger( )
call DisableTrigger( gg_trg_leave_jail )
call TriggerRegisterEnterRectSimple( gg_trg_leave_jail, gg_rct_Rect_153 )
call TriggerAddCondition( gg_trg_leave_jail, Condition( function Trig_leave_jail_Conditions ) )
call TriggerAddAction( gg_trg_leave_jail, function Trig_leave_jail_Actions )
endfunction
function Trig_Untitled_Trigger_004_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Rect_163) )
endfunction
//===========================================================================
function InitTrig_Untitled_Trigger_004 takes nothing returns nothing
set gg_trg_Untitled_Trigger_004 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Untitled_Trigger_004, gg_rct_Rect_162 )
call TriggerAddAction( gg_trg_Untitled_Trigger_004, function Trig_Untitled_Trigger_004_Actions )
endfunction
function Trig_Untitled_Trigger_004_Copy_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Rect_165) )
endfunction
//===========================================================================
function InitTrig_Untitled_Trigger_004_Copy takes nothing returns nothing
set gg_trg_Untitled_Trigger_004_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Untitled_Trigger_004_Copy, gg_rct_Rect_164 )
call TriggerAddAction( gg_trg_Untitled_Trigger_004_Copy, function Trig_Untitled_Trigger_004_Copy_Actions )
endfunction
function Trig_married_Conditions takes nothing returns boolean
if ( not ( udg_marraige2 == 2 ) ) then
return false
endif
return true
endfunction
function Trig_married_Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(gg_unit_ncp2_0346) != GetOwningPlayer(gg_unit_ncp2_0347) ) ) then
return false
endif
if ( not ( GetOwningPlayer(gg_unit_ncp2_0347) != Player(9) ) ) then
return false
endif
if ( not ( GetOwningPlayer(gg_unit_ncp2_0346) != Player(9) ) ) then
return false
endif
return true
endfunction
function Trig_married_Actions takes nothing returns nothing
if ( Trig_married_Func001C() ) then
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(gg_unit_ncp2_0346)) + ( " has married " + GetPlayerName(GetOwningPlayer(gg_unit_ncp2_0347)) ) ) )
call CreateItemLoc( 'rnsp', GetRectCenter(gg_rct_Rect_160) )
call UnitAddItemSwapped( GetLastCreatedItem(), udg_unit[1] )
call CreateItemLoc( 'rnsp', GetRectCenter(gg_rct_Rect_161) )
call UnitAddItemSwapped( GetLastCreatedItem(), udg_unit[2] )
set udg_marraige2 = 0
call SetUnitOwner( gg_unit_ncp2_0346, Player(9), true )
call SetUnitOwner( gg_unit_ncp2_0347, Player(9), true )
else
endif
endfunction
//===========================================================================
function InitTrig_married takes nothing returns nothing
set gg_trg_married = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_married, 2 )
call TriggerAddCondition( gg_trg_married, Condition( function Trig_married_Conditions ) )
call TriggerAddAction( gg_trg_married, function Trig_married_Actions )
endfunction
function Trig_unown_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetLeavingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_unown_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncp2_0347, Player(9), true )
set udg_marraige2 = ( udg_marraige2 - 1 )
endfunction
//===========================================================================
function InitTrig_unown takes nothing returns nothing
set gg_trg_unown = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_unown, gg_rct_Rect_161 )
call TriggerAddCondition( gg_trg_unown, Condition( function Trig_unown_Conditions ) )
call TriggerAddAction( gg_trg_unown, function Trig_unown_Actions )
endfunction
function Trig_unown_Copy_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetLeavingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_unown_Copy_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_ncp2_0346, Player(9), true )
set udg_marraige2 = ( udg_marraige2 - 1 )
endfunction
//===========================================================================
function InitTrig_unown_Copy takes nothing returns nothing
set gg_trg_unown_Copy = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_unown_Copy, gg_rct_Rect_160 )
call TriggerAddCondition( gg_trg_unown_Copy, Condition( function Trig_unown_Copy_Conditions ) )
call TriggerAddAction( gg_trg_unown_Copy, function Trig_unown_Copy_Actions )
endfunction
function Trig_own_circle_1_Func001C takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(), 1)) != 'rnsp' ) ) then
return false
endif
if ( not ( GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(), 2)) != 'rnsp' ) ) then
return false
endif
if ( not ( GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(), 3)) != 'rnsp' ) ) then
return false
endif
if ( not ( GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(), 4)) != 'rnsp' ) ) then
return false
endif
if ( not ( GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(), 5)) != 'rnsp' ) ) then
return false
endif
if ( not ( GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(), 6)) != 'rnsp' ) ) then
return false
endif
return true
endfunction
function Trig_own_circle_1_Actions takes nothing returns nothing
if ( Trig_own_circle_1_Func001C() ) then
call SetUnitOwner( gg_unit_ncp2_0346, GetOwningPlayer(GetTriggerUnit()), true )
set udg_marraige2 = ( udg_marraige2 + 1 )
set udg_unit[1] = GetTriggerUnit()
else
endif
endfunction
//===========================================================================
function InitTrig_own_circle_1 takes nothing returns nothing
set gg_trg_own_circle_1 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_own_circle_1, gg_rct_Rect_160 )
call TriggerAddAction( gg_trg_own_circle_1, function Trig_own_circle_1_Actions )
endfunction
function Trig_own_circle_1_Copy_Func001C takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(), 1)) != 'rnsp' ) ) then
return false
endif
if ( not ( GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(), 2)) != 'rnsp' ) ) then
return false
endif
if ( not ( GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(), 3)) != 'rnsp' ) ) then
return false
endif
if ( not ( GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(), 4)) != 'rnsp' ) ) then
return false
endif
if ( not ( GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(), 5)) != 'rnsp' ) ) then
return false
endif
if ( not ( GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(), 6)) != 'rnsp' ) ) then
return false
endif
return true
endfunction
function Trig_own_circle_1_Copy_Actions takes nothing returns nothing
if ( Trig_own_circle_1_Copy_Func001C() ) then
call SetUnitOwner( gg_unit_ncp2_0347, GetOwningPlayer(GetTriggerUnit()), true )
set udg_marraige2 = ( udg_marraige2 + 1 )
set udg_unit[2] = GetTriggerUnit()
else
endif
endfunction
//===========================================================================
function InitTrig_own_circle_1_Copy takes nothing returns nothing
set gg_trg_own_circle_1_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_own_circle_1_Copy, gg_rct_Rect_161 )
call TriggerAddAction( gg_trg_own_circle_1_Copy, function Trig_own_circle_1_Copy_Actions )
endfunction
function Trig_Untitled_Trigger_005_Actions takes nothing returns nothing
endfunction
//===========================================================================
function InitTrig_Untitled_Trigger_005 takes nothing returns nothing
set gg_trg_Untitled_Trigger_005 = CreateTrigger( )
call TriggerAddAction( gg_trg_Untitled_Trigger_005, function Trig_Untitled_Trigger_005_Actions )
endfunction
function Trig_ship_revive_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'hdes' ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then
return false
endif
return true
endfunction
function Trig_ship_revive_Actions takes nothing returns nothing
call TriggerSleepAction( 240.00 )
call CreateNUnitsAtLoc( 1, 'hdes', Player(10), GetUnitLoc(GetTriggerUnit()), bj_UNIT_FACING )
endfunction
//===========================================================================
function InitTrig_ship_revive takes nothing returns nothing
set gg_trg_ship_revive = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_ship_revive, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_ship_revive, Condition( function Trig_ship_revive_Conditions ) )
call TriggerAddAction( gg_trg_ship_revive, function Trig_ship_revive_Actions )
endfunction