Created
February 11, 2017 04:10
-
-
Save dnoiz1/f33895fb6bbafbf0c17221135e811efc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//=========================================================================== | |
// | |
// Tower Wars_1.9 | |
// | |
// Warcraft III map script | |
// Generated by the Warcraft III World Editor | |
// Date: Wed Jan 28 01:43:15 2004 | |
// Map Author: Zak_ | |
// | |
//=========================================================================== | |
//*************************************************************************** | |
//* | |
//* Global Variables | |
//* | |
//*************************************************************************** | |
globals | |
// User-defined | |
rect array udg_Team1Spots | |
unit array udg_Shrines | |
rect array udg_Team2Spots | |
rect array udg_Team3Spots | |
real array udg_Income | |
integer udg_Team1Lives = 0 | |
integer udg_Team2Lives = 0 | |
integer udg_Team3Lives = 0 | |
force array udg_PlayerGroups | |
player array udg_Players | |
integer array udg_TeamIncome | |
integer array udg_Teams | |
timer udg_IncomeTimer = null | |
integer udg_Team2Creeps = 0 | |
unit array udg_Team2CreepsArray | |
integer udg_Team1Creeps = 0 | |
unit array udg_Team1CreepsArray | |
integer udg_Team3Creeps = 0 | |
unit array udg_Team3CreepsArray | |
integer udg_Team1Sorter = 0 | |
string udg_IncomeLeader | |
force udg_Team1Group = null | |
force udg_Team2Group = null | |
force udg_Team3Group = null | |
trigger array udg_Music | |
integer udg_Team2Sorter = 0 | |
integer udg_Team3Sorter = 0 | |
trigger array udg_Team1SortTriggers | |
trigger array udg_Team2SortTriggers | |
trigger array udg_Team3SortTriggers | |
string udg_TestString | |
dialog udg_Player1ProfileDialog = null | |
button array udg_Player1ProfileButtons | |
integer array udg_Profiles | |
dialog udg_Player4ProfileDialog = null | |
button array udg_Player4ProfileButtons | |
dialog udg_Player2ProfileDialog = null | |
dialog udg_Player3ProfileDialog = null | |
dialog udg_Player5ProfileDialog = null | |
dialog udg_Player6ProfileDialog = null | |
dialog udg_Player7ProfileDialog = null | |
dialog udg_Player8ProfileDialog = null | |
dialog udg_Player9ProfileDialog = null | |
button array udg_Player2ProfileButtons | |
button array udg_Player3ProfileButtons | |
button array udg_Player5ProfileButtons | |
button array udg_Player6ProfileButtons | |
button array udg_Player7ProfileButtons | |
button array udg_Player8ProfileButtons | |
button array udg_Player9ProfileButtons | |
string array udg_Tips | |
boolean udg_TipSwitch = false | |
integer array udg_Bounty | |
real udg_IncomeTime = 0 | |
dialog udg_TimerDialog = null | |
button array udg_TimerDialogButtons | |
string udg_ProfileDialogButton1Text | |
string udg_ProfileDialogButton2Text | |
string udg_ProfileDialogText | |
string udg_ProfileDialogButton1Label | |
string udg_ProfileDialogButton2Label | |
boolean array udg_RepickAllowed | |
string udg_RepickDenied | |
integer array udg_Defenders | |
string udg_ProfileDialogButton2LabelAlt | |
string udg_TimerDialogRedMessage | |
trigger array udg_TimerDialogTriggers | |
timer udg_GameStartTimer = null | |
boolean array udg_ProfileSet | |
string array udg_PlayerProfiles | |
string udg_ProfileSummonerText | |
string udg_ProfileDefenderText | |
real udg_DefenderKillPercentage = 0 | |
boolean array udg_TipsOn | |
trigger array udg_TipTriggers | |
integer udg_TipMax = 0 | |
string udg_ProfileDeclarationSummoner | |
string udg_ProfileDeclarationDefender | |
force udg_Team1Summoners = null | |
force udg_Team2Summoners = null | |
force udg_Team3Summoners = null | |
force udg_Team1Defenders = null | |
force udg_Team2Defenders = null | |
force udg_Team3Defenders = null | |
unit array udg_Defenses | |
integer udg_StartingGold = 0 | |
string udg_DefeatMessage | |
real udg_StartingIncome = 0 | |
string array udg_IncomeSettingsText | |
real array udg_IncomeSettingsIncome | |
integer array udg_IncomeSettingsGold | |
string array udg_PlayerNumbers | |
player udg_Team1ExtraShrine = null | |
player udg_Team2ExtraShrine = null | |
player udg_Team3ExtraShrine = null | |
trigger array udg_ExtraShrineTriggers | |
string udg_RepickMessage | |
timer udg_Team1RepickTimer = null | |
timer udg_Team2RepickTimer = null | |
timer udg_Team3RepickTimer = null | |
timerdialog udg_Team1RepickTimerWindow = null | |
timerdialog udg_Team2RepickTimerWindow = null | |
timerdialog udg_Team3RepickTimerWindow = null | |
boolean udg_ChangeIncomeAllowed = false | |
timer udg_ChangeIncomeTimer = null | |
timerdialog udg_GameStartTimerWindow = null | |
// Generated | |
rect gg_rct_Center_Death = null | |
rect gg_rct_Player1_Defenses = null | |
rect gg_rct_Player1_Income_Level = null | |
rect gg_rct_Player2_Defenses = null | |
rect gg_rct_Player2_Income_Level = null | |
rect gg_rct_Player2_Shrine = null | |
rect gg_rct_Player3_Defenses = null | |
rect gg_rct_Player3_Income_Level = null | |
rect gg_rct_Player3_New_Shrine = null | |
rect gg_rct_Player3_Shrine = null | |
rect gg_rct_Player4_Defenses = null | |
rect gg_rct_Player4_Income_Level = null | |
rect gg_rct_Player4_New_Shrine = null | |
rect gg_rct_Player4_Shrine = null | |
rect gg_rct_Player5_Defenses = null | |
rect gg_rct_Player5_Income_Level = null | |
rect gg_rct_Player5_New_Shrine = null | |
rect gg_rct_Player5_Shrine = null | |
rect gg_rct_Player6_Defenses = null | |
rect gg_rct_Player6_Income_Level = null | |
rect gg_rct_Player6_New_Shrine = null | |
rect gg_rct_Player6_Shrine = null | |
rect gg_rct_Player7_Defenses = null | |
rect gg_rct_Player7_Income_Level = null | |
rect gg_rct_Player7_New_Shrine = null | |
rect gg_rct_Player7_Shrine = null | |
rect gg_rct_Player8_Defenses = null | |
rect gg_rct_Player8_Income_Level = null | |
rect gg_rct_Player8_New_Shrine = null | |
rect gg_rct_Player8_Shrine = null | |
rect gg_rct_Player9_Defenses = null | |
rect gg_rct_Player9_Income_Level = null | |
rect gg_rct_Player9_New_Shrine = null | |
rect gg_rct_Player9_Shrine = null | |
rect gg_rct_Team1__End = null | |
rect gg_rct_Team1__Entrance = null | |
rect gg_rct_Team1__Entrance_Workers = null | |
rect gg_rct_Team1__Keep_Off = null | |
rect gg_rct_Team1__Path1_01 = null | |
rect gg_rct_Team1__Path1_02 = null | |
rect gg_rct_Team1__Path1_03 = null | |
rect gg_rct_Team1__Path1_04 = null | |
rect gg_rct_Team1__Path1_05 = null | |
rect gg_rct_Team1__Path1_06 = null | |
rect gg_rct_Team1__Path1_07 = null | |
rect gg_rct_Team1__Path1_08 = null | |
rect gg_rct_Team1__Path1_09 = null | |
rect gg_rct_Team1__Path1_10 = null | |
rect gg_rct_Team1__Path1_11 = null | |
rect gg_rct_Team1__Path1_12 = null | |
rect gg_rct_Team1__Path1_Start = null | |
rect gg_rct_Team1__Path2_01 = null | |
rect gg_rct_Team1__Path2_02 = null | |
rect gg_rct_Team1__Path2_03 = null | |
rect gg_rct_Team1__Path2_04 = null | |
rect gg_rct_Team1__Path2_05 = null | |
rect gg_rct_Team1__Path2_06 = null | |
rect gg_rct_Team1__Path2_07 = null | |
rect gg_rct_Team1__Path2_08 = null | |
rect gg_rct_Team1__Path2_09 = null | |
rect gg_rct_Team1__Path2_10 = null | |
rect gg_rct_Team1__Path2_11 = null | |
rect gg_rct_Team1__Path2_12 = null | |
rect gg_rct_Team1__Path2_13 = null | |
rect gg_rct_Team1__Path2_14 = null | |
rect gg_rct_Team1__Path2_15 = null | |
rect gg_rct_Team1__Path2_Start = null | |
rect gg_rct_Team1__Path3_01 = null | |
rect gg_rct_Team1__Path3_02 = null | |
rect gg_rct_Team1__Path3_03 = null | |
rect gg_rct_Team1__Path3_04 = null | |
rect gg_rct_Team1__Path3_05 = null | |
rect gg_rct_Team1__Path3_06 = null | |
rect gg_rct_Team1__Path3_07 = null | |
rect gg_rct_Team1__Path3_08 = null | |
rect gg_rct_Team1__Path3_09 = null | |
rect gg_rct_Team1__Path3_10 = null | |
rect gg_rct_Team1__Path3_Start = null | |
rect gg_rct_Team1__Spawn = null | |
rect gg_rct_Team1__Spawn_Workers = null | |
rect gg_rct_Team2__End = null | |
rect gg_rct_Team2__Entrance = null | |
rect gg_rct_Team2__Entrance_Workers = null | |
rect gg_rct_Team2__Keep_Off = null | |
rect gg_rct_Team2__Path1_01 = null | |
rect gg_rct_Team2__Path1_02 = null | |
rect gg_rct_Team2__Path1_03 = null | |
rect gg_rct_Team2__Path1_04 = null | |
rect gg_rct_Team2__Path1_05 = null | |
rect gg_rct_Team2__Path1_06 = null | |
rect gg_rct_Team2__Path1_07 = null | |
rect gg_rct_Team2__Path1_08 = null | |
rect gg_rct_Team2__Path1_09 = null | |
rect gg_rct_Team2__Path1_10 = null | |
rect gg_rct_Team2__Path1_11 = null | |
rect gg_rct_Team2__Path1_12 = null | |
rect gg_rct_Team2__Path1_Start = null | |
rect gg_rct_Team2__Path2_01 = null | |
rect gg_rct_Team2__Path2_02 = null | |
rect gg_rct_Team2__Path2_03 = null | |
rect gg_rct_Team2__Path2_04 = null | |
rect gg_rct_Team2__Path2_05 = null | |
rect gg_rct_Team2__Path2_06 = null | |
rect gg_rct_Team2__Path2_07 = null | |
rect gg_rct_Team2__Path2_08 = null | |
rect gg_rct_Team2__Path2_09 = null | |
rect gg_rct_Team2__Path2_10 = null | |
rect gg_rct_Team2__Path2_11 = null | |
rect gg_rct_Team2__Path2_12 = null | |
rect gg_rct_Team2__Path2_13 = null | |
rect gg_rct_Team2__Path2_14 = null | |
rect gg_rct_Team2__Path2_15 = null | |
rect gg_rct_Team2__Path2_Start = null | |
rect gg_rct_Team2__Path3_01 = null | |
rect gg_rct_Team2__Path3_02 = null | |
rect gg_rct_Team2__Path3_03 = null | |
rect gg_rct_Team2__Path3_04 = null | |
rect gg_rct_Team2__Path3_05 = null | |
rect gg_rct_Team2__Path3_06 = null | |
rect gg_rct_Team2__Path3_07 = null | |
rect gg_rct_Team2__Path3_08 = null | |
rect gg_rct_Team2__Path3_09 = null | |
rect gg_rct_Team2__Path3_10 = null | |
rect gg_rct_Team2__Path3_11 = null | |
rect gg_rct_Team2__Path3_Start = null | |
rect gg_rct_Team2__Spawn = null | |
rect gg_rct_Team2__Spawn_Workers = null | |
rect gg_rct_Team3__End = null | |
rect gg_rct_Team3__Entrance = null | |
rect gg_rct_Team3__Entrance_Workers = null | |
rect gg_rct_Team3__Keep_Off = null | |
rect gg_rct_Team3__Path1_01 = null | |
rect gg_rct_Team3__Path1_02 = null | |
rect gg_rct_Team3__Path1_03 = null | |
rect gg_rct_Team3__Path1_04 = null | |
rect gg_rct_Team3__Path1_05 = null | |
rect gg_rct_Team3__Path1_06 = null | |
rect gg_rct_Team3__Path1_07 = null | |
rect gg_rct_Team3__Path1_08 = null | |
rect gg_rct_Team3__Path1_09 = null | |
rect gg_rct_Team3__Path1_10 = null | |
rect gg_rct_Team3__Path1_11 = null | |
rect gg_rct_Team3__Path1_12 = null | |
rect gg_rct_Team3__Path1_Start = null | |
rect gg_rct_Team3__Path2_01 = null | |
rect gg_rct_Team3__Path2_02 = null | |
rect gg_rct_Team3__Path2_03 = null | |
rect gg_rct_Team3__Path2_04 = null | |
rect gg_rct_Team3__Path2_05 = null | |
rect gg_rct_Team3__Path2_06 = null | |
rect gg_rct_Team3__Path2_07 = null | |
rect gg_rct_Team3__Path2_08 = null | |
rect gg_rct_Team3__Path2_09 = null | |
rect gg_rct_Team3__Path2_10 = null | |
rect gg_rct_Team3__Path2_11 = null | |
rect gg_rct_Team3__Path2_12 = null | |
rect gg_rct_Team3__Path2_13 = null | |
rect gg_rct_Team3__Path2_14 = null | |
rect gg_rct_Team3__Path2_15 = null | |
rect gg_rct_Team3__Path2_Start = null | |
rect gg_rct_Team3__Path3_01 = null | |
rect gg_rct_Team3__Path3_02 = null | |
rect gg_rct_Team3__Path3_03 = null | |
rect gg_rct_Team3__Path3_04 = null | |
rect gg_rct_Team3__Path3_05 = null | |
rect gg_rct_Team3__Path3_06 = null | |
rect gg_rct_Team3__Path3_07 = null | |
rect gg_rct_Team3__Path3_08 = null | |
rect gg_rct_Team3__Path3_09 = null | |
rect gg_rct_Team3__Path3_10 = null | |
rect gg_rct_Team3__Path3_Start = null | |
rect gg_rct_Team3__Spawn = null | |
rect gg_rct_Team3__Spawn_Workers = null | |
rect gg_rct_Team1__Attacker_Spawn = null | |
rect gg_rct_Team3__Attacker_Spawn = null | |
rect gg_rct_Team2__Attacker_Spawn = null | |
rect gg_rct_Player1_Shrine = null | |
rect gg_rct_Player2_New_Shrine = null | |
rect gg_rct_Player1_New_Shrine = null | |
sound gg_snd_GoodJob = null | |
trigger gg_trg_Init_Tips = null | |
trigger gg_trg_Tips_On = null | |
trigger gg_trg_Tips_Off = null | |
trigger gg_trg_Player1_Show_Tip = null | |
trigger gg_trg_Player2_Show_Tip = null | |
trigger gg_trg_Player3_Show_Tip = null | |
trigger gg_trg_Player4_Show_Tip = null | |
trigger gg_trg_Player5_Show_Tip = null | |
trigger gg_trg_Player6_Show_Tip = null | |
trigger gg_trg_Player7_Show_Tip = null | |
trigger gg_trg_Player8_Show_Tip = null | |
trigger gg_trg_Player9_Show_Tip = null | |
trigger gg_trg_Display_Profile_Message = null | |
trigger gg_trg_Player1_Repick = null | |
trigger gg_trg_Player2_Repick = null | |
trigger gg_trg_Player3_Repick = null | |
trigger gg_trg_Player4_Repick = null | |
trigger gg_trg_Player5_Repick = null | |
trigger gg_trg_Player6_Repick = null | |
trigger gg_trg_Player7_Repick = null | |
trigger gg_trg_Player8_Repick = null | |
trigger gg_trg_Player9_Repick = null | |
trigger gg_trg_Player1_Profile_Dialog = null | |
trigger gg_trg_Player2_Profile_Dialog = null | |
trigger gg_trg_Player3_Profile_Dialog = null | |
trigger gg_trg_Player4_Profile_Dialog = null | |
trigger gg_trg_Player5_Profile_Dialog = null | |
trigger gg_trg_Player6_Profile_Dialog = null | |
trigger gg_trg_Player7_Profile_Dialog = null | |
trigger gg_trg_Player8_Profile_Dialog = null | |
trigger gg_trg_Player9_Profile_Dialog = null | |
trigger gg_trg_Player1_Profile_Button1 = null | |
trigger gg_trg_Player2_Profile_Button1 = null | |
trigger gg_trg_Player3_Profile_Button1 = null | |
trigger gg_trg_Player4_Profile_Button1 = null | |
trigger gg_trg_Player5_Profile_Button1 = null | |
trigger gg_trg_Player6_Profile_Button1 = null | |
trigger gg_trg_Player7_Profile_Button1 = null | |
trigger gg_trg_Player8_Profile_Button1 = null | |
trigger gg_trg_Player9_Profile_Button1 = null | |
trigger gg_trg_Player1_Profile_Button2 = null | |
trigger gg_trg_Player2_Profile_Button2 = null | |
trigger gg_trg_Player3_Profile_Button2 = null | |
trigger gg_trg_Player4_Profile_Button2 = null | |
trigger gg_trg_Player5_Profile_Button2 = null | |
trigger gg_trg_Player6_Profile_Button2 = null | |
trigger gg_trg_Player7_Profile_Button2 = null | |
trigger gg_trg_Player8_Profile_Button2 = null | |
trigger gg_trg_Player9_Profile_Button2 = null | |
trigger gg_trg_Team1_Income_Setting = null | |
trigger gg_trg_Team2_Income_Setting = null | |
trigger gg_trg_Team3_Income_Setting = null | |
trigger gg_trg_Player1_ChangeIncome = null | |
trigger gg_trg_Player1_Timer_Dialog = null | |
trigger gg_trg_Player1_Timer_Button1 = null | |
trigger gg_trg_Player1_Timer_Button2 = null | |
trigger gg_trg_Player1_Timer_Button3 = null | |
trigger gg_trg_Player1_Timer_Button4 = null | |
trigger gg_trg_Player1_Timer_Button5 = null | |
trigger gg_trg_Init_Music_Array = null | |
trigger gg_trg_M01 = null | |
trigger gg_trg_M02 = null | |
trigger gg_trg_M03 = null | |
trigger gg_trg_M04 = null | |
trigger gg_trg_M05 = null | |
trigger gg_trg_M06 = null | |
trigger gg_trg_M07 = null | |
trigger gg_trg_M08 = null | |
trigger gg_trg_M09 = null | |
trigger gg_trg_M10 = null | |
trigger gg_trg_M11 = null | |
trigger gg_trg_M12 = null | |
trigger gg_trg_Mystic_Tower_Slow10 = null | |
trigger gg_trg_Mystic_Tower_Slow11 = null | |
trigger gg_trg_Mystic_Tower_Slow12 = null | |
trigger gg_trg_Split_Player1 = null | |
trigger gg_trg_Split_Player2 = null | |
trigger gg_trg_Split_Player3 = null | |
trigger gg_trg_Split_Player4 = null | |
trigger gg_trg_Split_Player5 = null | |
trigger gg_trg_Split_Player6 = null | |
trigger gg_trg_Split_Player7 = null | |
trigger gg_trg_Split_Player8 = null | |
trigger gg_trg_Split_Player9 = null | |
trigger gg_trg_Start_Income = null | |
trigger gg_trg_Check_Income = null | |
trigger gg_trg_Player1_Kill_Income = null | |
trigger gg_trg_Player2_Kill_Income = null | |
trigger gg_trg_Player3_Kill_Income = null | |
trigger gg_trg_Player4_Kill_Income = null | |
trigger gg_trg_Player5_Kill_Income = null | |
trigger gg_trg_Player6_Kill_Income = null | |
trigger gg_trg_Player7_Kill_Income = null | |
trigger gg_trg_Player8_Kill_Income = null | |
trigger gg_trg_Player9_Kill_Income = null | |
trigger gg_trg_Give_Income = null | |
trigger gg_trg_IncomeTime10 = null | |
trigger gg_trg_IncomeTime15 = null | |
trigger gg_trg_IncomeTime20 = null | |
trigger gg_trg_IncomeTime25 = null | |
trigger gg_trg_IncomeTime30 = null | |
trigger gg_trg_Player1_Deposit = null | |
trigger gg_trg_Player2_Deposit = null | |
trigger gg_trg_Player3_Deposit = null | |
trigger gg_trg_Player4_Deposit = null | |
trigger gg_trg_Player5_Deposit = null | |
trigger gg_trg_Player6_Deposit = null | |
trigger gg_trg_Player7_Deposit = null | |
trigger gg_trg_Player8_Deposit = null | |
trigger gg_trg_Player9_Deposit = null | |
trigger gg_trg_Player1_Withdrawal = null | |
trigger gg_trg_Player2_Withdrawal = null | |
trigger gg_trg_Player3_Withdrawal = null | |
trigger gg_trg_Player4_Withdrawal = null | |
trigger gg_trg_Player5_Withdrawal = null | |
trigger gg_trg_Player6_Withdrawal = null | |
trigger gg_trg_Player7_Withdrawal = null | |
trigger gg_trg_Player8_Withdrawal = null | |
trigger gg_trg_Player9_Withdrawal = null | |
trigger gg_trg_Upgrade_Player_1 = null | |
trigger gg_trg_Upgrade_Player_2 = null | |
trigger gg_trg_Upgrade_Player_3 = null | |
trigger gg_trg_Upgrade_Player_4 = null | |
trigger gg_trg_Upgrade_Player_5 = null | |
trigger gg_trg_Upgrade_Player_6 = null | |
trigger gg_trg_Upgrade_Player_7 = null | |
trigger gg_trg_Upgrade_Player_8 = null | |
trigger gg_trg_Upgrade_Player_9 = null | |
trigger gg_trg_Player1_Shrine = null | |
trigger gg_trg_Player2_Shrine = null | |
trigger gg_trg_Player3_Shrine = null | |
trigger gg_trg_Player4_Shrine = null | |
trigger gg_trg_Player5_Shrine = null | |
trigger gg_trg_Player6_Shrine = null | |
trigger gg_trg_Player7_Shrine = null | |
trigger gg_trg_Player8_Shrine = null | |
trigger gg_trg_Player9_Shrine = null | |
trigger gg_trg_Team1_Extra_Shrines = null | |
trigger gg_trg_Team2_Extra_Shrines = null | |
trigger gg_trg_Team3_Extra_Shrines = null | |
trigger gg_trg_Player1_Extra_Shrine = null | |
trigger gg_trg_Player2_Extra_Shrine = null | |
trigger gg_trg_Player3_Extra_Shrine = null | |
trigger gg_trg_Player4_Extra_Shrine = null | |
trigger gg_trg_Player5_Extra_Shrine = null | |
trigger gg_trg_Player6_Extra_Shrine = null | |
trigger gg_trg_Player7_Extra_Shrine = null | |
trigger gg_trg_Player8_Extra_Shrine = null | |
trigger gg_trg_Player9_Extra_Shrine = null | |
trigger gg_trg_Finalize_Player1 = null | |
trigger gg_trg_Finalize_Player2 = null | |
trigger gg_trg_Finalize_Player3 = null | |
trigger gg_trg_Finalize_Player4 = null | |
trigger gg_trg_Finalize_Player5 = null | |
trigger gg_trg_Finalize_Player6 = null | |
trigger gg_trg_Finalize_Player7 = null | |
trigger gg_trg_Finalize_Player8 = null | |
trigger gg_trg_Finalize_Player9 = null | |
trigger gg_trg_Init_Shrines = null | |
trigger gg_trg_Contact_Info = null | |
trigger gg_trg_Init_Music = null | |
trigger gg_trg_Quest = null | |
trigger gg_trg_Init = null | |
trigger gg_trg_Team1 = null | |
trigger gg_trg_Team2 = null | |
trigger gg_trg_Team3 = null | |
trigger gg_trg_Player1 = null | |
trigger gg_trg_Player2 = null | |
trigger gg_trg_Player3 = null | |
trigger gg_trg_Player4 = null | |
trigger gg_trg_Player5 = null | |
trigger gg_trg_Player6 = null | |
trigger gg_trg_Player7 = null | |
trigger gg_trg_Player8 = null | |
trigger gg_trg_Player9 = null | |
trigger gg_trg_Scoreboard = null | |
trigger gg_trg_Research = null | |
trigger gg_trg_Vision = null | |
trigger gg_trg_Team1_Defeat = null | |
trigger gg_trg_Team2_Defeat = null | |
trigger gg_trg_Team3_Defeat = null | |
trigger gg_trg_Team1_Victory = null | |
trigger gg_trg_Team2_Victory = null | |
trigger gg_trg_Team3_Victory = null | |
trigger gg_trg_Team1_Loses_a_life = null | |
trigger gg_trg_Team2_Loses_a_life = null | |
trigger gg_trg_Team3_Loses_a_life = null | |
trigger gg_trg_Team1_Move_Attackers = null | |
trigger gg_trg_Team1_Init_Creep_Array = null | |
trigger gg_trg_Team1_Sorter = null | |
trigger gg_trg_Team1_Sort_Spot_1 = null | |
trigger gg_trg_Team1_Sort_Spot_2 = null | |
trigger gg_trg_Team1_Sort_Spot_3 = null | |
trigger gg_trg_Team1_Spawn = null | |
trigger gg_trg_Team1_Move_Workers = null | |
trigger gg_trg_Team1_Path1_Start = null | |
trigger gg_trg_Team1_Path1_01 = null | |
trigger gg_trg_Team1_Path1_02 = null | |
trigger gg_trg_Team1_Path1_03 = null | |
trigger gg_trg_Team1_Path1_04 = null | |
trigger gg_trg_Team1_Path1_05 = null | |
trigger gg_trg_Team1_Path1_06 = null | |
trigger gg_trg_Team1_Path1_07 = null | |
trigger gg_trg_Team1_Path1_08 = null | |
trigger gg_trg_Team1_Path1_09 = null | |
trigger gg_trg_Team1_Path1_10 = null | |
trigger gg_trg_Team1_Path1_11 = null | |
trigger gg_trg_Team1_Path1_12 = null | |
trigger gg_trg_Team1_Path2_Start = null | |
trigger gg_trg_Team1_Path2_01 = null | |
trigger gg_trg_Team1_Path2_02 = null | |
trigger gg_trg_Team1_Path2_03 = null | |
trigger gg_trg_Team1_Path2_04 = null | |
trigger gg_trg_Team1_Path2_05 = null | |
trigger gg_trg_Team1_Path2_06 = null | |
trigger gg_trg_Team1_Path2_07 = null | |
trigger gg_trg_Team1_Path2_08 = null | |
trigger gg_trg_Team1_Path2_09 = null | |
trigger gg_trg_Team1_Path2_10 = null | |
trigger gg_trg_Team1_Path2_11 = null | |
trigger gg_trg_Team1_Path2_12 = null | |
trigger gg_trg_Team1_Path2_13 = null | |
trigger gg_trg_Team1_Path2_14 = null | |
trigger gg_trg_Team1_Path2_15 = null | |
trigger gg_trg_Team1_Path3_Start = null | |
trigger gg_trg_Team1_Path3_01 = null | |
trigger gg_trg_Team1_Path3_02 = null | |
trigger gg_trg_Team1_Path3_03 = null | |
trigger gg_trg_Team1_Path3_04 = null | |
trigger gg_trg_Team1_Path3_05 = null | |
trigger gg_trg_Team1_Path3_06 = null | |
trigger gg_trg_Team1_Path3_07 = null | |
trigger gg_trg_Team1_Path3_08 = null | |
trigger gg_trg_Team1_Path3_09 = null | |
trigger gg_trg_Team1_Path3_10 = null | |
trigger gg_trg_Team1_End = null | |
trigger gg_trg_Team2_Move_Attackers = null | |
trigger gg_trg_Team2_Init_Creep_Array = null | |
trigger gg_trg_Team2_Sorter = null | |
trigger gg_trg_Team2_Sort_Spot_1 = null | |
trigger gg_trg_Team2_Sort_Spot_2 = null | |
trigger gg_trg_Team2_Sort_Spot_3 = null | |
trigger gg_trg_Team2_Spawn = null | |
trigger gg_trg_Team2_Move_Workers = null | |
trigger gg_trg_Team2_Path1_Start = null | |
trigger gg_trg_Team2_Path1_01 = null | |
trigger gg_trg_Team2_Path1_02 = null | |
trigger gg_trg_Team2_Path1_03 = null | |
trigger gg_trg_Team2_Path1_04 = null | |
trigger gg_trg_Team2_Path1_05 = null | |
trigger gg_trg_Team2_Path1_06 = null | |
trigger gg_trg_Team2_Path1_07 = null | |
trigger gg_trg_Team2_Path1_08 = null | |
trigger gg_trg_Team2_Path1_09 = null | |
trigger gg_trg_Team2_Path1_10 = null | |
trigger gg_trg_Team2_Path1_11 = null | |
trigger gg_trg_Team2_Path1_12 = null | |
trigger gg_trg_Team2_Path2_Start = null | |
trigger gg_trg_Team2_Path2_01 = null | |
trigger gg_trg_Team2_Path2_02 = null | |
trigger gg_trg_Team2_Path2_03 = null | |
trigger gg_trg_Team2_Path2_04 = null | |
trigger gg_trg_Team2_Path2_05 = null | |
trigger gg_trg_Team2_Path2_06 = null | |
trigger gg_trg_Team2_Path2_07 = null | |
trigger gg_trg_Team2_Path2_08 = null | |
trigger gg_trg_Team2_Path2_09 = null | |
trigger gg_trg_Team2_Path2_10 = null | |
trigger gg_trg_Team2_Path2_11 = null | |
trigger gg_trg_Team2_Path2_12 = null | |
trigger gg_trg_Team2_Path2_13 = null | |
trigger gg_trg_Team2_Path2_14 = null | |
trigger gg_trg_Team2_Path2_15 = null | |
trigger gg_trg_Team2_Path3_Start = null | |
trigger gg_trg_Team2_Path3_01 = null | |
trigger gg_trg_Team2_Path3_02 = null | |
trigger gg_trg_Team2_Path3_03 = null | |
trigger gg_trg_Team2_Path3_04 = null | |
trigger gg_trg_Team2_Path3_05 = null | |
trigger gg_trg_Team2_Path3_06 = null | |
trigger gg_trg_Team2_Path3_07 = null | |
trigger gg_trg_Team2_Path3_08 = null | |
trigger gg_trg_Team2_Path3_09 = null | |
trigger gg_trg_Team2_Path3_10 = null | |
trigger gg_trg_Team2_Path3_11 = null | |
trigger gg_trg_Team2_End = null | |
trigger gg_trg_Team3_Move_Attackers = null | |
trigger gg_trg_Team3_Init_Creep_Array = null | |
trigger gg_trg_Team2_Sorter_Copy = null | |
trigger gg_trg_Team3_Sort_Spot_1 = null | |
trigger gg_trg_Team3_Sort_Spot_2 = null | |
trigger gg_trg_Team3_Sort_Spot_3 = null | |
trigger gg_trg_Team3_Spawn = null | |
trigger gg_trg_Team3_Move_Workers = null | |
trigger gg_trg_Team3_Path1_Start = null | |
trigger gg_trg_Team3_Path1_01 = null | |
trigger gg_trg_Team3_Path1_02 = null | |
trigger gg_trg_Team3_Path1_03 = null | |
trigger gg_trg_Team3_Path1_04 = null | |
trigger gg_trg_Team3_Path1_05 = null | |
trigger gg_trg_Team3_Path1_06 = null | |
trigger gg_trg_Team3_Path1_07 = null | |
trigger gg_trg_Team3_Path1_08 = null | |
trigger gg_trg_Team3_Path1_09 = null | |
trigger gg_trg_Team3_Path1_10 = null | |
trigger gg_trg_Team3_Path1_11 = null | |
trigger gg_trg_Team3_Path1_12 = null | |
trigger gg_trg_Team3_Path2_Start = null | |
trigger gg_trg_Team3_Path2_01 = null | |
trigger gg_trg_Team3_Path2_02 = null | |
trigger gg_trg_Team3_Path2_03 = null | |
trigger gg_trg_Team3_Path2_04 = null | |
trigger gg_trg_Team3_Path2_05 = null | |
trigger gg_trg_Team3_Path2_06 = null | |
trigger gg_trg_Team3_Path2_07 = null | |
trigger gg_trg_Team3_Path2_08 = null | |
trigger gg_trg_Team3_Path2_09 = null | |
trigger gg_trg_Team3_Path2_10 = null | |
trigger gg_trg_Team3_Path2_11 = null | |
trigger gg_trg_Team3_Path2_12 = null | |
trigger gg_trg_Team3_Path2_13 = null | |
trigger gg_trg_Team3_Path2_14 = null | |
trigger gg_trg_Team3_Path2_15 = null | |
trigger gg_trg_Team3_Path3_Start = null | |
trigger gg_trg_Team3_Path3_01 = null | |
trigger gg_trg_Team3_Path3_02 = null | |
trigger gg_trg_Team3_Path3_03 = null | |
trigger gg_trg_Team3_Path3_04 = null | |
trigger gg_trg_Team3_Path3_05 = null | |
trigger gg_trg_Team3_Path3_06 = null | |
trigger gg_trg_Team3_Path3_07 = null | |
trigger gg_trg_Team3_Path3_08 = null | |
trigger gg_trg_Team3_Path3_09 = null | |
trigger gg_trg_Team3_Path3_10 = null | |
trigger gg_trg_Team3_End = null | |
trigger gg_trg_Team1_Transport = null | |
trigger gg_trg_Team2_Transport = null | |
trigger gg_trg_Team3_Transport = null | |
trigger gg_trg_Clear_all_Dialogs = null | |
trigger gg_trg_Team1_Give_Gold = null | |
trigger gg_trg_Team2_Give_Gold = null | |
trigger gg_trg_Team3_Give_Gold = null | |
trigger gg_trg_Team1_Give_All_Gold = null | |
trigger gg_trg_Team2_Give_All_Gold = null | |
trigger gg_trg_Team3_Give_All_Gold = null | |
trigger gg_trg_Team1_Give_Lumber = null | |
trigger gg_trg_Team2_Give_Lumber = null | |
trigger gg_trg_Team3_Give_Lumber = null | |
trigger gg_trg_Sell = null | |
trigger gg_trg_Team1_Keep_Off = null | |
trigger gg_trg_Team2_Keep_Off = null | |
trigger gg_trg_Team3_Keep_Off = null | |
trigger gg_trg_Team3_Cancel_Repick = null | |
trigger gg_trg_Team2_Cancel_Repick = null | |
trigger gg_trg_Team1_Cancel_Repick = null | |
trigger gg_trg_Cancel_ChangeIncome = null | |
trigger gg_trg_Team3_Start_Repick_Timer = null | |
trigger gg_trg_Team2_Start_Repick_Timer = null | |
trigger gg_trg_Team1_Start_Repick_Timer = null | |
trigger gg_trg_Start_ChangeIncome_Timer = null | |
trigger gg_trg_Death_Player_10 = null | |
trigger gg_trg_Team1_Bounty_1 = null | |
trigger gg_trg_Team1_Bounty_2 = null | |
trigger gg_trg_Team1_Bounty_3 = null | |
trigger gg_trg_Death_Player_11 = null | |
trigger gg_trg_Team2_Bounty_1 = null | |
trigger gg_trg_Team2_Bounty_2 = null | |
trigger gg_trg_Team2_Bounty_3 = null | |
trigger gg_trg_Death_Player_12 = null | |
trigger gg_trg_Team3_Bounty_1 = null | |
trigger gg_trg_Team3_Bounty_2 = null | |
trigger gg_trg_Team3_Bounty_3 = null | |
trigger gg_trg_Init_Repick_Timers = null | |
trigger gg_trg_Cancel_GameStartTimer = null | |
trigger gg_trg_Start_GameStart_Timer = null | |
endglobals | |
function InitGlobals takes nothing returns nothing | |
local integer i = 0 | |
set i = 0 | |
loop | |
exitwhen (i > 1) | |
set udg_Income[i] = 0 | |
set i = i + 1 | |
endloop | |
set udg_Team1Lives = 0 | |
set udg_Team2Lives = 0 | |
set udg_Team3Lives = 0 | |
set i = 0 | |
loop | |
exitwhen (i > 1) | |
set udg_PlayerGroups[i] = CreateForce() | |
set i = i + 1 | |
endloop | |
set i = 0 | |
loop | |
exitwhen (i > 1) | |
set udg_TeamIncome[i] = 0 | |
set i = i + 1 | |
endloop | |
set i = 0 | |
loop | |
exitwhen (i > 1) | |
set udg_Teams[i] = 0 | |
set i = i + 1 | |
endloop | |
set udg_IncomeTimer = CreateTimer() | |
set udg_Team2Creeps = 0 | |
set udg_Team1Creeps = 0 | |
set udg_Team3Creeps = 0 | |
set udg_Team1Sorter = 0 | |
set udg_IncomeLeader = "" | |
set udg_Team1Group = CreateForce() | |
set udg_Team2Group = CreateForce() | |
set udg_Team3Group = CreateForce() | |
set udg_Team2Sorter = 0 | |
set udg_Team3Sorter = 0 | |
set udg_TestString = "" | |
set udg_Player1ProfileDialog = DialogCreate() | |
set i = 0 | |
loop | |
exitwhen (i > 1) | |
set udg_Profiles[i] = 0 | |
set i = i + 1 | |
endloop | |
set udg_Player4ProfileDialog = DialogCreate() | |
set udg_Player2ProfileDialog = DialogCreate() | |
set udg_Player3ProfileDialog = DialogCreate() | |
set udg_Player5ProfileDialog = DialogCreate() | |
set udg_Player6ProfileDialog = DialogCreate() | |
set udg_Player7ProfileDialog = DialogCreate() | |
set udg_Player8ProfileDialog = DialogCreate() | |
set udg_Player9ProfileDialog = DialogCreate() | |
set i = 0 | |
loop | |
exitwhen (i > 1) | |
set udg_Tips[i] = "" | |
set i = i + 1 | |
endloop | |
set udg_TipSwitch = true | |
set i = 0 | |
loop | |
exitwhen (i > 1) | |
set udg_Bounty[i] = 0 | |
set i = i + 1 | |
endloop | |
set udg_IncomeTime = 29.00 | |
set udg_TimerDialog = DialogCreate() | |
set udg_ProfileDialogButton1Text = "" | |
set udg_ProfileDialogButton2Text = "" | |
set udg_ProfileDialogText = "" | |
set udg_ProfileDialogButton1Label = "|c00ff0000Summoner|r" | |
set udg_ProfileDialogButton2Label = " - |cff32cd32Defender|r" | |
set i = 0 | |
loop | |
exitwhen (i > 1) | |
set udg_RepickAllowed[i] = false | |
set i = i + 1 | |
endloop | |
set udg_RepickDenied = "|c00ff0000Repicked Denied|r: You may only change your profile when the repick timer is showing." | |
set i = 0 | |
loop | |
exitwhen (i > 1) | |
set udg_Defenders[i] = 0 | |
set i = i + 1 | |
endloop | |
set udg_ProfileDialogButton2LabelAlt = "Not Available - |cff32cd32Defender|r" | |
set udg_TimerDialogRedMessage = "" | |
set udg_GameStartTimer = CreateTimer() | |
set i = 0 | |
loop | |
exitwhen (i > 1) | |
set udg_ProfileSet[i] = false | |
set i = i + 1 | |
endloop | |
set i = 0 | |
loop | |
exitwhen (i > 1) | |
set udg_PlayerProfiles[i] = "" | |
set i = i + 1 | |
endloop | |
set udg_ProfileSummonerText = "[|c00ff0000Summoner|r] - " | |
set udg_ProfileDefenderText = "[|cff32cd32Defender|r ] - " | |
set udg_DefenderKillPercentage = 2.50 | |
set i = 0 | |
loop | |
exitwhen (i > 1) | |
set udg_TipsOn[i] = false | |
set i = i + 1 | |
endloop | |
set udg_TipMax = 38 | |
set udg_ProfileDeclarationSummoner = " has chosen the |c00ff0000Summoner|r profile." | |
set udg_ProfileDeclarationDefender = " has chosen the |cff32cd32Defender|r profile." | |
set udg_Team1Summoners = CreateForce() | |
set udg_Team2Summoners = CreateForce() | |
set udg_Team3Summoners = CreateForce() | |
set udg_Team1Defenders = CreateForce() | |
set udg_Team2Defenders = CreateForce() | |
set udg_Team3Defenders = CreateForce() | |
set udg_StartingGold = 150 | |
set udg_DefeatMessage = "****|cffdddd32You have been defeated, but you may stay and watch the rest of the game.|r****" | |
set udg_StartingIncome = 50.00 | |
set i = 0 | |
loop | |
exitwhen (i > 1) | |
set udg_IncomeSettingsText[i] = "" | |
set i = i + 1 | |
endloop | |
set i = 0 | |
loop | |
exitwhen (i > 1) | |
set udg_IncomeSettingsIncome[i] = 0 | |
set i = i + 1 | |
endloop | |
set i = 0 | |
loop | |
exitwhen (i > 1) | |
set udg_IncomeSettingsGold[i] = 0 | |
set i = i + 1 | |
endloop | |
set i = 0 | |
loop | |
exitwhen (i > 1) | |
set udg_PlayerNumbers[i] = "" | |
set i = i + 1 | |
endloop | |
set udg_RepickMessage = "One of your team has left the game, you have 5 minutes to change your profile if you wish. Type \"-repick\" to repick your profile." | |
set udg_Team1RepickTimer = CreateTimer() | |
set udg_Team2RepickTimer = CreateTimer() | |
set udg_Team3RepickTimer = CreateTimer() | |
set udg_ChangeIncomeAllowed = true | |
set udg_ChangeIncomeTimer = CreateTimer() | |
endfunction | |
//*************************************************************************** | |
//* | |
//* Sounds | |
//* | |
//*************************************************************************** | |
function InitSounds takes nothing returns nothing | |
set gg_snd_GoodJob = CreateSound( "Sound\\Interface\\GoodJob.wav", false, false, false, 10, 10, "DefaultEAXON" ) | |
call SetSoundParamsFromLabel( gg_snd_GoodJob, "GoodJob" ) | |
call SetSoundDuration( gg_snd_GoodJob, 2548 ) | |
call SetSoundVolume( gg_snd_GoodJob, 110 ) | |
call SetSoundPitch( gg_snd_GoodJob, 2.0 ) | |
endfunction | |
//*************************************************************************** | |
//* | |
//* Regions | |
//* | |
//*************************************************************************** | |
function CreateRegions takes nothing returns nothing | |
local weathereffect we | |
set gg_rct_Center_Death = Rect( -352.0, -3392.0, 320.0, -3136.0 ) | |
set gg_rct_Player1_Defenses = Rect( -2784.0, -4384.0, -2624.0, -4224.0 ) | |
set gg_rct_Player1_Income_Level = Rect( -2784.0, -4128.0, -2624.0, -3968.0 ) | |
set gg_rct_Player2_Defenses = Rect( -2272.0, -4384.0, -2112.0, -4224.0 ) | |
set gg_rct_Player2_Income_Level = Rect( -2272.0, -4128.0, -2112.0, -3968.0 ) | |
set gg_rct_Player2_Shrine = Rect( -2272.0, -4992.0, -2112.0, -4832.0 ) | |
set gg_rct_Player3_Defenses = Rect( -1792.0, -4384.0, -1632.0, -4224.0 ) | |
set gg_rct_Player3_Income_Level = Rect( -1792.0, -4128.0, -1632.0, -3968.0 ) | |
set gg_rct_Player3_New_Shrine = Rect( -2144.0, -5312.0, -1856.0, -5056.0 ) | |
set gg_rct_Player3_Shrine = Rect( -1792.0, -4992.0, -1632.0, -4832.0 ) | |
set gg_rct_Player4_Defenses = Rect( -544.0, -4384.0, -384.0, -4224.0 ) | |
set gg_rct_Player4_Income_Level = Rect( -576.0, -4064.0, -416.0, -3904.0 ) | |
set gg_rct_Player4_New_Shrine = Rect( -896.0, -5312.0, -608.0, -5056.0 ) | |
set gg_rct_Player4_Shrine = Rect( -544.0, -4992.0, -384.0, -4832.0 ) | |
set gg_rct_Player5_Defenses = Rect( -32.0, -4384.0, 128.0, -4224.0 ) | |
set gg_rct_Player5_Income_Level = Rect( -32.0, -4064.0, 128.0, -3904.0 ) | |
set gg_rct_Player5_New_Shrine = Rect( -384.0, -5312.0, -96.0, -5056.0 ) | |
set gg_rct_Player5_Shrine = Rect( -32.0, -4992.0, 128.0, -4832.0 ) | |
set gg_rct_Player6_Defenses = Rect( 448.0, -4384.0, 608.0, -4224.0 ) | |
set gg_rct_Player6_Income_Level = Rect( 448.0, -4064.0, 608.0, -3904.0 ) | |
set gg_rct_Player6_New_Shrine = Rect( 64.0, -5312.0, 352.0, -5056.0 ) | |
set gg_rct_Player6_Shrine = Rect( 448.0, -4992.0, 608.0, -4832.0 ) | |
set gg_rct_Player7_Defenses = Rect( 1824.0, -4384.0, 1984.0, -4224.0 ) | |
set gg_rct_Player7_Income_Level = Rect( 1824.0, -4128.0, 1984.0, -3968.0 ) | |
set gg_rct_Player7_New_Shrine = Rect( 1472.0, -5312.0, 1760.0, -5056.0 ) | |
set gg_rct_Player7_Shrine = Rect( 1824.0, -4992.0, 1984.0, -4832.0 ) | |
set gg_rct_Player8_Defenses = Rect( 2336.0, -4384.0, 2496.0, -4224.0 ) | |
set gg_rct_Player8_Income_Level = Rect( 2336.0, -4128.0, 2496.0, -3968.0 ) | |
set gg_rct_Player8_New_Shrine = Rect( 1984.0, -5312.0, 2272.0, -5056.0 ) | |
set gg_rct_Player8_Shrine = Rect( 2336.0, -4992.0, 2496.0, -4832.0 ) | |
set gg_rct_Player9_Defenses = Rect( 2816.0, -4384.0, 2976.0, -4224.0 ) | |
set gg_rct_Player9_Income_Level = Rect( 2816.0, -4128.0, 2976.0, -3968.0 ) | |
set gg_rct_Player9_New_Shrine = Rect( 2464.0, -5312.0, 2752.0, -5056.0 ) | |
set gg_rct_Player9_Shrine = Rect( 2816.0, -4992.0, 2976.0, -4832.0 ) | |
set gg_rct_Team1__End = Rect( -288.0, -480.0, -128.0, -256.0 ) | |
set gg_rct_Team1__Entrance = Rect( -5248.0, 4096.0, -3840.0, 4992.0 ) | |
set gg_rct_Team1__Entrance_Workers = Rect( -4640.0, -896.0, -4160.0, -448.0 ) | |
set gg_rct_Team1__Keep_Off = Rect( -448.0, -640.0, -320.0, 416.0 ) | |
set gg_rct_Team1__Path1_01 = Rect( -4000.0, 2592.0, -3808.0, 2816.0 ) | |
set gg_rct_Team1__Path1_02 = Rect( -4000.0, 64.0, -3776.0, 224.0 ) | |
set gg_rct_Team1__Path1_03 = Rect( -3456.0, 64.0, -3296.0, 224.0 ) | |
set gg_rct_Team1__Path1_04 = Rect( -3424.0, 2432.0, -3200.0, 2624.0 ) | |
set gg_rct_Team1__Path1_05 = Rect( -1216.0, 64.0, -960.0, 224.0 ) | |
set gg_rct_Team1__Path1_06 = Rect( -1984.0, 96.0, -1824.0, 320.0 ) | |
set gg_rct_Team1__Path1_07 = Rect( -2368.0, 448.0, -2208.0, 672.0 ) | |
set gg_rct_Team1__Path1_08 = Rect( -2880.0, 448.0, -2720.0, 672.0 ) | |
set gg_rct_Team1__Path1_09 = Rect( -2880.0, -1952.0, -2656.0, -1792.0 ) | |
set gg_rct_Team1__Path1_10 = Rect( -2464.0, -1632.0, -2304.0, -1472.0 ) | |
set gg_rct_Team1__Path1_11 = Rect( -1792.0, -896.0, -1632.0, -736.0 ) | |
set gg_rct_Team1__Path1_12 = Rect( -1120.0, -224.0, -864.0, -64.0 ) | |
set gg_rct_Team1__Path1_Start = Rect( -4160.0, 3264.0, -3744.0, 3968.0 ) | |
set gg_rct_Team1__Path2_01 = Rect( -4512.0, 2592.0, -4320.0, 2816.0 ) | |
set gg_rct_Team1__Path2_02 = Rect( -4512.0, -320.0, -4320.0, -160.0 ) | |
set gg_rct_Team1__Path2_03 = Rect( -3360.0, -320.0, -3200.0, -96.0 ) | |
set gg_rct_Team1__Path2_04 = Rect( -3104.0, -160.0, -2944.0, 64.0 ) | |
set gg_rct_Team1__Path2_05 = Rect( -2304.0, -160.0, -2144.0, 64.0 ) | |
set gg_rct_Team1__Path2_06 = Rect( -2336.0, -832.0, -2144.0, -672.0 ) | |
set gg_rct_Team1__Path2_07 = Rect( -3392.0, -832.0, -3232.0, -608.0 ) | |
set gg_rct_Team1__Path2_08 = Rect( -3424.0, -1216.0, -3232.0, -1056.0 ) | |
set gg_rct_Team1__Path2_09 = Rect( -4416.0, -1184.0, -4256.0, -992.0 ) | |
set gg_rct_Team1__Path2_10 = Rect( -4416.0, -3200.0, -4160.0, -3040.0 ) | |
set gg_rct_Team1__Path2_11 = Rect( -4000.0, -3168.0, -3840.0, -3008.0 ) | |
set gg_rct_Team1__Path2_12 = Rect( -3488.0, -2688.0, -3328.0, -2528.0 ) | |
set gg_rct_Team1__Path2_13 = Rect( -2656.0, -2016.0, -2496.0, -1856.0 ) | |
set gg_rct_Team1__Path2_14 = Rect( -1824.0, -1216.0, -1664.0, -1056.0 ) | |
set gg_rct_Team1__Path2_15 = Rect( -1088.0, -384.0, -832.0, -224.0 ) | |
set gg_rct_Team1__Path2_Start = Rect( -4672.0, 3264.0, -4160.0, 3968.0 ) | |
set gg_rct_Team1__Path3_01 = Rect( -5024.0, 2592.0, -4832.0, 2816.0 ) | |
set gg_rct_Team1__Path3_02 = Rect( -5056.0, -1856.0, -4832.0, -1696.0 ) | |
set gg_rct_Team1__Path3_03 = Rect( -3232.0, -1920.0, -3008.0, -1664.0 ) | |
set gg_rct_Team1__Path3_04 = Rect( -3936.0, -2624.0, -3712.0, -2464.0 ) | |
set gg_rct_Team1__Path3_05 = Rect( -5056.0, -2624.0, -4896.0, -2400.0 ) | |
set gg_rct_Team1__Path3_06 = Rect( -4992.0, -3392.0, -4768.0, -3264.0 ) | |
set gg_rct_Team1__Path3_07 = Rect( -3776.0, -3392.0, -3584.0, -3200.0 ) | |
set gg_rct_Team1__Path3_08 = Rect( -2496.0, -2144.0, -2336.0, -1984.0 ) | |
set gg_rct_Team1__Path3_09 = Rect( -1696.0, -1344.0, -1536.0, -1184.0 ) | |
set gg_rct_Team1__Path3_10 = Rect( -1024.0, -576.0, -768.0, -416.0 ) | |
set gg_rct_Team1__Path3_Start = Rect( -5248.0, 3264.0, -4672.0, 3968.0 ) | |
set gg_rct_Team1__Spawn = Rect( -3424.0, -5632.0, -1184.0, -4384.0 ) | |
set gg_rct_Team1__Spawn_Workers = Rect( -3200.0, -4608.0, -1408.0, -3808.0 ) | |
set gg_rct_Team2__End = Rect( -96.0, -192.0, 64.0, 32.0 ) | |
set gg_rct_Team2__Entrance = Rect( 4352.0, 3712.0, 5248.0, 4992.0 ) | |
set gg_rct_Team2__Entrance_Workers = Rect( -896.0, 3840.0, -416.0, 4288.0 ) | |
set gg_rct_Team2__Keep_Off = Rect( -448.0, 192.0, 544.0, 320.0 ) | |
set gg_rct_Team2__Path1_01 = Rect( 2720.0, 3552.0, 2944.0, 3744.0 ) | |
set gg_rct_Team2__Path1_02 = Rect( 192.0, 3520.0, 352.0, 3744.0 ) | |
set gg_rct_Team2__Path1_03 = Rect( 224.0, 3008.0, 384.0, 3168.0 ) | |
set gg_rct_Team2__Path1_04 = Rect( 2560.0, 2976.0, 2752.0, 3200.0 ) | |
set gg_rct_Team2__Path1_05 = Rect( 320.0, 832.0, 480.0, 1120.0 ) | |
set gg_rct_Team2__Path1_06 = Rect( 320.0, 1664.0, 544.0, 1824.0 ) | |
set gg_rct_Team2__Path1_07 = Rect( 608.0, 1984.0, 832.0, 2144.0 ) | |
set gg_rct_Team2__Path1_08 = Rect( 608.0, 2464.0, 800.0, 2624.0 ) | |
set gg_rct_Team2__Path1_09 = Rect( -1824.0, 2368.0, -1664.0, 2624.0 ) | |
set gg_rct_Team2__Path1_10 = Rect( -1408.0, 1952.0, -1248.0, 2112.0 ) | |
set gg_rct_Team2__Path1_11 = Rect( -768.0, 1376.0, -608.0, 1536.0 ) | |
set gg_rct_Team2__Path1_12 = Rect( -96.0, 608.0, 64.0, 896.0 ) | |
set gg_rct_Team2__Path1_Start = Rect( 3488.0, 3584.0, 4224.0, 3968.0 ) | |
set gg_rct_Team2__Path2_01 = Rect( 2720.0, 4064.0, 2944.0, 4256.0 ) | |
set gg_rct_Team2__Path2_02 = Rect( -192.0, 4032.0, -32.0, 4256.0 ) | |
set gg_rct_Team2__Path2_03 = Rect( -192.0, 2880.0, 0.0, 3040.0 ) | |
set gg_rct_Team2__Path2_04 = Rect( 0.0, 2656.0, 192.0, 2816.0 ) | |
set gg_rct_Team2__Path2_05 = Rect( -64.0, 1856.0, 160.0, 2016.0 ) | |
set gg_rct_Team2__Path2_06 = Rect( -704.0, 1856.0, -544.0, 2080.0 ) | |
set gg_rct_Team2__Path2_07 = Rect( -800.0, 2976.0, -608.0, 3136.0 ) | |
set gg_rct_Team2__Path2_08 = Rect( -1216.0, 2944.0, -1056.0, 3136.0 ) | |
set gg_rct_Team2__Path2_09 = Rect( -1184.0, 4000.0, -992.0, 4160.0 ) | |
set gg_rct_Team2__Path2_10 = Rect( -3200.0, 3904.0, -3040.0, 4160.0 ) | |
set gg_rct_Team2__Path2_11 = Rect( -3136.0, 3584.0, -2976.0, 3744.0 ) | |
set gg_rct_Team2__Path2_12 = Rect( -2528.0, 3008.0, -2400.0, 3168.0 ) | |
set gg_rct_Team2__Path2_13 = Rect( -1856.0, 2208.0, -1696.0, 2368.0 ) | |
set gg_rct_Team2__Path2_14 = Rect( -928.0, 1280.0, -768.0, 1440.0 ) | |
set gg_rct_Team2__Path2_15 = Rect( -256.0, 544.0, -96.0, 832.0 ) | |
set gg_rct_Team2__Path2_Start = Rect( 3488.0, 3968.0, 4224.0, 4416.0 ) | |
set gg_rct_Team2__Path3_01 = Rect( 2720.0, 4576.0, 2944.0, 4768.0 ) | |
set gg_rct_Team2__Path3_02 = Rect( -1856.0, 4544.0, -1696.0, 4768.0 ) | |
set gg_rct_Team2__Path3_03 = Rect( -1920.0, 2752.0, -1664.0, 2944.0 ) | |
set gg_rct_Team2__Path3_04 = Rect( -2624.0, 3584.0, -2432.0, 3744.0 ) | |
set gg_rct_Team2__Path3_05 = Rect( -2592.0, 4640.0, -2400.0, 4800.0 ) | |
set gg_rct_Team2__Path3_06 = Rect( -3392.0, 4512.0, -3264.0, 4736.0 ) | |
set gg_rct_Team2__Path3_07 = Rect( -3392.0, 3456.0, -3232.0, 3616.0 ) | |
set gg_rct_Team2__Path3_08 = Rect( -2592.0, 2688.0, -2432.0, 2848.0 ) | |
set gg_rct_Team2__Path3_09 = Rect( -1984.0, 2080.0, -1824.0, 2240.0 ) | |
set gg_rct_Team2__Path3_10 = Rect( -1056.0, 1152.0, -896.0, 1312.0 ) | |
set gg_rct_Team2__Path3_11 = Rect( -448.0, 480.0, -288.0, 768.0 ) | |
set gg_rct_Team2__Path3_Start = Rect( 3488.0, 4416.0, 4224.0, 4960.0 ) | |
set gg_rct_Team2__Spawn = Rect( -1056.0, -5632.0, 1152.0, -4448.0 ) | |
set gg_rct_Team2__Spawn_Workers = Rect( -896.0, -4736.0, 928.0, -3808.0 ) | |
set gg_rct_Team3__End = Rect( 64.0, -64.0, 224.0, 192.0 ) | |
set gg_rct_Team3__Entrance = Rect( 3968.0, -5504.0, 5248.0, -4608.0 ) | |
set gg_rct_Team3__Entrance_Workers = Rect( 4128.0, 224.0, 4608.0, 672.0 ) | |
set gg_rct_Team3__Keep_Off = Rect( 256.0, -736.0, 384.0, 288.0 ) | |
set gg_rct_Team3__Path1_01 = Rect( 3808.0, -3104.0, 4000.0, -2880.0 ) | |
set gg_rct_Team3__Path1_02 = Rect( 3776.0, -480.0, 4000.0, -320.0 ) | |
set gg_rct_Team3__Path1_03 = Rect( 3264.0, -544.0, 3424.0, -352.0 ) | |
set gg_rct_Team3__Path1_04 = Rect( 3232.0, -2880.0, 3456.0, -2688.0 ) | |
set gg_rct_Team3__Path1_05 = Rect( 960.0, -608.0, 1248.0, -448.0 ) | |
set gg_rct_Team3__Path1_06 = Rect( 1824.0, -704.0, 1984.0, -480.0 ) | |
set gg_rct_Team3__Path1_07 = Rect( 2240.0, -1088.0, 2400.0, -864.0 ) | |
set gg_rct_Team3__Path1_08 = Rect( 2720.0, -1056.0, 2880.0, -864.0 ) | |
set gg_rct_Team3__Path1_09 = Rect( 2656.0, 1472.0, 2880.0, 1632.0 ) | |
set gg_rct_Team3__Path1_10 = Rect( 2272.0, 1056.0, 2432.0, 1216.0 ) | |
set gg_rct_Team3__Path1_11 = Rect( 1664.0, 480.0, 1824.0, 640.0 ) | |
set gg_rct_Team3__Path1_12 = Rect( 736.0, -320.0, 992.0, -160.0 ) | |
set gg_rct_Team3__Path1_Start = Rect( 3872.0, -4480.0, 4256.0, -3776.0 ) | |
set gg_rct_Team3__Path2_01 = Rect( 4320.0, -3104.0, 4512.0, -2880.0 ) | |
set gg_rct_Team3__Path2_02 = Rect( 4288.0, -96.0, 4512.0, 64.0 ) | |
set gg_rct_Team3__Path2_03 = Rect( 3200.0, -160.0, 3360.0, 32.0 ) | |
set gg_rct_Team3__Path2_04 = Rect( 2944.0, -320.0, 3104.0, -96.0 ) | |
set gg_rct_Team3__Path2_05 = Rect( 2112.0, -320.0, 2272.0, -96.0 ) | |
set gg_rct_Team3__Path2_06 = Rect( 2112.0, 384.0, 2336.0, 544.0 ) | |
set gg_rct_Team3__Path2_07 = Rect( 3232.0, 352.0, 3392.0, 544.0 ) | |
set gg_rct_Team3__Path2_08 = Rect( 3168.0, 800.0, 3360.0, 960.0 ) | |
set gg_rct_Team3__Path2_09 = Rect( 4256.0, 704.0, 4416.0, 896.0 ) | |
set gg_rct_Team3__Path2_10 = Rect( 4192.0, 2784.0, 4416.0, 2976.0 ) | |
set gg_rct_Team3__Path2_11 = Rect( 3808.0, 2720.0, 3968.0, 2880.0 ) | |
set gg_rct_Team3__Path2_12 = Rect( 3328.0, 2240.0, 3488.0, 2400.0 ) | |
set gg_rct_Team3__Path2_13 = Rect( 2496.0, 1536.0, 2656.0, 1696.0 ) | |
set gg_rct_Team3__Path2_14 = Rect( 1536.0, 640.0, 1696.0, 800.0 ) | |
set gg_rct_Team3__Path2_15 = Rect( 640.0, -160.0, 896.0, 0.0 ) | |
set gg_rct_Team3__Path2_Start = Rect( 4256.0, -4480.0, 4672.0, -3776.0 ) | |
set gg_rct_Team3__Path3_01 = Rect( 4832.0, -3104.0, 5024.0, -2880.0 ) | |
set gg_rct_Team3__Path3_02 = Rect( 4800.0, 1440.0, 5024.0, 1600.0 ) | |
set gg_rct_Team3__Path3_03 = Rect( 3008.0, 1344.0, 3200.0, 1600.0 ) | |
set gg_rct_Team3__Path3_04 = Rect( 3840.0, 2176.0, 4000.0, 2368.0 ) | |
set gg_rct_Team3__Path3_05 = Rect( 4896.0, 2144.0, 5056.0, 2336.0 ) | |
set gg_rct_Team3__Path3_06 = Rect( 4768.0, 3008.0, 4992.0, 3136.0 ) | |
set gg_rct_Team3__Path3_07 = Rect( 3584.0, 2944.0, 3776.0, 3136.0 ) | |
set gg_rct_Team3__Path3_08 = Rect( 2336.0, 1632.0, 2496.0, 1792.0 ) | |
set gg_rct_Team3__Path3_09 = Rect( 1472.0, 896.0, 1632.0, 1056.0 ) | |
set gg_rct_Team3__Path3_10 = Rect( 576.0, 32.0, 832.0, 192.0 ) | |
set gg_rct_Team3__Path3_Start = Rect( 4672.0, -4480.0, 5216.0, -3776.0 ) | |
set gg_rct_Team3__Spawn = Rect( 1344.0, -5632.0, 3392.0, -4480.0 ) | |
set gg_rct_Team3__Spawn_Workers = Rect( 1568.0, -4736.0, 3232.0, -3808.0 ) | |
set gg_rct_Team1__Attacker_Spawn = Rect( -5344.0, 800.0, -3232.0, 3104.0 ) | |
set gg_rct_Team3__Attacker_Spawn = Rect( 3488.0, -3424.0, 5344.0, -960.0 ) | |
set gg_rct_Team2__Attacker_Spawn = Rect( 672.0, 3200.0, 3200.0, 5088.0 ) | |
set gg_rct_Player1_Shrine = Rect( -2784.0, -4992.0, -2624.0, -4832.0 ) | |
set gg_rct_Player2_New_Shrine = Rect( -2624.0, -5312.0, -2336.0, -5056.0 ) | |
set gg_rct_Player1_New_Shrine = Rect( -3136.0, -5312.0, -2848.0, -5056.0 ) | |
endfunction | |
//*************************************************************************** | |
//* | |
//* Triggers | |
//* | |
//*************************************************************************** | |
//=========================================================================== | |
// Trigger: Init Tips | |
//=========================================================================== | |
function Trig_Init_Tips_Actions takes nothing returns nothing | |
set udg_Tips[1] = ( ( "|c001fe7bfTip 1|r of |c001fe7bf" + I2S(udg_TipMax) ) + ( "|r:|cffdddd32 " + ( "Each tower has 6 levels, so don't forget to upgrade." + "|r" ) ) ) | |
set udg_Tips[2] = ( ( "|c001fe7bfTip 2|r of |c001fe7bf" + I2S(udg_TipMax) ) + ( "|r:|cffdddd32 " + ( "When upgrading a tower to level 5, you have more than one choice of level 5 towers to upgrade to, check the tool tips carefully to determine the right tower for your situation." + "|r" ) ) ) | |
set udg_Tips[3] = ( ( "|c001fe7bfTip 3|r of |c001fe7bf" + I2S(udg_TipMax) ) + ( "|r:|cffdddd32 " + ( "When a tower reaches level 6, upgrade it further if you can, it is usually cheaper then selling and making a brand new tower." + "|r" ) ) ) | |
set udg_Tips[4] = ( ( "|c001fe7bfTip 4|r of |c001fe7bf" + I2S(udg_TipMax) ) + ( "|r:|cffdddd32 " + ( "Bounty is split among all the members of your team, with the killer getting the largest share." + "|r" ) ) ) | |
set udg_Tips[5] = ( ( "|c001fe7bfTip 5|r of |c001fe7bf" + I2S(udg_TipMax) ) + ( "|r:|cffdddd32 " + ( "Build your towers in groups to better guard them against waves of attackers." + "|r" ) ) ) | |
set udg_Tips[6] = ( ( "|c001fe7bfTip 6|r of |c001fe7bf" + I2S(udg_TipMax) ) + ( "|r:|cffdddd32 " + ( "Cannon and Explosive towers can not target creeps right next to them, so be sure to build other towers around them so that melee attackers don't destroy them without much of a fight." + "|r" ) ) ) | |
set udg_Tips[7] = ( ( "|c001fe7bfTip 7|r of |c001fe7bf" + I2S(udg_TipMax) ) + ( "|r:|cffdddd32 " + ( "Diversify your towers, they all have their particular strengths and weaknesses." + "|r" ) ) ) | |
set udg_Tips[8] = ( ( "|c001fe7bfTip 8|r of |c001fe7bf" + I2S(udg_TipMax) ) + ( "|r:|cffdddd32 " + ( "When a tower is damaged, it will heal on its own, you can not repair it." + "|r" ) ) ) | |
set udg_Tips[9] = ( ( "|c001fe7bfTip 9|r of |c001fe7bf" + I2S(udg_TipMax) ) + ( "|r:|cffdddd32 " + ( "You can not sell towers that are damaged more than 50%." + "|r" ) ) ) | |
set udg_Tips[10] = ( ( "|c001fe7bfTip 10|r of |c001fe7bf" + I2S(udg_TipMax) ) + ( "|r:|cffdddd32 " + ( "Your town hall has 4 levels, each level gives you access to increasingly powerful towers." + "|r" ) ) ) | |
set udg_Tips[11] = ( ( "|c001fe7bfTip 11|r of |c001fe7bf" + I2S(udg_TipMax) ) + ( "|r:|cffdddd32 " + ( "The armor of the monsters increases as their cost increases, that means that your level 1 towers will eventually become obsolete." + "|r" ) ) ) | |
set udg_Tips[12] = ( ( "|c001fe7bfTip 12|r of |c001fe7bf" + I2S(udg_TipMax) ) + ( "|r:|cffdddd32 " + ( "The cheaper the monster, the more income you get per gold you spend." + "|r" ) ) ) | |
set udg_Tips[13] = ( ( "|c001fe7bfTip 13|r of |c001fe7bf" + I2S(udg_TipMax) ) + ( "|r:|cffdddd32 " + ( "If you chose to be a Summoner, summon as many monsters as you can without sacrificing your defense, that's the only way your income will grow." + "|r" ) ) ) | |
set udg_Tips[14] = ( ( "|c001fe7bfTip 14|r of |c001fe7bf" + I2S(udg_TipMax) ) + ( "|r:|cffdddd32 " + ( "If you chose to be a Defender, keep your defenses nice and strong. Killing monsters is your ticket to the sweet life of high incomes, but don't forget about summoning, you need to do that too." + "|r" ) ) ) | |
set udg_Tips[15] = ( ( "|c001fe7bfTip 15|r of |c001fe7bf" + I2S(udg_TipMax) ) + ( "|r:|cffdddd32 " + ( "When there are only two teams left, for each monster you summon, two will spawn to run the other team's maze." + "|r" ) ) ) | |
set udg_Tips[16] = ( ( "|c001fe7bfTip 16|r of |c001fe7bf" + I2S(udg_TipMax) ) + ( "|r:|cffdddd32 " + ( "Try both profiles, summoner and defender have both strengths and weaknesses." + "|r" ) ) ) | |
set udg_Tips[17] = ( ( "|c001fe7bfTip 17|r of |c001fe7bf" + I2S(udg_TipMax) ) + ( "|r:|cffdddd32 " + ( "Your shrine has 5 levels, each level provides access to increasingly stronger monsters to summon." + "|r" ) ) ) | |
set udg_Tips[18] = ( ( "|c001fe7bfTip 18|r of |c001fe7bf" + I2S(udg_TipMax) ) + ( "|r:|cffdddd32 " + ( "Each shrine level has 8 maze running monsters and 3 attackers. Survive long enough to upgrade to level 5 and gain access to the ultimate maze runner, in the 12th slot." + "|r" ) ) ) | |
set udg_Tips[19] = ( ( "|c001fe7bfTip 19|r of |c001fe7bf" + I2S(udg_TipMax) ) + ( "|r:|cffdddd32 " + ( "For each monster you summon at your shrine, one will spawn at both of the enemy teams' mazes." + "|r" ) ) ) | |
set udg_Tips[20] = ( ( "|c001fe7bfTip 20|r of |c001fe7bf" + I2S(udg_TipMax) ) + ( "|r:|cffdddd32 " + ( "The more income the better, keep summoning those monsters." + "|r" ) ) ) | |
set udg_Tips[21] = ( ( "|c001fe7bfTip 21|r of |c001fe7bf" + I2S(udg_TipMax) ) + ( "|r:|cffdddd32 " + ( "Work as a team, talk to your teammates, it is much easier to win when working together." + "|r" ) ) ) | |
set udg_Tips[22] = ( ( "|c001fe7bfTip 22|r of |c001fe7bf" + I2S(udg_TipMax) ) + ( "|r:|cffdddd32 " + ( "To give gold to another player use the syntax: \"give P GGGG\", where P is the player number and GGGG is the gold amount you wish to give. \"give 1 10\" will give the red player 10 gold." + "|r" ) ) ) | |
set udg_Tips[23] = ( ( "|c001fe7bfTip 23|r of |c001fe7bf" + I2S(udg_TipMax) ) + ( "|r:|cffdddd32 " + ( "If you are unsure about the player number of your teammates, the player numbers are displayed every income." + "|r" ) ) ) | |
set udg_Tips[24] = ( ( "|c001fe7bfTip 24|r of |c001fe7bf" + I2S(udg_TipMax) ) + ( "|r:|cffdddd32 " + ( "One piece of lumber is worth 100,000 gold, the game will start converting your gold into lumber when your gold reaches 500,000. It will convert lumber back into gold when your gold drops below 400,000." + "|r" ) ) ) | |
set udg_Tips[25] = ( ( "|c001fe7bfTip 25|r of |c001fe7bf" + I2S(udg_TipMax) ) + ( "|r:|cffdddd32 " + ( "Any comments, bugs, or new suggestions send me an email at aldur@hotmail.com." + "|r" ) ) ) | |
set udg_Tips[26] = ( ( "|c001fe7bfTip 26|r of |c001fe7bf" + I2S(udg_TipMax) ) + ( "|r:|cffdddd32 " + ( "Check Quests for more information about Tower Wars." + "|r" ) ) ) | |
set udg_Tips[27] = ( ( "|c001fe7bfTip 27|r of |c001fe7bf" + I2S(udg_TipMax) ) + ( "|r:|cffdddd32 " + ( "Team 1 is located on the left side, Team 2 on the top, and Team 3 is on the right side." + "|r" ) ) ) | |
set udg_Tips[28] = ( ( "|c001fe7bfTip 28|r of |c001fe7bf" + I2S(udg_TipMax) ) + ( "|r:|cffdddd32 " + ( "The team with the highest combined income is displayed on the leader board, it's good to be the king." + "|r" ) ) ) | |
set udg_Tips[29] = ( ( "|c001fe7bfTip 29|r of |c001fe7bf" + I2S(udg_TipMax) ) + ( "|r:|cffdddd32 " + ( "If you have a tip you want added to this list, send it over, aldur@hotmail.com." + "|r" ) ) ) | |
set udg_Tips[30] = ( ( "|c001fe7bfTip 30|r of |c001fe7bf" + I2S(udg_TipMax) ) + ( "|r:|cffdddd32 " + ( "Experiment with your own combinations of towers, raw power isn't always the answer." + "|r" ) ) ) | |
set udg_Tips[31] = ( ( "|c001fe7bfTip 31|r of |c001fe7bf" + I2S(udg_TipMax) ) + ( "|r:|cffdddd32 " + ( "To turn tips off, type in \"tipsoff\". To turn tips back on, typ in \"tipson\"." + "|r" ) ) ) | |
set udg_Tips[32] = ( ( "|c001fe7bfTip 32|r of |c001fe7bf" + I2S(udg_TipMax) ) + ( "|r:|cffdddd32 " + ( "For a list of commands, check the quests." + "|r" ) ) ) | |
set udg_Tips[33] = ( ( "|c001fe7bfTip 33|r of |c001fe7bf" + I2S(udg_TipMax) ) + ( "|r:|cffdddd32 " + ( "When someone leaves, the defenders get their towers, one of the summoners gets their shrine, and everyone gets a share of the leaving player's income." + "|r" ) ) ) | |
set udg_Tips[34] = ( ( "|c001fe7bfTip 34|r of |c001fe7bf" + I2S(udg_TipMax) ) + ( "|r:|cffdddd32 " + ( "Use -repick wisely, you may only use -repick during the first 5 minutes of the game, or when one of your team leaves." + "|r" ) ) ) | |
set udg_Tips[35] = ( ( "|c001fe7bfTip 35|r of |c001fe7bf" + I2S(udg_TipMax) ) + ( "|r:|cffdddd32 " + ( "At the beginning of each game you get 1 minute to decide with your team who is going to build where, and who is going to be defenders and summoners. Take advantage of that time." + "|r" ) ) ) | |
set udg_Tips[36] = ( ( "|c001fe7bfTip 36|r of |c001fe7bf" + I2S(udg_TipMax) ) + ( "|r:|cffdddd32 " + ( "\"Its a good idea to use the hotkey function, select your monster summon building and hit Ctrl 1, and use Ctrl 2 for your builder. This way you always have quick access to your summons and builder.\" - Harold @ Northrend" + "|r" ) ) ) | |
set udg_Tips[37] = ( ( "|c001fe7bfTip 37|r of |c001fe7bf" + I2S(udg_TipMax) ) + ( "|r:|cffdddd32 " + ( "If your builder gets stuck somewhere, type \"-transport\" and all your builders will be transported back to their starting position." + "|r" ) ) ) | |
set udg_Tips[38] = ( ( "|c001fe7bfTip 38|r of |c001fe7bf" + I2S(udg_TipMax) ) + ( "|r:|cffdddd32 " + ( "To give lumber to your teammates, use the \"lgive\" command. It works just like the give gold command, except you type \"lgive\" instead of \"give\"." + "|r" ) ) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Init_Tips takes nothing returns nothing | |
set gg_trg_Init_Tips = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Init_Tips, function Trig_Init_Tips_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Tips On | |
//=========================================================================== | |
function Trig_Tips_On_Actions takes nothing returns nothing | |
set udg_TipsOn[GetConvertedPlayerId(GetTriggerPlayer())] = true | |
call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "TRIGSTR_194" ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Tips_On takes nothing returns nothing | |
set gg_trg_Tips_On = CreateTrigger( ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Tips_On, Player(0), "-tipson", true ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Tips_On, Player(1), "-tipson", true ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Tips_On, Player(2), "-tipson", true ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Tips_On, Player(3), "-tipson", true ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Tips_On, Player(4), "-tipson", true ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Tips_On, Player(5), "-tipson", true ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Tips_On, Player(6), "-tipson", true ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Tips_On, Player(7), "-tipson", true ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Tips_On, Player(8), "-tipson", true ) | |
call TriggerAddAction( gg_trg_Tips_On, function Trig_Tips_On_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Tips Off | |
//=========================================================================== | |
function Trig_Tips_Off_Actions takes nothing returns nothing | |
set udg_TipsOn[GetConvertedPlayerId(GetTriggerPlayer())] = false | |
call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "TRIGSTR_200" ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Tips_Off takes nothing returns nothing | |
set gg_trg_Tips_Off = CreateTrigger( ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Tips_Off, Player(0), "-tipsoff", true ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Tips_Off, Player(1), "-tipsoff", true ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Tips_Off, Player(2), "-tipsoff", true ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Tips_Off, Player(3), "-tipsoff", true ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Tips_Off, Player(4), "-tipsoff", true ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Tips_Off, Player(5), "-tipsoff", true ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Tips_Off, Player(6), "-tipsoff", true ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Tips_Off, Player(7), "-tipsoff", true ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Tips_Off, Player(8), "-tipsoff", true ) | |
call TriggerAddAction( gg_trg_Tips_Off, function Trig_Tips_Off_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player1 Show Tip | |
//=========================================================================== | |
function Trig_Player1_Show_Tip_Actions takes nothing returns nothing | |
call QuestMessageBJ( bj_FORCE_PLAYER[0], bj_QUESTMESSAGE_SECRET, udg_Tips[GetRandomInt(1, udg_TipMax)] ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player1_Show_Tip takes nothing returns nothing | |
set gg_trg_Player1_Show_Tip = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Player1_Show_Tip, function Trig_Player1_Show_Tip_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player2 Show Tip | |
//=========================================================================== | |
function Trig_Player2_Show_Tip_Actions takes nothing returns nothing | |
call QuestMessageBJ( bj_FORCE_PLAYER[1], bj_QUESTMESSAGE_SECRET, udg_Tips[GetRandomInt(1, udg_TipMax)] ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player2_Show_Tip takes nothing returns nothing | |
set gg_trg_Player2_Show_Tip = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Player2_Show_Tip, function Trig_Player2_Show_Tip_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player3 Show Tip | |
//=========================================================================== | |
function Trig_Player3_Show_Tip_Actions takes nothing returns nothing | |
call QuestMessageBJ( bj_FORCE_PLAYER[2], bj_QUESTMESSAGE_SECRET, udg_Tips[GetRandomInt(1, udg_TipMax)] ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player3_Show_Tip takes nothing returns nothing | |
set gg_trg_Player3_Show_Tip = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Player3_Show_Tip, function Trig_Player3_Show_Tip_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player4 Show Tip | |
//=========================================================================== | |
function Trig_Player4_Show_Tip_Actions takes nothing returns nothing | |
call QuestMessageBJ( bj_FORCE_PLAYER[3], bj_QUESTMESSAGE_SECRET, udg_Tips[GetRandomInt(1, udg_TipMax)] ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player4_Show_Tip takes nothing returns nothing | |
set gg_trg_Player4_Show_Tip = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Player4_Show_Tip, function Trig_Player4_Show_Tip_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player5 Show Tip | |
//=========================================================================== | |
function Trig_Player5_Show_Tip_Actions takes nothing returns nothing | |
call QuestMessageBJ( bj_FORCE_PLAYER[4], bj_QUESTMESSAGE_SECRET, udg_Tips[GetRandomInt(1, udg_TipMax)] ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player5_Show_Tip takes nothing returns nothing | |
set gg_trg_Player5_Show_Tip = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Player5_Show_Tip, function Trig_Player5_Show_Tip_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player6 Show Tip | |
//=========================================================================== | |
function Trig_Player6_Show_Tip_Actions takes nothing returns nothing | |
call QuestMessageBJ( bj_FORCE_PLAYER[5], bj_QUESTMESSAGE_SECRET, udg_Tips[GetRandomInt(1, udg_TipMax)] ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player6_Show_Tip takes nothing returns nothing | |
set gg_trg_Player6_Show_Tip = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Player6_Show_Tip, function Trig_Player6_Show_Tip_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player7 Show Tip | |
//=========================================================================== | |
function Trig_Player7_Show_Tip_Actions takes nothing returns nothing | |
call QuestMessageBJ( bj_FORCE_PLAYER[6], bj_QUESTMESSAGE_SECRET, udg_Tips[GetRandomInt(1, udg_TipMax)] ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player7_Show_Tip takes nothing returns nothing | |
set gg_trg_Player7_Show_Tip = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Player7_Show_Tip, function Trig_Player7_Show_Tip_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player8 Show Tip | |
//=========================================================================== | |
function Trig_Player8_Show_Tip_Actions takes nothing returns nothing | |
call QuestMessageBJ( bj_FORCE_PLAYER[7], bj_QUESTMESSAGE_SECRET, udg_Tips[GetRandomInt(1, udg_TipMax)] ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player8_Show_Tip takes nothing returns nothing | |
set gg_trg_Player8_Show_Tip = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Player8_Show_Tip, function Trig_Player8_Show_Tip_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player9 Show Tip | |
//=========================================================================== | |
function Trig_Player9_Show_Tip_Actions takes nothing returns nothing | |
call QuestMessageBJ( bj_FORCE_PLAYER[8], bj_QUESTMESSAGE_SECRET, udg_Tips[GetRandomInt(1, udg_TipMax)] ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player9_Show_Tip takes nothing returns nothing | |
set gg_trg_Player9_Show_Tip = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Player9_Show_Tip, function Trig_Player9_Show_Tip_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Display Profile Message | |
//=========================================================================== | |
function Trig_Display_Profile_Message_Actions takes nothing returns nothing | |
call DisplayTimedTextToForce( GetPlayersAll(), 24.00, "TRIGSTR_040" ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Display_Profile_Message takes nothing returns nothing | |
set gg_trg_Display_Profile_Message = CreateTrigger( ) | |
call TriggerRegisterTimerEventSingle( gg_trg_Display_Profile_Message, 1.00 ) | |
call TriggerAddAction( gg_trg_Display_Profile_Message, function Trig_Display_Profile_Message_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player1 Repick | |
//=========================================================================== | |
function Trig_Player1_Repick_Conditions takes nothing returns boolean | |
if ( not ( udg_ProfileSet[1] == true ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player1_Repick_Func001001 takes nothing returns boolean | |
return ( udg_RepickAllowed[1] == false ) | |
endfunction | |
function Trig_Player1_Repick_Func002001 takes nothing returns boolean | |
return ( udg_RepickAllowed[1] == false ) | |
endfunction | |
function Trig_Player1_Repick_Func004001 takes nothing returns boolean | |
return ( udg_Profiles[1] == 1 ) | |
endfunction | |
function Trig_Player1_Repick_Actions takes nothing returns nothing | |
if ( Trig_Player1_Repick_Func001001() ) then | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[0], 10.00, udg_RepickDenied ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Player1_Repick_Func002001() ) then | |
return | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Player1_Repick_Func004001() ) then | |
set udg_Defenders[1] = ( udg_Defenders[1] - 1 ) | |
else | |
call DoNothing( ) | |
endif | |
set udg_Profiles[1] = 0 | |
call DisableTrigger( gg_trg_Player1_Kill_Income ) | |
call ConditionalTriggerExecute( gg_trg_Finalize_Player1 ) | |
set udg_ProfileSet[1] = true | |
set udg_PlayerProfiles[1] = udg_ProfileSummonerText | |
call ForceRemovePlayerSimple( Player(0), udg_Team1Defenders ) | |
call ForceAddPlayerSimple( Player(0), udg_Team1Summoners ) | |
call TriggerExecute( gg_trg_Player1_Profile_Dialog ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player1_Repick takes nothing returns nothing | |
set gg_trg_Player1_Repick = CreateTrigger( ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Player1_Repick, Player(0), "-repick", true ) | |
call TriggerAddCondition( gg_trg_Player1_Repick, Condition( function Trig_Player1_Repick_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player1_Repick, function Trig_Player1_Repick_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player2 Repick | |
//=========================================================================== | |
function Trig_Player2_Repick_Conditions takes nothing returns boolean | |
if ( not ( udg_ProfileSet[2] == true ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player2_Repick_Func001001 takes nothing returns boolean | |
return ( udg_RepickAllowed[2] == false ) | |
endfunction | |
function Trig_Player2_Repick_Func002001 takes nothing returns boolean | |
return ( udg_RepickAllowed[2] == false ) | |
endfunction | |
function Trig_Player2_Repick_Func004001 takes nothing returns boolean | |
return ( udg_Profiles[2] == 1 ) | |
endfunction | |
function Trig_Player2_Repick_Actions takes nothing returns nothing | |
if ( Trig_Player2_Repick_Func001001() ) then | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[1], 10.00, udg_RepickDenied ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Player2_Repick_Func002001() ) then | |
return | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Player2_Repick_Func004001() ) then | |
set udg_Defenders[1] = ( udg_Defenders[1] - 1 ) | |
else | |
call DoNothing( ) | |
endif | |
set udg_Profiles[2] = 0 | |
call DisableTrigger( gg_trg_Player2_Kill_Income ) | |
call ConditionalTriggerExecute( gg_trg_Finalize_Player2 ) | |
set udg_ProfileSet[2] = true | |
set udg_PlayerProfiles[2] = udg_ProfileSummonerText | |
call ForceRemovePlayerSimple( Player(1), udg_Team1Defenders ) | |
call ForceAddPlayerSimple( Player(1), udg_Team1Summoners ) | |
call TriggerExecute( gg_trg_Player2_Profile_Dialog ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player2_Repick takes nothing returns nothing | |
set gg_trg_Player2_Repick = CreateTrigger( ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Player2_Repick, Player(1), "-repick", true ) | |
call TriggerAddCondition( gg_trg_Player2_Repick, Condition( function Trig_Player2_Repick_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player2_Repick, function Trig_Player2_Repick_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player3 Repick | |
//=========================================================================== | |
function Trig_Player3_Repick_Conditions takes nothing returns boolean | |
if ( not ( udg_ProfileSet[3] == true ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player3_Repick_Func001001 takes nothing returns boolean | |
return ( udg_RepickAllowed[3] == false ) | |
endfunction | |
function Trig_Player3_Repick_Func002001 takes nothing returns boolean | |
return ( udg_RepickAllowed[3] == false ) | |
endfunction | |
function Trig_Player3_Repick_Func004001 takes nothing returns boolean | |
return ( udg_Profiles[3] == 1 ) | |
endfunction | |
function Trig_Player3_Repick_Actions takes nothing returns nothing | |
if ( Trig_Player3_Repick_Func001001() ) then | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[2], 10.00, udg_RepickDenied ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Player3_Repick_Func002001() ) then | |
return | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Player3_Repick_Func004001() ) then | |
set udg_Defenders[1] = ( udg_Defenders[1] - 1 ) | |
else | |
call DoNothing( ) | |
endif | |
set udg_Profiles[3] = 0 | |
call DisableTrigger( gg_trg_Player3_Kill_Income ) | |
call ConditionalTriggerExecute( gg_trg_Finalize_Player3 ) | |
set udg_ProfileSet[3] = true | |
set udg_PlayerProfiles[3] = udg_ProfileSummonerText | |
call ForceRemovePlayerSimple( Player(2), udg_Team1Defenders ) | |
call ForceAddPlayerSimple( Player(2), udg_Team1Summoners ) | |
call TriggerExecute( gg_trg_Player3_Profile_Dialog ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player3_Repick takes nothing returns nothing | |
set gg_trg_Player3_Repick = CreateTrigger( ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Player3_Repick, Player(2), "-repick", true ) | |
call TriggerAddCondition( gg_trg_Player3_Repick, Condition( function Trig_Player3_Repick_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player3_Repick, function Trig_Player3_Repick_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player4 Repick | |
//=========================================================================== | |
function Trig_Player4_Repick_Conditions takes nothing returns boolean | |
if ( not ( udg_ProfileSet[4] == true ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player4_Repick_Func001001 takes nothing returns boolean | |
return ( udg_RepickAllowed[4] == false ) | |
endfunction | |
function Trig_Player4_Repick_Func002001 takes nothing returns boolean | |
return ( udg_RepickAllowed[4] == false ) | |
endfunction | |
function Trig_Player4_Repick_Func004001 takes nothing returns boolean | |
return ( udg_Profiles[4] == 1 ) | |
endfunction | |
function Trig_Player4_Repick_Actions takes nothing returns nothing | |
if ( Trig_Player4_Repick_Func001001() ) then | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[3], 10.00, udg_RepickDenied ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Player4_Repick_Func002001() ) then | |
return | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Player4_Repick_Func004001() ) then | |
set udg_Defenders[2] = ( udg_Defenders[2] - 1 ) | |
else | |
call DoNothing( ) | |
endif | |
set udg_Profiles[4] = 0 | |
call DisableTrigger( gg_trg_Player4_Kill_Income ) | |
call ConditionalTriggerExecute( gg_trg_Finalize_Player4 ) | |
set udg_ProfileSet[4] = true | |
set udg_PlayerProfiles[4] = udg_ProfileSummonerText | |
call ForceRemovePlayerSimple( Player(3), udg_Team2Defenders ) | |
call ForceAddPlayerSimple( Player(3), udg_Team2Summoners ) | |
call TriggerExecute( gg_trg_Player4_Profile_Dialog ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player4_Repick takes nothing returns nothing | |
set gg_trg_Player4_Repick = CreateTrigger( ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Player4_Repick, Player(3), "-repick", true ) | |
call TriggerAddCondition( gg_trg_Player4_Repick, Condition( function Trig_Player4_Repick_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player4_Repick, function Trig_Player4_Repick_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player5 Repick | |
//=========================================================================== | |
function Trig_Player5_Repick_Conditions takes nothing returns boolean | |
if ( not ( udg_ProfileSet[5] == true ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player5_Repick_Func001001 takes nothing returns boolean | |
return ( udg_RepickAllowed[5] == false ) | |
endfunction | |
function Trig_Player5_Repick_Func002001 takes nothing returns boolean | |
return ( udg_RepickAllowed[5] == false ) | |
endfunction | |
function Trig_Player5_Repick_Func004001 takes nothing returns boolean | |
return ( udg_Profiles[5] == 1 ) | |
endfunction | |
function Trig_Player5_Repick_Actions takes nothing returns nothing | |
if ( Trig_Player5_Repick_Func001001() ) then | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[4], 10.00, udg_RepickDenied ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Player5_Repick_Func002001() ) then | |
return | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Player5_Repick_Func004001() ) then | |
set udg_Defenders[2] = ( udg_Defenders[2] - 1 ) | |
else | |
call DoNothing( ) | |
endif | |
set udg_Profiles[5] = 0 | |
call DisableTrigger( gg_trg_Player5_Kill_Income ) | |
call ConditionalTriggerExecute( gg_trg_Finalize_Player5 ) | |
set udg_ProfileSet[5] = true | |
set udg_PlayerProfiles[5] = udg_ProfileSummonerText | |
call ForceRemovePlayerSimple( Player(4), udg_Team2Defenders ) | |
call ForceAddPlayerSimple( Player(4), udg_Team2Summoners ) | |
call TriggerExecute( gg_trg_Player5_Profile_Dialog ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player5_Repick takes nothing returns nothing | |
set gg_trg_Player5_Repick = CreateTrigger( ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Player5_Repick, Player(4), "-repick", true ) | |
call TriggerAddCondition( gg_trg_Player5_Repick, Condition( function Trig_Player5_Repick_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player5_Repick, function Trig_Player5_Repick_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player6 Repick | |
//=========================================================================== | |
function Trig_Player6_Repick_Conditions takes nothing returns boolean | |
if ( not ( udg_ProfileSet[6] == true ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player6_Repick_Func001001 takes nothing returns boolean | |
return ( udg_RepickAllowed[6] == false ) | |
endfunction | |
function Trig_Player6_Repick_Func002001 takes nothing returns boolean | |
return ( udg_RepickAllowed[6] == false ) | |
endfunction | |
function Trig_Player6_Repick_Func004001 takes nothing returns boolean | |
return ( udg_Profiles[6] == 1 ) | |
endfunction | |
function Trig_Player6_Repick_Actions takes nothing returns nothing | |
if ( Trig_Player6_Repick_Func001001() ) then | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[5], 10.00, udg_RepickDenied ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Player6_Repick_Func002001() ) then | |
return | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Player6_Repick_Func004001() ) then | |
set udg_Defenders[2] = ( udg_Defenders[2] - 1 ) | |
else | |
call DoNothing( ) | |
endif | |
set udg_Profiles[6] = 0 | |
call DisableTrigger( gg_trg_Player6_Kill_Income ) | |
call ConditionalTriggerExecute( gg_trg_Finalize_Player6 ) | |
set udg_ProfileSet[6] = true | |
set udg_PlayerProfiles[6] = udg_ProfileSummonerText | |
call ForceRemovePlayerSimple( Player(5), udg_Team2Defenders ) | |
call ForceAddPlayerSimple( Player(5), udg_Team2Summoners ) | |
call TriggerExecute( gg_trg_Player6_Profile_Dialog ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player6_Repick takes nothing returns nothing | |
set gg_trg_Player6_Repick = CreateTrigger( ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Player6_Repick, Player(5), "-repick", true ) | |
call TriggerAddCondition( gg_trg_Player6_Repick, Condition( function Trig_Player6_Repick_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player6_Repick, function Trig_Player6_Repick_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player7 Repick | |
//=========================================================================== | |
function Trig_Player7_Repick_Conditions takes nothing returns boolean | |
if ( not ( udg_ProfileSet[7] == true ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player7_Repick_Func001001 takes nothing returns boolean | |
return ( udg_RepickAllowed[7] == false ) | |
endfunction | |
function Trig_Player7_Repick_Func002001 takes nothing returns boolean | |
return ( udg_RepickAllowed[7] == false ) | |
endfunction | |
function Trig_Player7_Repick_Func003001 takes nothing returns boolean | |
return ( udg_Profiles[7] == 1 ) | |
endfunction | |
function Trig_Player7_Repick_Actions takes nothing returns nothing | |
if ( Trig_Player7_Repick_Func001001() ) then | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[6], 10.00, udg_RepickDenied ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Player7_Repick_Func002001() ) then | |
return | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Player7_Repick_Func003001() ) then | |
set udg_Defenders[3] = ( udg_Defenders[3] - 1 ) | |
else | |
call DoNothing( ) | |
endif | |
set udg_Profiles[7] = 0 | |
call DisableTrigger( gg_trg_Player7_Kill_Income ) | |
call ConditionalTriggerExecute( gg_trg_Finalize_Player7 ) | |
set udg_ProfileSet[7] = true | |
set udg_PlayerProfiles[7] = udg_ProfileSummonerText | |
call ForceRemovePlayerSimple( Player(6), udg_Team3Defenders ) | |
call ForceAddPlayerSimple( Player(6), udg_Team3Summoners ) | |
call TriggerExecute( gg_trg_Player7_Profile_Dialog ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player7_Repick takes nothing returns nothing | |
set gg_trg_Player7_Repick = CreateTrigger( ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Player7_Repick, Player(6), "-repick", true ) | |
call TriggerAddCondition( gg_trg_Player7_Repick, Condition( function Trig_Player7_Repick_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player7_Repick, function Trig_Player7_Repick_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player8 Repick | |
//=========================================================================== | |
function Trig_Player8_Repick_Conditions takes nothing returns boolean | |
if ( not ( udg_ProfileSet[8] == true ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player8_Repick_Func001001 takes nothing returns boolean | |
return ( udg_RepickAllowed[8] == false ) | |
endfunction | |
function Trig_Player8_Repick_Func002001 takes nothing returns boolean | |
return ( udg_RepickAllowed[8] == false ) | |
endfunction | |
function Trig_Player8_Repick_Func003001 takes nothing returns boolean | |
return ( udg_Profiles[8] == 1 ) | |
endfunction | |
function Trig_Player8_Repick_Actions takes nothing returns nothing | |
if ( Trig_Player8_Repick_Func001001() ) then | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[7], 10.00, udg_RepickDenied ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Player8_Repick_Func002001() ) then | |
return | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Player8_Repick_Func003001() ) then | |
set udg_Defenders[3] = ( udg_Defenders[3] - 1 ) | |
else | |
call DoNothing( ) | |
endif | |
set udg_Profiles[8] = 0 | |
call DisableTrigger( gg_trg_Player8_Kill_Income ) | |
call ConditionalTriggerExecute( gg_trg_Finalize_Player8 ) | |
set udg_ProfileSet[8] = true | |
set udg_PlayerProfiles[8] = udg_ProfileSummonerText | |
call ForceRemovePlayerSimple( Player(7), udg_Team3Defenders ) | |
call ForceAddPlayerSimple( Player(7), udg_Team3Summoners ) | |
call TriggerExecute( gg_trg_Player8_Profile_Dialog ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player8_Repick takes nothing returns nothing | |
set gg_trg_Player8_Repick = CreateTrigger( ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Player8_Repick, Player(7), "-repick", true ) | |
call TriggerAddCondition( gg_trg_Player8_Repick, Condition( function Trig_Player8_Repick_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player8_Repick, function Trig_Player8_Repick_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player9 Repick | |
//=========================================================================== | |
function Trig_Player9_Repick_Conditions takes nothing returns boolean | |
if ( not ( udg_ProfileSet[9] == true ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player9_Repick_Func001001 takes nothing returns boolean | |
return ( udg_RepickAllowed[9] == false ) | |
endfunction | |
function Trig_Player9_Repick_Func002001 takes nothing returns boolean | |
return ( udg_RepickAllowed[9] == false ) | |
endfunction | |
function Trig_Player9_Repick_Func003001 takes nothing returns boolean | |
return ( udg_Profiles[9] == 1 ) | |
endfunction | |
function Trig_Player9_Repick_Actions takes nothing returns nothing | |
if ( Trig_Player9_Repick_Func001001() ) then | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[8], 10.00, udg_RepickDenied ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Player9_Repick_Func002001() ) then | |
return | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Player9_Repick_Func003001() ) then | |
set udg_Defenders[3] = ( udg_Defenders[3] - 1 ) | |
else | |
call DoNothing( ) | |
endif | |
set udg_Profiles[9] = 0 | |
call DisableTrigger( gg_trg_Player9_Kill_Income ) | |
call ConditionalTriggerExecute( gg_trg_Finalize_Player9 ) | |
set udg_ProfileSet[9] = true | |
set udg_PlayerProfiles[9] = udg_ProfileSummonerText | |
call ForceRemovePlayerSimple( Player(8), udg_Team3Defenders ) | |
call ForceAddPlayerSimple( Player(8), udg_Team3Summoners ) | |
call TriggerExecute( gg_trg_Player9_Profile_Dialog ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player9_Repick takes nothing returns nothing | |
set gg_trg_Player9_Repick = CreateTrigger( ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Player9_Repick, Player(8), "-repick", true ) | |
call TriggerAddCondition( gg_trg_Player9_Repick, Condition( function Trig_Player9_Repick_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player9_Repick, function Trig_Player9_Repick_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player1 Profile Dialog | |
//=========================================================================== | |
function Trig_Player1_Profile_Dialog_Func006001 takes nothing returns boolean | |
return ( udg_Defenders[1] < ( ( CountPlayersInForceBJ(udg_Team1Group) / 3 ) + 1 ) ) | |
endfunction | |
function Trig_Player1_Profile_Dialog_Func007001 takes nothing returns boolean | |
return ( udg_Defenders[1] < ( ( CountPlayersInForceBJ(udg_Team1Group) / 3 ) + 1 ) ) | |
endfunction | |
function Trig_Player1_Profile_Dialog_Actions takes nothing returns nothing | |
call DialogClearBJ( udg_Player1ProfileDialog ) | |
call DialogSetMessageBJ( udg_Player1ProfileDialog, udg_ProfileDialogText ) | |
call DialogAddButtonBJ( udg_Player1ProfileDialog, udg_ProfileDialogButton1Label ) | |
set udg_Player1ProfileButtons[1] = GetLastCreatedButtonBJ() | |
if ( Trig_Player1_Profile_Dialog_Func006001() ) then | |
call DialogAddButtonBJ( udg_Player1ProfileDialog, ( I2S(( ( ( CountPlayersInForceBJ(udg_Team1Group) / 3 ) + 1 ) - udg_Defenders[1] )) + udg_ProfileDialogButton2Label ) ) | |
else | |
call DialogAddButtonBJ( udg_Player1ProfileDialog, udg_ProfileDialogButton2LabelAlt ) | |
endif | |
if ( Trig_Player1_Profile_Dialog_Func007001() ) then | |
set udg_Player1ProfileButtons[2] = GetLastCreatedButtonBJ() | |
else | |
set udg_Player1ProfileButtons[3] = GetLastCreatedButtonBJ() | |
endif | |
call DialogDisplayBJ( true, udg_Player1ProfileDialog, Player(0) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player1_Profile_Dialog takes nothing returns nothing | |
set gg_trg_Player1_Profile_Dialog = CreateTrigger( ) | |
call TriggerRegisterTimerEventSingle( gg_trg_Player1_Profile_Dialog, 5.00 ) | |
call TriggerAddAction( gg_trg_Player1_Profile_Dialog, function Trig_Player1_Profile_Dialog_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player2 Profile Dialog | |
//=========================================================================== | |
function Trig_Player2_Profile_Dialog_Func006001 takes nothing returns boolean | |
return ( udg_Defenders[1] < ( ( CountPlayersInForceBJ(udg_Team1Group) / 3 ) + 1 ) ) | |
endfunction | |
function Trig_Player2_Profile_Dialog_Func007001 takes nothing returns boolean | |
return ( udg_Defenders[1] < ( ( CountPlayersInForceBJ(udg_Team1Group) / 3 ) + 1 ) ) | |
endfunction | |
function Trig_Player2_Profile_Dialog_Actions takes nothing returns nothing | |
call DialogClearBJ( udg_Player2ProfileDialog ) | |
call DialogSetMessageBJ( udg_Player2ProfileDialog, udg_ProfileDialogText ) | |
call DialogAddButtonBJ( udg_Player2ProfileDialog, udg_ProfileDialogButton1Label ) | |
set udg_Player2ProfileButtons[1] = GetLastCreatedButtonBJ() | |
if ( Trig_Player2_Profile_Dialog_Func006001() ) then | |
call DialogAddButtonBJ( udg_Player2ProfileDialog, ( I2S(( ( ( CountPlayersInForceBJ(udg_Team1Group) / 3 ) + 1 ) - udg_Defenders[1] )) + udg_ProfileDialogButton2Label ) ) | |
else | |
call DialogAddButtonBJ( udg_Player2ProfileDialog, udg_ProfileDialogButton2LabelAlt ) | |
endif | |
if ( Trig_Player2_Profile_Dialog_Func007001() ) then | |
set udg_Player2ProfileButtons[2] = GetLastCreatedButtonBJ() | |
else | |
set udg_Player2ProfileButtons[3] = GetLastCreatedButtonBJ() | |
endif | |
call DialogDisplayBJ( true, udg_Player2ProfileDialog, Player(1) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player2_Profile_Dialog takes nothing returns nothing | |
set gg_trg_Player2_Profile_Dialog = CreateTrigger( ) | |
call TriggerRegisterTimerEventSingle( gg_trg_Player2_Profile_Dialog, 15.00 ) | |
call TriggerAddAction( gg_trg_Player2_Profile_Dialog, function Trig_Player2_Profile_Dialog_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player3 Profile Dialog | |
//=========================================================================== | |
function Trig_Player3_Profile_Dialog_Func006001 takes nothing returns boolean | |
return ( udg_Defenders[1] < ( ( CountPlayersInForceBJ(udg_Team1Group) / 3 ) + 1 ) ) | |
endfunction | |
function Trig_Player3_Profile_Dialog_Func007001 takes nothing returns boolean | |
return ( udg_Defenders[1] < ( ( CountPlayersInForceBJ(udg_Team1Group) / 3 ) + 1 ) ) | |
endfunction | |
function Trig_Player3_Profile_Dialog_Actions takes nothing returns nothing | |
call DialogClearBJ( udg_Player3ProfileDialog ) | |
call DialogSetMessageBJ( udg_Player3ProfileDialog, udg_ProfileDialogText ) | |
call DialogAddButtonBJ( udg_Player3ProfileDialog, udg_ProfileDialogButton1Label ) | |
set udg_Player3ProfileButtons[1] = GetLastCreatedButtonBJ() | |
if ( Trig_Player3_Profile_Dialog_Func006001() ) then | |
call DialogAddButtonBJ( udg_Player3ProfileDialog, ( I2S(( ( ( CountPlayersInForceBJ(udg_Team1Group) / 3 ) + 1 ) - udg_Defenders[1] )) + udg_ProfileDialogButton2Label ) ) | |
else | |
call DialogAddButtonBJ( udg_Player3ProfileDialog, udg_ProfileDialogButton2LabelAlt ) | |
endif | |
if ( Trig_Player3_Profile_Dialog_Func007001() ) then | |
set udg_Player3ProfileButtons[2] = GetLastCreatedButtonBJ() | |
else | |
set udg_Player3ProfileButtons[3] = GetLastCreatedButtonBJ() | |
endif | |
call DialogDisplayBJ( true, udg_Player3ProfileDialog, Player(2) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player3_Profile_Dialog takes nothing returns nothing | |
set gg_trg_Player3_Profile_Dialog = CreateTrigger( ) | |
call TriggerRegisterTimerEventSingle( gg_trg_Player3_Profile_Dialog, 25.00 ) | |
call TriggerAddAction( gg_trg_Player3_Profile_Dialog, function Trig_Player3_Profile_Dialog_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player4 Profile Dialog | |
//=========================================================================== | |
function Trig_Player4_Profile_Dialog_Func006001 takes nothing returns boolean | |
return ( udg_Defenders[2] < ( ( CountPlayersInForceBJ(udg_Team2Group) / 3 ) + 1 ) ) | |
endfunction | |
function Trig_Player4_Profile_Dialog_Func007001 takes nothing returns boolean | |
return ( udg_Defenders[2] < ( ( CountPlayersInForceBJ(udg_Team2Group) / 3 ) + 1 ) ) | |
endfunction | |
function Trig_Player4_Profile_Dialog_Actions takes nothing returns nothing | |
call DialogClearBJ( udg_Player4ProfileDialog ) | |
call DialogSetMessageBJ( udg_Player4ProfileDialog, udg_ProfileDialogText ) | |
call DialogAddButtonBJ( udg_Player4ProfileDialog, udg_ProfileDialogButton1Label ) | |
set udg_Player4ProfileButtons[1] = GetLastCreatedButtonBJ() | |
if ( Trig_Player4_Profile_Dialog_Func006001() ) then | |
call DialogAddButtonBJ( udg_Player4ProfileDialog, ( I2S(( ( ( CountPlayersInForceBJ(udg_Team2Group) / 3 ) + 1 ) - udg_Defenders[2] )) + udg_ProfileDialogButton2Label ) ) | |
else | |
call DialogAddButtonBJ( udg_Player4ProfileDialog, udg_ProfileDialogButton2LabelAlt ) | |
endif | |
if ( Trig_Player4_Profile_Dialog_Func007001() ) then | |
set udg_Player4ProfileButtons[2] = GetLastCreatedButtonBJ() | |
else | |
set udg_Player4ProfileButtons[3] = GetLastCreatedButtonBJ() | |
endif | |
call DialogDisplayBJ( true, udg_Player4ProfileDialog, Player(3) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player4_Profile_Dialog takes nothing returns nothing | |
set gg_trg_Player4_Profile_Dialog = CreateTrigger( ) | |
call TriggerRegisterTimerEventSingle( gg_trg_Player4_Profile_Dialog, 5.00 ) | |
call TriggerAddAction( gg_trg_Player4_Profile_Dialog, function Trig_Player4_Profile_Dialog_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player5 Profile Dialog | |
//=========================================================================== | |
function Trig_Player5_Profile_Dialog_Func006001 takes nothing returns boolean | |
return ( udg_Defenders[2] < ( ( CountPlayersInForceBJ(udg_Team2Group) / 3 ) + 1 ) ) | |
endfunction | |
function Trig_Player5_Profile_Dialog_Func007001 takes nothing returns boolean | |
return ( udg_Defenders[2] < ( ( CountPlayersInForceBJ(udg_Team2Group) / 3 ) + 1 ) ) | |
endfunction | |
function Trig_Player5_Profile_Dialog_Actions takes nothing returns nothing | |
call DialogClearBJ( udg_Player5ProfileDialog ) | |
call DialogSetMessageBJ( udg_Player5ProfileDialog, udg_ProfileDialogText ) | |
call DialogAddButtonBJ( udg_Player5ProfileDialog, udg_ProfileDialogButton1Label ) | |
set udg_Player5ProfileButtons[1] = GetLastCreatedButtonBJ() | |
if ( Trig_Player5_Profile_Dialog_Func006001() ) then | |
call DialogAddButtonBJ( udg_Player5ProfileDialog, ( I2S(( ( ( CountPlayersInForceBJ(udg_Team2Group) / 3 ) + 1 ) - udg_Defenders[2] )) + udg_ProfileDialogButton2Label ) ) | |
else | |
call DialogAddButtonBJ( udg_Player5ProfileDialog, udg_ProfileDialogButton2LabelAlt ) | |
endif | |
if ( Trig_Player5_Profile_Dialog_Func007001() ) then | |
set udg_Player5ProfileButtons[2] = GetLastCreatedButtonBJ() | |
else | |
set udg_Player5ProfileButtons[3] = GetLastCreatedButtonBJ() | |
endif | |
call DialogDisplayBJ( true, udg_Player5ProfileDialog, Player(4) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player5_Profile_Dialog takes nothing returns nothing | |
set gg_trg_Player5_Profile_Dialog = CreateTrigger( ) | |
call TriggerRegisterTimerEventSingle( gg_trg_Player5_Profile_Dialog, 15.00 ) | |
call TriggerAddAction( gg_trg_Player5_Profile_Dialog, function Trig_Player5_Profile_Dialog_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player6 Profile Dialog | |
//=========================================================================== | |
function Trig_Player6_Profile_Dialog_Func006001 takes nothing returns boolean | |
return ( udg_Defenders[2] < ( ( CountPlayersInForceBJ(udg_Team2Group) / 3 ) + 1 ) ) | |
endfunction | |
function Trig_Player6_Profile_Dialog_Func007001 takes nothing returns boolean | |
return ( udg_Defenders[2] < ( ( CountPlayersInForceBJ(udg_Team2Group) / 3 ) + 1 ) ) | |
endfunction | |
function Trig_Player6_Profile_Dialog_Actions takes nothing returns nothing | |
call DialogClearBJ( udg_Player6ProfileDialog ) | |
call DialogSetMessageBJ( udg_Player6ProfileDialog, udg_ProfileDialogText ) | |
call DialogAddButtonBJ( udg_Player6ProfileDialog, udg_ProfileDialogButton1Label ) | |
set udg_Player6ProfileButtons[1] = GetLastCreatedButtonBJ() | |
if ( Trig_Player6_Profile_Dialog_Func006001() ) then | |
call DialogAddButtonBJ( udg_Player6ProfileDialog, ( I2S(( ( ( CountPlayersInForceBJ(udg_Team2Group) / 3 ) + 1 ) - udg_Defenders[2] )) + udg_ProfileDialogButton2Label ) ) | |
else | |
call DialogAddButtonBJ( udg_Player6ProfileDialog, udg_ProfileDialogButton2LabelAlt ) | |
endif | |
if ( Trig_Player6_Profile_Dialog_Func007001() ) then | |
set udg_Player6ProfileButtons[2] = GetLastCreatedButtonBJ() | |
else | |
set udg_Player6ProfileButtons[3] = GetLastCreatedButtonBJ() | |
endif | |
call DialogDisplayBJ( true, udg_Player6ProfileDialog, Player(5) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player6_Profile_Dialog takes nothing returns nothing | |
set gg_trg_Player6_Profile_Dialog = CreateTrigger( ) | |
call TriggerRegisterTimerEventSingle( gg_trg_Player6_Profile_Dialog, 25.00 ) | |
call TriggerAddAction( gg_trg_Player6_Profile_Dialog, function Trig_Player6_Profile_Dialog_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player7 Profile Dialog | |
//=========================================================================== | |
function Trig_Player7_Profile_Dialog_Func006001 takes nothing returns boolean | |
return ( udg_Defenders[3] < ( ( CountPlayersInForceBJ(udg_Team3Group) / 3 ) + 1 ) ) | |
endfunction | |
function Trig_Player7_Profile_Dialog_Func007001 takes nothing returns boolean | |
return ( udg_Defenders[3] < ( ( CountPlayersInForceBJ(udg_Team3Group) / 3 ) + 1 ) ) | |
endfunction | |
function Trig_Player7_Profile_Dialog_Actions takes nothing returns nothing | |
call DialogClearBJ( udg_Player7ProfileDialog ) | |
call DialogSetMessageBJ( udg_Player7ProfileDialog, udg_ProfileDialogText ) | |
call DialogAddButtonBJ( udg_Player7ProfileDialog, udg_ProfileDialogButton1Label ) | |
set udg_Player7ProfileButtons[1] = GetLastCreatedButtonBJ() | |
if ( Trig_Player7_Profile_Dialog_Func006001() ) then | |
call DialogAddButtonBJ( udg_Player7ProfileDialog, ( I2S(( ( ( CountPlayersInForceBJ(udg_Team3Group) / 3 ) + 1 ) - udg_Defenders[3] )) + udg_ProfileDialogButton2Label ) ) | |
else | |
call DialogAddButtonBJ( udg_Player7ProfileDialog, udg_ProfileDialogButton2LabelAlt ) | |
endif | |
if ( Trig_Player7_Profile_Dialog_Func007001() ) then | |
set udg_Player7ProfileButtons[2] = GetLastCreatedButtonBJ() | |
else | |
set udg_Player7ProfileButtons[3] = GetLastCreatedButtonBJ() | |
endif | |
call DialogDisplayBJ( true, udg_Player7ProfileDialog, Player(6) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player7_Profile_Dialog takes nothing returns nothing | |
set gg_trg_Player7_Profile_Dialog = CreateTrigger( ) | |
call TriggerRegisterTimerEventSingle( gg_trg_Player7_Profile_Dialog, 5.00 ) | |
call TriggerAddAction( gg_trg_Player7_Profile_Dialog, function Trig_Player7_Profile_Dialog_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player8 Profile Dialog | |
//=========================================================================== | |
function Trig_Player8_Profile_Dialog_Func006001 takes nothing returns boolean | |
return ( udg_Defenders[3] < ( ( CountPlayersInForceBJ(udg_Team3Group) / 3 ) + 1 ) ) | |
endfunction | |
function Trig_Player8_Profile_Dialog_Func007001 takes nothing returns boolean | |
return ( udg_Defenders[3] < ( ( CountPlayersInForceBJ(udg_Team3Group) / 3 ) + 1 ) ) | |
endfunction | |
function Trig_Player8_Profile_Dialog_Actions takes nothing returns nothing | |
call DialogClearBJ( udg_Player8ProfileDialog ) | |
call DialogSetMessageBJ( udg_Player8ProfileDialog, udg_ProfileDialogText ) | |
call DialogAddButtonBJ( udg_Player8ProfileDialog, udg_ProfileDialogButton1Label ) | |
set udg_Player8ProfileButtons[1] = GetLastCreatedButtonBJ() | |
if ( Trig_Player8_Profile_Dialog_Func006001() ) then | |
call DialogAddButtonBJ( udg_Player8ProfileDialog, ( I2S(( ( ( CountPlayersInForceBJ(udg_Team3Group) / 3 ) + 1 ) - udg_Defenders[3] )) + udg_ProfileDialogButton2Label ) ) | |
else | |
call DialogAddButtonBJ( udg_Player8ProfileDialog, udg_ProfileDialogButton2LabelAlt ) | |
endif | |
if ( Trig_Player8_Profile_Dialog_Func007001() ) then | |
set udg_Player8ProfileButtons[2] = GetLastCreatedButtonBJ() | |
else | |
set udg_Player8ProfileButtons[3] = GetLastCreatedButtonBJ() | |
endif | |
call DialogDisplayBJ( true, udg_Player8ProfileDialog, Player(7) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player8_Profile_Dialog takes nothing returns nothing | |
set gg_trg_Player8_Profile_Dialog = CreateTrigger( ) | |
call TriggerRegisterTimerEventSingle( gg_trg_Player8_Profile_Dialog, 15.00 ) | |
call TriggerAddAction( gg_trg_Player8_Profile_Dialog, function Trig_Player8_Profile_Dialog_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player9 Profile Dialog | |
//=========================================================================== | |
function Trig_Player9_Profile_Dialog_Func006001 takes nothing returns boolean | |
return ( udg_Defenders[3] < ( ( CountPlayersInForceBJ(udg_Team3Group) / 3 ) + 1 ) ) | |
endfunction | |
function Trig_Player9_Profile_Dialog_Func007001 takes nothing returns boolean | |
return ( udg_Defenders[3] < ( ( CountPlayersInForceBJ(udg_Team3Group) / 3 ) + 1 ) ) | |
endfunction | |
function Trig_Player9_Profile_Dialog_Actions takes nothing returns nothing | |
call DialogClearBJ( udg_Player9ProfileDialog ) | |
call DialogSetMessageBJ( udg_Player9ProfileDialog, udg_ProfileDialogText ) | |
call DialogAddButtonBJ( udg_Player9ProfileDialog, udg_ProfileDialogButton1Label ) | |
set udg_Player9ProfileButtons[1] = GetLastCreatedButtonBJ() | |
if ( Trig_Player9_Profile_Dialog_Func006001() ) then | |
call DialogAddButtonBJ( udg_Player9ProfileDialog, ( I2S(( ( ( CountPlayersInForceBJ(udg_Team3Group) / 3 ) + 1 ) - udg_Defenders[3] )) + udg_ProfileDialogButton2Label ) ) | |
else | |
call DialogAddButtonBJ( udg_Player9ProfileDialog, udg_ProfileDialogButton2LabelAlt ) | |
endif | |
if ( Trig_Player9_Profile_Dialog_Func007001() ) then | |
set udg_Player9ProfileButtons[2] = GetLastCreatedButtonBJ() | |
else | |
set udg_Player9ProfileButtons[3] = GetLastCreatedButtonBJ() | |
endif | |
call DialogDisplayBJ( true, udg_Player9ProfileDialog, Player(8) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player9_Profile_Dialog takes nothing returns nothing | |
set gg_trg_Player9_Profile_Dialog = CreateTrigger( ) | |
call TriggerRegisterTimerEventSingle( gg_trg_Player9_Profile_Dialog, 25.00 ) | |
call TriggerAddAction( gg_trg_Player9_Profile_Dialog, function Trig_Player9_Profile_Dialog_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player1 Profile Button1 | |
//=========================================================================== | |
function Trig_Player1_Profile_Button1_Func011001 takes nothing returns boolean | |
return ( GetClickedButtonBJ() == udg_Player1ProfileButtons[1] ) | |
endfunction | |
function Trig_Player1_Profile_Button1_Func011002 takes nothing returns boolean | |
return ( GetClickedButtonBJ() == udg_Player1ProfileButtons[3] ) | |
endfunction | |
function Trig_Player1_Profile_Button1_Conditions takes nothing returns boolean | |
if ( not GetBooleanOr( Trig_Player1_Profile_Button1_Func011001(), Trig_Player1_Profile_Button1_Func011002() ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player1_Profile_Button1_Func002001 takes nothing returns boolean | |
return ( udg_Profiles[1] == 1 ) | |
endfunction | |
function Trig_Player1_Profile_Button1_Actions takes nothing returns nothing | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[0], 15.00, udg_ProfileDialogButton1Text ) | |
if ( Trig_Player1_Profile_Button1_Func002001() ) then | |
set udg_Defenders[1] = ( udg_Defenders[1] - 1 ) | |
else | |
call DoNothing( ) | |
endif | |
set udg_Profiles[1] = 0 | |
call DisableTrigger( gg_trg_Player1_Kill_Income ) | |
call ConditionalTriggerExecute( gg_trg_Finalize_Player1 ) | |
set udg_ProfileSet[1] = true | |
set udg_PlayerProfiles[1] = udg_ProfileSummonerText | |
call ForceRemovePlayerSimple( Player(0), udg_Team1Defenders ) | |
call ForceAddPlayerSimple( Player(0), udg_Team1Summoners ) | |
call DisplayTimedTextToForce( udg_Team1Group, 10.00, ( ( "|c00ff0000" + ( GetPlayerName(Player(0)) + "|r" ) ) + udg_ProfileDeclarationSummoner ) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player1_Profile_Button1 takes nothing returns nothing | |
set gg_trg_Player1_Profile_Button1 = CreateTrigger( ) | |
call TriggerRegisterDialogEventBJ( gg_trg_Player1_Profile_Button1, udg_Player1ProfileDialog ) | |
call TriggerAddCondition( gg_trg_Player1_Profile_Button1, Condition( function Trig_Player1_Profile_Button1_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player1_Profile_Button1, function Trig_Player1_Profile_Button1_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player2 Profile Button1 | |
//=========================================================================== | |
function Trig_Player2_Profile_Button1_Func001001 takes nothing returns boolean | |
return ( GetClickedButtonBJ() == udg_Player2ProfileButtons[1] ) | |
endfunction | |
function Trig_Player2_Profile_Button1_Func001002 takes nothing returns boolean | |
return ( GetClickedButtonBJ() == udg_Player2ProfileButtons[3] ) | |
endfunction | |
function Trig_Player2_Profile_Button1_Conditions takes nothing returns boolean | |
if ( not GetBooleanOr( Trig_Player2_Profile_Button1_Func001001(), Trig_Player2_Profile_Button1_Func001002() ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player2_Profile_Button1_Func003001 takes nothing returns boolean | |
return ( udg_Profiles[2] == 1 ) | |
endfunction | |
function Trig_Player2_Profile_Button1_Actions takes nothing returns nothing | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[1], 15.00, udg_ProfileDialogButton1Text ) | |
if ( Trig_Player2_Profile_Button1_Func003001() ) then | |
set udg_Defenders[1] = ( udg_Defenders[1] - 1 ) | |
else | |
call DoNothing( ) | |
endif | |
set udg_Profiles[2] = 0 | |
call DisableTrigger( gg_trg_Player2_Kill_Income ) | |
call ConditionalTriggerExecute( gg_trg_Finalize_Player2 ) | |
set udg_ProfileSet[2] = true | |
set udg_PlayerProfiles[2] = udg_ProfileSummonerText | |
call ForceRemovePlayerSimple( Player(1), udg_Team1Defenders ) | |
call ForceAddPlayerSimple( Player(1), udg_Team1Summoners ) | |
call DisplayTimedTextToForce( udg_Team1Group, 10.00, ( ( "|c000040ff" + ( GetPlayerName(Player(1)) + "|r" ) ) + udg_ProfileDeclarationSummoner ) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player2_Profile_Button1 takes nothing returns nothing | |
set gg_trg_Player2_Profile_Button1 = CreateTrigger( ) | |
call TriggerRegisterDialogEventBJ( gg_trg_Player2_Profile_Button1, udg_Player2ProfileDialog ) | |
call TriggerAddCondition( gg_trg_Player2_Profile_Button1, Condition( function Trig_Player2_Profile_Button1_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player2_Profile_Button1, function Trig_Player2_Profile_Button1_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player3 Profile Button1 | |
//=========================================================================== | |
function Trig_Player3_Profile_Button1_Func001001 takes nothing returns boolean | |
return ( GetClickedButtonBJ() == udg_Player3ProfileButtons[1] ) | |
endfunction | |
function Trig_Player3_Profile_Button1_Func001002 takes nothing returns boolean | |
return ( GetClickedButtonBJ() == udg_Player3ProfileButtons[3] ) | |
endfunction | |
function Trig_Player3_Profile_Button1_Conditions takes nothing returns boolean | |
if ( not GetBooleanOr( Trig_Player3_Profile_Button1_Func001001(), Trig_Player3_Profile_Button1_Func001002() ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player3_Profile_Button1_Func003001 takes nothing returns boolean | |
return ( udg_Profiles[3] == 1 ) | |
endfunction | |
function Trig_Player3_Profile_Button1_Actions takes nothing returns nothing | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[2], 15.00, udg_ProfileDialogButton1Text ) | |
if ( Trig_Player3_Profile_Button1_Func003001() ) then | |
set udg_Defenders[1] = ( udg_Defenders[1] - 1 ) | |
else | |
call DoNothing( ) | |
endif | |
set udg_Profiles[3] = 0 | |
call DisableTrigger( gg_trg_Player3_Kill_Income ) | |
call ConditionalTriggerExecute( gg_trg_Finalize_Player3 ) | |
set udg_ProfileSet[3] = true | |
set udg_PlayerProfiles[3] = udg_ProfileSummonerText | |
call ForceRemovePlayerSimple( Player(2), udg_Team1Defenders ) | |
call ForceAddPlayerSimple( Player(2), udg_Team1Summoners ) | |
call DisplayTimedTextToForce( udg_Team1Group, 10.00, ( ( "|c001fe7bf" + ( GetPlayerName(Player(2)) + "|r" ) ) + udg_ProfileDeclarationSummoner ) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player3_Profile_Button1 takes nothing returns nothing | |
set gg_trg_Player3_Profile_Button1 = CreateTrigger( ) | |
call TriggerRegisterDialogEventBJ( gg_trg_Player3_Profile_Button1, udg_Player3ProfileDialog ) | |
call TriggerAddCondition( gg_trg_Player3_Profile_Button1, Condition( function Trig_Player3_Profile_Button1_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player3_Profile_Button1, function Trig_Player3_Profile_Button1_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player4 Profile Button1 | |
//=========================================================================== | |
function Trig_Player4_Profile_Button1_Func001001 takes nothing returns boolean | |
return ( GetClickedButtonBJ() == udg_Player4ProfileButtons[1] ) | |
endfunction | |
function Trig_Player4_Profile_Button1_Func001002 takes nothing returns boolean | |
return ( GetClickedButtonBJ() == udg_Player4ProfileButtons[3] ) | |
endfunction | |
function Trig_Player4_Profile_Button1_Conditions takes nothing returns boolean | |
if ( not GetBooleanOr( Trig_Player4_Profile_Button1_Func001001(), Trig_Player4_Profile_Button1_Func001002() ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player4_Profile_Button1_Func003001 takes nothing returns boolean | |
return ( udg_Profiles[4] == 1 ) | |
endfunction | |
function Trig_Player4_Profile_Button1_Actions takes nothing returns nothing | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[3], 15.00, udg_ProfileDialogButton1Text ) | |
if ( Trig_Player4_Profile_Button1_Func003001() ) then | |
set udg_Defenders[2] = ( udg_Defenders[2] - 1 ) | |
else | |
call DoNothing( ) | |
endif | |
set udg_Profiles[4] = 0 | |
call DisableTrigger( gg_trg_Player4_Kill_Income ) | |
call ConditionalTriggerExecute( gg_trg_Finalize_Player4 ) | |
set udg_ProfileSet[4] = true | |
set udg_PlayerProfiles[4] = udg_ProfileSummonerText | |
call ForceRemovePlayerSimple( Player(3), udg_Team2Defenders ) | |
call ForceAddPlayerSimple( Player(3), udg_Team2Summoners ) | |
call DisplayTimedTextToForce( udg_Team2Group, 10.00, ( ( "|c00500080" + ( GetPlayerName(Player(3)) + "|r" ) ) + udg_ProfileDeclarationSummoner ) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player4_Profile_Button1 takes nothing returns nothing | |
set gg_trg_Player4_Profile_Button1 = CreateTrigger( ) | |
call TriggerRegisterDialogEventBJ( gg_trg_Player4_Profile_Button1, udg_Player4ProfileDialog ) | |
call TriggerAddCondition( gg_trg_Player4_Profile_Button1, Condition( function Trig_Player4_Profile_Button1_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player4_Profile_Button1, function Trig_Player4_Profile_Button1_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player5 Profile Button1 | |
//=========================================================================== | |
function Trig_Player5_Profile_Button1_Func001001 takes nothing returns boolean | |
return ( GetClickedButtonBJ() == udg_Player5ProfileButtons[1] ) | |
endfunction | |
function Trig_Player5_Profile_Button1_Func001002 takes nothing returns boolean | |
return ( GetClickedButtonBJ() == udg_Player5ProfileButtons[3] ) | |
endfunction | |
function Trig_Player5_Profile_Button1_Conditions takes nothing returns boolean | |
if ( not GetBooleanOr( Trig_Player5_Profile_Button1_Func001001(), Trig_Player5_Profile_Button1_Func001002() ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player5_Profile_Button1_Func003001 takes nothing returns boolean | |
return ( udg_Profiles[5] == 1 ) | |
endfunction | |
function Trig_Player5_Profile_Button1_Actions takes nothing returns nothing | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[4], 15.00, udg_ProfileDialogButton1Text ) | |
if ( Trig_Player5_Profile_Button1_Func003001() ) then | |
set udg_Defenders[2] = ( udg_Defenders[2] - 1 ) | |
else | |
call DoNothing( ) | |
endif | |
set udg_Profiles[5] = 0 | |
call DisableTrigger( gg_trg_Player5_Kill_Income ) | |
call ConditionalTriggerExecute( gg_trg_Finalize_Player5 ) | |
set udg_ProfileSet[5] = true | |
set udg_PlayerProfiles[5] = udg_ProfileSummonerText | |
call ForceRemovePlayerSimple( Player(4), udg_Team2Defenders ) | |
call ForceAddPlayerSimple( Player(4), udg_Team2Summoners ) | |
call DisplayTimedTextToForce( udg_Team2Group, 10.00, ( ( "|cffdddd32" + ( GetPlayerName(Player(4)) + "|r" ) ) + udg_ProfileDeclarationSummoner ) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player5_Profile_Button1 takes nothing returns nothing | |
set gg_trg_Player5_Profile_Button1 = CreateTrigger( ) | |
call TriggerRegisterDialogEventBJ( gg_trg_Player5_Profile_Button1, udg_Player5ProfileDialog ) | |
call TriggerAddCondition( gg_trg_Player5_Profile_Button1, Condition( function Trig_Player5_Profile_Button1_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player5_Profile_Button1, function Trig_Player5_Profile_Button1_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player6 Profile Button1 | |
//=========================================================================== | |
function Trig_Player6_Profile_Button1_Func001001 takes nothing returns boolean | |
return ( GetClickedButtonBJ() == udg_Player6ProfileButtons[1] ) | |
endfunction | |
function Trig_Player6_Profile_Button1_Func001002 takes nothing returns boolean | |
return ( GetClickedButtonBJ() == udg_Player6ProfileButtons[3] ) | |
endfunction | |
function Trig_Player6_Profile_Button1_Conditions takes nothing returns boolean | |
if ( not GetBooleanOr( Trig_Player6_Profile_Button1_Func001001(), Trig_Player6_Profile_Button1_Func001002() ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player6_Profile_Button1_Func003001 takes nothing returns boolean | |
return ( udg_Profiles[6] == 1 ) | |
endfunction | |
function Trig_Player6_Profile_Button1_Actions takes nothing returns nothing | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[5], 15.00, udg_ProfileDialogButton1Text ) | |
if ( Trig_Player6_Profile_Button1_Func003001() ) then | |
set udg_Defenders[2] = ( udg_Defenders[2] - 1 ) | |
else | |
call DoNothing( ) | |
endif | |
set udg_Profiles[6] = 0 | |
call DisableTrigger( gg_trg_Player6_Kill_Income ) | |
call ConditionalTriggerExecute( gg_trg_Finalize_Player6 ) | |
set udg_ProfileSet[6] = true | |
set udg_PlayerProfiles[6] = udg_ProfileSummonerText | |
call ForceRemovePlayerSimple( Player(5), udg_Team2Defenders ) | |
call ForceAddPlayerSimple( Player(5), udg_Team2Summoners ) | |
call DisplayTimedTextToForce( udg_Team2Group, 10.00, ( ( "|c00ff880f" + ( GetPlayerName(Player(5)) + "|r" ) ) + udg_ProfileDeclarationSummoner ) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player6_Profile_Button1 takes nothing returns nothing | |
set gg_trg_Player6_Profile_Button1 = CreateTrigger( ) | |
call TriggerRegisterDialogEventBJ( gg_trg_Player6_Profile_Button1, udg_Player6ProfileDialog ) | |
call TriggerAddCondition( gg_trg_Player6_Profile_Button1, Condition( function Trig_Player6_Profile_Button1_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player6_Profile_Button1, function Trig_Player6_Profile_Button1_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player7 Profile Button1 | |
//=========================================================================== | |
function Trig_Player7_Profile_Button1_Func001001 takes nothing returns boolean | |
return ( GetClickedButtonBJ() == udg_Player7ProfileButtons[1] ) | |
endfunction | |
function Trig_Player7_Profile_Button1_Func001002 takes nothing returns boolean | |
return ( GetClickedButtonBJ() == udg_Player7ProfileButtons[3] ) | |
endfunction | |
function Trig_Player7_Profile_Button1_Conditions takes nothing returns boolean | |
if ( not GetBooleanOr( Trig_Player7_Profile_Button1_Func001001(), Trig_Player7_Profile_Button1_Func001002() ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player7_Profile_Button1_Func003001 takes nothing returns boolean | |
return ( udg_Profiles[7] == 1 ) | |
endfunction | |
function Trig_Player7_Profile_Button1_Actions takes nothing returns nothing | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[6], 15.00, udg_ProfileDialogButton1Text ) | |
if ( Trig_Player7_Profile_Button1_Func003001() ) then | |
set udg_Defenders[3] = ( udg_Defenders[3] - 1 ) | |
else | |
call DoNothing( ) | |
endif | |
set udg_Profiles[7] = 0 | |
call DisableTrigger( gg_trg_Player7_Kill_Income ) | |
call ConditionalTriggerExecute( gg_trg_Finalize_Player7 ) | |
set udg_ProfileSet[7] = true | |
set udg_PlayerProfiles[7] = udg_ProfileSummonerText | |
call ForceRemovePlayerSimple( Player(6), udg_Team3Defenders ) | |
call ForceAddPlayerSimple( Player(6), udg_Team3Summoners ) | |
call DisplayTimedTextToForce( udg_Team3Group, 10.00, ( ( "|cff32cd32" + ( GetPlayerName(Player(6)) + "|r" ) ) + udg_ProfileDeclarationSummoner ) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player7_Profile_Button1 takes nothing returns nothing | |
set gg_trg_Player7_Profile_Button1 = CreateTrigger( ) | |
call TriggerRegisterDialogEventBJ( gg_trg_Player7_Profile_Button1, udg_Player7ProfileDialog ) | |
call TriggerAddCondition( gg_trg_Player7_Profile_Button1, Condition( function Trig_Player7_Profile_Button1_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player7_Profile_Button1, function Trig_Player7_Profile_Button1_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player8 Profile Button1 | |
//=========================================================================== | |
function Trig_Player8_Profile_Button1_Func001001 takes nothing returns boolean | |
return ( GetClickedButtonBJ() == udg_Player8ProfileButtons[1] ) | |
endfunction | |
function Trig_Player8_Profile_Button1_Func001002 takes nothing returns boolean | |
return ( GetClickedButtonBJ() == udg_Player8ProfileButtons[3] ) | |
endfunction | |
function Trig_Player8_Profile_Button1_Conditions takes nothing returns boolean | |
if ( not GetBooleanOr( Trig_Player8_Profile_Button1_Func001001(), Trig_Player8_Profile_Button1_Func001002() ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player8_Profile_Button1_Func003001 takes nothing returns boolean | |
return ( udg_Profiles[8] == 1 ) | |
endfunction | |
function Trig_Player8_Profile_Button1_Actions takes nothing returns nothing | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[7], 15.00, udg_ProfileDialogButton1Text ) | |
if ( Trig_Player8_Profile_Button1_Func003001() ) then | |
set udg_Defenders[3] = ( udg_Defenders[3] - 1 ) | |
else | |
call DoNothing( ) | |
endif | |
set udg_Profiles[8] = 0 | |
call DisableTrigger( gg_trg_Player8_Kill_Income ) | |
call ConditionalTriggerExecute( gg_trg_Finalize_Player8 ) | |
set udg_ProfileSet[8] = true | |
set udg_PlayerProfiles[8] = udg_ProfileSummonerText | |
call ForceRemovePlayerSimple( Player(7), udg_Team3Defenders ) | |
call ForceAddPlayerSimple( Player(7), udg_Team3Summoners ) | |
call DisplayTimedTextToForce( udg_Team3Group, 10.00, ( ( "|cffcd32cd" + ( GetPlayerName(Player(7)) + "|r" ) ) + udg_ProfileDeclarationSummoner ) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player8_Profile_Button1 takes nothing returns nothing | |
set gg_trg_Player8_Profile_Button1 = CreateTrigger( ) | |
call TriggerRegisterDialogEventBJ( gg_trg_Player8_Profile_Button1, udg_Player8ProfileDialog ) | |
call TriggerAddCondition( gg_trg_Player8_Profile_Button1, Condition( function Trig_Player8_Profile_Button1_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player8_Profile_Button1, function Trig_Player8_Profile_Button1_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player9 Profile Button1 | |
//=========================================================================== | |
function Trig_Player9_Profile_Button1_Func001001 takes nothing returns boolean | |
return ( GetClickedButtonBJ() == udg_Player9ProfileButtons[1] ) | |
endfunction | |
function Trig_Player9_Profile_Button1_Func001002 takes nothing returns boolean | |
return ( GetClickedButtonBJ() == udg_Player9ProfileButtons[3] ) | |
endfunction | |
function Trig_Player9_Profile_Button1_Conditions takes nothing returns boolean | |
if ( not GetBooleanOr( Trig_Player9_Profile_Button1_Func001001(), Trig_Player9_Profile_Button1_Func001002() ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player9_Profile_Button1_Func003001 takes nothing returns boolean | |
return ( udg_Profiles[9] == 1 ) | |
endfunction | |
function Trig_Player9_Profile_Button1_Actions takes nothing returns nothing | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[8], 15.00, udg_ProfileDialogButton1Text ) | |
if ( Trig_Player9_Profile_Button1_Func003001() ) then | |
set udg_Defenders[3] = ( udg_Defenders[3] - 1 ) | |
else | |
call DoNothing( ) | |
endif | |
set udg_Profiles[9] = 0 | |
call DisableTrigger( gg_trg_Player9_Kill_Income ) | |
call ConditionalTriggerExecute( gg_trg_Finalize_Player9 ) | |
set udg_ProfileSet[9] = true | |
set udg_PlayerProfiles[9] = udg_ProfileSummonerText | |
call ForceRemovePlayerSimple( Player(8), udg_Team3Defenders ) | |
call ForceAddPlayerSimple( Player(8), udg_Team3Summoners ) | |
call DisplayTimedTextToForce( udg_Team3Group, 10.00, ( ( "|c00b5b5b5" + ( GetPlayerName(Player(8)) + "|r" ) ) + udg_ProfileDeclarationSummoner ) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player9_Profile_Button1 takes nothing returns nothing | |
set gg_trg_Player9_Profile_Button1 = CreateTrigger( ) | |
call TriggerRegisterDialogEventBJ( gg_trg_Player9_Profile_Button1, udg_Player9ProfileDialog ) | |
call TriggerAddCondition( gg_trg_Player9_Profile_Button1, Condition( function Trig_Player9_Profile_Button1_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player9_Profile_Button1, function Trig_Player9_Profile_Button1_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player1 Profile Button2 | |
//=========================================================================== | |
function Trig_Player1_Profile_Button2_Conditions takes nothing returns boolean | |
if ( not ( GetClickedButtonBJ() == udg_Player1ProfileButtons[2] ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player1_Profile_Button2_Func001001 takes nothing returns boolean | |
return ( udg_Defenders[1] < ( ( CountPlayersInForceBJ(udg_Team1Group) / 3 ) + 1 ) ) | |
endfunction | |
function Trig_Player1_Profile_Button2_Func002001 takes nothing returns boolean | |
return ( udg_Defenders[1] < ( ( CountPlayersInForceBJ(udg_Team1Group) / 3 ) + 1 ) ) | |
endfunction | |
function Trig_Player1_Profile_Button2_Func004001 takes nothing returns boolean | |
return ( udg_Profiles[1] == 0 ) | |
endfunction | |
function Trig_Player1_Profile_Button2_Actions takes nothing returns nothing | |
if ( Trig_Player1_Profile_Button2_Func001001() ) then | |
call DoNothing( ) | |
else | |
call TriggerExecute( gg_trg_Player1_Profile_Button1 ) | |
endif | |
if ( Trig_Player1_Profile_Button2_Func002001() ) then | |
call DoNothing( ) | |
else | |
return | |
endif | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[0], 15.00, udg_ProfileDialogButton2Text ) | |
if ( Trig_Player1_Profile_Button2_Func004001() ) then | |
set udg_Defenders[1] = ( udg_Defenders[1] + 1 ) | |
else | |
call DoNothing( ) | |
endif | |
set udg_Profiles[1] = 1 | |
call EnableTrigger( gg_trg_Player1_Kill_Income ) | |
call ConditionalTriggerExecute( gg_trg_Finalize_Player1 ) | |
set udg_ProfileSet[1] = true | |
set udg_PlayerProfiles[1] = udg_ProfileDefenderText | |
call ForceRemovePlayerSimple( Player(0), udg_Team1Summoners ) | |
call ForceAddPlayerSimple( Player(0), udg_Team1Defenders ) | |
call DisplayTimedTextToForce( udg_Team1Group, 10.00, ( ( "|c00ff0000" + ( GetPlayerName(Player(0)) + "|r" ) ) + udg_ProfileDeclarationDefender ) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player1_Profile_Button2 takes nothing returns nothing | |
set gg_trg_Player1_Profile_Button2 = CreateTrigger( ) | |
call TriggerRegisterDialogEventBJ( gg_trg_Player1_Profile_Button2, udg_Player1ProfileDialog ) | |
call TriggerAddCondition( gg_trg_Player1_Profile_Button2, Condition( function Trig_Player1_Profile_Button2_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player1_Profile_Button2, function Trig_Player1_Profile_Button2_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player2 Profile Button2 | |
//=========================================================================== | |
function Trig_Player2_Profile_Button2_Conditions takes nothing returns boolean | |
if ( not ( GetClickedButtonBJ() == udg_Player2ProfileButtons[2] ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player2_Profile_Button2_Func001001 takes nothing returns boolean | |
return ( udg_Defenders[1] < ( ( CountPlayersInForceBJ(udg_Team1Group) / 3 ) + 1 ) ) | |
endfunction | |
function Trig_Player2_Profile_Button2_Func002001 takes nothing returns boolean | |
return ( udg_Defenders[1] < ( ( CountPlayersInForceBJ(udg_Team1Group) / 3 ) + 1 ) ) | |
endfunction | |
function Trig_Player2_Profile_Button2_Func004001 takes nothing returns boolean | |
return ( udg_Profiles[2] == 0 ) | |
endfunction | |
function Trig_Player2_Profile_Button2_Actions takes nothing returns nothing | |
if ( Trig_Player2_Profile_Button2_Func001001() ) then | |
call DoNothing( ) | |
else | |
call TriggerExecute( gg_trg_Player2_Profile_Button1 ) | |
endif | |
if ( Trig_Player2_Profile_Button2_Func002001() ) then | |
call DoNothing( ) | |
else | |
return | |
endif | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[1], 15.00, udg_ProfileDialogButton2Text ) | |
if ( Trig_Player2_Profile_Button2_Func004001() ) then | |
set udg_Defenders[1] = ( udg_Defenders[1] + 1 ) | |
else | |
call DoNothing( ) | |
endif | |
set udg_Profiles[2] = 1 | |
call EnableTrigger( gg_trg_Player2_Kill_Income ) | |
call ConditionalTriggerExecute( gg_trg_Finalize_Player2 ) | |
set udg_ProfileSet[2] = true | |
set udg_PlayerProfiles[2] = udg_ProfileDefenderText | |
call ForceRemovePlayerSimple( Player(1), udg_Team1Summoners ) | |
call ForceAddPlayerSimple( Player(1), udg_Team1Defenders ) | |
call DisplayTimedTextToForce( udg_Team1Group, 10.00, ( ( "|c000040ff" + ( GetPlayerName(Player(1)) + "|r" ) ) + udg_ProfileDeclarationDefender ) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player2_Profile_Button2 takes nothing returns nothing | |
set gg_trg_Player2_Profile_Button2 = CreateTrigger( ) | |
call TriggerRegisterDialogEventBJ( gg_trg_Player2_Profile_Button2, udg_Player2ProfileDialog ) | |
call TriggerAddCondition( gg_trg_Player2_Profile_Button2, Condition( function Trig_Player2_Profile_Button2_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player2_Profile_Button2, function Trig_Player2_Profile_Button2_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player3 Profile Button2 | |
//=========================================================================== | |
function Trig_Player3_Profile_Button2_Conditions takes nothing returns boolean | |
if ( not ( GetClickedButtonBJ() == udg_Player3ProfileButtons[2] ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player3_Profile_Button2_Func001001 takes nothing returns boolean | |
return ( udg_Defenders[1] < ( ( CountPlayersInForceBJ(udg_Team1Group) / 3 ) + 1 ) ) | |
endfunction | |
function Trig_Player3_Profile_Button2_Func002001 takes nothing returns boolean | |
return ( udg_Defenders[1] < ( ( CountPlayersInForceBJ(udg_Team1Group) / 3 ) + 1 ) ) | |
endfunction | |
function Trig_Player3_Profile_Button2_Func004001 takes nothing returns boolean | |
return ( udg_Profiles[3] == 0 ) | |
endfunction | |
function Trig_Player3_Profile_Button2_Actions takes nothing returns nothing | |
if ( Trig_Player3_Profile_Button2_Func001001() ) then | |
call DoNothing( ) | |
else | |
call TriggerExecute( gg_trg_Player3_Profile_Button1 ) | |
endif | |
if ( Trig_Player3_Profile_Button2_Func002001() ) then | |
call DoNothing( ) | |
else | |
return | |
endif | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[2], 15.00, udg_ProfileDialogButton2Text ) | |
if ( Trig_Player3_Profile_Button2_Func004001() ) then | |
set udg_Defenders[1] = ( udg_Defenders[1] + 1 ) | |
else | |
call DoNothing( ) | |
endif | |
set udg_Profiles[3] = 1 | |
call EnableTrigger( gg_trg_Player3_Kill_Income ) | |
call ConditionalTriggerExecute( gg_trg_Finalize_Player3 ) | |
set udg_ProfileSet[3] = true | |
set udg_PlayerProfiles[3] = udg_ProfileDefenderText | |
call ForceRemovePlayerSimple( Player(2), udg_Team1Summoners ) | |
call ForceAddPlayerSimple( Player(2), udg_Team1Defenders ) | |
call DisplayTimedTextToForce( udg_Team1Group, 10.00, ( ( "|c001fe7bf" + ( GetPlayerName(Player(2)) + "|r" ) ) + udg_ProfileDeclarationDefender ) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player3_Profile_Button2 takes nothing returns nothing | |
set gg_trg_Player3_Profile_Button2 = CreateTrigger( ) | |
call TriggerRegisterDialogEventBJ( gg_trg_Player3_Profile_Button2, udg_Player3ProfileDialog ) | |
call TriggerAddCondition( gg_trg_Player3_Profile_Button2, Condition( function Trig_Player3_Profile_Button2_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player3_Profile_Button2, function Trig_Player3_Profile_Button2_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player4 Profile Button2 | |
//=========================================================================== | |
function Trig_Player4_Profile_Button2_Conditions takes nothing returns boolean | |
if ( not ( GetClickedButtonBJ() == udg_Player4ProfileButtons[2] ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player4_Profile_Button2_Func001001 takes nothing returns boolean | |
return ( udg_Defenders[2] < ( ( CountPlayersInForceBJ(udg_Team2Group) / 3 ) + 1 ) ) | |
endfunction | |
function Trig_Player4_Profile_Button2_Func002001 takes nothing returns boolean | |
return ( udg_Defenders[2] < ( ( CountPlayersInForceBJ(udg_Team2Group) / 3 ) + 1 ) ) | |
endfunction | |
function Trig_Player4_Profile_Button2_Func004001 takes nothing returns boolean | |
return ( udg_Profiles[4] == 0 ) | |
endfunction | |
function Trig_Player4_Profile_Button2_Actions takes nothing returns nothing | |
if ( Trig_Player4_Profile_Button2_Func001001() ) then | |
call DoNothing( ) | |
else | |
call TriggerExecute( gg_trg_Player4_Profile_Button1 ) | |
endif | |
if ( Trig_Player4_Profile_Button2_Func002001() ) then | |
call DoNothing( ) | |
else | |
return | |
endif | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[3], 15.00, udg_ProfileDialogButton2Text ) | |
if ( Trig_Player4_Profile_Button2_Func004001() ) then | |
set udg_Defenders[2] = ( udg_Defenders[2] + 1 ) | |
else | |
call DoNothing( ) | |
endif | |
set udg_Profiles[4] = 1 | |
call EnableTrigger( gg_trg_Player4_Kill_Income ) | |
call ConditionalTriggerExecute( gg_trg_Finalize_Player4 ) | |
set udg_ProfileSet[4] = true | |
set udg_PlayerProfiles[4] = udg_ProfileDefenderText | |
call ForceRemovePlayerSimple( Player(3), udg_Team2Summoners ) | |
call ForceAddPlayerSimple( Player(3), udg_Team2Defenders ) | |
call DisplayTimedTextToForce( udg_Team2Group, 10.00, ( ( "|c00500080" + ( GetPlayerName(Player(3)) + "|r" ) ) + udg_ProfileDeclarationDefender ) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player4_Profile_Button2 takes nothing returns nothing | |
set gg_trg_Player4_Profile_Button2 = CreateTrigger( ) | |
call TriggerRegisterDialogEventBJ( gg_trg_Player4_Profile_Button2, udg_Player4ProfileDialog ) | |
call TriggerAddCondition( gg_trg_Player4_Profile_Button2, Condition( function Trig_Player4_Profile_Button2_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player4_Profile_Button2, function Trig_Player4_Profile_Button2_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player5 Profile Button2 | |
//=========================================================================== | |
function Trig_Player5_Profile_Button2_Conditions takes nothing returns boolean | |
if ( not ( GetClickedButtonBJ() == udg_Player5ProfileButtons[2] ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player5_Profile_Button2_Func001001 takes nothing returns boolean | |
return ( udg_Defenders[2] < ( ( CountPlayersInForceBJ(udg_Team2Group) / 3 ) + 1 ) ) | |
endfunction | |
function Trig_Player5_Profile_Button2_Func002001 takes nothing returns boolean | |
return ( udg_Defenders[2] < ( ( CountPlayersInForceBJ(udg_Team2Group) / 3 ) + 1 ) ) | |
endfunction | |
function Trig_Player5_Profile_Button2_Func004001 takes nothing returns boolean | |
return ( udg_Profiles[5] == 0 ) | |
endfunction | |
function Trig_Player5_Profile_Button2_Actions takes nothing returns nothing | |
if ( Trig_Player5_Profile_Button2_Func001001() ) then | |
call DoNothing( ) | |
else | |
call TriggerExecute( gg_trg_Player5_Profile_Button1 ) | |
endif | |
if ( Trig_Player5_Profile_Button2_Func002001() ) then | |
call DoNothing( ) | |
else | |
return | |
endif | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[4], 15.00, udg_ProfileDialogButton2Text ) | |
if ( Trig_Player5_Profile_Button2_Func004001() ) then | |
set udg_Defenders[2] = ( udg_Defenders[2] + 1 ) | |
else | |
call DoNothing( ) | |
endif | |
set udg_Profiles[5] = 1 | |
call EnableTrigger( gg_trg_Player5_Kill_Income ) | |
call ConditionalTriggerExecute( gg_trg_Finalize_Player5 ) | |
set udg_ProfileSet[5] = true | |
set udg_PlayerProfiles[5] = udg_ProfileDefenderText | |
call ForceRemovePlayerSimple( Player(4), udg_Team2Summoners ) | |
call ForceAddPlayerSimple( Player(4), udg_Team2Defenders ) | |
call DisplayTimedTextToForce( udg_Team2Group, 10.00, ( ( "|cffdddd32" + ( GetPlayerName(Player(4)) + "|r" ) ) + udg_ProfileDeclarationDefender ) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player5_Profile_Button2 takes nothing returns nothing | |
set gg_trg_Player5_Profile_Button2 = CreateTrigger( ) | |
call TriggerRegisterDialogEventBJ( gg_trg_Player5_Profile_Button2, udg_Player5ProfileDialog ) | |
call TriggerAddCondition( gg_trg_Player5_Profile_Button2, Condition( function Trig_Player5_Profile_Button2_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player5_Profile_Button2, function Trig_Player5_Profile_Button2_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player6 Profile Button2 | |
//=========================================================================== | |
function Trig_Player6_Profile_Button2_Conditions takes nothing returns boolean | |
if ( not ( GetClickedButtonBJ() == udg_Player6ProfileButtons[2] ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player6_Profile_Button2_Func001001 takes nothing returns boolean | |
return ( udg_Defenders[2] < ( ( CountPlayersInForceBJ(udg_Team2Group) / 3 ) + 1 ) ) | |
endfunction | |
function Trig_Player6_Profile_Button2_Func002001 takes nothing returns boolean | |
return ( udg_Defenders[2] < ( ( CountPlayersInForceBJ(udg_Team2Group) / 3 ) + 1 ) ) | |
endfunction | |
function Trig_Player6_Profile_Button2_Func004001 takes nothing returns boolean | |
return ( udg_Profiles[6] == 0 ) | |
endfunction | |
function Trig_Player6_Profile_Button2_Actions takes nothing returns nothing | |
if ( Trig_Player6_Profile_Button2_Func001001() ) then | |
call DoNothing( ) | |
else | |
call TriggerExecute( gg_trg_Player5_Profile_Button1 ) | |
endif | |
if ( Trig_Player6_Profile_Button2_Func002001() ) then | |
call DoNothing( ) | |
else | |
return | |
endif | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[5], 15.00, udg_ProfileDialogButton2Text ) | |
if ( Trig_Player6_Profile_Button2_Func004001() ) then | |
set udg_Defenders[2] = ( udg_Defenders[2] + 1 ) | |
else | |
call DoNothing( ) | |
endif | |
set udg_Profiles[6] = 1 | |
call EnableTrigger( gg_trg_Player6_Kill_Income ) | |
call ConditionalTriggerExecute( gg_trg_Finalize_Player6 ) | |
set udg_ProfileSet[6] = true | |
set udg_PlayerProfiles[6] = udg_ProfileDefenderText | |
call ForceRemovePlayerSimple( Player(5), udg_Team2Summoners ) | |
call ForceAddPlayerSimple( Player(5), udg_Team2Defenders ) | |
call DisplayTimedTextToForce( udg_Team2Group, 10.00, ( ( "|c00ff880f" + ( GetPlayerName(Player(5)) + "|r" ) ) + udg_ProfileDeclarationDefender ) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player6_Profile_Button2 takes nothing returns nothing | |
set gg_trg_Player6_Profile_Button2 = CreateTrigger( ) | |
call TriggerRegisterDialogEventBJ( gg_trg_Player6_Profile_Button2, udg_Player6ProfileDialog ) | |
call TriggerAddCondition( gg_trg_Player6_Profile_Button2, Condition( function Trig_Player6_Profile_Button2_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player6_Profile_Button2, function Trig_Player6_Profile_Button2_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player7 Profile Button2 | |
//=========================================================================== | |
function Trig_Player7_Profile_Button2_Conditions takes nothing returns boolean | |
if ( not ( GetClickedButtonBJ() == udg_Player7ProfileButtons[2] ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player7_Profile_Button2_Func001001 takes nothing returns boolean | |
return ( udg_Defenders[3] < ( ( CountPlayersInForceBJ(udg_Team3Group) / 3 ) + 1 ) ) | |
endfunction | |
function Trig_Player7_Profile_Button2_Func002001 takes nothing returns boolean | |
return ( udg_Defenders[3] < ( ( CountPlayersInForceBJ(udg_Team3Group) / 3 ) + 1 ) ) | |
endfunction | |
function Trig_Player7_Profile_Button2_Func004001 takes nothing returns boolean | |
return ( udg_Profiles[7] == 0 ) | |
endfunction | |
function Trig_Player7_Profile_Button2_Actions takes nothing returns nothing | |
if ( Trig_Player7_Profile_Button2_Func001001() ) then | |
call DoNothing( ) | |
else | |
call TriggerExecute( gg_trg_Player7_Profile_Button1 ) | |
endif | |
if ( Trig_Player7_Profile_Button2_Func002001() ) then | |
call DoNothing( ) | |
else | |
return | |
endif | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[6], 15.00, udg_ProfileDialogButton2Text ) | |
if ( Trig_Player7_Profile_Button2_Func004001() ) then | |
set udg_Defenders[3] = ( udg_Defenders[3] + 1 ) | |
else | |
call DoNothing( ) | |
endif | |
set udg_Profiles[7] = 1 | |
call EnableTrigger( gg_trg_Player7_Kill_Income ) | |
call ConditionalTriggerExecute( gg_trg_Finalize_Player7 ) | |
set udg_ProfileSet[7] = true | |
set udg_PlayerProfiles[7] = udg_ProfileDefenderText | |
call ForceRemovePlayerSimple( Player(6), udg_Team3Summoners ) | |
call ForceAddPlayerSimple( Player(6), udg_Team3Defenders ) | |
call DisplayTimedTextToForce( udg_Team3Group, 10.00, ( ( "|cff32cd32" + ( GetPlayerName(Player(6)) + "|r" ) ) + udg_ProfileDeclarationDefender ) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player7_Profile_Button2 takes nothing returns nothing | |
set gg_trg_Player7_Profile_Button2 = CreateTrigger( ) | |
call TriggerRegisterDialogEventBJ( gg_trg_Player7_Profile_Button2, udg_Player7ProfileDialog ) | |
call TriggerAddCondition( gg_trg_Player7_Profile_Button2, Condition( function Trig_Player7_Profile_Button2_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player7_Profile_Button2, function Trig_Player7_Profile_Button2_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player8 Profile Button2 | |
//=========================================================================== | |
function Trig_Player8_Profile_Button2_Conditions takes nothing returns boolean | |
if ( not ( GetClickedButtonBJ() == udg_Player8ProfileButtons[2] ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player8_Profile_Button2_Func001001 takes nothing returns boolean | |
return ( udg_Defenders[3] < ( ( CountPlayersInForceBJ(udg_Team3Group) / 3 ) + 1 ) ) | |
endfunction | |
function Trig_Player8_Profile_Button2_Func002001 takes nothing returns boolean | |
return ( udg_Defenders[3] < ( ( CountPlayersInForceBJ(udg_Team3Group) / 3 ) + 1 ) ) | |
endfunction | |
function Trig_Player8_Profile_Button2_Func004001 takes nothing returns boolean | |
return ( udg_Profiles[8] == 0 ) | |
endfunction | |
function Trig_Player8_Profile_Button2_Actions takes nothing returns nothing | |
if ( Trig_Player8_Profile_Button2_Func001001() ) then | |
call DoNothing( ) | |
else | |
call TriggerExecute( gg_trg_Player8_Profile_Button1 ) | |
endif | |
if ( Trig_Player8_Profile_Button2_Func002001() ) then | |
call DoNothing( ) | |
else | |
return | |
endif | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[7], 15.00, udg_ProfileDialogButton2Text ) | |
if ( Trig_Player8_Profile_Button2_Func004001() ) then | |
set udg_Defenders[3] = ( udg_Defenders[3] + 1 ) | |
else | |
call DoNothing( ) | |
endif | |
set udg_Profiles[8] = 1 | |
call EnableTrigger( gg_trg_Player8_Kill_Income ) | |
call ConditionalTriggerExecute( gg_trg_Finalize_Player8 ) | |
set udg_ProfileSet[8] = true | |
set udg_PlayerProfiles[8] = udg_ProfileDefenderText | |
call ForceRemovePlayerSimple( Player(7), udg_Team3Summoners ) | |
call ForceAddPlayerSimple( Player(7), udg_Team3Defenders ) | |
call DisplayTimedTextToForce( udg_Team3Group, 10.00, ( ( "|cffcd32cd" + ( GetPlayerName(Player(7)) + "|r" ) ) + udg_ProfileDeclarationDefender ) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player8_Profile_Button2 takes nothing returns nothing | |
set gg_trg_Player8_Profile_Button2 = CreateTrigger( ) | |
call TriggerRegisterDialogEventBJ( gg_trg_Player8_Profile_Button2, udg_Player8ProfileDialog ) | |
call TriggerAddCondition( gg_trg_Player8_Profile_Button2, Condition( function Trig_Player8_Profile_Button2_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player8_Profile_Button2, function Trig_Player8_Profile_Button2_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player9 Profile Button2 | |
//=========================================================================== | |
function Trig_Player9_Profile_Button2_Conditions takes nothing returns boolean | |
if ( not ( GetClickedButtonBJ() == udg_Player9ProfileButtons[2] ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player9_Profile_Button2_Func001001 takes nothing returns boolean | |
return ( udg_Defenders[3] < ( ( CountPlayersInForceBJ(udg_Team3Group) / 3 ) + 1 ) ) | |
endfunction | |
function Trig_Player9_Profile_Button2_Func002001 takes nothing returns boolean | |
return ( udg_Defenders[3] < ( ( CountPlayersInForceBJ(udg_Team3Group) / 3 ) + 1 ) ) | |
endfunction | |
function Trig_Player9_Profile_Button2_Func004001 takes nothing returns boolean | |
return ( udg_Profiles[9] == 0 ) | |
endfunction | |
function Trig_Player9_Profile_Button2_Actions takes nothing returns nothing | |
if ( Trig_Player9_Profile_Button2_Func001001() ) then | |
call DoNothing( ) | |
else | |
call TriggerExecute( gg_trg_Player9_Profile_Button1 ) | |
endif | |
if ( Trig_Player9_Profile_Button2_Func002001() ) then | |
call DoNothing( ) | |
else | |
return | |
endif | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[8], 15.00, udg_ProfileDialogButton2Text ) | |
if ( Trig_Player9_Profile_Button2_Func004001() ) then | |
set udg_Defenders[3] = ( udg_Defenders[3] + 1 ) | |
else | |
call DoNothing( ) | |
endif | |
set udg_Profiles[9] = 1 | |
call EnableTrigger( gg_trg_Player9_Kill_Income ) | |
call ConditionalTriggerExecute( gg_trg_Finalize_Player9 ) | |
set udg_ProfileSet[9] = true | |
set udg_PlayerProfiles[9] = udg_ProfileDefenderText | |
call ForceRemovePlayerSimple( Player(8), udg_Team3Summoners ) | |
call ForceAddPlayerSimple( Player(8), udg_Team3Defenders ) | |
call DisplayTimedTextToForce( udg_Team3Group, 10.00, ( ( "|c00b5b5b5" + ( GetPlayerName(Player(8)) + "|r" ) ) + udg_ProfileDeclarationDefender ) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player9_Profile_Button2 takes nothing returns nothing | |
set gg_trg_Player9_Profile_Button2 = CreateTrigger( ) | |
call TriggerRegisterDialogEventBJ( gg_trg_Player9_Profile_Button2, udg_Player9ProfileDialog ) | |
call TriggerAddCondition( gg_trg_Player9_Profile_Button2, Condition( function Trig_Player9_Profile_Button2_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player9_Profile_Button2, function Trig_Player9_Profile_Button2_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Income Setting | |
//=========================================================================== | |
function Trig_Team1_Income_Setting_Conditions takes nothing returns boolean | |
if ( not ( CountPlayersInForceBJ(udg_Team1Group) < 3 ) ) then | |
return false | |
endif | |
if ( not ( CountPlayersInForceBJ(udg_Team1Group) > 0 ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Income_Setting_Func001C takes nothing returns boolean | |
if ( not ( GetPlayerSlotState(Player(0)) == PLAYER_SLOT_STATE_PLAYING ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Income_Setting_Func002C takes nothing returns boolean | |
if ( not ( GetPlayerSlotState(Player(1)) == PLAYER_SLOT_STATE_PLAYING ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Income_Setting_Func003C takes nothing returns boolean | |
if ( not ( GetPlayerSlotState(Player(2)) == PLAYER_SLOT_STATE_PLAYING ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Income_Setting_Actions takes nothing returns nothing | |
if ( Trig_Team1_Income_Setting_Func001C() ) then | |
set udg_Income[1] = udg_IncomeSettingsIncome[CountPlayersInForceBJ(udg_Team1Group)] | |
call AdjustPlayerStateBJ( udg_IncomeSettingsGold[CountPlayersInForceBJ(udg_Team1Group)], Player(0), PLAYER_STATE_RESOURCE_GOLD ) | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[0], 20.00, udg_IncomeSettingsText[CountPlayersInForceBJ(udg_Team1Group)] ) | |
else | |
endif | |
if ( Trig_Team1_Income_Setting_Func002C() ) then | |
set udg_Income[2] = udg_IncomeSettingsIncome[CountPlayersInForceBJ(udg_Team1Group)] | |
call AdjustPlayerStateBJ( udg_IncomeSettingsGold[CountPlayersInForceBJ(udg_Team1Group)], Player(1), PLAYER_STATE_RESOURCE_GOLD ) | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[1], 20.00, udg_IncomeSettingsText[CountPlayersInForceBJ(udg_Team1Group)] ) | |
else | |
endif | |
if ( Trig_Team1_Income_Setting_Func003C() ) then | |
set udg_Income[3] = udg_IncomeSettingsIncome[CountPlayersInForceBJ(udg_Team1Group)] | |
call AdjustPlayerStateBJ( udg_IncomeSettingsGold[CountPlayersInForceBJ(udg_Team1Group)], Player(2), PLAYER_STATE_RESOURCE_GOLD ) | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[2], 20.00, udg_IncomeSettingsText[CountPlayersInForceBJ(udg_Team1Group)] ) | |
else | |
endif | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Income_Setting takes nothing returns nothing | |
set gg_trg_Team1_Income_Setting = CreateTrigger( ) | |
call TriggerRegisterTimerEventSingle( gg_trg_Team1_Income_Setting, 40.00 ) | |
call TriggerAddCondition( gg_trg_Team1_Income_Setting, Condition( function Trig_Team1_Income_Setting_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Income_Setting, function Trig_Team1_Income_Setting_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Income Setting | |
//=========================================================================== | |
function Trig_Team2_Income_Setting_Conditions takes nothing returns boolean | |
if ( not ( CountPlayersInForceBJ(udg_Team2Group) < 3 ) ) then | |
return false | |
endif | |
if ( not ( CountPlayersInForceBJ(udg_Team2Group) > 0 ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Income_Setting_Func001C takes nothing returns boolean | |
if ( not ( GetPlayerSlotState(Player(3)) == PLAYER_SLOT_STATE_PLAYING ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Income_Setting_Func002C takes nothing returns boolean | |
if ( not ( GetPlayerSlotState(Player(4)) == PLAYER_SLOT_STATE_PLAYING ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Income_Setting_Func003C takes nothing returns boolean | |
if ( not ( GetPlayerSlotState(Player(5)) == PLAYER_SLOT_STATE_PLAYING ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Income_Setting_Actions takes nothing returns nothing | |
if ( Trig_Team2_Income_Setting_Func001C() ) then | |
set udg_Income[4] = udg_IncomeSettingsIncome[CountPlayersInForceBJ(udg_Team2Group)] | |
call AdjustPlayerStateBJ( udg_IncomeSettingsGold[CountPlayersInForceBJ(udg_Team2Group)], Player(3), PLAYER_STATE_RESOURCE_GOLD ) | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[3], 20.00, udg_IncomeSettingsText[CountPlayersInForceBJ(udg_Team2Group)] ) | |
else | |
endif | |
if ( Trig_Team2_Income_Setting_Func002C() ) then | |
set udg_Income[5] = udg_IncomeSettingsIncome[CountPlayersInForceBJ(udg_Team2Group)] | |
call AdjustPlayerStateBJ( udg_IncomeSettingsGold[CountPlayersInForceBJ(udg_Team2Group)], Player(4), PLAYER_STATE_RESOURCE_GOLD ) | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[4], 20.00, udg_IncomeSettingsText[CountPlayersInForceBJ(udg_Team2Group)] ) | |
else | |
endif | |
if ( Trig_Team2_Income_Setting_Func003C() ) then | |
set udg_Income[6] = udg_IncomeSettingsIncome[CountPlayersInForceBJ(udg_Team2Group)] | |
call AdjustPlayerStateBJ( udg_IncomeSettingsGold[CountPlayersInForceBJ(udg_Team2Group)], Player(5), PLAYER_STATE_RESOURCE_GOLD ) | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[5], 20.00, udg_IncomeSettingsText[CountPlayersInForceBJ(udg_Team2Group)] ) | |
else | |
endif | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Income_Setting takes nothing returns nothing | |
set gg_trg_Team2_Income_Setting = CreateTrigger( ) | |
call TriggerRegisterTimerEventSingle( gg_trg_Team2_Income_Setting, 40.00 ) | |
call TriggerAddCondition( gg_trg_Team2_Income_Setting, Condition( function Trig_Team2_Income_Setting_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Income_Setting, function Trig_Team2_Income_Setting_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Income Setting | |
//=========================================================================== | |
function Trig_Team3_Income_Setting_Conditions takes nothing returns boolean | |
if ( not ( CountPlayersInForceBJ(udg_Team3Group) < 3 ) ) then | |
return false | |
endif | |
if ( not ( CountPlayersInForceBJ(udg_Team3Group) > 0 ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Income_Setting_Func001C takes nothing returns boolean | |
if ( not ( GetPlayerSlotState(Player(6)) == PLAYER_SLOT_STATE_PLAYING ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Income_Setting_Func002C takes nothing returns boolean | |
if ( not ( GetPlayerSlotState(Player(7)) == PLAYER_SLOT_STATE_PLAYING ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Income_Setting_Func003C takes nothing returns boolean | |
if ( not ( GetPlayerSlotState(Player(8)) == PLAYER_SLOT_STATE_PLAYING ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Income_Setting_Actions takes nothing returns nothing | |
if ( Trig_Team3_Income_Setting_Func001C() ) then | |
set udg_Income[7] = udg_IncomeSettingsIncome[CountPlayersInForceBJ(udg_Team3Group)] | |
call AdjustPlayerStateBJ( udg_IncomeSettingsGold[CountPlayersInForceBJ(udg_Team3Group)], Player(6), PLAYER_STATE_RESOURCE_GOLD ) | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[6], 20.00, udg_IncomeSettingsText[CountPlayersInForceBJ(udg_Team3Group)] ) | |
else | |
endif | |
if ( Trig_Team3_Income_Setting_Func002C() ) then | |
set udg_Income[8] = udg_IncomeSettingsIncome[CountPlayersInForceBJ(udg_Team3Group)] | |
call AdjustPlayerStateBJ( udg_IncomeSettingsGold[CountPlayersInForceBJ(udg_Team3Group)], Player(7), PLAYER_STATE_RESOURCE_GOLD ) | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[7], 20.00, udg_IncomeSettingsText[CountPlayersInForceBJ(udg_Team3Group)] ) | |
else | |
endif | |
if ( Trig_Team3_Income_Setting_Func003C() ) then | |
set udg_Income[9] = udg_IncomeSettingsIncome[CountPlayersInForceBJ(udg_Team3Group)] | |
call AdjustPlayerStateBJ( udg_IncomeSettingsGold[CountPlayersInForceBJ(udg_Team3Group)], Player(8), PLAYER_STATE_RESOURCE_GOLD ) | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[8], 20.00, udg_IncomeSettingsText[CountPlayersInForceBJ(udg_Team3Group)] ) | |
else | |
endif | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Income_Setting takes nothing returns nothing | |
set gg_trg_Team3_Income_Setting = CreateTrigger( ) | |
call TriggerRegisterTimerEventSingle( gg_trg_Team3_Income_Setting, 40.00 ) | |
call TriggerAddCondition( gg_trg_Team3_Income_Setting, Condition( function Trig_Team3_Income_Setting_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Income_Setting, function Trig_Team3_Income_Setting_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player1 ChangeIncome | |
//=========================================================================== | |
function Trig_Player1_ChangeIncome_Func001001 takes nothing returns boolean | |
return ( udg_ChangeIncomeAllowed == true ) | |
endfunction | |
function Trig_Player1_ChangeIncome_Actions takes nothing returns nothing | |
if ( Trig_Player1_ChangeIncome_Func001001() ) then | |
call TriggerExecute( gg_trg_Player1_Timer_Dialog ) | |
else | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[0], 10.00, "TRIGSTR_123" ) | |
endif | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player1_ChangeIncome takes nothing returns nothing | |
set gg_trg_Player1_ChangeIncome = CreateTrigger( ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Player1_ChangeIncome, Player(0), "-changeincome", true ) | |
call TriggerAddAction( gg_trg_Player1_ChangeIncome, function Trig_Player1_ChangeIncome_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player1 Timer Dialog | |
//=========================================================================== | |
function Trig_Player1_Timer_Dialog_Actions takes nothing returns nothing | |
call DialogClearBJ( udg_TimerDialog ) | |
call DialogSetMessageBJ( udg_TimerDialog, "TRIGSTR_010" ) | |
call DialogAddButtonBJ( udg_TimerDialog, "TRIGSTR_018" ) | |
set udg_TimerDialogButtons[1] = GetLastCreatedButtonBJ() | |
call DialogAddButtonBJ( udg_TimerDialog, "TRIGSTR_007" ) | |
set udg_TimerDialogButtons[2] = GetLastCreatedButtonBJ() | |
call DialogAddButtonBJ( udg_TimerDialog, "TRIGSTR_041" ) | |
set udg_TimerDialogButtons[3] = GetLastCreatedButtonBJ() | |
call DialogAddButtonBJ( udg_TimerDialog, "TRIGSTR_039" ) | |
set udg_TimerDialogButtons[4] = GetLastCreatedButtonBJ() | |
call DialogAddButtonBJ( udg_TimerDialog, "TRIGSTR_038" ) | |
set udg_TimerDialogButtons[5] = GetLastCreatedButtonBJ() | |
call DialogDisplayBJ( true, udg_TimerDialog, Player(0) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player1_Timer_Dialog takes nothing returns nothing | |
set gg_trg_Player1_Timer_Dialog = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Player1_Timer_Dialog, function Trig_Player1_Timer_Dialog_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player1 Timer Button1 | |
//=========================================================================== | |
function Trig_Player1_Timer_Button1_Conditions takes nothing returns boolean | |
if ( not ( GetClickedButtonBJ() == udg_TimerDialogButtons[1] ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player1_Timer_Button1_Func004001 takes nothing returns boolean | |
return ( udg_IncomeTime == 29.00 ) | |
endfunction | |
function Trig_Player1_Timer_Button1_Actions takes nothing returns nothing | |
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, "TRIGSTR_709" ) | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[0], 15.00, udg_TimerDialogRedMessage ) | |
set bj_forLoopAIndex = 1 | |
set bj_forLoopAIndexEnd = 8 | |
loop | |
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd | |
call DisableTrigger( udg_TimerDialogTriggers[GetForLoopIndexA()] ) | |
set bj_forLoopAIndex = bj_forLoopAIndex + 1 | |
endloop | |
if ( Trig_Player1_Timer_Button1_Func004001() ) then | |
call EnableTrigger( gg_trg_Start_Income ) | |
else | |
call EnableTrigger( gg_trg_IncomeTime10 ) | |
endif | |
set udg_IncomeTime = 10.00 | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player1_Timer_Button1 takes nothing returns nothing | |
set gg_trg_Player1_Timer_Button1 = CreateTrigger( ) | |
call TriggerRegisterDialogEventBJ( gg_trg_Player1_Timer_Button1, udg_TimerDialog ) | |
call TriggerAddCondition( gg_trg_Player1_Timer_Button1, Condition( function Trig_Player1_Timer_Button1_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player1_Timer_Button1, function Trig_Player1_Timer_Button1_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player1 Timer Button2 | |
//=========================================================================== | |
function Trig_Player1_Timer_Button2_Conditions takes nothing returns boolean | |
if ( not ( GetClickedButtonBJ() == udg_TimerDialogButtons[2] ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player1_Timer_Button2_Func004001 takes nothing returns boolean | |
return ( udg_IncomeTime == 29.00 ) | |
endfunction | |
function Trig_Player1_Timer_Button2_Actions takes nothing returns nothing | |
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, "TRIGSTR_716" ) | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[0], 15.00, udg_TimerDialogRedMessage ) | |
set bj_forLoopAIndex = 1 | |
set bj_forLoopAIndexEnd = 8 | |
loop | |
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd | |
call DisableTrigger( udg_TimerDialogTriggers[GetForLoopIndexA()] ) | |
set bj_forLoopAIndex = bj_forLoopAIndex + 1 | |
endloop | |
if ( Trig_Player1_Timer_Button2_Func004001() ) then | |
call EnableTrigger( gg_trg_Start_Income ) | |
else | |
call EnableTrigger( gg_trg_IncomeTime15 ) | |
endif | |
set udg_IncomeTime = 15.00 | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player1_Timer_Button2 takes nothing returns nothing | |
set gg_trg_Player1_Timer_Button2 = CreateTrigger( ) | |
call TriggerRegisterDialogEventBJ( gg_trg_Player1_Timer_Button2, udg_TimerDialog ) | |
call TriggerAddCondition( gg_trg_Player1_Timer_Button2, Condition( function Trig_Player1_Timer_Button2_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player1_Timer_Button2, function Trig_Player1_Timer_Button2_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player1 Timer Button3 | |
//=========================================================================== | |
function Trig_Player1_Timer_Button3_Conditions takes nothing returns boolean | |
if ( not ( GetClickedButtonBJ() == udg_TimerDialogButtons[3] ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player1_Timer_Button3_Func004001 takes nothing returns boolean | |
return ( udg_IncomeTime == 29.00 ) | |
endfunction | |
function Trig_Player1_Timer_Button3_Actions takes nothing returns nothing | |
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, "TRIGSTR_055" ) | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[0], 15.00, udg_TimerDialogRedMessage ) | |
set bj_forLoopAIndex = 1 | |
set bj_forLoopAIndexEnd = 8 | |
loop | |
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd | |
call DisableTrigger( udg_TimerDialogTriggers[GetForLoopIndexA()] ) | |
set bj_forLoopAIndex = bj_forLoopAIndex + 1 | |
endloop | |
if ( Trig_Player1_Timer_Button3_Func004001() ) then | |
call EnableTrigger( gg_trg_Start_Income ) | |
else | |
call EnableTrigger( gg_trg_IncomeTime20 ) | |
endif | |
set udg_IncomeTime = 20.00 | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player1_Timer_Button3 takes nothing returns nothing | |
set gg_trg_Player1_Timer_Button3 = CreateTrigger( ) | |
call TriggerRegisterDialogEventBJ( gg_trg_Player1_Timer_Button3, udg_TimerDialog ) | |
call TriggerAddCondition( gg_trg_Player1_Timer_Button3, Condition( function Trig_Player1_Timer_Button3_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player1_Timer_Button3, function Trig_Player1_Timer_Button3_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player1 Timer Button4 | |
//=========================================================================== | |
function Trig_Player1_Timer_Button4_Conditions takes nothing returns boolean | |
if ( not ( GetClickedButtonBJ() == udg_TimerDialogButtons[4] ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player1_Timer_Button4_Func004001 takes nothing returns boolean | |
return ( udg_IncomeTime == 29.00 ) | |
endfunction | |
function Trig_Player1_Timer_Button4_Actions takes nothing returns nothing | |
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, "TRIGSTR_718" ) | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[0], 15.00, udg_TimerDialogRedMessage ) | |
set bj_forLoopAIndex = 1 | |
set bj_forLoopAIndexEnd = 8 | |
loop | |
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd | |
call DisableTrigger( udg_TimerDialogTriggers[GetForLoopIndexA()] ) | |
set bj_forLoopAIndex = bj_forLoopAIndex + 1 | |
endloop | |
if ( Trig_Player1_Timer_Button4_Func004001() ) then | |
call EnableTrigger( gg_trg_Start_Income ) | |
else | |
call EnableTrigger( gg_trg_IncomeTime25 ) | |
endif | |
set udg_IncomeTime = 25.00 | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player1_Timer_Button4 takes nothing returns nothing | |
set gg_trg_Player1_Timer_Button4 = CreateTrigger( ) | |
call TriggerRegisterDialogEventBJ( gg_trg_Player1_Timer_Button4, udg_TimerDialog ) | |
call TriggerAddCondition( gg_trg_Player1_Timer_Button4, Condition( function Trig_Player1_Timer_Button4_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player1_Timer_Button4, function Trig_Player1_Timer_Button4_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player1 Timer Button5 | |
//=========================================================================== | |
function Trig_Player1_Timer_Button5_Conditions takes nothing returns boolean | |
if ( not ( GetClickedButtonBJ() == udg_TimerDialogButtons[5] ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player1_Timer_Button5_Func004001 takes nothing returns boolean | |
return ( udg_IncomeTime == 29.00 ) | |
endfunction | |
function Trig_Player1_Timer_Button5_Actions takes nothing returns nothing | |
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, "TRIGSTR_720" ) | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[0], 15.00, udg_TimerDialogRedMessage ) | |
set bj_forLoopAIndex = 1 | |
set bj_forLoopAIndexEnd = 8 | |
loop | |
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd | |
call DisableTrigger( udg_TimerDialogTriggers[GetForLoopIndexA()] ) | |
set bj_forLoopAIndex = bj_forLoopAIndex + 1 | |
endloop | |
if ( Trig_Player1_Timer_Button5_Func004001() ) then | |
call EnableTrigger( gg_trg_Start_Income ) | |
else | |
call EnableTrigger( gg_trg_IncomeTime30 ) | |
endif | |
set udg_IncomeTime = 30.00 | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player1_Timer_Button5 takes nothing returns nothing | |
set gg_trg_Player1_Timer_Button5 = CreateTrigger( ) | |
call TriggerRegisterDialogEventBJ( gg_trg_Player1_Timer_Button5, udg_TimerDialog ) | |
call TriggerAddCondition( gg_trg_Player1_Timer_Button5, Condition( function Trig_Player1_Timer_Button5_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player1_Timer_Button5, function Trig_Player1_Timer_Button5_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Init Music Array | |
//=========================================================================== | |
function Trig_Init_Music_Array_Actions takes nothing returns nothing | |
set udg_Music[0] = gg_trg_M01 | |
set udg_Music[1] = gg_trg_M02 | |
set udg_Music[2] = gg_trg_M03 | |
set udg_Music[3] = gg_trg_M04 | |
set udg_Music[4] = gg_trg_M05 | |
set udg_Music[5] = gg_trg_M06 | |
set udg_Music[6] = gg_trg_M07 | |
set udg_Music[7] = gg_trg_M08 | |
set udg_Music[8] = gg_trg_M09 | |
set udg_Music[9] = gg_trg_M10 | |
set udg_Music[10] = gg_trg_M11 | |
set udg_Music[11] = gg_trg_M12 | |
call TriggerExecute( gg_trg_Init_Music ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Init_Music_Array takes nothing returns nothing | |
set gg_trg_Init_Music_Array = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Init_Music_Array, function Trig_Init_Music_Array_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: M01 | |
//=========================================================================== | |
function Trig_M01_Actions takes nothing returns nothing | |
call PlayThematicMusicBJ( "Sound\\Music\\mp3Music\\Human1.mp3" ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_M01 takes nothing returns nothing | |
set gg_trg_M01 = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_M01, function Trig_M01_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: M02 | |
//=========================================================================== | |
function Trig_M02_Actions takes nothing returns nothing | |
call PlayThematicMusicBJ( "Sound\\Music\\mp3Music\\Human2.mp3" ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_M02 takes nothing returns nothing | |
set gg_trg_M02 = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_M02, function Trig_M02_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: M03 | |
//=========================================================================== | |
function Trig_M03_Actions takes nothing returns nothing | |
call PlayThematicMusicBJ( "Sound\\Music\\mp3Music\\Human3.mp3" ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_M03 takes nothing returns nothing | |
set gg_trg_M03 = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_M03, function Trig_M03_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: M04 | |
//=========================================================================== | |
function Trig_M04_Actions takes nothing returns nothing | |
call PlayThematicMusicBJ( "Sound\\Music\\mp3Music\\NightElf1.mp3" ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_M04 takes nothing returns nothing | |
set gg_trg_M04 = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_M04, function Trig_M04_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: M05 | |
//=========================================================================== | |
function Trig_M05_Actions takes nothing returns nothing | |
call PlayThematicMusicBJ( "Sound\\Music\\mp3Music\\NightElf2.mp3" ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_M05 takes nothing returns nothing | |
set gg_trg_M05 = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_M05, function Trig_M05_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: M06 | |
//=========================================================================== | |
function Trig_M06_Actions takes nothing returns nothing | |
call PlayThematicMusicBJ( "Sound\\Music\\mp3Music\\NightElf3.mp3" ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_M06 takes nothing returns nothing | |
set gg_trg_M06 = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_M06, function Trig_M06_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: M07 | |
//=========================================================================== | |
function Trig_M07_Actions takes nothing returns nothing | |
call PlayThematicMusicBJ( "Sound\\Music\\mp3Music\\Orc1.mp3" ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_M07 takes nothing returns nothing | |
set gg_trg_M07 = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_M07, function Trig_M07_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: M08 | |
//=========================================================================== | |
function Trig_M08_Actions takes nothing returns nothing | |
call PlayThematicMusicBJ( "Sound\\Music\\mp3Music\\Orc2.mp3" ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_M08 takes nothing returns nothing | |
set gg_trg_M08 = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_M08, function Trig_M08_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: M09 | |
//=========================================================================== | |
function Trig_M09_Actions takes nothing returns nothing | |
call PlayThematicMusicBJ( "Sound\\Music\\mp3Music\\Orc3.mp3" ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_M09 takes nothing returns nothing | |
set gg_trg_M09 = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_M09, function Trig_M09_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: M10 | |
//=========================================================================== | |
function Trig_M10_Actions takes nothing returns nothing | |
call PlayThematicMusicBJ( "Sound\\Music\\mp3Music\\Undead1.mp3" ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_M10 takes nothing returns nothing | |
set gg_trg_M10 = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_M10, function Trig_M10_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: M11 | |
//=========================================================================== | |
function Trig_M11_Actions takes nothing returns nothing | |
call PlayThematicMusicBJ( "Sound\\Music\\mp3Music\\Undead2.mp3" ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_M11 takes nothing returns nothing | |
set gg_trg_M11 = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_M11, function Trig_M11_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: M12 | |
//=========================================================================== | |
function Trig_M12_Actions takes nothing returns nothing | |
call PlayThematicMusicBJ( "Sound\\Music\\mp3Music\\Undead3.mp3" ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_M12 takes nothing returns nothing | |
set gg_trg_M12 = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_M12, function Trig_M12_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Mystic Tower Slow10 | |
//=========================================================================== | |
function Trig_Mystic_Tower_Slow10_Func002001 takes nothing returns boolean | |
return ( GetUnitTypeId(GetAttacker()) == 'h00J' ) | |
endfunction | |
function Trig_Mystic_Tower_Slow10_Func002002 takes nothing returns boolean | |
return ( GetUnitTypeId(GetAttacker()) == 'hC60' ) | |
endfunction | |
function Trig_Mystic_Tower_Slow10_Conditions takes nothing returns boolean | |
if ( not GetBooleanOr( Trig_Mystic_Tower_Slow10_Func002001(), Trig_Mystic_Tower_Slow10_Func002002() ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Mystic_Tower_Slow10_Actions takes nothing returns nothing | |
call IssueTargetOrderBJ( GetAttacker(), "slow", GetAttackedUnitBJ() ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Mystic_Tower_Slow10 takes nothing returns nothing | |
set gg_trg_Mystic_Tower_Slow10 = CreateTrigger( ) | |
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Mystic_Tower_Slow10, Player(9), EVENT_PLAYER_UNIT_ATTACKED ) | |
call TriggerAddCondition( gg_trg_Mystic_Tower_Slow10, Condition( function Trig_Mystic_Tower_Slow10_Conditions ) ) | |
call TriggerAddAction( gg_trg_Mystic_Tower_Slow10, function Trig_Mystic_Tower_Slow10_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Mystic Tower Slow11 | |
//=========================================================================== | |
function Trig_Mystic_Tower_Slow11_Func001001 takes nothing returns boolean | |
return ( GetUnitTypeId(GetAttacker()) == 'h00J' ) | |
endfunction | |
function Trig_Mystic_Tower_Slow11_Func001002 takes nothing returns boolean | |
return ( GetUnitTypeId(GetAttacker()) == 'hC60' ) | |
endfunction | |
function Trig_Mystic_Tower_Slow11_Conditions takes nothing returns boolean | |
if ( not GetBooleanOr( Trig_Mystic_Tower_Slow11_Func001001(), Trig_Mystic_Tower_Slow11_Func001002() ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Mystic_Tower_Slow11_Actions takes nothing returns nothing | |
call IssueTargetOrderBJ( GetAttacker(), "slow", GetAttackedUnitBJ() ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Mystic_Tower_Slow11 takes nothing returns nothing | |
set gg_trg_Mystic_Tower_Slow11 = CreateTrigger( ) | |
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Mystic_Tower_Slow11, Player(10), EVENT_PLAYER_UNIT_ATTACKED ) | |
call TriggerAddCondition( gg_trg_Mystic_Tower_Slow11, Condition( function Trig_Mystic_Tower_Slow11_Conditions ) ) | |
call TriggerAddAction( gg_trg_Mystic_Tower_Slow11, function Trig_Mystic_Tower_Slow11_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Mystic Tower Slow12 | |
//=========================================================================== | |
function Trig_Mystic_Tower_Slow12_Func001001 takes nothing returns boolean | |
return ( GetUnitTypeId(GetAttacker()) == 'h00J' ) | |
endfunction | |
function Trig_Mystic_Tower_Slow12_Func001002 takes nothing returns boolean | |
return ( GetUnitTypeId(GetAttacker()) == 'hC60' ) | |
endfunction | |
function Trig_Mystic_Tower_Slow12_Conditions takes nothing returns boolean | |
if ( not GetBooleanOr( Trig_Mystic_Tower_Slow12_Func001001(), Trig_Mystic_Tower_Slow12_Func001002() ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Mystic_Tower_Slow12_Actions takes nothing returns nothing | |
call IssueTargetOrderBJ( GetAttacker(), "slow", GetAttackedUnitBJ() ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Mystic_Tower_Slow12 takes nothing returns nothing | |
set gg_trg_Mystic_Tower_Slow12 = CreateTrigger( ) | |
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Mystic_Tower_Slow12, Player(11), EVENT_PLAYER_UNIT_ATTACKED ) | |
call TriggerAddCondition( gg_trg_Mystic_Tower_Slow12, Condition( function Trig_Mystic_Tower_Slow12_Conditions ) ) | |
call TriggerAddAction( gg_trg_Mystic_Tower_Slow12, function Trig_Mystic_Tower_Slow12_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Split Player1 | |
//=========================================================================== | |
function Trig_Split_Player1_Func022001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(1)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Split_Player1_Func022002 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(2)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Split_Player1_Conditions takes nothing returns boolean | |
if ( not GetBooleanOr( Trig_Split_Player1_Func022001(), Trig_Split_Player1_Func022002() ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Split_Player1_Func007001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(1)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Split_Player1_Func008001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(2)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Split_Player1_Func012002 takes nothing returns nothing | |
call RemoveUnit( GetEnumUnit() ) | |
endfunction | |
function Trig_Split_Player1_Func013001 takes nothing returns boolean | |
return ( CountPlayersInForceBJ(udg_Team1Summoners) < 1 ) | |
endfunction | |
function Trig_Split_Player1_Func016001 takes nothing returns boolean | |
return ( CountPlayersInForceBJ(udg_Team1Defenders) < 1 ) | |
endfunction | |
function Trig_Split_Player1_Func016002002 takes nothing returns nothing | |
call SetUnitOwner( GetEnumUnit(), ForcePickRandomPlayer(udg_Team1Group), true ) | |
endfunction | |
function Trig_Split_Player1_Func016003002 takes nothing returns nothing | |
call SetUnitOwner( GetEnumUnit(), ForcePickRandomPlayer(udg_Team1Defenders), true ) | |
endfunction | |
function Trig_Split_Player1_Actions takes nothing returns nothing | |
// Remove From PlayerGroups | |
call ForceRemovePlayerSimple( Player(0), udg_Team1Defenders ) | |
call ForceRemovePlayerSimple( Player(0), udg_Team1Group ) | |
call ForceRemovePlayerSimple( Player(0), udg_Team1Summoners ) | |
// Split Income | |
if ( Trig_Split_Player1_Func007001() ) then | |
set udg_Income[2] = ( udg_Income[2] + ( udg_Income[1] / I2R(CountPlayersInForceBJ(udg_Team1Group)) ) ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Split_Player1_Func008001() ) then | |
set udg_Income[3] = ( udg_Income[3] + ( udg_Income[1] / I2R(CountPlayersInForceBJ(udg_Team1Group)) ) ) | |
else | |
call DoNothing( ) | |
endif | |
// Display Disconnect Message | |
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, "TRIGSTR_915" ) | |
// Remove Units | |
call ForGroupBJ( GetUnitsOfPlayerAndTypeId(Player(0), 'uC09'), function Trig_Split_Player1_Func012002 ) | |
if ( Trig_Split_Player1_Func013001() ) then | |
call SetUnitOwner( udg_Shrines[0], ForcePickRandomPlayer(udg_Team1Group), true ) | |
else | |
call SetUnitOwner( udg_Shrines[0], ForcePickRandomPlayer(udg_Team1Summoners), true ) | |
endif | |
call RemoveUnit( udg_Defenses[1] ) | |
// Split Units | |
if ( Trig_Split_Player1_Func016001() ) then | |
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(0)), function Trig_Split_Player1_Func016002002 ) | |
else | |
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(0)), function Trig_Split_Player1_Func016003002 ) | |
endif | |
// Repick For Team | |
call DisplayTimedTextToForce( udg_Team1Group, 20.00, udg_RepickMessage ) | |
// Wrap Up | |
set udg_Income[1] = 0.00 | |
call DisableTrigger( gg_trg_Split_Player1 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Split_Player1 takes nothing returns nothing | |
set gg_trg_Split_Player1 = CreateTrigger( ) | |
call TriggerRegisterPlayerEventLeave( gg_trg_Split_Player1, Player(0) ) | |
call TriggerAddCondition( gg_trg_Split_Player1, Condition( function Trig_Split_Player1_Conditions ) ) | |
call TriggerAddAction( gg_trg_Split_Player1, function Trig_Split_Player1_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Split Player2 | |
//=========================================================================== | |
function Trig_Split_Player2_Func002001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(0)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Split_Player2_Func002002 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(2)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Split_Player2_Conditions takes nothing returns boolean | |
if ( not GetBooleanOr( Trig_Split_Player2_Func002001(), Trig_Split_Player2_Func002002() ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Split_Player2_Func008001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(0)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Split_Player2_Func009001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(2)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Split_Player2_Func013002 takes nothing returns nothing | |
call RemoveUnit( GetEnumUnit() ) | |
endfunction | |
function Trig_Split_Player2_Func014001 takes nothing returns boolean | |
return ( CountPlayersInForceBJ(udg_Team1Summoners) < 1 ) | |
endfunction | |
function Trig_Split_Player2_Func017001 takes nothing returns boolean | |
return ( CountPlayersInForceBJ(udg_Team1Defenders) < 1 ) | |
endfunction | |
function Trig_Split_Player2_Func017002002 takes nothing returns nothing | |
call SetUnitOwner( GetEnumUnit(), ForcePickRandomPlayer(udg_Team1Group), true ) | |
endfunction | |
function Trig_Split_Player2_Func017003002 takes nothing returns nothing | |
call SetUnitOwner( GetEnumUnit(), ForcePickRandomPlayer(udg_Team1Defenders), true ) | |
endfunction | |
function Trig_Split_Player2_Actions takes nothing returns nothing | |
// Remove From PlayerGroups | |
call ForceRemovePlayerSimple( Player(1), udg_Team1Group ) | |
call ForceRemovePlayerSimple( Player(1), udg_Team1Defenders ) | |
call ForceRemovePlayerSimple( Player(1), udg_Team1Summoners ) | |
// Split Income | |
if ( Trig_Split_Player2_Func008001() ) then | |
set udg_Income[1] = ( udg_Income[1] + ( udg_Income[2] / I2R(CountPlayersInForceBJ(udg_Team1Group)) ) ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Split_Player2_Func009001() ) then | |
set udg_Income[3] = ( udg_Income[3] + ( udg_Income[2] / I2R(CountPlayersInForceBJ(udg_Team1Group)) ) ) | |
else | |
call DoNothing( ) | |
endif | |
// Display Disconnect Message | |
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, "TRIGSTR_916" ) | |
// Remove Units | |
call ForGroupBJ( GetUnitsOfPlayerAndTypeId(Player(1), 'uC09'), function Trig_Split_Player2_Func013002 ) | |
if ( Trig_Split_Player2_Func014001() ) then | |
call SetUnitOwner( udg_Shrines[1], ForcePickRandomPlayer(udg_Team1Group), true ) | |
else | |
call SetUnitOwner( udg_Shrines[1], ForcePickRandomPlayer(udg_Team1Summoners), true ) | |
endif | |
call RemoveUnit( udg_Defenses[2] ) | |
// Split Units | |
if ( Trig_Split_Player2_Func017001() ) then | |
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(1)), function Trig_Split_Player2_Func017002002 ) | |
else | |
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(1)), function Trig_Split_Player2_Func017003002 ) | |
endif | |
// Wrap Up | |
set udg_Income[2] = 0.00 | |
call DisableTrigger( gg_trg_Split_Player2 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Split_Player2 takes nothing returns nothing | |
set gg_trg_Split_Player2 = CreateTrigger( ) | |
call TriggerRegisterPlayerEventLeave( gg_trg_Split_Player2, Player(1) ) | |
call TriggerAddCondition( gg_trg_Split_Player2, Condition( function Trig_Split_Player2_Conditions ) ) | |
call TriggerAddAction( gg_trg_Split_Player2, function Trig_Split_Player2_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Split Player3 | |
//=========================================================================== | |
function Trig_Split_Player3_Func002001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(0)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Split_Player3_Func002002 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(1)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Split_Player3_Conditions takes nothing returns boolean | |
if ( not GetBooleanOr( Trig_Split_Player3_Func002001(), Trig_Split_Player3_Func002002() ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Split_Player3_Func008001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(0)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Split_Player3_Func009001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(1)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Split_Player3_Func013002 takes nothing returns nothing | |
call RemoveUnit( GetEnumUnit() ) | |
endfunction | |
function Trig_Split_Player3_Func014001 takes nothing returns boolean | |
return ( CountPlayersInForceBJ(udg_Team1Summoners) < 1 ) | |
endfunction | |
function Trig_Split_Player3_Func017001 takes nothing returns boolean | |
return ( CountPlayersInForceBJ(udg_Team1Defenders) < 1 ) | |
endfunction | |
function Trig_Split_Player3_Func017002002 takes nothing returns nothing | |
call SetUnitOwner( GetEnumUnit(), ForcePickRandomPlayer(udg_Team1Group), true ) | |
endfunction | |
function Trig_Split_Player3_Func017003002 takes nothing returns nothing | |
call SetUnitOwner( GetEnumUnit(), ForcePickRandomPlayer(udg_Team1Defenders), true ) | |
endfunction | |
function Trig_Split_Player3_Actions takes nothing returns nothing | |
// Remove From PlayerGroups | |
call ForceRemovePlayerSimple( Player(2), udg_Team1Group ) | |
call ForceRemovePlayerSimple( Player(2), udg_Team1Defenders ) | |
call ForceRemovePlayerSimple( Player(2), udg_Team1Summoners ) | |
// Split Income | |
if ( Trig_Split_Player3_Func008001() ) then | |
set udg_Income[1] = ( udg_Income[1] + ( udg_Income[3] / I2R(CountPlayersInForceBJ(udg_Team1Group)) ) ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Split_Player3_Func009001() ) then | |
set udg_Income[2] = ( udg_Income[2] + ( udg_Income[3] / I2R(CountPlayersInForceBJ(udg_Team1Group)) ) ) | |
else | |
call DoNothing( ) | |
endif | |
// Display Disconnect Message | |
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, "TRIGSTR_917" ) | |
// Remove Units | |
call ForGroupBJ( GetUnitsOfPlayerAndTypeId(Player(2), 'uC09'), function Trig_Split_Player3_Func013002 ) | |
if ( Trig_Split_Player3_Func014001() ) then | |
call SetUnitOwner( udg_Shrines[2], ForcePickRandomPlayer(udg_Team1Group), true ) | |
else | |
call SetUnitOwner( udg_Shrines[2], ForcePickRandomPlayer(udg_Team1Summoners), true ) | |
endif | |
call RemoveUnit( udg_Defenses[3] ) | |
// Split Units | |
if ( Trig_Split_Player3_Func017001() ) then | |
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(2)), function Trig_Split_Player3_Func017002002 ) | |
else | |
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(2)), function Trig_Split_Player3_Func017003002 ) | |
endif | |
// Wrap Up | |
set udg_Income[3] = 0.00 | |
call DisableTrigger( gg_trg_Split_Player3 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Split_Player3 takes nothing returns nothing | |
set gg_trg_Split_Player3 = CreateTrigger( ) | |
call TriggerRegisterPlayerEventLeave( gg_trg_Split_Player3, Player(2) ) | |
call TriggerAddCondition( gg_trg_Split_Player3, Condition( function Trig_Split_Player3_Conditions ) ) | |
call TriggerAddAction( gg_trg_Split_Player3, function Trig_Split_Player3_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Split Player4 | |
//=========================================================================== | |
function Trig_Split_Player4_Func002001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(4)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Split_Player4_Func002002 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(5)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Split_Player4_Conditions takes nothing returns boolean | |
if ( not GetBooleanOr( Trig_Split_Player4_Func002001(), Trig_Split_Player4_Func002002() ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Split_Player4_Func008001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(4)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Split_Player4_Func009001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(5)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Split_Player4_Func013002 takes nothing returns nothing | |
call RemoveUnit( GetEnumUnit() ) | |
endfunction | |
function Trig_Split_Player4_Func014001 takes nothing returns boolean | |
return ( CountPlayersInForceBJ(udg_Team2Summoners) < 1 ) | |
endfunction | |
function Trig_Split_Player4_Func017001 takes nothing returns boolean | |
return ( CountPlayersInForceBJ(udg_Team2Defenders) < 1 ) | |
endfunction | |
function Trig_Split_Player4_Func017002002 takes nothing returns nothing | |
call SetUnitOwner( GetEnumUnit(), ForcePickRandomPlayer(udg_Team2Group), true ) | |
endfunction | |
function Trig_Split_Player4_Func017003002 takes nothing returns nothing | |
call SetUnitOwner( GetEnumUnit(), ForcePickRandomPlayer(udg_Team2Defenders), true ) | |
endfunction | |
function Trig_Split_Player4_Actions takes nothing returns nothing | |
// Remove From PlayerGroups | |
call ForceRemovePlayerSimple( Player(3), udg_Team2Group ) | |
call ForceRemovePlayerSimple( Player(3), udg_Team2Defenders ) | |
call ForceRemovePlayerSimple( Player(3), udg_Team2Summoners ) | |
// Split Income | |
if ( Trig_Split_Player4_Func008001() ) then | |
set udg_Income[5] = ( udg_Income[5] + ( udg_Income[4] / I2R(CountPlayersInForceBJ(udg_Team2Group)) ) ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Split_Player4_Func009001() ) then | |
set udg_Income[6] = ( udg_Income[6] + ( udg_Income[4] / I2R(CountPlayersInForceBJ(udg_Team2Group)) ) ) | |
else | |
call DoNothing( ) | |
endif | |
// Display Disconnect Message | |
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, "TRIGSTR_918" ) | |
// Remove Units | |
call ForGroupBJ( GetUnitsOfPlayerAndTypeId(Player(3), 'uC09'), function Trig_Split_Player4_Func013002 ) | |
if ( Trig_Split_Player4_Func014001() ) then | |
call SetUnitOwner( udg_Shrines[3], ForcePickRandomPlayer(udg_Team2Group), true ) | |
else | |
call SetUnitOwner( udg_Shrines[3], ForcePickRandomPlayer(udg_Team2Summoners), true ) | |
endif | |
call RemoveUnit( udg_Defenses[4] ) | |
// Split Units | |
if ( Trig_Split_Player4_Func017001() ) then | |
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(3)), function Trig_Split_Player4_Func017002002 ) | |
else | |
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(3)), function Trig_Split_Player4_Func017003002 ) | |
endif | |
// Wrap Up | |
set udg_Income[4] = 0.00 | |
call DisableTrigger( gg_trg_Split_Player4 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Split_Player4 takes nothing returns nothing | |
set gg_trg_Split_Player4 = CreateTrigger( ) | |
call TriggerRegisterPlayerEventLeave( gg_trg_Split_Player4, Player(3) ) | |
call TriggerAddCondition( gg_trg_Split_Player4, Condition( function Trig_Split_Player4_Conditions ) ) | |
call TriggerAddAction( gg_trg_Split_Player4, function Trig_Split_Player4_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Split Player5 | |
//=========================================================================== | |
function Trig_Split_Player5_Func002001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(3)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Split_Player5_Func002002 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(5)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Split_Player5_Conditions takes nothing returns boolean | |
if ( not GetBooleanOr( Trig_Split_Player5_Func002001(), Trig_Split_Player5_Func002002() ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Split_Player5_Func008001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(3)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Split_Player5_Func009001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(5)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Split_Player5_Func013002 takes nothing returns nothing | |
call RemoveUnit( GetEnumUnit() ) | |
endfunction | |
function Trig_Split_Player5_Func014001 takes nothing returns boolean | |
return ( CountPlayersInForceBJ(udg_Team2Summoners) < 1 ) | |
endfunction | |
function Trig_Split_Player5_Func017001 takes nothing returns boolean | |
return ( CountPlayersInForceBJ(udg_Team2Defenders) < 1 ) | |
endfunction | |
function Trig_Split_Player5_Func017002002 takes nothing returns nothing | |
call SetUnitOwner( GetEnumUnit(), ForcePickRandomPlayer(udg_Team2Group), true ) | |
endfunction | |
function Trig_Split_Player5_Func017003002 takes nothing returns nothing | |
call SetUnitOwner( GetEnumUnit(), ForcePickRandomPlayer(udg_Team2Defenders), true ) | |
endfunction | |
function Trig_Split_Player5_Actions takes nothing returns nothing | |
// Remove From PlayerGroups | |
call ForceRemovePlayerSimple( Player(4), udg_Team2Group ) | |
call ForceRemovePlayerSimple( Player(4), udg_Team2Defenders ) | |
call ForceRemovePlayerSimple( Player(4), udg_Team2Summoners ) | |
// Split Income | |
if ( Trig_Split_Player5_Func008001() ) then | |
set udg_Income[4] = ( udg_Income[4] + ( udg_Income[5] / I2R(CountPlayersInForceBJ(udg_Team2Group)) ) ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Split_Player5_Func009001() ) then | |
set udg_Income[6] = ( udg_Income[6] + ( udg_Income[5] / I2R(CountPlayersInForceBJ(udg_Team2Group)) ) ) | |
else | |
call DoNothing( ) | |
endif | |
// Display Disconnect Message | |
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, "TRIGSTR_919" ) | |
// Remove Units | |
call ForGroupBJ( GetUnitsOfPlayerAndTypeId(Player(4), 'uC09'), function Trig_Split_Player5_Func013002 ) | |
if ( Trig_Split_Player5_Func014001() ) then | |
call SetUnitOwner( udg_Shrines[4], ForcePickRandomPlayer(udg_Team2Group), true ) | |
else | |
call SetUnitOwner( udg_Shrines[4], ForcePickRandomPlayer(udg_Team2Summoners), true ) | |
endif | |
call RemoveUnit( udg_Defenses[5] ) | |
// Split Units | |
if ( Trig_Split_Player5_Func017001() ) then | |
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(4)), function Trig_Split_Player5_Func017002002 ) | |
else | |
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(4)), function Trig_Split_Player5_Func017003002 ) | |
endif | |
// Wrap Up | |
set udg_Income[5] = 0.00 | |
call DisableTrigger( gg_trg_Split_Player5 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Split_Player5 takes nothing returns nothing | |
set gg_trg_Split_Player5 = CreateTrigger( ) | |
call TriggerRegisterPlayerEventLeave( gg_trg_Split_Player5, Player(4) ) | |
call TriggerAddCondition( gg_trg_Split_Player5, Condition( function Trig_Split_Player5_Conditions ) ) | |
call TriggerAddAction( gg_trg_Split_Player5, function Trig_Split_Player5_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Split Player6 | |
//=========================================================================== | |
function Trig_Split_Player6_Func002001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(3)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Split_Player6_Func002002 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(4)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Split_Player6_Conditions takes nothing returns boolean | |
if ( not GetBooleanOr( Trig_Split_Player6_Func002001(), Trig_Split_Player6_Func002002() ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Split_Player6_Func008001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(3)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Split_Player6_Func009001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(4)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Split_Player6_Func013002 takes nothing returns nothing | |
call RemoveUnit( GetEnumUnit() ) | |
endfunction | |
function Trig_Split_Player6_Func014001 takes nothing returns boolean | |
return ( CountPlayersInForceBJ(udg_Team2Summoners) < 1 ) | |
endfunction | |
function Trig_Split_Player6_Func017001 takes nothing returns boolean | |
return ( CountPlayersInForceBJ(udg_Team2Defenders) < 1 ) | |
endfunction | |
function Trig_Split_Player6_Func017002002 takes nothing returns nothing | |
call SetUnitOwner( GetEnumUnit(), ForcePickRandomPlayer(udg_Team2Group), true ) | |
endfunction | |
function Trig_Split_Player6_Func017003002 takes nothing returns nothing | |
call SetUnitOwner( GetEnumUnit(), ForcePickRandomPlayer(udg_Team2Defenders), true ) | |
endfunction | |
function Trig_Split_Player6_Actions takes nothing returns nothing | |
// Remove From PlayerGroups | |
call ForceRemovePlayerSimple( Player(5), udg_Team2Group ) | |
call ForceRemovePlayerSimple( Player(5), udg_Team2Defenders ) | |
call ForceRemovePlayerSimple( Player(5), udg_Team2Summoners ) | |
// Split Income | |
if ( Trig_Split_Player6_Func008001() ) then | |
set udg_Income[4] = ( udg_Income[4] + ( udg_Income[6] / I2R(CountPlayersInForceBJ(udg_Team2Group)) ) ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Split_Player6_Func009001() ) then | |
set udg_Income[5] = ( udg_Income[5] + ( udg_Income[6] / I2R(CountPlayersInForceBJ(udg_Team2Group)) ) ) | |
else | |
call DoNothing( ) | |
endif | |
// Display Disconnect Message | |
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, "TRIGSTR_920" ) | |
// Remove Units | |
call ForGroupBJ( GetUnitsOfPlayerAndTypeId(Player(5), 'uC09'), function Trig_Split_Player6_Func013002 ) | |
if ( Trig_Split_Player6_Func014001() ) then | |
call SetUnitOwner( udg_Shrines[5], ForcePickRandomPlayer(udg_Team2Group), true ) | |
else | |
call SetUnitOwner( udg_Shrines[5], ForcePickRandomPlayer(udg_Team2Summoners), true ) | |
endif | |
call RemoveUnit( udg_Defenses[6] ) | |
// Split Units | |
if ( Trig_Split_Player6_Func017001() ) then | |
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(5)), function Trig_Split_Player6_Func017002002 ) | |
else | |
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(5)), function Trig_Split_Player6_Func017003002 ) | |
endif | |
// Wrap Up | |
set udg_Income[6] = 0.00 | |
call DisableTrigger( gg_trg_Split_Player6 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Split_Player6 takes nothing returns nothing | |
set gg_trg_Split_Player6 = CreateTrigger( ) | |
call TriggerRegisterPlayerEventLeave( gg_trg_Split_Player6, Player(5) ) | |
call TriggerAddCondition( gg_trg_Split_Player6, Condition( function Trig_Split_Player6_Conditions ) ) | |
call TriggerAddAction( gg_trg_Split_Player6, function Trig_Split_Player6_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Split Player7 | |
//=========================================================================== | |
function Trig_Split_Player7_Func002001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(7)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Split_Player7_Func002002 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(8)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Split_Player7_Conditions takes nothing returns boolean | |
if ( not GetBooleanOr( Trig_Split_Player7_Func002001(), Trig_Split_Player7_Func002002() ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Split_Player7_Func008001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(7)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Split_Player7_Func009001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(8)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Split_Player7_Func013002 takes nothing returns nothing | |
call RemoveUnit( GetEnumUnit() ) | |
endfunction | |
function Trig_Split_Player7_Func014001 takes nothing returns boolean | |
return ( CountPlayersInForceBJ(udg_Team3Summoners) < 1 ) | |
endfunction | |
function Trig_Split_Player7_Func017001 takes nothing returns boolean | |
return ( CountPlayersInForceBJ(udg_Team3Defenders) < 1 ) | |
endfunction | |
function Trig_Split_Player7_Func017002002 takes nothing returns nothing | |
call SetUnitOwner( GetEnumUnit(), ForcePickRandomPlayer(udg_Team3Group), true ) | |
endfunction | |
function Trig_Split_Player7_Func017003002 takes nothing returns nothing | |
call SetUnitOwner( GetEnumUnit(), ForcePickRandomPlayer(udg_Team3Defenders), true ) | |
endfunction | |
function Trig_Split_Player7_Actions takes nothing returns nothing | |
// Remove From PlayerGroups | |
call ForceRemovePlayerSimple( Player(6), udg_Team3Group ) | |
call ForceRemovePlayerSimple( Player(6), udg_Team3Defenders ) | |
call ForceRemovePlayerSimple( Player(6), udg_Team3Summoners ) | |
// Split Income | |
if ( Trig_Split_Player7_Func008001() ) then | |
set udg_Income[8] = ( udg_Income[8] + ( udg_Income[7] / I2R(CountPlayersInForceBJ(udg_Team3Group)) ) ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Split_Player7_Func009001() ) then | |
set udg_Income[9] = ( udg_Income[9] + ( udg_Income[7] / I2R(CountPlayersInForceBJ(udg_Team3Group)) ) ) | |
else | |
call DoNothing( ) | |
endif | |
// Display Disconnect Message | |
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, "TRIGSTR_924" ) | |
// Remove Units | |
call ForGroupBJ( GetUnitsOfPlayerAndTypeId(Player(6), 'uC09'), function Trig_Split_Player7_Func013002 ) | |
if ( Trig_Split_Player7_Func014001() ) then | |
call SetUnitOwner( udg_Shrines[6], ForcePickRandomPlayer(udg_Team3Group), true ) | |
else | |
call SetUnitOwner( udg_Shrines[6], ForcePickRandomPlayer(udg_Team3Summoners), true ) | |
endif | |
call RemoveUnit( udg_Defenses[7] ) | |
// Split Units | |
if ( Trig_Split_Player7_Func017001() ) then | |
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(6)), function Trig_Split_Player7_Func017002002 ) | |
else | |
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(6)), function Trig_Split_Player7_Func017003002 ) | |
endif | |
// Wrap Up | |
set udg_Income[7] = 0.00 | |
call DisableTrigger( gg_trg_Split_Player7 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Split_Player7 takes nothing returns nothing | |
set gg_trg_Split_Player7 = CreateTrigger( ) | |
call TriggerRegisterPlayerEventLeave( gg_trg_Split_Player7, Player(6) ) | |
call TriggerAddCondition( gg_trg_Split_Player7, Condition( function Trig_Split_Player7_Conditions ) ) | |
call TriggerAddAction( gg_trg_Split_Player7, function Trig_Split_Player7_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Split Player8 | |
//=========================================================================== | |
function Trig_Split_Player8_Func002001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(6)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Split_Player8_Func002002 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(8)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Split_Player8_Conditions takes nothing returns boolean | |
if ( not GetBooleanOr( Trig_Split_Player8_Func002001(), Trig_Split_Player8_Func002002() ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Split_Player8_Func008001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(6)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Split_Player8_Func009001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(8)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Split_Player8_Func013002 takes nothing returns nothing | |
call RemoveUnit( GetEnumUnit() ) | |
endfunction | |
function Trig_Split_Player8_Func014001 takes nothing returns boolean | |
return ( CountPlayersInForceBJ(udg_Team3Summoners) < 1 ) | |
endfunction | |
function Trig_Split_Player8_Func017001 takes nothing returns boolean | |
return ( CountPlayersInForceBJ(udg_Team3Defenders) < 1 ) | |
endfunction | |
function Trig_Split_Player8_Func017002002 takes nothing returns nothing | |
call SetUnitOwner( GetEnumUnit(), ForcePickRandomPlayer(udg_Team3Group), true ) | |
endfunction | |
function Trig_Split_Player8_Func017003002 takes nothing returns nothing | |
call SetUnitOwner( GetEnumUnit(), ForcePickRandomPlayer(udg_Team3Defenders), true ) | |
endfunction | |
function Trig_Split_Player8_Actions takes nothing returns nothing | |
// Remove From PlayerGroups | |
call ForceRemovePlayerSimple( Player(7), udg_Team3Group ) | |
call ForceRemovePlayerSimple( Player(7), udg_Team3Defenders ) | |
call ForceRemovePlayerSimple( Player(7), udg_Team3Summoners ) | |
// Split Income | |
if ( Trig_Split_Player8_Func008001() ) then | |
set udg_Income[7] = ( udg_Income[7] + ( udg_Income[8] / I2R(CountPlayersInForceBJ(udg_Team3Group)) ) ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Split_Player8_Func009001() ) then | |
set udg_Income[9] = ( udg_Income[9] + ( udg_Income[8] / I2R(CountPlayersInForceBJ(udg_Team3Group)) ) ) | |
else | |
call DoNothing( ) | |
endif | |
// Display Disconnect Message | |
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, "TRIGSTR_925" ) | |
// Remove Units | |
call ForGroupBJ( GetUnitsOfPlayerAndTypeId(Player(7), 'uC09'), function Trig_Split_Player8_Func013002 ) | |
if ( Trig_Split_Player8_Func014001() ) then | |
call SetUnitOwner( udg_Shrines[7], ForcePickRandomPlayer(udg_Team3Group), true ) | |
else | |
call SetUnitOwner( udg_Shrines[7], ForcePickRandomPlayer(udg_Team3Summoners), true ) | |
endif | |
call RemoveUnit( udg_Defenses[8] ) | |
// Split Units | |
if ( Trig_Split_Player8_Func017001() ) then | |
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(7)), function Trig_Split_Player8_Func017002002 ) | |
else | |
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(7)), function Trig_Split_Player8_Func017003002 ) | |
endif | |
// Wrap Up | |
set udg_Income[8] = 0.00 | |
call DisableTrigger( gg_trg_Split_Player8 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Split_Player8 takes nothing returns nothing | |
set gg_trg_Split_Player8 = CreateTrigger( ) | |
call TriggerRegisterPlayerEventLeave( gg_trg_Split_Player8, Player(7) ) | |
call TriggerAddCondition( gg_trg_Split_Player8, Condition( function Trig_Split_Player8_Conditions ) ) | |
call TriggerAddAction( gg_trg_Split_Player8, function Trig_Split_Player8_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Split Player9 | |
//=========================================================================== | |
function Trig_Split_Player9_Func002001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(6)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Split_Player9_Func002002 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(7)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Split_Player9_Conditions takes nothing returns boolean | |
if ( not GetBooleanOr( Trig_Split_Player9_Func002001(), Trig_Split_Player9_Func002002() ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Split_Player9_Func008001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(6)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Split_Player9_Func009001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(7)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Split_Player9_Func013002 takes nothing returns nothing | |
call RemoveUnit( GetEnumUnit() ) | |
endfunction | |
function Trig_Split_Player9_Func014001 takes nothing returns boolean | |
return ( CountPlayersInForceBJ(udg_Team3Summoners) < 1 ) | |
endfunction | |
function Trig_Split_Player9_Func017001 takes nothing returns boolean | |
return ( CountPlayersInForceBJ(udg_Team3Defenders) < 1 ) | |
endfunction | |
function Trig_Split_Player9_Func017002002 takes nothing returns nothing | |
call SetUnitOwner( GetEnumUnit(), ForcePickRandomPlayer(udg_Team3Group), true ) | |
endfunction | |
function Trig_Split_Player9_Func017003002 takes nothing returns nothing | |
call SetUnitOwner( GetEnumUnit(), ForcePickRandomPlayer(udg_Team3Defenders), true ) | |
endfunction | |
function Trig_Split_Player9_Actions takes nothing returns nothing | |
// Remove From PlayerGroups | |
call ForceRemovePlayerSimple( Player(8), udg_Team3Group ) | |
call ForceRemovePlayerSimple( Player(8), udg_Team3Defenders ) | |
call ForceRemovePlayerSimple( Player(8), udg_Team3Summoners ) | |
// Split Income | |
if ( Trig_Split_Player9_Func008001() ) then | |
set udg_Income[7] = ( udg_Income[7] + ( udg_Income[9] / I2R(CountPlayersInForceBJ(udg_Team3Group)) ) ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Split_Player9_Func009001() ) then | |
set udg_Income[8] = ( udg_Income[8] + ( udg_Income[9] / I2R(CountPlayersInForceBJ(udg_Team3Group)) ) ) | |
else | |
call DoNothing( ) | |
endif | |
// Display Disconnect Message | |
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, "TRIGSTR_926" ) | |
// Remove Units | |
call ForGroupBJ( GetUnitsOfPlayerAndTypeId(Player(8), 'uC09'), function Trig_Split_Player9_Func013002 ) | |
if ( Trig_Split_Player9_Func014001() ) then | |
call SetUnitOwner( udg_Shrines[8], ForcePickRandomPlayer(udg_Team3Group), true ) | |
else | |
call SetUnitOwner( udg_Shrines[8], ForcePickRandomPlayer(udg_Team3Summoners), true ) | |
endif | |
call RemoveUnit( udg_Defenses[9] ) | |
// Split Units | |
if ( Trig_Split_Player9_Func017001() ) then | |
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(8)), function Trig_Split_Player9_Func017002002 ) | |
else | |
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(8)), function Trig_Split_Player9_Func017003002 ) | |
endif | |
// Wrap Up | |
set udg_Income[9] = 0.00 | |
call DisableTrigger( gg_trg_Split_Player9 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Split_Player9 takes nothing returns nothing | |
set gg_trg_Split_Player9 = CreateTrigger( ) | |
call TriggerRegisterPlayerEventLeave( gg_trg_Split_Player9, Player(8) ) | |
call TriggerAddCondition( gg_trg_Split_Player9, Condition( function Trig_Split_Player9_Conditions ) ) | |
call TriggerAddAction( gg_trg_Split_Player9, function Trig_Split_Player9_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Start Income | |
//=========================================================================== | |
function Trig_Start_Income_Func001001 takes nothing returns boolean | |
return ( udg_IncomeTime == 10 ) | |
endfunction | |
function Trig_Start_Income_Func002001 takes nothing returns boolean | |
return ( udg_IncomeTime == 15.00 ) | |
endfunction | |
function Trig_Start_Income_Func003001 takes nothing returns boolean | |
return ( udg_IncomeTime == 20.00 ) | |
endfunction | |
function Trig_Start_Income_Func004001 takes nothing returns boolean | |
return ( udg_IncomeTime == 25.00 ) | |
endfunction | |
function Trig_Start_Income_Func005001 takes nothing returns boolean | |
return ( udg_IncomeTime == 30.00 ) | |
endfunction | |
function Trig_Start_Income_Actions takes nothing returns nothing | |
if ( Trig_Start_Income_Func001001() ) then | |
call EnableTrigger( gg_trg_IncomeTime10 ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Start_Income_Func002001() ) then | |
call EnableTrigger( gg_trg_IncomeTime15 ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Start_Income_Func003001() ) then | |
call EnableTrigger( gg_trg_IncomeTime20 ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Start_Income_Func004001() ) then | |
call EnableTrigger( gg_trg_IncomeTime25 ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Start_Income_Func005001() ) then | |
call EnableTrigger( gg_trg_IncomeTime30 ) | |
else | |
call DoNothing( ) | |
endif | |
endfunction | |
//=========================================================================== | |
function InitTrig_Start_Income takes nothing returns nothing | |
set gg_trg_Start_Income = CreateTrigger( ) | |
call TriggerRegisterTimerEventSingle( gg_trg_Start_Income, 58.00 ) | |
call TriggerAddAction( gg_trg_Start_Income, function Trig_Start_Income_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Check Income | |
//=========================================================================== | |
function Trig_Check_Income_Conditions takes nothing returns boolean | |
if ( not ( udg_IncomeTime == 29.00 ) ) then | |
return false | |
endif | |
if ( not ( IsTriggerEnabled(gg_trg_IncomeTime10) != true ) ) then | |
return false | |
endif | |
if ( not ( IsTriggerEnabled(gg_trg_IncomeTime15) != true ) ) then | |
return false | |
endif | |
if ( not ( IsTriggerEnabled(gg_trg_IncomeTime20) != true ) ) then | |
return false | |
endif | |
if ( not ( IsTriggerEnabled(gg_trg_IncomeTime25) != true ) ) then | |
return false | |
endif | |
if ( not ( IsTriggerEnabled(gg_trg_IncomeTime30) != true ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Check_Income_Actions takes nothing returns nothing | |
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, "TRIGSTR_723" ) | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[0], 15.00, udg_TimerDialogRedMessage ) | |
set udg_IncomeTime = 20.00 | |
call EnableTrigger( gg_trg_IncomeTime20 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Check_Income takes nothing returns nothing | |
set gg_trg_Check_Income = CreateTrigger( ) | |
call TriggerRegisterTimerEventSingle( gg_trg_Check_Income, 59.00 ) | |
call TriggerAddCondition( gg_trg_Check_Income, Condition( function Trig_Check_Income_Conditions ) ) | |
call TriggerAddAction( gg_trg_Check_Income, function Trig_Check_Income_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player1 Kill Income | |
//=========================================================================== | |
function Trig_Player1_Kill_Income_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetKillingUnitBJ()) == Player(0) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player1_Kill_Income_Actions takes nothing returns nothing | |
set udg_Income[1] = ( udg_Income[1] + ( I2R(GetUnitPointValueByType(GetUnitTypeId(GetTriggerUnit()))) / udg_DefenderKillPercentage ) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player1_Kill_Income takes nothing returns nothing | |
set gg_trg_Player1_Kill_Income = CreateTrigger( ) | |
call DisableTrigger( gg_trg_Player1_Kill_Income ) | |
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Player1_Kill_Income, Player(9), EVENT_PLAYER_UNIT_DEATH ) | |
call TriggerAddCondition( gg_trg_Player1_Kill_Income, Condition( function Trig_Player1_Kill_Income_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player1_Kill_Income, function Trig_Player1_Kill_Income_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player2 Kill Income | |
//=========================================================================== | |
function Trig_Player2_Kill_Income_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetKillingUnitBJ()) == Player(1) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player2_Kill_Income_Actions takes nothing returns nothing | |
set udg_Income[2] = ( udg_Income[2] + ( I2R(GetUnitPointValueByType(GetUnitTypeId(GetTriggerUnit()))) / udg_DefenderKillPercentage ) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player2_Kill_Income takes nothing returns nothing | |
set gg_trg_Player2_Kill_Income = CreateTrigger( ) | |
call DisableTrigger( gg_trg_Player2_Kill_Income ) | |
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Player2_Kill_Income, Player(9), EVENT_PLAYER_UNIT_DEATH ) | |
call TriggerAddCondition( gg_trg_Player2_Kill_Income, Condition( function Trig_Player2_Kill_Income_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player2_Kill_Income, function Trig_Player2_Kill_Income_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player3 Kill Income | |
//=========================================================================== | |
function Trig_Player3_Kill_Income_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetKillingUnitBJ()) == Player(2) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player3_Kill_Income_Actions takes nothing returns nothing | |
set udg_Income[3] = ( udg_Income[3] + ( I2R(GetUnitPointValueByType(GetUnitTypeId(GetTriggerUnit()))) / udg_DefenderKillPercentage ) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player3_Kill_Income takes nothing returns nothing | |
set gg_trg_Player3_Kill_Income = CreateTrigger( ) | |
call DisableTrigger( gg_trg_Player3_Kill_Income ) | |
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Player3_Kill_Income, Player(9), EVENT_PLAYER_UNIT_DEATH ) | |
call TriggerAddCondition( gg_trg_Player3_Kill_Income, Condition( function Trig_Player3_Kill_Income_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player3_Kill_Income, function Trig_Player3_Kill_Income_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player4 Kill Income | |
//=========================================================================== | |
function Trig_Player4_Kill_Income_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetKillingUnitBJ()) == Player(3) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player4_Kill_Income_Actions takes nothing returns nothing | |
set udg_Income[4] = ( udg_Income[4] + ( I2R(GetUnitPointValueByType(GetUnitTypeId(GetTriggerUnit()))) / udg_DefenderKillPercentage ) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player4_Kill_Income takes nothing returns nothing | |
set gg_trg_Player4_Kill_Income = CreateTrigger( ) | |
call DisableTrigger( gg_trg_Player4_Kill_Income ) | |
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Player4_Kill_Income, Player(10), EVENT_PLAYER_UNIT_DEATH ) | |
call TriggerAddCondition( gg_trg_Player4_Kill_Income, Condition( function Trig_Player4_Kill_Income_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player4_Kill_Income, function Trig_Player4_Kill_Income_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player5 Kill Income | |
//=========================================================================== | |
function Trig_Player5_Kill_Income_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetKillingUnitBJ()) == Player(4) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player5_Kill_Income_Actions takes nothing returns nothing | |
set udg_Income[5] = ( udg_Income[5] + ( I2R(GetUnitPointValueByType(GetUnitTypeId(GetTriggerUnit()))) / udg_DefenderKillPercentage ) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player5_Kill_Income takes nothing returns nothing | |
set gg_trg_Player5_Kill_Income = CreateTrigger( ) | |
call DisableTrigger( gg_trg_Player5_Kill_Income ) | |
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Player5_Kill_Income, Player(10), EVENT_PLAYER_UNIT_DEATH ) | |
call TriggerAddCondition( gg_trg_Player5_Kill_Income, Condition( function Trig_Player5_Kill_Income_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player5_Kill_Income, function Trig_Player5_Kill_Income_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player6 Kill Income | |
//=========================================================================== | |
function Trig_Player6_Kill_Income_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetKillingUnitBJ()) == Player(5) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player6_Kill_Income_Actions takes nothing returns nothing | |
set udg_Income[6] = ( udg_Income[6] + ( I2R(GetUnitPointValueByType(GetUnitTypeId(GetTriggerUnit()))) / udg_DefenderKillPercentage ) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player6_Kill_Income takes nothing returns nothing | |
set gg_trg_Player6_Kill_Income = CreateTrigger( ) | |
call DisableTrigger( gg_trg_Player6_Kill_Income ) | |
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Player6_Kill_Income, Player(10), EVENT_PLAYER_UNIT_DEATH ) | |
call TriggerAddCondition( gg_trg_Player6_Kill_Income, Condition( function Trig_Player6_Kill_Income_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player6_Kill_Income, function Trig_Player6_Kill_Income_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player7 Kill Income | |
//=========================================================================== | |
function Trig_Player7_Kill_Income_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetKillingUnitBJ()) == Player(6) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player7_Kill_Income_Actions takes nothing returns nothing | |
set udg_Income[7] = ( udg_Income[7] + ( I2R(GetUnitPointValueByType(GetUnitTypeId(GetTriggerUnit()))) / udg_DefenderKillPercentage ) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player7_Kill_Income takes nothing returns nothing | |
set gg_trg_Player7_Kill_Income = CreateTrigger( ) | |
call DisableTrigger( gg_trg_Player7_Kill_Income ) | |
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Player7_Kill_Income, Player(11), EVENT_PLAYER_UNIT_DEATH ) | |
call TriggerAddCondition( gg_trg_Player7_Kill_Income, Condition( function Trig_Player7_Kill_Income_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player7_Kill_Income, function Trig_Player7_Kill_Income_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player8 Kill Income | |
//=========================================================================== | |
function Trig_Player8_Kill_Income_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetKillingUnitBJ()) == Player(7) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player8_Kill_Income_Actions takes nothing returns nothing | |
set udg_Income[8] = ( udg_Income[8] + ( I2R(GetUnitPointValueByType(GetUnitTypeId(GetTriggerUnit()))) / udg_DefenderKillPercentage ) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player8_Kill_Income takes nothing returns nothing | |
set gg_trg_Player8_Kill_Income = CreateTrigger( ) | |
call DisableTrigger( gg_trg_Player8_Kill_Income ) | |
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Player8_Kill_Income, Player(11), EVENT_PLAYER_UNIT_DEATH ) | |
call TriggerAddCondition( gg_trg_Player8_Kill_Income, Condition( function Trig_Player8_Kill_Income_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player8_Kill_Income, function Trig_Player8_Kill_Income_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player9 Kill Income | |
//=========================================================================== | |
function Trig_Player9_Kill_Income_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetKillingUnitBJ()) == Player(8) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player9_Kill_Income_Actions takes nothing returns nothing | |
set udg_Income[9] = ( udg_Income[9] + ( I2R(GetUnitPointValueByType(GetUnitTypeId(GetTriggerUnit()))) / udg_DefenderKillPercentage ) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player9_Kill_Income takes nothing returns nothing | |
set gg_trg_Player9_Kill_Income = CreateTrigger( ) | |
call DisableTrigger( gg_trg_Player9_Kill_Income ) | |
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Player9_Kill_Income, Player(11), EVENT_PLAYER_UNIT_DEATH ) | |
call TriggerAddCondition( gg_trg_Player9_Kill_Income, Condition( function Trig_Player9_Kill_Income_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player9_Kill_Income, function Trig_Player9_Kill_Income_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Give Income | |
//=========================================================================== | |
function Trig_Give_Income_Func005003001 takes nothing returns boolean | |
return ( udg_Income[GetForLoopIndexA()] >= 500000.00 ) | |
endfunction | |
function Trig_Give_Income_Func006003001 takes nothing returns boolean | |
return ( udg_Income[GetForLoopIndexA()] >= 500000.00 ) | |
endfunction | |
function Trig_Give_Income_Func010001 takes nothing returns boolean | |
return ( udg_Income[1] > 0.00 ) | |
endfunction | |
function Trig_Give_Income_Func011001 takes nothing returns boolean | |
return ( udg_Income[2] > 0.00 ) | |
endfunction | |
function Trig_Give_Income_Func012001 takes nothing returns boolean | |
return ( udg_Income[2] > 0.00 ) | |
endfunction | |
function Trig_Give_Income_Func013001 takes nothing returns boolean | |
return ( udg_Income[3] > 0.00 ) | |
endfunction | |
function Trig_Give_Income_Func014001 takes nothing returns boolean | |
return ( udg_Income[4] > 0.00 ) | |
endfunction | |
function Trig_Give_Income_Func015001 takes nothing returns boolean | |
return ( udg_Income[5] > 0.00 ) | |
endfunction | |
function Trig_Give_Income_Func016001 takes nothing returns boolean | |
return ( udg_Income[5] > 0.00 ) | |
endfunction | |
function Trig_Give_Income_Func017001 takes nothing returns boolean | |
return ( udg_Income[6] > 0.00 ) | |
endfunction | |
function Trig_Give_Income_Func018001 takes nothing returns boolean | |
return ( udg_Income[7] > 0.00 ) | |
endfunction | |
function Trig_Give_Income_Func019001 takes nothing returns boolean | |
return ( udg_Income[8] > 0.00 ) | |
endfunction | |
function Trig_Give_Income_Func020001 takes nothing returns boolean | |
return ( udg_Income[8] > 0.00 ) | |
endfunction | |
function Trig_Give_Income_Func021001 takes nothing returns boolean | |
return ( udg_Income[9] > 0.00 ) | |
endfunction | |
function Trig_Give_Income_Func024001001 takes nothing returns boolean | |
return ( udg_TeamIncome[1] > udg_TeamIncome[2] ) | |
endfunction | |
function Trig_Give_Income_Func024001002 takes nothing returns boolean | |
return ( udg_TeamIncome[1] > udg_TeamIncome[3] ) | |
endfunction | |
function Trig_Give_Income_Func024001 takes nothing returns boolean | |
return GetBooleanAnd( Trig_Give_Income_Func024001001(), Trig_Give_Income_Func024001002() ) | |
endfunction | |
function Trig_Give_Income_Func025001001 takes nothing returns boolean | |
return ( udg_TeamIncome[1] > udg_TeamIncome[2] ) | |
endfunction | |
function Trig_Give_Income_Func025001002 takes nothing returns boolean | |
return ( udg_TeamIncome[1] > udg_TeamIncome[3] ) | |
endfunction | |
function Trig_Give_Income_Func025001 takes nothing returns boolean | |
return GetBooleanAnd( Trig_Give_Income_Func025001001(), Trig_Give_Income_Func025001002() ) | |
endfunction | |
function Trig_Give_Income_Func026001001 takes nothing returns boolean | |
return ( udg_TeamIncome[2] > udg_TeamIncome[1] ) | |
endfunction | |
function Trig_Give_Income_Func026001002 takes nothing returns boolean | |
return ( udg_TeamIncome[2] > udg_TeamIncome[3] ) | |
endfunction | |
function Trig_Give_Income_Func026001 takes nothing returns boolean | |
return GetBooleanAnd( Trig_Give_Income_Func026001001(), Trig_Give_Income_Func026001002() ) | |
endfunction | |
function Trig_Give_Income_Func027001001 takes nothing returns boolean | |
return ( udg_TeamIncome[2] > udg_TeamIncome[1] ) | |
endfunction | |
function Trig_Give_Income_Func027001002 takes nothing returns boolean | |
return ( udg_TeamIncome[2] > udg_TeamIncome[3] ) | |
endfunction | |
function Trig_Give_Income_Func027001 takes nothing returns boolean | |
return GetBooleanAnd( Trig_Give_Income_Func027001001(), Trig_Give_Income_Func027001002() ) | |
endfunction | |
function Trig_Give_Income_Func028001001 takes nothing returns boolean | |
return ( udg_TeamIncome[3] > udg_TeamIncome[1] ) | |
endfunction | |
function Trig_Give_Income_Func028001002 takes nothing returns boolean | |
return ( udg_TeamIncome[3] > udg_TeamIncome[2] ) | |
endfunction | |
function Trig_Give_Income_Func028001 takes nothing returns boolean | |
return GetBooleanAnd( Trig_Give_Income_Func028001001(), Trig_Give_Income_Func028001002() ) | |
endfunction | |
function Trig_Give_Income_Func029001001 takes nothing returns boolean | |
return ( udg_TeamIncome[3] > udg_TeamIncome[1] ) | |
endfunction | |
function Trig_Give_Income_Func029001002 takes nothing returns boolean | |
return ( udg_TeamIncome[3] > udg_TeamIncome[2] ) | |
endfunction | |
function Trig_Give_Income_Func029001 takes nothing returns boolean | |
return GetBooleanAnd( Trig_Give_Income_Func029001001(), Trig_Give_Income_Func029001002() ) | |
endfunction | |
function Trig_Give_Income_Func031001 takes nothing returns boolean | |
return ( udg_TipSwitch == false ) | |
endfunction | |
function Trig_Give_Income_Func032001 takes nothing returns boolean | |
return ( udg_TipSwitch == true ) | |
endfunction | |
function Trig_Give_Income_Func032002003001 takes nothing returns boolean | |
return ( udg_TipsOn[GetForLoopIndexA()] == true ) | |
endfunction | |
function Trig_Give_Income_Actions takes nothing returns nothing | |
call DestroyTimerDialogBJ( GetLastCreatedTimerDialogBJ() ) | |
call StartTimerBJ( udg_IncomeTimer, false, udg_IncomeTime ) | |
call CreateTimerDialogBJ( udg_IncomeTimer, "TRIGSTR_324" ) | |
// Give Gold | |
set bj_forLoopAIndex = 1 | |
set bj_forLoopAIndexEnd = 9 | |
loop | |
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd | |
if ( Trig_Give_Income_Func005003001() ) then | |
call AdjustPlayerStateBJ( R2I(( udg_Income[GetForLoopIndexA()] / 100000.00 )), udg_Players[GetForLoopIndexA()], PLAYER_STATE_RESOURCE_LUMBER ) | |
else | |
call DoNothing( ) | |
endif | |
set bj_forLoopAIndex = bj_forLoopAIndex + 1 | |
endloop | |
set bj_forLoopAIndex = 1 | |
set bj_forLoopAIndexEnd = 9 | |
loop | |
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd | |
if ( Trig_Give_Income_Func006003001() ) then | |
call AdjustPlayerStateBJ( R2I(ModuloReal(udg_Income[GetForLoopIndexA()], 100000.00)), udg_Players[GetForLoopIndexA()], PLAYER_STATE_RESOURCE_GOLD ) | |
else | |
call AdjustPlayerStateBJ( R2I(udg_Income[GetForLoopIndexA()]), udg_Players[GetForLoopIndexA()], PLAYER_STATE_RESOURCE_GOLD ) | |
endif | |
set bj_forLoopAIndex = bj_forLoopAIndex + 1 | |
endloop | |
set bj_forLoopAIndex = 0 | |
set bj_forLoopAIndexEnd = 2 | |
loop | |
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd | |
set udg_TeamIncome[( GetForLoopIndexA() + 1 )] = R2I(( udg_Income[( ( GetForLoopIndexA() * 3 ) + 1 )] + ( udg_Income[( ( GetForLoopIndexA() * 3 ) + 2 )] + udg_Income[( ( GetForLoopIndexA() * 3 ) + 3 )] ) )) | |
set bj_forLoopAIndex = bj_forLoopAIndex + 1 | |
endloop | |
// Display Messages | |
set bj_forLoopAIndex = 1 | |
set bj_forLoopAIndexEnd = 9 | |
loop | |
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd | |
call DisplayTimedTextToForce( udg_PlayerGroups[GetForLoopIndexA()], 5.00, ( ( ( udg_PlayerNumbers[GetConvertedPlayerId(udg_Players[GetForLoopIndexA()])] + udg_PlayerProfiles[GetForLoopIndexA()] ) + "Your income: " ) + R2SW(udg_Income[GetForLoopIndexA()], 1, 1) ) ) | |
set bj_forLoopAIndex = bj_forLoopAIndex + 1 | |
endloop | |
if ( Trig_Give_Income_Func010001() ) then | |
set bj_forLoopAIndex = 2 | |
set bj_forLoopAIndexEnd = 3 | |
loop | |
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd | |
call DisplayTimedTextToForce( udg_PlayerGroups[GetForLoopIndexA()], 5.00, ( ( ( udg_PlayerNumbers[1] + udg_PlayerProfiles[1] ) + "|c00ff0000Red's|r Income: " ) + I2S(R2I(udg_Income[1])) ) ) | |
set bj_forLoopAIndex = bj_forLoopAIndex + 1 | |
endloop | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Give_Income_Func011001() ) then | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[0], 5.00, ( ( ( udg_PlayerNumbers[2] + udg_PlayerProfiles[2] ) + "|c000040ffBlue's|r Income: " ) + I2S(R2I(udg_Income[2])) ) ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Give_Income_Func012001() ) then | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[2], 5.00, ( ( ( udg_PlayerNumbers[2] + udg_PlayerProfiles[2] ) + "|c000040ffBlue's|r Income: " ) + I2S(R2I(udg_Income[2])) ) ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Give_Income_Func013001() ) then | |
set bj_forLoopAIndex = 1 | |
set bj_forLoopAIndexEnd = 2 | |
loop | |
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd | |
call DisplayTimedTextToForce( udg_PlayerGroups[GetForLoopIndexA()], 5.00, ( ( ( udg_PlayerNumbers[3] + udg_PlayerProfiles[3] ) + "|c001fe7bfTeal's|r Income: " ) + I2S(R2I(udg_Income[3])) ) ) | |
set bj_forLoopAIndex = bj_forLoopAIndex + 1 | |
endloop | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Give_Income_Func014001() ) then | |
set bj_forLoopAIndex = 5 | |
set bj_forLoopAIndexEnd = 6 | |
loop | |
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd | |
call DisplayTimedTextToForce( udg_PlayerGroups[GetForLoopIndexA()], 5.00, ( ( ( udg_PlayerNumbers[4] + udg_PlayerProfiles[4] ) + "|c00500080Purple's|r Income: " ) + I2S(R2I(udg_Income[4])) ) ) | |
set bj_forLoopAIndex = bj_forLoopAIndex + 1 | |
endloop | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Give_Income_Func015001() ) then | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[3], 5.00, ( ( ( udg_PlayerNumbers[5] + udg_PlayerProfiles[5] ) + "|cffdddd32Yellow's|r Income: " ) + I2S(R2I(udg_Income[5])) ) ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Give_Income_Func016001() ) then | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[5], 5.00, ( ( ( udg_PlayerNumbers[5] + udg_PlayerProfiles[5] ) + "|cffdddd32Yellow's|r Income: " ) + I2S(R2I(udg_Income[5])) ) ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Give_Income_Func017001() ) then | |
set bj_forLoopAIndex = 4 | |
set bj_forLoopAIndexEnd = 5 | |
loop | |
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd | |
call DisplayTimedTextToForce( udg_PlayerGroups[GetForLoopIndexA()], 5.00, ( ( ( udg_PlayerNumbers[6] + udg_PlayerProfiles[6] ) + "|c00ff880fOrange's|r Income: " ) + I2S(R2I(udg_Income[6])) ) ) | |
set bj_forLoopAIndex = bj_forLoopAIndex + 1 | |
endloop | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Give_Income_Func018001() ) then | |
set bj_forLoopAIndex = 8 | |
set bj_forLoopAIndexEnd = 9 | |
loop | |
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd | |
call DisplayTimedTextToForce( udg_PlayerGroups[GetForLoopIndexA()], 5.00, ( ( ( udg_PlayerNumbers[7] + udg_PlayerProfiles[7] ) + "|cff32cd32Green's|r Income: " ) + I2S(R2I(udg_Income[7])) ) ) | |
set bj_forLoopAIndex = bj_forLoopAIndex + 1 | |
endloop | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Give_Income_Func019001() ) then | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[6], 5.00, ( ( ( udg_PlayerNumbers[8] + udg_PlayerProfiles[8] ) + "|cffcd32cdPink's|r Income: " ) + I2S(R2I(udg_Income[8])) ) ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Give_Income_Func020001() ) then | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[8], 5.00, ( ( ( udg_PlayerNumbers[8] + udg_PlayerProfiles[8] ) + "|cffcd32cdPink's|r Income: " ) + I2S(R2I(udg_Income[8])) ) ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Give_Income_Func021001() ) then | |
set bj_forLoopAIndex = 7 | |
set bj_forLoopAIndexEnd = 8 | |
loop | |
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd | |
call DisplayTimedTextToForce( udg_PlayerGroups[GetForLoopIndexA()], 5.00, ( ( ( udg_PlayerNumbers[9] + udg_PlayerProfiles[9] ) + "|c00b5b5b5Gray's|r Income: " ) + I2S(R2I(udg_Income[9])) ) ) | |
set bj_forLoopAIndex = bj_forLoopAIndex + 1 | |
endloop | |
else | |
call DoNothing( ) | |
endif | |
call PlaySoundBJ( gg_snd_GoodJob ) | |
// Update Leaderboard | |
if ( Trig_Give_Income_Func024001() ) then | |
call LeaderboardSetPlayerItemLabelBJ( Player(1), GetLastCreatedLeaderboard(), "TRIGSTR_900" ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Give_Income_Func025001() ) then | |
call LeaderboardSetPlayerItemLabelColorBJ( Player(1), GetLastCreatedLeaderboard(), 100, 0.00, 0.00, 0 ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Give_Income_Func026001() ) then | |
call LeaderboardSetPlayerItemLabelBJ( Player(1), GetLastCreatedLeaderboard(), "TRIGSTR_904" ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Give_Income_Func027001() ) then | |
call LeaderboardSetPlayerItemLabelColorBJ( Player(1), GetLastCreatedLeaderboard(), 0.00, 100, 0.00, 0 ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Give_Income_Func028001() ) then | |
call LeaderboardSetPlayerItemLabelBJ( Player(1), GetLastCreatedLeaderboard(), "TRIGSTR_914" ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Give_Income_Func029001() ) then | |
call LeaderboardSetPlayerItemLabelColorBJ( Player(1), GetLastCreatedLeaderboard(), 0.00, 0.00, 100, 0 ) | |
else | |
call DoNothing( ) | |
endif | |
call TriggerSleepAction( 5.00 ) | |
if ( Trig_Give_Income_Func031001() ) then | |
set udg_TipSwitch = true | |
else | |
set udg_TipSwitch = false | |
endif | |
if ( Trig_Give_Income_Func032001() ) then | |
set bj_forLoopAIndex = 1 | |
set bj_forLoopAIndexEnd = 9 | |
loop | |
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd | |
if ( Trig_Give_Income_Func032002003001() ) then | |
call ConditionalTriggerExecute( udg_TipTriggers[GetForLoopIndexA()] ) | |
else | |
call DoNothing( ) | |
endif | |
set bj_forLoopAIndex = bj_forLoopAIndex + 1 | |
endloop | |
else | |
call DoNothing( ) | |
endif | |
endfunction | |
//=========================================================================== | |
function InitTrig_Give_Income takes nothing returns nothing | |
set gg_trg_Give_Income = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Give_Income, function Trig_Give_Income_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: IncomeTime10 | |
//=========================================================================== | |
function Trig_IncomeTime10_Actions takes nothing returns nothing | |
call TriggerExecute( gg_trg_Give_Income ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_IncomeTime10 takes nothing returns nothing | |
set gg_trg_IncomeTime10 = CreateTrigger( ) | |
call DisableTrigger( gg_trg_IncomeTime10 ) | |
call TriggerRegisterTimerEventPeriodic( gg_trg_IncomeTime10, 10.00 ) | |
call TriggerAddAction( gg_trg_IncomeTime10, function Trig_IncomeTime10_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: IncomeTime15 | |
//=========================================================================== | |
function Trig_IncomeTime15_Actions takes nothing returns nothing | |
call TriggerExecute( gg_trg_Give_Income ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_IncomeTime15 takes nothing returns nothing | |
set gg_trg_IncomeTime15 = CreateTrigger( ) | |
call DisableTrigger( gg_trg_IncomeTime15 ) | |
call TriggerRegisterTimerEventPeriodic( gg_trg_IncomeTime15, 15.00 ) | |
call TriggerAddAction( gg_trg_IncomeTime15, function Trig_IncomeTime15_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: IncomeTime20 | |
//=========================================================================== | |
function Trig_IncomeTime20_Actions takes nothing returns nothing | |
call TriggerExecute( gg_trg_Give_Income ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_IncomeTime20 takes nothing returns nothing | |
set gg_trg_IncomeTime20 = CreateTrigger( ) | |
call DisableTrigger( gg_trg_IncomeTime20 ) | |
call TriggerRegisterTimerEventPeriodic( gg_trg_IncomeTime20, 20.00 ) | |
call TriggerAddAction( gg_trg_IncomeTime20, function Trig_IncomeTime20_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: IncomeTime25 | |
//=========================================================================== | |
function Trig_IncomeTime25_Actions takes nothing returns nothing | |
call TriggerExecute( gg_trg_Give_Income ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_IncomeTime25 takes nothing returns nothing | |
set gg_trg_IncomeTime25 = CreateTrigger( ) | |
call DisableTrigger( gg_trg_IncomeTime25 ) | |
call TriggerRegisterTimerEventPeriodic( gg_trg_IncomeTime25, 25.00 ) | |
call TriggerAddAction( gg_trg_IncomeTime25, function Trig_IncomeTime25_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: IncomeTime30 | |
//=========================================================================== | |
function Trig_IncomeTime30_Actions takes nothing returns nothing | |
call TriggerExecute( gg_trg_Give_Income ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_IncomeTime30 takes nothing returns nothing | |
set gg_trg_IncomeTime30 = CreateTrigger( ) | |
call DisableTrigger( gg_trg_IncomeTime30 ) | |
call TriggerRegisterTimerEventPeriodic( gg_trg_IncomeTime30, 30.00 ) | |
call TriggerAddAction( gg_trg_IncomeTime30, function Trig_IncomeTime30_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player1 Deposit | |
//=========================================================================== | |
function Trig_Player1_Deposit_Actions takes nothing returns nothing | |
call AdjustPlayerStateBJ( -100000, Player(0), PLAYER_STATE_RESOURCE_GOLD ) | |
call AdjustPlayerStateBJ( 1, Player(0), PLAYER_STATE_RESOURCE_LUMBER ) | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[0], 4.00, "TRIGSTR_134" ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player1_Deposit takes nothing returns nothing | |
set gg_trg_Player1_Deposit = CreateTrigger( ) | |
call TriggerRegisterPlayerStateEvent( gg_trg_Player1_Deposit, Player(0), PLAYER_STATE_RESOURCE_GOLD, GREATER_THAN_OR_EQUAL, 500000.00 ) | |
call TriggerAddAction( gg_trg_Player1_Deposit, function Trig_Player1_Deposit_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player2 Deposit | |
//=========================================================================== | |
function Trig_Player2_Deposit_Actions takes nothing returns nothing | |
call AdjustPlayerStateBJ( -100000, Player(1), PLAYER_STATE_RESOURCE_GOLD ) | |
call AdjustPlayerStateBJ( 1, Player(1), PLAYER_STATE_RESOURCE_LUMBER ) | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[1], 4.00, "TRIGSTR_146" ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player2_Deposit takes nothing returns nothing | |
set gg_trg_Player2_Deposit = CreateTrigger( ) | |
call TriggerRegisterPlayerStateEvent( gg_trg_Player2_Deposit, Player(1), PLAYER_STATE_RESOURCE_GOLD, GREATER_THAN_OR_EQUAL, 500000.00 ) | |
call TriggerAddAction( gg_trg_Player2_Deposit, function Trig_Player2_Deposit_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player3 Deposit | |
//=========================================================================== | |
function Trig_Player3_Deposit_Actions takes nothing returns nothing | |
call AdjustPlayerStateBJ( -100000, Player(2), PLAYER_STATE_RESOURCE_GOLD ) | |
call AdjustPlayerStateBJ( 1, Player(2), PLAYER_STATE_RESOURCE_LUMBER ) | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[2], 4.00, "TRIGSTR_147" ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player3_Deposit takes nothing returns nothing | |
set gg_trg_Player3_Deposit = CreateTrigger( ) | |
call TriggerRegisterPlayerStateEvent( gg_trg_Player3_Deposit, Player(2), PLAYER_STATE_RESOURCE_GOLD, GREATER_THAN_OR_EQUAL, 500000.00 ) | |
call TriggerAddAction( gg_trg_Player3_Deposit, function Trig_Player3_Deposit_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player4 Deposit | |
//=========================================================================== | |
function Trig_Player4_Deposit_Actions takes nothing returns nothing | |
call AdjustPlayerStateBJ( -100000, Player(3), PLAYER_STATE_RESOURCE_GOLD ) | |
call AdjustPlayerStateBJ( 1, Player(3), PLAYER_STATE_RESOURCE_LUMBER ) | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[3], 4.00, "TRIGSTR_148" ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player4_Deposit takes nothing returns nothing | |
set gg_trg_Player4_Deposit = CreateTrigger( ) | |
call TriggerRegisterPlayerStateEvent( gg_trg_Player4_Deposit, Player(3), PLAYER_STATE_RESOURCE_GOLD, GREATER_THAN_OR_EQUAL, 500000.00 ) | |
call TriggerAddAction( gg_trg_Player4_Deposit, function Trig_Player4_Deposit_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player5 Deposit | |
//=========================================================================== | |
function Trig_Player5_Deposit_Actions takes nothing returns nothing | |
call AdjustPlayerStateBJ( -100000, Player(4), PLAYER_STATE_RESOURCE_GOLD ) | |
call AdjustPlayerStateBJ( 1, Player(4), PLAYER_STATE_RESOURCE_LUMBER ) | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[4], 4.00, "TRIGSTR_149" ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player5_Deposit takes nothing returns nothing | |
set gg_trg_Player5_Deposit = CreateTrigger( ) | |
call TriggerRegisterPlayerStateEvent( gg_trg_Player5_Deposit, Player(4), PLAYER_STATE_RESOURCE_GOLD, GREATER_THAN_OR_EQUAL, 500000.00 ) | |
call TriggerAddAction( gg_trg_Player5_Deposit, function Trig_Player5_Deposit_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player6 Deposit | |
//=========================================================================== | |
function Trig_Player6_Deposit_Actions takes nothing returns nothing | |
call AdjustPlayerStateBJ( -100000, Player(5), PLAYER_STATE_RESOURCE_GOLD ) | |
call AdjustPlayerStateBJ( 1, Player(5), PLAYER_STATE_RESOURCE_LUMBER ) | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[5], 4.00, "TRIGSTR_154" ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player6_Deposit takes nothing returns nothing | |
set gg_trg_Player6_Deposit = CreateTrigger( ) | |
call TriggerRegisterPlayerStateEvent( gg_trg_Player6_Deposit, Player(5), PLAYER_STATE_RESOURCE_GOLD, GREATER_THAN_OR_EQUAL, 500000.00 ) | |
call TriggerAddAction( gg_trg_Player6_Deposit, function Trig_Player6_Deposit_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player7 Deposit | |
//=========================================================================== | |
function Trig_Player7_Deposit_Actions takes nothing returns nothing | |
call AdjustPlayerStateBJ( -100000, Player(6), PLAYER_STATE_RESOURCE_GOLD ) | |
call AdjustPlayerStateBJ( 1, Player(6), PLAYER_STATE_RESOURCE_LUMBER ) | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[6], 4.00, "TRIGSTR_156" ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player7_Deposit takes nothing returns nothing | |
set gg_trg_Player7_Deposit = CreateTrigger( ) | |
call TriggerRegisterPlayerStateEvent( gg_trg_Player7_Deposit, Player(6), PLAYER_STATE_RESOURCE_GOLD, GREATER_THAN_OR_EQUAL, 500000.00 ) | |
call TriggerAddAction( gg_trg_Player7_Deposit, function Trig_Player7_Deposit_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player8 Deposit | |
//=========================================================================== | |
function Trig_Player8_Deposit_Actions takes nothing returns nothing | |
call AdjustPlayerStateBJ( -100000, Player(7), PLAYER_STATE_RESOURCE_GOLD ) | |
call AdjustPlayerStateBJ( 1, Player(7), PLAYER_STATE_RESOURCE_LUMBER ) | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[7], 4.00, "TRIGSTR_157" ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player8_Deposit takes nothing returns nothing | |
set gg_trg_Player8_Deposit = CreateTrigger( ) | |
call TriggerRegisterPlayerStateEvent( gg_trg_Player8_Deposit, Player(7), PLAYER_STATE_RESOURCE_GOLD, GREATER_THAN_OR_EQUAL, 500000.00 ) | |
call TriggerAddAction( gg_trg_Player8_Deposit, function Trig_Player8_Deposit_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player9 Deposit | |
//=========================================================================== | |
function Trig_Player9_Deposit_Actions takes nothing returns nothing | |
call AdjustPlayerStateBJ( -100000, Player(8), PLAYER_STATE_RESOURCE_GOLD ) | |
call AdjustPlayerStateBJ( 1, Player(8), PLAYER_STATE_RESOURCE_LUMBER ) | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[8], 4.00, "TRIGSTR_158" ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player9_Deposit takes nothing returns nothing | |
set gg_trg_Player9_Deposit = CreateTrigger( ) | |
call TriggerRegisterPlayerStateEvent( gg_trg_Player9_Deposit, Player(8), PLAYER_STATE_RESOURCE_GOLD, GREATER_THAN_OR_EQUAL, 500000.00 ) | |
call TriggerAddAction( gg_trg_Player9_Deposit, function Trig_Player9_Deposit_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player1 Withdrawal | |
//=========================================================================== | |
function Trig_Player1_Withdrawal_Conditions takes nothing returns boolean | |
if ( not ( GetPlayerState(Player(0), PLAYER_STATE_RESOURCE_LUMBER) > 0 ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player1_Withdrawal_Actions takes nothing returns nothing | |
call AdjustPlayerStateBJ( -1, Player(0), PLAYER_STATE_RESOURCE_LUMBER ) | |
call AdjustPlayerStateBJ( 100000, Player(0), PLAYER_STATE_RESOURCE_GOLD ) | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[0], 4.00, "TRIGSTR_133" ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player1_Withdrawal takes nothing returns nothing | |
set gg_trg_Player1_Withdrawal = CreateTrigger( ) | |
call TriggerRegisterPlayerStateEvent( gg_trg_Player1_Withdrawal, Player(0), PLAYER_STATE_RESOURCE_GOLD, LESS_THAN, 400000.00 ) | |
call TriggerAddCondition( gg_trg_Player1_Withdrawal, Condition( function Trig_Player1_Withdrawal_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player1_Withdrawal, function Trig_Player1_Withdrawal_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player2 Withdrawal | |
//=========================================================================== | |
function Trig_Player2_Withdrawal_Conditions takes nothing returns boolean | |
if ( not ( GetPlayerState(Player(1), PLAYER_STATE_RESOURCE_LUMBER) > 0 ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player2_Withdrawal_Actions takes nothing returns nothing | |
call AdjustPlayerStateBJ( -1, Player(1), PLAYER_STATE_RESOURCE_LUMBER ) | |
call AdjustPlayerStateBJ( 100000, Player(1), PLAYER_STATE_RESOURCE_GOLD ) | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[1], 4.00, "TRIGSTR_159" ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player2_Withdrawal takes nothing returns nothing | |
set gg_trg_Player2_Withdrawal = CreateTrigger( ) | |
call TriggerRegisterPlayerStateEvent( gg_trg_Player2_Withdrawal, Player(1), PLAYER_STATE_RESOURCE_GOLD, LESS_THAN, 400000.00 ) | |
call TriggerAddCondition( gg_trg_Player2_Withdrawal, Condition( function Trig_Player2_Withdrawal_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player2_Withdrawal, function Trig_Player2_Withdrawal_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player3 Withdrawal | |
//=========================================================================== | |
function Trig_Player3_Withdrawal_Conditions takes nothing returns boolean | |
if ( not ( GetPlayerState(Player(2), PLAYER_STATE_RESOURCE_LUMBER) > 0 ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player3_Withdrawal_Actions takes nothing returns nothing | |
call AdjustPlayerStateBJ( -1, Player(2), PLAYER_STATE_RESOURCE_LUMBER ) | |
call AdjustPlayerStateBJ( 100000, Player(2), PLAYER_STATE_RESOURCE_GOLD ) | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[2], 4.00, "TRIGSTR_160" ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player3_Withdrawal takes nothing returns nothing | |
set gg_trg_Player3_Withdrawal = CreateTrigger( ) | |
call TriggerRegisterPlayerStateEvent( gg_trg_Player3_Withdrawal, Player(2), PLAYER_STATE_RESOURCE_GOLD, LESS_THAN, 400000.00 ) | |
call TriggerAddCondition( gg_trg_Player3_Withdrawal, Condition( function Trig_Player3_Withdrawal_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player3_Withdrawal, function Trig_Player3_Withdrawal_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player4 Withdrawal | |
//=========================================================================== | |
function Trig_Player4_Withdrawal_Conditions takes nothing returns boolean | |
if ( not ( GetPlayerState(Player(3), PLAYER_STATE_RESOURCE_LUMBER) > 0 ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player4_Withdrawal_Actions takes nothing returns nothing | |
call AdjustPlayerStateBJ( -1, Player(3), PLAYER_STATE_RESOURCE_LUMBER ) | |
call AdjustPlayerStateBJ( 100000, Player(3), PLAYER_STATE_RESOURCE_GOLD ) | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[3], 4.00, "TRIGSTR_161" ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player4_Withdrawal takes nothing returns nothing | |
set gg_trg_Player4_Withdrawal = CreateTrigger( ) | |
call TriggerRegisterPlayerStateEvent( gg_trg_Player4_Withdrawal, Player(3), PLAYER_STATE_RESOURCE_GOLD, LESS_THAN, 400000.00 ) | |
call TriggerAddCondition( gg_trg_Player4_Withdrawal, Condition( function Trig_Player4_Withdrawal_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player4_Withdrawal, function Trig_Player4_Withdrawal_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player5 Withdrawal | |
//=========================================================================== | |
function Trig_Player5_Withdrawal_Conditions takes nothing returns boolean | |
if ( not ( GetPlayerState(Player(4), PLAYER_STATE_RESOURCE_LUMBER) > 0 ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player5_Withdrawal_Actions takes nothing returns nothing | |
call AdjustPlayerStateBJ( -1, Player(4), PLAYER_STATE_RESOURCE_LUMBER ) | |
call AdjustPlayerStateBJ( 100000, Player(4), PLAYER_STATE_RESOURCE_GOLD ) | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[4], 4.00, "TRIGSTR_162" ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player5_Withdrawal takes nothing returns nothing | |
set gg_trg_Player5_Withdrawal = CreateTrigger( ) | |
call TriggerRegisterPlayerStateEvent( gg_trg_Player5_Withdrawal, Player(4), PLAYER_STATE_RESOURCE_GOLD, LESS_THAN, 400000.00 ) | |
call TriggerAddCondition( gg_trg_Player5_Withdrawal, Condition( function Trig_Player5_Withdrawal_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player5_Withdrawal, function Trig_Player5_Withdrawal_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player6 Withdrawal | |
//=========================================================================== | |
function Trig_Player6_Withdrawal_Conditions takes nothing returns boolean | |
if ( not ( GetPlayerState(Player(5), PLAYER_STATE_RESOURCE_LUMBER) > 0 ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player6_Withdrawal_Actions takes nothing returns nothing | |
call AdjustPlayerStateBJ( -1, Player(5), PLAYER_STATE_RESOURCE_LUMBER ) | |
call AdjustPlayerStateBJ( 100000, Player(5), PLAYER_STATE_RESOURCE_GOLD ) | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[5], 4.00, "TRIGSTR_163" ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player6_Withdrawal takes nothing returns nothing | |
set gg_trg_Player6_Withdrawal = CreateTrigger( ) | |
call TriggerRegisterPlayerStateEvent( gg_trg_Player6_Withdrawal, Player(5), PLAYER_STATE_RESOURCE_GOLD, LESS_THAN, 400000.00 ) | |
call TriggerAddCondition( gg_trg_Player6_Withdrawal, Condition( function Trig_Player6_Withdrawal_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player6_Withdrawal, function Trig_Player6_Withdrawal_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player7 Withdrawal | |
//=========================================================================== | |
function Trig_Player7_Withdrawal_Conditions takes nothing returns boolean | |
if ( not ( GetPlayerState(Player(6), PLAYER_STATE_RESOURCE_LUMBER) > 0 ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player7_Withdrawal_Actions takes nothing returns nothing | |
call AdjustPlayerStateBJ( -1, Player(6), PLAYER_STATE_RESOURCE_LUMBER ) | |
call AdjustPlayerStateBJ( 100000, Player(6), PLAYER_STATE_RESOURCE_GOLD ) | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[6], 4.00, "TRIGSTR_166" ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player7_Withdrawal takes nothing returns nothing | |
set gg_trg_Player7_Withdrawal = CreateTrigger( ) | |
call TriggerRegisterPlayerStateEvent( gg_trg_Player7_Withdrawal, Player(6), PLAYER_STATE_RESOURCE_GOLD, LESS_THAN, 400000.00 ) | |
call TriggerAddCondition( gg_trg_Player7_Withdrawal, Condition( function Trig_Player7_Withdrawal_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player7_Withdrawal, function Trig_Player7_Withdrawal_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player8 Withdrawal | |
//=========================================================================== | |
function Trig_Player8_Withdrawal_Conditions takes nothing returns boolean | |
if ( not ( GetPlayerState(Player(7), PLAYER_STATE_RESOURCE_LUMBER) > 0 ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player8_Withdrawal_Actions takes nothing returns nothing | |
call AdjustPlayerStateBJ( -1, Player(7), PLAYER_STATE_RESOURCE_LUMBER ) | |
call AdjustPlayerStateBJ( 100000, Player(7), PLAYER_STATE_RESOURCE_GOLD ) | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[7], 4.00, "TRIGSTR_167" ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player8_Withdrawal takes nothing returns nothing | |
set gg_trg_Player8_Withdrawal = CreateTrigger( ) | |
call TriggerRegisterPlayerStateEvent( gg_trg_Player8_Withdrawal, Player(7), PLAYER_STATE_RESOURCE_GOLD, LESS_THAN, 400000.00 ) | |
call TriggerAddCondition( gg_trg_Player8_Withdrawal, Condition( function Trig_Player8_Withdrawal_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player8_Withdrawal, function Trig_Player8_Withdrawal_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player9 Withdrawal | |
//=========================================================================== | |
function Trig_Player9_Withdrawal_Conditions takes nothing returns boolean | |
if ( not ( GetPlayerState(Player(8), PLAYER_STATE_RESOURCE_LUMBER) > 0 ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player9_Withdrawal_Actions takes nothing returns nothing | |
call AdjustPlayerStateBJ( -1, Player(8), PLAYER_STATE_RESOURCE_LUMBER ) | |
call AdjustPlayerStateBJ( 100000, Player(8), PLAYER_STATE_RESOURCE_GOLD ) | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[8], 4.00, "TRIGSTR_168" ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player9_Withdrawal takes nothing returns nothing | |
set gg_trg_Player9_Withdrawal = CreateTrigger( ) | |
call TriggerRegisterPlayerStateEvent( gg_trg_Player9_Withdrawal, Player(8), PLAYER_STATE_RESOURCE_GOLD, LESS_THAN, 400000.00 ) | |
call TriggerAddCondition( gg_trg_Player9_Withdrawal, Condition( function Trig_Player9_Withdrawal_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player9_Withdrawal, function Trig_Player9_Withdrawal_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Upgrade Player 1 | |
//=========================================================================== | |
function Trig_Upgrade_Player_1_Conditions takes nothing returns boolean | |
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_STRUCTURE) == true ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Upgrade_Player_1_Actions takes nothing returns nothing | |
call SetUnitOwner( GetTriggerUnit(), GetOwningPlayer(udg_Shrines[0]), true ) | |
call RemoveUnit( udg_Shrines[0] ) | |
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Player1_Shrine) ) | |
set udg_Shrines[0] = GetTriggerUnit() | |
call AdjustPlayerStateBJ( 1, Player(0), PLAYER_STATE_RESOURCE_FOOD_CAP ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Upgrade_Player_1 takes nothing returns nothing | |
set gg_trg_Upgrade_Player_1 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Upgrade_Player_1, gg_rct_Player1_New_Shrine ) | |
call TriggerAddCondition( gg_trg_Upgrade_Player_1, Condition( function Trig_Upgrade_Player_1_Conditions ) ) | |
call TriggerAddAction( gg_trg_Upgrade_Player_1, function Trig_Upgrade_Player_1_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Upgrade Player 2 | |
//=========================================================================== | |
function Trig_Upgrade_Player_2_Conditions takes nothing returns boolean | |
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_STRUCTURE) == true ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Upgrade_Player_2_Actions takes nothing returns nothing | |
call SetUnitOwner( GetTriggerUnit(), GetOwningPlayer(udg_Shrines[1]), true ) | |
call RemoveUnit( udg_Shrines[1] ) | |
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Player2_Shrine) ) | |
set udg_Shrines[1] = GetTriggerUnit() | |
call AdjustPlayerStateBJ( 1, Player(1), PLAYER_STATE_RESOURCE_FOOD_CAP ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Upgrade_Player_2 takes nothing returns nothing | |
set gg_trg_Upgrade_Player_2 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Upgrade_Player_2, gg_rct_Player2_New_Shrine ) | |
call TriggerAddCondition( gg_trg_Upgrade_Player_2, Condition( function Trig_Upgrade_Player_2_Conditions ) ) | |
call TriggerAddAction( gg_trg_Upgrade_Player_2, function Trig_Upgrade_Player_2_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Upgrade Player 3 | |
//=========================================================================== | |
function Trig_Upgrade_Player_3_Conditions takes nothing returns boolean | |
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_STRUCTURE) == true ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Upgrade_Player_3_Actions takes nothing returns nothing | |
call SetUnitOwner( GetTriggerUnit(), GetOwningPlayer(udg_Shrines[2]), true ) | |
call RemoveUnit( udg_Shrines[2] ) | |
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Player3_Shrine) ) | |
set udg_Shrines[2] = GetTriggerUnit() | |
call AdjustPlayerStateBJ( 1, Player(2), PLAYER_STATE_RESOURCE_FOOD_CAP ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Upgrade_Player_3 takes nothing returns nothing | |
set gg_trg_Upgrade_Player_3 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Upgrade_Player_3, gg_rct_Player3_New_Shrine ) | |
call TriggerAddCondition( gg_trg_Upgrade_Player_3, Condition( function Trig_Upgrade_Player_3_Conditions ) ) | |
call TriggerAddAction( gg_trg_Upgrade_Player_3, function Trig_Upgrade_Player_3_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Upgrade Player 4 | |
//=========================================================================== | |
function Trig_Upgrade_Player_4_Conditions takes nothing returns boolean | |
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_STRUCTURE) == true ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Upgrade_Player_4_Actions takes nothing returns nothing | |
call SetUnitOwner( GetTriggerUnit(), GetOwningPlayer(udg_Shrines[3]), true ) | |
call RemoveUnit( udg_Shrines[3] ) | |
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Player4_Shrine) ) | |
set udg_Shrines[3] = GetTriggerUnit() | |
call AdjustPlayerStateBJ( 1, Player(3), PLAYER_STATE_RESOURCE_FOOD_CAP ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Upgrade_Player_4 takes nothing returns nothing | |
set gg_trg_Upgrade_Player_4 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Upgrade_Player_4, gg_rct_Player4_New_Shrine ) | |
call TriggerAddCondition( gg_trg_Upgrade_Player_4, Condition( function Trig_Upgrade_Player_4_Conditions ) ) | |
call TriggerAddAction( gg_trg_Upgrade_Player_4, function Trig_Upgrade_Player_4_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Upgrade Player 5 | |
//=========================================================================== | |
function Trig_Upgrade_Player_5_Conditions takes nothing returns boolean | |
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_STRUCTURE) == true ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Upgrade_Player_5_Actions takes nothing returns nothing | |
call SetUnitOwner( GetTriggerUnit(), GetOwningPlayer(udg_Shrines[4]), true ) | |
call RemoveUnit( udg_Shrines[4] ) | |
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Player5_Shrine) ) | |
set udg_Shrines[4] = GetTriggerUnit() | |
call AdjustPlayerStateBJ( 1, Player(4), PLAYER_STATE_RESOURCE_FOOD_CAP ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Upgrade_Player_5 takes nothing returns nothing | |
set gg_trg_Upgrade_Player_5 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Upgrade_Player_5, gg_rct_Player5_New_Shrine ) | |
call TriggerAddCondition( gg_trg_Upgrade_Player_5, Condition( function Trig_Upgrade_Player_5_Conditions ) ) | |
call TriggerAddAction( gg_trg_Upgrade_Player_5, function Trig_Upgrade_Player_5_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Upgrade Player 6 | |
//=========================================================================== | |
function Trig_Upgrade_Player_6_Conditions takes nothing returns boolean | |
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_STRUCTURE) == true ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Upgrade_Player_6_Actions takes nothing returns nothing | |
call SetUnitOwner( GetTriggerUnit(), GetOwningPlayer(udg_Shrines[5]), true ) | |
call RemoveUnit( udg_Shrines[5] ) | |
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Player6_Shrine) ) | |
set udg_Shrines[5] = GetTriggerUnit() | |
call AdjustPlayerStateBJ( 1, Player(5), PLAYER_STATE_RESOURCE_FOOD_CAP ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Upgrade_Player_6 takes nothing returns nothing | |
set gg_trg_Upgrade_Player_6 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Upgrade_Player_6, gg_rct_Player6_New_Shrine ) | |
call TriggerAddCondition( gg_trg_Upgrade_Player_6, Condition( function Trig_Upgrade_Player_6_Conditions ) ) | |
call TriggerAddAction( gg_trg_Upgrade_Player_6, function Trig_Upgrade_Player_6_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Upgrade Player 7 | |
//=========================================================================== | |
function Trig_Upgrade_Player_7_Conditions takes nothing returns boolean | |
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_STRUCTURE) == true ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Upgrade_Player_7_Actions takes nothing returns nothing | |
call SetUnitOwner( GetTriggerUnit(), GetOwningPlayer(udg_Shrines[6]), true ) | |
call RemoveUnit( udg_Shrines[6] ) | |
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Player7_Shrine) ) | |
set udg_Shrines[6] = GetTriggerUnit() | |
call AdjustPlayerStateBJ( 1, Player(6), PLAYER_STATE_RESOURCE_FOOD_CAP ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Upgrade_Player_7 takes nothing returns nothing | |
set gg_trg_Upgrade_Player_7 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Upgrade_Player_7, gg_rct_Player7_New_Shrine ) | |
call TriggerAddCondition( gg_trg_Upgrade_Player_7, Condition( function Trig_Upgrade_Player_7_Conditions ) ) | |
call TriggerAddAction( gg_trg_Upgrade_Player_7, function Trig_Upgrade_Player_7_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Upgrade Player 8 | |
//=========================================================================== | |
function Trig_Upgrade_Player_8_Conditions takes nothing returns boolean | |
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_STRUCTURE) == true ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Upgrade_Player_8_Actions takes nothing returns nothing | |
call SetUnitOwner( GetTriggerUnit(), GetOwningPlayer(udg_Shrines[7]), true ) | |
call RemoveUnit( udg_Shrines[7] ) | |
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Player8_Shrine) ) | |
set udg_Shrines[7] = GetTriggerUnit() | |
call AdjustPlayerStateBJ( 1, Player(7), PLAYER_STATE_RESOURCE_FOOD_CAP ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Upgrade_Player_8 takes nothing returns nothing | |
set gg_trg_Upgrade_Player_8 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Upgrade_Player_8, gg_rct_Player8_New_Shrine ) | |
call TriggerAddCondition( gg_trg_Upgrade_Player_8, Condition( function Trig_Upgrade_Player_8_Conditions ) ) | |
call TriggerAddAction( gg_trg_Upgrade_Player_8, function Trig_Upgrade_Player_8_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Upgrade Player 9 | |
//=========================================================================== | |
function Trig_Upgrade_Player_9_Conditions takes nothing returns boolean | |
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_STRUCTURE) == true ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Upgrade_Player_9_Actions takes nothing returns nothing | |
call SetUnitOwner( GetTriggerUnit(), GetOwningPlayer(udg_Shrines[8]), true ) | |
call RemoveUnit( udg_Shrines[8] ) | |
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Player9_Shrine) ) | |
set udg_Shrines[8] = GetTriggerUnit() | |
call AdjustPlayerStateBJ( 1, Player(8), PLAYER_STATE_RESOURCE_FOOD_CAP ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Upgrade_Player_9 takes nothing returns nothing | |
set gg_trg_Upgrade_Player_9 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Upgrade_Player_9, gg_rct_Player9_New_Shrine ) | |
call TriggerAddCondition( gg_trg_Upgrade_Player_9, Condition( function Trig_Upgrade_Player_9_Conditions ) ) | |
call TriggerAddAction( gg_trg_Upgrade_Player_9, function Trig_Upgrade_Player_9_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player1 Shrine | |
//=========================================================================== | |
function Trig_Player1_Shrine_Conditions takes nothing returns boolean | |
if ( not ( GetPlayerSlotState(Player(0)) == PLAYER_SLOT_STATE_PLAYING ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player1_Shrine_Actions takes nothing returns nothing | |
// Init Shrine | |
call CreateNUnitsAtLoc( 1, 'nC01', Player(0), GetRectCenter(gg_rct_Player1_Shrine), 0.00 ) | |
set udg_Shrines[0] = GetLastCreatedUnit() | |
call PingMinimapLocForForce( bj_FORCE_PLAYER[0], GetRectCenter(gg_rct_Player1_Shrine), 5.00 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player1_Shrine takes nothing returns nothing | |
set gg_trg_Player1_Shrine = CreateTrigger( ) | |
call TriggerAddCondition( gg_trg_Player1_Shrine, Condition( function Trig_Player1_Shrine_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player1_Shrine, function Trig_Player1_Shrine_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player2 Shrine | |
//=========================================================================== | |
function Trig_Player2_Shrine_Conditions takes nothing returns boolean | |
if ( not ( GetPlayerSlotState(Player(1)) == PLAYER_SLOT_STATE_PLAYING ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player2_Shrine_Actions takes nothing returns nothing | |
// Init Shrine | |
call CreateNUnitsAtLoc( 1, 'nC01', Player(1), GetRectCenter(gg_rct_Player2_Shrine), 0.00 ) | |
set udg_Shrines[1] = GetLastCreatedUnit() | |
call PingMinimapLocForForce( bj_FORCE_PLAYER[1], GetRectCenter(gg_rct_Player2_Shrine), 5.00 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player2_Shrine takes nothing returns nothing | |
set gg_trg_Player2_Shrine = CreateTrigger( ) | |
call TriggerAddCondition( gg_trg_Player2_Shrine, Condition( function Trig_Player2_Shrine_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player2_Shrine, function Trig_Player2_Shrine_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player3 Shrine | |
//=========================================================================== | |
function Trig_Player3_Shrine_Conditions takes nothing returns boolean | |
if ( not ( GetPlayerSlotState(Player(2)) == PLAYER_SLOT_STATE_PLAYING ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player3_Shrine_Actions takes nothing returns nothing | |
// Init Shrine | |
call CreateNUnitsAtLoc( 1, 'nC01', Player(2), GetRectCenter(gg_rct_Player3_Shrine), 0.00 ) | |
set udg_Shrines[2] = GetLastCreatedUnit() | |
call PingMinimapLocForForce( bj_FORCE_PLAYER[2], GetRectCenter(gg_rct_Player3_Shrine), 5.00 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player3_Shrine takes nothing returns nothing | |
set gg_trg_Player3_Shrine = CreateTrigger( ) | |
call TriggerAddCondition( gg_trg_Player3_Shrine, Condition( function Trig_Player3_Shrine_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player3_Shrine, function Trig_Player3_Shrine_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player4 Shrine | |
//=========================================================================== | |
function Trig_Player4_Shrine_Conditions takes nothing returns boolean | |
if ( not ( GetPlayerSlotState(Player(3)) == PLAYER_SLOT_STATE_PLAYING ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player4_Shrine_Actions takes nothing returns nothing | |
// Init Shrine | |
call CreateNUnitsAtLoc( 1, 'nC01', Player(3), GetRectCenter(gg_rct_Player4_Shrine), 0.00 ) | |
set udg_Shrines[3] = GetLastCreatedUnit() | |
call PingMinimapLocForForce( bj_FORCE_PLAYER[3], GetRectCenter(gg_rct_Player4_Shrine), 5.00 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player4_Shrine takes nothing returns nothing | |
set gg_trg_Player4_Shrine = CreateTrigger( ) | |
call TriggerAddCondition( gg_trg_Player4_Shrine, Condition( function Trig_Player4_Shrine_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player4_Shrine, function Trig_Player4_Shrine_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player5 Shrine | |
//=========================================================================== | |
function Trig_Player5_Shrine_Conditions takes nothing returns boolean | |
if ( not ( GetPlayerSlotState(Player(4)) == PLAYER_SLOT_STATE_PLAYING ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player5_Shrine_Actions takes nothing returns nothing | |
// Init Shrine | |
call CreateNUnitsAtLoc( 1, 'nC01', Player(4), GetRectCenter(gg_rct_Player5_Shrine), 0.00 ) | |
set udg_Shrines[4] = GetLastCreatedUnit() | |
call PingMinimapLocForForce( bj_FORCE_PLAYER[4], GetRectCenter(gg_rct_Player5_Shrine), 5.00 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player5_Shrine takes nothing returns nothing | |
set gg_trg_Player5_Shrine = CreateTrigger( ) | |
call TriggerAddCondition( gg_trg_Player5_Shrine, Condition( function Trig_Player5_Shrine_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player5_Shrine, function Trig_Player5_Shrine_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player6 Shrine | |
//=========================================================================== | |
function Trig_Player6_Shrine_Conditions takes nothing returns boolean | |
if ( not ( GetPlayerSlotState(Player(5)) == PLAYER_SLOT_STATE_PLAYING ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player6_Shrine_Actions takes nothing returns nothing | |
// Init Shrine | |
call CreateNUnitsAtLoc( 1, 'nC01', Player(5), GetRectCenter(gg_rct_Player6_Shrine), 0.00 ) | |
set udg_Shrines[5] = GetLastCreatedUnit() | |
call PingMinimapLocForForce( bj_FORCE_PLAYER[5], GetRectCenter(gg_rct_Player6_Shrine), 5.00 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player6_Shrine takes nothing returns nothing | |
set gg_trg_Player6_Shrine = CreateTrigger( ) | |
call TriggerAddCondition( gg_trg_Player6_Shrine, Condition( function Trig_Player6_Shrine_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player6_Shrine, function Trig_Player6_Shrine_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player7 Shrine | |
//=========================================================================== | |
function Trig_Player7_Shrine_Conditions takes nothing returns boolean | |
if ( not ( GetPlayerSlotState(Player(6)) == PLAYER_SLOT_STATE_PLAYING ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player7_Shrine_Actions takes nothing returns nothing | |
// Init Shrine | |
call CreateNUnitsAtLoc( 1, 'nC01', Player(6), GetRectCenter(gg_rct_Player7_Shrine), 0.00 ) | |
set udg_Shrines[6] = GetLastCreatedUnit() | |
call PingMinimapLocForForce( bj_FORCE_PLAYER[6], GetRectCenter(gg_rct_Player7_Shrine), 5.00 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player7_Shrine takes nothing returns nothing | |
set gg_trg_Player7_Shrine = CreateTrigger( ) | |
call TriggerAddCondition( gg_trg_Player7_Shrine, Condition( function Trig_Player7_Shrine_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player7_Shrine, function Trig_Player7_Shrine_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player8 Shrine | |
//=========================================================================== | |
function Trig_Player8_Shrine_Conditions takes nothing returns boolean | |
if ( not ( GetPlayerSlotState(Player(7)) == PLAYER_SLOT_STATE_PLAYING ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player8_Shrine_Actions takes nothing returns nothing | |
// Init Shrine | |
call CreateNUnitsAtLoc( 1, 'nC01', Player(7), GetRectCenter(gg_rct_Player8_Shrine), 0.00 ) | |
set udg_Shrines[7] = GetLastCreatedUnit() | |
call PingMinimapLocForForce( bj_FORCE_PLAYER[7], GetRectCenter(gg_rct_Player8_Shrine), 5.00 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player8_Shrine takes nothing returns nothing | |
set gg_trg_Player8_Shrine = CreateTrigger( ) | |
call TriggerAddCondition( gg_trg_Player8_Shrine, Condition( function Trig_Player8_Shrine_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player8_Shrine, function Trig_Player8_Shrine_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player9 Shrine | |
//=========================================================================== | |
function Trig_Player9_Shrine_Conditions takes nothing returns boolean | |
if ( not ( GetPlayerSlotState(Player(8)) == PLAYER_SLOT_STATE_PLAYING ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Player9_Shrine_Actions takes nothing returns nothing | |
// Init Shrine | |
call CreateNUnitsAtLoc( 1, 'nC01', Player(8), GetRectCenter(gg_rct_Player9_Shrine), 0.00 ) | |
set udg_Shrines[8] = GetLastCreatedUnit() | |
call PingMinimapLocForForce( bj_FORCE_PLAYER[8], GetRectCenter(gg_rct_Player9_Shrine), 5.00 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player9_Shrine takes nothing returns nothing | |
set gg_trg_Player9_Shrine = CreateTrigger( ) | |
call TriggerAddCondition( gg_trg_Player9_Shrine, Condition( function Trig_Player9_Shrine_Conditions ) ) | |
call TriggerAddAction( gg_trg_Player9_Shrine, function Trig_Player9_Shrine_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Extra Shrines | |
//=========================================================================== | |
function Trig_Team1_Extra_Shrines_Func001001 takes nothing returns boolean | |
return ( CountPlayersInForceBJ(udg_Team1Summoners) > 0 ) | |
endfunction | |
function Trig_Team1_Extra_Shrines_Func002003001 takes nothing returns boolean | |
return ( GetPlayerSlotState(ConvertedPlayer(GetForLoopIndexA())) == PLAYER_SLOT_STATE_EMPTY ) | |
endfunction | |
function Trig_Team1_Extra_Shrines_Actions takes nothing returns nothing | |
if ( Trig_Team1_Extra_Shrines_Func001001() ) then | |
set udg_Team1ExtraShrine = ForcePickRandomPlayer(udg_Team1Summoners) | |
else | |
set udg_Team1ExtraShrine = ForcePickRandomPlayer(udg_Team1Group) | |
endif | |
set bj_forLoopAIndex = 1 | |
set bj_forLoopAIndexEnd = 3 | |
loop | |
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd | |
if ( Trig_Team1_Extra_Shrines_Func002003001() ) then | |
call TriggerExecute( udg_ExtraShrineTriggers[GetForLoopIndexA()] ) | |
else | |
call DoNothing( ) | |
endif | |
set bj_forLoopAIndex = bj_forLoopAIndex + 1 | |
endloop | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Extra_Shrines takes nothing returns nothing | |
set gg_trg_Team1_Extra_Shrines = CreateTrigger( ) | |
call DisableTrigger( gg_trg_Team1_Extra_Shrines ) | |
call TriggerRegisterTimerEventSingle( gg_trg_Team1_Extra_Shrines, 70.00 ) | |
call TriggerAddAction( gg_trg_Team1_Extra_Shrines, function Trig_Team1_Extra_Shrines_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Extra Shrines | |
//=========================================================================== | |
function Trig_Team2_Extra_Shrines_Func001001 takes nothing returns boolean | |
return ( CountPlayersInForceBJ(udg_Team2Summoners) > 0 ) | |
endfunction | |
function Trig_Team2_Extra_Shrines_Func002003001 takes nothing returns boolean | |
return ( GetPlayerSlotState(ConvertedPlayer(GetForLoopIndexA())) == PLAYER_SLOT_STATE_EMPTY ) | |
endfunction | |
function Trig_Team2_Extra_Shrines_Actions takes nothing returns nothing | |
if ( Trig_Team2_Extra_Shrines_Func001001() ) then | |
set udg_Team2ExtraShrine = ForcePickRandomPlayer(udg_Team2Summoners) | |
else | |
set udg_Team2ExtraShrine = ForcePickRandomPlayer(udg_Team2Group) | |
endif | |
set bj_forLoopAIndex = 4 | |
set bj_forLoopAIndexEnd = 6 | |
loop | |
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd | |
if ( Trig_Team2_Extra_Shrines_Func002003001() ) then | |
call TriggerExecute( udg_ExtraShrineTriggers[GetForLoopIndexA()] ) | |
else | |
call DoNothing( ) | |
endif | |
set bj_forLoopAIndex = bj_forLoopAIndex + 1 | |
endloop | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Extra_Shrines takes nothing returns nothing | |
set gg_trg_Team2_Extra_Shrines = CreateTrigger( ) | |
call DisableTrigger( gg_trg_Team2_Extra_Shrines ) | |
call TriggerRegisterTimerEventSingle( gg_trg_Team2_Extra_Shrines, 70.00 ) | |
call TriggerAddAction( gg_trg_Team2_Extra_Shrines, function Trig_Team2_Extra_Shrines_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Extra Shrines | |
//=========================================================================== | |
function Trig_Team3_Extra_Shrines_Func001001 takes nothing returns boolean | |
return ( CountPlayersInForceBJ(udg_Team3Summoners) > 0 ) | |
endfunction | |
function Trig_Team3_Extra_Shrines_Func002003001 takes nothing returns boolean | |
return ( GetPlayerSlotState(ConvertedPlayer(GetForLoopIndexA())) == PLAYER_SLOT_STATE_EMPTY ) | |
endfunction | |
function Trig_Team3_Extra_Shrines_Actions takes nothing returns nothing | |
if ( Trig_Team3_Extra_Shrines_Func001001() ) then | |
set udg_Team3ExtraShrine = ForcePickRandomPlayer(udg_Team3Summoners) | |
else | |
set udg_Team3ExtraShrine = ForcePickRandomPlayer(udg_Team3Group) | |
endif | |
set bj_forLoopAIndex = 7 | |
set bj_forLoopAIndexEnd = 9 | |
loop | |
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd | |
if ( Trig_Team3_Extra_Shrines_Func002003001() ) then | |
call TriggerExecute( udg_ExtraShrineTriggers[GetForLoopIndexA()] ) | |
else | |
call DoNothing( ) | |
endif | |
set bj_forLoopAIndex = bj_forLoopAIndex + 1 | |
endloop | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Extra_Shrines takes nothing returns nothing | |
set gg_trg_Team3_Extra_Shrines = CreateTrigger( ) | |
call DisableTrigger( gg_trg_Team3_Extra_Shrines ) | |
call TriggerRegisterTimerEventSingle( gg_trg_Team3_Extra_Shrines, 70.00 ) | |
call TriggerAddAction( gg_trg_Team3_Extra_Shrines, function Trig_Team3_Extra_Shrines_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player1 Extra Shrine | |
//=========================================================================== | |
function Trig_Player1_Extra_Shrine_Actions takes nothing returns nothing | |
// Init Shrine | |
call CreateNUnitsAtLoc( 1, 'nC01', udg_Team1ExtraShrine, GetRectCenter(gg_rct_Player1_Shrine), 0.00 ) | |
set udg_Shrines[0] = GetLastCreatedUnit() | |
call PingMinimapLocForForce( GetForceOfPlayer(udg_Team1ExtraShrine), GetRectCenter(gg_rct_Player1_Shrine), 5.00 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player1_Extra_Shrine takes nothing returns nothing | |
set gg_trg_Player1_Extra_Shrine = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Player1_Extra_Shrine, function Trig_Player1_Extra_Shrine_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player2 Extra Shrine | |
//=========================================================================== | |
function Trig_Player2_Extra_Shrine_Actions takes nothing returns nothing | |
// Init Shrine | |
call CreateNUnitsAtLoc( 1, 'nC01', udg_Team1ExtraShrine, GetRectCenter(gg_rct_Player2_Shrine), 0.00 ) | |
set udg_Shrines[1] = GetLastCreatedUnit() | |
call PingMinimapLocForForce( GetForceOfPlayer(udg_Team1ExtraShrine), GetRectCenter(gg_rct_Player2_Shrine), 5.00 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player2_Extra_Shrine takes nothing returns nothing | |
set gg_trg_Player2_Extra_Shrine = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Player2_Extra_Shrine, function Trig_Player2_Extra_Shrine_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player3 Extra Shrine | |
//=========================================================================== | |
function Trig_Player3_Extra_Shrine_Actions takes nothing returns nothing | |
// Init Shrine | |
call CreateNUnitsAtLoc( 1, 'nC01', udg_Team1ExtraShrine, GetRectCenter(gg_rct_Player3_Shrine), 0.00 ) | |
set udg_Shrines[2] = GetLastCreatedUnit() | |
call PingMinimapLocForForce( GetForceOfPlayer(udg_Team1ExtraShrine), GetRectCenter(gg_rct_Player3_Shrine), 5.00 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player3_Extra_Shrine takes nothing returns nothing | |
set gg_trg_Player3_Extra_Shrine = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Player3_Extra_Shrine, function Trig_Player3_Extra_Shrine_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player4 Extra Shrine | |
//=========================================================================== | |
function Trig_Player4_Extra_Shrine_Actions takes nothing returns nothing | |
// Init Shrine | |
call CreateNUnitsAtLoc( 1, 'nC01', udg_Team2ExtraShrine, GetRectCenter(gg_rct_Player4_Shrine), 0.00 ) | |
set udg_Shrines[3] = GetLastCreatedUnit() | |
call PingMinimapLocForForce( GetForceOfPlayer(udg_Team2ExtraShrine), GetRectCenter(gg_rct_Player4_Shrine), 5.00 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player4_Extra_Shrine takes nothing returns nothing | |
set gg_trg_Player4_Extra_Shrine = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Player4_Extra_Shrine, function Trig_Player4_Extra_Shrine_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player5 Extra Shrine | |
//=========================================================================== | |
function Trig_Player5_Extra_Shrine_Actions takes nothing returns nothing | |
// Init Shrine | |
call CreateNUnitsAtLoc( 1, 'nC01', udg_Team2ExtraShrine, GetRectCenter(gg_rct_Player5_Shrine), 0.00 ) | |
set udg_Shrines[4] = GetLastCreatedUnit() | |
call PingMinimapLocForForce( GetForceOfPlayer(udg_Team2ExtraShrine), GetRectCenter(gg_rct_Player5_Shrine), 5.00 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player5_Extra_Shrine takes nothing returns nothing | |
set gg_trg_Player5_Extra_Shrine = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Player5_Extra_Shrine, function Trig_Player5_Extra_Shrine_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player6 Extra Shrine | |
//=========================================================================== | |
function Trig_Player6_Extra_Shrine_Actions takes nothing returns nothing | |
// Init Shrine | |
call CreateNUnitsAtLoc( 1, 'nC01', udg_Team2ExtraShrine, GetRectCenter(gg_rct_Player6_Shrine), 0.00 ) | |
set udg_Shrines[5] = GetLastCreatedUnit() | |
call PingMinimapLocForForce( GetForceOfPlayer(udg_Team2ExtraShrine), GetRectCenter(gg_rct_Player6_Shrine), 5.00 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player6_Extra_Shrine takes nothing returns nothing | |
set gg_trg_Player6_Extra_Shrine = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Player6_Extra_Shrine, function Trig_Player6_Extra_Shrine_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player7 Extra Shrine | |
//=========================================================================== | |
function Trig_Player7_Extra_Shrine_Actions takes nothing returns nothing | |
// Init Shrine | |
call CreateNUnitsAtLoc( 1, 'nC01', udg_Team3ExtraShrine, GetRectCenter(gg_rct_Player7_Shrine), 0.00 ) | |
set udg_Shrines[6] = GetLastCreatedUnit() | |
call PingMinimapLocForForce( GetForceOfPlayer(udg_Team3ExtraShrine), GetRectCenter(gg_rct_Player7_Shrine), 5.00 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player7_Extra_Shrine takes nothing returns nothing | |
set gg_trg_Player7_Extra_Shrine = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Player7_Extra_Shrine, function Trig_Player7_Extra_Shrine_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player8 Extra Shrine | |
//=========================================================================== | |
function Trig_Player8_Extra_Shrine_Actions takes nothing returns nothing | |
// Init Shrine | |
call CreateNUnitsAtLoc( 1, 'nC01', udg_Team3ExtraShrine, GetRectCenter(gg_rct_Player8_Shrine), 0.00 ) | |
set udg_Shrines[7] = GetLastCreatedUnit() | |
call PingMinimapLocForForce( GetForceOfPlayer(udg_Team3ExtraShrine), GetRectCenter(gg_rct_Player8_Shrine), 5.00 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player8_Extra_Shrine takes nothing returns nothing | |
set gg_trg_Player8_Extra_Shrine = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Player8_Extra_Shrine, function Trig_Player8_Extra_Shrine_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player9 Extra Shrine | |
//=========================================================================== | |
function Trig_Player9_Extra_Shrine_Actions takes nothing returns nothing | |
// Init Shrine | |
call CreateNUnitsAtLoc( 1, 'nC01', udg_Team3ExtraShrine, GetRectCenter(gg_rct_Player9_Shrine), 0.00 ) | |
set udg_Shrines[8] = GetLastCreatedUnit() | |
call PingMinimapLocForForce( GetForceOfPlayer(udg_Team3ExtraShrine), GetRectCenter(gg_rct_Player9_Shrine), 5.00 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player9_Extra_Shrine takes nothing returns nothing | |
set gg_trg_Player9_Extra_Shrine = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Player9_Extra_Shrine, function Trig_Player9_Extra_Shrine_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Finalize Player1 | |
//=========================================================================== | |
function Trig_Finalize_Player1_Conditions takes nothing returns boolean | |
if ( not ( GetPlayerSlotState(Player(0)) == PLAYER_SLOT_STATE_PLAYING ) ) then | |
return false | |
endif | |
if ( not ( udg_ProfileSet[1] == false ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Finalize_Player1_Actions takes nothing returns nothing | |
// Start Dialogs | |
call ConditionalTriggerExecute( gg_trg_Player1_Timer_Dialog ) | |
// Init Builder | |
call CreateNUnitsAtLoc( 1, 'uC09', Player(0), GetRectCenter(gg_rct_Team1__Entrance_Workers), bj_UNIT_FACING ) | |
// Init Player View | |
call PanCameraToTimedLocForPlayer( Player(0), GetRectCenter(gg_rct_Team1__Entrance_Workers), 1.50 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Finalize_Player1 takes nothing returns nothing | |
set gg_trg_Finalize_Player1 = CreateTrigger( ) | |
call TriggerAddCondition( gg_trg_Finalize_Player1, Condition( function Trig_Finalize_Player1_Conditions ) ) | |
call TriggerAddAction( gg_trg_Finalize_Player1, function Trig_Finalize_Player1_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Finalize Player2 | |
//=========================================================================== | |
function Trig_Finalize_Player2_Conditions takes nothing returns boolean | |
if ( not ( GetPlayerSlotState(Player(1)) == PLAYER_SLOT_STATE_PLAYING ) ) then | |
return false | |
endif | |
if ( not ( udg_ProfileSet[2] == false ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Finalize_Player2_Actions takes nothing returns nothing | |
// Init Builder | |
call CreateNUnitsAtLoc( 1, 'uC09', Player(1), GetRectCenter(gg_rct_Team1__Entrance_Workers), bj_UNIT_FACING ) | |
// Init Player View | |
call PanCameraToTimedLocForPlayer( Player(1), GetRectCenter(gg_rct_Team1__Entrance_Workers), 1.50 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Finalize_Player2 takes nothing returns nothing | |
set gg_trg_Finalize_Player2 = CreateTrigger( ) | |
call TriggerAddCondition( gg_trg_Finalize_Player2, Condition( function Trig_Finalize_Player2_Conditions ) ) | |
call TriggerAddAction( gg_trg_Finalize_Player2, function Trig_Finalize_Player2_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Finalize Player3 | |
//=========================================================================== | |
function Trig_Finalize_Player3_Conditions takes nothing returns boolean | |
if ( not ( GetPlayerSlotState(Player(2)) == PLAYER_SLOT_STATE_PLAYING ) ) then | |
return false | |
endif | |
if ( not ( udg_ProfileSet[3] == false ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Finalize_Player3_Actions takes nothing returns nothing | |
// Init Builder | |
call CreateNUnitsAtLoc( 1, 'uC09', Player(2), GetRectCenter(gg_rct_Team1__Entrance_Workers), bj_UNIT_FACING ) | |
// Init Player View | |
call PanCameraToTimedLocForPlayer( Player(2), GetRectCenter(gg_rct_Team1__Entrance_Workers), 1.50 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Finalize_Player3 takes nothing returns nothing | |
set gg_trg_Finalize_Player3 = CreateTrigger( ) | |
call TriggerAddCondition( gg_trg_Finalize_Player3, Condition( function Trig_Finalize_Player3_Conditions ) ) | |
call TriggerAddAction( gg_trg_Finalize_Player3, function Trig_Finalize_Player3_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Finalize Player4 | |
//=========================================================================== | |
function Trig_Finalize_Player4_Conditions takes nothing returns boolean | |
if ( not ( GetPlayerSlotState(Player(3)) == PLAYER_SLOT_STATE_PLAYING ) ) then | |
return false | |
endif | |
if ( not ( udg_ProfileSet[4] == false ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Finalize_Player4_Actions takes nothing returns nothing | |
// Init Builder | |
call CreateNUnitsAtLoc( 1, 'uC09', Player(3), GetRectCenter(gg_rct_Team2__Entrance_Workers), bj_UNIT_FACING ) | |
// Init Player View | |
call PanCameraToTimedLocForPlayer( Player(3), GetRectCenter(gg_rct_Team2__Entrance_Workers), 1.50 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Finalize_Player4 takes nothing returns nothing | |
set gg_trg_Finalize_Player4 = CreateTrigger( ) | |
call TriggerAddCondition( gg_trg_Finalize_Player4, Condition( function Trig_Finalize_Player4_Conditions ) ) | |
call TriggerAddAction( gg_trg_Finalize_Player4, function Trig_Finalize_Player4_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Finalize Player5 | |
//=========================================================================== | |
function Trig_Finalize_Player5_Conditions takes nothing returns boolean | |
if ( not ( GetPlayerSlotState(Player(4)) == PLAYER_SLOT_STATE_PLAYING ) ) then | |
return false | |
endif | |
if ( not ( udg_ProfileSet[5] == false ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Finalize_Player5_Actions takes nothing returns nothing | |
// Init Builder | |
call CreateNUnitsAtLoc( 1, 'uC09', Player(4), GetRectCenter(gg_rct_Team2__Entrance_Workers), bj_UNIT_FACING ) | |
// Init Player View | |
call PanCameraToTimedLocForPlayer( Player(4), GetRectCenter(gg_rct_Team2__Entrance_Workers), 1.50 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Finalize_Player5 takes nothing returns nothing | |
set gg_trg_Finalize_Player5 = CreateTrigger( ) | |
call TriggerAddCondition( gg_trg_Finalize_Player5, Condition( function Trig_Finalize_Player5_Conditions ) ) | |
call TriggerAddAction( gg_trg_Finalize_Player5, function Trig_Finalize_Player5_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Finalize Player6 | |
//=========================================================================== | |
function Trig_Finalize_Player6_Conditions takes nothing returns boolean | |
if ( not ( GetPlayerSlotState(Player(5)) == PLAYER_SLOT_STATE_PLAYING ) ) then | |
return false | |
endif | |
if ( not ( udg_ProfileSet[6] == false ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Finalize_Player6_Actions takes nothing returns nothing | |
// Init Builder | |
call CreateNUnitsAtLoc( 1, 'uC09', Player(5), GetRectCenter(gg_rct_Team2__Entrance_Workers), bj_UNIT_FACING ) | |
// Init Player View | |
call PanCameraToTimedLocForPlayer( Player(5), GetRectCenter(gg_rct_Team2__Entrance_Workers), 1.50 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Finalize_Player6 takes nothing returns nothing | |
set gg_trg_Finalize_Player6 = CreateTrigger( ) | |
call TriggerAddCondition( gg_trg_Finalize_Player6, Condition( function Trig_Finalize_Player6_Conditions ) ) | |
call TriggerAddAction( gg_trg_Finalize_Player6, function Trig_Finalize_Player6_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Finalize Player7 | |
//=========================================================================== | |
function Trig_Finalize_Player7_Conditions takes nothing returns boolean | |
if ( not ( GetPlayerSlotState(Player(6)) == PLAYER_SLOT_STATE_PLAYING ) ) then | |
return false | |
endif | |
if ( not ( udg_ProfileSet[7] == false ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Finalize_Player7_Actions takes nothing returns nothing | |
// Init Builder | |
call CreateNUnitsAtLoc( 1, 'uC09', Player(6), GetRectCenter(gg_rct_Team3__Entrance_Workers), bj_UNIT_FACING ) | |
// Init Player View | |
call PanCameraToTimedLocForPlayer( Player(6), GetRectCenter(gg_rct_Team3__Entrance_Workers), 1.50 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Finalize_Player7 takes nothing returns nothing | |
set gg_trg_Finalize_Player7 = CreateTrigger( ) | |
call TriggerAddCondition( gg_trg_Finalize_Player7, Condition( function Trig_Finalize_Player7_Conditions ) ) | |
call TriggerAddAction( gg_trg_Finalize_Player7, function Trig_Finalize_Player7_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Finalize Player8 | |
//=========================================================================== | |
function Trig_Finalize_Player8_Conditions takes nothing returns boolean | |
if ( not ( GetPlayerSlotState(Player(7)) == PLAYER_SLOT_STATE_PLAYING ) ) then | |
return false | |
endif | |
if ( not ( udg_ProfileSet[8] == false ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Finalize_Player8_Actions takes nothing returns nothing | |
// Init Builder | |
call CreateNUnitsAtLoc( 1, 'uC09', Player(7), GetRectCenter(gg_rct_Team3__Entrance_Workers), bj_UNIT_FACING ) | |
// Init Player View | |
call PanCameraToTimedLocForPlayer( Player(7), GetRectCenter(gg_rct_Team3__Entrance_Workers), 1.50 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Finalize_Player8 takes nothing returns nothing | |
set gg_trg_Finalize_Player8 = CreateTrigger( ) | |
call TriggerAddCondition( gg_trg_Finalize_Player8, Condition( function Trig_Finalize_Player8_Conditions ) ) | |
call TriggerAddAction( gg_trg_Finalize_Player8, function Trig_Finalize_Player8_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Finalize Player9 | |
//=========================================================================== | |
function Trig_Finalize_Player9_Conditions takes nothing returns boolean | |
if ( not ( GetPlayerSlotState(Player(8)) == PLAYER_SLOT_STATE_PLAYING ) ) then | |
return false | |
endif | |
if ( not ( udg_ProfileSet[9] == false ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Finalize_Player9_Actions takes nothing returns nothing | |
// Init Builder | |
call CreateNUnitsAtLoc( 1, 'uC09', Player(8), GetRectCenter(gg_rct_Team3__Entrance_Workers), bj_UNIT_FACING ) | |
// Init Player View | |
call PanCameraToTimedLocForPlayer( Player(8), GetRectCenter(gg_rct_Team3__Entrance_Workers), 1.50 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Finalize_Player9 takes nothing returns nothing | |
set gg_trg_Finalize_Player9 = CreateTrigger( ) | |
call TriggerAddCondition( gg_trg_Finalize_Player9, Condition( function Trig_Finalize_Player9_Conditions ) ) | |
call TriggerAddAction( gg_trg_Finalize_Player9, function Trig_Finalize_Player9_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Init Shrines | |
//=========================================================================== | |
function Trig_Init_Shrines_Actions takes nothing returns nothing | |
call ConditionalTriggerExecute( gg_trg_Player1_Shrine ) | |
call ConditionalTriggerExecute( gg_trg_Player2_Shrine ) | |
call ConditionalTriggerExecute( gg_trg_Player3_Shrine ) | |
call ConditionalTriggerExecute( gg_trg_Player4_Shrine ) | |
call ConditionalTriggerExecute( gg_trg_Player5_Shrine ) | |
call ConditionalTriggerExecute( gg_trg_Player6_Shrine ) | |
call ConditionalTriggerExecute( gg_trg_Player7_Shrine ) | |
call ConditionalTriggerExecute( gg_trg_Player8_Shrine ) | |
call ConditionalTriggerExecute( gg_trg_Player9_Shrine ) | |
set udg_RepickAllowed[0] = true | |
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, "TRIGSTR_048" ) | |
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_ALWAYSHINT, "TRIGSTR_056" ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Init_Shrines takes nothing returns nothing | |
set gg_trg_Init_Shrines = CreateTrigger( ) | |
call TriggerRegisterTimerEventSingle( gg_trg_Init_Shrines, 60.00 ) | |
call TriggerAddAction( gg_trg_Init_Shrines, function Trig_Init_Shrines_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Contact Info | |
//=========================================================================== | |
function Trig_Contact_Info_Actions takes nothing returns nothing | |
call DisplayTimedTextToForce( GetPlayersAll(), 30.00, "TRIGSTR_069" ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Contact_Info takes nothing returns nothing | |
set gg_trg_Contact_Info = CreateTrigger( ) | |
call TriggerRegisterTimerEventSingle( gg_trg_Contact_Info, 300.00 ) | |
call TriggerRegisterTimerEventSingle( gg_trg_Contact_Info, 1200.00 ) | |
call TriggerAddAction( gg_trg_Contact_Info, function Trig_Contact_Info_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Init Music | |
//=========================================================================== | |
function Trig_Init_Music_Actions takes nothing returns nothing | |
call StopMusicBJ( true ) | |
call TriggerExecute( udg_Music[GetRandomInt(0, 11)] ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Init_Music takes nothing returns nothing | |
set gg_trg_Init_Music = CreateTrigger( ) | |
call TriggerRegisterTimerEventPeriodic( gg_trg_Init_Music, 260.00 ) | |
call TriggerAddAction( gg_trg_Init_Music, function Trig_Init_Music_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Quest | |
//=========================================================================== | |
function Trig_Quest_Actions takes nothing returns nothing | |
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_362", "TRIGSTR_363", "ReplaceableTextures\\CommandButtons\\BTN3M1.blp" ) | |
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_940", "TRIGSTR_941", "ReplaceableTextures\\CommandButtons\\BTN3M2.blp" ) | |
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_932", "TRIGSTR_933", "ReplaceableTextures\\CommandButtons\\BTN3M3.blp" ) | |
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_938", "TRIGSTR_939", "ReplaceableTextures\\CommandButtons\\BTN3M1.blp" ) | |
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_934", "TRIGSTR_935", "ReplaceableTextures\\CommandButtons\\BTN3M2.blp" ) | |
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_119", "TRIGSTR_120", "ReplaceableTextures\\CommandButtons\\BTN3M3.blp" ) | |
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_111", "TRIGSTR_113", "ReplaceableTextures\\CommandButtons\\BTN3M3.blp" ) | |
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_942", "TRIGSTR_943", "ReplaceableTextures\\CommandButtons\\BTN3M3.blp" ) | |
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_051", "TRIGSTR_052", "ReplaceableTextures\\CommandButtons\\BTN3M3.blp" ) | |
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_106", "TRIGSTR_108", "ReplaceableTextures\\CommandButtons\\BTN3M3.blp" ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Quest takes nothing returns nothing | |
set gg_trg_Quest = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Quest, function Trig_Quest_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Init | |
//=========================================================================== | |
function Trig_Init_Func067001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(0)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Init_Func067003002 takes nothing returns nothing | |
call RemoveUnit( GetEnumUnit() ) | |
endfunction | |
function Trig_Init_Func068001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(1)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Init_Func068003002 takes nothing returns nothing | |
call RemoveUnit( GetEnumUnit() ) | |
endfunction | |
function Trig_Init_Func069001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(2)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Init_Func069003002 takes nothing returns nothing | |
call RemoveUnit( GetEnumUnit() ) | |
endfunction | |
function Trig_Init_Func070001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(3)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Init_Func070003002 takes nothing returns nothing | |
call RemoveUnit( GetEnumUnit() ) | |
endfunction | |
function Trig_Init_Func071001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(4)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Init_Func071003002 takes nothing returns nothing | |
call RemoveUnit( GetEnumUnit() ) | |
endfunction | |
function Trig_Init_Func072001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(5)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Init_Func072003002 takes nothing returns nothing | |
call RemoveUnit( GetEnumUnit() ) | |
endfunction | |
function Trig_Init_Func073001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(6)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Init_Func073003002 takes nothing returns nothing | |
call RemoveUnit( GetEnumUnit() ) | |
endfunction | |
function Trig_Init_Func074001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(7)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Init_Func074003002 takes nothing returns nothing | |
call RemoveUnit( GetEnumUnit() ) | |
endfunction | |
function Trig_Init_Func075001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(8)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Init_Func075003002 takes nothing returns nothing | |
call RemoveUnit( GetEnumUnit() ) | |
endfunction | |
function Trig_Init_Actions takes nothing returns nothing | |
// Init Timers | |
call TriggerExecute( gg_trg_Start_GameStart_Timer ) | |
call TriggerExecute( gg_trg_Start_ChangeIncome_Timer ) | |
// Init TipsOn | |
set bj_forLoopAIndex = 1 | |
set bj_forLoopAIndexEnd = 9 | |
loop | |
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd | |
set udg_TipsOn[GetForLoopIndexA()] = false | |
set bj_forLoopAIndex = bj_forLoopAIndex + 1 | |
endloop | |
// Init Strings | |
set udg_ProfileDialogButton2Text = ( "|cff32cd32Defender Profile Selected|r: You will receive 50% of the normal income increase when summoning at the shrine. However, you will also receive 40% of the normal income increase for all creatures you kill." + " |cffffcc00You may change your profile within the first five minutes of the game, by typing \"-repick\".|r" ) | |
set udg_ProfileDialogButton1Text = ( "|c00ff0000Summoner Profile Selected|r: You will receive the full income increase from all summons, but no increase in income from killing creatures. This is the normal setting." + " |cffffcc00You may change your profile within the first five minutes of the game, by typing \"-repick\".|r" ) | |
set udg_ProfileDialogText = ( "|cffdddd32-------------Select a Profile-------------|r|n|n|c00ff0000Summoners|r|c00ffffff:|n - Receives normal income|n from summoning creatures.|n - Receive no income increase|n for killing creatures.|r|n|cff32cd32Defenders|" + ( "r|c00ffffff:|n - Recieves 50% normal income|n when summoning creatures.|n - Recieves an income increase|n of 40% the normal income|n from the creatures they kill.|r" + "|n|nThe number that appears before|nthe |cff32cd32Defender|r label shows how|nmany more people can choose it." ) ) | |
set udg_TimerDialogRedMessage = ( "|c00ffffff______________________________________________________________________ |r|cffffcc00You may change the income interval by typing the command \"-changeincome\". You may only change the interval during the first 5 minutes of the game.|r" + "|c00ffffff ______________________________________________________________________ |r" ) | |
set bj_forLoopAIndex = 1 | |
set bj_forLoopAIndexEnd = 9 | |
loop | |
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd | |
set udg_PlayerProfiles[GetForLoopIndexA()] = udg_ProfileSummonerText | |
set bj_forLoopAIndex = bj_forLoopAIndex + 1 | |
endloop | |
// Init Player Numbers | |
set udg_PlayerNumbers[1] = "|c00ff0000#1 |r - " | |
set udg_PlayerNumbers[2] = "|c000040ff#2|r - " | |
set udg_PlayerNumbers[3] = "|c001fe7bf#3|r - " | |
set udg_PlayerNumbers[4] = "|c00500080#4|r - " | |
set udg_PlayerNumbers[5] = "|cffdddd32#5|r - " | |
set udg_PlayerNumbers[6] = "|c00ff880f#6|r - " | |
set udg_PlayerNumbers[7] = "|cff32cd32#7|r - " | |
set udg_PlayerNumbers[8] = "|cffcd32cd#8|r - " | |
set udg_PlayerNumbers[9] = "|c00b5b5b5#9|r - " | |
// Init Income Settings | |
set udg_IncomeSettingsText[1] = "Income increased to |cff32cd32125|r. Gold increased by |cff32cd32225|r." | |
set udg_IncomeSettingsText[2] = "Income increased to |cff32cd3265|r. Gold increased by |cff32cd3265|r." | |
set udg_IncomeSettingsIncome[1] = 125.00 | |
set udg_IncomeSettingsIncome[2] = 65.00 | |
set udg_IncomeSettingsGold[1] = 225 | |
set udg_IncomeSettingsGold[2] = 65 | |
// Init Repick Profile | |
set bj_forLoopAIndex = 1 | |
set bj_forLoopAIndexEnd = 9 | |
loop | |
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd | |
set udg_RepickAllowed[GetForLoopIndexA()] = true | |
set bj_forLoopAIndex = bj_forLoopAIndex + 1 | |
endloop | |
set udg_RepickAllowed[0] = false | |
set bj_forLoopAIndex = 1 | |
set bj_forLoopAIndexEnd = 9 | |
loop | |
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd | |
set udg_ProfileSet[GetForLoopIndexA()] = false | |
set bj_forLoopAIndex = bj_forLoopAIndex + 1 | |
endloop | |
// Init Defender Count | |
set bj_forLoopAIndex = 1 | |
set bj_forLoopAIndexEnd = 3 | |
loop | |
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd | |
set udg_Defenders[GetForLoopIndexA()] = 0 | |
set bj_forLoopAIndex = bj_forLoopAIndex + 1 | |
endloop | |
// Init Triggers | |
set udg_TimerDialogTriggers[1] = gg_trg_IncomeTime10 | |
set udg_TimerDialogTriggers[2] = gg_trg_IncomeTime15 | |
set udg_TimerDialogTriggers[3] = gg_trg_IncomeTime20 | |
set udg_TimerDialogTriggers[4] = gg_trg_IncomeTime25 | |
set udg_TimerDialogTriggers[5] = gg_trg_IncomeTime30 | |
set udg_TipTriggers[1] = gg_trg_Player1_Show_Tip | |
set udg_TipTriggers[2] = gg_trg_Player2_Show_Tip | |
set udg_TipTriggers[3] = gg_trg_Player3_Show_Tip | |
set udg_TipTriggers[4] = gg_trg_Player4_Show_Tip | |
set udg_TipTriggers[5] = gg_trg_Player5_Show_Tip | |
set udg_TipTriggers[6] = gg_trg_Player6_Show_Tip | |
set udg_TipTriggers[7] = gg_trg_Player7_Show_Tip | |
set udg_TipTriggers[8] = gg_trg_Player8_Show_Tip | |
set udg_TipTriggers[9] = gg_trg_Player9_Show_Tip | |
set udg_ExtraShrineTriggers[1] = gg_trg_Player1_Extra_Shrine | |
set udg_ExtraShrineTriggers[2] = gg_trg_Player2_Extra_Shrine | |
set udg_ExtraShrineTriggers[3] = gg_trg_Player3_Extra_Shrine | |
set udg_ExtraShrineTriggers[4] = gg_trg_Player4_Extra_Shrine | |
set udg_ExtraShrineTriggers[5] = gg_trg_Player5_Extra_Shrine | |
set udg_ExtraShrineTriggers[6] = gg_trg_Player6_Extra_Shrine | |
set udg_ExtraShrineTriggers[7] = gg_trg_Player7_Extra_Shrine | |
set udg_ExtraShrineTriggers[8] = gg_trg_Player8_Extra_Shrine | |
set udg_ExtraShrineTriggers[9] = gg_trg_Player9_Extra_Shrine | |
// Init Teams | |
set udg_Teams[1] = 0 | |
set udg_Teams[2] = 0 | |
set udg_Teams[3] = 0 | |
// Init Lives | |
set udg_Team1Lives = 0 | |
set udg_Team2Lives = 0 | |
set udg_Team3Lives = 0 | |
if ( Trig_Init_Func067001() ) then | |
call TriggerExecute( gg_trg_Player1 ) | |
else | |
call ForGroupBJ( GetUnitsOfPlayerAll(Player(0)), function Trig_Init_Func067003002 ) | |
endif | |
if ( Trig_Init_Func068001() ) then | |
call TriggerExecute( gg_trg_Player2 ) | |
else | |
call ForGroupBJ( GetUnitsOfPlayerAll(Player(1)), function Trig_Init_Func068003002 ) | |
endif | |
if ( Trig_Init_Func069001() ) then | |
call TriggerExecute( gg_trg_Player3 ) | |
else | |
call ForGroupBJ( GetUnitsOfPlayerAll(Player(2)), function Trig_Init_Func069003002 ) | |
endif | |
if ( Trig_Init_Func070001() ) then | |
call TriggerExecute( gg_trg_Player4 ) | |
else | |
call ForGroupBJ( GetUnitsOfPlayerAll(Player(3)), function Trig_Init_Func070003002 ) | |
endif | |
if ( Trig_Init_Func071001() ) then | |
call TriggerExecute( gg_trg_Player5 ) | |
else | |
call ForGroupBJ( GetUnitsOfPlayerAll(Player(4)), function Trig_Init_Func071003002 ) | |
endif | |
if ( Trig_Init_Func072001() ) then | |
call TriggerExecute( gg_trg_Player6 ) | |
else | |
call ForGroupBJ( GetUnitsOfPlayerAll(Player(5)), function Trig_Init_Func072003002 ) | |
endif | |
if ( Trig_Init_Func073001() ) then | |
call TriggerExecute( gg_trg_Player7 ) | |
else | |
call ForGroupBJ( GetUnitsOfPlayerAll(Player(6)), function Trig_Init_Func073003002 ) | |
endif | |
if ( Trig_Init_Func074001() ) then | |
call TriggerExecute( gg_trg_Player8 ) | |
else | |
call ForGroupBJ( GetUnitsOfPlayerAll(Player(7)), function Trig_Init_Func074003002 ) | |
endif | |
if ( Trig_Init_Func075001() ) then | |
call TriggerExecute( gg_trg_Player9 ) | |
else | |
call ForGroupBJ( GetUnitsOfPlayerAll(Player(8)), function Trig_Init_Func075003002 ) | |
endif | |
endfunction | |
//=========================================================================== | |
function InitTrig_Init takes nothing returns nothing | |
set gg_trg_Init = CreateTrigger( ) | |
call TriggerRegisterTimerEventSingle( gg_trg_Init, 2.50 ) | |
call TriggerAddAction( gg_trg_Init, function Trig_Init_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 | |
//=========================================================================== | |
function Trig_Team1_Actions takes nothing returns nothing | |
// Init Team | |
set udg_Teams[1] = 1 | |
// Init Lives | |
set udg_Team1Lives = 50 | |
// Init Sorting Region Array | |
set udg_Team1Spots[0] = gg_rct_Team1__Path1_Start | |
set udg_Team1Spots[1] = gg_rct_Team1__Path2_Start | |
set udg_Team1Spots[2] = gg_rct_Team1__Path3_Start | |
set udg_Team1SortTriggers[0] = gg_trg_Team1_Sort_Spot_1 | |
set udg_Team1SortTriggers[1] = gg_trg_Team1_Sort_Spot_2 | |
set udg_Team1SortTriggers[2] = gg_trg_Team1_Sort_Spot_3 | |
// Init Leaderboard | |
call LeaderboardAddItemBJ( Player(4), GetLastCreatedLeaderboard(), "TRIGSTR_870", udg_Team1Lives ) | |
call LeaderboardSetPlayerItemLabelColorBJ( Player(4), GetLastCreatedLeaderboard(), 100.00, 0.00, 0.00, 0 ) | |
call LeaderboardSetPlayerItemValueColorBJ( Player(4), GetLastCreatedLeaderboard(), 100.00, 0.00, 0.00, 0 ) | |
// Init Shrines | |
call EnableTrigger( gg_trg_Team1_Extra_Shrines ) | |
// Init Bounty | |
call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, false, Player(9) ) | |
// Init Alliances | |
call SetPlayerAllianceStateBJ( Player(9), Player(0), bj_ALLIANCE_UNALLIED ) | |
call SetPlayerAllianceStateBJ( Player(9), Player(1), bj_ALLIANCE_UNALLIED ) | |
call SetPlayerAllianceStateBJ( Player(9), Player(2), bj_ALLIANCE_UNALLIED ) | |
call SetPlayerAllianceStateBJ( Player(9), Player(3), bj_ALLIANCE_NEUTRAL ) | |
call SetPlayerAllianceStateBJ( Player(9), Player(4), bj_ALLIANCE_NEUTRAL ) | |
call SetPlayerAllianceStateBJ( Player(9), Player(5), bj_ALLIANCE_NEUTRAL ) | |
call SetPlayerAllianceStateBJ( Player(9), Player(6), bj_ALLIANCE_NEUTRAL ) | |
call SetPlayerAllianceStateBJ( Player(9), Player(7), bj_ALLIANCE_NEUTRAL ) | |
call SetPlayerAllianceStateBJ( Player(9), Player(8), bj_ALLIANCE_NEUTRAL ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1 takes nothing returns nothing | |
set gg_trg_Team1 = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Team1, function Trig_Team1_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 | |
//=========================================================================== | |
function Trig_Team2_Actions takes nothing returns nothing | |
// Init Team | |
set udg_Teams[2] = 1 | |
// Init Lives | |
set udg_Team2Lives = 50 | |
// Init Sorting Region Array | |
set udg_Team2Spots[0] = gg_rct_Team2__Path3_Start | |
set udg_Team2Spots[1] = gg_rct_Team2__Path2_Start | |
set udg_Team2Spots[2] = gg_rct_Team2__Path1_Start | |
set udg_Team2SortTriggers[0] = gg_trg_Team2_Sort_Spot_1 | |
set udg_Team2SortTriggers[1] = gg_trg_Team2_Sort_Spot_2 | |
set udg_Team2SortTriggers[2] = gg_trg_Team2_Sort_Spot_3 | |
// Init Leaderboard | |
call LeaderboardAddItemBJ( Player(5), GetLastCreatedLeaderboard(), "TRIGSTR_875", udg_Team2Lives ) | |
call LeaderboardSetPlayerItemLabelColorBJ( Player(5), GetLastCreatedLeaderboard(), 0.00, 100.00, 0.00, 0 ) | |
call LeaderboardSetPlayerItemValueColorBJ( Player(5), GetLastCreatedLeaderboard(), 0.00, 100.00, 0.00, 0 ) | |
// Init Shrines | |
call EnableTrigger( gg_trg_Team2_Extra_Shrines ) | |
// Init Bounty | |
call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, false, Player(10) ) | |
// Init Alliances | |
call SetPlayerAllianceStateBJ( Player(10), Player(3), bj_ALLIANCE_UNALLIED ) | |
call SetPlayerAllianceStateBJ( Player(10), Player(4), bj_ALLIANCE_UNALLIED ) | |
call SetPlayerAllianceStateBJ( Player(10), Player(5), bj_ALLIANCE_UNALLIED ) | |
call SetPlayerAllianceStateBJ( Player(10), Player(0), bj_ALLIANCE_NEUTRAL ) | |
call SetPlayerAllianceStateBJ( Player(10), Player(1), bj_ALLIANCE_NEUTRAL ) | |
call SetPlayerAllianceStateBJ( Player(10), Player(2), bj_ALLIANCE_NEUTRAL ) | |
call SetPlayerAllianceStateBJ( Player(10), Player(6), bj_ALLIANCE_NEUTRAL ) | |
call SetPlayerAllianceStateBJ( Player(10), Player(7), bj_ALLIANCE_NEUTRAL ) | |
call SetPlayerAllianceStateBJ( Player(10), Player(8), bj_ALLIANCE_NEUTRAL ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2 takes nothing returns nothing | |
set gg_trg_Team2 = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Team2, function Trig_Team2_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 | |
//=========================================================================== | |
function Trig_Team3_Actions takes nothing returns nothing | |
// Init Team | |
set udg_Teams[3] = 1 | |
// Init Lives | |
set udg_Team3Lives = 50 | |
// Init Sorting Region Array | |
set udg_Team3Spots[0] = gg_rct_Team3__Path1_Start | |
set udg_Team3Spots[1] = gg_rct_Team3__Path2_Start | |
set udg_Team3Spots[2] = gg_rct_Team3__Path3_Start | |
set udg_Team3SortTriggers[0] = gg_trg_Team3_Sort_Spot_1 | |
set udg_Team3SortTriggers[1] = gg_trg_Team3_Sort_Spot_2 | |
set udg_Team3SortTriggers[2] = gg_trg_Team3_Sort_Spot_3 | |
// Init Leaderboard | |
call LeaderboardAddItemBJ( Player(6), GetLastCreatedLeaderboard(), "TRIGSTR_879", udg_Team3Lives ) | |
call LeaderboardSetPlayerItemLabelColorBJ( Player(6), GetLastCreatedLeaderboard(), 0.00, 0.00, 100.00, 0 ) | |
call LeaderboardSetPlayerItemValueColorBJ( Player(6), GetLastCreatedLeaderboard(), 0.00, 0.00, 100.00, 0 ) | |
// Init Shrines | |
call EnableTrigger( gg_trg_Team3_Extra_Shrines ) | |
// Init Bounty | |
call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, false, Player(11) ) | |
// Init Alliances | |
call SetPlayerAllianceStateBJ( Player(11), Player(6), bj_ALLIANCE_UNALLIED ) | |
call SetPlayerAllianceStateBJ( Player(11), Player(7), bj_ALLIANCE_UNALLIED ) | |
call SetPlayerAllianceStateBJ( Player(11), Player(8), bj_ALLIANCE_UNALLIED ) | |
call SetPlayerAllianceStateBJ( Player(11), Player(0), bj_ALLIANCE_NEUTRAL ) | |
call SetPlayerAllianceStateBJ( Player(11), Player(1), bj_ALLIANCE_NEUTRAL ) | |
call SetPlayerAllianceStateBJ( Player(11), Player(2), bj_ALLIANCE_NEUTRAL ) | |
call SetPlayerAllianceStateBJ( Player(11), Player(3), bj_ALLIANCE_NEUTRAL ) | |
call SetPlayerAllianceStateBJ( Player(11), Player(4), bj_ALLIANCE_NEUTRAL ) | |
call SetPlayerAllianceStateBJ( Player(11), Player(5), bj_ALLIANCE_NEUTRAL ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3 takes nothing returns nothing | |
set gg_trg_Team3 = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Team3, function Trig_Team3_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player1 | |
//=========================================================================== | |
function Trig_Player1_Func020001 takes nothing returns boolean | |
return ( udg_Teams[1] == 0 ) | |
endfunction | |
function Trig_Player1_Actions takes nothing returns nothing | |
// Init Player Arrays | |
call ForceAddPlayerSimple( Player(0), udg_Team1Group ) | |
call ForceAddPlayerSimple( Player(0), udg_Team1Summoners ) | |
set udg_Players[1] = Player(0) | |
set udg_PlayerGroups[1] = bj_FORCE_PLAYER[0] | |
// Init Income | |
set udg_Income[1] = udg_StartingIncome | |
call AdjustPlayerStateBJ( udg_StartingGold, Player(0), PLAYER_STATE_RESOURCE_GOLD ) | |
set udg_Profiles[1] = 0 | |
// Init Defenses | |
call CreateNUnitsAtLoc( 1, 'hC00', Player(0), GetRectCenter(gg_rct_Player1_Defenses), bj_UNIT_FACING ) | |
set udg_Defenses[1] = GetLastCreatedUnit() | |
// Init Alliances | |
call SetPlayerAllianceStateBJ( Player(0), Player(9), bj_ALLIANCE_UNALLIED ) | |
call SetPlayerAllianceStateBJ( Player(0), Player(10), bj_ALLIANCE_NEUTRAL ) | |
call SetPlayerAllianceStateBJ( Player(0), Player(11), bj_ALLIANCE_NEUTRAL ) | |
// Init TipsOn | |
set udg_TipsOn[1] = true | |
// Init Team | |
if ( Trig_Player1_Func020001() ) then | |
call TriggerExecute( gg_trg_Team1 ) | |
else | |
call DoNothing( ) | |
endif | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player1 takes nothing returns nothing | |
set gg_trg_Player1 = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Player1, function Trig_Player1_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player2 | |
//=========================================================================== | |
function Trig_Player2_Func020001 takes nothing returns boolean | |
return ( udg_Teams[1] == 0 ) | |
endfunction | |
function Trig_Player2_Actions takes nothing returns nothing | |
// Init Player Arrays | |
call ForceAddPlayerSimple( Player(1), udg_Team1Group ) | |
call ForceAddPlayerSimple( Player(1), udg_Team1Summoners ) | |
set udg_Players[2] = Player(1) | |
set udg_PlayerGroups[2] = bj_FORCE_PLAYER[1] | |
// Init Income | |
set udg_Income[2] = udg_StartingIncome | |
call AdjustPlayerStateBJ( udg_StartingGold, Player(1), PLAYER_STATE_RESOURCE_GOLD ) | |
set udg_Profiles[2] = 0 | |
// Init Defenses | |
call CreateNUnitsAtLoc( 1, 'hC00', Player(1), GetRectCenter(gg_rct_Player2_Defenses), bj_UNIT_FACING ) | |
set udg_Defenses[2] = GetLastCreatedUnit() | |
// Init Alliances | |
call SetPlayerAllianceStateBJ( Player(1), Player(9), bj_ALLIANCE_UNALLIED ) | |
call SetPlayerAllianceStateBJ( Player(1), Player(10), bj_ALLIANCE_NEUTRAL ) | |
call SetPlayerAllianceStateBJ( Player(1), Player(11), bj_ALLIANCE_NEUTRAL ) | |
// Init TipsOn | |
set udg_TipsOn[2] = true | |
// Init Team | |
if ( Trig_Player2_Func020001() ) then | |
call TriggerExecute( gg_trg_Team1 ) | |
else | |
call DoNothing( ) | |
endif | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player2 takes nothing returns nothing | |
set gg_trg_Player2 = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Player2, function Trig_Player2_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player3 | |
//=========================================================================== | |
function Trig_Player3_Func020001 takes nothing returns boolean | |
return ( udg_Teams[1] == 0 ) | |
endfunction | |
function Trig_Player3_Actions takes nothing returns nothing | |
// Init Player Arrays | |
call ForceAddPlayerSimple( Player(2), udg_Team1Group ) | |
call ForceAddPlayerSimple( Player(2), udg_Team1Summoners ) | |
set udg_Players[3] = Player(2) | |
set udg_PlayerGroups[3] = bj_FORCE_PLAYER[2] | |
// Init Income | |
set udg_Income[3] = udg_StartingIncome | |
call AdjustPlayerStateBJ( udg_StartingGold, Player(2), PLAYER_STATE_RESOURCE_GOLD ) | |
set udg_Profiles[3] = 0 | |
// Init Defenses | |
call CreateNUnitsAtLoc( 1, 'hC00', Player(2), GetRectCenter(gg_rct_Player3_Defenses), bj_UNIT_FACING ) | |
set udg_Defenses[3] = GetLastCreatedUnit() | |
// Init Alliances | |
call SetPlayerAllianceStateBJ( Player(2), Player(9), bj_ALLIANCE_UNALLIED ) | |
call SetPlayerAllianceStateBJ( Player(2), Player(10), bj_ALLIANCE_NEUTRAL ) | |
call SetPlayerAllianceStateBJ( Player(2), Player(11), bj_ALLIANCE_NEUTRAL ) | |
// Init TipsOn | |
set udg_TipsOn[3] = true | |
// Init Team | |
if ( Trig_Player3_Func020001() ) then | |
call TriggerExecute( gg_trg_Team1 ) | |
else | |
call DoNothing( ) | |
endif | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player3 takes nothing returns nothing | |
set gg_trg_Player3 = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Player3, function Trig_Player3_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player4 | |
//=========================================================================== | |
function Trig_Player4_Func020001 takes nothing returns boolean | |
return ( udg_Teams[2] == 0 ) | |
endfunction | |
function Trig_Player4_Actions takes nothing returns nothing | |
// Init Player Arrays | |
call ForceAddPlayerSimple( Player(3), udg_Team2Group ) | |
call ForceAddPlayerSimple( Player(3), udg_Team2Summoners ) | |
set udg_Players[4] = Player(3) | |
set udg_PlayerGroups[4] = bj_FORCE_PLAYER[3] | |
// Init Income | |
set udg_Income[4] = udg_StartingIncome | |
call AdjustPlayerStateBJ( udg_StartingGold, Player(3), PLAYER_STATE_RESOURCE_GOLD ) | |
set udg_Profiles[4] = 0 | |
// Init Defenses | |
call CreateNUnitsAtLoc( 1, 'hC00', Player(3), GetRectCenter(gg_rct_Player4_Defenses), bj_UNIT_FACING ) | |
set udg_Defenses[4] = GetLastCreatedUnit() | |
// Init Alliances | |
call SetPlayerAllianceStateBJ( Player(3), Player(9), bj_ALLIANCE_NEUTRAL ) | |
call SetPlayerAllianceStateBJ( Player(3), Player(10), bj_ALLIANCE_UNALLIED ) | |
call SetPlayerAllianceStateBJ( Player(3), Player(11), bj_ALLIANCE_NEUTRAL ) | |
// Init TipsOn | |
set udg_TipsOn[4] = true | |
// Init Team | |
if ( Trig_Player4_Func020001() ) then | |
call TriggerExecute( gg_trg_Team2 ) | |
else | |
call DoNothing( ) | |
endif | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player4 takes nothing returns nothing | |
set gg_trg_Player4 = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Player4, function Trig_Player4_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player5 | |
//=========================================================================== | |
function Trig_Player5_Func020001 takes nothing returns boolean | |
return ( udg_Teams[2] == 0 ) | |
endfunction | |
function Trig_Player5_Actions takes nothing returns nothing | |
// Init Player Arrays | |
call ForceAddPlayerSimple( Player(4), udg_Team2Group ) | |
call ForceAddPlayerSimple( Player(4), udg_Team2Summoners ) | |
set udg_Players[5] = Player(4) | |
set udg_PlayerGroups[5] = bj_FORCE_PLAYER[4] | |
// Init Income | |
set udg_Income[5] = udg_StartingIncome | |
call AdjustPlayerStateBJ( udg_StartingGold, Player(4), PLAYER_STATE_RESOURCE_GOLD ) | |
set udg_Profiles[5] = 0 | |
// Init Defenses | |
call CreateNUnitsAtLoc( 1, 'hC00', Player(4), GetRectCenter(gg_rct_Player5_Defenses), bj_UNIT_FACING ) | |
set udg_Defenses[5] = GetLastCreatedUnit() | |
// Init Alliances | |
call SetPlayerAllianceStateBJ( Player(4), Player(9), bj_ALLIANCE_NEUTRAL ) | |
call SetPlayerAllianceStateBJ( Player(4), Player(10), bj_ALLIANCE_UNALLIED ) | |
call SetPlayerAllianceStateBJ( Player(4), Player(11), bj_ALLIANCE_NEUTRAL ) | |
// Init TipsOn | |
set udg_TipsOn[5] = true | |
// Init Team | |
if ( Trig_Player5_Func020001() ) then | |
call TriggerExecute( gg_trg_Team2 ) | |
else | |
call DoNothing( ) | |
endif | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player5 takes nothing returns nothing | |
set gg_trg_Player5 = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Player5, function Trig_Player5_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player6 | |
//=========================================================================== | |
function Trig_Player6_Func020001 takes nothing returns boolean | |
return ( udg_Teams[2] == 0 ) | |
endfunction | |
function Trig_Player6_Actions takes nothing returns nothing | |
// Init Player Arrays | |
call ForceAddPlayerSimple( Player(5), udg_Team2Group ) | |
call ForceAddPlayerSimple( Player(5), udg_Team2Summoners ) | |
set udg_Players[6] = Player(5) | |
set udg_PlayerGroups[6] = bj_FORCE_PLAYER[5] | |
// Init Income | |
set udg_Income[6] = udg_StartingIncome | |
call AdjustPlayerStateBJ( udg_StartingGold, Player(5), PLAYER_STATE_RESOURCE_GOLD ) | |
set udg_Profiles[6] = 0 | |
// Init Defenses | |
call CreateNUnitsAtLoc( 1, 'hC00', Player(5), GetRectCenter(gg_rct_Player6_Defenses), bj_UNIT_FACING ) | |
set udg_Defenses[6] = GetLastCreatedUnit() | |
// Init Alliances | |
call SetPlayerAllianceStateBJ( Player(5), Player(9), bj_ALLIANCE_NEUTRAL ) | |
call SetPlayerAllianceStateBJ( Player(5), Player(10), bj_ALLIANCE_UNALLIED ) | |
call SetPlayerAllianceStateBJ( Player(5), Player(11), bj_ALLIANCE_NEUTRAL ) | |
// Init TipsOn | |
set udg_TipsOn[6] = true | |
// Init Team | |
if ( Trig_Player6_Func020001() ) then | |
call TriggerExecute( gg_trg_Team2 ) | |
else | |
call DoNothing( ) | |
endif | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player6 takes nothing returns nothing | |
set gg_trg_Player6 = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Player6, function Trig_Player6_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player7 | |
//=========================================================================== | |
function Trig_Player7_Func020001 takes nothing returns boolean | |
return ( udg_Teams[3] == 0 ) | |
endfunction | |
function Trig_Player7_Actions takes nothing returns nothing | |
// Init Player Arrays | |
call ForceAddPlayerSimple( Player(6), udg_Team3Group ) | |
call ForceAddPlayerSimple( Player(6), udg_Team3Summoners ) | |
set udg_Players[7] = Player(6) | |
set udg_PlayerGroups[7] = bj_FORCE_PLAYER[6] | |
// Init Income | |
set udg_Income[7] = udg_StartingIncome | |
call AdjustPlayerStateBJ( udg_StartingGold, Player(6), PLAYER_STATE_RESOURCE_GOLD ) | |
set udg_Profiles[7] = 0 | |
// Init Defenses | |
call CreateNUnitsAtLoc( 1, 'hC00', Player(6), GetRectCenter(gg_rct_Player7_Defenses), bj_UNIT_FACING ) | |
set udg_Defenses[7] = GetLastCreatedUnit() | |
// Init Alliances | |
call SetPlayerAllianceStateBJ( Player(6), Player(9), bj_ALLIANCE_NEUTRAL ) | |
call SetPlayerAllianceStateBJ( Player(6), Player(10), bj_ALLIANCE_NEUTRAL ) | |
call SetPlayerAllianceStateBJ( Player(6), Player(11), bj_ALLIANCE_UNALLIED ) | |
// Init TipsOn | |
set udg_TipsOn[7] = true | |
// Init Team | |
if ( Trig_Player7_Func020001() ) then | |
call TriggerExecute( gg_trg_Team3 ) | |
else | |
call DoNothing( ) | |
endif | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player7 takes nothing returns nothing | |
set gg_trg_Player7 = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Player7, function Trig_Player7_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player8 | |
//=========================================================================== | |
function Trig_Player8_Func020001 takes nothing returns boolean | |
return ( udg_Teams[3] == 0 ) | |
endfunction | |
function Trig_Player8_Actions takes nothing returns nothing | |
// Init Player Arrays | |
call ForceAddPlayerSimple( Player(7), udg_Team3Group ) | |
call ForceAddPlayerSimple( Player(7), udg_Team3Summoners ) | |
set udg_Players[8] = Player(7) | |
set udg_PlayerGroups[8] = bj_FORCE_PLAYER[7] | |
// Init Income | |
set udg_Income[8] = udg_StartingIncome | |
call AdjustPlayerStateBJ( udg_StartingGold, Player(7), PLAYER_STATE_RESOURCE_GOLD ) | |
set udg_Profiles[8] = 0 | |
// Init Defenses | |
call CreateNUnitsAtLoc( 1, 'hC00', Player(7), GetRectCenter(gg_rct_Player8_Defenses), bj_UNIT_FACING ) | |
set udg_Defenses[8] = GetLastCreatedUnit() | |
// Init Alliances | |
call SetPlayerAllianceStateBJ( Player(7), Player(9), bj_ALLIANCE_NEUTRAL ) | |
call SetPlayerAllianceStateBJ( Player(7), Player(10), bj_ALLIANCE_NEUTRAL ) | |
call SetPlayerAllianceStateBJ( Player(7), Player(11), bj_ALLIANCE_UNALLIED ) | |
// Init TipsOn | |
set udg_TipsOn[8] = true | |
// Init Team | |
if ( Trig_Player8_Func020001() ) then | |
call TriggerExecute( gg_trg_Team3 ) | |
else | |
call DoNothing( ) | |
endif | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player8 takes nothing returns nothing | |
set gg_trg_Player8 = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Player8, function Trig_Player8_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Player9 | |
//=========================================================================== | |
function Trig_Player9_Func020001 takes nothing returns boolean | |
return ( udg_Teams[3] == 0 ) | |
endfunction | |
function Trig_Player9_Actions takes nothing returns nothing | |
// Init Player Arrays | |
call ForceAddPlayerSimple( Player(8), udg_Team3Group ) | |
call ForceAddPlayerSimple( Player(8), udg_Team3Summoners ) | |
set udg_Players[9] = Player(8) | |
set udg_PlayerGroups[9] = bj_FORCE_PLAYER[8] | |
// Init Income | |
set udg_Income[9] = udg_StartingIncome | |
call AdjustPlayerStateBJ( udg_StartingGold, Player(8), PLAYER_STATE_RESOURCE_GOLD ) | |
set udg_Profiles[9] = 0 | |
// Init Defenses | |
call CreateNUnitsAtLoc( 1, 'hC00', Player(8), GetRectCenter(gg_rct_Player9_Defenses), bj_UNIT_FACING ) | |
set udg_Defenses[9] = GetLastCreatedUnit() | |
// Init Alliances | |
call SetPlayerAllianceStateBJ( Player(8), Player(9), bj_ALLIANCE_NEUTRAL ) | |
call SetPlayerAllianceStateBJ( Player(8), Player(10), bj_ALLIANCE_NEUTRAL ) | |
call SetPlayerAllianceStateBJ( Player(8), Player(11), bj_ALLIANCE_UNALLIED ) | |
// Init TipsOn | |
set udg_TipsOn[9] = true | |
// Init Team | |
if ( Trig_Player9_Func020001() ) then | |
call TriggerExecute( gg_trg_Team3 ) | |
else | |
call DoNothing( ) | |
endif | |
endfunction | |
//=========================================================================== | |
function InitTrig_Player9 takes nothing returns nothing | |
set gg_trg_Player9 = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Player9, function Trig_Player9_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Scoreboard | |
//=========================================================================== | |
function Trig_Scoreboard_Actions takes nothing returns nothing | |
call CreateLeaderboardBJ( GetPlayersAll(), "TRIGSTR_241" ) | |
call LeaderboardAddItemBJ( Player(0), GetLastCreatedLeaderboard(), "TRIGSTR_861", 0 ) | |
call LeaderboardSetPlayerItemLabelColorBJ( Player(0), GetLastCreatedLeaderboard(), 100.00, 100.00, 100.00, 0.00 ) | |
call LeaderboardAddItemBJ( Player(1), GetLastCreatedLeaderboard(), udg_IncomeLeader, 0 ) | |
call LeaderboardSetPlayerItemLabelColorBJ( Player(1), GetLastCreatedLeaderboard(), 0.00, 100.00, 100.00, 0.00 ) | |
call LeaderboardAddItemBJ( Player(2), GetLastCreatedLeaderboard(), "TRIGSTR_877", 0 ) | |
call LeaderboardSetPlayerItemLabelColorBJ( Player(2), GetLastCreatedLeaderboard(), 100, 100, 100, 100.00 ) | |
call LeaderboardSetPlayerItemValueColorBJ( Player(2), GetLastCreatedLeaderboard(), 100, 100, 100, 100.00 ) | |
call LeaderboardAddItemBJ( Player(3), GetLastCreatedLeaderboard(), "TRIGSTR_910", 0 ) | |
call LeaderboardSetPlayerItemLabelColorBJ( Player(3), GetLastCreatedLeaderboard(), 100, 100, 100, 100.00 ) | |
call LeaderboardSetPlayerItemValueColorBJ( Player(3), GetLastCreatedLeaderboard(), 100, 100, 100, 100.00 ) | |
call LeaderboardSetPlayerItemValueColorBJ( Player(0), GetLastCreatedLeaderboard(), 100, 100, 100, 100.00 ) | |
call LeaderboardSetPlayerItemValueColorBJ( Player(1), GetLastCreatedLeaderboard(), 100, 100, 100, 100.00 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Scoreboard takes nothing returns nothing | |
set gg_trg_Scoreboard = CreateTrigger( ) | |
call TriggerRegisterTimerEventSingle( gg_trg_Scoreboard, 2.00 ) | |
call TriggerAddAction( gg_trg_Scoreboard, function Trig_Scoreboard_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Research | |
//=========================================================================== | |
function Trig_Research_Func002002 takes nothing returns nothing | |
call SetPlayerTechResearchedSwap( 'Remg', 1, GetEnumPlayer() ) | |
endfunction | |
function Trig_Research_Func003002 takes nothing returns nothing | |
call SetPlayerTechResearchedSwap( 'Ruwb', 1, GetEnumPlayer() ) | |
endfunction | |
function Trig_Research_Actions takes nothing returns nothing | |
call ForForce( GetPlayersAll(), function Trig_Research_Func002002 ) | |
call ForForce( GetPlayersAll(), function Trig_Research_Func003002 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Research takes nothing returns nothing | |
set gg_trg_Research = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Research, function Trig_Research_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Vision | |
//=========================================================================== | |
function Trig_Vision_Actions takes nothing returns nothing | |
call UseTimeOfDayBJ( false ) | |
call SetTimeOfDay( 12 ) | |
call FogEnableOff( ) | |
call FogMaskEnableOff( ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Vision takes nothing returns nothing | |
set gg_trg_Vision = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Vision, function Trig_Vision_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Defeat | |
//=========================================================================== | |
function Trig_Team1_Defeat_Conditions takes nothing returns boolean | |
if ( not ( udg_Team1Lives <= 0 ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Defeat_Func002001001 takes nothing returns boolean | |
return ( udg_Team2Lives > 0 ) | |
endfunction | |
function Trig_Team1_Defeat_Func002001002 takes nothing returns boolean | |
return ( udg_Team3Lives > 0 ) | |
endfunction | |
function Trig_Team1_Defeat_Func002001 takes nothing returns boolean | |
return GetBooleanAnd( Trig_Team1_Defeat_Func002001001(), Trig_Team1_Defeat_Func002001002() ) | |
endfunction | |
function Trig_Team1_Defeat_Func004002 takes nothing returns nothing | |
call SetPlayerStateBJ( GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD, 0 ) | |
endfunction | |
function Trig_Team1_Defeat_Func005002 takes nothing returns nothing | |
call SetPlayerStateBJ( GetEnumPlayer(), PLAYER_STATE_RESOURCE_LUMBER, 0 ) | |
endfunction | |
function Trig_Team1_Defeat_Func009002 takes nothing returns nothing | |
call RemoveUnit( GetEnumUnit() ) | |
endfunction | |
function Trig_Team1_Defeat_Func010002 takes nothing returns nothing | |
call RemoveUnit( GetEnumUnit() ) | |
endfunction | |
function Trig_Team1_Defeat_Func011002 takes nothing returns nothing | |
call RemoveUnit( GetEnumUnit() ) | |
endfunction | |
function Trig_Team1_Defeat_Func012002 takes nothing returns nothing | |
call RemoveUnit( GetEnumUnit() ) | |
endfunction | |
function Trig_Team1_Defeat_Func013001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(0)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team1_Defeat_Func014001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(1)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team1_Defeat_Func015001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(2)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team1_Defeat_Actions takes nothing returns nothing | |
if ( Trig_Team1_Defeat_Func002001() ) then | |
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, "TRIGSTR_256" ) | |
else | |
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, "TRIGSTR_257" ) | |
endif | |
set bj_forLoopAIndex = 1 | |
set bj_forLoopAIndexEnd = 3 | |
loop | |
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd | |
set udg_Income[GetForLoopIndexA()] = 0.00 | |
set bj_forLoopAIndex = bj_forLoopAIndex + 1 | |
endloop | |
call ForForce( udg_Team1Group, function Trig_Team1_Defeat_Func004002 ) | |
call ForForce( udg_Team1Group, function Trig_Team1_Defeat_Func005002 ) | |
call ConditionalTriggerExecute( gg_trg_Team2_Victory ) | |
call ConditionalTriggerExecute( gg_trg_Team3_Victory ) | |
call TriggerSleepAction( 3.00 ) | |
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(9)), function Trig_Team1_Defeat_Func009002 ) | |
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(0)), function Trig_Team1_Defeat_Func010002 ) | |
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(1)), function Trig_Team1_Defeat_Func011002 ) | |
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(2)), function Trig_Team1_Defeat_Func012002 ) | |
if ( Trig_Team1_Defeat_Func013001() ) then | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[0], 30, udg_DefeatMessage ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team1_Defeat_Func014001() ) then | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[1], 30, udg_DefeatMessage ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team1_Defeat_Func015001() ) then | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[2], 30, udg_DefeatMessage ) | |
else | |
call DoNothing( ) | |
endif | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Defeat takes nothing returns nothing | |
set gg_trg_Team1_Defeat = CreateTrigger( ) | |
call TriggerAddCondition( gg_trg_Team1_Defeat, Condition( function Trig_Team1_Defeat_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Defeat, function Trig_Team1_Defeat_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Defeat | |
//=========================================================================== | |
function Trig_Team2_Defeat_Conditions takes nothing returns boolean | |
if ( not ( udg_Team2Lives <= 0 ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Defeat_Func001001001 takes nothing returns boolean | |
return ( udg_Team1Lives > 0 ) | |
endfunction | |
function Trig_Team2_Defeat_Func001001002 takes nothing returns boolean | |
return ( udg_Team3Lives > 0 ) | |
endfunction | |
function Trig_Team2_Defeat_Func001001 takes nothing returns boolean | |
return GetBooleanAnd( Trig_Team2_Defeat_Func001001001(), Trig_Team2_Defeat_Func001001002() ) | |
endfunction | |
function Trig_Team2_Defeat_Func003002 takes nothing returns nothing | |
call SetPlayerStateBJ( GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD, 0 ) | |
endfunction | |
function Trig_Team2_Defeat_Func004002 takes nothing returns nothing | |
call SetPlayerStateBJ( GetEnumPlayer(), PLAYER_STATE_RESOURCE_LUMBER, 0 ) | |
endfunction | |
function Trig_Team2_Defeat_Func009002 takes nothing returns nothing | |
call RemoveUnit( GetEnumUnit() ) | |
endfunction | |
function Trig_Team2_Defeat_Func010002 takes nothing returns nothing | |
call RemoveUnit( GetEnumUnit() ) | |
endfunction | |
function Trig_Team2_Defeat_Func011002 takes nothing returns nothing | |
call RemoveUnit( GetEnumUnit() ) | |
endfunction | |
function Trig_Team2_Defeat_Func012002 takes nothing returns nothing | |
call RemoveUnit( GetEnumUnit() ) | |
endfunction | |
function Trig_Team2_Defeat_Func013001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(3)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team2_Defeat_Func014001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(4)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team2_Defeat_Func015001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(5)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team2_Defeat_Actions takes nothing returns nothing | |
if ( Trig_Team2_Defeat_Func001001() ) then | |
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, "TRIGSTR_267" ) | |
else | |
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, "TRIGSTR_268" ) | |
endif | |
set bj_forLoopAIndex = 4 | |
set bj_forLoopAIndexEnd = 6 | |
loop | |
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd | |
set udg_Income[GetForLoopIndexA()] = 0.00 | |
set bj_forLoopAIndex = bj_forLoopAIndex + 1 | |
endloop | |
call ForForce( udg_Team2Group, function Trig_Team2_Defeat_Func003002 ) | |
call ForForce( udg_Team2Group, function Trig_Team2_Defeat_Func004002 ) | |
call ConditionalTriggerExecute( gg_trg_Team1_Victory ) | |
call ConditionalTriggerExecute( gg_trg_Team3_Victory ) | |
call TriggerSleepAction( 3.00 ) | |
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(10)), function Trig_Team2_Defeat_Func009002 ) | |
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(3)), function Trig_Team2_Defeat_Func010002 ) | |
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(4)), function Trig_Team2_Defeat_Func011002 ) | |
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(5)), function Trig_Team2_Defeat_Func012002 ) | |
if ( Trig_Team2_Defeat_Func013001() ) then | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[3], 30, udg_DefeatMessage ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team2_Defeat_Func014001() ) then | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[4], 30, udg_DefeatMessage ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team2_Defeat_Func015001() ) then | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[5], 30, udg_DefeatMessage ) | |
else | |
call DoNothing( ) | |
endif | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Defeat takes nothing returns nothing | |
set gg_trg_Team2_Defeat = CreateTrigger( ) | |
call TriggerAddCondition( gg_trg_Team2_Defeat, Condition( function Trig_Team2_Defeat_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Defeat, function Trig_Team2_Defeat_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Defeat | |
//=========================================================================== | |
function Trig_Team3_Defeat_Conditions takes nothing returns boolean | |
if ( not ( udg_Team3Lives <= 0 ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Defeat_Func001001001 takes nothing returns boolean | |
return ( udg_Team1Lives > 0 ) | |
endfunction | |
function Trig_Team3_Defeat_Func001001002 takes nothing returns boolean | |
return ( udg_Team2Lives > 0 ) | |
endfunction | |
function Trig_Team3_Defeat_Func001001 takes nothing returns boolean | |
return GetBooleanAnd( Trig_Team3_Defeat_Func001001001(), Trig_Team3_Defeat_Func001001002() ) | |
endfunction | |
function Trig_Team3_Defeat_Func003002 takes nothing returns nothing | |
call SetPlayerStateBJ( GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD, 0 ) | |
endfunction | |
function Trig_Team3_Defeat_Func004002 takes nothing returns nothing | |
call SetPlayerStateBJ( GetEnumPlayer(), PLAYER_STATE_RESOURCE_LUMBER, 0 ) | |
endfunction | |
function Trig_Team3_Defeat_Func009002 takes nothing returns nothing | |
call RemoveUnit( GetEnumUnit() ) | |
endfunction | |
function Trig_Team3_Defeat_Func010002 takes nothing returns nothing | |
call RemoveUnit( GetEnumUnit() ) | |
endfunction | |
function Trig_Team3_Defeat_Func011002 takes nothing returns nothing | |
call RemoveUnit( GetEnumUnit() ) | |
endfunction | |
function Trig_Team3_Defeat_Func012002 takes nothing returns nothing | |
call RemoveUnit( GetEnumUnit() ) | |
endfunction | |
function Trig_Team3_Defeat_Func013001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(6)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team3_Defeat_Func014001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(7)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team3_Defeat_Func015001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(8)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team3_Defeat_Actions takes nothing returns nothing | |
if ( Trig_Team3_Defeat_Func001001() ) then | |
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, "TRIGSTR_280" ) | |
else | |
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, "TRIGSTR_281" ) | |
endif | |
set bj_forLoopAIndex = 7 | |
set bj_forLoopAIndexEnd = 9 | |
loop | |
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd | |
set udg_Income[GetForLoopIndexA()] = 0.00 | |
set bj_forLoopAIndex = bj_forLoopAIndex + 1 | |
endloop | |
call ForForce( udg_Team3Group, function Trig_Team3_Defeat_Func003002 ) | |
call ForForce( udg_Team3Group, function Trig_Team3_Defeat_Func004002 ) | |
call ConditionalTriggerExecute( gg_trg_Team1_Victory ) | |
call ConditionalTriggerExecute( gg_trg_Team2_Victory ) | |
call TriggerSleepAction( 3.00 ) | |
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(11)), function Trig_Team3_Defeat_Func009002 ) | |
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(6)), function Trig_Team3_Defeat_Func010002 ) | |
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(7)), function Trig_Team3_Defeat_Func011002 ) | |
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(8)), function Trig_Team3_Defeat_Func012002 ) | |
if ( Trig_Team3_Defeat_Func013001() ) then | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[6], 30, udg_DefeatMessage ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team3_Defeat_Func014001() ) then | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[7], 30, udg_DefeatMessage ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team3_Defeat_Func015001() ) then | |
call DisplayTimedTextToForce( bj_FORCE_PLAYER[8], 30, udg_DefeatMessage ) | |
else | |
call DoNothing( ) | |
endif | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Defeat takes nothing returns nothing | |
set gg_trg_Team3_Defeat = CreateTrigger( ) | |
call TriggerAddCondition( gg_trg_Team3_Defeat, Condition( function Trig_Team3_Defeat_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Defeat, function Trig_Team3_Defeat_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Victory | |
//=========================================================================== | |
function Trig_Team1_Victory_Conditions takes nothing returns boolean | |
if ( not ( udg_Team2Lives <= 0 ) ) then | |
return false | |
endif | |
if ( not ( udg_Team3Lives <= 0 ) ) then | |
return false | |
endif | |
if ( not ( udg_Team1Lives > 0 ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Victory_Func001002 takes nothing returns nothing | |
call RemoveUnit( GetEnumUnit() ) | |
endfunction | |
function Trig_Team1_Victory_Func008001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(0)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team1_Victory_Func009001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(1)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team1_Victory_Func010001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(2)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team1_Victory_Func011001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(3)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team1_Victory_Func012001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(4)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team1_Victory_Func013001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(5)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team1_Victory_Func014001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(6)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team1_Victory_Func015001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(7)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team1_Victory_Func016001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(8)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team1_Victory_Actions takes nothing returns nothing | |
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(9)), function Trig_Team1_Victory_Func001002 ) | |
call DisableTrigger( gg_trg_Give_Income ) | |
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, "TRIGSTR_250" ) | |
call TriggerSleepAction( 15.00 ) | |
if ( Trig_Team1_Victory_Func008001() ) then | |
call CustomVictoryBJ( Player(0), true, true ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team1_Victory_Func009001() ) then | |
call CustomVictoryBJ( Player(1), true, true ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team1_Victory_Func010001() ) then | |
call CustomVictoryBJ( Player(2), true, true ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team1_Victory_Func011001() ) then | |
call CustomDefeatBJ( Player(3), "TRIGSTR_708" ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team1_Victory_Func012001() ) then | |
call CustomDefeatBJ( Player(4), "TRIGSTR_710" ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team1_Victory_Func013001() ) then | |
call CustomDefeatBJ( Player(5), "TRIGSTR_712" ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team1_Victory_Func014001() ) then | |
call CustomDefeatBJ( Player(6), "TRIGSTR_717" ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team1_Victory_Func015001() ) then | |
call CustomDefeatBJ( Player(7), "TRIGSTR_719" ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team1_Victory_Func016001() ) then | |
call CustomDefeatBJ( Player(8), "TRIGSTR_721" ) | |
else | |
call DoNothing( ) | |
endif | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Victory takes nothing returns nothing | |
set gg_trg_Team1_Victory = CreateTrigger( ) | |
call TriggerAddCondition( gg_trg_Team1_Victory, Condition( function Trig_Team1_Victory_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Victory, function Trig_Team1_Victory_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Victory | |
//=========================================================================== | |
function Trig_Team2_Victory_Conditions takes nothing returns boolean | |
if ( not ( udg_Team1Lives <= 0 ) ) then | |
return false | |
endif | |
if ( not ( udg_Team3Lives <= 0 ) ) then | |
return false | |
endif | |
if ( not ( udg_Team2Lives > 0 ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Victory_Func001002 takes nothing returns nothing | |
call RemoveUnit( GetEnumUnit() ) | |
endfunction | |
function Trig_Team2_Victory_Func008001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(3)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team2_Victory_Func009001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(4)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team2_Victory_Func010001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(5)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team2_Victory_Func011001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(0)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team2_Victory_Func012001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(1)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team2_Victory_Func013001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(2)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team2_Victory_Func014001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(6)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team2_Victory_Func015001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(7)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team2_Victory_Func016001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(8)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team2_Victory_Actions takes nothing returns nothing | |
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(10)), function Trig_Team2_Victory_Func001002 ) | |
call DisableTrigger( gg_trg_Give_Income ) | |
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, "TRIGSTR_266" ) | |
call TriggerSleepAction( 15.00 ) | |
if ( Trig_Team2_Victory_Func008001() ) then | |
call CustomVictoryBJ( Player(3), true, true ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team2_Victory_Func009001() ) then | |
call CustomVictoryBJ( Player(4), true, true ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team2_Victory_Func010001() ) then | |
call CustomVictoryBJ( Player(5), true, true ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team2_Victory_Func011001() ) then | |
call CustomDefeatBJ( Player(0), "TRIGSTR_740" ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team2_Victory_Func012001() ) then | |
call CustomDefeatBJ( Player(1), "TRIGSTR_742" ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team2_Victory_Func013001() ) then | |
call CustomDefeatBJ( Player(2), "TRIGSTR_744" ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team2_Victory_Func014001() ) then | |
call CustomDefeatBJ( Player(6), "TRIGSTR_731" ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team2_Victory_Func015001() ) then | |
call CustomDefeatBJ( Player(7), "TRIGSTR_733" ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team2_Victory_Func016001() ) then | |
call CustomDefeatBJ( Player(8), "TRIGSTR_735" ) | |
else | |
call DoNothing( ) | |
endif | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Victory takes nothing returns nothing | |
set gg_trg_Team2_Victory = CreateTrigger( ) | |
call TriggerAddCondition( gg_trg_Team2_Victory, Condition( function Trig_Team2_Victory_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Victory, function Trig_Team2_Victory_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Victory | |
//=========================================================================== | |
function Trig_Team3_Victory_Conditions takes nothing returns boolean | |
if ( not ( udg_Team1Lives <= 0 ) ) then | |
return false | |
endif | |
if ( not ( udg_Team2Lives <= 0 ) ) then | |
return false | |
endif | |
if ( not ( udg_Team3Lives > 0 ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Victory_Func001002 takes nothing returns nothing | |
call RemoveUnit( GetEnumUnit() ) | |
endfunction | |
function Trig_Team3_Victory_Func008001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(6)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team3_Victory_Func009001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(7)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team3_Victory_Func010001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(8)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team3_Victory_Func011001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(0)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team3_Victory_Func012001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(1)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team3_Victory_Func013001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(2)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team3_Victory_Func014001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(3)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team3_Victory_Func015001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(4)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team3_Victory_Func016001 takes nothing returns boolean | |
return ( GetPlayerSlotState(Player(5)) == PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team3_Victory_Actions takes nothing returns nothing | |
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(11)), function Trig_Team3_Victory_Func001002 ) | |
call DisableTrigger( gg_trg_Give_Income ) | |
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, "TRIGSTR_278" ) | |
call TriggerSleepAction( 15.00 ) | |
if ( Trig_Team3_Victory_Func008001() ) then | |
call CustomVictoryBJ( Player(6), true, true ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team3_Victory_Func009001() ) then | |
call CustomVictoryBJ( Player(7), true, true ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team3_Victory_Func010001() ) then | |
call CustomVictoryBJ( Player(8), true, true ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team3_Victory_Func011001() ) then | |
call CustomDefeatBJ( Player(0), "TRIGSTR_749" ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team3_Victory_Func012001() ) then | |
call CustomDefeatBJ( Player(1), "TRIGSTR_751" ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team3_Victory_Func013001() ) then | |
call CustomDefeatBJ( Player(2), "TRIGSTR_753" ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team3_Victory_Func014001() ) then | |
call CustomDefeatBJ( Player(3), "TRIGSTR_758" ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team3_Victory_Func015001() ) then | |
call CustomDefeatBJ( Player(4), "TRIGSTR_760" ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team3_Victory_Func016001() ) then | |
call CustomDefeatBJ( Player(5), "TRIGSTR_762" ) | |
else | |
call DoNothing( ) | |
endif | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Victory takes nothing returns nothing | |
set gg_trg_Team3_Victory = CreateTrigger( ) | |
call TriggerAddCondition( gg_trg_Team3_Victory, Condition( function Trig_Team3_Victory_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Victory, function Trig_Team3_Victory_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Loses a life | |
//=========================================================================== | |
function Trig_Team1_Loses_a_life_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Loses_a_life_Func004001 takes nothing returns boolean | |
return ( udg_Team1Lives <= 0 ) | |
endfunction | |
function Trig_Team1_Loses_a_life_Actions takes nothing returns nothing | |
call ExplodeUnitBJ( GetTriggerUnit() ) | |
set udg_Team1Lives = ( udg_Team1Lives - 1 ) | |
call LeaderboardSetPlayerItemValueBJ( Player(4), GetLastCreatedLeaderboard(), udg_Team1Lives ) | |
if ( Trig_Team1_Loses_a_life_Func004001() ) then | |
call DisableTrigger( GetTriggeringTrigger() ) | |
else | |
call DoNothing( ) | |
endif | |
call ConditionalTriggerExecute( gg_trg_Team1_Defeat ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Loses_a_life takes nothing returns nothing | |
set gg_trg_Team1_Loses_a_life = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Loses_a_life, gg_rct_Center_Death ) | |
call TriggerAddCondition( gg_trg_Team1_Loses_a_life, Condition( function Trig_Team1_Loses_a_life_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Loses_a_life, function Trig_Team1_Loses_a_life_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Loses a life | |
//=========================================================================== | |
function Trig_Team2_Loses_a_life_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Loses_a_life_Func004001 takes nothing returns boolean | |
return ( udg_Team2Lives <= 0 ) | |
endfunction | |
function Trig_Team2_Loses_a_life_Actions takes nothing returns nothing | |
call ExplodeUnitBJ( GetTriggerUnit() ) | |
set udg_Team2Lives = ( udg_Team2Lives - 1 ) | |
call LeaderboardSetPlayerItemValueBJ( Player(5), GetLastCreatedLeaderboard(), udg_Team2Lives ) | |
if ( Trig_Team2_Loses_a_life_Func004001() ) then | |
call DisableTrigger( GetTriggeringTrigger() ) | |
else | |
call DoNothing( ) | |
endif | |
call ConditionalTriggerExecute( gg_trg_Team2_Defeat ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Loses_a_life takes nothing returns nothing | |
set gg_trg_Team2_Loses_a_life = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Loses_a_life, gg_rct_Center_Death ) | |
call TriggerAddCondition( gg_trg_Team2_Loses_a_life, Condition( function Trig_Team2_Loses_a_life_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Loses_a_life, function Trig_Team2_Loses_a_life_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Loses a life | |
//=========================================================================== | |
function Trig_Team3_Loses_a_life_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Loses_a_life_Func004001 takes nothing returns boolean | |
return ( udg_Team3Lives <= 0 ) | |
endfunction | |
function Trig_Team3_Loses_a_life_Actions takes nothing returns nothing | |
call ExplodeUnitBJ( GetTriggerUnit() ) | |
set udg_Team3Lives = ( udg_Team3Lives - 1 ) | |
call LeaderboardSetPlayerItemValueBJ( Player(6), GetLastCreatedLeaderboard(), udg_Team3Lives ) | |
if ( Trig_Team3_Loses_a_life_Func004001() ) then | |
call DisableTrigger( GetTriggeringTrigger() ) | |
else | |
call DoNothing( ) | |
endif | |
call ConditionalTriggerExecute( gg_trg_Team3_Defeat ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Loses_a_life takes nothing returns nothing | |
set gg_trg_Team3_Loses_a_life = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Loses_a_life, gg_rct_Center_Death ) | |
call TriggerAddCondition( gg_trg_Team3_Loses_a_life, Condition( function Trig_Team3_Loses_a_life_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Loses_a_life, function Trig_Team3_Loses_a_life_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Move Attackers | |
//=========================================================================== | |
function Trig_Team1_Move_Attackers_Actions takes nothing returns nothing | |
call SetUnitPositionLoc( GetTriggerUnit(), GetRandomLocInRect(gg_rct_Team1__Attacker_Spawn) ) | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team1__Path2_10) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Move_Attackers takes nothing returns nothing | |
set gg_trg_Team1_Move_Attackers = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Team1_Move_Attackers, function Trig_Team1_Move_Attackers_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Init Creep Array | |
//=========================================================================== | |
function Trig_Team1_Init_Creep_Array_Func002001 takes nothing returns boolean | |
return ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_UNDEAD) == true ) | |
endfunction | |
function Trig_Team1_Init_Creep_Array_Func003001 takes nothing returns boolean | |
return ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_UNDEAD) == true ) | |
endfunction | |
function Trig_Team1_Init_Creep_Array_Actions takes nothing returns nothing | |
call SetUnitPathing( GetTriggerUnit(), false ) | |
if ( Trig_Team1_Init_Creep_Array_Func002001() ) then | |
call TriggerExecute( gg_trg_Team1_Move_Attackers ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team1_Init_Creep_Array_Func003001() ) then | |
return | |
else | |
call DoNothing( ) | |
endif | |
set udg_Team1Creeps = ( udg_Team1Creeps + 1 ) | |
set udg_Team1CreepsArray[udg_Team1Creeps] = GetTriggerUnit() | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Init_Creep_Array takes nothing returns nothing | |
set gg_trg_Team1_Init_Creep_Array = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Init_Creep_Array, gg_rct_Team1__Entrance ) | |
call TriggerAddAction( gg_trg_Team1_Init_Creep_Array, function Trig_Team1_Init_Creep_Array_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Sorter | |
//=========================================================================== | |
function Trig_Team1_Sorter_Conditions takes nothing returns boolean | |
if ( not ( udg_Team1Creeps > 0 ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Sorter_Actions takes nothing returns nothing | |
call ConditionalTriggerExecute( udg_Team1SortTriggers[udg_Team1Sorter] ) | |
call ConditionalTriggerExecute( udg_Team1SortTriggers[udg_Team1Sorter] ) | |
call ConditionalTriggerExecute( udg_Team1SortTriggers[udg_Team1Sorter] ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Sorter takes nothing returns nothing | |
set gg_trg_Team1_Sorter = CreateTrigger( ) | |
call TriggerRegisterTimerEventPeriodic( gg_trg_Team1_Sorter, 0.40 ) | |
call TriggerAddCondition( gg_trg_Team1_Sorter, Condition( function Trig_Team1_Sorter_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Sorter, function Trig_Team1_Sorter_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Sort Spot 1 | |
//=========================================================================== | |
function Trig_Team1_Sort_Spot_1_Conditions takes nothing returns boolean | |
if ( not ( udg_Team1Creeps > 0 ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Sort_Spot_1_Func004001 takes nothing returns boolean | |
return ( udg_Team1Sorter >= 2 ) | |
endfunction | |
function Trig_Team1_Sort_Spot_1_Actions takes nothing returns nothing | |
call SetUnitPositionLoc( udg_Team1CreepsArray[udg_Team1Creeps], GetRectCenter(udg_Team1Spots[0]) ) | |
set udg_Team1Creeps = ( udg_Team1Creeps - 1 ) | |
if ( Trig_Team1_Sort_Spot_1_Func004001() ) then | |
set udg_Team1Sorter = 0 | |
else | |
set udg_Team1Sorter = ( udg_Team1Sorter + 1 ) | |
endif | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Sort_Spot_1 takes nothing returns nothing | |
set gg_trg_Team1_Sort_Spot_1 = CreateTrigger( ) | |
call TriggerAddCondition( gg_trg_Team1_Sort_Spot_1, Condition( function Trig_Team1_Sort_Spot_1_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Sort_Spot_1, function Trig_Team1_Sort_Spot_1_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Sort Spot 2 | |
//=========================================================================== | |
function Trig_Team1_Sort_Spot_2_Conditions takes nothing returns boolean | |
if ( not ( udg_Team1Creeps > 0 ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Sort_Spot_2_Func004001 takes nothing returns boolean | |
return ( udg_Team1Sorter >= 2 ) | |
endfunction | |
function Trig_Team1_Sort_Spot_2_Actions takes nothing returns nothing | |
call SetUnitPositionLoc( udg_Team1CreepsArray[udg_Team1Creeps], GetRectCenter(udg_Team1Spots[1]) ) | |
set udg_Team1Creeps = ( udg_Team1Creeps - 1 ) | |
if ( Trig_Team1_Sort_Spot_2_Func004001() ) then | |
set udg_Team1Sorter = 0 | |
else | |
set udg_Team1Sorter = ( udg_Team1Sorter + 1 ) | |
endif | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Sort_Spot_2 takes nothing returns nothing | |
set gg_trg_Team1_Sort_Spot_2 = CreateTrigger( ) | |
call TriggerAddCondition( gg_trg_Team1_Sort_Spot_2, Condition( function Trig_Team1_Sort_Spot_2_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Sort_Spot_2, function Trig_Team1_Sort_Spot_2_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Sort Spot 3 | |
//=========================================================================== | |
function Trig_Team1_Sort_Spot_3_Conditions takes nothing returns boolean | |
if ( not ( udg_Team1Creeps > 0 ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Sort_Spot_3_Func004001 takes nothing returns boolean | |
return ( udg_Team1Sorter >= 2 ) | |
endfunction | |
function Trig_Team1_Sort_Spot_3_Actions takes nothing returns nothing | |
call SetUnitPositionLoc( udg_Team1CreepsArray[udg_Team1Creeps], GetRectCenter(udg_Team1Spots[2]) ) | |
set udg_Team1Creeps = ( udg_Team1Creeps - 1 ) | |
if ( Trig_Team1_Sort_Spot_3_Func004001() ) then | |
set udg_Team1Sorter = 0 | |
else | |
set udg_Team1Sorter = ( udg_Team1Sorter + 1 ) | |
endif | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Sort_Spot_3 takes nothing returns nothing | |
set gg_trg_Team1_Sort_Spot_3 = CreateTrigger( ) | |
call TriggerAddCondition( gg_trg_Team1_Sort_Spot_3, Condition( function Trig_Team1_Sort_Spot_3_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Sort_Spot_3, function Trig_Team1_Sort_Spot_3_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Spawn | |
//=========================================================================== | |
function Trig_Team1_Spawn_Conditions takes nothing returns boolean | |
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_STRUCTURE) == false ) ) then | |
return false | |
endif | |
if ( not ( GetUnitTypeId(GetTriggerUnit()) != 'uC09' ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Spawn_Func001001 takes nothing returns boolean | |
return ( udg_Profiles[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))] == 0 ) | |
endfunction | |
function Trig_Team1_Spawn_Func004001 takes nothing returns boolean | |
return ( udg_Team3Lives > 0 ) | |
endfunction | |
function Trig_Team1_Spawn_Func004003001 takes nothing returns boolean | |
return ( udg_Team2Lives > 0 ) | |
endfunction | |
function Trig_Team1_Spawn_Func005001 takes nothing returns boolean | |
return ( udg_Team3Lives > 0 ) | |
endfunction | |
function Trig_Team1_Spawn_Func005003001 takes nothing returns boolean | |
return ( udg_Team2Lives > 0 ) | |
endfunction | |
function Trig_Team1_Spawn_Func006001 takes nothing returns boolean | |
return ( udg_Team2Lives > 0 ) | |
endfunction | |
function Trig_Team1_Spawn_Func006003001 takes nothing returns boolean | |
return ( udg_Team3Lives > 0 ) | |
endfunction | |
function Trig_Team1_Spawn_Func007001 takes nothing returns boolean | |
return ( udg_Team2Lives > 0 ) | |
endfunction | |
function Trig_Team1_Spawn_Func007003001 takes nothing returns boolean | |
return ( udg_Team3Lives > 0 ) | |
endfunction | |
function Trig_Team1_Spawn_Actions takes nothing returns nothing | |
if ( Trig_Team1_Spawn_Func001001() ) then | |
set udg_Income[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))] = ( udg_Income[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))] + I2R(GetUnitPointValue(GetTriggerUnit())) ) | |
else | |
set udg_Income[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))] = ( udg_Income[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))] + ( I2R(GetUnitPointValue(GetTriggerUnit())) / 2.00 ) ) | |
endif | |
if ( Trig_Team1_Spawn_Func004001() ) then | |
call CreateNUnitsAtLoc( 1, GetUnitTypeId(GetTriggerUnit()), GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Team3__Entrance), bj_UNIT_FACING ) | |
else | |
if ( Trig_Team1_Spawn_Func004003001() ) then | |
call CreateNUnitsAtLoc( 1, GetUnitTypeId(GetTriggerUnit()), GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Team2__Entrance), bj_UNIT_FACING ) | |
else | |
call DoNothing( ) | |
endif | |
endif | |
if ( Trig_Team1_Spawn_Func005001() ) then | |
call SetUnitOwner( GetLastCreatedUnit(), Player(11), false ) | |
else | |
if ( Trig_Team1_Spawn_Func005003001() ) then | |
call SetUnitOwner( GetLastCreatedUnit(), Player(10), false ) | |
else | |
call DoNothing( ) | |
endif | |
endif | |
if ( Trig_Team1_Spawn_Func006001() ) then | |
call SetUnitOwner( GetTriggerUnit(), Player(10), false ) | |
else | |
if ( Trig_Team1_Spawn_Func006003001() ) then | |
call SetUnitOwner( GetTriggerUnit(), Player(11), false ) | |
else | |
call RemoveUnit( GetTriggerUnit() ) | |
endif | |
endif | |
if ( Trig_Team1_Spawn_Func007001() ) then | |
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Team2__Entrance) ) | |
else | |
if ( Trig_Team1_Spawn_Func007003001() ) then | |
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Team3__Entrance) ) | |
else | |
call DoNothing( ) | |
endif | |
endif | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Spawn takes nothing returns nothing | |
set gg_trg_Team1_Spawn = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Spawn, gg_rct_Team1__Spawn ) | |
call TriggerAddCondition( gg_trg_Team1_Spawn, Condition( function Trig_Team1_Spawn_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Spawn, function Trig_Team1_Spawn_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Move Workers | |
//=========================================================================== | |
function Trig_Team1_Move_Workers_Conditions takes nothing returns boolean | |
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'uC09' ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Move_Workers_Actions takes nothing returns nothing | |
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Team1__Entrance_Workers) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Move_Workers takes nothing returns nothing | |
set gg_trg_Team1_Move_Workers = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Move_Workers, gg_rct_Team1__Spawn_Workers ) | |
call TriggerAddCondition( gg_trg_Team1_Move_Workers, Condition( function Trig_Team1_Move_Workers_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Move_Workers, function Trig_Team1_Move_Workers_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Path1 Start | |
//=========================================================================== | |
function Trig_Team1_Path1_Start_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Path1_Start_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team1__Path1_01) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Path1_Start takes nothing returns nothing | |
set gg_trg_Team1_Path1_Start = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Path1_Start, gg_rct_Team1__Path1_Start ) | |
call TriggerAddCondition( gg_trg_Team1_Path1_Start, Condition( function Trig_Team1_Path1_Start_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Path1_Start, function Trig_Team1_Path1_Start_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Path1 01 | |
//=========================================================================== | |
function Trig_Team1_Path1_01_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Path1_01_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team1__Path1_02) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Path1_01 takes nothing returns nothing | |
set gg_trg_Team1_Path1_01 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Path1_01, gg_rct_Team1__Path1_01 ) | |
call TriggerAddCondition( gg_trg_Team1_Path1_01, Condition( function Trig_Team1_Path1_01_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Path1_01, function Trig_Team1_Path1_01_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Path1 02 | |
//=========================================================================== | |
function Trig_Team1_Path1_02_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Path1_02_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team1__Path1_03) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Path1_02 takes nothing returns nothing | |
set gg_trg_Team1_Path1_02 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Path1_02, gg_rct_Team1__Path1_02 ) | |
call TriggerAddCondition( gg_trg_Team1_Path1_02, Condition( function Trig_Team1_Path1_02_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Path1_02, function Trig_Team1_Path1_02_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Path1 03 | |
//=========================================================================== | |
function Trig_Team1_Path1_03_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Path1_03_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team1__Path1_04) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Path1_03 takes nothing returns nothing | |
set gg_trg_Team1_Path1_03 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Path1_03, gg_rct_Team1__Path1_03 ) | |
call TriggerAddCondition( gg_trg_Team1_Path1_03, Condition( function Trig_Team1_Path1_03_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Path1_03, function Trig_Team1_Path1_03_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Path1 04 | |
//=========================================================================== | |
function Trig_Team1_Path1_04_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Path1_04_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team1__Path1_05) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Path1_04 takes nothing returns nothing | |
set gg_trg_Team1_Path1_04 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Path1_04, gg_rct_Team1__Path1_04 ) | |
call TriggerAddCondition( gg_trg_Team1_Path1_04, Condition( function Trig_Team1_Path1_04_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Path1_04, function Trig_Team1_Path1_04_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Path1 05 | |
//=========================================================================== | |
function Trig_Team1_Path1_05_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Path1_05_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team1__Path1_06) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Path1_05 takes nothing returns nothing | |
set gg_trg_Team1_Path1_05 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Path1_05, gg_rct_Team1__Path1_05 ) | |
call TriggerAddCondition( gg_trg_Team1_Path1_05, Condition( function Trig_Team1_Path1_05_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Path1_05, function Trig_Team1_Path1_05_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Path1 06 | |
//=========================================================================== | |
function Trig_Team1_Path1_06_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Path1_06_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team1__Path1_07) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Path1_06 takes nothing returns nothing | |
set gg_trg_Team1_Path1_06 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Path1_06, gg_rct_Team1__Path1_06 ) | |
call TriggerAddCondition( gg_trg_Team1_Path1_06, Condition( function Trig_Team1_Path1_06_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Path1_06, function Trig_Team1_Path1_06_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Path1 07 | |
//=========================================================================== | |
function Trig_Team1_Path1_07_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Path1_07_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team1__Path1_08) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Path1_07 takes nothing returns nothing | |
set gg_trg_Team1_Path1_07 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Path1_07, gg_rct_Team1__Path1_07 ) | |
call TriggerAddCondition( gg_trg_Team1_Path1_07, Condition( function Trig_Team1_Path1_07_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Path1_07, function Trig_Team1_Path1_07_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Path1 08 | |
//=========================================================================== | |
function Trig_Team1_Path1_08_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Path1_08_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team1__Path1_09) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Path1_08 takes nothing returns nothing | |
set gg_trg_Team1_Path1_08 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Path1_08, gg_rct_Team1__Path1_08 ) | |
call TriggerAddCondition( gg_trg_Team1_Path1_08, Condition( function Trig_Team1_Path1_08_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Path1_08, function Trig_Team1_Path1_08_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Path1 09 | |
//=========================================================================== | |
function Trig_Team1_Path1_09_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Path1_09_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team1__Path1_10) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Path1_09 takes nothing returns nothing | |
set gg_trg_Team1_Path1_09 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Path1_09, gg_rct_Team1__Path1_09 ) | |
call TriggerAddCondition( gg_trg_Team1_Path1_09, Condition( function Trig_Team1_Path1_09_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Path1_09, function Trig_Team1_Path1_09_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Path1 10 | |
//=========================================================================== | |
function Trig_Team1_Path1_10_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Path1_10_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team1__Path1_11) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Path1_10 takes nothing returns nothing | |
set gg_trg_Team1_Path1_10 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Path1_10, gg_rct_Team1__Path1_10 ) | |
call TriggerAddCondition( gg_trg_Team1_Path1_10, Condition( function Trig_Team1_Path1_10_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Path1_10, function Trig_Team1_Path1_10_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Path1 11 | |
//=========================================================================== | |
function Trig_Team1_Path1_11_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Path1_11_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team1__Path1_12) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Path1_11 takes nothing returns nothing | |
set gg_trg_Team1_Path1_11 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Path1_11, gg_rct_Team1__Path1_11 ) | |
call TriggerAddCondition( gg_trg_Team1_Path1_11, Condition( function Trig_Team1_Path1_11_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Path1_11, function Trig_Team1_Path1_11_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Path1 12 | |
//=========================================================================== | |
function Trig_Team1_Path1_12_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Path1_12_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team1__End) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Path1_12 takes nothing returns nothing | |
set gg_trg_Team1_Path1_12 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Path1_12, gg_rct_Team1__Path1_12 ) | |
call TriggerAddCondition( gg_trg_Team1_Path1_12, Condition( function Trig_Team1_Path1_12_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Path1_12, function Trig_Team1_Path1_12_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Path2 Start | |
//=========================================================================== | |
function Trig_Team1_Path2_Start_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Path2_Start_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team1__Path2_01) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Path2_Start takes nothing returns nothing | |
set gg_trg_Team1_Path2_Start = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Path2_Start, gg_rct_Team1__Path2_Start ) | |
call TriggerAddCondition( gg_trg_Team1_Path2_Start, Condition( function Trig_Team1_Path2_Start_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Path2_Start, function Trig_Team1_Path2_Start_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Path2 01 | |
//=========================================================================== | |
function Trig_Team1_Path2_01_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Path2_01_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team1__Path2_02) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Path2_01 takes nothing returns nothing | |
set gg_trg_Team1_Path2_01 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Path2_01, gg_rct_Team1__Path2_01 ) | |
call TriggerAddCondition( gg_trg_Team1_Path2_01, Condition( function Trig_Team1_Path2_01_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Path2_01, function Trig_Team1_Path2_01_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Path2 02 | |
//=========================================================================== | |
function Trig_Team1_Path2_02_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Path2_02_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team1__Path2_03) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Path2_02 takes nothing returns nothing | |
set gg_trg_Team1_Path2_02 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Path2_02, gg_rct_Team1__Path2_02 ) | |
call TriggerAddCondition( gg_trg_Team1_Path2_02, Condition( function Trig_Team1_Path2_02_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Path2_02, function Trig_Team1_Path2_02_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Path2 03 | |
//=========================================================================== | |
function Trig_Team1_Path2_03_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Path2_03_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team1__Path2_04) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Path2_03 takes nothing returns nothing | |
set gg_trg_Team1_Path2_03 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Path2_03, gg_rct_Team1__Path2_03 ) | |
call TriggerAddCondition( gg_trg_Team1_Path2_03, Condition( function Trig_Team1_Path2_03_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Path2_03, function Trig_Team1_Path2_03_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Path2 04 | |
//=========================================================================== | |
function Trig_Team1_Path2_04_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Path2_04_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team1__Path2_05) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Path2_04 takes nothing returns nothing | |
set gg_trg_Team1_Path2_04 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Path2_04, gg_rct_Team1__Path2_04 ) | |
call TriggerAddCondition( gg_trg_Team1_Path2_04, Condition( function Trig_Team1_Path2_04_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Path2_04, function Trig_Team1_Path2_04_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Path2 05 | |
//=========================================================================== | |
function Trig_Team1_Path2_05_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Path2_05_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team1__Path2_06) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Path2_05 takes nothing returns nothing | |
set gg_trg_Team1_Path2_05 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Path2_05, gg_rct_Team1__Path2_05 ) | |
call TriggerAddCondition( gg_trg_Team1_Path2_05, Condition( function Trig_Team1_Path2_05_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Path2_05, function Trig_Team1_Path2_05_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Path2 06 | |
//=========================================================================== | |
function Trig_Team1_Path2_06_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Path2_06_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team1__Path2_07) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Path2_06 takes nothing returns nothing | |
set gg_trg_Team1_Path2_06 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Path2_06, gg_rct_Team1__Path2_06 ) | |
call TriggerAddCondition( gg_trg_Team1_Path2_06, Condition( function Trig_Team1_Path2_06_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Path2_06, function Trig_Team1_Path2_06_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Path2 07 | |
//=========================================================================== | |
function Trig_Team1_Path2_07_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Path2_07_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team1__Path2_08) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Path2_07 takes nothing returns nothing | |
set gg_trg_Team1_Path2_07 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Path2_07, gg_rct_Team1__Path2_07 ) | |
call TriggerAddCondition( gg_trg_Team1_Path2_07, Condition( function Trig_Team1_Path2_07_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Path2_07, function Trig_Team1_Path2_07_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Path2 08 | |
//=========================================================================== | |
function Trig_Team1_Path2_08_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Path2_08_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team1__Path2_09) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Path2_08 takes nothing returns nothing | |
set gg_trg_Team1_Path2_08 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Path2_08, gg_rct_Team1__Path2_08 ) | |
call TriggerAddCondition( gg_trg_Team1_Path2_08, Condition( function Trig_Team1_Path2_08_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Path2_08, function Trig_Team1_Path2_08_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Path2 09 | |
//=========================================================================== | |
function Trig_Team1_Path2_09_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Path2_09_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team1__Path2_10) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Path2_09 takes nothing returns nothing | |
set gg_trg_Team1_Path2_09 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Path2_09, gg_rct_Team1__Path2_09 ) | |
call TriggerAddCondition( gg_trg_Team1_Path2_09, Condition( function Trig_Team1_Path2_09_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Path2_09, function Trig_Team1_Path2_09_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Path2 10 | |
//=========================================================================== | |
function Trig_Team1_Path2_10_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Path2_10_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team1__Path2_11) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Path2_10 takes nothing returns nothing | |
set gg_trg_Team1_Path2_10 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Path2_10, gg_rct_Team1__Path2_10 ) | |
call TriggerAddCondition( gg_trg_Team1_Path2_10, Condition( function Trig_Team1_Path2_10_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Path2_10, function Trig_Team1_Path2_10_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Path2 11 | |
//=========================================================================== | |
function Trig_Team1_Path2_11_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Path2_11_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team1__Path2_12) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Path2_11 takes nothing returns nothing | |
set gg_trg_Team1_Path2_11 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Path2_11, gg_rct_Team1__Path2_11 ) | |
call TriggerAddCondition( gg_trg_Team1_Path2_11, Condition( function Trig_Team1_Path2_11_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Path2_11, function Trig_Team1_Path2_11_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Path2 12 | |
//=========================================================================== | |
function Trig_Team1_Path2_12_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Path2_12_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team1__Path2_13) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Path2_12 takes nothing returns nothing | |
set gg_trg_Team1_Path2_12 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Path2_12, gg_rct_Team1__Path2_12 ) | |
call TriggerAddCondition( gg_trg_Team1_Path2_12, Condition( function Trig_Team1_Path2_12_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Path2_12, function Trig_Team1_Path2_12_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Path2 13 | |
//=========================================================================== | |
function Trig_Team1_Path2_13_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Path2_13_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team1__Path2_14) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Path2_13 takes nothing returns nothing | |
set gg_trg_Team1_Path2_13 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Path2_13, gg_rct_Team1__Path2_13 ) | |
call TriggerAddCondition( gg_trg_Team1_Path2_13, Condition( function Trig_Team1_Path2_13_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Path2_13, function Trig_Team1_Path2_13_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Path2 14 | |
//=========================================================================== | |
function Trig_Team1_Path2_14_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Path2_14_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team1__Path2_15) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Path2_14 takes nothing returns nothing | |
set gg_trg_Team1_Path2_14 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Path2_14, gg_rct_Team1__Path2_14 ) | |
call TriggerAddCondition( gg_trg_Team1_Path2_14, Condition( function Trig_Team1_Path2_14_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Path2_14, function Trig_Team1_Path2_14_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Path2 15 | |
//=========================================================================== | |
function Trig_Team1_Path2_15_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Path2_15_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team1__End) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Path2_15 takes nothing returns nothing | |
set gg_trg_Team1_Path2_15 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Path2_15, gg_rct_Team1__Path2_15 ) | |
call TriggerAddCondition( gg_trg_Team1_Path2_15, Condition( function Trig_Team1_Path2_15_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Path2_15, function Trig_Team1_Path2_15_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Path3 Start | |
//=========================================================================== | |
function Trig_Team1_Path3_Start_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Path3_Start_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team1__Path3_01) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Path3_Start takes nothing returns nothing | |
set gg_trg_Team1_Path3_Start = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Path3_Start, gg_rct_Team1__Path3_Start ) | |
call TriggerAddCondition( gg_trg_Team1_Path3_Start, Condition( function Trig_Team1_Path3_Start_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Path3_Start, function Trig_Team1_Path3_Start_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Path3 01 | |
//=========================================================================== | |
function Trig_Team1_Path3_01_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Path3_01_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team1__Path3_02) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Path3_01 takes nothing returns nothing | |
set gg_trg_Team1_Path3_01 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Path3_01, gg_rct_Team1__Path3_01 ) | |
call TriggerAddCondition( gg_trg_Team1_Path3_01, Condition( function Trig_Team1_Path3_01_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Path3_01, function Trig_Team1_Path3_01_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Path3 02 | |
//=========================================================================== | |
function Trig_Team1_Path3_02_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Path3_02_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team1__Path3_03) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Path3_02 takes nothing returns nothing | |
set gg_trg_Team1_Path3_02 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Path3_02, gg_rct_Team1__Path3_02 ) | |
call TriggerAddCondition( gg_trg_Team1_Path3_02, Condition( function Trig_Team1_Path3_02_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Path3_02, function Trig_Team1_Path3_02_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Path3 03 | |
//=========================================================================== | |
function Trig_Team1_Path3_03_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Path3_03_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team1__Path3_04) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Path3_03 takes nothing returns nothing | |
set gg_trg_Team1_Path3_03 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Path3_03, gg_rct_Team1__Path3_03 ) | |
call TriggerAddCondition( gg_trg_Team1_Path3_03, Condition( function Trig_Team1_Path3_03_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Path3_03, function Trig_Team1_Path3_03_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Path3 04 | |
//=========================================================================== | |
function Trig_Team1_Path3_04_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Path3_04_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team1__Path3_05) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Path3_04 takes nothing returns nothing | |
set gg_trg_Team1_Path3_04 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Path3_04, gg_rct_Team1__Path3_04 ) | |
call TriggerAddCondition( gg_trg_Team1_Path3_04, Condition( function Trig_Team1_Path3_04_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Path3_04, function Trig_Team1_Path3_04_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Path3 05 | |
//=========================================================================== | |
function Trig_Team1_Path3_05_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Path3_05_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team1__Path3_06) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Path3_05 takes nothing returns nothing | |
set gg_trg_Team1_Path3_05 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Path3_05, gg_rct_Team1__Path3_05 ) | |
call TriggerAddCondition( gg_trg_Team1_Path3_05, Condition( function Trig_Team1_Path3_05_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Path3_05, function Trig_Team1_Path3_05_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Path3 06 | |
//=========================================================================== | |
function Trig_Team1_Path3_06_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Path3_06_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team1__Path3_07) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Path3_06 takes nothing returns nothing | |
set gg_trg_Team1_Path3_06 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Path3_06, gg_rct_Team1__Path3_06 ) | |
call TriggerAddCondition( gg_trg_Team1_Path3_06, Condition( function Trig_Team1_Path3_06_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Path3_06, function Trig_Team1_Path3_06_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Path3 07 | |
//=========================================================================== | |
function Trig_Team1_Path3_07_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Path3_07_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team1__Path3_08) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Path3_07 takes nothing returns nothing | |
set gg_trg_Team1_Path3_07 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Path3_07, gg_rct_Team1__Path3_07 ) | |
call TriggerAddCondition( gg_trg_Team1_Path3_07, Condition( function Trig_Team1_Path3_07_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Path3_07, function Trig_Team1_Path3_07_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Path3 08 | |
//=========================================================================== | |
function Trig_Team1_Path3_08_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Path3_08_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team1__Path3_09) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Path3_08 takes nothing returns nothing | |
set gg_trg_Team1_Path3_08 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Path3_08, gg_rct_Team1__Path3_08 ) | |
call TriggerAddCondition( gg_trg_Team1_Path3_08, Condition( function Trig_Team1_Path3_08_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Path3_08, function Trig_Team1_Path3_08_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Path3 09 | |
//=========================================================================== | |
function Trig_Team1_Path3_09_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Path3_09_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team1__Path3_10) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Path3_09 takes nothing returns nothing | |
set gg_trg_Team1_Path3_09 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Path3_09, gg_rct_Team1__Path3_09 ) | |
call TriggerAddCondition( gg_trg_Team1_Path3_09, Condition( function Trig_Team1_Path3_09_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Path3_09, function Trig_Team1_Path3_09_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Path3 10 | |
//=========================================================================== | |
function Trig_Team1_Path3_10_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Path3_10_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team1__End) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Path3_10 takes nothing returns nothing | |
set gg_trg_Team1_Path3_10 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Path3_10, gg_rct_Team1__Path3_10 ) | |
call TriggerAddCondition( gg_trg_Team1_Path3_10, Condition( function Trig_Team1_Path3_10_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Path3_10, function Trig_Team1_Path3_10_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 End | |
//=========================================================================== | |
function Trig_Team1_End_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_End_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "move", GetRandomLocInRect(gg_rct_Center_Death) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_End takes nothing returns nothing | |
set gg_trg_Team1_End = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_End, gg_rct_Team1__End ) | |
call TriggerAddCondition( gg_trg_Team1_End, Condition( function Trig_Team1_End_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_End, function Trig_Team1_End_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Move Attackers | |
//=========================================================================== | |
function Trig_Team2_Move_Attackers_Actions takes nothing returns nothing | |
call SetUnitPositionLoc( GetTriggerUnit(), GetRandomLocInRect(gg_rct_Team2__Attacker_Spawn) ) | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team2__Path2_10) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Move_Attackers takes nothing returns nothing | |
set gg_trg_Team2_Move_Attackers = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Team2_Move_Attackers, function Trig_Team2_Move_Attackers_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Init Creep Array | |
//=========================================================================== | |
function Trig_Team2_Init_Creep_Array_Func002001 takes nothing returns boolean | |
return ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_UNDEAD) == true ) | |
endfunction | |
function Trig_Team2_Init_Creep_Array_Func003001 takes nothing returns boolean | |
return ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_UNDEAD) == true ) | |
endfunction | |
function Trig_Team2_Init_Creep_Array_Actions takes nothing returns nothing | |
call SetUnitPathing( GetTriggerUnit(), false ) | |
if ( Trig_Team2_Init_Creep_Array_Func002001() ) then | |
call TriggerExecute( gg_trg_Team2_Move_Attackers ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team2_Init_Creep_Array_Func003001() ) then | |
return | |
else | |
call DoNothing( ) | |
endif | |
set udg_Team2Creeps = ( udg_Team2Creeps + 1 ) | |
set udg_Team2CreepsArray[udg_Team2Creeps] = GetTriggerUnit() | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Init_Creep_Array takes nothing returns nothing | |
set gg_trg_Team2_Init_Creep_Array = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Init_Creep_Array, gg_rct_Team2__Entrance ) | |
call TriggerAddAction( gg_trg_Team2_Init_Creep_Array, function Trig_Team2_Init_Creep_Array_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Sorter | |
//=========================================================================== | |
function Trig_Team2_Sorter_Conditions takes nothing returns boolean | |
if ( not ( udg_Team2Creeps > 0 ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Sorter_Actions takes nothing returns nothing | |
call ConditionalTriggerExecute( udg_Team2SortTriggers[udg_Team2Sorter] ) | |
call ConditionalTriggerExecute( udg_Team2SortTriggers[udg_Team2Sorter] ) | |
call ConditionalTriggerExecute( udg_Team2SortTriggers[udg_Team2Sorter] ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Sorter takes nothing returns nothing | |
set gg_trg_Team2_Sorter = CreateTrigger( ) | |
call TriggerRegisterTimerEventPeriodic( gg_trg_Team2_Sorter, 0.40 ) | |
call TriggerAddCondition( gg_trg_Team2_Sorter, Condition( function Trig_Team2_Sorter_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Sorter, function Trig_Team2_Sorter_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Sort Spot 1 | |
//=========================================================================== | |
function Trig_Team2_Sort_Spot_1_Conditions takes nothing returns boolean | |
if ( not ( udg_Team2Creeps > 0 ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Sort_Spot_1_Func004001 takes nothing returns boolean | |
return ( udg_Team2Sorter >= 2 ) | |
endfunction | |
function Trig_Team2_Sort_Spot_1_Actions takes nothing returns nothing | |
call SetUnitPositionLoc( udg_Team2CreepsArray[udg_Team2Creeps], GetRectCenter(udg_Team2Spots[0]) ) | |
set udg_Team2Creeps = ( udg_Team2Creeps - 1 ) | |
if ( Trig_Team2_Sort_Spot_1_Func004001() ) then | |
set udg_Team2Sorter = 0 | |
else | |
set udg_Team2Sorter = ( udg_Team2Sorter + 1 ) | |
endif | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Sort_Spot_1 takes nothing returns nothing | |
set gg_trg_Team2_Sort_Spot_1 = CreateTrigger( ) | |
call TriggerAddCondition( gg_trg_Team2_Sort_Spot_1, Condition( function Trig_Team2_Sort_Spot_1_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Sort_Spot_1, function Trig_Team2_Sort_Spot_1_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Sort Spot 2 | |
//=========================================================================== | |
function Trig_Team2_Sort_Spot_2_Conditions takes nothing returns boolean | |
if ( not ( udg_Team2Creeps > 0 ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Sort_Spot_2_Func004001 takes nothing returns boolean | |
return ( udg_Team2Sorter >= 2 ) | |
endfunction | |
function Trig_Team2_Sort_Spot_2_Actions takes nothing returns nothing | |
call SetUnitPositionLoc( udg_Team2CreepsArray[udg_Team2Creeps], GetRectCenter(udg_Team2Spots[1]) ) | |
set udg_Team2Creeps = ( udg_Team2Creeps - 1 ) | |
if ( Trig_Team2_Sort_Spot_2_Func004001() ) then | |
set udg_Team2Sorter = 0 | |
else | |
set udg_Team2Sorter = ( udg_Team2Sorter + 1 ) | |
endif | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Sort_Spot_2 takes nothing returns nothing | |
set gg_trg_Team2_Sort_Spot_2 = CreateTrigger( ) | |
call TriggerAddCondition( gg_trg_Team2_Sort_Spot_2, Condition( function Trig_Team2_Sort_Spot_2_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Sort_Spot_2, function Trig_Team2_Sort_Spot_2_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Sort Spot 3 | |
//=========================================================================== | |
function Trig_Team2_Sort_Spot_3_Conditions takes nothing returns boolean | |
if ( not ( udg_Team2Creeps > 0 ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Sort_Spot_3_Func004001 takes nothing returns boolean | |
return ( udg_Team2Sorter >= 2 ) | |
endfunction | |
function Trig_Team2_Sort_Spot_3_Actions takes nothing returns nothing | |
call SetUnitPositionLoc( udg_Team2CreepsArray[udg_Team2Creeps], GetRectCenter(udg_Team2Spots[2]) ) | |
set udg_Team2Creeps = ( udg_Team2Creeps - 1 ) | |
if ( Trig_Team2_Sort_Spot_3_Func004001() ) then | |
set udg_Team2Sorter = 0 | |
else | |
set udg_Team2Sorter = ( udg_Team2Sorter + 1 ) | |
endif | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Sort_Spot_3 takes nothing returns nothing | |
set gg_trg_Team2_Sort_Spot_3 = CreateTrigger( ) | |
call TriggerAddCondition( gg_trg_Team2_Sort_Spot_3, Condition( function Trig_Team2_Sort_Spot_3_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Sort_Spot_3, function Trig_Team2_Sort_Spot_3_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Spawn | |
//=========================================================================== | |
function Trig_Team2_Spawn_Conditions takes nothing returns boolean | |
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_STRUCTURE) == false ) ) then | |
return false | |
endif | |
if ( not ( GetUnitTypeId(GetTriggerUnit()) != 'uC09' ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Spawn_Func001001 takes nothing returns boolean | |
return ( udg_Profiles[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))] == 0 ) | |
endfunction | |
function Trig_Team2_Spawn_Func002001 takes nothing returns boolean | |
return ( udg_Team3Lives > 0 ) | |
endfunction | |
function Trig_Team2_Spawn_Func002003001 takes nothing returns boolean | |
return ( udg_Team1Lives > 0 ) | |
endfunction | |
function Trig_Team2_Spawn_Func003001 takes nothing returns boolean | |
return ( udg_Team3Lives > 0 ) | |
endfunction | |
function Trig_Team2_Spawn_Func003003001 takes nothing returns boolean | |
return ( udg_Team1Lives > 0 ) | |
endfunction | |
function Trig_Team2_Spawn_Func004001 takes nothing returns boolean | |
return ( udg_Team1Lives > 0 ) | |
endfunction | |
function Trig_Team2_Spawn_Func004003001 takes nothing returns boolean | |
return ( udg_Team3Lives > 0 ) | |
endfunction | |
function Trig_Team2_Spawn_Func005001 takes nothing returns boolean | |
return ( udg_Team1Lives > 0 ) | |
endfunction | |
function Trig_Team2_Spawn_Func005003001 takes nothing returns boolean | |
return ( udg_Team3Lives > 0 ) | |
endfunction | |
function Trig_Team2_Spawn_Actions takes nothing returns nothing | |
if ( Trig_Team2_Spawn_Func001001() ) then | |
set udg_Income[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))] = ( udg_Income[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))] + I2R(GetUnitPointValue(GetTriggerUnit())) ) | |
else | |
set udg_Income[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))] = ( udg_Income[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))] + ( I2R(GetUnitPointValue(GetTriggerUnit())) / 2.00 ) ) | |
endif | |
if ( Trig_Team2_Spawn_Func002001() ) then | |
call CreateNUnitsAtLoc( 1, GetUnitTypeId(GetTriggerUnit()), GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Team3__Entrance), bj_UNIT_FACING ) | |
else | |
if ( Trig_Team2_Spawn_Func002003001() ) then | |
call CreateNUnitsAtLoc( 1, GetUnitTypeId(GetTriggerUnit()), GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Team1__Entrance), bj_UNIT_FACING ) | |
else | |
call DoNothing( ) | |
endif | |
endif | |
if ( Trig_Team2_Spawn_Func003001() ) then | |
call SetUnitOwner( GetLastCreatedUnit(), Player(11), false ) | |
else | |
if ( Trig_Team2_Spawn_Func003003001() ) then | |
call SetUnitOwner( GetLastCreatedUnit(), Player(9), false ) | |
else | |
call DoNothing( ) | |
endif | |
endif | |
if ( Trig_Team2_Spawn_Func004001() ) then | |
call SetUnitOwner( GetTriggerUnit(), Player(9), false ) | |
else | |
if ( Trig_Team2_Spawn_Func004003001() ) then | |
call SetUnitOwner( GetTriggerUnit(), Player(11), false ) | |
else | |
call RemoveUnit( GetTriggerUnit() ) | |
endif | |
endif | |
if ( Trig_Team2_Spawn_Func005001() ) then | |
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Team1__Entrance) ) | |
else | |
if ( Trig_Team2_Spawn_Func005003001() ) then | |
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Team3__Entrance) ) | |
else | |
call DoNothing( ) | |
endif | |
endif | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Spawn takes nothing returns nothing | |
set gg_trg_Team2_Spawn = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Spawn, gg_rct_Team2__Spawn ) | |
call TriggerAddCondition( gg_trg_Team2_Spawn, Condition( function Trig_Team2_Spawn_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Spawn, function Trig_Team2_Spawn_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Move Workers | |
//=========================================================================== | |
function Trig_Team2_Move_Workers_Conditions takes nothing returns boolean | |
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'uC09' ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Move_Workers_Actions takes nothing returns nothing | |
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Team2__Entrance_Workers) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Move_Workers takes nothing returns nothing | |
set gg_trg_Team2_Move_Workers = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Move_Workers, gg_rct_Team2__Spawn_Workers ) | |
call TriggerAddCondition( gg_trg_Team2_Move_Workers, Condition( function Trig_Team2_Move_Workers_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Move_Workers, function Trig_Team2_Move_Workers_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Path1 Start | |
//=========================================================================== | |
function Trig_Team2_Path1_Start_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Path1_Start_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team2__Path1_01) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Path1_Start takes nothing returns nothing | |
set gg_trg_Team2_Path1_Start = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Path1_Start, gg_rct_Team2__Path1_Start ) | |
call TriggerAddCondition( gg_trg_Team2_Path1_Start, Condition( function Trig_Team2_Path1_Start_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Path1_Start, function Trig_Team2_Path1_Start_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Path1 01 | |
//=========================================================================== | |
function Trig_Team2_Path1_01_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Path1_01_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team2__Path1_02) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Path1_01 takes nothing returns nothing | |
set gg_trg_Team2_Path1_01 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Path1_01, gg_rct_Team2__Path1_01 ) | |
call TriggerAddCondition( gg_trg_Team2_Path1_01, Condition( function Trig_Team2_Path1_01_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Path1_01, function Trig_Team2_Path1_01_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Path1 02 | |
//=========================================================================== | |
function Trig_Team2_Path1_02_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Path1_02_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team2__Path1_03) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Path1_02 takes nothing returns nothing | |
set gg_trg_Team2_Path1_02 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Path1_02, gg_rct_Team2__Path1_02 ) | |
call TriggerAddCondition( gg_trg_Team2_Path1_02, Condition( function Trig_Team2_Path1_02_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Path1_02, function Trig_Team2_Path1_02_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Path1 03 | |
//=========================================================================== | |
function Trig_Team2_Path1_03_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Path1_03_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team2__Path1_04) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Path1_03 takes nothing returns nothing | |
set gg_trg_Team2_Path1_03 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Path1_03, gg_rct_Team2__Path1_03 ) | |
call TriggerAddCondition( gg_trg_Team2_Path1_03, Condition( function Trig_Team2_Path1_03_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Path1_03, function Trig_Team2_Path1_03_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Path1 04 | |
//=========================================================================== | |
function Trig_Team2_Path1_04_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Path1_04_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team2__Path1_05) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Path1_04 takes nothing returns nothing | |
set gg_trg_Team2_Path1_04 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Path1_04, gg_rct_Team2__Path1_04 ) | |
call TriggerAddCondition( gg_trg_Team2_Path1_04, Condition( function Trig_Team2_Path1_04_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Path1_04, function Trig_Team2_Path1_04_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Path1 05 | |
//=========================================================================== | |
function Trig_Team2_Path1_05_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Path1_05_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team2__Path1_06) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Path1_05 takes nothing returns nothing | |
set gg_trg_Team2_Path1_05 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Path1_05, gg_rct_Team2__Path1_05 ) | |
call TriggerAddCondition( gg_trg_Team2_Path1_05, Condition( function Trig_Team2_Path1_05_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Path1_05, function Trig_Team2_Path1_05_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Path1 06 | |
//=========================================================================== | |
function Trig_Team2_Path1_06_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Path1_06_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team2__Path1_07) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Path1_06 takes nothing returns nothing | |
set gg_trg_Team2_Path1_06 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Path1_06, gg_rct_Team2__Path1_06 ) | |
call TriggerAddCondition( gg_trg_Team2_Path1_06, Condition( function Trig_Team2_Path1_06_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Path1_06, function Trig_Team2_Path1_06_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Path1 07 | |
//=========================================================================== | |
function Trig_Team2_Path1_07_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Path1_07_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team2__Path1_08) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Path1_07 takes nothing returns nothing | |
set gg_trg_Team2_Path1_07 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Path1_07, gg_rct_Team2__Path1_07 ) | |
call TriggerAddCondition( gg_trg_Team2_Path1_07, Condition( function Trig_Team2_Path1_07_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Path1_07, function Trig_Team2_Path1_07_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Path1 08 | |
//=========================================================================== | |
function Trig_Team2_Path1_08_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Path1_08_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team2__Path1_09) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Path1_08 takes nothing returns nothing | |
set gg_trg_Team2_Path1_08 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Path1_08, gg_rct_Team2__Path1_08 ) | |
call TriggerAddCondition( gg_trg_Team2_Path1_08, Condition( function Trig_Team2_Path1_08_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Path1_08, function Trig_Team2_Path1_08_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Path1 09 | |
//=========================================================================== | |
function Trig_Team2_Path1_09_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Path1_09_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team2__Path1_10) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Path1_09 takes nothing returns nothing | |
set gg_trg_Team2_Path1_09 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Path1_09, gg_rct_Team2__Path1_09 ) | |
call TriggerAddCondition( gg_trg_Team2_Path1_09, Condition( function Trig_Team2_Path1_09_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Path1_09, function Trig_Team2_Path1_09_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Path1 10 | |
//=========================================================================== | |
function Trig_Team2_Path1_10_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Path1_10_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team2__Path1_11) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Path1_10 takes nothing returns nothing | |
set gg_trg_Team2_Path1_10 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Path1_10, gg_rct_Team2__Path1_10 ) | |
call TriggerAddCondition( gg_trg_Team2_Path1_10, Condition( function Trig_Team2_Path1_10_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Path1_10, function Trig_Team2_Path1_10_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Path1 11 | |
//=========================================================================== | |
function Trig_Team2_Path1_11_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Path1_11_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team2__Path1_12) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Path1_11 takes nothing returns nothing | |
set gg_trg_Team2_Path1_11 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Path1_11, gg_rct_Team2__Path1_11 ) | |
call TriggerAddCondition( gg_trg_Team2_Path1_11, Condition( function Trig_Team2_Path1_11_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Path1_11, function Trig_Team2_Path1_11_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Path1 12 | |
//=========================================================================== | |
function Trig_Team2_Path1_12_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Path1_12_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team2__End) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Path1_12 takes nothing returns nothing | |
set gg_trg_Team2_Path1_12 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Path1_12, gg_rct_Team2__Path1_12 ) | |
call TriggerAddCondition( gg_trg_Team2_Path1_12, Condition( function Trig_Team2_Path1_12_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Path1_12, function Trig_Team2_Path1_12_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Path2 Start | |
//=========================================================================== | |
function Trig_Team2_Path2_Start_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Path2_Start_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team2__Path2_01) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Path2_Start takes nothing returns nothing | |
set gg_trg_Team2_Path2_Start = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Path2_Start, gg_rct_Team2__Path2_Start ) | |
call TriggerAddCondition( gg_trg_Team2_Path2_Start, Condition( function Trig_Team2_Path2_Start_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Path2_Start, function Trig_Team2_Path2_Start_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Path2 01 | |
//=========================================================================== | |
function Trig_Team2_Path2_01_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Path2_01_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team2__Path2_02) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Path2_01 takes nothing returns nothing | |
set gg_trg_Team2_Path2_01 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Path2_01, gg_rct_Team2__Path2_01 ) | |
call TriggerAddCondition( gg_trg_Team2_Path2_01, Condition( function Trig_Team2_Path2_01_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Path2_01, function Trig_Team2_Path2_01_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Path2 02 | |
//=========================================================================== | |
function Trig_Team2_Path2_02_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Path2_02_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team2__Path2_03) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Path2_02 takes nothing returns nothing | |
set gg_trg_Team2_Path2_02 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Path2_02, gg_rct_Team2__Path2_02 ) | |
call TriggerAddCondition( gg_trg_Team2_Path2_02, Condition( function Trig_Team2_Path2_02_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Path2_02, function Trig_Team2_Path2_02_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Path2 03 | |
//=========================================================================== | |
function Trig_Team2_Path2_03_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Path2_03_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team2__Path2_04) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Path2_03 takes nothing returns nothing | |
set gg_trg_Team2_Path2_03 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Path2_03, gg_rct_Team2__Path2_03 ) | |
call TriggerAddCondition( gg_trg_Team2_Path2_03, Condition( function Trig_Team2_Path2_03_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Path2_03, function Trig_Team2_Path2_03_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Path2 04 | |
//=========================================================================== | |
function Trig_Team2_Path2_04_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Path2_04_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team2__Path2_05) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Path2_04 takes nothing returns nothing | |
set gg_trg_Team2_Path2_04 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Path2_04, gg_rct_Team2__Path2_04 ) | |
call TriggerAddCondition( gg_trg_Team2_Path2_04, Condition( function Trig_Team2_Path2_04_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Path2_04, function Trig_Team2_Path2_04_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Path2 05 | |
//=========================================================================== | |
function Trig_Team2_Path2_05_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Path2_05_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team2__Path2_06) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Path2_05 takes nothing returns nothing | |
set gg_trg_Team2_Path2_05 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Path2_05, gg_rct_Team2__Path2_05 ) | |
call TriggerAddCondition( gg_trg_Team2_Path2_05, Condition( function Trig_Team2_Path2_05_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Path2_05, function Trig_Team2_Path2_05_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Path2 06 | |
//=========================================================================== | |
function Trig_Team2_Path2_06_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Path2_06_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team2__Path2_07) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Path2_06 takes nothing returns nothing | |
set gg_trg_Team2_Path2_06 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Path2_06, gg_rct_Team2__Path2_06 ) | |
call TriggerAddCondition( gg_trg_Team2_Path2_06, Condition( function Trig_Team2_Path2_06_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Path2_06, function Trig_Team2_Path2_06_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Path2 07 | |
//=========================================================================== | |
function Trig_Team2_Path2_07_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Path2_07_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team2__Path2_08) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Path2_07 takes nothing returns nothing | |
set gg_trg_Team2_Path2_07 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Path2_07, gg_rct_Team2__Path2_07 ) | |
call TriggerAddCondition( gg_trg_Team2_Path2_07, Condition( function Trig_Team2_Path2_07_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Path2_07, function Trig_Team2_Path2_07_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Path2 08 | |
//=========================================================================== | |
function Trig_Team2_Path2_08_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Path2_08_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team2__Path2_09) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Path2_08 takes nothing returns nothing | |
set gg_trg_Team2_Path2_08 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Path2_08, gg_rct_Team2__Path2_08 ) | |
call TriggerAddCondition( gg_trg_Team2_Path2_08, Condition( function Trig_Team2_Path2_08_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Path2_08, function Trig_Team2_Path2_08_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Path2 09 | |
//=========================================================================== | |
function Trig_Team2_Path2_09_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Path2_09_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team2__Path2_10) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Path2_09 takes nothing returns nothing | |
set gg_trg_Team2_Path2_09 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Path2_09, gg_rct_Team2__Path2_09 ) | |
call TriggerAddCondition( gg_trg_Team2_Path2_09, Condition( function Trig_Team2_Path2_09_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Path2_09, function Trig_Team2_Path2_09_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Path2 10 | |
//=========================================================================== | |
function Trig_Team2_Path2_10_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Path2_10_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team2__Path2_11) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Path2_10 takes nothing returns nothing | |
set gg_trg_Team2_Path2_10 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Path2_10, gg_rct_Team2__Path2_10 ) | |
call TriggerAddCondition( gg_trg_Team2_Path2_10, Condition( function Trig_Team2_Path2_10_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Path2_10, function Trig_Team2_Path2_10_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Path2 11 | |
//=========================================================================== | |
function Trig_Team2_Path2_11_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Path2_11_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team2__Path2_12) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Path2_11 takes nothing returns nothing | |
set gg_trg_Team2_Path2_11 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Path2_11, gg_rct_Team2__Path2_11 ) | |
call TriggerAddCondition( gg_trg_Team2_Path2_11, Condition( function Trig_Team2_Path2_11_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Path2_11, function Trig_Team2_Path2_11_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Path2 12 | |
//=========================================================================== | |
function Trig_Team2_Path2_12_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Path2_12_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team2__Path2_13) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Path2_12 takes nothing returns nothing | |
set gg_trg_Team2_Path2_12 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Path2_12, gg_rct_Team2__Path2_12 ) | |
call TriggerAddCondition( gg_trg_Team2_Path2_12, Condition( function Trig_Team2_Path2_12_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Path2_12, function Trig_Team2_Path2_12_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Path2 13 | |
//=========================================================================== | |
function Trig_Team2_Path2_13_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Path2_13_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team2__Path2_14) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Path2_13 takes nothing returns nothing | |
set gg_trg_Team2_Path2_13 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Path2_13, gg_rct_Team2__Path2_13 ) | |
call TriggerAddCondition( gg_trg_Team2_Path2_13, Condition( function Trig_Team2_Path2_13_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Path2_13, function Trig_Team2_Path2_13_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Path2 14 | |
//=========================================================================== | |
function Trig_Team2_Path2_14_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Path2_14_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team2__Path2_15) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Path2_14 takes nothing returns nothing | |
set gg_trg_Team2_Path2_14 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Path2_14, gg_rct_Team2__Path2_14 ) | |
call TriggerAddCondition( gg_trg_Team2_Path2_14, Condition( function Trig_Team2_Path2_14_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Path2_14, function Trig_Team2_Path2_14_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Path2 15 | |
//=========================================================================== | |
function Trig_Team2_Path2_15_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Path2_15_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team2__End) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Path2_15 takes nothing returns nothing | |
set gg_trg_Team2_Path2_15 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Path2_15, gg_rct_Team2__Path2_15 ) | |
call TriggerAddCondition( gg_trg_Team2_Path2_15, Condition( function Trig_Team2_Path2_15_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Path2_15, function Trig_Team2_Path2_15_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Path3 Start | |
//=========================================================================== | |
function Trig_Team2_Path3_Start_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Path3_Start_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team2__Path3_01) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Path3_Start takes nothing returns nothing | |
set gg_trg_Team2_Path3_Start = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Path3_Start, gg_rct_Team2__Path3_Start ) | |
call TriggerAddCondition( gg_trg_Team2_Path3_Start, Condition( function Trig_Team2_Path3_Start_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Path3_Start, function Trig_Team2_Path3_Start_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Path3 01 | |
//=========================================================================== | |
function Trig_Team2_Path3_01_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Path3_01_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team2__Path3_02) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Path3_01 takes nothing returns nothing | |
set gg_trg_Team2_Path3_01 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Path3_01, gg_rct_Team2__Path3_01 ) | |
call TriggerAddCondition( gg_trg_Team2_Path3_01, Condition( function Trig_Team2_Path3_01_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Path3_01, function Trig_Team2_Path3_01_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Path3 02 | |
//=========================================================================== | |
function Trig_Team2_Path3_02_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Path3_02_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team2__Path3_03) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Path3_02 takes nothing returns nothing | |
set gg_trg_Team2_Path3_02 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Path3_02, gg_rct_Team2__Path3_02 ) | |
call TriggerAddCondition( gg_trg_Team2_Path3_02, Condition( function Trig_Team2_Path3_02_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Path3_02, function Trig_Team2_Path3_02_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Path3 03 | |
//=========================================================================== | |
function Trig_Team2_Path3_03_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Path3_03_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team2__Path3_04) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Path3_03 takes nothing returns nothing | |
set gg_trg_Team2_Path3_03 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Path3_03, gg_rct_Team2__Path3_03 ) | |
call TriggerAddCondition( gg_trg_Team2_Path3_03, Condition( function Trig_Team2_Path3_03_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Path3_03, function Trig_Team2_Path3_03_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Path3 04 | |
//=========================================================================== | |
function Trig_Team2_Path3_04_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Path3_04_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team2__Path3_05) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Path3_04 takes nothing returns nothing | |
set gg_trg_Team2_Path3_04 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Path3_04, gg_rct_Team2__Path3_04 ) | |
call TriggerAddCondition( gg_trg_Team2_Path3_04, Condition( function Trig_Team2_Path3_04_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Path3_04, function Trig_Team2_Path3_04_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Path3 05 | |
//=========================================================================== | |
function Trig_Team2_Path3_05_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Path3_05_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team2__Path3_06) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Path3_05 takes nothing returns nothing | |
set gg_trg_Team2_Path3_05 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Path3_05, gg_rct_Team2__Path3_05 ) | |
call TriggerAddCondition( gg_trg_Team2_Path3_05, Condition( function Trig_Team2_Path3_05_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Path3_05, function Trig_Team2_Path3_05_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Path3 06 | |
//=========================================================================== | |
function Trig_Team2_Path3_06_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Path3_06_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team2__Path3_07) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Path3_06 takes nothing returns nothing | |
set gg_trg_Team2_Path3_06 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Path3_06, gg_rct_Team2__Path3_06 ) | |
call TriggerAddCondition( gg_trg_Team2_Path3_06, Condition( function Trig_Team2_Path3_06_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Path3_06, function Trig_Team2_Path3_06_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Path3 07 | |
//=========================================================================== | |
function Trig_Team2_Path3_07_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Path3_07_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team2__Path3_08) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Path3_07 takes nothing returns nothing | |
set gg_trg_Team2_Path3_07 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Path3_07, gg_rct_Team2__Path3_07 ) | |
call TriggerAddCondition( gg_trg_Team2_Path3_07, Condition( function Trig_Team2_Path3_07_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Path3_07, function Trig_Team2_Path3_07_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Path3 08 | |
//=========================================================================== | |
function Trig_Team2_Path3_08_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Path3_08_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team2__Path3_09) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Path3_08 takes nothing returns nothing | |
set gg_trg_Team2_Path3_08 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Path3_08, gg_rct_Team2__Path3_08 ) | |
call TriggerAddCondition( gg_trg_Team2_Path3_08, Condition( function Trig_Team2_Path3_08_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Path3_08, function Trig_Team2_Path3_08_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Path3 09 | |
//=========================================================================== | |
function Trig_Team2_Path3_09_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Path3_09_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team2__Path3_10) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Path3_09 takes nothing returns nothing | |
set gg_trg_Team2_Path3_09 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Path3_09, gg_rct_Team2__Path3_09 ) | |
call TriggerAddCondition( gg_trg_Team2_Path3_09, Condition( function Trig_Team2_Path3_09_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Path3_09, function Trig_Team2_Path3_09_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Path3 10 | |
//=========================================================================== | |
function Trig_Team2_Path3_10_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Path3_10_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team2__Path3_11) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Path3_10 takes nothing returns nothing | |
set gg_trg_Team2_Path3_10 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Path3_10, gg_rct_Team2__Path3_10 ) | |
call TriggerAddCondition( gg_trg_Team2_Path3_10, Condition( function Trig_Team2_Path3_10_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Path3_10, function Trig_Team2_Path3_10_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Path3 11 | |
//=========================================================================== | |
function Trig_Team2_Path3_11_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Path3_11_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team2__End) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Path3_11 takes nothing returns nothing | |
set gg_trg_Team2_Path3_11 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Path3_11, gg_rct_Team2__Path3_11 ) | |
call TriggerAddCondition( gg_trg_Team2_Path3_11, Condition( function Trig_Team2_Path3_11_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Path3_11, function Trig_Team2_Path3_11_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 End | |
//=========================================================================== | |
function Trig_Team2_End_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(10) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_End_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "move", GetRandomLocInRect(gg_rct_Center_Death) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_End takes nothing returns nothing | |
set gg_trg_Team2_End = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_End, gg_rct_Team2__End ) | |
call TriggerAddCondition( gg_trg_Team2_End, Condition( function Trig_Team2_End_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_End, function Trig_Team2_End_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Move Attackers | |
//=========================================================================== | |
function Trig_Team3_Move_Attackers_Actions takes nothing returns nothing | |
call SetUnitPositionLoc( GetTriggerUnit(), GetRandomLocInRect(gg_rct_Team3__Attacker_Spawn) ) | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team3__Path2_10) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Move_Attackers takes nothing returns nothing | |
set gg_trg_Team3_Move_Attackers = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Team3_Move_Attackers, function Trig_Team3_Move_Attackers_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Init Creep Array | |
//=========================================================================== | |
function Trig_Team3_Init_Creep_Array_Func002001 takes nothing returns boolean | |
return ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_UNDEAD) == true ) | |
endfunction | |
function Trig_Team3_Init_Creep_Array_Func003001 takes nothing returns boolean | |
return ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_UNDEAD) == true ) | |
endfunction | |
function Trig_Team3_Init_Creep_Array_Actions takes nothing returns nothing | |
call SetUnitPathing( GetTriggerUnit(), false ) | |
if ( Trig_Team3_Init_Creep_Array_Func002001() ) then | |
call TriggerExecute( gg_trg_Team3_Move_Attackers ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team3_Init_Creep_Array_Func003001() ) then | |
return | |
else | |
call DoNothing( ) | |
endif | |
set udg_Team3Creeps = ( udg_Team3Creeps + 1 ) | |
set udg_Team3CreepsArray[udg_Team3Creeps] = GetTriggerUnit() | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Init_Creep_Array takes nothing returns nothing | |
set gg_trg_Team3_Init_Creep_Array = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Init_Creep_Array, gg_rct_Team3__Entrance ) | |
call TriggerAddAction( gg_trg_Team3_Init_Creep_Array, function Trig_Team3_Init_Creep_Array_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Sorter Copy | |
//=========================================================================== | |
function Trig_Team2_Sorter_Copy_Conditions takes nothing returns boolean | |
if ( not ( udg_Team3Creeps > 0 ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Sorter_Copy_Actions takes nothing returns nothing | |
call ConditionalTriggerExecute( udg_Team3SortTriggers[udg_Team3Sorter] ) | |
call ConditionalTriggerExecute( udg_Team3SortTriggers[udg_Team3Sorter] ) | |
call ConditionalTriggerExecute( udg_Team3SortTriggers[udg_Team3Sorter] ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Sorter_Copy takes nothing returns nothing | |
set gg_trg_Team2_Sorter_Copy = CreateTrigger( ) | |
call TriggerRegisterTimerEventPeriodic( gg_trg_Team2_Sorter_Copy, 0.40 ) | |
call TriggerAddCondition( gg_trg_Team2_Sorter_Copy, Condition( function Trig_Team2_Sorter_Copy_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Sorter_Copy, function Trig_Team2_Sorter_Copy_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Sort Spot 1 | |
//=========================================================================== | |
function Trig_Team3_Sort_Spot_1_Conditions takes nothing returns boolean | |
if ( not ( udg_Team3Creeps > 0 ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Sort_Spot_1_Func004001 takes nothing returns boolean | |
return ( udg_Team3Sorter >= 2 ) | |
endfunction | |
function Trig_Team3_Sort_Spot_1_Actions takes nothing returns nothing | |
call SetUnitPositionLoc( udg_Team3CreepsArray[udg_Team3Creeps], GetRectCenter(udg_Team3Spots[0]) ) | |
set udg_Team3Creeps = ( udg_Team3Creeps - 1 ) | |
if ( Trig_Team3_Sort_Spot_1_Func004001() ) then | |
set udg_Team3Sorter = 0 | |
else | |
set udg_Team3Sorter = ( udg_Team3Sorter + 1 ) | |
endif | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Sort_Spot_1 takes nothing returns nothing | |
set gg_trg_Team3_Sort_Spot_1 = CreateTrigger( ) | |
call TriggerAddCondition( gg_trg_Team3_Sort_Spot_1, Condition( function Trig_Team3_Sort_Spot_1_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Sort_Spot_1, function Trig_Team3_Sort_Spot_1_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Sort Spot 2 | |
//=========================================================================== | |
function Trig_Team3_Sort_Spot_2_Conditions takes nothing returns boolean | |
if ( not ( udg_Team3Creeps > 0 ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Sort_Spot_2_Func004001 takes nothing returns boolean | |
return ( udg_Team3Sorter >= 2 ) | |
endfunction | |
function Trig_Team3_Sort_Spot_2_Actions takes nothing returns nothing | |
call SetUnitPositionLoc( udg_Team3CreepsArray[udg_Team3Creeps], GetRectCenter(udg_Team3Spots[1]) ) | |
set udg_Team3Creeps = ( udg_Team3Creeps - 1 ) | |
if ( Trig_Team3_Sort_Spot_2_Func004001() ) then | |
set udg_Team3Sorter = 0 | |
else | |
set udg_Team3Sorter = ( udg_Team3Sorter + 1 ) | |
endif | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Sort_Spot_2 takes nothing returns nothing | |
set gg_trg_Team3_Sort_Spot_2 = CreateTrigger( ) | |
call TriggerAddCondition( gg_trg_Team3_Sort_Spot_2, Condition( function Trig_Team3_Sort_Spot_2_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Sort_Spot_2, function Trig_Team3_Sort_Spot_2_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Sort Spot 3 | |
//=========================================================================== | |
function Trig_Team3_Sort_Spot_3_Conditions takes nothing returns boolean | |
if ( not ( udg_Team3Creeps > 0 ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Sort_Spot_3_Func004001 takes nothing returns boolean | |
return ( udg_Team3Sorter >= 2 ) | |
endfunction | |
function Trig_Team3_Sort_Spot_3_Actions takes nothing returns nothing | |
call SetUnitPositionLoc( udg_Team3CreepsArray[udg_Team3Creeps], GetRectCenter(udg_Team3Spots[2]) ) | |
set udg_Team3Creeps = ( udg_Team3Creeps - 1 ) | |
if ( Trig_Team3_Sort_Spot_3_Func004001() ) then | |
set udg_Team3Sorter = 0 | |
else | |
set udg_Team3Sorter = ( udg_Team3Sorter + 1 ) | |
endif | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Sort_Spot_3 takes nothing returns nothing | |
set gg_trg_Team3_Sort_Spot_3 = CreateTrigger( ) | |
call TriggerAddCondition( gg_trg_Team3_Sort_Spot_3, Condition( function Trig_Team3_Sort_Spot_3_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Sort_Spot_3, function Trig_Team3_Sort_Spot_3_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Spawn | |
//=========================================================================== | |
function Trig_Team3_Spawn_Conditions takes nothing returns boolean | |
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_STRUCTURE) == false ) ) then | |
return false | |
endif | |
if ( not ( GetUnitTypeId(GetTriggerUnit()) != 'uC09' ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Spawn_Func001001 takes nothing returns boolean | |
return ( udg_Profiles[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))] == 0 ) | |
endfunction | |
function Trig_Team3_Spawn_Func004001 takes nothing returns boolean | |
return ( udg_Team1Lives > 0 ) | |
endfunction | |
function Trig_Team3_Spawn_Func004003001 takes nothing returns boolean | |
return ( udg_Team2Lives > 0 ) | |
endfunction | |
function Trig_Team3_Spawn_Func005001 takes nothing returns boolean | |
return ( udg_Team1Lives > 0 ) | |
endfunction | |
function Trig_Team3_Spawn_Func005003001 takes nothing returns boolean | |
return ( udg_Team2Lives > 0 ) | |
endfunction | |
function Trig_Team3_Spawn_Func006001 takes nothing returns boolean | |
return ( udg_Team2Lives > 0 ) | |
endfunction | |
function Trig_Team3_Spawn_Func006003001 takes nothing returns boolean | |
return ( udg_Team1Lives > 0 ) | |
endfunction | |
function Trig_Team3_Spawn_Func007001 takes nothing returns boolean | |
return ( udg_Team2Lives > 0 ) | |
endfunction | |
function Trig_Team3_Spawn_Func007003001 takes nothing returns boolean | |
return ( udg_Team1Lives > 0 ) | |
endfunction | |
function Trig_Team3_Spawn_Actions takes nothing returns nothing | |
if ( Trig_Team3_Spawn_Func001001() ) then | |
set udg_Income[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))] = ( udg_Income[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))] + I2R(GetUnitPointValue(GetTriggerUnit())) ) | |
else | |
set udg_Income[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))] = ( udg_Income[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))] + ( I2R(GetUnitPointValue(GetTriggerUnit())) / 2.00 ) ) | |
endif | |
if ( Trig_Team3_Spawn_Func004001() ) then | |
call CreateNUnitsAtLoc( 1, GetUnitTypeId(GetTriggerUnit()), GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Team1__Entrance), bj_UNIT_FACING ) | |
else | |
if ( Trig_Team3_Spawn_Func004003001() ) then | |
call CreateNUnitsAtLoc( 1, GetUnitTypeId(GetTriggerUnit()), GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_Team2__Entrance), bj_UNIT_FACING ) | |
else | |
call DoNothing( ) | |
endif | |
endif | |
if ( Trig_Team3_Spawn_Func005001() ) then | |
call SetUnitOwner( GetLastCreatedUnit(), Player(9), false ) | |
else | |
if ( Trig_Team3_Spawn_Func005003001() ) then | |
call SetUnitOwner( GetLastCreatedUnit(), Player(10), false ) | |
else | |
call DoNothing( ) | |
endif | |
endif | |
if ( Trig_Team3_Spawn_Func006001() ) then | |
call SetUnitOwner( GetTriggerUnit(), Player(10), false ) | |
else | |
if ( Trig_Team3_Spawn_Func006003001() ) then | |
call SetUnitOwner( GetTriggerUnit(), Player(9), false ) | |
else | |
call RemoveUnit( GetTriggerUnit() ) | |
endif | |
endif | |
if ( Trig_Team3_Spawn_Func007001() ) then | |
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Team2__Entrance) ) | |
else | |
if ( Trig_Team3_Spawn_Func007003001() ) then | |
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Team1__Entrance) ) | |
else | |
call DoNothing( ) | |
endif | |
endif | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Spawn takes nothing returns nothing | |
set gg_trg_Team3_Spawn = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Spawn, gg_rct_Team3__Spawn ) | |
call TriggerAddCondition( gg_trg_Team3_Spawn, Condition( function Trig_Team3_Spawn_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Spawn, function Trig_Team3_Spawn_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Move Workers | |
//=========================================================================== | |
function Trig_Team3_Move_Workers_Conditions takes nothing returns boolean | |
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'uC09' ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Move_Workers_Actions takes nothing returns nothing | |
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Team3__Entrance_Workers) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Move_Workers takes nothing returns nothing | |
set gg_trg_Team3_Move_Workers = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Move_Workers, gg_rct_Team3__Spawn_Workers ) | |
call TriggerAddCondition( gg_trg_Team3_Move_Workers, Condition( function Trig_Team3_Move_Workers_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Move_Workers, function Trig_Team3_Move_Workers_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Path1 Start | |
//=========================================================================== | |
function Trig_Team3_Path1_Start_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Path1_Start_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team3__Path1_01) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Path1_Start takes nothing returns nothing | |
set gg_trg_Team3_Path1_Start = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Path1_Start, gg_rct_Team3__Path1_Start ) | |
call TriggerAddCondition( gg_trg_Team3_Path1_Start, Condition( function Trig_Team3_Path1_Start_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Path1_Start, function Trig_Team3_Path1_Start_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Path1 01 | |
//=========================================================================== | |
function Trig_Team3_Path1_01_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Path1_01_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team3__Path1_02) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Path1_01 takes nothing returns nothing | |
set gg_trg_Team3_Path1_01 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Path1_01, gg_rct_Team3__Path1_01 ) | |
call TriggerAddCondition( gg_trg_Team3_Path1_01, Condition( function Trig_Team3_Path1_01_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Path1_01, function Trig_Team3_Path1_01_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Path1 02 | |
//=========================================================================== | |
function Trig_Team3_Path1_02_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Path1_02_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team3__Path1_03) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Path1_02 takes nothing returns nothing | |
set gg_trg_Team3_Path1_02 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Path1_02, gg_rct_Team3__Path1_02 ) | |
call TriggerAddCondition( gg_trg_Team3_Path1_02, Condition( function Trig_Team3_Path1_02_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Path1_02, function Trig_Team3_Path1_02_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Path1 03 | |
//=========================================================================== | |
function Trig_Team3_Path1_03_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Path1_03_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team3__Path1_04) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Path1_03 takes nothing returns nothing | |
set gg_trg_Team3_Path1_03 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Path1_03, gg_rct_Team3__Path1_03 ) | |
call TriggerAddCondition( gg_trg_Team3_Path1_03, Condition( function Trig_Team3_Path1_03_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Path1_03, function Trig_Team3_Path1_03_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Path1 04 | |
//=========================================================================== | |
function Trig_Team3_Path1_04_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Path1_04_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team3__Path1_05) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Path1_04 takes nothing returns nothing | |
set gg_trg_Team3_Path1_04 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Path1_04, gg_rct_Team3__Path1_04 ) | |
call TriggerAddCondition( gg_trg_Team3_Path1_04, Condition( function Trig_Team3_Path1_04_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Path1_04, function Trig_Team3_Path1_04_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Path1 05 | |
//=========================================================================== | |
function Trig_Team3_Path1_05_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Path1_05_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team3__Path1_06) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Path1_05 takes nothing returns nothing | |
set gg_trg_Team3_Path1_05 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Path1_05, gg_rct_Team3__Path1_05 ) | |
call TriggerAddCondition( gg_trg_Team3_Path1_05, Condition( function Trig_Team3_Path1_05_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Path1_05, function Trig_Team3_Path1_05_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Path1 06 | |
//=========================================================================== | |
function Trig_Team3_Path1_06_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Path1_06_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team3__Path1_07) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Path1_06 takes nothing returns nothing | |
set gg_trg_Team3_Path1_06 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Path1_06, gg_rct_Team3__Path1_06 ) | |
call TriggerAddCondition( gg_trg_Team3_Path1_06, Condition( function Trig_Team3_Path1_06_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Path1_06, function Trig_Team3_Path1_06_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Path1 07 | |
//=========================================================================== | |
function Trig_Team3_Path1_07_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Path1_07_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team3__Path1_08) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Path1_07 takes nothing returns nothing | |
set gg_trg_Team3_Path1_07 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Path1_07, gg_rct_Team3__Path1_07 ) | |
call TriggerAddCondition( gg_trg_Team3_Path1_07, Condition( function Trig_Team3_Path1_07_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Path1_07, function Trig_Team3_Path1_07_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Path1 08 | |
//=========================================================================== | |
function Trig_Team3_Path1_08_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Path1_08_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team3__Path1_09) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Path1_08 takes nothing returns nothing | |
set gg_trg_Team3_Path1_08 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Path1_08, gg_rct_Team3__Path1_08 ) | |
call TriggerAddCondition( gg_trg_Team3_Path1_08, Condition( function Trig_Team3_Path1_08_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Path1_08, function Trig_Team3_Path1_08_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Path1 09 | |
//=========================================================================== | |
function Trig_Team3_Path1_09_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Path1_09_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team3__Path1_10) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Path1_09 takes nothing returns nothing | |
set gg_trg_Team3_Path1_09 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Path1_09, gg_rct_Team3__Path1_09 ) | |
call TriggerAddCondition( gg_trg_Team3_Path1_09, Condition( function Trig_Team3_Path1_09_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Path1_09, function Trig_Team3_Path1_09_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Path1 10 | |
//=========================================================================== | |
function Trig_Team3_Path1_10_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Path1_10_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team3__Path1_11) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Path1_10 takes nothing returns nothing | |
set gg_trg_Team3_Path1_10 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Path1_10, gg_rct_Team3__Path1_10 ) | |
call TriggerAddCondition( gg_trg_Team3_Path1_10, Condition( function Trig_Team3_Path1_10_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Path1_10, function Trig_Team3_Path1_10_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Path1 11 | |
//=========================================================================== | |
function Trig_Team3_Path1_11_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Path1_11_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team3__Path1_12) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Path1_11 takes nothing returns nothing | |
set gg_trg_Team3_Path1_11 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Path1_11, gg_rct_Team3__Path1_11 ) | |
call TriggerAddCondition( gg_trg_Team3_Path1_11, Condition( function Trig_Team3_Path1_11_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Path1_11, function Trig_Team3_Path1_11_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Path1 12 | |
//=========================================================================== | |
function Trig_Team3_Path1_12_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Path1_12_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team3__End) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Path1_12 takes nothing returns nothing | |
set gg_trg_Team3_Path1_12 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Path1_12, gg_rct_Team3__Path1_12 ) | |
call TriggerAddCondition( gg_trg_Team3_Path1_12, Condition( function Trig_Team3_Path1_12_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Path1_12, function Trig_Team3_Path1_12_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Path2 Start | |
//=========================================================================== | |
function Trig_Team3_Path2_Start_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Path2_Start_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team3__Path2_01) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Path2_Start takes nothing returns nothing | |
set gg_trg_Team3_Path2_Start = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Path2_Start, gg_rct_Team3__Path2_Start ) | |
call TriggerAddCondition( gg_trg_Team3_Path2_Start, Condition( function Trig_Team3_Path2_Start_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Path2_Start, function Trig_Team3_Path2_Start_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Path2 01 | |
//=========================================================================== | |
function Trig_Team3_Path2_01_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Path2_01_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team3__Path2_02) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Path2_01 takes nothing returns nothing | |
set gg_trg_Team3_Path2_01 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Path2_01, gg_rct_Team3__Path2_01 ) | |
call TriggerAddCondition( gg_trg_Team3_Path2_01, Condition( function Trig_Team3_Path2_01_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Path2_01, function Trig_Team3_Path2_01_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Path2 02 | |
//=========================================================================== | |
function Trig_Team3_Path2_02_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Path2_02_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team3__Path2_03) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Path2_02 takes nothing returns nothing | |
set gg_trg_Team3_Path2_02 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Path2_02, gg_rct_Team3__Path2_02 ) | |
call TriggerAddCondition( gg_trg_Team3_Path2_02, Condition( function Trig_Team3_Path2_02_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Path2_02, function Trig_Team3_Path2_02_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Path2 03 | |
//=========================================================================== | |
function Trig_Team3_Path2_03_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Path2_03_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team3__Path2_04) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Path2_03 takes nothing returns nothing | |
set gg_trg_Team3_Path2_03 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Path2_03, gg_rct_Team3__Path2_03 ) | |
call TriggerAddCondition( gg_trg_Team3_Path2_03, Condition( function Trig_Team3_Path2_03_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Path2_03, function Trig_Team3_Path2_03_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Path2 04 | |
//=========================================================================== | |
function Trig_Team3_Path2_04_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Path2_04_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team3__Path2_05) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Path2_04 takes nothing returns nothing | |
set gg_trg_Team3_Path2_04 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Path2_04, gg_rct_Team3__Path2_04 ) | |
call TriggerAddCondition( gg_trg_Team3_Path2_04, Condition( function Trig_Team3_Path2_04_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Path2_04, function Trig_Team3_Path2_04_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Path2 05 | |
//=========================================================================== | |
function Trig_Team3_Path2_05_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Path2_05_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team3__Path2_06) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Path2_05 takes nothing returns nothing | |
set gg_trg_Team3_Path2_05 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Path2_05, gg_rct_Team3__Path2_05 ) | |
call TriggerAddCondition( gg_trg_Team3_Path2_05, Condition( function Trig_Team3_Path2_05_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Path2_05, function Trig_Team3_Path2_05_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Path2 06 | |
//=========================================================================== | |
function Trig_Team3_Path2_06_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Path2_06_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team3__Path2_07) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Path2_06 takes nothing returns nothing | |
set gg_trg_Team3_Path2_06 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Path2_06, gg_rct_Team3__Path2_06 ) | |
call TriggerAddCondition( gg_trg_Team3_Path2_06, Condition( function Trig_Team3_Path2_06_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Path2_06, function Trig_Team3_Path2_06_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Path2 07 | |
//=========================================================================== | |
function Trig_Team3_Path2_07_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Path2_07_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team3__Path2_08) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Path2_07 takes nothing returns nothing | |
set gg_trg_Team3_Path2_07 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Path2_07, gg_rct_Team3__Path2_07 ) | |
call TriggerAddCondition( gg_trg_Team3_Path2_07, Condition( function Trig_Team3_Path2_07_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Path2_07, function Trig_Team3_Path2_07_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Path2 08 | |
//=========================================================================== | |
function Trig_Team3_Path2_08_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Path2_08_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team3__Path2_09) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Path2_08 takes nothing returns nothing | |
set gg_trg_Team3_Path2_08 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Path2_08, gg_rct_Team3__Path2_08 ) | |
call TriggerAddCondition( gg_trg_Team3_Path2_08, Condition( function Trig_Team3_Path2_08_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Path2_08, function Trig_Team3_Path2_08_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Path2 09 | |
//=========================================================================== | |
function Trig_Team3_Path2_09_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Path2_09_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team3__Path2_10) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Path2_09 takes nothing returns nothing | |
set gg_trg_Team3_Path2_09 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Path2_09, gg_rct_Team3__Path2_09 ) | |
call TriggerAddCondition( gg_trg_Team3_Path2_09, Condition( function Trig_Team3_Path2_09_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Path2_09, function Trig_Team3_Path2_09_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Path2 10 | |
//=========================================================================== | |
function Trig_Team3_Path2_10_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Path2_10_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team3__Path2_11) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Path2_10 takes nothing returns nothing | |
set gg_trg_Team3_Path2_10 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Path2_10, gg_rct_Team3__Path2_10 ) | |
call TriggerAddCondition( gg_trg_Team3_Path2_10, Condition( function Trig_Team3_Path2_10_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Path2_10, function Trig_Team3_Path2_10_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Path2 11 | |
//=========================================================================== | |
function Trig_Team3_Path2_11_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Path2_11_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team3__Path2_12) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Path2_11 takes nothing returns nothing | |
set gg_trg_Team3_Path2_11 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Path2_11, gg_rct_Team3__Path2_11 ) | |
call TriggerAddCondition( gg_trg_Team3_Path2_11, Condition( function Trig_Team3_Path2_11_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Path2_11, function Trig_Team3_Path2_11_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Path2 12 | |
//=========================================================================== | |
function Trig_Team3_Path2_12_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Path2_12_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team3__Path2_13) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Path2_12 takes nothing returns nothing | |
set gg_trg_Team3_Path2_12 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Path2_12, gg_rct_Team3__Path2_12 ) | |
call TriggerAddCondition( gg_trg_Team3_Path2_12, Condition( function Trig_Team3_Path2_12_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Path2_12, function Trig_Team3_Path2_12_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Path2 13 | |
//=========================================================================== | |
function Trig_Team3_Path2_13_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Path2_13_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team3__Path2_14) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Path2_13 takes nothing returns nothing | |
set gg_trg_Team3_Path2_13 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Path2_13, gg_rct_Team3__Path2_13 ) | |
call TriggerAddCondition( gg_trg_Team3_Path2_13, Condition( function Trig_Team3_Path2_13_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Path2_13, function Trig_Team3_Path2_13_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Path2 14 | |
//=========================================================================== | |
function Trig_Team3_Path2_14_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Path2_14_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team3__Path2_15) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Path2_14 takes nothing returns nothing | |
set gg_trg_Team3_Path2_14 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Path2_14, gg_rct_Team3__Path2_14 ) | |
call TriggerAddCondition( gg_trg_Team3_Path2_14, Condition( function Trig_Team3_Path2_14_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Path2_14, function Trig_Team3_Path2_14_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Path2 15 | |
//=========================================================================== | |
function Trig_Team3_Path2_15_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Path2_15_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team3__End) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Path2_15 takes nothing returns nothing | |
set gg_trg_Team3_Path2_15 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Path2_15, gg_rct_Team3__Path2_15 ) | |
call TriggerAddCondition( gg_trg_Team3_Path2_15, Condition( function Trig_Team3_Path2_15_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Path2_15, function Trig_Team3_Path2_15_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Path3 Start | |
//=========================================================================== | |
function Trig_Team3_Path3_Start_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Path3_Start_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team3__Path3_01) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Path3_Start takes nothing returns nothing | |
set gg_trg_Team3_Path3_Start = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Path3_Start, gg_rct_Team3__Path3_Start ) | |
call TriggerAddCondition( gg_trg_Team3_Path3_Start, Condition( function Trig_Team3_Path3_Start_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Path3_Start, function Trig_Team3_Path3_Start_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Path3 01 | |
//=========================================================================== | |
function Trig_Team3_Path3_01_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Path3_01_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team3__Path3_02) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Path3_01 takes nothing returns nothing | |
set gg_trg_Team3_Path3_01 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Path3_01, gg_rct_Team3__Path3_01 ) | |
call TriggerAddCondition( gg_trg_Team3_Path3_01, Condition( function Trig_Team3_Path3_01_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Path3_01, function Trig_Team3_Path3_01_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Path3 02 | |
//=========================================================================== | |
function Trig_Team3_Path3_02_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Path3_02_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team3__Path3_03) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Path3_02 takes nothing returns nothing | |
set gg_trg_Team3_Path3_02 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Path3_02, gg_rct_Team3__Path3_02 ) | |
call TriggerAddCondition( gg_trg_Team3_Path3_02, Condition( function Trig_Team3_Path3_02_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Path3_02, function Trig_Team3_Path3_02_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Path3 03 | |
//=========================================================================== | |
function Trig_Team3_Path3_03_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Path3_03_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team3__Path3_04) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Path3_03 takes nothing returns nothing | |
set gg_trg_Team3_Path3_03 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Path3_03, gg_rct_Team3__Path3_03 ) | |
call TriggerAddCondition( gg_trg_Team3_Path3_03, Condition( function Trig_Team3_Path3_03_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Path3_03, function Trig_Team3_Path3_03_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Path3 04 | |
//=========================================================================== | |
function Trig_Team3_Path3_04_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Path3_04_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team3__Path3_05) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Path3_04 takes nothing returns nothing | |
set gg_trg_Team3_Path3_04 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Path3_04, gg_rct_Team3__Path3_04 ) | |
call TriggerAddCondition( gg_trg_Team3_Path3_04, Condition( function Trig_Team3_Path3_04_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Path3_04, function Trig_Team3_Path3_04_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Path3 05 | |
//=========================================================================== | |
function Trig_Team3_Path3_05_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Path3_05_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team3__Path3_06) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Path3_05 takes nothing returns nothing | |
set gg_trg_Team3_Path3_05 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Path3_05, gg_rct_Team3__Path3_05 ) | |
call TriggerAddCondition( gg_trg_Team3_Path3_05, Condition( function Trig_Team3_Path3_05_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Path3_05, function Trig_Team3_Path3_05_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Path3 06 | |
//=========================================================================== | |
function Trig_Team3_Path3_06_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Path3_06_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team3__Path3_07) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Path3_06 takes nothing returns nothing | |
set gg_trg_Team3_Path3_06 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Path3_06, gg_rct_Team3__Path3_06 ) | |
call TriggerAddCondition( gg_trg_Team3_Path3_06, Condition( function Trig_Team3_Path3_06_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Path3_06, function Trig_Team3_Path3_06_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Path3 07 | |
//=========================================================================== | |
function Trig_Team3_Path3_07_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Path3_07_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team3__Path3_08) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Path3_07 takes nothing returns nothing | |
set gg_trg_Team3_Path3_07 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Path3_07, gg_rct_Team3__Path3_07 ) | |
call TriggerAddCondition( gg_trg_Team3_Path3_07, Condition( function Trig_Team3_Path3_07_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Path3_07, function Trig_Team3_Path3_07_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Path3 08 | |
//=========================================================================== | |
function Trig_Team3_Path3_08_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Path3_08_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team3__Path3_09) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Path3_08 takes nothing returns nothing | |
set gg_trg_Team3_Path3_08 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Path3_08, gg_rct_Team3__Path3_08 ) | |
call TriggerAddCondition( gg_trg_Team3_Path3_08, Condition( function Trig_Team3_Path3_08_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Path3_08, function Trig_Team3_Path3_08_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Path3 09 | |
//=========================================================================== | |
function Trig_Team3_Path3_09_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Path3_09_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team3__Path3_10) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Path3_09 takes nothing returns nothing | |
set gg_trg_Team3_Path3_09 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Path3_09, gg_rct_Team3__Path3_09 ) | |
call TriggerAddCondition( gg_trg_Team3_Path3_09, Condition( function Trig_Team3_Path3_09_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Path3_09, function Trig_Team3_Path3_09_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Path3 10 | |
//=========================================================================== | |
function Trig_Team3_Path3_10_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Path3_10_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Team3__End) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Path3_10 takes nothing returns nothing | |
set gg_trg_Team3_Path3_10 = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Path3_10, gg_rct_Team3__Path3_10 ) | |
call TriggerAddCondition( gg_trg_Team3_Path3_10, Condition( function Trig_Team3_Path3_10_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Path3_10, function Trig_Team3_Path3_10_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 End | |
//=========================================================================== | |
function Trig_Team3_End_Conditions takes nothing returns boolean | |
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_End_Actions takes nothing returns nothing | |
call IssuePointOrderLocBJ( GetTriggerUnit(), "move", GetRandomLocInRect(gg_rct_Center_Death) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_End takes nothing returns nothing | |
set gg_trg_Team3_End = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_End, gg_rct_Team3__End ) | |
call TriggerAddCondition( gg_trg_Team3_End, Condition( function Trig_Team3_End_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_End, function Trig_Team3_End_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Transport | |
//=========================================================================== | |
function Trig_Team1_Transport_Func001002 takes nothing returns nothing | |
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Team1__Entrance_Workers) ) | |
endfunction | |
function Trig_Team1_Transport_Actions takes nothing returns nothing | |
call ForGroupBJ( GetUnitsOfPlayerAndTypeId(GetTriggerPlayer(), 'uC09'), function Trig_Team1_Transport_Func001002 ) | |
call DisplayTimedTextToForce( GetForceOfPlayer(GetTriggerPlayer()), 10.00, "TRIGSTR_101" ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Transport takes nothing returns nothing | |
set gg_trg_Team1_Transport = CreateTrigger( ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Team1_Transport, Player(0), "-transport", false ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Team1_Transport, Player(1), "-transport", false ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Team1_Transport, Player(2), "-transport", false ) | |
call TriggerAddAction( gg_trg_Team1_Transport, function Trig_Team1_Transport_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Transport | |
//=========================================================================== | |
function Trig_Team2_Transport_Func001002 takes nothing returns nothing | |
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Team2__Entrance_Workers) ) | |
endfunction | |
function Trig_Team2_Transport_Actions takes nothing returns nothing | |
call ForGroupBJ( GetUnitsOfPlayerAndTypeId(GetTriggerPlayer(), 'uC09'), function Trig_Team2_Transport_Func001002 ) | |
call DisplayTimedTextToForce( GetForceOfPlayer(GetTriggerPlayer()), 10.00, "TRIGSTR_135" ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Transport takes nothing returns nothing | |
set gg_trg_Team2_Transport = CreateTrigger( ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Team2_Transport, Player(3), "-transport", false ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Team2_Transport, Player(4), "-transport", false ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Team2_Transport, Player(5), "-transport", false ) | |
call TriggerAddAction( gg_trg_Team2_Transport, function Trig_Team2_Transport_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Transport | |
//=========================================================================== | |
function Trig_Team3_Transport_Func001002 takes nothing returns nothing | |
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Team3__Entrance_Workers) ) | |
endfunction | |
function Trig_Team3_Transport_Actions takes nothing returns nothing | |
call ForGroupBJ( GetUnitsOfPlayerAndTypeId(GetTriggerPlayer(), 'uC09'), function Trig_Team3_Transport_Func001002 ) | |
call DisplayTimedTextToForce( GetForceOfPlayer(GetTriggerPlayer()), 10.00, "TRIGSTR_137" ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Transport takes nothing returns nothing | |
set gg_trg_Team3_Transport = CreateTrigger( ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Team3_Transport, Player(6), "-transport", false ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Team3_Transport, Player(7), "-transport", false ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Team3_Transport, Player(8), "-transport", false ) | |
call TriggerAddAction( gg_trg_Team3_Transport, function Trig_Team3_Transport_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Give Gold | |
//=========================================================================== | |
function Trig_Team1_Give_Gold_Conditions takes nothing returns boolean | |
if ( not ( GetEventPlayerChatString() != "give " ) ) then | |
return false | |
endif | |
if ( not ( S2I(SubStringBJ(GetEventPlayerChatString(), 6, 6)) > 0 ) ) then | |
return false | |
endif | |
if ( not ( SubStringBJ(GetEventPlayerChatString(), 7, 7) == " " ) ) then | |
return false | |
endif | |
if ( not ( S2I(SubStringBJ(GetEventPlayerChatString(), 8, 13)) > 0 ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Give_Gold_Func005001 takes nothing returns boolean | |
return ( GetPlayerSlotState(ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 6, 6)))) != PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team1_Give_Gold_Func006001 takes nothing returns boolean | |
return ( GetPlayerSlotState(ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 6, 6)))) != PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team1_Give_Gold_Func007001001 takes nothing returns boolean | |
return ( S2I(SubStringBJ(GetEventPlayerChatString(), 6, 6)) < 1 ) | |
endfunction | |
function Trig_Team1_Give_Gold_Func007001002 takes nothing returns boolean | |
return ( S2I(SubStringBJ(GetEventPlayerChatString(), 6, 6)) > 3 ) | |
endfunction | |
function Trig_Team1_Give_Gold_Func007001 takes nothing returns boolean | |
return GetBooleanOr( Trig_Team1_Give_Gold_Func007001001(), Trig_Team1_Give_Gold_Func007001002() ) | |
endfunction | |
function Trig_Team1_Give_Gold_Func008001001 takes nothing returns boolean | |
return ( S2I(SubStringBJ(GetEventPlayerChatString(), 6, 6)) < 1 ) | |
endfunction | |
function Trig_Team1_Give_Gold_Func008001002 takes nothing returns boolean | |
return ( S2I(SubStringBJ(GetEventPlayerChatString(), 6, 6)) > 3 ) | |
endfunction | |
function Trig_Team1_Give_Gold_Func008001 takes nothing returns boolean | |
return GetBooleanOr( Trig_Team1_Give_Gold_Func008001001(), Trig_Team1_Give_Gold_Func008001002() ) | |
endfunction | |
function Trig_Team1_Give_Gold_Func009001 takes nothing returns boolean | |
return ( GetPlayerState(GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD) < S2I(SubStringBJ(GetEventPlayerChatString(), 8, 13)) ) | |
endfunction | |
function Trig_Team1_Give_Gold_Func010001 takes nothing returns boolean | |
return ( GetPlayerState(GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD) < S2I(SubStringBJ(GetEventPlayerChatString(), 8, 13)) ) | |
endfunction | |
function Trig_Team1_Give_Gold_Actions takes nothing returns nothing | |
if ( Trig_Team1_Give_Gold_Func005001() ) then | |
call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "TRIGSTR_037" ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team1_Give_Gold_Func006001() ) then | |
return | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team1_Give_Gold_Func007001() ) then | |
call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "TRIGSTR_121" ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team1_Give_Gold_Func008001() ) then | |
return | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team1_Give_Gold_Func009001() ) then | |
call DisplayTimedTextToForce( GetForceOfPlayer(GetTriggerPlayer()), 5.00, ( "|c00ff0000Give Gold Failed|r: You do not have |cffdddd32" + ( I2S(S2I(SubStringBJ(GetEventPlayerChatString(), 8, 13))) + "|r gold." ) ) ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team1_Give_Gold_Func010001() ) then | |
return | |
else | |
call DoNothing( ) | |
endif | |
call AdjustPlayerStateBJ( ( S2I(SubStringBJ(GetEventPlayerChatString(), 8, 13)) * -1 ), GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD ) | |
call AdjustPlayerStateBJ( S2I(SubStringBJ(GetEventPlayerChatString(), 8, 13)), ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 6, 6))), PLAYER_STATE_RESOURCE_GOLD ) | |
call DisplayTextToForce( GetForceOfPlayer(ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 6, 6)))), ( "|cff32cd32You received |r" + ( I2S(S2I(SubStringBJ(GetEventPlayerChatString(), 8, 13))) + ( "|cff32cd32 gold from |r|cffdddd32" + ( GetPlayerName(GetTriggerPlayer()) + "|r" ) ) ) ) ) | |
call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), ( "|cff32cd32You gave |r " + ( I2S(S2I(SubStringBJ(GetEventPlayerChatString(), 8, 13))) + ( "|cff32cd32 gold to |r|cffdddd32" + ( GetPlayerName(ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 6, 6)))) + "|r" ) ) ) ) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Give_Gold takes nothing returns nothing | |
set gg_trg_Team1_Give_Gold = CreateTrigger( ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Team1_Give_Gold, Player(0), "give ", false ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Team1_Give_Gold, Player(1), "give ", false ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Team1_Give_Gold, Player(2), "give ", false ) | |
call TriggerAddCondition( gg_trg_Team1_Give_Gold, Condition( function Trig_Team1_Give_Gold_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Give_Gold, function Trig_Team1_Give_Gold_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Give Gold | |
//=========================================================================== | |
function Trig_Team2_Give_Gold_Conditions takes nothing returns boolean | |
if ( not ( GetEventPlayerChatString() != "give " ) ) then | |
return false | |
endif | |
if ( not ( S2I(SubStringBJ(GetEventPlayerChatString(), 6, 6)) > 0 ) ) then | |
return false | |
endif | |
if ( not ( SubStringBJ(GetEventPlayerChatString(), 7, 7) == " " ) ) then | |
return false | |
endif | |
if ( not ( S2I(SubStringBJ(GetEventPlayerChatString(), 8, 13)) > 0 ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Give_Gold_Func008001 takes nothing returns boolean | |
return ( GetPlayerSlotState(ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 6, 6)))) != PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team2_Give_Gold_Func009001 takes nothing returns boolean | |
return ( GetPlayerSlotState(ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 6, 6)))) != PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team2_Give_Gold_Func010001001 takes nothing returns boolean | |
return ( S2I(SubStringBJ(GetEventPlayerChatString(), 6, 6)) < 4 ) | |
endfunction | |
function Trig_Team2_Give_Gold_Func010001002 takes nothing returns boolean | |
return ( S2I(SubStringBJ(GetEventPlayerChatString(), 6, 6)) > 6 ) | |
endfunction | |
function Trig_Team2_Give_Gold_Func010001 takes nothing returns boolean | |
return GetBooleanOr( Trig_Team2_Give_Gold_Func010001001(), Trig_Team2_Give_Gold_Func010001002() ) | |
endfunction | |
function Trig_Team2_Give_Gold_Func011001001 takes nothing returns boolean | |
return ( S2I(SubStringBJ(GetEventPlayerChatString(), 6, 6)) < 4 ) | |
endfunction | |
function Trig_Team2_Give_Gold_Func011001002 takes nothing returns boolean | |
return ( S2I(SubStringBJ(GetEventPlayerChatString(), 6, 6)) > 6 ) | |
endfunction | |
function Trig_Team2_Give_Gold_Func011001 takes nothing returns boolean | |
return GetBooleanOr( Trig_Team2_Give_Gold_Func011001001(), Trig_Team2_Give_Gold_Func011001002() ) | |
endfunction | |
function Trig_Team2_Give_Gold_Func012001 takes nothing returns boolean | |
return ( GetPlayerState(GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD) < S2I(SubStringBJ(GetEventPlayerChatString(), 8, 13)) ) | |
endfunction | |
function Trig_Team2_Give_Gold_Func013001 takes nothing returns boolean | |
return ( GetPlayerState(GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD) < S2I(SubStringBJ(GetEventPlayerChatString(), 8, 13)) ) | |
endfunction | |
function Trig_Team2_Give_Gold_Actions takes nothing returns nothing | |
if ( Trig_Team2_Give_Gold_Func008001() ) then | |
call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "TRIGSTR_105" ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team2_Give_Gold_Func009001() ) then | |
return | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team2_Give_Gold_Func010001() ) then | |
call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "TRIGSTR_169" ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team2_Give_Gold_Func011001() ) then | |
return | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team2_Give_Gold_Func012001() ) then | |
call DisplayTimedTextToForce( GetForceOfPlayer(GetTriggerPlayer()), 5.00, ( "|c00ff0000Give Gold Failed|r: You do not have |cffdddd32" + ( I2S(S2I(SubStringBJ(GetEventPlayerChatString(), 8, 13))) + "|r gold." ) ) ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team2_Give_Gold_Func013001() ) then | |
return | |
else | |
call DoNothing( ) | |
endif | |
call AdjustPlayerStateBJ( ( S2I(SubStringBJ(GetEventPlayerChatString(), 8, 13)) * -1 ), GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD ) | |
call AdjustPlayerStateBJ( S2I(SubStringBJ(GetEventPlayerChatString(), 8, 13)), ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 6, 6))), PLAYER_STATE_RESOURCE_GOLD ) | |
call DisplayTextToForce( GetForceOfPlayer(ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 6, 6)))), ( "|cff32cd32You received |r" + ( I2S(S2I(SubStringBJ(GetEventPlayerChatString(), 8, 13))) + ( "|cff32cd32 gold from |r|cffdddd32" + ( GetPlayerName(GetTriggerPlayer()) + "|r" ) ) ) ) ) | |
call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), ( "|cff32cd32You gave |r " + ( I2S(S2I(SubStringBJ(GetEventPlayerChatString(), 8, 13))) + ( "|cff32cd32 gold to |r|cffdddd32" + ( GetPlayerName(ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 6, 6)))) + "|r" ) ) ) ) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Give_Gold takes nothing returns nothing | |
set gg_trg_Team2_Give_Gold = CreateTrigger( ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Team2_Give_Gold, Player(3), "give ", false ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Team2_Give_Gold, Player(4), "give ", false ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Team2_Give_Gold, Player(5), "give ", false ) | |
call TriggerAddCondition( gg_trg_Team2_Give_Gold, Condition( function Trig_Team2_Give_Gold_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Give_Gold, function Trig_Team2_Give_Gold_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Give Gold | |
//=========================================================================== | |
function Trig_Team3_Give_Gold_Conditions takes nothing returns boolean | |
if ( not ( GetEventPlayerChatString() != "give " ) ) then | |
return false | |
endif | |
if ( not ( S2I(SubStringBJ(GetEventPlayerChatString(), 6, 6)) > 0 ) ) then | |
return false | |
endif | |
if ( not ( SubStringBJ(GetEventPlayerChatString(), 7, 7) == " " ) ) then | |
return false | |
endif | |
if ( not ( S2I(SubStringBJ(GetEventPlayerChatString(), 8, 13)) > 0 ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Give_Gold_Func008001 takes nothing returns boolean | |
return ( GetPlayerSlotState(ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 6, 6)))) != PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team3_Give_Gold_Func009001 takes nothing returns boolean | |
return ( GetPlayerSlotState(ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 6, 6)))) != PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team3_Give_Gold_Func010001001 takes nothing returns boolean | |
return ( S2I(SubStringBJ(GetEventPlayerChatString(), 6, 6)) < 7 ) | |
endfunction | |
function Trig_Team3_Give_Gold_Func010001002 takes nothing returns boolean | |
return ( S2I(SubStringBJ(GetEventPlayerChatString(), 6, 6)) > 9 ) | |
endfunction | |
function Trig_Team3_Give_Gold_Func010001 takes nothing returns boolean | |
return GetBooleanOr( Trig_Team3_Give_Gold_Func010001001(), Trig_Team3_Give_Gold_Func010001002() ) | |
endfunction | |
function Trig_Team3_Give_Gold_Func011001001 takes nothing returns boolean | |
return ( S2I(SubStringBJ(GetEventPlayerChatString(), 6, 6)) < 7 ) | |
endfunction | |
function Trig_Team3_Give_Gold_Func011001002 takes nothing returns boolean | |
return ( S2I(SubStringBJ(GetEventPlayerChatString(), 6, 6)) > 9 ) | |
endfunction | |
function Trig_Team3_Give_Gold_Func011001 takes nothing returns boolean | |
return GetBooleanOr( Trig_Team3_Give_Gold_Func011001001(), Trig_Team3_Give_Gold_Func011001002() ) | |
endfunction | |
function Trig_Team3_Give_Gold_Func012001 takes nothing returns boolean | |
return ( GetPlayerState(GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD) < S2I(SubStringBJ(GetEventPlayerChatString(), 8, 13)) ) | |
endfunction | |
function Trig_Team3_Give_Gold_Func013001 takes nothing returns boolean | |
return ( GetPlayerState(GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD) < S2I(SubStringBJ(GetEventPlayerChatString(), 8, 13)) ) | |
endfunction | |
function Trig_Team3_Give_Gold_Actions takes nothing returns nothing | |
if ( Trig_Team3_Give_Gold_Func008001() ) then | |
call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "TRIGSTR_112" ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team3_Give_Gold_Func009001() ) then | |
return | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team3_Give_Gold_Func010001() ) then | |
call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "TRIGSTR_190" ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team3_Give_Gold_Func011001() ) then | |
return | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team3_Give_Gold_Func012001() ) then | |
call DisplayTimedTextToForce( GetForceOfPlayer(GetTriggerPlayer()), 5.00, ( "|c00ff0000Give Gold Failed|r: You do not have |cffdddd32" + ( I2S(S2I(SubStringBJ(GetEventPlayerChatString(), 8, 13))) + "|r gold." ) ) ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team3_Give_Gold_Func013001() ) then | |
return | |
else | |
call DoNothing( ) | |
endif | |
call AdjustPlayerStateBJ( ( S2I(SubStringBJ(GetEventPlayerChatString(), 8, 13)) * -1 ), GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD ) | |
call AdjustPlayerStateBJ( S2I(SubStringBJ(GetEventPlayerChatString(), 8, 13)), ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 6, 6))), PLAYER_STATE_RESOURCE_GOLD ) | |
call DisplayTextToForce( GetForceOfPlayer(ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 6, 6)))), ( "|cff32cd32You received |r" + ( I2S(S2I(SubStringBJ(GetEventPlayerChatString(), 8, 13))) + ( "|cff32cd32 gold from |r|cffdddd32" + ( GetPlayerName(GetTriggerPlayer()) + "|r" ) ) ) ) ) | |
call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), ( "|cff32cd32You gave |r " + ( I2S(S2I(SubStringBJ(GetEventPlayerChatString(), 8, 13))) + ( "|cff32cd32 gold to |r|cffdddd32" + ( GetPlayerName(ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 6, 6)))) + "|r" ) ) ) ) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Give_Gold takes nothing returns nothing | |
set gg_trg_Team3_Give_Gold = CreateTrigger( ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Team3_Give_Gold, Player(6), "give ", false ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Team3_Give_Gold, Player(7), "give ", false ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Team3_Give_Gold, Player(8), "give ", false ) | |
call TriggerAddCondition( gg_trg_Team3_Give_Gold, Condition( function Trig_Team3_Give_Gold_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Give_Gold, function Trig_Team3_Give_Gold_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Give All Gold | |
//=========================================================================== | |
function Trig_Team1_Give_All_Gold_Conditions takes nothing returns boolean | |
if ( not ( GetEventPlayerChatString() != "giveall " ) ) then | |
return false | |
endif | |
if ( not ( SubStringBJ(GetEventPlayerChatString(), 8, 8) == " " ) ) then | |
return false | |
endif | |
if ( not ( S2I(SubStringBJ(GetEventPlayerChatString(), 9, 9)) > 0 ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Give_All_Gold_Func004001 takes nothing returns boolean | |
return ( GetPlayerSlotState(ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 9, 9)))) != PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team1_Give_All_Gold_Func005001 takes nothing returns boolean | |
return ( GetPlayerSlotState(ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 9, 9)))) != PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team1_Give_All_Gold_Func006001001 takes nothing returns boolean | |
return ( S2I(SubStringBJ(GetEventPlayerChatString(), 9, 9)) < 1 ) | |
endfunction | |
function Trig_Team1_Give_All_Gold_Func006001002 takes nothing returns boolean | |
return ( S2I(SubStringBJ(GetEventPlayerChatString(), 9, 9)) > 3 ) | |
endfunction | |
function Trig_Team1_Give_All_Gold_Func006001 takes nothing returns boolean | |
return GetBooleanOr( Trig_Team1_Give_All_Gold_Func006001001(), Trig_Team1_Give_All_Gold_Func006001002() ) | |
endfunction | |
function Trig_Team1_Give_All_Gold_Func007001001 takes nothing returns boolean | |
return ( S2I(SubStringBJ(GetEventPlayerChatString(), 9, 9)) < 1 ) | |
endfunction | |
function Trig_Team1_Give_All_Gold_Func007001002 takes nothing returns boolean | |
return ( S2I(SubStringBJ(GetEventPlayerChatString(), 9, 9)) > 3 ) | |
endfunction | |
function Trig_Team1_Give_All_Gold_Func007001 takes nothing returns boolean | |
return GetBooleanOr( Trig_Team1_Give_All_Gold_Func007001001(), Trig_Team1_Give_All_Gold_Func007001002() ) | |
endfunction | |
function Trig_Team1_Give_All_Gold_Actions takes nothing returns nothing | |
if ( Trig_Team1_Give_All_Gold_Func004001() ) then | |
call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "TRIGSTR_296" ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team1_Give_All_Gold_Func005001() ) then | |
return | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team1_Give_All_Gold_Func006001() ) then | |
call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "TRIGSTR_321" ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team1_Give_All_Gold_Func007001() ) then | |
return | |
else | |
call DoNothing( ) | |
endif | |
call DisplayTextToForce( GetForceOfPlayer(ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 9, 9)))), ( "|cff32cd32You received |r" + ( I2S(GetPlayerState(GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD)) + ( "|cff32cd32 gold from |r|cffdddd32" + ( GetPlayerName(GetTriggerPlayer()) + "|r" ) ) ) ) ) | |
call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), ( "|cff32cd32You gave |r " + ( I2S(GetPlayerState(GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD)) + ( "|cff32cd32 gold to |r|cffdddd32" + ( GetPlayerName(ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 9, 9)))) + "|r" ) ) ) ) ) | |
call AdjustPlayerStateBJ( GetPlayerState(GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD), ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 9, 9))), PLAYER_STATE_RESOURCE_GOLD ) | |
call SetPlayerStateBJ( GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD, 0 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Give_All_Gold takes nothing returns nothing | |
set gg_trg_Team1_Give_All_Gold = CreateTrigger( ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Team1_Give_All_Gold, Player(0), "giveall", false ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Team1_Give_All_Gold, Player(1), "giveall", false ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Team1_Give_All_Gold, Player(2), "giveall", false ) | |
call TriggerAddCondition( gg_trg_Team1_Give_All_Gold, Condition( function Trig_Team1_Give_All_Gold_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Give_All_Gold, function Trig_Team1_Give_All_Gold_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Give All Gold | |
//=========================================================================== | |
function Trig_Team2_Give_All_Gold_Conditions takes nothing returns boolean | |
if ( not ( GetEventPlayerChatString() != "giveall " ) ) then | |
return false | |
endif | |
if ( not ( SubStringBJ(GetEventPlayerChatString(), 8, 8) == " " ) ) then | |
return false | |
endif | |
if ( not ( S2I(SubStringBJ(GetEventPlayerChatString(), 9, 9)) > 0 ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Give_All_Gold_Func004001 takes nothing returns boolean | |
return ( GetPlayerSlotState(ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 9, 9)))) != PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team2_Give_All_Gold_Func005001 takes nothing returns boolean | |
return ( GetPlayerSlotState(ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 9, 9)))) != PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team2_Give_All_Gold_Func006001001 takes nothing returns boolean | |
return ( S2I(SubStringBJ(GetEventPlayerChatString(), 9, 9)) < 4 ) | |
endfunction | |
function Trig_Team2_Give_All_Gold_Func006001002 takes nothing returns boolean | |
return ( S2I(SubStringBJ(GetEventPlayerChatString(), 9, 9)) > 6 ) | |
endfunction | |
function Trig_Team2_Give_All_Gold_Func006001 takes nothing returns boolean | |
return GetBooleanOr( Trig_Team2_Give_All_Gold_Func006001001(), Trig_Team2_Give_All_Gold_Func006001002() ) | |
endfunction | |
function Trig_Team2_Give_All_Gold_Func007001001 takes nothing returns boolean | |
return ( S2I(SubStringBJ(GetEventPlayerChatString(), 9, 9)) < 4 ) | |
endfunction | |
function Trig_Team2_Give_All_Gold_Func007001002 takes nothing returns boolean | |
return ( S2I(SubStringBJ(GetEventPlayerChatString(), 9, 9)) > 6 ) | |
endfunction | |
function Trig_Team2_Give_All_Gold_Func007001 takes nothing returns boolean | |
return GetBooleanOr( Trig_Team2_Give_All_Gold_Func007001001(), Trig_Team2_Give_All_Gold_Func007001002() ) | |
endfunction | |
function Trig_Team2_Give_All_Gold_Actions takes nothing returns nothing | |
if ( Trig_Team2_Give_All_Gold_Func004001() ) then | |
call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "TRIGSTR_292" ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team2_Give_All_Gold_Func005001() ) then | |
return | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team2_Give_All_Gold_Func006001() ) then | |
call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "TRIGSTR_294" ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team2_Give_All_Gold_Func007001() ) then | |
return | |
else | |
call DoNothing( ) | |
endif | |
call DisplayTextToForce( GetForceOfPlayer(ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 9, 9)))), ( "|cff32cd32You received |r" + ( I2S(GetPlayerState(GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD)) + ( "|cff32cd32 gold from |r|cffdddd32" + ( GetPlayerName(GetTriggerPlayer()) + "|r" ) ) ) ) ) | |
call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), ( "|cff32cd32You gave |r " + ( I2S(GetPlayerState(GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD)) + ( "|cff32cd32 gold to |r|cffdddd32" + ( GetPlayerName(ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 9, 9)))) + "|r" ) ) ) ) ) | |
call AdjustPlayerStateBJ( GetPlayerState(GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD), ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 9, 9))), PLAYER_STATE_RESOURCE_GOLD ) | |
call SetPlayerStateBJ( GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD, 0 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Give_All_Gold takes nothing returns nothing | |
set gg_trg_Team2_Give_All_Gold = CreateTrigger( ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Team2_Give_All_Gold, Player(3), "giveall", false ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Team2_Give_All_Gold, Player(4), "giveall", false ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Team2_Give_All_Gold, Player(5), "giveall", false ) | |
call TriggerAddCondition( gg_trg_Team2_Give_All_Gold, Condition( function Trig_Team2_Give_All_Gold_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Give_All_Gold, function Trig_Team2_Give_All_Gold_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Give All Gold | |
//=========================================================================== | |
function Trig_Team3_Give_All_Gold_Conditions takes nothing returns boolean | |
if ( not ( GetEventPlayerChatString() != "giveall " ) ) then | |
return false | |
endif | |
if ( not ( SubStringBJ(GetEventPlayerChatString(), 8, 8) == " " ) ) then | |
return false | |
endif | |
if ( not ( S2I(SubStringBJ(GetEventPlayerChatString(), 9, 9)) > 0 ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Give_All_Gold_Func004001 takes nothing returns boolean | |
return ( GetPlayerSlotState(ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 9, 9)))) != PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team3_Give_All_Gold_Func005001 takes nothing returns boolean | |
return ( GetPlayerSlotState(ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 9, 9)))) != PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team3_Give_All_Gold_Func006001001 takes nothing returns boolean | |
return ( S2I(SubStringBJ(GetEventPlayerChatString(), 9, 9)) < 7 ) | |
endfunction | |
function Trig_Team3_Give_All_Gold_Func006001002 takes nothing returns boolean | |
return ( S2I(SubStringBJ(GetEventPlayerChatString(), 9, 9)) > 9 ) | |
endfunction | |
function Trig_Team3_Give_All_Gold_Func006001 takes nothing returns boolean | |
return GetBooleanOr( Trig_Team3_Give_All_Gold_Func006001001(), Trig_Team3_Give_All_Gold_Func006001002() ) | |
endfunction | |
function Trig_Team3_Give_All_Gold_Func007001001 takes nothing returns boolean | |
return ( S2I(SubStringBJ(GetEventPlayerChatString(), 9, 9)) < 7 ) | |
endfunction | |
function Trig_Team3_Give_All_Gold_Func007001002 takes nothing returns boolean | |
return ( S2I(SubStringBJ(GetEventPlayerChatString(), 9, 9)) > 9 ) | |
endfunction | |
function Trig_Team3_Give_All_Gold_Func007001 takes nothing returns boolean | |
return GetBooleanOr( Trig_Team3_Give_All_Gold_Func007001001(), Trig_Team3_Give_All_Gold_Func007001002() ) | |
endfunction | |
function Trig_Team3_Give_All_Gold_Actions takes nothing returns nothing | |
if ( Trig_Team3_Give_All_Gold_Func004001() ) then | |
call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "TRIGSTR_322" ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team3_Give_All_Gold_Func005001() ) then | |
return | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team3_Give_All_Gold_Func006001() ) then | |
call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "TRIGSTR_327" ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team3_Give_All_Gold_Func007001() ) then | |
return | |
else | |
call DoNothing( ) | |
endif | |
call DisplayTextToForce( GetForceOfPlayer(ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 9, 9)))), ( "|cff32cd32You received |r" + ( I2S(GetPlayerState(GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD)) + ( "|cff32cd32 gold from |r|cffdddd32" + ( GetPlayerName(GetTriggerPlayer()) + "|r" ) ) ) ) ) | |
call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), ( "|cff32cd32You gave |r " + ( I2S(GetPlayerState(GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD)) + ( "|cff32cd32 gold to |r|cffdddd32" + ( GetPlayerName(ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 9, 9)))) + "|r" ) ) ) ) ) | |
call AdjustPlayerStateBJ( GetPlayerState(GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD), ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 9, 9))), PLAYER_STATE_RESOURCE_GOLD ) | |
call SetPlayerStateBJ( GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD, 0 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Give_All_Gold takes nothing returns nothing | |
set gg_trg_Team3_Give_All_Gold = CreateTrigger( ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Team3_Give_All_Gold, Player(6), "giveall", false ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Team3_Give_All_Gold, Player(7), "giveall", false ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Team3_Give_All_Gold, Player(8), "giveall", false ) | |
call TriggerAddCondition( gg_trg_Team3_Give_All_Gold, Condition( function Trig_Team3_Give_All_Gold_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Give_All_Gold, function Trig_Team3_Give_All_Gold_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Give Lumber | |
//=========================================================================== | |
function Trig_Team1_Give_Lumber_Conditions takes nothing returns boolean | |
if ( not ( GetEventPlayerChatString() != "lgive " ) ) then | |
return false | |
endif | |
if ( not ( S2I(SubStringBJ(GetEventPlayerChatString(), 7, 7)) > 0 ) ) then | |
return false | |
endif | |
if ( not ( SubStringBJ(GetEventPlayerChatString(), 8, 8) == " " ) ) then | |
return false | |
endif | |
if ( not ( S2I(SubStringBJ(GetEventPlayerChatString(), 9, 14)) > 0 ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Give_Lumber_Func005001 takes nothing returns boolean | |
return ( GetPlayerSlotState(ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 7, 7)))) != PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team1_Give_Lumber_Func006001 takes nothing returns boolean | |
return ( GetPlayerSlotState(ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 7, 7)))) != PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team1_Give_Lumber_Func007001001 takes nothing returns boolean | |
return ( S2I(SubStringBJ(GetEventPlayerChatString(), 7, 7)) < 1 ) | |
endfunction | |
function Trig_Team1_Give_Lumber_Func007001002 takes nothing returns boolean | |
return ( S2I(SubStringBJ(GetEventPlayerChatString(), 7, 7)) > 3 ) | |
endfunction | |
function Trig_Team1_Give_Lumber_Func007001 takes nothing returns boolean | |
return GetBooleanOr( Trig_Team1_Give_Lumber_Func007001001(), Trig_Team1_Give_Lumber_Func007001002() ) | |
endfunction | |
function Trig_Team1_Give_Lumber_Func008001001 takes nothing returns boolean | |
return ( S2I(SubStringBJ(GetEventPlayerChatString(), 7, 7)) < 1 ) | |
endfunction | |
function Trig_Team1_Give_Lumber_Func008001002 takes nothing returns boolean | |
return ( S2I(SubStringBJ(GetEventPlayerChatString(), 7, 7)) > 3 ) | |
endfunction | |
function Trig_Team1_Give_Lumber_Func008001 takes nothing returns boolean | |
return GetBooleanOr( Trig_Team1_Give_Lumber_Func008001001(), Trig_Team1_Give_Lumber_Func008001002() ) | |
endfunction | |
function Trig_Team1_Give_Lumber_Func009001 takes nothing returns boolean | |
return ( GetPlayerState(GetTriggerPlayer(), PLAYER_STATE_RESOURCE_LUMBER) < S2I(SubStringBJ(GetEventPlayerChatString(), 9, 14)) ) | |
endfunction | |
function Trig_Team1_Give_Lumber_Func010001 takes nothing returns boolean | |
return ( GetPlayerState(GetTriggerPlayer(), PLAYER_STATE_RESOURCE_LUMBER) < S2I(SubStringBJ(GetEventPlayerChatString(), 9, 14)) ) | |
endfunction | |
function Trig_Team1_Give_Lumber_Actions takes nothing returns nothing | |
if ( Trig_Team1_Give_Lumber_Func005001() ) then | |
call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "TRIGSTR_081" ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team1_Give_Lumber_Func006001() ) then | |
return | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team1_Give_Lumber_Func007001() ) then | |
call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "TRIGSTR_086" ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team1_Give_Lumber_Func008001() ) then | |
return | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team1_Give_Lumber_Func009001() ) then | |
call DisplayTimedTextToForce( GetForceOfPlayer(GetTriggerPlayer()), 5.00, ( "|c00ff0000Give Lumber Failed|r: You do not have |cffdddd32" + ( I2S(S2I(SubStringBJ(GetEventPlayerChatString(), 8, 13))) + "|r lumber." ) ) ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team1_Give_Lumber_Func010001() ) then | |
return | |
else | |
call DoNothing( ) | |
endif | |
call AdjustPlayerStateBJ( ( S2I(SubStringBJ(GetEventPlayerChatString(), 9, 14)) * -1 ), GetTriggerPlayer(), PLAYER_STATE_RESOURCE_LUMBER ) | |
call AdjustPlayerStateBJ( S2I(SubStringBJ(GetEventPlayerChatString(), 9, 14)), ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 7, 7))), PLAYER_STATE_RESOURCE_LUMBER ) | |
call DisplayTextToForce( GetForceOfPlayer(ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 7, 7)))), ( "|cff32cd32You received |r" + ( I2S(S2I(SubStringBJ(GetEventPlayerChatString(), 9, 14))) + ( "|cff32cd32 lumber from |r|cffdddd32" + ( GetPlayerName(GetTriggerPlayer()) + "|r" ) ) ) ) ) | |
call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), ( "|cff32cd32You gave |r " + ( I2S(S2I(SubStringBJ(GetEventPlayerChatString(), 9, 14))) + ( "|cff32cd32 lumber to |r|cffdddd32" + ( GetPlayerName(ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 7, 7)))) + "|r" ) ) ) ) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Give_Lumber takes nothing returns nothing | |
set gg_trg_Team1_Give_Lumber = CreateTrigger( ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Team1_Give_Lumber, Player(0), "lgive ", false ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Team1_Give_Lumber, Player(1), "lgive ", false ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Team1_Give_Lumber, Player(2), "lgive ", false ) | |
call TriggerAddCondition( gg_trg_Team1_Give_Lumber, Condition( function Trig_Team1_Give_Lumber_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Give_Lumber, function Trig_Team1_Give_Lumber_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Give Lumber | |
//=========================================================================== | |
function Trig_Team2_Give_Lumber_Conditions takes nothing returns boolean | |
if ( not ( GetEventPlayerChatString() != "lgive " ) ) then | |
return false | |
endif | |
if ( not ( S2I(SubStringBJ(GetEventPlayerChatString(), 7, 7)) > 0 ) ) then | |
return false | |
endif | |
if ( not ( SubStringBJ(GetEventPlayerChatString(), 8, 8) == " " ) ) then | |
return false | |
endif | |
if ( not ( S2I(SubStringBJ(GetEventPlayerChatString(), 9, 14)) > 0 ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Give_Lumber_Func005001 takes nothing returns boolean | |
return ( GetPlayerSlotState(ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 7, 7)))) != PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team2_Give_Lumber_Func006001 takes nothing returns boolean | |
return ( GetPlayerSlotState(ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 7, 7)))) != PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team2_Give_Lumber_Func007001001 takes nothing returns boolean | |
return ( S2I(SubStringBJ(GetEventPlayerChatString(), 7, 7)) < 4 ) | |
endfunction | |
function Trig_Team2_Give_Lumber_Func007001002 takes nothing returns boolean | |
return ( S2I(SubStringBJ(GetEventPlayerChatString(), 7, 7)) > 6 ) | |
endfunction | |
function Trig_Team2_Give_Lumber_Func007001 takes nothing returns boolean | |
return GetBooleanOr( Trig_Team2_Give_Lumber_Func007001001(), Trig_Team2_Give_Lumber_Func007001002() ) | |
endfunction | |
function Trig_Team2_Give_Lumber_Func008001001 takes nothing returns boolean | |
return ( S2I(SubStringBJ(GetEventPlayerChatString(), 7, 7)) < 4 ) | |
endfunction | |
function Trig_Team2_Give_Lumber_Func008001002 takes nothing returns boolean | |
return ( S2I(SubStringBJ(GetEventPlayerChatString(), 7, 7)) > 6 ) | |
endfunction | |
function Trig_Team2_Give_Lumber_Func008001 takes nothing returns boolean | |
return GetBooleanOr( Trig_Team2_Give_Lumber_Func008001001(), Trig_Team2_Give_Lumber_Func008001002() ) | |
endfunction | |
function Trig_Team2_Give_Lumber_Func009001 takes nothing returns boolean | |
return ( GetPlayerState(GetTriggerPlayer(), PLAYER_STATE_RESOURCE_LUMBER) < S2I(SubStringBJ(GetEventPlayerChatString(), 9, 14)) ) | |
endfunction | |
function Trig_Team2_Give_Lumber_Func010001 takes nothing returns boolean | |
return ( GetPlayerState(GetTriggerPlayer(), PLAYER_STATE_RESOURCE_LUMBER) < S2I(SubStringBJ(GetEventPlayerChatString(), 9, 14)) ) | |
endfunction | |
function Trig_Team2_Give_Lumber_Actions takes nothing returns nothing | |
if ( Trig_Team2_Give_Lumber_Func005001() ) then | |
call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "TRIGSTR_091" ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team2_Give_Lumber_Func006001() ) then | |
return | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team2_Give_Lumber_Func007001() ) then | |
call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "TRIGSTR_095" ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team2_Give_Lumber_Func008001() ) then | |
return | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team2_Give_Lumber_Func009001() ) then | |
call DisplayTimedTextToForce( GetForceOfPlayer(GetTriggerPlayer()), 5.00, ( "|c00ff0000Give Lumber Failed|r: You do not have |cffdddd32" + ( I2S(S2I(SubStringBJ(GetEventPlayerChatString(), 8, 13))) + "|r lumber." ) ) ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team2_Give_Lumber_Func010001() ) then | |
return | |
else | |
call DoNothing( ) | |
endif | |
call AdjustPlayerStateBJ( ( S2I(SubStringBJ(GetEventPlayerChatString(), 9, 14)) * -1 ), GetTriggerPlayer(), PLAYER_STATE_RESOURCE_LUMBER ) | |
call AdjustPlayerStateBJ( S2I(SubStringBJ(GetEventPlayerChatString(), 9, 14)), ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 7, 7))), PLAYER_STATE_RESOURCE_LUMBER ) | |
call DisplayTextToForce( GetForceOfPlayer(ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 7, 7)))), ( "|cff32cd32You received |r" + ( I2S(S2I(SubStringBJ(GetEventPlayerChatString(), 9, 14))) + ( "|cff32cd32 lumber from |r|cffdddd32" + ( GetPlayerName(GetTriggerPlayer()) + "|r" ) ) ) ) ) | |
call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), ( "|cff32cd32You gave |r " + ( I2S(S2I(SubStringBJ(GetEventPlayerChatString(), 9, 14))) + ( "|cff32cd32 lumber to |r|cffdddd32" + ( GetPlayerName(ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 7, 7)))) + "|r" ) ) ) ) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Give_Lumber takes nothing returns nothing | |
set gg_trg_Team2_Give_Lumber = CreateTrigger( ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Team2_Give_Lumber, Player(3), "lgive ", false ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Team2_Give_Lumber, Player(4), "lgive ", false ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Team2_Give_Lumber, Player(5), "lgive ", false ) | |
call TriggerAddCondition( gg_trg_Team2_Give_Lumber, Condition( function Trig_Team2_Give_Lumber_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Give_Lumber, function Trig_Team2_Give_Lumber_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Give Lumber | |
//=========================================================================== | |
function Trig_Team3_Give_Lumber_Conditions takes nothing returns boolean | |
if ( not ( GetEventPlayerChatString() != "lgive " ) ) then | |
return false | |
endif | |
if ( not ( S2I(SubStringBJ(GetEventPlayerChatString(), 7, 7)) > 0 ) ) then | |
return false | |
endif | |
if ( not ( SubStringBJ(GetEventPlayerChatString(), 8, 8) == " " ) ) then | |
return false | |
endif | |
if ( not ( S2I(SubStringBJ(GetEventPlayerChatString(), 9, 14)) > 0 ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Give_Lumber_Func001001 takes nothing returns boolean | |
return ( GetPlayerSlotState(ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 7, 7)))) != PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team3_Give_Lumber_Func002001 takes nothing returns boolean | |
return ( GetPlayerSlotState(ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 7, 7)))) != PLAYER_SLOT_STATE_PLAYING ) | |
endfunction | |
function Trig_Team3_Give_Lumber_Func003001001 takes nothing returns boolean | |
return ( S2I(SubStringBJ(GetEventPlayerChatString(), 7, 7)) < 7 ) | |
endfunction | |
function Trig_Team3_Give_Lumber_Func003001002 takes nothing returns boolean | |
return ( S2I(SubStringBJ(GetEventPlayerChatString(), 7, 7)) > 9 ) | |
endfunction | |
function Trig_Team3_Give_Lumber_Func003001 takes nothing returns boolean | |
return GetBooleanOr( Trig_Team3_Give_Lumber_Func003001001(), Trig_Team3_Give_Lumber_Func003001002() ) | |
endfunction | |
function Trig_Team3_Give_Lumber_Func004001001 takes nothing returns boolean | |
return ( S2I(SubStringBJ(GetEventPlayerChatString(), 7, 7)) < 7 ) | |
endfunction | |
function Trig_Team3_Give_Lumber_Func004001002 takes nothing returns boolean | |
return ( S2I(SubStringBJ(GetEventPlayerChatString(), 7, 7)) > 9 ) | |
endfunction | |
function Trig_Team3_Give_Lumber_Func004001 takes nothing returns boolean | |
return GetBooleanOr( Trig_Team3_Give_Lumber_Func004001001(), Trig_Team3_Give_Lumber_Func004001002() ) | |
endfunction | |
function Trig_Team3_Give_Lumber_Func005001 takes nothing returns boolean | |
return ( GetPlayerState(GetTriggerPlayer(), PLAYER_STATE_RESOURCE_LUMBER) < S2I(SubStringBJ(GetEventPlayerChatString(), 9, 14)) ) | |
endfunction | |
function Trig_Team3_Give_Lumber_Func006001 takes nothing returns boolean | |
return ( GetPlayerState(GetTriggerPlayer(), PLAYER_STATE_RESOURCE_LUMBER) < S2I(SubStringBJ(GetEventPlayerChatString(), 9, 14)) ) | |
endfunction | |
function Trig_Team3_Give_Lumber_Actions takes nothing returns nothing | |
if ( Trig_Team3_Give_Lumber_Func001001() ) then | |
call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "TRIGSTR_096" ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team3_Give_Lumber_Func002001() ) then | |
return | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team3_Give_Lumber_Func003001() ) then | |
call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "TRIGSTR_098" ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team3_Give_Lumber_Func004001() ) then | |
return | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team3_Give_Lumber_Func005001() ) then | |
call DisplayTimedTextToForce( GetForceOfPlayer(GetTriggerPlayer()), 5.00, ( "|c00ff0000Give Lumber Failed|r: You do not have |cffdddd32" + ( I2S(S2I(SubStringBJ(GetEventPlayerChatString(), 8, 13))) + "|r lumber." ) ) ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Team3_Give_Lumber_Func006001() ) then | |
return | |
else | |
call DoNothing( ) | |
endif | |
call AdjustPlayerStateBJ( ( S2I(SubStringBJ(GetEventPlayerChatString(), 9, 14)) * -1 ), GetTriggerPlayer(), PLAYER_STATE_RESOURCE_LUMBER ) | |
call AdjustPlayerStateBJ( S2I(SubStringBJ(GetEventPlayerChatString(), 9, 14)), ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 7, 7))), PLAYER_STATE_RESOURCE_LUMBER ) | |
call DisplayTextToForce( GetForceOfPlayer(ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 7, 7)))), ( "|cff32cd32You received |r" + ( I2S(S2I(SubStringBJ(GetEventPlayerChatString(), 9, 14))) + ( "|cff32cd32 lumber from |r|cffdddd32" + ( GetPlayerName(GetTriggerPlayer()) + "|r" ) ) ) ) ) | |
call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), ( "|cff32cd32You gave |r " + ( I2S(S2I(SubStringBJ(GetEventPlayerChatString(), 9, 14))) + ( "|cff32cd32 lumber to |r|cffdddd32" + ( GetPlayerName(ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 7, 7)))) + "|r" ) ) ) ) ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Give_Lumber takes nothing returns nothing | |
set gg_trg_Team3_Give_Lumber = CreateTrigger( ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Team3_Give_Lumber, Player(6), "lgive ", false ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Team3_Give_Lumber, Player(7), "lgive ", false ) | |
call TriggerRegisterPlayerChatEvent( gg_trg_Team3_Give_Lumber, Player(8), "lgive ", false ) | |
call TriggerAddCondition( gg_trg_Team3_Give_Lumber, Condition( function Trig_Team3_Give_Lumber_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Give_Lumber, function Trig_Team3_Give_Lumber_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Sell | |
//=========================================================================== | |
function Trig_Sell_Conditions takes nothing returns boolean | |
if ( not ( GetUnitTypeId(GetTrainedUnit()) == 'hC66' ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Sell_Func001001 takes nothing returns boolean | |
return ( GetUnitStateSwap(UNIT_STATE_LIFE, GetTriggerUnit()) < ( GetUnitStateSwap(UNIT_STATE_MAX_LIFE, GetTriggerUnit()) / 2.00 ) ) | |
endfunction | |
function Trig_Sell_Func002001 takes nothing returns boolean | |
return ( GetUnitStateSwap(UNIT_STATE_LIFE, GetTriggerUnit()) < ( GetUnitStateSwap(UNIT_STATE_MAX_LIFE, GetTriggerUnit()) / 2.00 ) ) | |
endfunction | |
function Trig_Sell_Func003001 takes nothing returns boolean | |
return ( GetUnitStateSwap(UNIT_STATE_LIFE, GetTriggerUnit()) < ( GetUnitStateSwap(UNIT_STATE_MAX_LIFE, GetTriggerUnit()) / 2.00 ) ) | |
endfunction | |
function Trig_Sell_Func007001 takes nothing returns boolean | |
return ( GetUnitPointValue(GetTriggerUnit()) > 10 ) | |
endfunction | |
function Trig_Sell_Func008001 takes nothing returns boolean | |
return ( GetUnitPointValue(GetTriggerUnit()) > 10 ) | |
endfunction | |
function Trig_Sell_Actions takes nothing returns nothing | |
if ( Trig_Sell_Func001001() ) then | |
call DisplayTimedTextToForce( GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit())), 5.00, "TRIGSTR_984" ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Sell_Func002001() ) then | |
call RemoveUnit( GetTrainedUnit() ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Sell_Func003001() ) then | |
return | |
else | |
call DoNothing( ) | |
endif | |
call AddSpecialEffectLocBJ( GetUnitLoc(GetTriggerUnit()), "Abilities\\Spells\\Human\\Resurrect\\Resurrecttarget.mdl" ) | |
call RemoveUnit( GetTriggerUnit() ) | |
call RemoveUnit( GetTrainedUnit() ) | |
if ( Trig_Sell_Func007001() ) then | |
call AdjustPlayerStateBJ( GetUnitPointValue(GetTriggerUnit()), GetOwningPlayer(GetTrainedUnit()), PLAYER_STATE_RESOURCE_GOLD ) | |
else | |
call AdjustPlayerStateBJ( GetUnitPointValue(GetTriggerUnit()), GetOwningPlayer(GetTrainedUnit()), PLAYER_STATE_RESOURCE_LUMBER ) | |
endif | |
if ( Trig_Sell_Func008001() ) then | |
call DisplayTimedTextToForce( GetForceOfPlayer(GetOwningPlayer(GetTrainedUnit())), 10.00, ( "|c0000cdf9You recieved |r" + ( I2S(GetUnitPointValue(GetTriggerUnit())) + ( "|c0000cdf9 gold for selling a |r" + ( "|cffdddd32" + ( GetUnitName(GetTriggerUnit()) + "|r." ) ) ) ) ) ) | |
else | |
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, ( "|c0000cdf9You received |r" + ( I2S(GetUnitPointValue(GetTriggerUnit())) + ( "|c0000cdf9 lumber for selling a |r" + ( "|cffdddd32" + ( GetUnitName(GetTriggerUnit()) + "|r." ) ) ) ) ) ) | |
endif | |
call TriggerSleepAction( 2.00 ) | |
call DestroyEffectBJ( GetLastCreatedEffectBJ() ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Sell takes nothing returns nothing | |
set gg_trg_Sell = CreateTrigger( ) | |
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Sell, Player(0), EVENT_PLAYER_UNIT_TRAIN_FINISH ) | |
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Sell, Player(1), EVENT_PLAYER_UNIT_TRAIN_FINISH ) | |
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Sell, Player(2), EVENT_PLAYER_UNIT_TRAIN_FINISH ) | |
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Sell, Player(3), EVENT_PLAYER_UNIT_TRAIN_FINISH ) | |
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Sell, Player(4), EVENT_PLAYER_UNIT_TRAIN_FINISH ) | |
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Sell, Player(5), EVENT_PLAYER_UNIT_TRAIN_FINISH ) | |
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Sell, Player(6), EVENT_PLAYER_UNIT_TRAIN_FINISH ) | |
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Sell, Player(7), EVENT_PLAYER_UNIT_TRAIN_FINISH ) | |
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Sell, Player(8), EVENT_PLAYER_UNIT_TRAIN_FINISH ) | |
call TriggerAddCondition( gg_trg_Sell, Condition( function Trig_Sell_Conditions ) ) | |
call TriggerAddAction( gg_trg_Sell, function Trig_Sell_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Keep Off | |
//=========================================================================== | |
function Trig_Team1_Keep_Off_Func004001001 takes nothing returns boolean | |
return ( GetOwningPlayer(GetTriggerUnit()) == Player(0) ) | |
endfunction | |
function Trig_Team1_Keep_Off_Func004001002 takes nothing returns boolean | |
return ( GetOwningPlayer(GetTriggerUnit()) == Player(1) ) | |
endfunction | |
function Trig_Team1_Keep_Off_Func004001 takes nothing returns boolean | |
return GetBooleanOr( Trig_Team1_Keep_Off_Func004001001(), Trig_Team1_Keep_Off_Func004001002() ) | |
endfunction | |
function Trig_Team1_Keep_Off_Func004002 takes nothing returns boolean | |
return ( GetOwningPlayer(GetTriggerUnit()) == Player(2) ) | |
endfunction | |
function Trig_Team1_Keep_Off_Conditions takes nothing returns boolean | |
if ( not GetBooleanOr( Trig_Team1_Keep_Off_Func004001(), Trig_Team1_Keep_Off_Func004002() ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team1_Keep_Off_Func002001001 takes nothing returns boolean | |
return ( GetOwningPlayer(GetTriggerUnit()) == GetFilterPlayer() ) | |
endfunction | |
function Trig_Team1_Keep_Off_Func003001001 takes nothing returns boolean | |
return ( GetOwningPlayer(GetTriggerUnit()) == GetFilterPlayer() ) | |
endfunction | |
function Trig_Team1_Keep_Off_Actions takes nothing returns nothing | |
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Team1__Entrance_Workers) ) | |
call DisplayTimedTextToForce( GetPlayersMatching(Condition(function Trig_Team1_Keep_Off_Func002001001)), 5.00, "TRIGSTR_552" ) | |
call PingMinimapLocForForce( GetPlayersMatching(Condition(function Trig_Team1_Keep_Off_Func003001001)), GetRectCenter(gg_rct_Team1__Entrance_Workers), 2.00 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Keep_Off takes nothing returns nothing | |
set gg_trg_Team1_Keep_Off = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team1_Keep_Off, gg_rct_Team1__Keep_Off ) | |
call TriggerAddCondition( gg_trg_Team1_Keep_Off, Condition( function Trig_Team1_Keep_Off_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team1_Keep_Off, function Trig_Team1_Keep_Off_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Keep Off | |
//=========================================================================== | |
function Trig_Team2_Keep_Off_Func004001001 takes nothing returns boolean | |
return ( GetOwningPlayer(GetTriggerUnit()) == Player(3) ) | |
endfunction | |
function Trig_Team2_Keep_Off_Func004001002 takes nothing returns boolean | |
return ( GetOwningPlayer(GetTriggerUnit()) == Player(4) ) | |
endfunction | |
function Trig_Team2_Keep_Off_Func004001 takes nothing returns boolean | |
return GetBooleanOr( Trig_Team2_Keep_Off_Func004001001(), Trig_Team2_Keep_Off_Func004001002() ) | |
endfunction | |
function Trig_Team2_Keep_Off_Func004002 takes nothing returns boolean | |
return ( GetOwningPlayer(GetTriggerUnit()) == Player(5) ) | |
endfunction | |
function Trig_Team2_Keep_Off_Conditions takes nothing returns boolean | |
if ( not GetBooleanOr( Trig_Team2_Keep_Off_Func004001(), Trig_Team2_Keep_Off_Func004002() ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team2_Keep_Off_Func002001001 takes nothing returns boolean | |
return ( GetOwningPlayer(GetTriggerUnit()) == GetFilterPlayer() ) | |
endfunction | |
function Trig_Team2_Keep_Off_Func003001001 takes nothing returns boolean | |
return ( GetOwningPlayer(GetTriggerUnit()) == GetFilterPlayer() ) | |
endfunction | |
function Trig_Team2_Keep_Off_Actions takes nothing returns nothing | |
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Team2__Entrance_Workers) ) | |
call DisplayTimedTextToForce( GetPlayersMatching(Condition(function Trig_Team2_Keep_Off_Func002001001)), 5.00, "TRIGSTR_553" ) | |
call PingMinimapLocForForce( GetPlayersMatching(Condition(function Trig_Team2_Keep_Off_Func003001001)), GetRectCenter(gg_rct_Team2__Entrance_Workers), 2.00 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Keep_Off takes nothing returns nothing | |
set gg_trg_Team2_Keep_Off = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team2_Keep_Off, gg_rct_Team2__Keep_Off ) | |
call TriggerAddCondition( gg_trg_Team2_Keep_Off, Condition( function Trig_Team2_Keep_Off_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team2_Keep_Off, function Trig_Team2_Keep_Off_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Keep Off | |
//=========================================================================== | |
function Trig_Team3_Keep_Off_Func004001001 takes nothing returns boolean | |
return ( GetOwningPlayer(GetTriggerUnit()) == Player(6) ) | |
endfunction | |
function Trig_Team3_Keep_Off_Func004001002 takes nothing returns boolean | |
return ( GetOwningPlayer(GetTriggerUnit()) == Player(7) ) | |
endfunction | |
function Trig_Team3_Keep_Off_Func004001 takes nothing returns boolean | |
return GetBooleanOr( Trig_Team3_Keep_Off_Func004001001(), Trig_Team3_Keep_Off_Func004001002() ) | |
endfunction | |
function Trig_Team3_Keep_Off_Func004002 takes nothing returns boolean | |
return ( GetOwningPlayer(GetTriggerUnit()) == Player(8) ) | |
endfunction | |
function Trig_Team3_Keep_Off_Conditions takes nothing returns boolean | |
if ( not GetBooleanOr( Trig_Team3_Keep_Off_Func004001(), Trig_Team3_Keep_Off_Func004002() ) ) then | |
return false | |
endif | |
return true | |
endfunction | |
function Trig_Team3_Keep_Off_Func002001001 takes nothing returns boolean | |
return ( GetOwningPlayer(GetTriggerUnit()) == GetFilterPlayer() ) | |
endfunction | |
function Trig_Team3_Keep_Off_Func003001001 takes nothing returns boolean | |
return ( GetOwningPlayer(GetTriggerUnit()) == GetFilterPlayer() ) | |
endfunction | |
function Trig_Team3_Keep_Off_Actions takes nothing returns nothing | |
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Team3__Entrance_Workers) ) | |
call DisplayTimedTextToForce( GetPlayersMatching(Condition(function Trig_Team3_Keep_Off_Func002001001)), 5.00, "TRIGSTR_554" ) | |
call PingMinimapLocForForce( GetPlayersMatching(Condition(function Trig_Team3_Keep_Off_Func003001001)), GetRectCenter(gg_rct_Team3__Entrance_Workers), 2.00 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Keep_Off takes nothing returns nothing | |
set gg_trg_Team3_Keep_Off = CreateTrigger( ) | |
call TriggerRegisterEnterRectSimple( gg_trg_Team3_Keep_Off, gg_rct_Team3__Keep_Off ) | |
call TriggerAddCondition( gg_trg_Team3_Keep_Off, Condition( function Trig_Team3_Keep_Off_Conditions ) ) | |
call TriggerAddAction( gg_trg_Team3_Keep_Off, function Trig_Team3_Keep_Off_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Cancel Repick | |
//=========================================================================== | |
function Trig_Team3_Cancel_Repick_Actions takes nothing returns nothing | |
set bj_forLoopAIndex = 7 | |
set bj_forLoopAIndexEnd = 9 | |
loop | |
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd | |
set udg_RepickAllowed[GetForLoopIndexA()] = false | |
set bj_forLoopAIndex = bj_forLoopAIndex + 1 | |
endloop | |
call DestroyTimerDialogBJ( udg_Team3RepickTimerWindow ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Cancel_Repick takes nothing returns nothing | |
set gg_trg_Team3_Cancel_Repick = CreateTrigger( ) | |
call TriggerRegisterTimerExpireEventBJ( gg_trg_Team3_Cancel_Repick, udg_Team3RepickTimer ) | |
call TriggerAddAction( gg_trg_Team3_Cancel_Repick, function Trig_Team3_Cancel_Repick_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Cancel Repick | |
//=========================================================================== | |
function Trig_Team2_Cancel_Repick_Actions takes nothing returns nothing | |
set bj_forLoopAIndex = 4 | |
set bj_forLoopAIndexEnd = 6 | |
loop | |
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd | |
set udg_RepickAllowed[GetForLoopIndexA()] = false | |
set bj_forLoopAIndex = bj_forLoopAIndex + 1 | |
endloop | |
call DestroyTimerDialogBJ( udg_Team2RepickTimerWindow ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Cancel_Repick takes nothing returns nothing | |
set gg_trg_Team2_Cancel_Repick = CreateTrigger( ) | |
call TriggerRegisterTimerExpireEventBJ( gg_trg_Team2_Cancel_Repick, udg_Team2RepickTimer ) | |
call TriggerAddAction( gg_trg_Team2_Cancel_Repick, function Trig_Team2_Cancel_Repick_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Cancel Repick | |
//=========================================================================== | |
function Trig_Team1_Cancel_Repick_Actions takes nothing returns nothing | |
set bj_forLoopAIndex = 1 | |
set bj_forLoopAIndexEnd = 3 | |
loop | |
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd | |
set udg_RepickAllowed[GetForLoopIndexA()] = false | |
set bj_forLoopAIndex = bj_forLoopAIndex + 1 | |
endloop | |
call DestroyTimerDialogBJ( udg_Team1RepickTimerWindow ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Cancel_Repick takes nothing returns nothing | |
set gg_trg_Team1_Cancel_Repick = CreateTrigger( ) | |
call TriggerRegisterTimerExpireEventBJ( gg_trg_Team1_Cancel_Repick, udg_Team1RepickTimer ) | |
call TriggerAddAction( gg_trg_Team1_Cancel_Repick, function Trig_Team1_Cancel_Repick_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Cancel ChangeIncome | |
//=========================================================================== | |
function Trig_Cancel_ChangeIncome_Actions takes nothing returns nothing | |
set udg_ChangeIncomeAllowed = false | |
endfunction | |
//=========================================================================== | |
function InitTrig_Cancel_ChangeIncome takes nothing returns nothing | |
set gg_trg_Cancel_ChangeIncome = CreateTrigger( ) | |
call TriggerRegisterTimerExpireEventBJ( gg_trg_Cancel_ChangeIncome, udg_ChangeIncomeTimer ) | |
call TriggerAddAction( gg_trg_Cancel_ChangeIncome, function Trig_Cancel_ChangeIncome_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Start Repick Timer | |
//=========================================================================== | |
function Trig_Team3_Start_Repick_Timer_Actions takes nothing returns nothing | |
// Allow Repick | |
set bj_forLoopAIndex = 7 | |
set bj_forLoopAIndexEnd = 9 | |
loop | |
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd | |
set udg_RepickAllowed[GetForLoopIndexA()] = true | |
set bj_forLoopAIndex = bj_forLoopAIndex + 1 | |
endloop | |
// Init Repick Timer | |
call StartTimerBJ( udg_Team3RepickTimer, false, 300.00 ) | |
call CreateTimerDialogBJ( udg_Team3RepickTimer, "TRIGSTR_116" ) | |
set udg_Team3RepickTimerWindow = GetLastCreatedTimerDialogBJ() | |
call TimerDialogDisplayForPlayerBJ( false, udg_Team3RepickTimerWindow, Player(0) ) | |
set bj_forLoopAIndex = 1 | |
set bj_forLoopAIndexEnd = 6 | |
loop | |
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd | |
call TimerDialogDisplayForPlayerBJ( false, udg_Team3RepickTimerWindow, udg_Players[GetForLoopIndexA()] ) | |
set bj_forLoopAIndex = bj_forLoopAIndex + 1 | |
endloop | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Start_Repick_Timer takes nothing returns nothing | |
set gg_trg_Team3_Start_Repick_Timer = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Team3_Start_Repick_Timer, function Trig_Team3_Start_Repick_Timer_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Start Repick Timer | |
//=========================================================================== | |
function Trig_Team2_Start_Repick_Timer_Actions takes nothing returns nothing | |
// Allow Repick | |
set bj_forLoopAIndex = 4 | |
set bj_forLoopAIndexEnd = 6 | |
loop | |
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd | |
set udg_RepickAllowed[GetForLoopIndexA()] = true | |
set bj_forLoopAIndex = bj_forLoopAIndex + 1 | |
endloop | |
// Init Repick Timer | |
call StartTimerBJ( udg_Team2RepickTimer, false, 300.00 ) | |
call CreateTimerDialogBJ( udg_Team2RepickTimer, "TRIGSTR_115" ) | |
set udg_Team2RepickTimerWindow = GetLastCreatedTimerDialogBJ() | |
set bj_forLoopAIndex = 1 | |
set bj_forLoopAIndexEnd = 3 | |
loop | |
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd | |
call TimerDialogDisplayForPlayerBJ( false, udg_Team2RepickTimerWindow, udg_Players[GetForLoopIndexA()] ) | |
set bj_forLoopAIndex = bj_forLoopAIndex + 1 | |
endloop | |
set bj_forLoopAIndex = 7 | |
set bj_forLoopAIndexEnd = 9 | |
loop | |
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd | |
call TimerDialogDisplayForPlayerBJ( false, udg_Team2RepickTimerWindow, udg_Players[GetForLoopIndexA()] ) | |
set bj_forLoopAIndex = bj_forLoopAIndex + 1 | |
endloop | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Start_Repick_Timer takes nothing returns nothing | |
set gg_trg_Team2_Start_Repick_Timer = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Team2_Start_Repick_Timer, function Trig_Team2_Start_Repick_Timer_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Start Repick Timer | |
//=========================================================================== | |
function Trig_Team1_Start_Repick_Timer_Actions takes nothing returns nothing | |
// Allow Repick | |
set bj_forLoopAIndex = 1 | |
set bj_forLoopAIndexEnd = 3 | |
loop | |
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd | |
set udg_RepickAllowed[GetForLoopIndexA()] = true | |
set bj_forLoopAIndex = bj_forLoopAIndex + 1 | |
endloop | |
// Init Repick Timer | |
call StartTimerBJ( udg_Team1RepickTimer, false, 300.00 ) | |
call CreateTimerDialogBJ( udg_Team1RepickTimer, "TRIGSTR_114" ) | |
set udg_Team1RepickTimerWindow = GetLastCreatedTimerDialogBJ() | |
set bj_forLoopAIndex = 4 | |
set bj_forLoopAIndexEnd = 9 | |
loop | |
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd | |
call TimerDialogDisplayForPlayerBJ( false, udg_Team1RepickTimerWindow, udg_Players[GetForLoopIndexA()] ) | |
set bj_forLoopAIndex = bj_forLoopAIndex + 1 | |
endloop | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Start_Repick_Timer takes nothing returns nothing | |
set gg_trg_Team1_Start_Repick_Timer = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Team1_Start_Repick_Timer, function Trig_Team1_Start_Repick_Timer_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Start ChangeIncome Timer | |
//=========================================================================== | |
function Trig_Start_ChangeIncome_Timer_Actions takes nothing returns nothing | |
// Init Change Income Timer | |
call StartTimerBJ( udg_ChangeIncomeTimer, false, 300.00 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Start_ChangeIncome_Timer takes nothing returns nothing | |
set gg_trg_Start_ChangeIncome_Timer = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Start_ChangeIncome_Timer, function Trig_Start_ChangeIncome_Timer_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Death Player 10 | |
//=========================================================================== | |
function Trig_Death_Player_10_Func002001 takes nothing returns boolean | |
return ( CountPlayersInForceBJ(udg_Team1Group) == 1 ) | |
endfunction | |
function Trig_Death_Player_10_Func003001 takes nothing returns boolean | |
return ( CountPlayersInForceBJ(udg_Team1Group) == 2 ) | |
endfunction | |
function Trig_Death_Player_10_Func004001 takes nothing returns boolean | |
return ( CountPlayersInForceBJ(udg_Team1Group) == 3 ) | |
endfunction | |
function Trig_Death_Player_10_Actions takes nothing returns nothing | |
call RemoveUnit( GetTriggerUnit() ) | |
if ( Trig_Death_Player_10_Func002001() ) then | |
call TriggerExecute( gg_trg_Team1_Bounty_1 ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Death_Player_10_Func003001() ) then | |
call TriggerExecute( gg_trg_Team1_Bounty_2 ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Death_Player_10_Func004001() ) then | |
call TriggerExecute( gg_trg_Team1_Bounty_3 ) | |
else | |
call DoNothing( ) | |
endif | |
endfunction | |
//=========================================================================== | |
function InitTrig_Death_Player_10 takes nothing returns nothing | |
set gg_trg_Death_Player_10 = CreateTrigger( ) | |
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Death_Player_10, Player(9), EVENT_PLAYER_UNIT_DEATH ) | |
call TriggerAddAction( gg_trg_Death_Player_10, function Trig_Death_Player_10_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Bounty 1 | |
//=========================================================================== | |
function Trig_Team1_Bounty_1_Func001002 takes nothing returns nothing | |
set udg_Bounty[GetConvertedPlayerId(GetEnumPlayer())] = R2I(( I2R(GetUnitPointValue(GetTriggerUnit())) * ( GetUnitStateSwap(UNIT_STATE_MAX_MANA, GetTriggerUnit()) * 0.10 ) )) | |
endfunction | |
function Trig_Team1_Bounty_1_Actions takes nothing returns nothing | |
call ForForce( GetForceOfPlayer(GetOwningPlayer(GetKillingUnitBJ())), function Trig_Team1_Bounty_1_Func001002 ) | |
call AdjustPlayerStateBJ( R2I(( I2R(GetUnitPointValue(GetTriggerUnit())) * ( GetUnitStateSwap(UNIT_STATE_MAX_MANA, GetTriggerUnit()) * 0.10 ) )), GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_GOLD ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Bounty_1 takes nothing returns nothing | |
set gg_trg_Team1_Bounty_1 = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Team1_Bounty_1, function Trig_Team1_Bounty_1_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Bounty 2 | |
//=========================================================================== | |
function Trig_Team1_Bounty_2_Func001002 takes nothing returns nothing | |
set udg_Bounty[GetConvertedPlayerId(GetEnumPlayer())] = R2I(( ( I2R(GetUnitPointValue(GetTriggerUnit())) * ( GetUnitStateSwap(UNIT_STATE_MAX_MANA, GetTriggerUnit()) * 0.10 ) ) * 0.66 )) | |
endfunction | |
function Trig_Team1_Bounty_2_Func003002001 takes nothing returns boolean | |
return ( GetEnumPlayer() != GetOwningPlayer(GetKillingUnitBJ()) ) | |
endfunction | |
function Trig_Team1_Bounty_2_Func003002 takes nothing returns nothing | |
if ( Trig_Team1_Bounty_2_Func003002001() ) then | |
set udg_Bounty[GetConvertedPlayerId(GetEnumPlayer())] = R2I(( ( I2R(GetUnitPointValue(GetTriggerUnit())) * ( GetUnitStateSwap(UNIT_STATE_MAX_MANA, GetTriggerUnit()) * 0.10 ) ) * 0.33 )) | |
else | |
call DoNothing( ) | |
endif | |
endfunction | |
function Trig_Team1_Bounty_2_Func004002001 takes nothing returns boolean | |
return ( GetEnumPlayer() != GetOwningPlayer(GetKillingUnitBJ()) ) | |
endfunction | |
function Trig_Team1_Bounty_2_Func004002 takes nothing returns nothing | |
if ( Trig_Team1_Bounty_2_Func004002001() ) then | |
call AdjustPlayerStateBJ( R2I(( ( I2R(GetUnitPointValue(GetTriggerUnit())) * ( GetUnitStateSwap(UNIT_STATE_MAX_MANA, GetTriggerUnit()) * 0.10 ) ) * 0.33 )), GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD ) | |
else | |
call DoNothing( ) | |
endif | |
endfunction | |
function Trig_Team1_Bounty_2_Actions takes nothing returns nothing | |
call ForForce( GetForceOfPlayer(GetOwningPlayer(GetKillingUnitBJ())), function Trig_Team1_Bounty_2_Func001002 ) | |
call AdjustPlayerStateBJ( R2I(( ( I2R(GetUnitPointValue(GetTriggerUnit())) * ( GetUnitStateSwap(UNIT_STATE_MAX_MANA, GetTriggerUnit()) * 0.10 ) ) * 0.67 )), GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_GOLD ) | |
call ForForce( udg_Team1Group, function Trig_Team1_Bounty_2_Func003002 ) | |
call ForForce( udg_Team1Group, function Trig_Team1_Bounty_2_Func004002 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Bounty_2 takes nothing returns nothing | |
set gg_trg_Team1_Bounty_2 = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Team1_Bounty_2, function Trig_Team1_Bounty_2_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team1 Bounty 3 | |
//=========================================================================== | |
function Trig_Team1_Bounty_3_Func001002 takes nothing returns nothing | |
set udg_Bounty[GetConvertedPlayerId(GetEnumPlayer())] = R2I(( ( I2R(GetUnitPointValue(GetTriggerUnit())) * ( GetUnitStateSwap(UNIT_STATE_MAX_MANA, GetTriggerUnit()) * 0.10 ) ) * 0.50 )) | |
endfunction | |
function Trig_Team1_Bounty_3_Func003002001 takes nothing returns boolean | |
return ( GetEnumPlayer() != GetOwningPlayer(GetKillingUnitBJ()) ) | |
endfunction | |
function Trig_Team1_Bounty_3_Func003002 takes nothing returns nothing | |
if ( Trig_Team1_Bounty_3_Func003002001() ) then | |
set udg_Bounty[GetConvertedPlayerId(GetEnumPlayer())] = R2I(( ( I2R(GetUnitPointValue(GetTriggerUnit())) * ( GetUnitStateSwap(UNIT_STATE_MAX_MANA, GetTriggerUnit()) * 0.10 ) ) * 0.25 )) | |
else | |
call DoNothing( ) | |
endif | |
endfunction | |
function Trig_Team1_Bounty_3_Func004002001 takes nothing returns boolean | |
return ( GetEnumPlayer() != GetOwningPlayer(GetKillingUnitBJ()) ) | |
endfunction | |
function Trig_Team1_Bounty_3_Func004002 takes nothing returns nothing | |
if ( Trig_Team1_Bounty_3_Func004002001() ) then | |
call AdjustPlayerStateBJ( R2I(( ( I2R(GetUnitPointValue(GetTriggerUnit())) * ( GetUnitStateSwap(UNIT_STATE_MAX_MANA, GetTriggerUnit()) * 0.10 ) ) * 0.25 )), GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD ) | |
else | |
call DoNothing( ) | |
endif | |
endfunction | |
function Trig_Team1_Bounty_3_Actions takes nothing returns nothing | |
call ForForce( GetForceOfPlayer(GetOwningPlayer(GetKillingUnitBJ())), function Trig_Team1_Bounty_3_Func001002 ) | |
call AdjustPlayerStateBJ( R2I(( ( I2R(GetUnitPointValue(GetTriggerUnit())) * ( GetUnitStateSwap(UNIT_STATE_MAX_MANA, GetTriggerUnit()) * 0.10 ) ) * 0.50 )), GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_GOLD ) | |
call ForForce( udg_Team1Group, function Trig_Team1_Bounty_3_Func003002 ) | |
call ForForce( udg_Team1Group, function Trig_Team1_Bounty_3_Func004002 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team1_Bounty_3 takes nothing returns nothing | |
set gg_trg_Team1_Bounty_3 = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Team1_Bounty_3, function Trig_Team1_Bounty_3_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Death Player 11 | |
//=========================================================================== | |
function Trig_Death_Player_11_Func002001 takes nothing returns boolean | |
return ( CountPlayersInForceBJ(udg_Team2Group) == 1 ) | |
endfunction | |
function Trig_Death_Player_11_Func003001 takes nothing returns boolean | |
return ( CountPlayersInForceBJ(udg_Team2Group) == 2 ) | |
endfunction | |
function Trig_Death_Player_11_Func004001 takes nothing returns boolean | |
return ( CountPlayersInForceBJ(udg_Team2Group) == 3 ) | |
endfunction | |
function Trig_Death_Player_11_Actions takes nothing returns nothing | |
call RemoveUnit( GetTriggerUnit() ) | |
if ( Trig_Death_Player_11_Func002001() ) then | |
call TriggerExecute( gg_trg_Team2_Bounty_1 ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Death_Player_11_Func003001() ) then | |
call TriggerExecute( gg_trg_Team2_Bounty_2 ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Death_Player_11_Func004001() ) then | |
call TriggerExecute( gg_trg_Team2_Bounty_3 ) | |
else | |
call DoNothing( ) | |
endif | |
endfunction | |
//=========================================================================== | |
function InitTrig_Death_Player_11 takes nothing returns nothing | |
set gg_trg_Death_Player_11 = CreateTrigger( ) | |
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Death_Player_11, Player(10), EVENT_PLAYER_UNIT_DEATH ) | |
call TriggerAddAction( gg_trg_Death_Player_11, function Trig_Death_Player_11_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Bounty 1 | |
//=========================================================================== | |
function Trig_Team2_Bounty_1_Func001002 takes nothing returns nothing | |
set udg_Bounty[GetConvertedPlayerId(GetEnumPlayer())] = R2I(( I2R(GetUnitPointValue(GetTriggerUnit())) * ( GetUnitStateSwap(UNIT_STATE_MAX_MANA, GetTriggerUnit()) * 0.10 ) )) | |
endfunction | |
function Trig_Team2_Bounty_1_Actions takes nothing returns nothing | |
call ForForce( GetForceOfPlayer(GetOwningPlayer(GetKillingUnitBJ())), function Trig_Team2_Bounty_1_Func001002 ) | |
call AdjustPlayerStateBJ( R2I(( I2R(GetUnitPointValue(GetTriggerUnit())) * ( GetUnitStateSwap(UNIT_STATE_MAX_MANA, GetTriggerUnit()) * 0.10 ) )), GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_GOLD ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Bounty_1 takes nothing returns nothing | |
set gg_trg_Team2_Bounty_1 = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Team2_Bounty_1, function Trig_Team2_Bounty_1_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Bounty 2 | |
//=========================================================================== | |
function Trig_Team2_Bounty_2_Func001002 takes nothing returns nothing | |
set udg_Bounty[GetConvertedPlayerId(GetEnumPlayer())] = R2I(( ( I2R(GetUnitPointValue(GetTriggerUnit())) * ( GetUnitStateSwap(UNIT_STATE_MAX_MANA, GetTriggerUnit()) * 0.10 ) ) * 0.66 )) | |
endfunction | |
function Trig_Team2_Bounty_2_Func003002001 takes nothing returns boolean | |
return ( GetEnumPlayer() != GetOwningPlayer(GetKillingUnitBJ()) ) | |
endfunction | |
function Trig_Team2_Bounty_2_Func003002 takes nothing returns nothing | |
if ( Trig_Team2_Bounty_2_Func003002001() ) then | |
set udg_Bounty[GetConvertedPlayerId(GetEnumPlayer())] = R2I(( ( I2R(GetUnitPointValue(GetTriggerUnit())) * ( GetUnitStateSwap(UNIT_STATE_MAX_MANA, GetTriggerUnit()) * 0.10 ) ) * 0.33 )) | |
else | |
call DoNothing( ) | |
endif | |
endfunction | |
function Trig_Team2_Bounty_2_Func004002001 takes nothing returns boolean | |
return ( GetEnumPlayer() != GetOwningPlayer(GetKillingUnitBJ()) ) | |
endfunction | |
function Trig_Team2_Bounty_2_Func004002 takes nothing returns nothing | |
if ( Trig_Team2_Bounty_2_Func004002001() ) then | |
call AdjustPlayerStateBJ( R2I(( ( I2R(GetUnitPointValue(GetTriggerUnit())) * ( GetUnitStateSwap(UNIT_STATE_MAX_MANA, GetTriggerUnit()) * 0.10 ) ) * 0.33 )), GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD ) | |
else | |
call DoNothing( ) | |
endif | |
endfunction | |
function Trig_Team2_Bounty_2_Actions takes nothing returns nothing | |
call ForForce( GetForceOfPlayer(GetOwningPlayer(GetKillingUnitBJ())), function Trig_Team2_Bounty_2_Func001002 ) | |
call AdjustPlayerStateBJ( R2I(( ( I2R(GetUnitPointValue(GetTriggerUnit())) * ( GetUnitStateSwap(UNIT_STATE_MAX_MANA, GetTriggerUnit()) * 0.10 ) ) * 0.67 )), GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_GOLD ) | |
call ForForce( udg_Team2Group, function Trig_Team2_Bounty_2_Func003002 ) | |
call ForForce( udg_Team2Group, function Trig_Team2_Bounty_2_Func004002 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Bounty_2 takes nothing returns nothing | |
set gg_trg_Team2_Bounty_2 = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Team2_Bounty_2, function Trig_Team2_Bounty_2_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team2 Bounty 3 | |
//=========================================================================== | |
function Trig_Team2_Bounty_3_Func001002 takes nothing returns nothing | |
set udg_Bounty[GetConvertedPlayerId(GetEnumPlayer())] = R2I(( ( I2R(GetUnitPointValue(GetTriggerUnit())) * ( GetUnitStateSwap(UNIT_STATE_MAX_MANA, GetTriggerUnit()) * 0.10 ) ) * 0.50 )) | |
endfunction | |
function Trig_Team2_Bounty_3_Func003002001 takes nothing returns boolean | |
return ( GetEnumPlayer() != GetOwningPlayer(GetKillingUnitBJ()) ) | |
endfunction | |
function Trig_Team2_Bounty_3_Func003002 takes nothing returns nothing | |
if ( Trig_Team2_Bounty_3_Func003002001() ) then | |
set udg_Bounty[GetConvertedPlayerId(GetEnumPlayer())] = R2I(( ( I2R(GetUnitPointValue(GetTriggerUnit())) * ( GetUnitStateSwap(UNIT_STATE_MAX_MANA, GetTriggerUnit()) * 0.10 ) ) * 0.25 )) | |
else | |
call DoNothing( ) | |
endif | |
endfunction | |
function Trig_Team2_Bounty_3_Func004002001 takes nothing returns boolean | |
return ( GetEnumPlayer() != GetOwningPlayer(GetKillingUnitBJ()) ) | |
endfunction | |
function Trig_Team2_Bounty_3_Func004002 takes nothing returns nothing | |
if ( Trig_Team2_Bounty_3_Func004002001() ) then | |
call AdjustPlayerStateBJ( R2I(( ( I2R(GetUnitPointValue(GetTriggerUnit())) * ( GetUnitStateSwap(UNIT_STATE_MAX_MANA, GetTriggerUnit()) * 0.10 ) ) * 0.25 )), GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD ) | |
else | |
call DoNothing( ) | |
endif | |
endfunction | |
function Trig_Team2_Bounty_3_Actions takes nothing returns nothing | |
call ForForce( GetForceOfPlayer(GetOwningPlayer(GetKillingUnitBJ())), function Trig_Team2_Bounty_3_Func001002 ) | |
call AdjustPlayerStateBJ( R2I(( ( I2R(GetUnitPointValue(GetTriggerUnit())) * ( GetUnitStateSwap(UNIT_STATE_MAX_MANA, GetTriggerUnit()) * 0.10 ) ) * 0.50 )), GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_GOLD ) | |
call ForForce( udg_Team2Group, function Trig_Team2_Bounty_3_Func003002 ) | |
call ForForce( udg_Team2Group, function Trig_Team2_Bounty_3_Func004002 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team2_Bounty_3 takes nothing returns nothing | |
set gg_trg_Team2_Bounty_3 = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Team2_Bounty_3, function Trig_Team2_Bounty_3_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Death Player 12 | |
//=========================================================================== | |
function Trig_Death_Player_12_Func002001 takes nothing returns boolean | |
return ( CountPlayersInForceBJ(udg_Team3Group) == 1 ) | |
endfunction | |
function Trig_Death_Player_12_Func003001 takes nothing returns boolean | |
return ( CountPlayersInForceBJ(udg_Team3Group) == 2 ) | |
endfunction | |
function Trig_Death_Player_12_Func004001 takes nothing returns boolean | |
return ( CountPlayersInForceBJ(udg_Team3Group) == 3 ) | |
endfunction | |
function Trig_Death_Player_12_Actions takes nothing returns nothing | |
call RemoveUnit( GetTriggerUnit() ) | |
if ( Trig_Death_Player_12_Func002001() ) then | |
call TriggerExecute( gg_trg_Team3_Bounty_1 ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Death_Player_12_Func003001() ) then | |
call TriggerExecute( gg_trg_Team3_Bounty_2 ) | |
else | |
call DoNothing( ) | |
endif | |
if ( Trig_Death_Player_12_Func004001() ) then | |
call TriggerExecute( gg_trg_Team3_Bounty_3 ) | |
else | |
call DoNothing( ) | |
endif | |
endfunction | |
//=========================================================================== | |
function InitTrig_Death_Player_12 takes nothing returns nothing | |
set gg_trg_Death_Player_12 = CreateTrigger( ) | |
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Death_Player_12, Player(11), EVENT_PLAYER_UNIT_DEATH ) | |
call TriggerAddAction( gg_trg_Death_Player_12, function Trig_Death_Player_12_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Bounty 1 | |
//=========================================================================== | |
function Trig_Team3_Bounty_1_Func001002 takes nothing returns nothing | |
set udg_Bounty[GetConvertedPlayerId(GetEnumPlayer())] = R2I(( I2R(GetUnitPointValue(GetTriggerUnit())) * ( GetUnitStateSwap(UNIT_STATE_MAX_MANA, GetTriggerUnit()) * 0.10 ) )) | |
endfunction | |
function Trig_Team3_Bounty_1_Actions takes nothing returns nothing | |
call ForForce( GetForceOfPlayer(GetOwningPlayer(GetKillingUnitBJ())), function Trig_Team3_Bounty_1_Func001002 ) | |
call AdjustPlayerStateBJ( R2I(( I2R(GetUnitPointValue(GetTriggerUnit())) * ( GetUnitStateSwap(UNIT_STATE_MAX_MANA, GetTriggerUnit()) * 0.10 ) )), GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_GOLD ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Bounty_1 takes nothing returns nothing | |
set gg_trg_Team3_Bounty_1 = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Team3_Bounty_1, function Trig_Team3_Bounty_1_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Bounty 2 | |
//=========================================================================== | |
function Trig_Team3_Bounty_2_Func001002 takes nothing returns nothing | |
set udg_Bounty[GetConvertedPlayerId(GetEnumPlayer())] = R2I(( ( I2R(GetUnitPointValue(GetTriggerUnit())) * ( GetUnitStateSwap(UNIT_STATE_MAX_MANA, GetTriggerUnit()) * 0.10 ) ) * 0.66 )) | |
endfunction | |
function Trig_Team3_Bounty_2_Func003002001 takes nothing returns boolean | |
return ( GetEnumPlayer() != GetOwningPlayer(GetKillingUnitBJ()) ) | |
endfunction | |
function Trig_Team3_Bounty_2_Func003002 takes nothing returns nothing | |
if ( Trig_Team3_Bounty_2_Func003002001() ) then | |
set udg_Bounty[GetConvertedPlayerId(GetEnumPlayer())] = R2I(( ( I2R(GetUnitPointValue(GetTriggerUnit())) * ( GetUnitStateSwap(UNIT_STATE_MAX_MANA, GetTriggerUnit()) * 0.10 ) ) * 0.33 )) | |
else | |
call DoNothing( ) | |
endif | |
endfunction | |
function Trig_Team3_Bounty_2_Func004002001 takes nothing returns boolean | |
return ( GetEnumPlayer() != GetOwningPlayer(GetKillingUnitBJ()) ) | |
endfunction | |
function Trig_Team3_Bounty_2_Func004002 takes nothing returns nothing | |
if ( Trig_Team3_Bounty_2_Func004002001() ) then | |
call AdjustPlayerStateBJ( R2I(( ( I2R(GetUnitPointValue(GetTriggerUnit())) * ( GetUnitStateSwap(UNIT_STATE_MAX_MANA, GetTriggerUnit()) * 0.10 ) ) * 0.33 )), GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD ) | |
else | |
call DoNothing( ) | |
endif | |
endfunction | |
function Trig_Team3_Bounty_2_Actions takes nothing returns nothing | |
call ForForce( GetForceOfPlayer(GetOwningPlayer(GetKillingUnitBJ())), function Trig_Team3_Bounty_2_Func001002 ) | |
call AdjustPlayerStateBJ( R2I(( ( I2R(GetUnitPointValue(GetTriggerUnit())) * ( GetUnitStateSwap(UNIT_STATE_MAX_MANA, GetTriggerUnit()) * 0.10 ) ) * 0.67 )), GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_GOLD ) | |
call ForForce( udg_Team3Group, function Trig_Team3_Bounty_2_Func003002 ) | |
call ForForce( udg_Team3Group, function Trig_Team3_Bounty_2_Func004002 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Bounty_2 takes nothing returns nothing | |
set gg_trg_Team3_Bounty_2 = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Team3_Bounty_2, function Trig_Team3_Bounty_2_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Team3 Bounty 3 | |
//=========================================================================== | |
function Trig_Team3_Bounty_3_Func001002 takes nothing returns nothing | |
set udg_Bounty[GetConvertedPlayerId(GetEnumPlayer())] = R2I(( ( I2R(GetUnitPointValue(GetTriggerUnit())) * ( GetUnitStateSwap(UNIT_STATE_MAX_MANA, GetTriggerUnit()) * 0.10 ) ) * 0.50 )) | |
endfunction | |
function Trig_Team3_Bounty_3_Func003002001 takes nothing returns boolean | |
return ( GetEnumPlayer() != GetOwningPlayer(GetKillingUnitBJ()) ) | |
endfunction | |
function Trig_Team3_Bounty_3_Func003002 takes nothing returns nothing | |
if ( Trig_Team3_Bounty_3_Func003002001() ) then | |
set udg_Bounty[GetConvertedPlayerId(GetEnumPlayer())] = R2I(( ( I2R(GetUnitPointValue(GetTriggerUnit())) * ( GetUnitStateSwap(UNIT_STATE_MAX_MANA, GetTriggerUnit()) * 0.10 ) ) * 0.25 )) | |
else | |
call DoNothing( ) | |
endif | |
endfunction | |
function Trig_Team3_Bounty_3_Func004002001 takes nothing returns boolean | |
return ( GetEnumPlayer() != GetOwningPlayer(GetKillingUnitBJ()) ) | |
endfunction | |
function Trig_Team3_Bounty_3_Func004002 takes nothing returns nothing | |
if ( Trig_Team3_Bounty_3_Func004002001() ) then | |
call AdjustPlayerStateBJ( R2I(( ( I2R(GetUnitPointValue(GetTriggerUnit())) * ( GetUnitStateSwap(UNIT_STATE_MAX_MANA, GetTriggerUnit()) * 0.10 ) ) * 0.25 )), GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD ) | |
else | |
call DoNothing( ) | |
endif | |
endfunction | |
function Trig_Team3_Bounty_3_Actions takes nothing returns nothing | |
call ForForce( GetForceOfPlayer(GetOwningPlayer(GetKillingUnitBJ())), function Trig_Team3_Bounty_3_Func001002 ) | |
call AdjustPlayerStateBJ( R2I(( ( I2R(GetUnitPointValue(GetTriggerUnit())) * ( GetUnitStateSwap(UNIT_STATE_MAX_MANA, GetTriggerUnit()) * 0.10 ) ) * 0.50 )), GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_GOLD ) | |
call ForForce( udg_Team3Group, function Trig_Team3_Bounty_3_Func003002 ) | |
call ForForce( udg_Team3Group, function Trig_Team3_Bounty_3_Func004002 ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Team3_Bounty_3 takes nothing returns nothing | |
set gg_trg_Team3_Bounty_3 = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Team3_Bounty_3, function Trig_Team3_Bounty_3_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Init Repick Timers | |
//=========================================================================== | |
function Trig_Init_Repick_Timers_Actions takes nothing returns nothing | |
call TriggerExecute( gg_trg_Team1_Start_Repick_Timer ) | |
call TriggerExecute( gg_trg_Team2_Start_Repick_Timer ) | |
call TriggerExecute( gg_trg_Team3_Start_Repick_Timer ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Init_Repick_Timers takes nothing returns nothing | |
set gg_trg_Init_Repick_Timers = CreateTrigger( ) | |
call TriggerRegisterTimerEventSingle( gg_trg_Init_Repick_Timers, 10.00 ) | |
call TriggerAddAction( gg_trg_Init_Repick_Timers, function Trig_Init_Repick_Timers_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Cancel GameStartTimer | |
//=========================================================================== | |
function Trig_Cancel_GameStartTimer_Actions takes nothing returns nothing | |
call DestroyTimerDialogBJ( udg_GameStartTimerWindow ) | |
endfunction | |
//=========================================================================== | |
function InitTrig_Cancel_GameStartTimer takes nothing returns nothing | |
set gg_trg_Cancel_GameStartTimer = CreateTrigger( ) | |
call TriggerRegisterTimerExpireEventBJ( gg_trg_Cancel_GameStartTimer, udg_GameStartTimer ) | |
call TriggerAddAction( gg_trg_Cancel_GameStartTimer, function Trig_Cancel_GameStartTimer_Actions ) | |
endfunction | |
//=========================================================================== | |
// Trigger: Start GameStart Timer | |
//=========================================================================== | |
function Trig_Start_GameStart_Timer_Actions takes nothing returns nothing | |
// Init Game Start Timer | |
call StartTimerBJ( udg_GameStartTimer, false, 57.00 ) | |
call CreateTimerDialogBJ( udg_GameStartTimer, "TRIGSTR_118" ) | |
set udg_GameStartTimerWindow = GetLastCreatedTimerDialogBJ() | |
endfunction | |
//=========================================================================== | |
function InitTrig_Start_GameStart_Timer takes nothing returns nothing | |
set gg_trg_Start_GameStart_Timer = CreateTrigger( ) | |
call TriggerAddAction( gg_trg_Start_GameStart_Timer, function Trig_Start_GameStart_Timer_Actions ) | |
endfunction | |
//=========================================================================== | |
function InitCustomTriggers takes nothing returns nothing | |
call InitTrig_Init_Tips( ) | |
call InitTrig_Tips_On( ) | |
call InitTrig_Tips_Off( ) | |
call InitTrig_Player1_Show_Tip( ) | |
call InitTrig_Player2_Show_Tip( ) | |
call InitTrig_Player3_Show_Tip( ) | |
call InitTrig_Player4_Show_Tip( ) | |
call InitTrig_Player5_Show_Tip( ) | |
call InitTrig_Player6_Show_Tip( ) | |
call InitTrig_Player7_Show_Tip( ) | |
call InitTrig_Player8_Show_Tip( ) | |
call InitTrig_Player9_Show_Tip( ) | |
call InitTrig_Display_Profile_Message( ) | |
call InitTrig_Player1_Repick( ) | |
call InitTrig_Player2_Repick( ) | |
call InitTrig_Player3_Repick( ) | |
call InitTrig_Player4_Repick( ) | |
call InitTrig_Player5_Repick( ) | |
call InitTrig_Player6_Repick( ) | |
call InitTrig_Player7_Repick( ) | |
call InitTrig_Player8_Repick( ) | |
call InitTrig_Player9_Repick( ) | |
call InitTrig_Player1_Profile_Dialog( ) | |
call InitTrig_Player2_Profile_Dialog( ) | |
call InitTrig_Player3_Profile_Dialog( ) | |
call InitTrig_Player4_Profile_Dialog( ) | |
call InitTrig_Player5_Profile_Dialog( ) | |
call InitTrig_Player6_Profile_Dialog( ) | |
call InitTrig_Player7_Profile_Dialog( ) | |
call InitTrig_Player8_Profile_Dialog( ) | |
call InitTrig_Player9_Profile_Dialog( ) | |
call InitTrig_Player1_Profile_Button1( ) | |
call InitTrig_Player2_Profile_Button1( ) | |
call InitTrig_Player3_Profile_Button1( ) | |
call InitTrig_Player4_Profile_Button1( ) | |
call InitTrig_Player5_Profile_Button1( ) | |
call InitTrig_Player6_Profile_Button1( ) | |
call InitTrig_Player7_Profile_Button1( ) | |
call InitTrig_Player8_Profile_Button1( ) | |
call InitTrig_Player9_Profile_Button1( ) | |
call InitTrig_Player1_Profile_Button2( ) | |
call InitTrig_Player2_Profile_Button2( ) | |
call InitTrig_Player3_Profile_Button2( ) | |
call InitTrig_Player4_Profile_Button2( ) | |
call InitTrig_Player5_Profile_Button2( ) | |
call InitTrig_Player6_Profile_Button2( ) | |
call InitTrig_Player7_Profile_Button2( ) | |
call InitTrig_Player8_Profile_Button2( ) | |
call InitTrig_Player9_Profile_Button2( ) | |
call InitTrig_Team1_Income_Setting( ) | |
call InitTrig_Team2_Income_Setting( ) | |
call InitTrig_Team3_Income_Setting( ) | |
call InitTrig_Player1_ChangeIncome( ) | |
call InitTrig_Player1_Timer_Dialog( ) | |
call InitTrig_Player1_Timer_Button1( ) | |
call InitTrig_Player1_Timer_Button2( ) | |
call InitTrig_Player1_Timer_Button3( ) | |
call InitTrig_Player1_Timer_Button4( ) | |
call InitTrig_Player1_Timer_Button5( ) | |
call InitTrig_Init_Music_Array( ) | |
call InitTrig_M01( ) | |
call InitTrig_M02( ) | |
call InitTrig_M03( ) | |
call InitTrig_M04( ) | |
call InitTrig_M05( ) | |
call InitTrig_M06( ) | |
call InitTrig_M07( ) | |
call InitTrig_M08( ) | |
call InitTrig_M09( ) | |
call InitTrig_M10( ) | |
call InitTrig_M11( ) | |
call InitTrig_M12( ) | |
call InitTrig_Mystic_Tower_Slow10( ) | |
call InitTrig_Mystic_Tower_Slow11( ) | |
call InitTrig_Mystic_Tower_Slow12( ) | |
call InitTrig_Split_Player1( ) | |
call InitTrig_Split_Player2( ) | |
call InitTrig_Split_Player3( ) | |
call InitTrig_Split_Player4( ) | |
call InitTrig_Split_Player5( ) | |
call InitTrig_Split_Player6( ) | |
call InitTrig_Split_Player7( ) | |
call InitTrig_Split_Player8( ) | |
call InitTrig_Split_Player9( ) | |
call InitTrig_Start_Income( ) | |
call InitTrig_Check_Income( ) | |
call InitTrig_Player1_Kill_Income( ) | |
call InitTrig_Player2_Kill_Income( ) | |
call InitTrig_Player3_Kill_Income( ) | |
call InitTrig_Player4_Kill_Income( ) | |
call InitTrig_Player5_Kill_Income( ) | |
call InitTrig_Player6_Kill_Income( ) | |
call InitTrig_Player7_Kill_Income( ) | |
call InitTrig_Player8_Kill_Income( ) | |
call InitTrig_Player9_Kill_Income( ) | |
call InitTrig_Give_Income( ) | |
call InitTrig_IncomeTime10( ) | |
call InitTrig_IncomeTime15( ) | |
call InitTrig_IncomeTime20( ) | |
call InitTrig_IncomeTime25( ) | |
call InitTrig_IncomeTime30( ) | |
call InitTrig_Player1_Deposit( ) | |
call InitTrig_Player2_Deposit( ) | |
call InitTrig_Player3_Deposit( ) | |
call InitTrig_Player4_Deposit( ) | |
call InitTrig_Player5_Deposit( ) | |
call InitTrig_Player6_Deposit( ) | |
call InitTrig_Player7_Deposit( ) | |
call InitTrig_Player8_Deposit( ) | |
call InitTrig_Player9_Deposit( ) | |
call InitTrig_Player1_Withdrawal( ) | |
call InitTrig_Player2_Withdrawal( ) | |
call InitTrig_Player3_Withdrawal( ) | |
call InitTrig_Player4_Withdrawal( ) | |
call InitTrig_Player5_Withdrawal( ) | |
call InitTrig_Player6_Withdrawal( ) | |
call InitTrig_Player7_Withdrawal( ) | |
call InitTrig_Player8_Withdrawal( ) | |
call InitTrig_Player9_Withdrawal( ) | |
call InitTrig_Upgrade_Player_1( ) | |
call InitTrig_Upgrade_Player_2( ) | |
call InitTrig_Upgrade_Player_3( ) | |
call InitTrig_Upgrade_Player_4( ) | |
call InitTrig_Upgrade_Player_5( ) | |
call InitTrig_Upgrade_Player_6( ) | |
call InitTrig_Upgrade_Player_7( ) | |
call InitTrig_Upgrade_Player_8( ) | |
call InitTrig_Upgrade_Player_9( ) | |
call InitTrig_Player1_Shrine( ) | |
call InitTrig_Player2_Shrine( ) | |
call InitTrig_Player3_Shrine( ) | |
call InitTrig_Player4_Shrine( ) | |
call InitTrig_Player5_Shrine( ) | |
call InitTrig_Player6_Shrine( ) | |
call InitTrig_Player7_Shrine( ) | |
call InitTrig_Player8_Shrine( ) | |
call InitTrig_Player9_Shrine( ) | |
call InitTrig_Team1_Extra_Shrines( ) | |
call InitTrig_Team2_Extra_Shrines( ) | |
call InitTrig_Team3_Extra_Shrines( ) | |
call InitTrig_Player1_Extra_Shrine( ) | |
call InitTrig_Player2_Extra_Shrine( ) | |
call InitTrig_Player3_Extra_Shrine( ) | |
call InitTrig_Player4_Extra_Shrine( ) | |
call InitTrig_Player5_Extra_Shrine( ) | |
call InitTrig_Player6_Extra_Shrine( ) | |
call InitTrig_Player7_Extra_Shrine( ) | |
call InitTrig_Player8_Extra_Shrine( ) | |
call InitTrig_Player9_Extra_Shrine( ) | |
call InitTrig_Finalize_Player1( ) | |
call InitTrig_Finalize_Player2( ) | |
call InitTrig_Finalize_Player3( ) | |
call InitTrig_Finalize_Player4( ) | |
call InitTrig_Finalize_Player5( ) | |
call InitTrig_Finalize_Player6( ) | |
call InitTrig_Finalize_Player7( ) | |
call InitTrig_Finalize_Player8( ) | |
call InitTrig_Finalize_Player9( ) | |
call InitTrig_Init_Shrines( ) | |
call InitTrig_Contact_Info( ) | |
call InitTrig_Init_Music( ) | |
call InitTrig_Quest( ) | |
call InitTrig_Init( ) | |
call InitTrig_Team1( ) | |
call InitTrig_Team2( ) | |
call InitTrig_Team3( ) | |
call InitTrig_Player1( ) | |
call InitTrig_Player2( ) | |
call InitTrig_Player3( ) | |
call InitTrig_Player4( ) | |
call InitTrig_Player5( ) | |
call InitTrig_Player6( ) | |
call InitTrig_Player7( ) | |
call InitTrig_Player8( ) | |
call InitTrig_Player9( ) | |
call InitTrig_Scoreboard( ) | |
call InitTrig_Research( ) | |
call InitTrig_Vision( ) | |
call InitTrig_Team1_Defeat( ) | |
call InitTrig_Team2_Defeat( ) | |
call InitTrig_Team3_Defeat( ) | |
call InitTrig_Team1_Victory( ) | |
call InitTrig_Team2_Victory( ) | |
call InitTrig_Team3_Victory( ) | |
call InitTrig_Team1_Loses_a_life( ) | |
call InitTrig_Team2_Loses_a_life( ) | |
call InitTrig_Team3_Loses_a_life( ) | |
call InitTrig_Team1_Move_Attackers( ) | |
call InitTrig_Team1_Init_Creep_Array( ) | |
call InitTrig_Team1_Sorter( ) | |
call InitTrig_Team1_Sort_Spot_1( ) | |
call InitTrig_Team1_Sort_Spot_2( ) | |
call InitTrig_Team1_Sort_Spot_3( ) | |
call InitTrig_Team1_Spawn( ) | |
call InitTrig_Team1_Move_Workers( ) | |
call InitTrig_Team1_Path1_Start( ) | |
call InitTrig_Team1_Path1_01( ) | |
call InitTrig_Team1_Path1_02( ) | |
call InitTrig_Team1_Path1_03( ) | |
call InitTrig_Team1_Path1_04( ) | |
call InitTrig_Team1_Path1_05( ) | |
call InitTrig_Team1_Path1_06( ) | |
call InitTrig_Team1_Path1_07( ) | |
call InitTrig_Team1_Path1_08( ) | |
call InitTrig_Team1_Path1_09( ) | |
call InitTrig_Team1_Path1_10( ) | |
call InitTrig_Team1_Path1_11( ) | |
call InitTrig_Team1_Path1_12( ) | |
call InitTrig_Team1_Path2_Start( ) | |
call InitTrig_Team1_Path2_01( ) | |
call InitTrig_Team1_Path2_02( ) | |
call InitTrig_Team1_Path2_03( ) | |
call InitTrig_Team1_Path2_04( ) | |
call InitTrig_Team1_Path2_05( ) | |
call InitTrig_Team1_Path2_06( ) | |
call InitTrig_Team1_Path2_07( ) | |
call InitTrig_Team1_Path2_08( ) | |
call InitTrig_Team1_Path2_09( ) | |
call InitTrig_Team1_Path2_10( ) | |
call InitTrig_Team1_Path2_11( ) | |
call InitTrig_Team1_Path2_12( ) | |
call InitTrig_Team1_Path2_13( ) | |
call InitTrig_Team1_Path2_14( ) | |
call InitTrig_Team1_Path2_15( ) | |
call InitTrig_Team1_Path3_Start( ) | |
call InitTrig_Team1_Path3_01( ) | |
call InitTrig_Team1_Path3_02( ) | |
call InitTrig_Team1_Path3_03( ) | |
call InitTrig_Team1_Path3_04( ) | |
call InitTrig_Team1_Path3_05( ) | |
call InitTrig_Team1_Path3_06( ) | |
call InitTrig_Team1_Path3_07( ) | |
call InitTrig_Team1_Path3_08( ) | |
call InitTrig_Team1_Path3_09( ) | |
call InitTrig_Team1_Path3_10( ) | |
call InitTrig_Team1_End( ) | |
call InitTrig_Team2_Move_Attackers( ) | |
call InitTrig_Team2_Init_Creep_Array( ) | |
call InitTrig_Team2_Sorter( ) | |
call InitTrig_Team2_Sort_Spot_1( ) | |
call InitTrig_Team2_Sort_Spot_2( ) | |
call InitTrig_Team2_Sort_Spot_3( ) | |
call InitTrig_Team2_Spawn( ) | |
call InitTrig_Team2_Move_Workers( ) | |
call InitTrig_Team2_Path1_Start( ) | |
call InitTrig_Team2_Path1_01( ) | |
call InitTrig_Team2_Path1_02( ) | |
call InitTrig_Team2_Path1_03( ) | |
call InitTrig_Team2_Path1_04( ) | |
call InitTrig_Team2_Path1_05( ) | |
call InitTrig_Team2_Path1_06( ) | |
call InitTrig_Team2_Path1_07( ) | |
call InitTrig_Team2_Path1_08( ) | |
call InitTrig_Team2_Path1_09( ) | |
call InitTrig_Team2_Path1_10( ) | |
call InitTrig_Team2_Path1_11( ) | |
call InitTrig_Team2_Path1_12( ) | |
call InitTrig_Team2_Path2_Start( ) | |
call InitTrig_Team2_Path2_01( ) | |
call InitTrig_Team2_Path2_02( ) | |
call InitTrig_Team2_Path2_03( ) | |
call InitTrig_Team2_Path2_04( ) | |
call InitTrig_Team2_Path2_05( ) | |
call InitTrig_Team2_Path2_06( ) | |
call InitTrig_Team2_Path2_07( ) | |
call InitTrig_Team2_Path2_08( ) | |
call InitTrig_Team2_Path2_09( ) | |
call InitTrig_Team2_Path2_10( ) | |
call InitTrig_Team2_Path2_11( ) | |
call InitTrig_Team2_Path2_12( ) | |
call InitTrig_Team2_Path2_13( ) | |
call InitTrig_Team2_Path2_14( ) | |
call InitTrig_Team2_Path2_15( ) | |
call InitTrig_Team2_Path3_Start( ) | |
call InitTrig_Team2_Path3_01( ) | |
call InitTrig_Team2_Path3_02( ) | |
call InitTrig_Team2_Path3_03( ) | |
call InitTrig_Team2_Path3_04( ) | |
call InitTrig_Team2_Path3_05( ) | |
call InitTrig_Team2_Path3_06( ) | |
call InitTrig_Team2_Path3_07( ) | |
call InitTrig_Team2_Path3_08( ) | |
call InitTrig_Team2_Path3_09( ) | |
call InitTrig_Team2_Path3_10( ) | |
call InitTrig_Team2_Path3_11( ) | |
call InitTrig_Team2_End( ) | |
call InitTrig_Team3_Move_Attackers( ) | |
call InitTrig_Team3_Init_Creep_Array( ) | |
call InitTrig_Team2_Sorter_Copy( ) | |
call InitTrig_Team3_Sort_Spot_1( ) | |
call InitTrig_Team3_Sort_Spot_2( ) | |
call InitTrig_Team3_Sort_Spot_3( ) | |
call InitTrig_Team3_Spawn( ) | |
call InitTrig_Team3_Move_Workers( ) | |
call InitTrig_Team3_Path1_Start( ) | |
call InitTrig_Team3_Path1_01( ) | |
call InitTrig_Team3_Path1_02( ) | |
call InitTrig_Team3_Path1_03( ) | |
call InitTrig_Team3_Path1_04( ) | |
call InitTrig_Team3_Path1_05( ) | |
call InitTrig_Team3_Path1_06( ) | |
call InitTrig_Team3_Path1_07( ) | |
call InitTrig_Team3_Path1_08( ) | |
call InitTrig_Team3_Path1_09( ) | |
call InitTrig_Team3_Path1_10( ) | |
call InitTrig_Team3_Path1_11( ) | |
call InitTrig_Team3_Path1_12( ) | |
call InitTrig_Team3_Path2_Start( ) | |
call InitTrig_Team3_Path2_01( ) | |
call InitTrig_Team3_Path2_02( ) | |
call InitTrig_Team3_Path2_03( ) | |
call InitTrig_Team3_Path2_04( ) | |
call InitTrig_Team3_Path2_05( ) | |
call InitTrig_Team3_Path2_06( ) | |
call InitTrig_Team3_Path2_07( ) | |
call InitTrig_Team3_Path2_08( ) | |
call InitTrig_Team3_Path2_09( ) | |
call InitTrig_Team3_Path2_10( ) | |
call InitTrig_Team3_Path2_11( ) | |
call InitTrig_Team3_Path2_12( ) | |
call InitTrig_Team3_Path2_13( ) | |
call InitTrig_Team3_Path2_14( ) | |
call InitTrig_Team3_Path2_15( ) | |
call InitTrig_Team3_Path3_Start( ) | |
call InitTrig_Team3_Path3_01( ) | |
call InitTrig_Team3_Path3_02( ) | |
call InitTrig_Team3_Path3_03( ) | |
call InitTrig_Team3_Path3_04( ) | |
call InitTrig_Team3_Path3_05( ) | |
call InitTrig_Team3_Path3_06( ) | |
call InitTrig_Team3_Path3_07( ) | |
call InitTrig_Team3_Path3_08( ) | |
call InitTrig_Team3_Path3_09( ) | |
call InitTrig_Team3_Path3_10( ) | |
call InitTrig_Team3_End( ) | |
call InitTrig_Team1_Transport( ) | |
call InitTrig_Team2_Transport( ) | |
call InitTrig_Team3_Transport( ) | |
call InitTrig_Team1_Give_Gold( ) | |
call InitTrig_Team2_Give_Gold( ) | |
call InitTrig_Team3_Give_Gold( ) | |
call InitTrig_Team1_Give_All_Gold( ) | |
call InitTrig_Team2_Give_All_Gold( ) | |
call InitTrig_Team3_Give_All_Gold( ) | |
call InitTrig_Team1_Give_Lumber( ) | |
call InitTrig_Team2_Give_Lumber( ) | |
call InitTrig_Team3_Give_Lumber( ) | |
call InitTrig_Sell( ) | |
call InitTrig_Team1_Keep_Off( ) | |
call InitTrig_Team2_Keep_Off( ) | |
call InitTrig_Team3_Keep_Off( ) | |
call InitTrig_Team3_Cancel_Repick( ) | |
call InitTrig_Team2_Cancel_Repick( ) | |
call InitTrig_Team1_Cancel_Repick( ) | |
call InitTrig_Cancel_ChangeIncome( ) | |
call InitTrig_Team3_Start_Repick_Timer( ) | |
call InitTrig_Team2_Start_Repick_Timer( ) | |
call InitTrig_Team1_Start_Repick_Timer( ) | |
call InitTrig_Start_ChangeIncome_Timer( ) | |
call InitTrig_Death_Player_10( ) | |
call InitTrig_Team1_Bounty_1( ) | |
call InitTrig_Team1_Bounty_2( ) | |
call InitTrig_Team1_Bounty_3( ) | |
call InitTrig_Death_Player_11( ) | |
call InitTrig_Team2_Bounty_1( ) | |
call InitTrig_Team2_Bounty_2( ) | |
call InitTrig_Team2_Bounty_3( ) | |
call InitTrig_Death_Player_12( ) | |
call InitTrig_Team3_Bounty_1( ) | |
call InitTrig_Team3_Bounty_2( ) | |
call InitTrig_Team3_Bounty_3( ) | |
call InitTrig_Init_Repick_Timers( ) | |
call InitTrig_Cancel_GameStartTimer( ) | |
call InitTrig_Start_GameStart_Timer( ) | |
endfunction | |
//=========================================================================== | |
function RunInitializationTriggers takes nothing returns nothing | |
call ConditionalTriggerExecute( gg_trg_Init_Tips ) | |
call ConditionalTriggerExecute( gg_trg_Init_Music_Array ) | |
call ConditionalTriggerExecute( gg_trg_Quest ) | |
call ConditionalTriggerExecute( gg_trg_Research ) | |
call ConditionalTriggerExecute( gg_trg_Vision ) | |
endfunction | |
//*************************************************************************** | |
//* | |
//* Players | |
//* | |
//*************************************************************************** | |
function InitCustomPlayerSlots takes nothing returns nothing | |
// Player 0 | |
call SetPlayerStartLocation( Player(0), 0 ) | |
call ForcePlayerStartLocation( Player(0), 0 ) | |
call SetPlayerColor( Player(0), ConvertPlayerColor(0) ) | |
call SetPlayerRacePreference( Player(0), RACE_PREF_HUMAN ) | |
call SetPlayerRaceSelectable( Player(0), false ) | |
call SetPlayerController( Player(0), MAP_CONTROL_USER ) | |
// Player 1 | |
call SetPlayerStartLocation( Player(1), 1 ) | |
call ForcePlayerStartLocation( Player(1), 1 ) | |
call SetPlayerColor( Player(1), ConvertPlayerColor(1) ) | |
call SetPlayerRacePreference( Player(1), RACE_PREF_HUMAN ) | |
call SetPlayerRaceSelectable( Player(1), false ) | |
call SetPlayerController( Player(1), MAP_CONTROL_USER ) | |
// Player 2 | |
call SetPlayerStartLocation( Player(2), 2 ) | |
call ForcePlayerStartLocation( Player(2), 2 ) | |
call SetPlayerColor( Player(2), ConvertPlayerColor(2) ) | |
call SetPlayerRacePreference( Player(2), RACE_PREF_HUMAN ) | |
call SetPlayerRaceSelectable( Player(2), false ) | |
call SetPlayerController( Player(2), MAP_CONTROL_USER ) | |
// Player 3 | |
call SetPlayerStartLocation( Player(3), 3 ) | |
call ForcePlayerStartLocation( Player(3), 3 ) | |
call SetPlayerColor( Player(3), ConvertPlayerColor(3) ) | |
call SetPlayerRacePreference( Player(3), RACE_PREF_HUMAN ) | |
call SetPlayerRaceSelectable( Player(3), false ) | |
call SetPlayerController( Player(3), MAP_CONTROL_USER ) | |
// Player 4 | |
call SetPlayerStartLocation( Player(4), 4 ) | |
call ForcePlayerStartLocation( Player(4), 4 ) | |
call SetPlayerColor( Player(4), ConvertPlayerColor(4) ) | |
call SetPlayerRacePreference( Player(4), RACE_PREF_HUMAN ) | |
call SetPlayerRaceSelectable( Player(4), false ) | |
call SetPlayerController( Player(4), MAP_CONTROL_USER ) | |
// Player 5 | |
call SetPlayerStartLocation( Player(5), 5 ) | |
call ForcePlayerStartLocation( Player(5), 5 ) | |
call SetPlayerColor( Player(5), ConvertPlayerColor(5) ) | |
call SetPlayerRacePreference( Player(5), RACE_PREF_HUMAN ) | |
call SetPlayerRaceSelectable( Player(5), false ) | |
call SetPlayerController( Player(5), MAP_CONTROL_USER ) | |
// Player 6 | |
call SetPlayerStartLocation( Player(6), 6 ) | |
call ForcePlayerStartLocation( Player(6), 6 ) | |
call SetPlayerColor( Player(6), ConvertPlayerColor(6) ) | |
call SetPlayerRacePreference( Player(6), RACE_PREF_HUMAN ) | |
call SetPlayerRaceSelectable( Player(6), false ) | |
call SetPlayerController( Player(6), MAP_CONTROL_USER ) | |
// Player 7 | |
call SetPlayerStartLocation( Player(7), 7 ) | |
call ForcePlayerStartLocation( Player(7), 7 ) | |
call SetPlayerColor( Player(7), ConvertPlayerColor(7) ) | |
call SetPlayerRacePreference( Player(7), RACE_PREF_HUMAN ) | |
call SetPlayerRaceSelectable( Player(7), false ) | |
call SetPlayerController( Player(7), MAP_CONTROL_USER ) | |
// Player 8 | |
call SetPlayerStartLocation( Player(8), 8 ) | |
call ForcePlayerStartLocation( Player(8), 8 ) | |
call SetPlayerColor( Player(8), ConvertPlayerColor(8) ) | |
call SetPlayerRacePreference( Player(8), RACE_PREF_HUMAN ) | |
call SetPlayerRaceSelectable( Player(8), false ) | |
call SetPlayerController( Player(8), MAP_CONTROL_USER ) | |
// Player 9 | |
call SetPlayerStartLocation( Player(9), 9 ) | |
call ForcePlayerStartLocation( Player(9), 9 ) | |
call SetPlayerColor( Player(9), ConvertPlayerColor(9) ) | |
call SetPlayerRacePreference( Player(9), RACE_PREF_HUMAN ) | |
call SetPlayerRaceSelectable( Player(9), false ) | |
call SetPlayerController( Player(9), MAP_CONTROL_NEUTRAL ) | |
// Player 10 | |
call SetPlayerStartLocation( Player(10), 10 ) | |
call ForcePlayerStartLocation( Player(10), 10 ) | |
call SetPlayerColor( Player(10), ConvertPlayerColor(10) ) | |
call SetPlayerRacePreference( Player(10), RACE_PREF_HUMAN ) | |
call SetPlayerRaceSelectable( Player(10), false ) | |
call SetPlayerController( Player(10), MAP_CONTROL_NEUTRAL ) | |
// Player 11 | |
call SetPlayerStartLocation( Player(11), 11 ) | |
call ForcePlayerStartLocation( Player(11), 11 ) | |
call SetPlayerColor( Player(11), ConvertPlayerColor(11) ) | |
call SetPlayerRacePreference( Player(11), RACE_PREF_HUMAN ) | |
call SetPlayerRaceSelectable( Player(11), false ) | |
call SetPlayerController( Player(11), MAP_CONTROL_NEUTRAL ) | |
endfunction | |
function InitCustomTeams takes nothing returns nothing | |
// Force: TRIGSTR_002 | |
call SetPlayerTeam( Player(0), 0 ) | |
call SetPlayerState( Player(0), PLAYER_STATE_ALLIED_VICTORY, 1 ) | |
call SetPlayerTeam( Player(1), 0 ) | |
call SetPlayerState( Player(1), PLAYER_STATE_ALLIED_VICTORY, 1 ) | |
call SetPlayerTeam( Player(2), 0 ) | |
call SetPlayerState( Player(2), PLAYER_STATE_ALLIED_VICTORY, 1 ) | |
// Allied | |
call SetPlayerAllianceStateAllyBJ( Player(0), Player(1), true ) | |
call SetPlayerAllianceStateAllyBJ( Player(0), Player(2), true ) | |
call SetPlayerAllianceStateAllyBJ( Player(1), Player(0), true ) | |
call SetPlayerAllianceStateAllyBJ( Player(1), Player(2), true ) | |
call SetPlayerAllianceStateAllyBJ( Player(2), Player(0), true ) | |
call SetPlayerAllianceStateAllyBJ( Player(2), Player(1), true ) | |
// Shared Vision | |
call SetPlayerAllianceStateVisionBJ( Player(0), Player(1), true ) | |
call SetPlayerAllianceStateVisionBJ( Player(0), Player(2), true ) | |
call SetPlayerAllianceStateVisionBJ( Player(1), Player(0), true ) | |
call SetPlayerAllianceStateVisionBJ( Player(1), Player(2), true ) | |
call SetPlayerAllianceStateVisionBJ( Player(2), Player(0), true ) | |
call SetPlayerAllianceStateVisionBJ( Player(2), Player(1), true ) | |
// Force: TRIGSTR_023 | |
call SetPlayerTeam( Player(3), 1 ) | |
call SetPlayerState( Player(3), PLAYER_STATE_ALLIED_VICTORY, 1 ) | |
call SetPlayerTeam( Player(4), 1 ) | |
call SetPlayerState( Player(4), PLAYER_STATE_ALLIED_VICTORY, 1 ) | |
call SetPlayerTeam( Player(5), 1 ) | |
call SetPlayerState( Player(5), PLAYER_STATE_ALLIED_VICTORY, 1 ) | |
// Allied | |
call SetPlayerAllianceStateAllyBJ( Player(3), Player(4), true ) | |
call SetPlayerAllianceStateAllyBJ( Player(3), Player(5), true ) | |
call SetPlayerAllianceStateAllyBJ( Player(4), Player(3), true ) | |
call SetPlayerAllianceStateAllyBJ( Player(4), Player(5), true ) | |
call SetPlayerAllianceStateAllyBJ( Player(5), Player(3), true ) | |
call SetPlayerAllianceStateAllyBJ( Player(5), Player(4), true ) | |
// Shared Vision | |
call SetPlayerAllianceStateVisionBJ( Player(3), Player(4), true ) | |
call SetPlayerAllianceStateVisionBJ( Player(3), Player(5), true ) | |
call SetPlayerAllianceStateVisionBJ( Player(4), Player(3), true ) | |
call SetPlayerAllianceStateVisionBJ( Player(4), Player(5), true ) | |
call SetPlayerAllianceStateVisionBJ( Player(5), Player(3), true ) | |
call SetPlayerAllianceStateVisionBJ( Player(5), Player(4), true ) | |
// Force: TRIGSTR_031 | |
call SetPlayerTeam( Player(6), 2 ) | |
call SetPlayerState( Player(6), PLAYER_STATE_ALLIED_VICTORY, 1 ) | |
call SetPlayerTeam( Player(7), 2 ) | |
call SetPlayerState( Player(7), PLAYER_STATE_ALLIED_VICTORY, 1 ) | |
call SetPlayerTeam( Player(8), 2 ) | |
call SetPlayerState( Player(8), PLAYER_STATE_ALLIED_VICTORY, 1 ) | |
// Allied | |
call SetPlayerAllianceStateAllyBJ( Player(6), Player(7), true ) | |
call SetPlayerAllianceStateAllyBJ( Player(6), Player(8), true ) | |
call SetPlayerAllianceStateAllyBJ( Player(7), Player(6), true ) | |
call SetPlayerAllianceStateAllyBJ( Player(7), Player(8), true ) | |
call SetPlayerAllianceStateAllyBJ( Player(8), Player(6), true ) | |
call SetPlayerAllianceStateAllyBJ( Player(8), Player(7), true ) | |
// Shared Vision | |
call SetPlayerAllianceStateVisionBJ( Player(6), Player(7), true ) | |
call SetPlayerAllianceStateVisionBJ( Player(6), Player(8), true ) | |
call SetPlayerAllianceStateVisionBJ( Player(7), Player(6), true ) | |
call SetPlayerAllianceStateVisionBJ( Player(7), Player(8), true ) | |
call SetPlayerAllianceStateVisionBJ( Player(8), Player(6), true ) | |
call SetPlayerAllianceStateVisionBJ( Player(8), Player(7), true ) | |
// Force: TRIGSTR_032 | |
call SetPlayerTeam( Player(9), 3 ) | |
call SetPlayerTeam( Player(10), 3 ) | |
call SetPlayerTeam( Player(11), 3 ) | |
// Allied | |
call SetPlayerAllianceStateAllyBJ( Player(9), Player(10), true ) | |
call SetPlayerAllianceStateAllyBJ( Player(9), Player(11), true ) | |
call SetPlayerAllianceStateAllyBJ( Player(10), Player(9), true ) | |
call SetPlayerAllianceStateAllyBJ( Player(10), Player(11), true ) | |
call SetPlayerAllianceStateAllyBJ( Player(11), Player(9), true ) | |
call SetPlayerAllianceStateAllyBJ( Player(11), Player(10), true ) | |
endfunction | |
function InitAllyPriorities takes nothing returns nothing | |
call SetStartLocPrioCount( 0, 1 ) | |
call SetStartLocPrio( 0, 0, 1, MAP_LOC_PRIO_HIGH ) | |
call SetStartLocPrioCount( 1, 2 ) | |
call SetStartLocPrio( 1, 0, 0, MAP_LOC_PRIO_HIGH ) | |
call SetStartLocPrio( 1, 1, 2, MAP_LOC_PRIO_HIGH ) | |
call SetStartLocPrioCount( 2, 1 ) | |
call SetStartLocPrio( 2, 0, 1, MAP_LOC_PRIO_HIGH ) | |
call SetStartLocPrioCount( 3, 1 ) | |
call SetStartLocPrio( 3, 0, 4, MAP_LOC_PRIO_HIGH ) | |
call SetStartLocPrioCount( 4, 2 ) | |
call SetStartLocPrio( 4, 0, 3, MAP_LOC_PRIO_HIGH ) | |
call SetStartLocPrio( 4, 1, 5, MAP_LOC_PRIO_HIGH ) | |
call SetStartLocPrioCount( 5, 1 ) | |
call SetStartLocPrio( 5, 0, 4, MAP_LOC_PRIO_HIGH ) | |
call SetStartLocPrioCount( 6, 1 ) | |
call SetStartLocPrio( 6, 0, 7, MAP_LOC_PRIO_HIGH ) | |
call SetStartLocPrioCount( 7, 2 ) | |
call SetStartLocPrio( 7, 0, 6, MAP_LOC_PRIO_HIGH ) | |
call SetStartLocPrio( 7, 1, 8, MAP_LOC_PRIO_HIGH ) | |
call SetStartLocPrioCount( 8, 1 ) | |
call SetStartLocPrio( 8, 0, 7, MAP_LOC_PRIO_HIGH ) | |
endfunction | |
//*************************************************************************** | |
//* | |
//* Main Initialization | |
//* | |
//*************************************************************************** | |
//=========================================================================== | |
function main takes nothing returns nothing | |
call SetCameraBounds( -5376.0 + GetCameraMargin(CAMERA_MARGIN_LEFT), -5632.0 + GetCameraMargin(CAMERA_MARGIN_BOTTOM), 5376.0 - GetCameraMargin(CAMERA_MARGIN_RIGHT), 5120.0 - GetCameraMargin(CAMERA_MARGIN_TOP), -5376.0 + GetCameraMargin(CAMERA_MARGIN_LEFT), 5120.0 - GetCameraMargin(CAMERA_MARGIN_TOP), 5376.0 - GetCameraMargin(CAMERA_MARGIN_RIGHT), -5632.0 + GetCameraMargin(CAMERA_MARGIN_BOTTOM) ) | |
call SetDayNightModels( "Environment\\DNC\\DNCLordaeron\\DNCLordaeronTerrain\\DNCLordaeronTerrain.mdl", "Environment\\DNC\\DNCLordaeron\\DNCLordaeronUnit\\DNCLordaeronUnit.mdl" ) | |
call NewSoundEnvironment( "Default" ) | |
call SetAmbientDaySound( "CityScapeDay" ) | |
call SetAmbientNightSound( "CityScapeNight" ) | |
call SetMapMusic( "Music", true, 0 ) | |
call InitSounds( ) | |
call CreateRegions( ) | |
call InitBlizzard( ) | |
call InitGlobals( ) | |
call InitCustomTriggers( ) | |
call RunInitializationTriggers( ) | |
endfunction | |
//*************************************************************************** | |
//* | |
//* Map Configuration | |
//* | |
//*************************************************************************** | |
function config takes nothing returns nothing | |
call SetMapName( "TRIGSTR_003" ) | |
call SetMapDescription( "TRIGSTR_005" ) | |
call SetPlayers( 12 ) | |
call SetTeams( 12 ) | |
call SetGamePlacement( MAP_PLACEMENT_TEAMS_TOGETHER ) | |
call DefineStartLocation( 0, -5056.0, 3200.0 ) | |
call DefineStartLocation( 1, -4544.0, 3200.0 ) | |
call DefineStartLocation( 2, -4032.0, 3200.0 ) | |
call DefineStartLocation( 3, 3456.0, 3840.0 ) | |
call DefineStartLocation( 4, 3456.0, 4352.0 ) | |
call DefineStartLocation( 5, 3456.0, 4864.0 ) | |
call DefineStartLocation( 6, 5120.0, -3712.0 ) | |
call DefineStartLocation( 7, 4608.0, -3712.0 ) | |
call DefineStartLocation( 8, 4096.0, -3712.0 ) | |
call DefineStartLocation( 9, -4544.0, 3712.0 ) | |
call DefineStartLocation( 10, 4032.0, 4352.0 ) | |
call DefineStartLocation( 11, 4608.0, -4224.0 ) | |
// Player setup | |
call InitCustomPlayerSlots( ) | |
call InitCustomTeams( ) | |
call InitAllyPriorities( ) | |
endfunction | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment