Name | Type | is_array | initial_value |
ActivePlayers | integer | No | 0 |
AfricaAllyPaid | player | No | |
AfricaComplete | boolean | No | false |
AfricaPlayerPaid | player | No | |
AlliesFound | boolean | No | false |
AllowAllyAttack | boolean | Yes | |
AllyAttackedPlayer | player | No | |
AllyAttackingPlayer | player | No | |
AllyRequest | integer | Yes | |
AsiaAllyPaid | player | No | |
AsiaComplete | boolean | No | false |
AsiaPlayerPaid | player | No | |
AustAllyPaid | player | No | |
AustComplete | boolean | No | false |
AustPlayerPaid | player | No | |
Barracks | unit | Yes | |
CompAlly | boolean | Yes | |
COPName | rect | Yes | |
CrateBonusPlayer | player | No | |
Crates | location | No | |
CreatorToggle | boolean | No | false |
EuropeAllyPaid | player | No | |
EuropeComplete | boolean | No | false |
EuropePlayerPaid | player | No | |
FirstPlayer | integer | No | 0 |
GameMode | integer | No | 0 |
GameModeDesc | string | Yes | |
Hints | string | Yes | |
isPlaying | boolean | Yes | |
isVoteActive | boolean | No | false |
NAAllyPaid | player | No | |
NAComplete | boolean | No | false |
NAPlayerPaid | player | No | |
NextHint | integer | No | 1 |
NextTeamNumber | integer | No | 0 |
NoHints | boolean | Yes | |
PayAEEmpireAlt | boolean | No | false |
SAAllyPaid | player | No | |
SAComplete | boolean | No | false |
SAPlayerPaid | player | No | |
SoulPimpInGame | boolean | No | false |
TeamNumber | integer | Yes | |
TempVariable | integer | No | 0 |
TempVariable2 | integer | No | 0 |
Towers | unit | Yes | |
TowersInPlay | boolean | No | true |
TowerTimer | timer | No | |
Turn | timer | No | |
UnitsReceived | integer | Yes | |
Victory | boolean | No | false |
Vote_Results | integer | No | 0 |
Vote_Results_No | integer | No | 0 |
Votes | integer | Yes | |
VoteType | string | No |
function Trig_Show_Hints_Func002003001 takes nothing returns boolean
return ( udg_NoHints[GetForLoopIndexA()] == false )
endfunction
function Trig_Show_Hints_Func004001 takes nothing returns boolean
return ( udg_NextHint < 15 )
endfunction
function Trig_Show_Hints_Actions takes nothing returns nothing
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Show_Hints_Func002003001() ) then
call DisplayTimedTextToForce( GetForceOfPlayer(ConvertedPlayer(GetForLoopIndexA())), 20.00, ( "|c0000cdf9HINT|r " + ( ( "|c00ff0000" + ( I2S(udg_NextHint) + "|r" ) ) + ( " |c0000cdf9of 15:|r " + udg_Hints[udg_NextHint] ) ) ) )
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call PlaySoundBJ( gg_snd_Hint )
if ( Trig_Show_Hints_Func004001() ) then
set udg_NextHint = ( udg_NextHint + 1 )
else
set udg_NextHint = 1
endif
endfunction
function InitTrig_Show_Hints takes nothing returns nothing
set gg_trg_Show_Hints = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Show_Hints, 90.00 )
call TriggerRegisterTimerEventPeriodic( gg_trg_Show_Hints, 60.00 )
call TriggerAddAction( gg_trg_Show_Hints, function Trig_Show_Hints_Actions )
endfunction
function Trig_Beginning_Gold_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 4, Player(0), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 4, Player(1), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 4, Player(2), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 4, Player(3), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 4, Player(4), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 4, Player(5), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 4, Player(6), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 4, Player(7), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 4, Player(8), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 4, Player(9), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 4, Player(10), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 4, Player(11), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function InitTrig_Beginning_Gold takes nothing returns nothing
set gg_trg_Beginning_Gold = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Beginning_Gold, 1.00 )
call TriggerAddAction( gg_trg_Beginning_Gold, function Trig_Beginning_Gold_Actions )
endfunction
function Trig_Turn_Timer_Actions takes nothing returns nothing
call CreateTimerDialogBJ( udg_Turn, "TRIGSTR_012" )
call StartTimerBJ( udg_Turn, true, 60.00 )
endfunction
function InitTrig_Turn_Timer takes nothing returns nothing
set gg_trg_Turn_Timer = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Turn_Timer, 2.00 )
call TriggerAddAction( gg_trg_Turn_Timer, function Trig_Turn_Timer_Actions )
endfunction
function Trig_Gold_Given_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 4, Player(0), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 4, Player(1), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 4, Player(2), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 4, Player(3), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 4, Player(4), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 4, Player(5), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 4, Player(6), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 4, Player(7), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 4, Player(8), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 4, Player(9), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 4, Player(10), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 4, Player(11), PLAYER_STATE_RESOURCE_GOLD )
set udg_CrateBonusPlayer = Player(bj_PLAYER_NEUTRAL_VICTIM)
endfunction
function InitTrig_Gold_Given takes nothing returns nothing
set gg_trg_Gold_Given = CreateTrigger( )
call TriggerRegisterTimerExpireEventBJ( gg_trg_Gold_Given, udg_Turn )
call TriggerAddAction( gg_trg_Gold_Given, function Trig_Gold_Given_Actions )
endfunction
function Trig_Init_Ownership_Func002002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Init_Ownership_Actions takes nothing returns nothing
call PauseAllUnitsBJ( true )
call ForGroup( GetUnitsOfTypeIdAll('hrif'), function Trig_Init_Ownership_Func002002 )
set udg_COPName[1] = gg_rct_Middle_East
set udg_Barracks[1] = gg_unit_hbar_0004
set udg_Towers[1] = gg_unit_hgtw_0005
set udg_COPName[2] = gg_rct_Alaska1
set udg_Barracks[2] = gg_unit_hbar_0047
set udg_Towers[2] = gg_unit_hgtw_0010
set udg_COPName[3] = gg_rct_Eastern_United_States
set udg_Barracks[3] = gg_unit_hbar_0052
set udg_Towers[3] = gg_unit_hgtw_0092
set udg_COPName[4] = gg_rct_Venezuela
set udg_Barracks[4] = gg_unit_hbar_0053
set udg_Towers[4] = gg_unit_hgtw_0093
set udg_COPName[5] = gg_rct_North_Africa
set udg_Barracks[5] = gg_unit_hbar_0054
set udg_Towers[5] = gg_unit_hgtw_0094
set udg_COPName[6] = gg_rct_Afghanistan
set udg_Barracks[6] = gg_unit_hbar_0055
set udg_Towers[6] = gg_unit_hgtw_0096
set udg_COPName[7] = gg_rct_Yakutsk
set udg_Barracks[7] = gg_unit_hbar_0056
set udg_Towers[7] = gg_unit_hgtw_0097
set udg_COPName[8] = gg_rct_Japan
set udg_Barracks[8] = gg_unit_hbar_0085
set udg_Towers[8] = gg_unit_hgtw_0127
set udg_COPName[9] = gg_rct_Western_Europe
set udg_Barracks[9] = gg_unit_hbar_0058
set udg_Towers[9] = gg_unit_hgtw_0103
set udg_COPName[10] = gg_rct_East_Africa
set udg_Barracks[10] = gg_unit_hbar_0059
set udg_Towers[10] = gg_unit_hgtw_0099
set udg_COPName[11] = gg_rct_Western_Australia
set udg_Barracks[11] = gg_unit_hbar_0060
set udg_Towers[11] = gg_unit_hgtw_0098
set udg_COPName[12] = gg_rct_Greenland
set udg_Barracks[12] = gg_unit_hbar_0063
set udg_Towers[12] = gg_unit_hgtw_0105
set udg_COPName[13] = gg_rct_Central_America
set udg_Barracks[13] = gg_unit_hbar_0077
set udg_Towers[13] = gg_unit_hgtw_0119
set udg_COPName[14] = gg_rct_China
set udg_Barracks[14] = gg_unit_hbar_0061
set udg_Towers[14] = gg_unit_hgtw_0100
set udg_COPName[15] = gg_rct_Congo
set udg_Barracks[15] = gg_unit_hbar_0064
set udg_Towers[15] = gg_unit_hgtw_0108
set udg_COPName[16] = gg_rct_Siam
set udg_Barracks[16] = gg_unit_hbar_0067
set udg_Towers[16] = gg_unit_hgtw_0109
set udg_COPName[17] = gg_rct_Alberta
set udg_Barracks[17] = gg_unit_hbar_0066
set udg_Towers[17] = gg_unit_hgtw_0106
set udg_COPName[18] = gg_rct_Argentina
set udg_Barracks[18] = gg_unit_hbar_0065
set udg_Towers[18] = gg_unit_hgtw_0107
set udg_COPName[19] = gg_rct_Eastern_Australia
set udg_Barracks[19] = gg_unit_hbar_0068
set udg_Towers[19] = gg_unit_hgtw_0113
set udg_COPName[20] = gg_rct_Egypt
set udg_Barracks[20] = gg_unit_hbar_0069
set udg_Towers[20] = gg_unit_hgtw_0112
set udg_COPName[21] = gg_rct_Brazil
set udg_Barracks[21] = gg_unit_hbar_0070
set udg_Towers[21] = gg_unit_hgtw_0111
set udg_COPName[22] = gg_rct_Ontario
set udg_Barracks[22] = gg_unit_hbar_0071
set udg_Towers[22] = gg_unit_hgtw_0114
set udg_COPName[23] = gg_rct_Great_Britain
set udg_Barracks[23] = gg_unit_hbar_0072
set udg_Towers[23] = gg_unit_hgtw_0117
set udg_COPName[24] = gg_rct_Mongolia
set udg_Barracks[24] = gg_unit_hbar_0073
set udg_Towers[24] = gg_unit_hgtw_0121
set udg_COPName[25] = gg_rct_Scandinavia
set udg_Barracks[25] = gg_unit_hbar_0074
set udg_Towers[25] = gg_unit_hgtw_0120
set udg_COPName[26] = gg_rct_Western_United_States
set udg_Barracks[26] = gg_unit_hbar_0075
set udg_Towers[26] = gg_unit_hgtw_0118
set udg_COPName[27] = gg_rct_Indonesia
set udg_Barracks[27] = gg_unit_hbar_0076
set udg_Towers[27] = gg_unit_hgtw_0122
set udg_COPName[28] = gg_rct_Ukraine
set udg_Barracks[28] = gg_unit_hbar_0062
set udg_Towers[28] = gg_unit_hgtw_0104
set udg_COPName[29] = gg_rct_South_Africa
set udg_Barracks[29] = gg_unit_hbar_0078
set udg_Towers[29] = gg_unit_hgtw_0128
set udg_COPName[30] = gg_rct_New_Guinea
set udg_Barracks[30] = gg_unit_hbar_0079
set udg_Towers[30] = gg_unit_hgtw_0126
set udg_COPName[31] = gg_rct_Northern_Europe
set udg_Barracks[31] = gg_unit_hbar_0080
set udg_Towers[31] = gg_unit_hgtw_0124
set udg_COPName[32] = gg_rct_Quebec
set udg_Barracks[32] = gg_unit_hbar_0081
set udg_Towers[32] = gg_unit_hgtw_0125
set udg_COPName[33] = gg_rct_Ural
set udg_Barracks[33] = gg_unit_hbar_0082
set udg_Towers[33] = gg_unit_hgtw_0130
set udg_COPName[34] = gg_rct_Madagascar
set udg_Barracks[34] = gg_unit_hbar_0083
set udg_Towers[34] = gg_unit_hgtw_0123
set udg_COPName[35] = gg_rct_Siberia
set udg_Barracks[35] = gg_unit_hbar_0084
set udg_Towers[35] = gg_unit_hgtw_0115
set udg_COPName[36] = gg_rct_Northwest_Territory
set udg_Barracks[36] = gg_unit_hbar_0057
set udg_Towers[36] = gg_unit_hgtw_0101
set udg_COPName[37] = gg_rct_Southern_Europe
set udg_Barracks[37] = gg_unit_hbar_0086
set udg_Towers[37] = gg_unit_hgtw_0095
set udg_COPName[38] = gg_rct_Iceland
set udg_Barracks[38] = gg_unit_hbar_0087
set udg_Towers[38] = gg_unit_hgtw_0102
set udg_COPName[39] = gg_rct_Kamchatka1
set udg_Barracks[39] = gg_unit_hbar_0088
set udg_Towers[39] = gg_unit_hgtw_0110
set udg_COPName[40] = gg_rct_India
set udg_Barracks[40] = gg_unit_hbar_0089
set udg_Towers[40] = gg_unit_hgtw_0116
set udg_COPName[41] = gg_rct_Peru
set udg_Barracks[41] = gg_unit_hbar_0090
set udg_Towers[41] = gg_unit_hgtw_0129
set udg_COPName[42] = gg_rct_Irkutsk
set udg_Barracks[42] = gg_unit_hbar_0173
set udg_Towers[42] = gg_unit_hgtw_0174
endfunction
function InitTrig_Init_Ownership takes nothing returns nothing
set gg_trg_Init_Ownership = CreateTrigger( )
call TriggerAddAction( gg_trg_Init_Ownership, function Trig_Init_Ownership_Actions )
endfunction
function Trig_Set_Ownershop_Actions takes nothing returns nothing
set udg_FirstPlayer = GetRandomInt(1, 12)
set udg_TempVariable = GetRandomInt(2, 42)
set bj_forLoopAIndex = udg_TempVariable
set bj_forLoopAIndexEnd = 42
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call TriggerExecute( gg_trg_Assign_Ownership )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = ( udg_TempVariable - 1 )
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call TriggerExecute( gg_trg_Assign_Ownership )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call PauseAllUnitsBJ( false )
endfunction
function InitTrig_Set_Ownershop takes nothing returns nothing
set gg_trg_Set_Ownershop = CreateTrigger( )
call TriggerAddAction( gg_trg_Set_Ownershop, function Trig_Set_Ownershop_Actions )
endfunction
function Trig_Assign_Ownership_Func001001 takes nothing returns boolean
return ( GetPlayerSlotState(ConvertedPlayer(udg_FirstPlayer)) != PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Assign_Ownership_Func001002001 takes nothing returns boolean
return ( udg_FirstPlayer < 12 )
endfunction
function Trig_Assign_Ownership_Func002001 takes nothing returns boolean
return ( GetPlayerSlotState(ConvertedPlayer(udg_FirstPlayer)) != PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Assign_Ownership_Func002002001 takes nothing returns boolean
return ( udg_FirstPlayer < 12 )
endfunction
function Trig_Assign_Ownership_Func003001 takes nothing returns boolean
return ( GetPlayerSlotState(ConvertedPlayer(udg_FirstPlayer)) != PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Assign_Ownership_Func003002001 takes nothing returns boolean
return ( udg_FirstPlayer < 12 )
endfunction
function Trig_Assign_Ownership_Func004001 takes nothing returns boolean
return ( GetPlayerSlotState(ConvertedPlayer(udg_FirstPlayer)) != PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Assign_Ownership_Func004002001 takes nothing returns boolean
return ( udg_FirstPlayer < 12 )
endfunction
function Trig_Assign_Ownership_Func005001 takes nothing returns boolean
return ( GetPlayerSlotState(ConvertedPlayer(udg_FirstPlayer)) != PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Assign_Ownership_Func005002001 takes nothing returns boolean
return ( udg_FirstPlayer < 12 )
endfunction
function Trig_Assign_Ownership_Func006001 takes nothing returns boolean
return ( GetPlayerSlotState(ConvertedPlayer(udg_FirstPlayer)) != PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Assign_Ownership_Func006002001 takes nothing returns boolean
return ( udg_FirstPlayer < 12 )
endfunction
function Trig_Assign_Ownership_Func007001 takes nothing returns boolean
return ( GetPlayerSlotState(ConvertedPlayer(udg_FirstPlayer)) != PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Assign_Ownership_Func007002001 takes nothing returns boolean
return ( udg_FirstPlayer < 12 )
endfunction
function Trig_Assign_Ownership_Func008001 takes nothing returns boolean
return ( GetPlayerSlotState(ConvertedPlayer(udg_FirstPlayer)) != PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Assign_Ownership_Func008002001 takes nothing returns boolean
return ( udg_FirstPlayer < 12 )
endfunction
function Trig_Assign_Ownership_Func009001 takes nothing returns boolean
return ( GetPlayerSlotState(ConvertedPlayer(udg_FirstPlayer)) != PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Assign_Ownership_Func009002001 takes nothing returns boolean
return ( udg_FirstPlayer < 12 )
endfunction
function Trig_Assign_Ownership_Func010001 takes nothing returns boolean
return ( GetPlayerSlotState(ConvertedPlayer(udg_FirstPlayer)) != PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Assign_Ownership_Func010002001 takes nothing returns boolean
return ( udg_FirstPlayer < 12 )
endfunction
function Trig_Assign_Ownership_Func011001 takes nothing returns boolean
return ( GetPlayerSlotState(ConvertedPlayer(udg_FirstPlayer)) != PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Assign_Ownership_Func011002001 takes nothing returns boolean
return ( udg_FirstPlayer < 12 )
endfunction
function Trig_Assign_Ownership_Func016001 takes nothing returns boolean
return ( udg_FirstPlayer > 12 )
endfunction
function Trig_Assign_Ownership_Actions takes nothing returns nothing
if ( Trig_Assign_Ownership_Func001001() ) then
if ( Trig_Assign_Ownership_Func001002001() ) then
set udg_FirstPlayer = ( udg_FirstPlayer + 1 )
else
set udg_FirstPlayer = 1
endif
else
call DoNothing( )
endif
if ( Trig_Assign_Ownership_Func002001() ) then
if ( Trig_Assign_Ownership_Func002002001() ) then
set udg_FirstPlayer = ( udg_FirstPlayer + 1 )
else
set udg_FirstPlayer = 1
endif
else
call DoNothing( )
endif
if ( Trig_Assign_Ownership_Func003001() ) then
if ( Trig_Assign_Ownership_Func003002001() ) then
set udg_FirstPlayer = ( udg_FirstPlayer + 1 )
else
set udg_FirstPlayer = 1
endif
else
call DoNothing( )
endif
if ( Trig_Assign_Ownership_Func004001() ) then
if ( Trig_Assign_Ownership_Func004002001() ) then
set udg_FirstPlayer = ( udg_FirstPlayer + 1 )
else
set udg_FirstPlayer = 1
endif
else
call DoNothing( )
endif
if ( Trig_Assign_Ownership_Func005001() ) then
if ( Trig_Assign_Ownership_Func005002001() ) then
set udg_FirstPlayer = ( udg_FirstPlayer + 1 )
else
set udg_FirstPlayer = 1
endif
else
call DoNothing( )
endif
if ( Trig_Assign_Ownership_Func006001() ) then
if ( Trig_Assign_Ownership_Func006002001() ) then
set udg_FirstPlayer = ( udg_FirstPlayer + 1 )
else
set udg_FirstPlayer = 1
endif
else
call DoNothing( )
endif
if ( Trig_Assign_Ownership_Func007001() ) then
if ( Trig_Assign_Ownership_Func007002001() ) then
set udg_FirstPlayer = ( udg_FirstPlayer + 1 )
else
set udg_FirstPlayer = 1
endif
else
call DoNothing( )
endif
if ( Trig_Assign_Ownership_Func008001() ) then
if ( Trig_Assign_Ownership_Func008002001() ) then
set udg_FirstPlayer = ( udg_FirstPlayer + 1 )
else
set udg_FirstPlayer = 1
endif
else
call DoNothing( )
endif
if ( Trig_Assign_Ownership_Func009001() ) then
if ( Trig_Assign_Ownership_Func009002001() ) then
set udg_FirstPlayer = ( udg_FirstPlayer + 1 )
else
set udg_FirstPlayer = 1
endif
else
call DoNothing( )
endif
if ( Trig_Assign_Ownership_Func010001() ) then
if ( Trig_Assign_Ownership_Func010002001() ) then
set udg_FirstPlayer = ( udg_FirstPlayer + 1 )
else
set udg_FirstPlayer = 1
endif
else
call DoNothing( )
endif
if ( Trig_Assign_Ownership_Func011001() ) then
if ( Trig_Assign_Ownership_Func011002001() ) then
set udg_FirstPlayer = ( udg_FirstPlayer + 1 )
else
set udg_FirstPlayer = 1
endif
else
call DoNothing( )
endif
call SetUnitOwner( udg_Barracks[GetForLoopIndexA()], ConvertedPlayer(udg_FirstPlayer), true )
call SetUnitOwner( udg_Towers[GetForLoopIndexA()], ConvertedPlayer(udg_FirstPlayer), true )
call CreateNUnitsAtLoc( 1, 'hrif', GetOwningPlayer(udg_Barracks[GetForLoopIndexA()]), GetRectCenter(udg_COPName[GetForLoopIndexA()]), bj_UNIT_FACING )
set udg_FirstPlayer = ( udg_FirstPlayer + 1 )
if ( Trig_Assign_Ownership_Func016001() ) then
set udg_FirstPlayer = 1
else
call DoNothing( )
endif
endfunction
function InitTrig_Assign_Ownership takes nothing returns nothing
set gg_trg_Assign_Ownership = CreateTrigger( )
call TriggerAddAction( gg_trg_Assign_Ownership, function Trig_Assign_Ownership_Actions )
endfunction
function Trig_Middle_East_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Middle_East, GetOwningPlayer(gg_unit_hbar_0004))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Middle_East_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hbar_0004, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hgtw_0005, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
function InitTrig_Middle_East takes nothing returns nothing
set gg_trg_Middle_East = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Middle_East, gg_rct_Middle_East )
call TriggerAddCondition( gg_trg_Middle_East, Condition( function Trig_Middle_East_Conditions ) )
call TriggerAddAction( gg_trg_Middle_East, function Trig_Middle_East_Actions )
endfunction
function Trig_Northwest_Territory_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Northwest_Territory, GetOwningPlayer(gg_unit_hbar_0057))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Northwest_Territory_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hbar_0057, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hgtw_0101, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
function InitTrig_Northwest_Territory takes nothing returns nothing
set gg_trg_Northwest_Territory = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Northwest_Territory, gg_rct_Northwest_Territory )
call TriggerAddCondition( gg_trg_Northwest_Territory, Condition( function Trig_Northwest_Territory_Conditions ) )
call TriggerAddAction( gg_trg_Northwest_Territory, function Trig_Northwest_Territory_Actions )
endfunction
function Trig_Ontario_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Ontario, GetOwningPlayer(gg_unit_hbar_0071))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Ontario_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hbar_0071, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hgtw_0114, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
function InitTrig_Ontario takes nothing returns nothing
set gg_trg_Ontario = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Ontario, gg_rct_Ontario )
call TriggerAddCondition( gg_trg_Ontario, Condition( function Trig_Ontario_Conditions ) )
call TriggerAddAction( gg_trg_Ontario, function Trig_Ontario_Actions )
endfunction
function Trig_Alberta_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Alberta, GetOwningPlayer(gg_unit_hbar_0066))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Alberta_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hbar_0066, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hgtw_0106, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
function InitTrig_Alberta takes nothing returns nothing
set gg_trg_Alberta = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Alberta, gg_rct_Alberta )
call TriggerAddCondition( gg_trg_Alberta, Condition( function Trig_Alberta_Conditions ) )
call TriggerAddAction( gg_trg_Alberta, function Trig_Alberta_Actions )
endfunction
function Trig_Eastern_United_States_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Eastern_United_States, GetOwningPlayer(gg_unit_hbar_0052))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Eastern_United_States_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hbar_0052, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hgtw_0092, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
function InitTrig_Eastern_United_States takes nothing returns nothing
set gg_trg_Eastern_United_States = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Eastern_United_States, gg_rct_Eastern_United_States )
call TriggerAddCondition( gg_trg_Eastern_United_States, Condition( function Trig_Eastern_United_States_Conditions ) )
call TriggerAddAction( gg_trg_Eastern_United_States, function Trig_Eastern_United_States_Actions )
endfunction
function Trig_Western_United_States_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Western_United_States, GetOwningPlayer(gg_unit_hbar_0075))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Western_United_States_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hbar_0075, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hgtw_0118, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
function InitTrig_Western_United_States takes nothing returns nothing
set gg_trg_Western_United_States = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Western_United_States, gg_rct_Western_United_States )
call TriggerAddCondition( gg_trg_Western_United_States, Condition( function Trig_Western_United_States_Conditions ) )
call TriggerAddAction( gg_trg_Western_United_States, function Trig_Western_United_States_Actions )
endfunction
function Trig_Central_America_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Central_America, GetOwningPlayer(gg_unit_hbar_0077))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Central_America_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hbar_0077, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hgtw_0119, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
function InitTrig_Central_America takes nothing returns nothing
set gg_trg_Central_America = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Central_America, gg_rct_Central_America )
call TriggerAddCondition( gg_trg_Central_America, Condition( function Trig_Central_America_Conditions ) )
call TriggerAddAction( gg_trg_Central_America, function Trig_Central_America_Actions )
endfunction
function Trig_Venezuela_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Venezuela, GetOwningPlayer(gg_unit_hbar_0053))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Venezuela_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hbar_0053, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hgtw_0093, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
function InitTrig_Venezuela takes nothing returns nothing
set gg_trg_Venezuela = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Venezuela, gg_rct_Venezuela )
call TriggerAddCondition( gg_trg_Venezuela, Condition( function Trig_Venezuela_Conditions ) )
call TriggerAddAction( gg_trg_Venezuela, function Trig_Venezuela_Actions )
endfunction
function Trig_Peru_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Peru, GetOwningPlayer(gg_unit_hbar_0090))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Peru_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hbar_0090, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hgtw_0129, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
function InitTrig_Peru takes nothing returns nothing
set gg_trg_Peru = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Peru, gg_rct_Peru )
call TriggerAddCondition( gg_trg_Peru, Condition( function Trig_Peru_Conditions ) )
call TriggerAddAction( gg_trg_Peru, function Trig_Peru_Actions )
endfunction
function Trig_Brazil_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Brazil, GetOwningPlayer(gg_unit_hbar_0070))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Brazil_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hbar_0070, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hgtw_0111, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
function InitTrig_Brazil takes nothing returns nothing
set gg_trg_Brazil = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Brazil, gg_rct_Brazil )
call TriggerAddCondition( gg_trg_Brazil, Condition( function Trig_Brazil_Conditions ) )
call TriggerAddAction( gg_trg_Brazil, function Trig_Brazil_Actions )
endfunction
function Trig_Argentina_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Argentina, GetOwningPlayer(gg_unit_hbar_0065))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Argentina_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hbar_0065, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hgtw_0107, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
function InitTrig_Argentina takes nothing returns nothing
set gg_trg_Argentina = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Argentina, gg_rct_Argentina )
call TriggerAddCondition( gg_trg_Argentina, Condition( function Trig_Argentina_Conditions ) )
call TriggerAddAction( gg_trg_Argentina, function Trig_Argentina_Actions )
endfunction
function Trig_North_Africa_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_North_Africa, GetOwningPlayer(gg_unit_hbar_0054))) == true ) ) then
return false
endif
return true
endfunction
function Trig_North_Africa_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hbar_0054, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hgtw_0094, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
function InitTrig_North_Africa takes nothing returns nothing
set gg_trg_North_Africa = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_North_Africa, gg_rct_North_Africa )
call TriggerAddCondition( gg_trg_North_Africa, Condition( function Trig_North_Africa_Conditions ) )
call TriggerAddAction( gg_trg_North_Africa, function Trig_North_Africa_Actions )
endfunction
function Trig_Congo_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Congo, GetOwningPlayer(gg_unit_hbar_0064))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Congo_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hbar_0064, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hgtw_0108, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
function InitTrig_Congo takes nothing returns nothing
set gg_trg_Congo = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Congo, gg_rct_Congo )
call TriggerAddCondition( gg_trg_Congo, Condition( function Trig_Congo_Conditions ) )
call TriggerAddAction( gg_trg_Congo, function Trig_Congo_Actions )
endfunction
function Trig_South_Africa_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_South_Africa, GetOwningPlayer(gg_unit_hbar_0078))) == true ) ) then
return false
endif
return true
endfunction
function Trig_South_Africa_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hbar_0078, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hgtw_0128, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
function InitTrig_South_Africa takes nothing returns nothing
set gg_trg_South_Africa = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_South_Africa, gg_rct_South_Africa )
call TriggerAddCondition( gg_trg_South_Africa, Condition( function Trig_South_Africa_Conditions ) )
call TriggerAddAction( gg_trg_South_Africa, function Trig_South_Africa_Actions )
endfunction
function Trig_East_Africa_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_East_Africa, GetOwningPlayer(gg_unit_hbar_0059))) == true ) ) then
return false
endif
return true
endfunction
function Trig_East_Africa_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hbar_0059, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hgtw_0099, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
function InitTrig_East_Africa takes nothing returns nothing
set gg_trg_East_Africa = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_East_Africa, gg_rct_East_Africa )
call TriggerAddCondition( gg_trg_East_Africa, Condition( function Trig_East_Africa_Conditions ) )
call TriggerAddAction( gg_trg_East_Africa, function Trig_East_Africa_Actions )
endfunction
function Trig_Madagascar_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Madagascar, GetOwningPlayer(gg_unit_hbar_0083))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Madagascar_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hbar_0083, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hgtw_0123, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
function InitTrig_Madagascar takes nothing returns nothing
set gg_trg_Madagascar = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Madagascar, gg_rct_Madagascar )
call TriggerAddCondition( gg_trg_Madagascar, Condition( function Trig_Madagascar_Conditions ) )
call TriggerAddAction( gg_trg_Madagascar, function Trig_Madagascar_Actions )
endfunction
function Trig_Egypt_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Egypt, GetOwningPlayer(gg_unit_hbar_0069))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Egypt_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hbar_0069, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hgtw_0112, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
function InitTrig_Egypt takes nothing returns nothing
set gg_trg_Egypt = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Egypt, gg_rct_Egypt )
call TriggerAddCondition( gg_trg_Egypt, Condition( function Trig_Egypt_Conditions ) )
call TriggerAddAction( gg_trg_Egypt, function Trig_Egypt_Actions )
endfunction
function Trig_Western_Europe_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Western_Europe, GetOwningPlayer(gg_unit_hbar_0058))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Western_Europe_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hbar_0058, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hgtw_0103, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
function InitTrig_Western_Europe takes nothing returns nothing
set gg_trg_Western_Europe = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Western_Europe, gg_rct_Western_Europe )
call TriggerAddCondition( gg_trg_Western_Europe, Condition( function Trig_Western_Europe_Conditions ) )
call TriggerAddAction( gg_trg_Western_Europe, function Trig_Western_Europe_Actions )
endfunction
function Trig_Southern_Europe_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Southern_Europe, GetOwningPlayer(gg_unit_hbar_0086))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Southern_Europe_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hbar_0086, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hgtw_0095, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
function InitTrig_Southern_Europe takes nothing returns nothing
set gg_trg_Southern_Europe = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Southern_Europe, gg_rct_Southern_Europe )
call TriggerAddCondition( gg_trg_Southern_Europe, Condition( function Trig_Southern_Europe_Conditions ) )
call TriggerAddAction( gg_trg_Southern_Europe, function Trig_Southern_Europe_Actions )
endfunction
function Trig_Northern_Europe_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Northern_Europe, GetOwningPlayer(gg_unit_hbar_0080))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Northern_Europe_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hbar_0080, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hgtw_0124, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
function InitTrig_Northern_Europe takes nothing returns nothing
set gg_trg_Northern_Europe = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Northern_Europe, gg_rct_Northern_Europe )
call TriggerAddCondition( gg_trg_Northern_Europe, Condition( function Trig_Northern_Europe_Conditions ) )
call TriggerAddAction( gg_trg_Northern_Europe, function Trig_Northern_Europe_Actions )
endfunction
function Trig_Great_Britain_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Great_Britain, GetOwningPlayer(gg_unit_hbar_0072))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Great_Britain_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hbar_0072, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hgtw_0117, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
function InitTrig_Great_Britain takes nothing returns nothing
set gg_trg_Great_Britain = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Great_Britain, gg_rct_Great_Britain )
call TriggerAddCondition( gg_trg_Great_Britain, Condition( function Trig_Great_Britain_Conditions ) )
call TriggerAddAction( gg_trg_Great_Britain, function Trig_Great_Britain_Actions )
endfunction
function Trig_Iceland_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Iceland, GetOwningPlayer(gg_unit_hbar_0087))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Iceland_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hbar_0087, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hgtw_0102, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
function InitTrig_Iceland takes nothing returns nothing
set gg_trg_Iceland = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Iceland, gg_rct_Iceland )
call TriggerAddCondition( gg_trg_Iceland, Condition( function Trig_Iceland_Conditions ) )
call TriggerAddAction( gg_trg_Iceland, function Trig_Iceland_Actions )
endfunction
function Trig_Greenland_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Greenland, GetOwningPlayer(gg_unit_hbar_0063))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Greenland_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hbar_0063, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hgtw_0105, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
function InitTrig_Greenland takes nothing returns nothing
set gg_trg_Greenland = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Greenland, gg_rct_Greenland )
call TriggerAddCondition( gg_trg_Greenland, Condition( function Trig_Greenland_Conditions ) )
call TriggerAddAction( gg_trg_Greenland, function Trig_Greenland_Actions )
endfunction
function Trig_Quebec_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Quebec, GetOwningPlayer(gg_unit_hbar_0081))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Quebec_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hbar_0081, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hgtw_0125, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
function InitTrig_Quebec takes nothing returns nothing
set gg_trg_Quebec = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Quebec, gg_rct_Quebec )
call TriggerAddCondition( gg_trg_Quebec, Condition( function Trig_Quebec_Conditions ) )
call TriggerAddAction( gg_trg_Quebec, function Trig_Quebec_Actions )
endfunction
function Trig_Alaska1_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Alaska1, GetOwningPlayer(gg_unit_hbar_0047))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Alaska1_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hbar_0047, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hgtw_0010, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
function InitTrig_Alaska1 takes nothing returns nothing
set gg_trg_Alaska1 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Alaska1, gg_rct_Alaska1 )
call TriggerAddCondition( gg_trg_Alaska1, Condition( function Trig_Alaska1_Conditions ) )
call TriggerAddAction( gg_trg_Alaska1, function Trig_Alaska1_Actions )
endfunction
function Trig_Scandinavia_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Scandinavia, GetOwningPlayer(gg_unit_hbar_0074))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Scandinavia_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hbar_0074, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hgtw_0120, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
function InitTrig_Scandinavia takes nothing returns nothing
set gg_trg_Scandinavia = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Scandinavia, gg_rct_Scandinavia )
call TriggerAddCondition( gg_trg_Scandinavia, Condition( function Trig_Scandinavia_Conditions ) )
call TriggerAddAction( gg_trg_Scandinavia, function Trig_Scandinavia_Actions )
endfunction
function Trig_Ukraine_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Ukraine, GetOwningPlayer(gg_unit_hbar_0062))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Ukraine_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hbar_0062, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hgtw_0104, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
function InitTrig_Ukraine takes nothing returns nothing
set gg_trg_Ukraine = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Ukraine, gg_rct_Ukraine )
call TriggerAddCondition( gg_trg_Ukraine, Condition( function Trig_Ukraine_Conditions ) )
call TriggerAddAction( gg_trg_Ukraine, function Trig_Ukraine_Actions )
endfunction
function Trig_Afghanistan_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Afghanistan, GetOwningPlayer(gg_unit_hbar_0055))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Afghanistan_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hbar_0055, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hgtw_0096, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
function InitTrig_Afghanistan takes nothing returns nothing
set gg_trg_Afghanistan = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Afghanistan, gg_rct_Afghanistan )
call TriggerAddCondition( gg_trg_Afghanistan, Condition( function Trig_Afghanistan_Conditions ) )
call TriggerAddAction( gg_trg_Afghanistan, function Trig_Afghanistan_Actions )
endfunction
function Trig_Ural_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Ural, GetOwningPlayer(gg_unit_hbar_0082))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Ural_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hbar_0082, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hgtw_0130, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
function InitTrig_Ural takes nothing returns nothing
set gg_trg_Ural = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Ural, gg_rct_Ural )
call TriggerAddCondition( gg_trg_Ural, Condition( function Trig_Ural_Conditions ) )
call TriggerAddAction( gg_trg_Ural, function Trig_Ural_Actions )
endfunction
function Trig_Siberia_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Siberia, GetOwningPlayer(gg_unit_hbar_0084))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Siberia_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hbar_0084, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hgtw_0115, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
function InitTrig_Siberia takes nothing returns nothing
set gg_trg_Siberia = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Siberia, gg_rct_Siberia )
call TriggerAddCondition( gg_trg_Siberia, Condition( function Trig_Siberia_Conditions ) )
call TriggerAddAction( gg_trg_Siberia, function Trig_Siberia_Actions )
endfunction
function Trig_Yakutsk_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Yakutsk, GetOwningPlayer(gg_unit_hbar_0056))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Yakutsk_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hbar_0056, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hgtw_0097, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
function InitTrig_Yakutsk takes nothing returns nothing
set gg_trg_Yakutsk = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Yakutsk, gg_rct_Yakutsk )
call TriggerAddCondition( gg_trg_Yakutsk, Condition( function Trig_Yakutsk_Conditions ) )
call TriggerAddAction( gg_trg_Yakutsk, function Trig_Yakutsk_Actions )
endfunction
function Trig_Kamchatka1_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Kamchatka1, GetOwningPlayer(gg_unit_hbar_0088))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Kamchatka1_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hbar_0088, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hgtw_0110, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
function InitTrig_Kamchatka1 takes nothing returns nothing
set gg_trg_Kamchatka1 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Kamchatka1, gg_rct_Kamchatka1 )
call TriggerAddCondition( gg_trg_Kamchatka1, Condition( function Trig_Kamchatka1_Conditions ) )
call TriggerAddAction( gg_trg_Kamchatka1, function Trig_Kamchatka1_Actions )
endfunction
function Trig_Irkutsk_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Irkutsk, GetOwningPlayer(gg_unit_hbar_0173))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Irkutsk_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hbar_0173, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hgtw_0174, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
function InitTrig_Irkutsk takes nothing returns nothing
set gg_trg_Irkutsk = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Irkutsk, gg_rct_Irkutsk )
call TriggerAddCondition( gg_trg_Irkutsk, Condition( function Trig_Irkutsk_Conditions ) )
call TriggerAddAction( gg_trg_Irkutsk, function Trig_Irkutsk_Actions )
endfunction
function Trig_India_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_India, GetOwningPlayer(gg_unit_hbar_0089))) == true ) ) then
return false
endif
return true
endfunction
function Trig_India_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hbar_0089, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hgtw_0116, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
function InitTrig_India takes nothing returns nothing
set gg_trg_India = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_India, gg_rct_India )
call TriggerAddCondition( gg_trg_India, Condition( function Trig_India_Conditions ) )
call TriggerAddAction( gg_trg_India, function Trig_India_Actions )
endfunction
function Trig_Mongolia_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Mongolia, GetOwningPlayer(gg_unit_hbar_0073))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Mongolia_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hbar_0073, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hgtw_0121, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
function InitTrig_Mongolia takes nothing returns nothing
set gg_trg_Mongolia = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Mongolia, gg_rct_Mongolia )
call TriggerAddCondition( gg_trg_Mongolia, Condition( function Trig_Mongolia_Conditions ) )
call TriggerAddAction( gg_trg_Mongolia, function Trig_Mongolia_Actions )
endfunction
function Trig_China_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_China, GetOwningPlayer(gg_unit_hbar_0061))) == true ) ) then
return false
endif
return true
endfunction
function Trig_China_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hbar_0061, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hgtw_0100, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
function InitTrig_China takes nothing returns nothing
set gg_trg_China = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_China, gg_rct_China )
call TriggerAddCondition( gg_trg_China, Condition( function Trig_China_Conditions ) )
call TriggerAddAction( gg_trg_China, function Trig_China_Actions )
endfunction
function Trig_Japan_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Japan, GetOwningPlayer(gg_unit_hbar_0085))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Japan_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hbar_0085, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hgtw_0127, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
function InitTrig_Japan takes nothing returns nothing
set gg_trg_Japan = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Japan, gg_rct_Japan )
call TriggerAddCondition( gg_trg_Japan, Condition( function Trig_Japan_Conditions ) )
call TriggerAddAction( gg_trg_Japan, function Trig_Japan_Actions )
endfunction
function Trig_Siam_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Siam, GetOwningPlayer(gg_unit_hbar_0067))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Siam_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hbar_0067, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hgtw_0109, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
function InitTrig_Siam takes nothing returns nothing
set gg_trg_Siam = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Siam, gg_rct_Siam )
call TriggerAddCondition( gg_trg_Siam, Condition( function Trig_Siam_Conditions ) )
call TriggerAddAction( gg_trg_Siam, function Trig_Siam_Actions )
endfunction
function Trig_Indonesia_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Indonesia, GetOwningPlayer(gg_unit_hbar_0076))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Indonesia_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hbar_0076, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hgtw_0122, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
function InitTrig_Indonesia takes nothing returns nothing
set gg_trg_Indonesia = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Indonesia, gg_rct_Indonesia )
call TriggerAddCondition( gg_trg_Indonesia, Condition( function Trig_Indonesia_Conditions ) )
call TriggerAddAction( gg_trg_Indonesia, function Trig_Indonesia_Actions )
endfunction
function Trig_New_Guinea_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_New_Guinea, GetOwningPlayer(gg_unit_hbar_0079))) == true ) ) then
return false
endif
return true
endfunction
function Trig_New_Guinea_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hbar_0079, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hgtw_0126, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
function InitTrig_New_Guinea takes nothing returns nothing
set gg_trg_New_Guinea = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_New_Guinea, gg_rct_New_Guinea )
call TriggerAddCondition( gg_trg_New_Guinea, Condition( function Trig_New_Guinea_Conditions ) )
call TriggerAddAction( gg_trg_New_Guinea, function Trig_New_Guinea_Actions )
endfunction
function Trig_Western_Australia_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Western_Australia, GetOwningPlayer(gg_unit_hbar_0060))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Western_Australia_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hbar_0060, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hgtw_0098, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
function InitTrig_Western_Australia takes nothing returns nothing
set gg_trg_Western_Australia = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Western_Australia, gg_rct_Western_Australia )
call TriggerAddCondition( gg_trg_Western_Australia, Condition( function Trig_Western_Australia_Conditions ) )
call TriggerAddAction( gg_trg_Western_Australia, function Trig_Western_Australia_Actions )
endfunction
function Trig_Eastern_Australia_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Eastern_Australia, GetOwningPlayer(gg_unit_hbar_0068))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Eastern_Australia_Actions takes nothing returns nothing
call SetUnitOwner( gg_unit_hbar_0068, GetOwningPlayer(GetTriggerUnit()), true )
call SetUnitOwner( gg_unit_hgtw_0113, GetOwningPlayer(GetTriggerUnit()), true )
endfunction
function InitTrig_Eastern_Australia takes nothing returns nothing
set gg_trg_Eastern_Australia = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Eastern_Australia, gg_rct_Eastern_Australia )
call TriggerAddCondition( gg_trg_Eastern_Australia, Condition( function Trig_Eastern_Australia_Conditions ) )
call TriggerAddAction( gg_trg_Eastern_Australia, function Trig_Eastern_Australia_Actions )
endfunction
function Trig_Leave1Afghanistan_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_hbar_0055) ) ) then
return false
endif
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Afghanistan, GetOwningPlayer(gg_unit_hbar_0055))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Leave1Afghanistan_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetLeavingUnit(), GetRectCenter(gg_rct_Afghanistan), bj_UNIT_FACING )
endfunction
function InitTrig_Leave1Afghanistan takes nothing returns nothing
set gg_trg_Leave1Afghanistan = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Leave1Afghanistan, gg_rct_Afghanistan )
call TriggerAddCondition( gg_trg_Leave1Afghanistan, Condition( function Trig_Leave1Afghanistan_Conditions ) )
call TriggerAddAction( gg_trg_Leave1Afghanistan, function Trig_Leave1Afghanistan_Actions )
endfunction
function Trig_Leave1Alaska_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_hbar_0047) ) ) then
return false
endif
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Alaska1, GetOwningPlayer(gg_unit_hbar_0047))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Leave1Alaska_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetLeavingUnit(), GetRectCenter(gg_rct_Alaska1), bj_UNIT_FACING )
endfunction
function InitTrig_Leave1Alaska takes nothing returns nothing
set gg_trg_Leave1Alaska = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Leave1Alaska, gg_rct_Alaska1 )
call TriggerAddCondition( gg_trg_Leave1Alaska, Condition( function Trig_Leave1Alaska_Conditions ) )
call TriggerAddAction( gg_trg_Leave1Alaska, function Trig_Leave1Alaska_Actions )
endfunction
function Trig_Leave1Alberta_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_hbar_0066) ) ) then
return false
endif
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Alberta, GetOwningPlayer(gg_unit_hbar_0066))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Leave1Alberta_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetLeavingUnit(), GetRectCenter(gg_rct_Alberta), bj_UNIT_FACING )
endfunction
function InitTrig_Leave1Alberta takes nothing returns nothing
set gg_trg_Leave1Alberta = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Leave1Alberta, gg_rct_Alberta )
call TriggerAddCondition( gg_trg_Leave1Alberta, Condition( function Trig_Leave1Alberta_Conditions ) )
call TriggerAddAction( gg_trg_Leave1Alberta, function Trig_Leave1Alberta_Actions )
endfunction
function Trig_Leave1Argentina_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_hbar_0065) ) ) then
return false
endif
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Argentina, GetOwningPlayer(gg_unit_hbar_0065))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Leave1Argentina_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetLeavingUnit(), GetRectCenter(gg_rct_Argentina), bj_UNIT_FACING )
endfunction
function InitTrig_Leave1Argentina takes nothing returns nothing
set gg_trg_Leave1Argentina = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Leave1Argentina, gg_rct_Argentina )
call TriggerAddCondition( gg_trg_Leave1Argentina, Condition( function Trig_Leave1Argentina_Conditions ) )
call TriggerAddAction( gg_trg_Leave1Argentina, function Trig_Leave1Argentina_Actions )
endfunction
function Trig_Leave1Brazil_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_hbar_0070) ) ) then
return false
endif
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Brazil, GetOwningPlayer(gg_unit_hbar_0070))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Leave1Brazil_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetLeavingUnit(), GetRectCenter(gg_rct_Brazil), bj_UNIT_FACING )
endfunction
function InitTrig_Leave1Brazil takes nothing returns nothing
set gg_trg_Leave1Brazil = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Leave1Brazil, gg_rct_Brazil )
call TriggerAddCondition( gg_trg_Leave1Brazil, Condition( function Trig_Leave1Brazil_Conditions ) )
call TriggerAddAction( gg_trg_Leave1Brazil, function Trig_Leave1Brazil_Actions )
endfunction
function Trig_Leave1CAmerica_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_hbar_0077) ) ) then
return false
endif
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Central_America, GetOwningPlayer(gg_unit_hbar_0077))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Leave1CAmerica_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetLeavingUnit(), GetRectCenter(gg_rct_Central_America), bj_UNIT_FACING )
endfunction
function InitTrig_Leave1CAmerica takes nothing returns nothing
set gg_trg_Leave1CAmerica = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Leave1CAmerica, gg_rct_Central_America )
call TriggerAddCondition( gg_trg_Leave1CAmerica, Condition( function Trig_Leave1CAmerica_Conditions ) )
call TriggerAddAction( gg_trg_Leave1CAmerica, function Trig_Leave1CAmerica_Actions )
endfunction
function Trig_Leave1China_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_hbar_0061) ) ) then
return false
endif
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_China, GetOwningPlayer(gg_unit_hbar_0061))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Leave1China_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetLeavingUnit(), GetRectCenter(gg_rct_China), bj_UNIT_FACING )
endfunction
function InitTrig_Leave1China takes nothing returns nothing
set gg_trg_Leave1China = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Leave1China, gg_rct_China )
call TriggerAddCondition( gg_trg_Leave1China, Condition( function Trig_Leave1China_Conditions ) )
call TriggerAddAction( gg_trg_Leave1China, function Trig_Leave1China_Actions )
endfunction
function Trig_Leave1Congo_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_hbar_0064) ) ) then
return false
endif
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Congo, GetOwningPlayer(gg_unit_hbar_0064))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Leave1Congo_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetLeavingUnit(), GetRectCenter(gg_rct_Congo), bj_UNIT_FACING )
endfunction
function InitTrig_Leave1Congo takes nothing returns nothing
set gg_trg_Leave1Congo = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Leave1Congo, gg_rct_Congo )
call TriggerAddCondition( gg_trg_Leave1Congo, Condition( function Trig_Leave1Congo_Conditions ) )
call TriggerAddAction( gg_trg_Leave1Congo, function Trig_Leave1Congo_Actions )
endfunction
function Trig_Leave1EastAfrica_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_hbar_0059) ) ) then
return false
endif
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_East_Africa, GetOwningPlayer(gg_unit_hbar_0059))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Leave1EastAfrica_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetLeavingUnit(), GetRectCenter(gg_rct_East_Africa), bj_UNIT_FACING )
endfunction
function InitTrig_Leave1EastAfrica takes nothing returns nothing
set gg_trg_Leave1EastAfrica = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Leave1EastAfrica, gg_rct_East_Africa )
call TriggerAddCondition( gg_trg_Leave1EastAfrica, Condition( function Trig_Leave1EastAfrica_Conditions ) )
call TriggerAddAction( gg_trg_Leave1EastAfrica, function Trig_Leave1EastAfrica_Actions )
endfunction
function Trig_Leave1EastAustralia_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_hbar_0068) ) ) then
return false
endif
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Eastern_Australia, GetOwningPlayer(gg_unit_hbar_0068))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Leave1EastAustralia_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetLeavingUnit(), GetRectCenter(gg_rct_Eastern_Australia), bj_UNIT_FACING )
endfunction
function InitTrig_Leave1EastAustralia takes nothing returns nothing
set gg_trg_Leave1EastAustralia = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Leave1EastAustralia, gg_rct_Eastern_Australia )
call TriggerAddCondition( gg_trg_Leave1EastAustralia, Condition( function Trig_Leave1EastAustralia_Conditions ) )
call TriggerAddAction( gg_trg_Leave1EastAustralia, function Trig_Leave1EastAustralia_Actions )
endfunction
function Trig_Leave1EastUS_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_hbar_0052) ) ) then
return false
endif
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Eastern_United_States, GetOwningPlayer(gg_unit_hbar_0052))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Leave1EastUS_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetLeavingUnit(), GetRectCenter(gg_rct_Eastern_United_States), bj_UNIT_FACING )
endfunction
function InitTrig_Leave1EastUS takes nothing returns nothing
set gg_trg_Leave1EastUS = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Leave1EastUS, gg_rct_Eastern_United_States )
call TriggerAddCondition( gg_trg_Leave1EastUS, Condition( function Trig_Leave1EastUS_Conditions ) )
call TriggerAddAction( gg_trg_Leave1EastUS, function Trig_Leave1EastUS_Actions )
endfunction
function Trig_Leave1Egypt_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_hbar_0069) ) ) then
return false
endif
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Egypt, GetOwningPlayer(gg_unit_hbar_0069))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Leave1Egypt_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetLeavingUnit(), GetRectCenter(gg_rct_Egypt), bj_UNIT_FACING )
endfunction
function InitTrig_Leave1Egypt takes nothing returns nothing
set gg_trg_Leave1Egypt = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Leave1Egypt, gg_rct_Egypt )
call TriggerAddCondition( gg_trg_Leave1Egypt, Condition( function Trig_Leave1Egypt_Conditions ) )
call TriggerAddAction( gg_trg_Leave1Egypt, function Trig_Leave1Egypt_Actions )
endfunction
function Trig_Leave1GreatBritain_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_hbar_0072) ) ) then
return false
endif
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Great_Britain, GetOwningPlayer(gg_unit_hbar_0072))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Leave1GreatBritain_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetLeavingUnit(), GetRectCenter(gg_rct_Great_Britain), bj_UNIT_FACING )
endfunction
function InitTrig_Leave1GreatBritain takes nothing returns nothing
set gg_trg_Leave1GreatBritain = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Leave1GreatBritain, gg_rct_Great_Britain )
call TriggerAddCondition( gg_trg_Leave1GreatBritain, Condition( function Trig_Leave1GreatBritain_Conditions ) )
call TriggerAddAction( gg_trg_Leave1GreatBritain, function Trig_Leave1GreatBritain_Actions )
endfunction
function Trig_Leave1Greenland_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_hbar_0063) ) ) then
return false
endif
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Greenland, GetOwningPlayer(gg_unit_hbar_0063))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Leave1Greenland_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetLeavingUnit(), GetRectCenter(gg_rct_Greenland), bj_UNIT_FACING )
endfunction
function InitTrig_Leave1Greenland takes nothing returns nothing
set gg_trg_Leave1Greenland = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Leave1Greenland, gg_rct_Greenland )
call TriggerAddCondition( gg_trg_Leave1Greenland, Condition( function Trig_Leave1Greenland_Conditions ) )
call TriggerAddAction( gg_trg_Leave1Greenland, function Trig_Leave1Greenland_Actions )
endfunction
function Trig_Leave1Iceland_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_hbar_0087) ) ) then
return false
endif
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Iceland, GetOwningPlayer(gg_unit_hbar_0087))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Leave1Iceland_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetLeavingUnit(), GetRectCenter(gg_rct_Iceland), bj_UNIT_FACING )
endfunction
function InitTrig_Leave1Iceland takes nothing returns nothing
set gg_trg_Leave1Iceland = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Leave1Iceland, gg_rct_Iceland )
call TriggerAddCondition( gg_trg_Leave1Iceland, Condition( function Trig_Leave1Iceland_Conditions ) )
call TriggerAddAction( gg_trg_Leave1Iceland, function Trig_Leave1Iceland_Actions )
endfunction
function Trig_Leave1India_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_hbar_0089) ) ) then
return false
endif
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_India, GetOwningPlayer(gg_unit_hbar_0089))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Leave1India_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetLeavingUnit(), GetRectCenter(gg_rct_India), bj_UNIT_FACING )
endfunction
function InitTrig_Leave1India takes nothing returns nothing
set gg_trg_Leave1India = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Leave1India, gg_rct_India )
call TriggerAddCondition( gg_trg_Leave1India, Condition( function Trig_Leave1India_Conditions ) )
call TriggerAddAction( gg_trg_Leave1India, function Trig_Leave1India_Actions )
endfunction
function Trig_Leave1Indonesia_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_hbar_0076) ) ) then
return false
endif
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Indonesia, GetOwningPlayer(gg_unit_hbar_0076))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Leave1Indonesia_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetLeavingUnit(), GetRectCenter(gg_rct_Indonesia), bj_UNIT_FACING )
endfunction
function InitTrig_Leave1Indonesia takes nothing returns nothing
set gg_trg_Leave1Indonesia = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Leave1Indonesia, gg_rct_Indonesia )
call TriggerAddCondition( gg_trg_Leave1Indonesia, Condition( function Trig_Leave1Indonesia_Conditions ) )
call TriggerAddAction( gg_trg_Leave1Indonesia, function Trig_Leave1Indonesia_Actions )
endfunction
function Trig_Leave1Irkutsk_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_hbar_0173) ) ) then
return false
endif
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Irkutsk, GetOwningPlayer(gg_unit_hbar_0173))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Leave1Irkutsk_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetLeavingUnit(), GetRectCenter(gg_rct_Irkutsk), bj_UNIT_FACING )
endfunction
function InitTrig_Leave1Irkutsk takes nothing returns nothing
set gg_trg_Leave1Irkutsk = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Leave1Irkutsk, gg_rct_Irkutsk )
call TriggerAddCondition( gg_trg_Leave1Irkutsk, Condition( function Trig_Leave1Irkutsk_Conditions ) )
call TriggerAddAction( gg_trg_Leave1Irkutsk, function Trig_Leave1Irkutsk_Actions )
endfunction
function Trig_Leave1Japan_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_hbar_0085) ) ) then
return false
endif
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Japan, GetOwningPlayer(gg_unit_hbar_0085))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Leave1Japan_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetLeavingUnit(), GetRectCenter(gg_rct_Japan), bj_UNIT_FACING )
endfunction
function InitTrig_Leave1Japan takes nothing returns nothing
set gg_trg_Leave1Japan = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Leave1Japan, gg_rct_Japan )
call TriggerAddCondition( gg_trg_Leave1Japan, Condition( function Trig_Leave1Japan_Conditions ) )
call TriggerAddAction( gg_trg_Leave1Japan, function Trig_Leave1Japan_Actions )
endfunction
function Trig_Leave1Kamchatka_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_hbar_0088) ) ) then
return false
endif
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Kamchatka1, GetOwningPlayer(gg_unit_hbar_0088))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Leave1Kamchatka_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetLeavingUnit(), GetRectCenter(gg_rct_Kamchatka1), bj_UNIT_FACING )
endfunction
function InitTrig_Leave1Kamchatka takes nothing returns nothing
set gg_trg_Leave1Kamchatka = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Leave1Kamchatka, gg_rct_Kamchatka1 )
call TriggerAddCondition( gg_trg_Leave1Kamchatka, Condition( function Trig_Leave1Kamchatka_Conditions ) )
call TriggerAddAction( gg_trg_Leave1Kamchatka, function Trig_Leave1Kamchatka_Actions )
endfunction
function Trig_Leave1Madagascar_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_hbar_0083) ) ) then
return false
endif
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Madagascar, GetOwningPlayer(gg_unit_hbar_0083))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Leave1Madagascar_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetLeavingUnit(), GetRectCenter(gg_rct_Madagascar), bj_UNIT_FACING )
endfunction
function InitTrig_Leave1Madagascar takes nothing returns nothing
set gg_trg_Leave1Madagascar = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Leave1Madagascar, gg_rct_Madagascar )
call TriggerAddCondition( gg_trg_Leave1Madagascar, Condition( function Trig_Leave1Madagascar_Conditions ) )
call TriggerAddAction( gg_trg_Leave1Madagascar, function Trig_Leave1Madagascar_Actions )
endfunction
function Trig_Leave1MiddleEast_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_hbar_0004) ) ) then
return false
endif
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Middle_East, GetOwningPlayer(gg_unit_hbar_0004))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Leave1MiddleEast_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetLeavingUnit(), GetRectCenter(gg_rct_Middle_East), bj_UNIT_FACING )
endfunction
function InitTrig_Leave1MiddleEast takes nothing returns nothing
set gg_trg_Leave1MiddleEast = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Leave1MiddleEast, gg_rct_Middle_East )
call TriggerAddCondition( gg_trg_Leave1MiddleEast, Condition( function Trig_Leave1MiddleEast_Conditions ) )
call TriggerAddAction( gg_trg_Leave1MiddleEast, function Trig_Leave1MiddleEast_Actions )
endfunction
function Trig_Leave1Mongolia_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_hbar_0073) ) ) then
return false
endif
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Mongolia, GetOwningPlayer(gg_unit_hbar_0073))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Leave1Mongolia_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetLeavingUnit(), GetRectCenter(gg_rct_Mongolia), bj_UNIT_FACING )
endfunction
function InitTrig_Leave1Mongolia takes nothing returns nothing
set gg_trg_Leave1Mongolia = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Leave1Mongolia, gg_rct_Mongolia )
call TriggerAddCondition( gg_trg_Leave1Mongolia, Condition( function Trig_Leave1Mongolia_Conditions ) )
call TriggerAddAction( gg_trg_Leave1Mongolia, function Trig_Leave1Mongolia_Actions )
endfunction
function Trig_Leave1New_Guinea_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_hbar_0079) ) ) then
return false
endif
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_New_Guinea, GetOwningPlayer(gg_unit_hbar_0079))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Leave1New_Guinea_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetLeavingUnit(), GetRectCenter(gg_rct_New_Guinea), bj_UNIT_FACING )
endfunction
function InitTrig_Leave1New_Guinea takes nothing returns nothing
set gg_trg_Leave1New_Guinea = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Leave1New_Guinea, gg_rct_New_Guinea )
call TriggerAddCondition( gg_trg_Leave1New_Guinea, Condition( function Trig_Leave1New_Guinea_Conditions ) )
call TriggerAddAction( gg_trg_Leave1New_Guinea, function Trig_Leave1New_Guinea_Actions )
endfunction
function Trig_Leave1NorthAfrica_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_hbar_0054) ) ) then
return false
endif
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_North_Africa, GetOwningPlayer(gg_unit_hbar_0054))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Leave1NorthAfrica_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetLeavingUnit(), GetRectCenter(gg_rct_North_Africa), bj_UNIT_FACING )
endfunction
function InitTrig_Leave1NorthAfrica takes nothing returns nothing
set gg_trg_Leave1NorthAfrica = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Leave1NorthAfrica, gg_rct_North_Africa )
call TriggerAddCondition( gg_trg_Leave1NorthAfrica, Condition( function Trig_Leave1NorthAfrica_Conditions ) )
call TriggerAddAction( gg_trg_Leave1NorthAfrica, function Trig_Leave1NorthAfrica_Actions )
endfunction
function Trig_Leave1NEurope_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_hbar_0080) ) ) then
return false
endif
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Northern_Europe, GetOwningPlayer(gg_unit_hbar_0080))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Leave1NEurope_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetLeavingUnit(), GetRectCenter(gg_rct_Northern_Europe), bj_UNIT_FACING )
endfunction
function InitTrig_Leave1NEurope takes nothing returns nothing
set gg_trg_Leave1NEurope = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Leave1NEurope, gg_rct_Northern_Europe )
call TriggerAddCondition( gg_trg_Leave1NEurope, Condition( function Trig_Leave1NEurope_Conditions ) )
call TriggerAddAction( gg_trg_Leave1NEurope, function Trig_Leave1NEurope_Actions )
endfunction
function Trig_Leave1NWTerritory_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_hbar_0057) ) ) then
return false
endif
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Northwest_Territory, GetOwningPlayer(gg_unit_hbar_0057))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Leave1NWTerritory_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetLeavingUnit(), GetRectCenter(gg_rct_Northwest_Territory), bj_UNIT_FACING )
endfunction
function InitTrig_Leave1NWTerritory takes nothing returns nothing
set gg_trg_Leave1NWTerritory = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Leave1NWTerritory, gg_rct_Northwest_Territory )
call TriggerAddCondition( gg_trg_Leave1NWTerritory, Condition( function Trig_Leave1NWTerritory_Conditions ) )
call TriggerAddAction( gg_trg_Leave1NWTerritory, function Trig_Leave1NWTerritory_Actions )
endfunction
function Trig_Leave1Ontario_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_hbar_0071) ) ) then
return false
endif
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Ontario, GetOwningPlayer(gg_unit_hbar_0071))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Leave1Ontario_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetLeavingUnit(), GetRectCenter(gg_rct_Ontario), bj_UNIT_FACING )
endfunction
function InitTrig_Leave1Ontario takes nothing returns nothing
set gg_trg_Leave1Ontario = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Leave1Ontario, gg_rct_Ontario )
call TriggerAddCondition( gg_trg_Leave1Ontario, Condition( function Trig_Leave1Ontario_Conditions ) )
call TriggerAddAction( gg_trg_Leave1Ontario, function Trig_Leave1Ontario_Actions )
endfunction
function Trig_Leave1Peru_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_hbar_0090) ) ) then
return false
endif
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Peru, GetOwningPlayer(gg_unit_hbar_0090))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Leave1Peru_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetLeavingUnit(), GetRectCenter(gg_rct_Peru), bj_UNIT_FACING )
endfunction
function InitTrig_Leave1Peru takes nothing returns nothing
set gg_trg_Leave1Peru = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Leave1Peru, gg_rct_Peru )
call TriggerAddCondition( gg_trg_Leave1Peru, Condition( function Trig_Leave1Peru_Conditions ) )
call TriggerAddAction( gg_trg_Leave1Peru, function Trig_Leave1Peru_Actions )
endfunction
function Trig_Leave1Quebec_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_hbar_0081) ) ) then
return false
endif
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Quebec, GetOwningPlayer(gg_unit_hbar_0081))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Leave1Quebec_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetLeavingUnit(), GetRectCenter(gg_rct_Quebec), bj_UNIT_FACING )
endfunction
function InitTrig_Leave1Quebec takes nothing returns nothing
set gg_trg_Leave1Quebec = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Leave1Quebec, gg_rct_Quebec )
call TriggerAddCondition( gg_trg_Leave1Quebec, Condition( function Trig_Leave1Quebec_Conditions ) )
call TriggerAddAction( gg_trg_Leave1Quebec, function Trig_Leave1Quebec_Actions )
endfunction
function Trig_Leave1Scandinavia_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_hbar_0074) ) ) then
return false
endif
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Scandinavia, GetOwningPlayer(gg_unit_hbar_0074))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Leave1Scandinavia_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetLeavingUnit(), GetRectCenter(gg_rct_Scandinavia), bj_UNIT_FACING )
endfunction
function InitTrig_Leave1Scandinavia takes nothing returns nothing
set gg_trg_Leave1Scandinavia = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Leave1Scandinavia, gg_rct_Scandinavia )
call TriggerAddCondition( gg_trg_Leave1Scandinavia, Condition( function Trig_Leave1Scandinavia_Conditions ) )
call TriggerAddAction( gg_trg_Leave1Scandinavia, function Trig_Leave1Scandinavia_Actions )
endfunction
function Trig_Leave1Siam_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_hbar_0067) ) ) then
return false
endif
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Siam, GetOwningPlayer(gg_unit_hbar_0067))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Leave1Siam_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetLeavingUnit(), GetRectCenter(gg_rct_Siam), bj_UNIT_FACING )
endfunction
function InitTrig_Leave1Siam takes nothing returns nothing
set gg_trg_Leave1Siam = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Leave1Siam, gg_rct_Siam )
call TriggerAddCondition( gg_trg_Leave1Siam, Condition( function Trig_Leave1Siam_Conditions ) )
call TriggerAddAction( gg_trg_Leave1Siam, function Trig_Leave1Siam_Actions )
endfunction
function Trig_Leave1Siberia_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_hbar_0084) ) ) then
return false
endif
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Siberia, GetOwningPlayer(gg_unit_hbar_0084))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Leave1Siberia_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetLeavingUnit(), GetRectCenter(gg_rct_Siberia), bj_UNIT_FACING )
endfunction
function InitTrig_Leave1Siberia takes nothing returns nothing
set gg_trg_Leave1Siberia = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Leave1Siberia, gg_rct_Siberia )
call TriggerAddCondition( gg_trg_Leave1Siberia, Condition( function Trig_Leave1Siberia_Conditions ) )
call TriggerAddAction( gg_trg_Leave1Siberia, function Trig_Leave1Siberia_Actions )
endfunction
function Trig_Leave1SouthAfrica_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_hbar_0078) ) ) then
return false
endif
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_South_Africa, GetOwningPlayer(gg_unit_hbar_0078))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Leave1SouthAfrica_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetLeavingUnit(), GetRectCenter(gg_rct_South_Africa), bj_UNIT_FACING )
endfunction
function InitTrig_Leave1SouthAfrica takes nothing returns nothing
set gg_trg_Leave1SouthAfrica = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Leave1SouthAfrica, gg_rct_South_Africa )
call TriggerAddCondition( gg_trg_Leave1SouthAfrica, Condition( function Trig_Leave1SouthAfrica_Conditions ) )
call TriggerAddAction( gg_trg_Leave1SouthAfrica, function Trig_Leave1SouthAfrica_Actions )
endfunction
function Trig_Leave1SEurope_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_hbar_0086) ) ) then
return false
endif
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Southern_Europe, GetOwningPlayer(gg_unit_hbar_0086))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Leave1SEurope_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetLeavingUnit(), GetRectCenter(gg_rct_Southern_Europe), bj_UNIT_FACING )
endfunction
function InitTrig_Leave1SEurope takes nothing returns nothing
set gg_trg_Leave1SEurope = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Leave1SEurope, gg_rct_Southern_Europe )
call TriggerAddCondition( gg_trg_Leave1SEurope, Condition( function Trig_Leave1SEurope_Conditions ) )
call TriggerAddAction( gg_trg_Leave1SEurope, function Trig_Leave1SEurope_Actions )
endfunction
function Trig_Leave1Ukraine_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_hbar_0062) ) ) then
return false
endif
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Ukraine, GetOwningPlayer(gg_unit_hbar_0062))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Leave1Ukraine_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetLeavingUnit(), GetRectCenter(gg_rct_Ukraine), bj_UNIT_FACING )
endfunction
function InitTrig_Leave1Ukraine takes nothing returns nothing
set gg_trg_Leave1Ukraine = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Leave1Ukraine, gg_rct_Ukraine )
call TriggerAddCondition( gg_trg_Leave1Ukraine, Condition( function Trig_Leave1Ukraine_Conditions ) )
call TriggerAddAction( gg_trg_Leave1Ukraine, function Trig_Leave1Ukraine_Actions )
endfunction
function Trig_Leave1Ural_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_hbar_0082) ) ) then
return false
endif
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Ural, GetOwningPlayer(gg_unit_hbar_0082))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Leave1Ural_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetLeavingUnit(), GetRectCenter(gg_rct_Ural), bj_UNIT_FACING )
endfunction
function InitTrig_Leave1Ural takes nothing returns nothing
set gg_trg_Leave1Ural = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Leave1Ural, gg_rct_Ural )
call TriggerAddCondition( gg_trg_Leave1Ural, Condition( function Trig_Leave1Ural_Conditions ) )
call TriggerAddAction( gg_trg_Leave1Ural, function Trig_Leave1Ural_Actions )
endfunction
function Trig_Leave1Venezuela_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_hbar_0053) ) ) then
return false
endif
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Venezuela, GetOwningPlayer(gg_unit_hbar_0053))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Leave1Venezuela_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetLeavingUnit(), GetRectCenter(gg_rct_Venezuela), bj_UNIT_FACING )
endfunction
function InitTrig_Leave1Venezuela takes nothing returns nothing
set gg_trg_Leave1Venezuela = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Leave1Venezuela, gg_rct_Venezuela )
call TriggerAddCondition( gg_trg_Leave1Venezuela, Condition( function Trig_Leave1Venezuela_Conditions ) )
call TriggerAddAction( gg_trg_Leave1Venezuela, function Trig_Leave1Venezuela_Actions )
endfunction
function Trig_Leave1WAustralia_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_hbar_0060) ) ) then
return false
endif
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Western_Australia, GetOwningPlayer(gg_unit_hbar_0060))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Leave1WAustralia_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetLeavingUnit(), GetRectCenter(gg_rct_Western_Australia), bj_UNIT_FACING )
endfunction
function InitTrig_Leave1WAustralia takes nothing returns nothing
set gg_trg_Leave1WAustralia = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Leave1WAustralia, gg_rct_Western_Australia )
call TriggerAddCondition( gg_trg_Leave1WAustralia, Condition( function Trig_Leave1WAustralia_Conditions ) )
call TriggerAddAction( gg_trg_Leave1WAustralia, function Trig_Leave1WAustralia_Actions )
endfunction
function Trig_Leave1WEurope_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_hbar_0058) ) ) then
return false
endif
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Western_Europe, GetOwningPlayer(gg_unit_hbar_0058))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Leave1WEurope_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetLeavingUnit(), GetRectCenter(gg_rct_Western_Europe), bj_UNIT_FACING )
endfunction
function InitTrig_Leave1WEurope takes nothing returns nothing
set gg_trg_Leave1WEurope = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Leave1WEurope, gg_rct_Western_Europe )
call TriggerAddCondition( gg_trg_Leave1WEurope, Condition( function Trig_Leave1WEurope_Conditions ) )
call TriggerAddAction( gg_trg_Leave1WEurope, function Trig_Leave1WEurope_Actions )
endfunction
function Trig_Leave1WestUS_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_hbar_0075) ) ) then
return false
endif
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Western_United_States, GetOwningPlayer(gg_unit_hbar_0075))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Leave1WestUS_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetLeavingUnit(), GetRectCenter(gg_rct_Western_United_States), bj_UNIT_FACING )
endfunction
function InitTrig_Leave1WestUS takes nothing returns nothing
set gg_trg_Leave1WestUS = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Leave1WestUS, gg_rct_Western_United_States )
call TriggerAddCondition( gg_trg_Leave1WestUS, Condition( function Trig_Leave1WestUS_Conditions ) )
call TriggerAddAction( gg_trg_Leave1WestUS, function Trig_Leave1WestUS_Actions )
endfunction
function Trig_Leave1Yakutsk_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetOwningPlayer(gg_unit_hbar_0056) ) ) then
return false
endif
if ( not ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Yakutsk, GetOwningPlayer(gg_unit_hbar_0056))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Leave1Yakutsk_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetLeavingUnit(), GetRectCenter(gg_rct_Yakutsk), bj_UNIT_FACING )
endfunction
function InitTrig_Leave1Yakutsk takes nothing returns nothing
set gg_trg_Leave1Yakutsk = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Leave1Yakutsk, gg_rct_Yakutsk )
call TriggerAddCondition( gg_trg_Leave1Yakutsk, Condition( function Trig_Leave1Yakutsk_Conditions ) )
call TriggerAddAction( gg_trg_Leave1Yakutsk, function Trig_Leave1Yakutsk_Actions )
endfunction
function Trig_Winning_Func002003001 takes nothing returns boolean
return ( udg_isPlaying[GetForLoopIndexA()] == true )
endfunction
function Trig_Winning_Func002003002003001001 takes nothing returns boolean
return ( IsPlayerEnemy(ConvertedPlayer(GetForLoopIndexB()), ConvertedPlayer(GetForLoopIndexA())) == true )
endfunction
function Trig_Winning_Func002003002003001002 takes nothing returns boolean
return ( udg_isPlaying[GetForLoopIndexB()] == true )
endfunction
function Trig_Winning_Func002003002003001 takes nothing returns boolean
return GetBooleanAnd( Trig_Winning_Func002003002003001001(), Trig_Winning_Func002003002003001002() )
endfunction
function Trig_Winning_Func003001 takes nothing returns boolean
return ( udg_Victory == false )
endfunction
function Trig_Winning_Func004003001 takes nothing returns boolean
return ( udg_isPlaying[GetForLoopIndexA()] == true )
endfunction
function Trig_Winning_Actions takes nothing returns nothing
set udg_Victory = true
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Winning_Func002003001() ) then
set bj_forLoopBIndex = 1
set bj_forLoopBIndexEnd = 12
loop
exitwhen bj_forLoopBIndex > bj_forLoopBIndexEnd
if ( Trig_Winning_Func002003002003001() ) then
set udg_Victory = false
else
call DoNothing( )
endif
set bj_forLoopBIndex = bj_forLoopBIndex + 1
endloop
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
if ( Trig_Winning_Func003001() ) then
return
else
call DoNothing( )
endif
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Winning_Func004003001() ) then
call CustomVictoryBJ( ConvertedPlayer(GetForLoopIndexA()), true, true )
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
function InitTrig_Winning takes nothing returns nothing
set gg_trg_Winning = CreateTrigger( )
call TriggerAddAction( gg_trg_Winning, function Trig_Winning_Actions )
endfunction
function Trig_Losing_Func002003001001 takes nothing returns boolean
return ( GetPlayerStructureCount(ConvertedPlayer(GetForLoopIndexA()), false) < 1 )
endfunction
function Trig_Losing_Func002003001002 takes nothing returns boolean
return ( GetPlayerSlotState(ConvertedPlayer(GetForLoopIndexA())) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Losing_Func002003001 takes nothing returns boolean
return GetBooleanAnd( Trig_Losing_Func002003001001(), Trig_Losing_Func002003001002() )
endfunction
function Trig_Losing_Actions takes nothing returns nothing
call CommentString( "Give a Player until next Turn to have at least 1 Country to stay in the game!" )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Losing_Func002003001() ) then
call CustomDefeatBJ( ConvertedPlayer(GetForLoopIndexA()), "TRIGSTR_363" )
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call TriggerExecute( gg_trg_Winning )
endfunction
function InitTrig_Losing takes nothing returns nothing
set gg_trg_Losing = CreateTrigger( )
call TriggerRegisterTimerExpireEventBJ( gg_trg_Losing, udg_Turn )
call TriggerAddAction( gg_trg_Losing, function Trig_Losing_Actions )
endfunction
function Trig_Check_All_Players_Actions takes nothing returns nothing
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set udg_UnitsReceived[GetForLoopIndexA()] = 4
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set udg_SAPlayerPaid = Player(bj_PLAYER_NEUTRAL_VICTIM)
set udg_SAAllyPaid = Player(bj_PLAYER_NEUTRAL_VICTIM)
set udg_SAComplete = false
set udg_NAPlayerPaid = Player(bj_PLAYER_NEUTRAL_VICTIM)
set udg_NAAllyPaid = Player(bj_PLAYER_NEUTRAL_VICTIM)
set udg_NAComplete = false
set udg_AfricaPlayerPaid = Player(bj_PLAYER_NEUTRAL_VICTIM)
set udg_AfricaAllyPaid = Player(bj_PLAYER_NEUTRAL_VICTIM)
set udg_AfricaComplete = false
set udg_EuropePlayerPaid = Player(bj_PLAYER_NEUTRAL_VICTIM)
set udg_EuropeAllyPaid = Player(bj_PLAYER_NEUTRAL_VICTIM)
set udg_EuropeComplete = false
set udg_AustPlayerPaid = Player(bj_PLAYER_NEUTRAL_VICTIM)
set udg_AustAllyPaid = Player(bj_PLAYER_NEUTRAL_VICTIM)
set udg_AustComplete = false
set udg_AsiaPlayerPaid = Player(bj_PLAYER_NEUTRAL_VICTIM)
set udg_AsiaAllyPaid = Player(bj_PLAYER_NEUTRAL_VICTIM)
set udg_AsiaComplete = false
call CommentString( "We still want to check ownership even if Player is NOT Playing" )
set bj_forLoopBIndex = 1
set bj_forLoopBIndexEnd = 12
loop
exitwhen bj_forLoopBIndex > bj_forLoopBIndexEnd
call TriggerExecute( gg_trg_Check_All_Continents )
set bj_forLoopBIndex = bj_forLoopBIndex + 1
endloop
call CommentString( "Check Empires" )
call ConditionalTriggerExecute( gg_trg_Check_West_Empire )
call ConditionalTriggerExecute( gg_trg_Check_AfroEuropean_Empire )
call ConditionalTriggerExecute( gg_trg_Check_East_Empire )
call TriggerExecute( gg_trg_leaderboard )
endfunction
function InitTrig_Check_All_Players takes nothing returns nothing
set gg_trg_Check_All_Players = CreateTrigger( )
call TriggerRegisterTimerExpireEventBJ( gg_trg_Check_All_Players, udg_Turn )
call TriggerAddAction( gg_trg_Check_All_Players, function Trig_Check_All_Players_Actions )
endfunction
function Trig_Check_All_Continents_Actions takes nothing returns nothing
call CommentString( "Check Continents" )
call CommentString( "Check 'if Player is Playing' in TRIGGER: Check All Contients If Statement, not in above Condition" )
call ConditionalTriggerExecute( gg_trg_Check_South_America )
call ConditionalTriggerExecute( gg_trg_Check_North_America )
call ConditionalTriggerExecute( gg_trg_Check_Africa )
call ConditionalTriggerExecute( gg_trg_Check_Europe )
call ConditionalTriggerExecute( gg_trg_Check_Australia )
call ConditionalTriggerExecute( gg_trg_Check_Asia )
endfunction
function InitTrig_Check_All_Continents takes nothing returns nothing
set gg_trg_Check_All_Continents = CreateTrigger( )
call TriggerAddAction( gg_trg_Check_All_Continents, function Trig_Check_All_Continents_Actions )
endfunction
function Trig_Check_South_America_Func021001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0053) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_South_America_Func021002 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0053), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_South_America_Func022001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0070) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_South_America_Func022002 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0070), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_South_America_Func023001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0090) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_South_America_Func023002 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0090), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_South_America_Func024001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0065) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_South_America_Func024002 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0065), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_South_America_Conditions takes nothing returns boolean
if ( not GetBooleanOr( Trig_Check_South_America_Func021001(), Trig_Check_South_America_Func021002() ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Check_South_America_Func022001(), Trig_Check_South_America_Func022002() ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Check_South_America_Func023001(), Trig_Check_South_America_Func023002() ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Check_South_America_Func024001(), Trig_Check_South_America_Func024002() ) ) then
return false
endif
if ( not ( udg_SAAllyPaid != ConvertedPlayer(GetForLoopIndexB()) ) ) then
return false
endif
if ( not ( udg_SAComplete == false ) ) then
return false
endif
return true
endfunction
function Trig_Check_South_America_Func001001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0053) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_South_America_Func002001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0070) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_South_America_Func003001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0090) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_South_America_Func004001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0065) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_South_America_Func005001 takes nothing returns boolean
return ( udg_SAPlayerPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_South_America_Func007001001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0053), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_South_America_Func007001002 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0053) != ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_South_America_Func007001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_South_America_Func007001001(), Trig_Check_South_America_Func007001002() )
endfunction
function Trig_Check_South_America_Func008001001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0070), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_South_America_Func008001002 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0070) != ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_South_America_Func008001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_South_America_Func008001001(), Trig_Check_South_America_Func008001002() )
endfunction
function Trig_Check_South_America_Func009001001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0090), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_South_America_Func009001002 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0090) != ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_South_America_Func009001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_South_America_Func009001001(), Trig_Check_South_America_Func009001002() )
endfunction
function Trig_Check_South_America_Func010001001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0065), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_South_America_Func010001002 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0065) != ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_South_America_Func010001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_South_America_Func010001001(), Trig_Check_South_America_Func010001002() )
endfunction
function Trig_Check_South_America_Func011001 takes nothing returns boolean
return ( udg_SAAllyPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_South_America_Func014001 takes nothing returns boolean
return ( udg_SAAllyPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_South_America_Func016001 takes nothing returns boolean
return ( udg_SAAllyPaid != Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_South_America_Func018001 takes nothing returns boolean
return ( udg_SAAllyPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_South_America_Func020001 takes nothing returns boolean
return ( udg_SAAllyPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_South_America_Actions takes nothing returns nothing
if ( Trig_Check_South_America_Func001001() ) then
set udg_SAPlayerPaid = ConvertedPlayer(GetForLoopIndexB())
else
call DoNothing( )
endif
if ( Trig_Check_South_America_Func002001() ) then
set udg_SAPlayerPaid = ConvertedPlayer(GetForLoopIndexB())
else
call DoNothing( )
endif
if ( Trig_Check_South_America_Func003001() ) then
set udg_SAPlayerPaid = ConvertedPlayer(GetForLoopIndexB())
else
call DoNothing( )
endif
if ( Trig_Check_South_America_Func004001() ) then
set udg_SAPlayerPaid = ConvertedPlayer(GetForLoopIndexB())
else
call DoNothing( )
endif
if ( Trig_Check_South_America_Func005001() ) then
return
else
call DoNothing( )
endif
call CommentString( "NEW" )
if ( Trig_Check_South_America_Func007001() ) then
set udg_SAAllyPaid = GetOwningPlayer(gg_unit_hbar_0053)
else
call DoNothing( )
endif
if ( Trig_Check_South_America_Func008001() ) then
set udg_SAAllyPaid = GetOwningPlayer(gg_unit_hbar_0070)
else
call DoNothing( )
endif
if ( Trig_Check_South_America_Func009001() ) then
set udg_SAAllyPaid = GetOwningPlayer(gg_unit_hbar_0090)
else
call DoNothing( )
endif
if ( Trig_Check_South_America_Func010001() ) then
set udg_SAAllyPaid = GetOwningPlayer(gg_unit_hbar_0065)
else
call DoNothing( )
endif
if ( Trig_Check_South_America_Func011001() ) then
set udg_SAComplete = true
else
call DoNothing( )
endif
call CommentString( "BONUSES - Africa - 2 Infantry and 2 Gold total! TOTAL BONUS = 4" )
call CreateNUnitsAtLoc( 1, 'hrif', ConvertedPlayer(GetForLoopIndexB()), GetRectCenter(gg_rct_South_America_Spawn), bj_UNIT_FACING )
if ( Trig_Check_South_America_Func014001() ) then
call CreateNUnitsAtLoc( 1, 'hrif', ConvertedPlayer(GetForLoopIndexB()), GetRectCenter(gg_rct_South_America_Spawn), bj_UNIT_FACING )
else
call CreateNUnitsAtLoc( 1, 'hrif', udg_SAAllyPaid, GetRectCenter(gg_rct_South_America_Spawn), bj_UNIT_FACING )
endif
call DisplayTimedTextToForce( GetForceOfPlayer(ConvertedPlayer(GetForLoopIndexB())), 8.00, "TRIGSTR_324" )
if ( Trig_Check_South_America_Func016001() ) then
call DisplayTimedTextToForce( GetForceOfPlayer(udg_SAAllyPaid), 8.00, "TRIGSTR_332" )
else
call DoNothing( )
endif
call AdjustPlayerStateBJ( 1, ConvertedPlayer(GetForLoopIndexB()), PLAYER_STATE_RESOURCE_GOLD )
if ( Trig_Check_South_America_Func018001() ) then
call AdjustPlayerStateBJ( 1, ConvertedPlayer(GetForLoopIndexB()), PLAYER_STATE_RESOURCE_GOLD )
else
call AdjustPlayerStateBJ( 1, udg_SAAllyPaid, PLAYER_STATE_RESOURCE_GOLD )
endif
set udg_UnitsReceived[GetForLoopIndexB()] = ( udg_UnitsReceived[GetForLoopIndexB()] + 2 )
if ( Trig_Check_South_America_Func020001() ) then
set udg_UnitsReceived[GetForLoopIndexB()] = ( udg_UnitsReceived[GetForLoopIndexB()] + 2 )
else
set udg_UnitsReceived[GetConvertedPlayerId(udg_SAAllyPaid)] = ( udg_UnitsReceived[GetConvertedPlayerId(udg_SAAllyPaid)] + 2 )
endif
endfunction
function InitTrig_Check_South_America takes nothing returns nothing
set gg_trg_Check_South_America = CreateTrigger( )
call TriggerAddCondition( gg_trg_Check_South_America, Condition( function Trig_Check_South_America_Conditions ) )
call TriggerAddAction( gg_trg_Check_South_America, function Trig_Check_South_America_Actions )
endfunction
function Trig_Check_North_America_Func033001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0047) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_North_America_Func033002 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0047), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_North_America_Func034001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0057) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_North_America_Func034002 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0057), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_North_America_Func035001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0063) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_North_America_Func035002 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0063), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_North_America_Func036001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0081) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_North_America_Func036002 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0081), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_North_America_Func037001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0071) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_North_America_Func037002 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0071), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_North_America_Func038001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0066) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_North_America_Func038002 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0066), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_North_America_Func039001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0075) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_North_America_Func039002 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0075), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_North_America_Func040001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0052) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_North_America_Func040002 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0052), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_North_America_Func041001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0077) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_North_America_Func041002 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0077), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_North_America_Conditions takes nothing returns boolean
if ( not GetBooleanOr( Trig_Check_North_America_Func033001(), Trig_Check_North_America_Func033002() ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Check_North_America_Func034001(), Trig_Check_North_America_Func034002() ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Check_North_America_Func035001(), Trig_Check_North_America_Func035002() ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Check_North_America_Func036001(), Trig_Check_North_America_Func036002() ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Check_North_America_Func037001(), Trig_Check_North_America_Func037002() ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Check_North_America_Func038001(), Trig_Check_North_America_Func038002() ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Check_North_America_Func039001(), Trig_Check_North_America_Func039002() ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Check_North_America_Func040001(), Trig_Check_North_America_Func040002() ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Check_North_America_Func041001(), Trig_Check_North_America_Func041002() ) ) then
return false
endif
if ( not ( udg_NAAllyPaid != ConvertedPlayer(GetForLoopIndexB()) ) ) then
return false
endif
if ( not ( udg_NAComplete == false ) ) then
return false
endif
return true
endfunction
function Trig_Check_North_America_Func001001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0047) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_North_America_Func002001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0057) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_North_America_Func003001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0063) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_North_America_Func004001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0081) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_North_America_Func005001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0071) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_North_America_Func006001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0066) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_North_America_Func007001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0075) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_North_America_Func008001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0052) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_North_America_Func009001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0077) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_North_America_Func010001 takes nothing returns boolean
return ( udg_NAPlayerPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_North_America_Func012001001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0047), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_North_America_Func012001002 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0047) != ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_North_America_Func012001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_North_America_Func012001001(), Trig_Check_North_America_Func012001002() )
endfunction
function Trig_Check_North_America_Func013001001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0057), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_North_America_Func013001002 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0057) != ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_North_America_Func013001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_North_America_Func013001001(), Trig_Check_North_America_Func013001002() )
endfunction
function Trig_Check_North_America_Func014001001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0063), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_North_America_Func014001002 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0063) != ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_North_America_Func014001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_North_America_Func014001001(), Trig_Check_North_America_Func014001002() )
endfunction
function Trig_Check_North_America_Func015001001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0081), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_North_America_Func015001002 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0081) != ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_North_America_Func015001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_North_America_Func015001001(), Trig_Check_North_America_Func015001002() )
endfunction
function Trig_Check_North_America_Func016001001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0071), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_North_America_Func016001002 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0071) != ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_North_America_Func016001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_North_America_Func016001001(), Trig_Check_North_America_Func016001002() )
endfunction
function Trig_Check_North_America_Func017001001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0066), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_North_America_Func017001002 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0066) != ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_North_America_Func017001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_North_America_Func017001001(), Trig_Check_North_America_Func017001002() )
endfunction
function Trig_Check_North_America_Func018001001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0075), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_North_America_Func018001002 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0075) != ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_North_America_Func018001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_North_America_Func018001001(), Trig_Check_North_America_Func018001002() )
endfunction
function Trig_Check_North_America_Func019001001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0052), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_North_America_Func019001002 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0052) != ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_North_America_Func019001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_North_America_Func019001001(), Trig_Check_North_America_Func019001002() )
endfunction
function Trig_Check_North_America_Func020001001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0077), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_North_America_Func020001002 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0077) != ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_North_America_Func020001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_North_America_Func020001001(), Trig_Check_North_America_Func020001002() )
endfunction
function Trig_Check_North_America_Func021001 takes nothing returns boolean
return ( udg_NAAllyPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_North_America_Func026001 takes nothing returns boolean
return ( udg_NAAllyPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_North_America_Func028001 takes nothing returns boolean
return ( udg_NAAllyPaid != Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_North_America_Func030001 takes nothing returns boolean
return ( udg_NAAllyPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_North_America_Func032001 takes nothing returns boolean
return ( udg_NAAllyPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_North_America_Actions takes nothing returns nothing
if ( Trig_Check_North_America_Func001001() ) then
set udg_NAPlayerPaid = ConvertedPlayer(GetForLoopIndexB())
else
call DoNothing( )
endif
if ( Trig_Check_North_America_Func002001() ) then
set udg_NAPlayerPaid = ConvertedPlayer(GetForLoopIndexB())
else
call DoNothing( )
endif
if ( Trig_Check_North_America_Func003001() ) then
set udg_NAPlayerPaid = ConvertedPlayer(GetForLoopIndexB())
else
call DoNothing( )
endif
if ( Trig_Check_North_America_Func004001() ) then
set udg_NAPlayerPaid = ConvertedPlayer(GetForLoopIndexB())
else
call DoNothing( )
endif
if ( Trig_Check_North_America_Func005001() ) then
set udg_NAPlayerPaid = ConvertedPlayer(GetForLoopIndexB())
else
call DoNothing( )
endif
if ( Trig_Check_North_America_Func006001() ) then
set udg_NAPlayerPaid = ConvertedPlayer(GetForLoopIndexB())
else
call DoNothing( )
endif
if ( Trig_Check_North_America_Func007001() ) then
set udg_NAPlayerPaid = ConvertedPlayer(GetForLoopIndexB())
else
call DoNothing( )
endif
if ( Trig_Check_North_America_Func008001() ) then
set udg_NAPlayerPaid = ConvertedPlayer(GetForLoopIndexB())
else
call DoNothing( )
endif
if ( Trig_Check_North_America_Func009001() ) then
set udg_NAPlayerPaid = ConvertedPlayer(GetForLoopIndexB())
else
call DoNothing( )
endif
if ( Trig_Check_North_America_Func010001() ) then
return
else
call DoNothing( )
endif
call CommentString( "NEW" )
if ( Trig_Check_North_America_Func012001() ) then
set udg_NAAllyPaid = GetOwningPlayer(gg_unit_hbar_0047)
else
call DoNothing( )
endif
if ( Trig_Check_North_America_Func013001() ) then
set udg_NAAllyPaid = GetOwningPlayer(gg_unit_hbar_0057)
else
call DoNothing( )
endif
if ( Trig_Check_North_America_Func014001() ) then
set udg_NAAllyPaid = GetOwningPlayer(gg_unit_hbar_0063)
else
call DoNothing( )
endif
if ( Trig_Check_North_America_Func015001() ) then
set udg_NAAllyPaid = GetOwningPlayer(gg_unit_hbar_0081)
else
call DoNothing( )
endif
if ( Trig_Check_North_America_Func016001() ) then
set udg_NAAllyPaid = GetOwningPlayer(gg_unit_hbar_0071)
else
call DoNothing( )
endif
if ( Trig_Check_North_America_Func017001() ) then
set udg_NAAllyPaid = GetOwningPlayer(gg_unit_hbar_0066)
else
call DoNothing( )
endif
if ( Trig_Check_North_America_Func018001() ) then
set udg_NAAllyPaid = GetOwningPlayer(gg_unit_hbar_0075)
else
call DoNothing( )
endif
if ( Trig_Check_North_America_Func019001() ) then
set udg_NAAllyPaid = GetOwningPlayer(gg_unit_hbar_0052)
else
call DoNothing( )
endif
if ( Trig_Check_North_America_Func020001() ) then
set udg_NAAllyPaid = GetOwningPlayer(gg_unit_hbar_0077)
else
call DoNothing( )
endif
if ( Trig_Check_North_America_Func021001() ) then
set udg_NAComplete = true
else
call DoNothing( )
endif
call CommentString( "BONUSES - For odd amounts, this player gets more of the created units, his Ally gets more of the Gold!" )
call CommentString( "BONUSES - Of course, if no Ally is sharing control, this player gets all bonuses!" )
call CommentString( "BONUSES - Australia - 5 Infantry and 5 Gold total! TOTAL BONUS = 10" )
call CreateNUnitsAtLoc( 3, 'hrif', ConvertedPlayer(GetForLoopIndexB()), GetRectCenter(gg_rct_North_America_Spawn), bj_UNIT_FACING )
if ( Trig_Check_North_America_Func026001() ) then
call CreateNUnitsAtLoc( 2, 'hrif', ConvertedPlayer(GetForLoopIndexB()), GetRectCenter(gg_rct_North_America_Spawn), bj_UNIT_FACING )
else
call CreateNUnitsAtLoc( 2, 'hrif', udg_NAAllyPaid, GetRectCenter(gg_rct_North_America_Spawn), bj_UNIT_FACING )
endif
call DisplayTimedTextToForce( GetForceOfPlayer(ConvertedPlayer(GetForLoopIndexB())), 8.00, "TRIGSTR_366" )
if ( Trig_Check_North_America_Func028001() ) then
call DisplayTimedTextToForce( GetForceOfPlayer(udg_NAAllyPaid), 8.00, "TRIGSTR_372" )
else
call DoNothing( )
endif
call AdjustPlayerStateBJ( 2, ConvertedPlayer(GetForLoopIndexB()), PLAYER_STATE_RESOURCE_GOLD )
if ( Trig_Check_North_America_Func030001() ) then
call AdjustPlayerStateBJ( 3, ConvertedPlayer(GetForLoopIndexB()), PLAYER_STATE_RESOURCE_GOLD )
else
call AdjustPlayerStateBJ( 3, udg_NAAllyPaid, PLAYER_STATE_RESOURCE_GOLD )
endif
set udg_UnitsReceived[GetForLoopIndexB()] = ( udg_UnitsReceived[GetForLoopIndexB()] + 5 )
if ( Trig_Check_North_America_Func032001() ) then
set udg_UnitsReceived[GetForLoopIndexB()] = ( udg_UnitsReceived[GetForLoopIndexB()] + 5 )
else
set udg_UnitsReceived[GetConvertedPlayerId(udg_NAAllyPaid)] = ( udg_UnitsReceived[GetConvertedPlayerId(udg_NAAllyPaid)] + 5 )
endif
endfunction
function InitTrig_Check_North_America takes nothing returns nothing
set gg_trg_Check_North_America = CreateTrigger( )
call TriggerAddCondition( gg_trg_Check_North_America, Condition( function Trig_Check_North_America_Conditions ) )
call TriggerAddAction( gg_trg_Check_North_America, function Trig_Check_North_America_Actions )
endfunction
function Trig_Check_Africa_Func027001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0054) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Africa_Func027002 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0054), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Africa_Func028001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0069) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Africa_Func028002 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0069), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Africa_Func029001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0059) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Africa_Func029002 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0059), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Africa_Func030001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0064) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Africa_Func030002 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0064), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Africa_Func031001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0078) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Africa_Func031002 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0078), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Africa_Func032001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0083) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Africa_Func032002 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0083), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Africa_Conditions takes nothing returns boolean
if ( not GetBooleanOr( Trig_Check_Africa_Func027001(), Trig_Check_Africa_Func027002() ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Check_Africa_Func028001(), Trig_Check_Africa_Func028002() ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Check_Africa_Func029001(), Trig_Check_Africa_Func029002() ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Check_Africa_Func030001(), Trig_Check_Africa_Func030002() ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Check_Africa_Func031001(), Trig_Check_Africa_Func031002() ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Check_Africa_Func032001(), Trig_Check_Africa_Func032002() ) ) then
return false
endif
if ( not ( udg_AfricaAllyPaid != ConvertedPlayer(GetForLoopIndexB()) ) ) then
return false
endif
if ( not ( udg_AfricaComplete == false ) ) then
return false
endif
return true
endfunction
function Trig_Check_Africa_Func001001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0054) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Africa_Func002001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0069) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Africa_Func003001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0059) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Africa_Func004001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0064) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Africa_Func005001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0078) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Africa_Func006001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0083) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Africa_Func007001 takes nothing returns boolean
return ( udg_AfricaPlayerPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_Africa_Func009001001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0054), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Africa_Func009001002 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0054) != ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Africa_Func009001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_Africa_Func009001001(), Trig_Check_Africa_Func009001002() )
endfunction
function Trig_Check_Africa_Func010001001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0069), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Africa_Func010001002 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0069) != ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Africa_Func010001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_Africa_Func010001001(), Trig_Check_Africa_Func010001002() )
endfunction
function Trig_Check_Africa_Func011001001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0059), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Africa_Func011001002 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0059) != ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Africa_Func011001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_Africa_Func011001001(), Trig_Check_Africa_Func011001002() )
endfunction
function Trig_Check_Africa_Func012001001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0064), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Africa_Func012001002 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0064) != ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Africa_Func012001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_Africa_Func012001001(), Trig_Check_Africa_Func012001002() )
endfunction
function Trig_Check_Africa_Func013001001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0078), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Africa_Func013001002 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0078) != ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Africa_Func013001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_Africa_Func013001001(), Trig_Check_Africa_Func013001002() )
endfunction
function Trig_Check_Africa_Func014001001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0083), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Africa_Func014001002 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0083) != ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Africa_Func014001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_Africa_Func014001001(), Trig_Check_Africa_Func014001002() )
endfunction
function Trig_Check_Africa_Func015001 takes nothing returns boolean
return ( udg_AfricaAllyPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_Africa_Func020001 takes nothing returns boolean
return ( udg_AfricaAllyPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_Africa_Func022001 takes nothing returns boolean
return ( udg_AfricaAllyPaid != Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_Africa_Func024001 takes nothing returns boolean
return ( udg_AfricaAllyPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_Africa_Func026001 takes nothing returns boolean
return ( udg_AfricaAllyPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_Africa_Actions takes nothing returns nothing
if ( Trig_Check_Africa_Func001001() ) then
set udg_AfricaPlayerPaid = ConvertedPlayer(GetForLoopIndexB())
else
call DoNothing( )
endif
if ( Trig_Check_Africa_Func002001() ) then
set udg_AfricaPlayerPaid = ConvertedPlayer(GetForLoopIndexB())
else
call DoNothing( )
endif
if ( Trig_Check_Africa_Func003001() ) then
set udg_AfricaPlayerPaid = ConvertedPlayer(GetForLoopIndexB())
else
call DoNothing( )
endif
if ( Trig_Check_Africa_Func004001() ) then
set udg_AfricaPlayerPaid = ConvertedPlayer(GetForLoopIndexB())
else
call DoNothing( )
endif
if ( Trig_Check_Africa_Func005001() ) then
set udg_AfricaPlayerPaid = ConvertedPlayer(GetForLoopIndexB())
else
call DoNothing( )
endif
if ( Trig_Check_Africa_Func006001() ) then
set udg_AfricaPlayerPaid = ConvertedPlayer(GetForLoopIndexB())
else
call DoNothing( )
endif
if ( Trig_Check_Africa_Func007001() ) then
return
else
call DoNothing( )
endif
call CommentString( "NEW" )
if ( Trig_Check_Africa_Func009001() ) then
set udg_AfricaAllyPaid = GetOwningPlayer(gg_unit_hbar_0054)
else
call DoNothing( )
endif
if ( Trig_Check_Africa_Func010001() ) then
set udg_AfricaAllyPaid = GetOwningPlayer(gg_unit_hbar_0069)
else
call DoNothing( )
endif
if ( Trig_Check_Africa_Func011001() ) then
set udg_AfricaAllyPaid = GetOwningPlayer(gg_unit_hbar_0059)
else
call DoNothing( )
endif
if ( Trig_Check_Africa_Func012001() ) then
set udg_AfricaAllyPaid = GetOwningPlayer(gg_unit_hbar_0064)
else
call DoNothing( )
endif
if ( Trig_Check_Africa_Func013001() ) then
set udg_AfricaAllyPaid = GetOwningPlayer(gg_unit_hbar_0078)
else
call DoNothing( )
endif
if ( Trig_Check_Africa_Func014001() ) then
set udg_AfricaAllyPaid = GetOwningPlayer(gg_unit_hbar_0083)
else
call DoNothing( )
endif
if ( Trig_Check_Africa_Func015001() ) then
set udg_AfricaComplete = true
else
call DoNothing( )
endif
call CommentString( "BONUSES - For odd amounts, this player gets more of the created units, his Ally gets more of the Gold!" )
call CommentString( "BONUSES - Of course, if no Ally is sharing control, this player gets all bonuses!" )
call CommentString( "BONUSES - Africa - 3 Infantry and 3 Gold total! TOTAL BONUS = 6" )
call CreateNUnitsAtLoc( 2, 'hrif', ConvertedPlayer(GetForLoopIndexB()), GetRectCenter(gg_rct_Africa_Spawn), bj_UNIT_FACING )
if ( Trig_Check_Africa_Func020001() ) then
call CreateNUnitsAtLoc( 1, 'hrif', ConvertedPlayer(GetForLoopIndexB()), GetRectCenter(gg_rct_Africa_Spawn), bj_UNIT_FACING )
else
call CreateNUnitsAtLoc( 1, 'hrif', udg_AfricaAllyPaid, GetRectCenter(gg_rct_Africa_Spawn), bj_UNIT_FACING )
endif
call DisplayTimedTextToForce( GetForceOfPlayer(ConvertedPlayer(GetForLoopIndexB())), 8.00, "TRIGSTR_335" )
if ( Trig_Check_Africa_Func022001() ) then
call DisplayTimedTextToForce( GetForceOfPlayer(udg_AfricaAllyPaid), 8.00, "TRIGSTR_341" )
else
call DoNothing( )
endif
call AdjustPlayerStateBJ( 1, ConvertedPlayer(GetForLoopIndexB()), PLAYER_STATE_RESOURCE_GOLD )
if ( Trig_Check_Africa_Func024001() ) then
call AdjustPlayerStateBJ( 2, ConvertedPlayer(GetForLoopIndexB()), PLAYER_STATE_RESOURCE_GOLD )
else
call AdjustPlayerStateBJ( 2, udg_AfricaAllyPaid, PLAYER_STATE_RESOURCE_GOLD )
endif
set udg_UnitsReceived[GetForLoopIndexB()] = ( udg_UnitsReceived[GetForLoopIndexB()] + 3 )
if ( Trig_Check_Africa_Func026001() ) then
set udg_UnitsReceived[GetForLoopIndexB()] = ( udg_UnitsReceived[GetForLoopIndexB()] + 3 )
else
set udg_UnitsReceived[GetConvertedPlayerId(udg_AfricaAllyPaid)] = ( udg_UnitsReceived[GetConvertedPlayerId(udg_AfricaAllyPaid)] + 3 )
endif
endfunction
function InitTrig_Check_Africa takes nothing returns nothing
set gg_trg_Check_Africa = CreateTrigger( )
call TriggerAddCondition( gg_trg_Check_Africa, Condition( function Trig_Check_Africa_Conditions ) )
call TriggerAddAction( gg_trg_Check_Africa, function Trig_Check_Africa_Actions )
endfunction
function Trig_Check_Europe_Func029001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0087) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Europe_Func029002 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0087), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Europe_Func030001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0072) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Europe_Func030002 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0072), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Europe_Func031001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0074) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Europe_Func031002 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0074), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Europe_Func032001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0058) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Europe_Func032002 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0058), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Europe_Func033001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0080) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Europe_Func033002 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0080), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Europe_Func034001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0086) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Europe_Func034002 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0086), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Europe_Func035001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0062) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Europe_Func035002 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0062), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Europe_Conditions takes nothing returns boolean
if ( not GetBooleanOr( Trig_Check_Europe_Func029001(), Trig_Check_Europe_Func029002() ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Check_Europe_Func030001(), Trig_Check_Europe_Func030002() ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Check_Europe_Func031001(), Trig_Check_Europe_Func031002() ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Check_Europe_Func032001(), Trig_Check_Europe_Func032002() ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Check_Europe_Func033001(), Trig_Check_Europe_Func033002() ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Check_Europe_Func034001(), Trig_Check_Europe_Func034002() ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Check_Europe_Func035001(), Trig_Check_Europe_Func035002() ) ) then
return false
endif
if ( not ( udg_EuropeAllyPaid != ConvertedPlayer(GetForLoopIndexB()) ) ) then
return false
endif
if ( not ( udg_EuropeComplete == false ) ) then
return false
endif
return true
endfunction
function Trig_Check_Europe_Func001001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0087) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Europe_Func002001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0072) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Europe_Func003001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0074) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Europe_Func004001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0058) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Europe_Func005001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0080) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Europe_Func006001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0086) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Europe_Func007001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0062) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Europe_Func008001 takes nothing returns boolean
return ( udg_EuropePlayerPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_Europe_Func010001001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0087), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Europe_Func010001002 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0087) != ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Europe_Func010001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_Europe_Func010001001(), Trig_Check_Europe_Func010001002() )
endfunction
function Trig_Check_Europe_Func011001001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0072), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Europe_Func011001002 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0072) != ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Europe_Func011001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_Europe_Func011001001(), Trig_Check_Europe_Func011001002() )
endfunction
function Trig_Check_Europe_Func012001001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0074), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Europe_Func012001002 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0074) != ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Europe_Func012001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_Europe_Func012001001(), Trig_Check_Europe_Func012001002() )
endfunction
function Trig_Check_Europe_Func013001001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0058), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Europe_Func013001002 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0058) != ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Europe_Func013001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_Europe_Func013001001(), Trig_Check_Europe_Func013001002() )
endfunction
function Trig_Check_Europe_Func014001001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0080), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Europe_Func014001002 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0080) != ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Europe_Func014001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_Europe_Func014001001(), Trig_Check_Europe_Func014001002() )
endfunction
function Trig_Check_Europe_Func015001001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0086), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Europe_Func015001002 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0086) != ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Europe_Func015001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_Europe_Func015001001(), Trig_Check_Europe_Func015001002() )
endfunction
function Trig_Check_Europe_Func016001001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0062), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Europe_Func016001002 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0062) != ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Europe_Func016001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_Europe_Func016001001(), Trig_Check_Europe_Func016001002() )
endfunction
function Trig_Check_Europe_Func017001 takes nothing returns boolean
return ( udg_EuropeAllyPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_Europe_Func022001 takes nothing returns boolean
return ( udg_EuropeAllyPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_Europe_Func024001 takes nothing returns boolean
return ( udg_EuropeAllyPaid != Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_Europe_Func026001 takes nothing returns boolean
return ( udg_EuropeAllyPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_Europe_Func028001 takes nothing returns boolean
return ( udg_EuropeAllyPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_Europe_Actions takes nothing returns nothing
if ( Trig_Check_Europe_Func001001() ) then
set udg_EuropePlayerPaid = ConvertedPlayer(GetForLoopIndexB())
else
call DoNothing( )
endif
if ( Trig_Check_Europe_Func002001() ) then
set udg_EuropePlayerPaid = ConvertedPlayer(GetForLoopIndexB())
else
call DoNothing( )
endif
if ( Trig_Check_Europe_Func003001() ) then
set udg_EuropePlayerPaid = ConvertedPlayer(GetForLoopIndexB())
else
call DoNothing( )
endif
if ( Trig_Check_Europe_Func004001() ) then
set udg_EuropePlayerPaid = ConvertedPlayer(GetForLoopIndexB())
else
call DoNothing( )
endif
if ( Trig_Check_Europe_Func005001() ) then
set udg_EuropePlayerPaid = ConvertedPlayer(GetForLoopIndexB())
else
call DoNothing( )
endif
if ( Trig_Check_Europe_Func006001() ) then
set udg_EuropePlayerPaid = ConvertedPlayer(GetForLoopIndexB())
else
call DoNothing( )
endif
if ( Trig_Check_Europe_Func007001() ) then
set udg_EuropePlayerPaid = ConvertedPlayer(GetForLoopIndexB())
else
call DoNothing( )
endif
if ( Trig_Check_Europe_Func008001() ) then
return
else
call DoNothing( )
endif
call CommentString( "NEW" )
if ( Trig_Check_Europe_Func010001() ) then
set udg_EuropeAllyPaid = GetOwningPlayer(gg_unit_hbar_0087)
else
call DoNothing( )
endif
if ( Trig_Check_Europe_Func011001() ) then
set udg_EuropeAllyPaid = GetOwningPlayer(gg_unit_hbar_0072)
else
call DoNothing( )
endif
if ( Trig_Check_Europe_Func012001() ) then
set udg_EuropeAllyPaid = GetOwningPlayer(gg_unit_hbar_0074)
else
call DoNothing( )
endif
if ( Trig_Check_Europe_Func013001() ) then
set udg_EuropeAllyPaid = GetOwningPlayer(gg_unit_hbar_0058)
else
call DoNothing( )
endif
if ( Trig_Check_Europe_Func014001() ) then
set udg_EuropeAllyPaid = GetOwningPlayer(gg_unit_hbar_0080)
else
call DoNothing( )
endif
if ( Trig_Check_Europe_Func015001() ) then
set udg_EuropeAllyPaid = GetOwningPlayer(gg_unit_hbar_0086)
else
call DoNothing( )
endif
if ( Trig_Check_Europe_Func016001() ) then
set udg_EuropeAllyPaid = GetOwningPlayer(gg_unit_hbar_0062)
else
call DoNothing( )
endif
if ( Trig_Check_Europe_Func017001() ) then
set udg_EuropeComplete = true
else
call DoNothing( )
endif
call CommentString( "BONUSES - For odd amounts, this player gets more of the created units, his Ally gets more of the Gold!" )
call CommentString( "BONUSES - Of course, if no Ally is sharing control, this player gets all bonuses!" )
call CommentString( "BONUSES - Europe - 5 Infantry and 4 Gold total! TOTAL BONUS = 9" )
call CreateNUnitsAtLoc( 3, 'hrif', ConvertedPlayer(GetForLoopIndexB()), GetRectCenter(gg_rct_Europe_Spawn), bj_UNIT_FACING )
if ( Trig_Check_Europe_Func022001() ) then
call CreateNUnitsAtLoc( 2, 'hrif', ConvertedPlayer(GetForLoopIndexB()), GetRectCenter(gg_rct_Europe_Spawn), bj_UNIT_FACING )
else
call CreateNUnitsAtLoc( 2, 'hrif', udg_EuropeAllyPaid, GetRectCenter(gg_rct_Europe_Spawn), bj_UNIT_FACING )
endif
call DisplayTimedTextToForce( GetForceOfPlayer(ConvertedPlayer(GetForLoopIndexB())), 8.00, "TRIGSTR_375" )
if ( Trig_Check_Europe_Func024001() ) then
call DisplayTimedTextToForce( GetForceOfPlayer(udg_EuropeAllyPaid), 8.00, "TRIGSTR_381" )
else
call DoNothing( )
endif
call AdjustPlayerStateBJ( 1, ConvertedPlayer(GetForLoopIndexB()), PLAYER_STATE_RESOURCE_GOLD )
if ( Trig_Check_Europe_Func026001() ) then
call AdjustPlayerStateBJ( 3, ConvertedPlayer(GetForLoopIndexB()), PLAYER_STATE_RESOURCE_GOLD )
else
call AdjustPlayerStateBJ( 3, udg_EuropeAllyPaid, PLAYER_STATE_RESOURCE_GOLD )
endif
set udg_UnitsReceived[GetForLoopIndexB()] = ( udg_UnitsReceived[GetForLoopIndexB()] + 5 )
if ( Trig_Check_Europe_Func028001() ) then
set udg_UnitsReceived[GetForLoopIndexB()] = ( udg_UnitsReceived[GetForLoopIndexB()] + 5 )
else
set udg_UnitsReceived[GetConvertedPlayerId(udg_EuropeAllyPaid)] = ( udg_UnitsReceived[GetConvertedPlayerId(udg_EuropeAllyPaid)] + 5 )
endif
endfunction
function InitTrig_Check_Europe takes nothing returns nothing
set gg_trg_Check_Europe = CreateTrigger( )
call TriggerAddCondition( gg_trg_Check_Europe, Condition( function Trig_Check_Europe_Conditions ) )
call TriggerAddAction( gg_trg_Check_Europe, function Trig_Check_Europe_Actions )
endfunction
function Trig_Check_Australia_Func022001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0076) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Australia_Func022002 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0076), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Australia_Func023001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0079) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Australia_Func023002 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0079), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Australia_Func024001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0060) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Australia_Func024002 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0060), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Australia_Func025001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0068) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Australia_Func025002 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0068), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Australia_Conditions takes nothing returns boolean
if ( not GetBooleanOr( Trig_Check_Australia_Func022001(), Trig_Check_Australia_Func022002() ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Check_Australia_Func023001(), Trig_Check_Australia_Func023002() ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Check_Australia_Func024001(), Trig_Check_Australia_Func024002() ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Check_Australia_Func025001(), Trig_Check_Australia_Func025002() ) ) then
return false
endif
if ( not ( udg_AustAllyPaid != ConvertedPlayer(GetForLoopIndexB()) ) ) then
return false
endif
if ( not ( udg_AustComplete == false ) ) then
return false
endif
return true
endfunction
function Trig_Check_Australia_Func002001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0076) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Australia_Func003001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0079) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Australia_Func004001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0060) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Australia_Func005001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0068) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Australia_Func006001 takes nothing returns boolean
return ( udg_AustPlayerPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_Australia_Func008001001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0076), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Australia_Func008001002 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0076) != ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Australia_Func008001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_Australia_Func008001001(), Trig_Check_Australia_Func008001002() )
endfunction
function Trig_Check_Australia_Func009001001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0079), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Australia_Func009001002 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0079) != ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Australia_Func009001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_Australia_Func009001001(), Trig_Check_Australia_Func009001002() )
endfunction
function Trig_Check_Australia_Func010001001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0060), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Australia_Func010001002 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0060) != ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Australia_Func010001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_Australia_Func010001001(), Trig_Check_Australia_Func010001002() )
endfunction
function Trig_Check_Australia_Func011001001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0068), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Australia_Func011001002 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0068) != ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Australia_Func011001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_Australia_Func011001001(), Trig_Check_Australia_Func011001002() )
endfunction
function Trig_Check_Australia_Func012001 takes nothing returns boolean
return ( udg_AustAllyPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_Australia_Func015001 takes nothing returns boolean
return ( udg_AustAllyPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_Australia_Func017001 takes nothing returns boolean
return ( udg_AustAllyPaid != Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_Australia_Func019001 takes nothing returns boolean
return ( udg_AustAllyPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_Australia_Func021001 takes nothing returns boolean
return ( udg_AustAllyPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_Australia_Actions takes nothing returns nothing
call CommentString( "NEW" )
if ( Trig_Check_Australia_Func002001() ) then
set udg_AustPlayerPaid = ConvertedPlayer(GetForLoopIndexB())
else
call DoNothing( )
endif
if ( Trig_Check_Australia_Func003001() ) then
set udg_AustPlayerPaid = ConvertedPlayer(GetForLoopIndexB())
else
call DoNothing( )
endif
if ( Trig_Check_Australia_Func004001() ) then
set udg_AustPlayerPaid = ConvertedPlayer(GetForLoopIndexB())
else
call DoNothing( )
endif
if ( Trig_Check_Australia_Func005001() ) then
set udg_AustPlayerPaid = ConvertedPlayer(GetForLoopIndexB())
else
call DoNothing( )
endif
if ( Trig_Check_Australia_Func006001() ) then
return
else
call DoNothing( )
endif
call CommentString( "NEW" )
if ( Trig_Check_Australia_Func008001() ) then
set udg_AustAllyPaid = GetOwningPlayer(gg_unit_hbar_0076)
else
call DoNothing( )
endif
if ( Trig_Check_Australia_Func009001() ) then
set udg_AustAllyPaid = GetOwningPlayer(gg_unit_hbar_0079)
else
call DoNothing( )
endif
if ( Trig_Check_Australia_Func010001() ) then
set udg_AustAllyPaid = GetOwningPlayer(gg_unit_hbar_0060)
else
call DoNothing( )
endif
if ( Trig_Check_Australia_Func011001() ) then
set udg_AustAllyPaid = GetOwningPlayer(gg_unit_hbar_0068)
else
call DoNothing( )
endif
if ( Trig_Check_Australia_Func012001() ) then
set udg_AustComplete = true
else
call DoNothing( )
endif
call CommentString( "BONUSES - Australia - 2 Infantry and 2 Gold total! TOTAL BONUS = 4" )
call CreateNUnitsAtLoc( 1, 'hrif', ConvertedPlayer(GetForLoopIndexB()), GetRectCenter(gg_rct_Australia_Spawn), bj_UNIT_FACING )
if ( Trig_Check_Australia_Func015001() ) then
call CreateNUnitsAtLoc( 1, 'hrif', ConvertedPlayer(GetForLoopIndexB()), GetRectCenter(gg_rct_Australia_Spawn), bj_UNIT_FACING )
else
call CreateNUnitsAtLoc( 1, 'hrif', udg_AustAllyPaid, GetRectCenter(gg_rct_Australia_Spawn), bj_UNIT_FACING )
endif
call DisplayTimedTextToForce( GetForceOfPlayer(ConvertedPlayer(GetForLoopIndexB())), 8.00, "TRIGSTR_344" )
if ( Trig_Check_Australia_Func017001() ) then
call DisplayTimedTextToForce( GetForceOfPlayer(udg_AustAllyPaid), 8.00, "TRIGSTR_350" )
else
call DoNothing( )
endif
call AdjustPlayerStateBJ( 1, ConvertedPlayer(GetForLoopIndexB()), PLAYER_STATE_RESOURCE_GOLD )
if ( Trig_Check_Australia_Func019001() ) then
call AdjustPlayerStateBJ( 1, ConvertedPlayer(GetForLoopIndexB()), PLAYER_STATE_RESOURCE_GOLD )
else
call AdjustPlayerStateBJ( 1, udg_AustAllyPaid, PLAYER_STATE_RESOURCE_GOLD )
endif
set udg_UnitsReceived[GetForLoopIndexB()] = ( udg_UnitsReceived[GetForLoopIndexB()] + 2 )
if ( Trig_Check_Australia_Func021001() ) then
set udg_UnitsReceived[GetForLoopIndexB()] = ( udg_UnitsReceived[GetForLoopIndexB()] + 2 )
else
set udg_UnitsReceived[GetConvertedPlayerId(udg_AustAllyPaid)] = ( udg_UnitsReceived[GetConvertedPlayerId(udg_AustAllyPaid)] + 2 )
endif
endfunction
function InitTrig_Check_Australia takes nothing returns nothing
set gg_trg_Check_Australia = CreateTrigger( )
call TriggerAddCondition( gg_trg_Check_Australia, Condition( function Trig_Check_Australia_Conditions ) )
call TriggerAddAction( gg_trg_Check_Australia, function Trig_Check_Australia_Actions )
endfunction
function Trig_Check_Asia_Func039001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0082) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Asia_Func039002 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0082), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Asia_Func040001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0084) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Asia_Func040002 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0084), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Asia_Func041001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0056) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Asia_Func041002 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0056), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Asia_Func042001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0088) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Asia_Func042002 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0088), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Asia_Func043001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0073) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Asia_Func043002 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0073), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Asia_Func044001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0173) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Asia_Func044002 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0173), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Asia_Func045001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0085) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Asia_Func045002 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0085), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Asia_Func046001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0061) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Asia_Func046002 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0061), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Asia_Func047001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0089) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Asia_Func047002 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0089), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Asia_Func048001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0067) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Asia_Func048002 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0067), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Asia_Func049001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0004) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Asia_Func049002 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0004), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Asia_Func050001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0055) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Asia_Func050002 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0055), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Asia_Conditions takes nothing returns boolean
if ( not GetBooleanOr( Trig_Check_Asia_Func039001(), Trig_Check_Asia_Func039002() ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Check_Asia_Func040001(), Trig_Check_Asia_Func040002() ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Check_Asia_Func041001(), Trig_Check_Asia_Func041002() ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Check_Asia_Func042001(), Trig_Check_Asia_Func042002() ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Check_Asia_Func043001(), Trig_Check_Asia_Func043002() ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Check_Asia_Func044001(), Trig_Check_Asia_Func044002() ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Check_Asia_Func045001(), Trig_Check_Asia_Func045002() ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Check_Asia_Func046001(), Trig_Check_Asia_Func046002() ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Check_Asia_Func047001(), Trig_Check_Asia_Func047002() ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Check_Asia_Func048001(), Trig_Check_Asia_Func048002() ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Check_Asia_Func049001(), Trig_Check_Asia_Func049002() ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Check_Asia_Func050001(), Trig_Check_Asia_Func050002() ) ) then
return false
endif
if ( not ( udg_AsiaAllyPaid != ConvertedPlayer(GetForLoopIndexB()) ) ) then
return false
endif
if ( not ( udg_AsiaComplete == false ) ) then
return false
endif
return true
endfunction
function Trig_Check_Asia_Func001001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0082) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Asia_Func002001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0084) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Asia_Func003001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0056) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Asia_Func004001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0088) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Asia_Func005001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0073) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Asia_Func006001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0173) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Asia_Func007001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0085) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Asia_Func008001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0061) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Asia_Func009001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0089) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Asia_Func010001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0067) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Asia_Func011001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0004) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Asia_Func012001 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0055) == ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Asia_Func013001 takes nothing returns boolean
return ( udg_AsiaPlayerPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_Asia_Func015001001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0082), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Asia_Func015001002 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0082) != ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Asia_Func015001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_Asia_Func015001001(), Trig_Check_Asia_Func015001002() )
endfunction
function Trig_Check_Asia_Func016001001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0084), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Asia_Func016001002 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0084) != ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Asia_Func016001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_Asia_Func016001001(), Trig_Check_Asia_Func016001002() )
endfunction
function Trig_Check_Asia_Func017001001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0056), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Asia_Func017001002 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0056) != ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Asia_Func017001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_Asia_Func017001001(), Trig_Check_Asia_Func017001002() )
endfunction
function Trig_Check_Asia_Func018001001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0088), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Asia_Func018001002 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0088) != ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Asia_Func018001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_Asia_Func018001001(), Trig_Check_Asia_Func018001002() )
endfunction
function Trig_Check_Asia_Func019001001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0073), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Asia_Func019001002 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0073) != ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Asia_Func019001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_Asia_Func019001001(), Trig_Check_Asia_Func019001002() )
endfunction
function Trig_Check_Asia_Func020001001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0173), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Asia_Func020001002 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0173) != ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Asia_Func020001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_Asia_Func020001001(), Trig_Check_Asia_Func020001002() )
endfunction
function Trig_Check_Asia_Func021001001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0085), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Asia_Func021001002 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0085) != ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Asia_Func021001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_Asia_Func021001001(), Trig_Check_Asia_Func021001002() )
endfunction
function Trig_Check_Asia_Func022001001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0061), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Asia_Func022001002 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0061) != ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Asia_Func022001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_Asia_Func022001001(), Trig_Check_Asia_Func022001002() )
endfunction
function Trig_Check_Asia_Func023001001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0089), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Asia_Func023001002 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0089) != ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Asia_Func023001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_Asia_Func023001001(), Trig_Check_Asia_Func023001002() )
endfunction
function Trig_Check_Asia_Func024001001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0067), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Asia_Func024001002 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0067) != ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Asia_Func024001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_Asia_Func024001001(), Trig_Check_Asia_Func024001002() )
endfunction
function Trig_Check_Asia_Func025001001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0004), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Asia_Func025001002 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0004) != ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Asia_Func025001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_Asia_Func025001001(), Trig_Check_Asia_Func025001002() )
endfunction
function Trig_Check_Asia_Func026001001 takes nothing returns boolean
return ( IsPlayerAlly(GetOwningPlayer(gg_unit_hbar_0055), ConvertedPlayer(GetForLoopIndexB())) == true )
endfunction
function Trig_Check_Asia_Func026001002 takes nothing returns boolean
return ( GetOwningPlayer(gg_unit_hbar_0055) != ConvertedPlayer(GetForLoopIndexB()) )
endfunction
function Trig_Check_Asia_Func026001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_Asia_Func026001001(), Trig_Check_Asia_Func026001002() )
endfunction
function Trig_Check_Asia_Func027001 takes nothing returns boolean
return ( udg_AsiaAllyPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_Asia_Func032001 takes nothing returns boolean
return ( udg_AsiaAllyPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_Asia_Func034001 takes nothing returns boolean
return ( udg_AsiaAllyPaid != Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_Asia_Func036001 takes nothing returns boolean
return ( udg_AsiaAllyPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_Asia_Func038001 takes nothing returns boolean
return ( udg_AsiaAllyPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_Asia_Actions takes nothing returns nothing
if ( Trig_Check_Asia_Func001001() ) then
set udg_AsiaPlayerPaid = ConvertedPlayer(GetForLoopIndexB())
else
call DoNothing( )
endif
if ( Trig_Check_Asia_Func002001() ) then
set udg_AsiaPlayerPaid = ConvertedPlayer(GetForLoopIndexB())
else
call DoNothing( )
endif
if ( Trig_Check_Asia_Func003001() ) then
set udg_AsiaPlayerPaid = ConvertedPlayer(GetForLoopIndexB())
else
call DoNothing( )
endif
if ( Trig_Check_Asia_Func004001() ) then
set udg_AsiaPlayerPaid = ConvertedPlayer(GetForLoopIndexB())
else
call DoNothing( )
endif
if ( Trig_Check_Asia_Func005001() ) then
set udg_AsiaPlayerPaid = ConvertedPlayer(GetForLoopIndexB())
else
call DoNothing( )
endif
if ( Trig_Check_Asia_Func006001() ) then
set udg_AsiaPlayerPaid = ConvertedPlayer(GetForLoopIndexB())
else
call DoNothing( )
endif
if ( Trig_Check_Asia_Func007001() ) then
set udg_AsiaPlayerPaid = ConvertedPlayer(GetForLoopIndexB())
else
call DoNothing( )
endif
if ( Trig_Check_Asia_Func008001() ) then
set udg_AsiaPlayerPaid = ConvertedPlayer(GetForLoopIndexB())
else
call DoNothing( )
endif
if ( Trig_Check_Asia_Func009001() ) then
set udg_AsiaPlayerPaid = ConvertedPlayer(GetForLoopIndexB())
else
call DoNothing( )
endif
if ( Trig_Check_Asia_Func010001() ) then
set udg_AsiaPlayerPaid = ConvertedPlayer(GetForLoopIndexB())
else
call DoNothing( )
endif
if ( Trig_Check_Asia_Func011001() ) then
set udg_AsiaPlayerPaid = ConvertedPlayer(GetForLoopIndexB())
else
call DoNothing( )
endif
if ( Trig_Check_Asia_Func012001() ) then
set udg_AsiaPlayerPaid = ConvertedPlayer(GetForLoopIndexB())
else
call DoNothing( )
endif
if ( Trig_Check_Asia_Func013001() ) then
return
else
call DoNothing( )
endif
call CommentString( "NEW" )
if ( Trig_Check_Asia_Func015001() ) then
set udg_AsiaAllyPaid = GetOwningPlayer(gg_unit_hbar_0082)
else
call DoNothing( )
endif
if ( Trig_Check_Asia_Func016001() ) then
set udg_AsiaAllyPaid = GetOwningPlayer(gg_unit_hbar_0084)
else
call DoNothing( )
endif
if ( Trig_Check_Asia_Func017001() ) then
set udg_AsiaAllyPaid = GetOwningPlayer(gg_unit_hbar_0056)
else
call DoNothing( )
endif
if ( Trig_Check_Asia_Func018001() ) then
set udg_AsiaAllyPaid = GetOwningPlayer(gg_unit_hbar_0088)
else
call DoNothing( )
endif
if ( Trig_Check_Asia_Func019001() ) then
set udg_AsiaAllyPaid = GetOwningPlayer(gg_unit_hbar_0073)
else
call DoNothing( )
endif
if ( Trig_Check_Asia_Func020001() ) then
set udg_AsiaAllyPaid = GetOwningPlayer(gg_unit_hbar_0173)
else
call DoNothing( )
endif
if ( Trig_Check_Asia_Func021001() ) then
set udg_AsiaAllyPaid = GetOwningPlayer(gg_unit_hbar_0085)
else
call DoNothing( )
endif
if ( Trig_Check_Asia_Func022001() ) then
set udg_AsiaAllyPaid = GetOwningPlayer(gg_unit_hbar_0061)
else
call DoNothing( )
endif
if ( Trig_Check_Asia_Func023001() ) then
set udg_AsiaAllyPaid = GetOwningPlayer(gg_unit_hbar_0089)
else
call DoNothing( )
endif
if ( Trig_Check_Asia_Func024001() ) then
set udg_AsiaAllyPaid = GetOwningPlayer(gg_unit_hbar_0067)
else
call DoNothing( )
endif
if ( Trig_Check_Asia_Func025001() ) then
set udg_AsiaAllyPaid = GetOwningPlayer(gg_unit_hbar_0004)
else
call DoNothing( )
endif
if ( Trig_Check_Asia_Func026001() ) then
set udg_AsiaAllyPaid = GetOwningPlayer(gg_unit_hbar_0055)
else
call DoNothing( )
endif
if ( Trig_Check_Asia_Func027001() ) then
set udg_AsiaComplete = true
else
call DoNothing( )
endif
call CommentString( "BONUSES - For odd amounts, this player gets more of the created units, his Ally gets more of the Gold!" )
call CommentString( "BONUSES - Of course, if no Ally is sharing control, this player gets all bonuses!" )
call CommentString( "BONUSES - Asia - 7 Infantry and 6 Gold total! TOTAL BONUS = 13" )
call CreateNUnitsAtLoc( 4, 'hrif', ConvertedPlayer(GetForLoopIndexB()), GetRectCenter(gg_rct_Asia_Spawn), bj_UNIT_FACING )
if ( Trig_Check_Asia_Func032001() ) then
call CreateNUnitsAtLoc( 3, 'hrif', ConvertedPlayer(GetForLoopIndexB()), GetRectCenter(gg_rct_Asia_Spawn), bj_UNIT_FACING )
else
call CreateNUnitsAtLoc( 3, 'hrif', udg_AsiaAllyPaid, GetRectCenter(gg_rct_Asia_Spawn), bj_UNIT_FACING )
endif
call DisplayTimedTextToForce( GetForceOfPlayer(ConvertedPlayer(GetForLoopIndexB())), 8.00, "TRIGSTR_384" )
if ( Trig_Check_Asia_Func034001() ) then
call DisplayTimedTextToForce( GetForceOfPlayer(udg_AsiaAllyPaid), 8.00, "TRIGSTR_390" )
else
call DoNothing( )
endif
call AdjustPlayerStateBJ( 2, ConvertedPlayer(GetForLoopIndexB()), PLAYER_STATE_RESOURCE_GOLD )
if ( Trig_Check_Asia_Func036001() ) then
call AdjustPlayerStateBJ( 4, ConvertedPlayer(GetForLoopIndexB()), PLAYER_STATE_RESOURCE_GOLD )
else
call AdjustPlayerStateBJ( 4, udg_AsiaAllyPaid, PLAYER_STATE_RESOURCE_GOLD )
endif
set udg_UnitsReceived[GetForLoopIndexB()] = ( udg_UnitsReceived[GetForLoopIndexB()] + 6 )
if ( Trig_Check_Asia_Func038001() ) then
set udg_UnitsReceived[GetForLoopIndexB()] = ( udg_UnitsReceived[GetForLoopIndexB()] + 7 )
else
set udg_UnitsReceived[GetConvertedPlayerId(udg_AsiaAllyPaid)] = ( udg_UnitsReceived[GetConvertedPlayerId(udg_AsiaAllyPaid)] + 7 )
endif
endfunction
function InitTrig_Check_Asia takes nothing returns nothing
set gg_trg_Check_Asia = CreateTrigger( )
call TriggerAddCondition( gg_trg_Check_Asia, Condition( function Trig_Check_Asia_Conditions ) )
call TriggerAddAction( gg_trg_Check_Asia, function Trig_Check_Asia_Actions )
endfunction
function Trig_Check_West_Empire_Conditions takes nothing returns boolean
if ( not ( udg_NAPlayerPaid != Player(bj_PLAYER_NEUTRAL_VICTIM) ) ) then
return false
endif
if ( not ( udg_SAPlayerPaid != Player(bj_PLAYER_NEUTRAL_VICTIM) ) ) then
return false
endif
if ( not ( IsPlayerAlly(udg_NAPlayerPaid, udg_SAPlayerPaid) == true ) ) then
return false
endif
return true
endfunction
function Trig_Check_West_Empire_Func005001001 takes nothing returns boolean
return ( udg_NAAllyPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_West_Empire_Func005001002 takes nothing returns boolean
return ( udg_SAPlayerPaid != udg_NAPlayerPaid )
endfunction
function Trig_Check_West_Empire_Func005001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_West_Empire_Func005001001(), Trig_Check_West_Empire_Func005001002() )
endfunction
function Trig_Check_West_Empire_Func006001001 takes nothing returns boolean
return ( udg_NAAllyPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_West_Empire_Func006001002 takes nothing returns boolean
return ( udg_SAAllyPaid != Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_West_Empire_Func006001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_West_Empire_Func006001001(), Trig_Check_West_Empire_Func006001002() )
endfunction
function Trig_Check_West_Empire_Func009001 takes nothing returns boolean
return ( udg_NAAllyPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_West_Empire_Func011001 takes nothing returns boolean
return ( udg_NAAllyPaid != Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_West_Empire_Func013001 takes nothing returns boolean
return ( udg_NAAllyPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_West_Empire_Actions takes nothing returns nothing
call CommentString( "BONUSES - For odd amounts, this player gets more of the created units, his Ally gets more of the Gold!" )
call CommentString( "BONUSES - Of course, if no Ally is sharing control, this player gets all bonuses!" )
call CommentString( "BONUSES - West Empire - 2 Cavalry! TOTAL BONUS = 10" )
call CommentString( "" )
if ( Trig_Check_West_Empire_Func005001() ) then
set udg_NAAllyPaid = udg_SAPlayerPaid
else
call DoNothing( )
endif
if ( Trig_Check_West_Empire_Func006001() ) then
set udg_NAAllyPaid = udg_SAAllyPaid
else
call DoNothing( )
endif
call CommentString( "" )
call CreateNUnitsAtLoc( 1, 'hkni', udg_NAPlayerPaid, GetRectCenter(gg_rct_North_America_Spawn), bj_UNIT_FACING )
if ( Trig_Check_West_Empire_Func009001() ) then
call CreateNUnitsAtLoc( 1, 'hkni', udg_NAPlayerPaid, GetRectCenter(gg_rct_North_America_Spawn), bj_UNIT_FACING )
else
call CreateNUnitsAtLoc( 1, 'hkni', udg_NAAllyPaid, GetRectCenter(gg_rct_North_America_Spawn), bj_UNIT_FACING )
endif
call DisplayTimedTextToForce( GetForceOfPlayer(udg_NAPlayerPaid), 8.00, "TRIGSTR_393" )
if ( Trig_Check_West_Empire_Func011001() ) then
call DisplayTimedTextToForce( GetForceOfPlayer(udg_NAAllyPaid), 8.00, "TRIGSTR_400" )
else
call DoNothing( )
endif
set udg_UnitsReceived[GetConvertedPlayerId(udg_NAPlayerPaid)] = ( udg_UnitsReceived[GetConvertedPlayerId(udg_NAPlayerPaid)] + 5 )
if ( Trig_Check_West_Empire_Func013001() ) then
set udg_UnitsReceived[GetConvertedPlayerId(udg_NAPlayerPaid)] = ( udg_UnitsReceived[GetConvertedPlayerId(udg_NAPlayerPaid)] + 5 )
else
set udg_UnitsReceived[GetConvertedPlayerId(udg_NAAllyPaid)] = ( udg_UnitsReceived[GetConvertedPlayerId(udg_NAAllyPaid)] + 5 )
endif
endfunction
function InitTrig_Check_West_Empire takes nothing returns nothing
set gg_trg_Check_West_Empire = CreateTrigger( )
call TriggerAddCondition( gg_trg_Check_West_Empire, Condition( function Trig_Check_West_Empire_Conditions ) )
call TriggerAddAction( gg_trg_Check_West_Empire, function Trig_Check_West_Empire_Actions )
endfunction
function Trig_Check_AfroEuropean_Empire_Conditions takes nothing returns boolean
if ( not ( udg_EuropePlayerPaid != Player(bj_PLAYER_NEUTRAL_VICTIM) ) ) then
return false
endif
if ( not ( udg_AfricaPlayerPaid != Player(bj_PLAYER_NEUTRAL_VICTIM) ) ) then
return false
endif
if ( not ( IsPlayerAlly(udg_EuropePlayerPaid, udg_AfricaPlayerPaid) == true ) ) then
return false
endif
return true
endfunction
function Trig_Check_AfroEuropean_Empire_Func005001001 takes nothing returns boolean
return ( udg_EuropeAllyPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_AfroEuropean_Empire_Func005001002 takes nothing returns boolean
return ( udg_AfricaPlayerPaid != udg_EuropePlayerPaid )
endfunction
function Trig_Check_AfroEuropean_Empire_Func005001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_AfroEuropean_Empire_Func005001001(), Trig_Check_AfroEuropean_Empire_Func005001002() )
endfunction
function Trig_Check_AfroEuropean_Empire_Func006001001 takes nothing returns boolean
return ( udg_EuropeAllyPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_AfroEuropean_Empire_Func006001002 takes nothing returns boolean
return ( udg_AfricaAllyPaid != Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_AfroEuropean_Empire_Func006001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_AfroEuropean_Empire_Func006001001(), Trig_Check_AfroEuropean_Empire_Func006001002() )
endfunction
function Trig_Check_AfroEuropean_Empire_Func009001 takes nothing returns boolean
return ( udg_EuropeAllyPaid != Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_AfroEuropean_Empire_Func011001 takes nothing returns boolean
return ( udg_PayAEEmpireAlt == true )
endfunction
function Trig_Check_AfroEuropean_Empire_Actions takes nothing returns nothing
call CommentString( "BONUSES - For odd amounts, this player gets more of the created units, his Ally gets more of the Gold!" )
call CommentString( "BONUSES - Of course, if no Ally is sharing control, this player gets all bonuses!" )
call CommentString( "BONUSES - AfroEuropean Empire - 1 Cavalry and 1 Artilery! TOTAL BONUS = 20" )
call CommentString( "" )
if ( Trig_Check_AfroEuropean_Empire_Func005001() ) then
set udg_EuropeAllyPaid = udg_AfricaPlayerPaid
else
call DoNothing( )
endif
if ( Trig_Check_AfroEuropean_Empire_Func006001() ) then
set udg_EuropeAllyPaid = udg_AfricaAllyPaid
else
call DoNothing( )
endif
call CommentString( "" )
call DisplayTimedTextToForce( GetForceOfPlayer(udg_EuropePlayerPaid), 8.00, "TRIGSTR_434" )
if ( Trig_Check_AfroEuropean_Empire_Func009001() ) then
call DisplayTimedTextToForce( GetForceOfPlayer(udg_EuropeAllyPaid), 8.00, "TRIGSTR_435" )
else
call DoNothing( )
endif
call CommentString( "" )
if ( Trig_Check_AfroEuropean_Empire_Func011001() ) then
call TriggerExecute( gg_trg_Pay_AEEmpire_Alt )
else
call TriggerExecute( gg_trg_Pay_AEEmpire )
endif
endfunction
function InitTrig_Check_AfroEuropean_Empire takes nothing returns nothing
set gg_trg_Check_AfroEuropean_Empire = CreateTrigger( )
call TriggerAddCondition( gg_trg_Check_AfroEuropean_Empire, Condition( function Trig_Check_AfroEuropean_Empire_Conditions ) )
call TriggerAddAction( gg_trg_Check_AfroEuropean_Empire, function Trig_Check_AfroEuropean_Empire_Actions )
endfunction
function Trig_Pay_AEEmpire_Func002001 takes nothing returns boolean
return ( udg_EuropeAllyPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Pay_AEEmpire_Func004001 takes nothing returns boolean
return ( udg_EuropeAllyPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Pay_AEEmpire_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'hmtt', udg_EuropePlayerPaid, GetRectCenter(gg_rct_Europe_Spawn), bj_UNIT_FACING )
if ( Trig_Pay_AEEmpire_Func002001() ) then
call CreateNUnitsAtLoc( 1, 'hkni', udg_EuropePlayerPaid, GetRectCenter(gg_rct_Europe_Spawn), bj_UNIT_FACING )
else
call CreateNUnitsAtLoc( 1, 'hkni', udg_EuropeAllyPaid, GetRectCenter(gg_rct_Europe_Spawn), bj_UNIT_FACING )
endif
set udg_UnitsReceived[GetConvertedPlayerId(udg_EuropePlayerPaid)] = ( udg_UnitsReceived[GetConvertedPlayerId(udg_EuropePlayerPaid)] + 15 )
if ( Trig_Pay_AEEmpire_Func004001() ) then
set udg_UnitsReceived[GetConvertedPlayerId(udg_EuropePlayerPaid)] = ( udg_UnitsReceived[GetConvertedPlayerId(udg_EuropePlayerPaid)] + 5 )
else
set udg_UnitsReceived[GetConvertedPlayerId(udg_EuropeAllyPaid)] = ( udg_UnitsReceived[GetConvertedPlayerId(udg_EuropeAllyPaid)] + 5 )
endif
set udg_PayAEEmpireAlt = true
endfunction
function InitTrig_Pay_AEEmpire takes nothing returns nothing
set gg_trg_Pay_AEEmpire = CreateTrigger( )
call TriggerAddAction( gg_trg_Pay_AEEmpire, function Trig_Pay_AEEmpire_Actions )
endfunction
function Trig_Pay_AEEmpire_Alt_Func002001 takes nothing returns boolean
return ( udg_EuropeAllyPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Pay_AEEmpire_Alt_Func004001 takes nothing returns boolean
return ( udg_EuropeAllyPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Pay_AEEmpire_Alt_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'hkni', udg_EuropePlayerPaid, GetRectCenter(gg_rct_Europe_Spawn), bj_UNIT_FACING )
if ( Trig_Pay_AEEmpire_Alt_Func002001() ) then
call CreateNUnitsAtLoc( 1, 'hmtt', udg_EuropePlayerPaid, GetRectCenter(gg_rct_Europe_Spawn), bj_UNIT_FACING )
else
call CreateNUnitsAtLoc( 1, 'hmtt', udg_EuropeAllyPaid, GetRectCenter(gg_rct_Europe_Spawn), bj_UNIT_FACING )
endif
set udg_UnitsReceived[GetConvertedPlayerId(udg_EuropePlayerPaid)] = ( udg_UnitsReceived[GetConvertedPlayerId(udg_EuropePlayerPaid)] + 5 )
if ( Trig_Pay_AEEmpire_Alt_Func004001() ) then
set udg_UnitsReceived[GetConvertedPlayerId(udg_EuropePlayerPaid)] = ( udg_UnitsReceived[GetConvertedPlayerId(udg_EuropePlayerPaid)] + 15 )
else
set udg_UnitsReceived[GetConvertedPlayerId(udg_EuropeAllyPaid)] = ( udg_UnitsReceived[GetConvertedPlayerId(udg_EuropeAllyPaid)] + 15 )
endif
set udg_PayAEEmpireAlt = false
endfunction
function InitTrig_Pay_AEEmpire_Alt takes nothing returns nothing
set gg_trg_Pay_AEEmpire_Alt = CreateTrigger( )
call TriggerAddAction( gg_trg_Pay_AEEmpire_Alt, function Trig_Pay_AEEmpire_Alt_Actions )
endfunction
function Trig_Check_East_Empire_Conditions takes nothing returns boolean
if ( not ( udg_AsiaPlayerPaid != Player(bj_PLAYER_NEUTRAL_VICTIM) ) ) then
return false
endif
if ( not ( udg_AustPlayerPaid != Player(bj_PLAYER_NEUTRAL_VICTIM) ) ) then
return false
endif
if ( not ( IsPlayerAlly(udg_AsiaPlayerPaid, udg_AustPlayerPaid) == true ) ) then
return false
endif
return true
endfunction
function Trig_Check_East_Empire_Func005001001 takes nothing returns boolean
return ( udg_AsiaAllyPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_East_Empire_Func005001002 takes nothing returns boolean
return ( udg_AsiaPlayerPaid != udg_AsiaPlayerPaid )
endfunction
function Trig_Check_East_Empire_Func005001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_East_Empire_Func005001001(), Trig_Check_East_Empire_Func005001002() )
endfunction
function Trig_Check_East_Empire_Func006001001 takes nothing returns boolean
return ( udg_AsiaAllyPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_East_Empire_Func006001002 takes nothing returns boolean
return ( udg_AustAllyPaid != Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_East_Empire_Func006001 takes nothing returns boolean
return GetBooleanAnd( Trig_Check_East_Empire_Func006001001(), Trig_Check_East_Empire_Func006001002() )
endfunction
function Trig_Check_East_Empire_Func009001 takes nothing returns boolean
return ( udg_AsiaAllyPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_East_Empire_Func011001 takes nothing returns boolean
return ( udg_AsiaAllyPaid != Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_East_Empire_Func013001 takes nothing returns boolean
return ( udg_AsiaAllyPaid == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Check_East_Empire_Actions takes nothing returns nothing
call CommentString( "BONUSES - For odd amounts, this player gets more of the created units, his Ally gets more of the Gold!" )
call CommentString( "BONUSES - Of course, if no Ally is sharing control, this player gets all bonuses!" )
call CommentString( "BONUSES - East Empire - 2 Cavalry! TOTAL BONUS = 10" )
call CommentString( "" )
if ( Trig_Check_East_Empire_Func005001() ) then
set udg_AsiaAllyPaid = udg_AustPlayerPaid
else
call DoNothing( )
endif
if ( Trig_Check_East_Empire_Func006001() ) then
set udg_AsiaAllyPaid = udg_AustAllyPaid
else
call DoNothing( )
endif
call CommentString( "" )
call CreateNUnitsAtLoc( 1, 'hkni', udg_AsiaPlayerPaid, GetRectCenter(gg_rct_Asia_Spawn), bj_UNIT_FACING )
if ( Trig_Check_East_Empire_Func009001() ) then
call CreateNUnitsAtLoc( 1, 'hkni', udg_AsiaPlayerPaid, GetRectCenter(gg_rct_Asia_Spawn), bj_UNIT_FACING )
else
call CreateNUnitsAtLoc( 1, 'hkni', udg_AsiaAllyPaid, GetRectCenter(gg_rct_Asia_Spawn), bj_UNIT_FACING )
endif
call DisplayTimedTextToForce( GetForceOfPlayer(udg_AsiaPlayerPaid), 8.00, "TRIGSTR_403" )
if ( Trig_Check_East_Empire_Func011001() ) then
call DisplayTimedTextToForce( GetForceOfPlayer(udg_AsiaAllyPaid), 8.00, "TRIGSTR_417" )
else
call DoNothing( )
endif
set udg_UnitsReceived[GetConvertedPlayerId(udg_AsiaPlayerPaid)] = ( udg_UnitsReceived[GetConvertedPlayerId(udg_AsiaPlayerPaid)] + 5 )
if ( Trig_Check_East_Empire_Func013001() ) then
set udg_UnitsReceived[GetConvertedPlayerId(udg_AsiaPlayerPaid)] = ( udg_UnitsReceived[GetConvertedPlayerId(udg_AsiaPlayerPaid)] + 5 )
else
set udg_UnitsReceived[GetConvertedPlayerId(udg_AsiaAllyPaid)] = ( udg_UnitsReceived[GetConvertedPlayerId(udg_AsiaAllyPaid)] + 5 )
endif
endfunction
function InitTrig_Check_East_Empire takes nothing returns nothing
set gg_trg_Check_East_Empire = CreateTrigger( )
call TriggerAddCondition( gg_trg_Check_East_Empire, Condition( function Trig_Check_East_Empire_Conditions ) )
call TriggerAddAction( gg_trg_Check_East_Empire, function Trig_Check_East_Empire_Actions )
endfunction
function Trig_Start_Init_Func003003001 takes nothing returns boolean
return ( GetPlayerSlotState(ConvertedPlayer(GetForLoopIndexA())) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Start_Init_Func006003001 takes nothing returns boolean
return ( GetPlayerController(ConvertedPlayer(GetForLoopIndexA())) == MAP_CONTROL_USER )
endfunction
function Trig_Start_Init_Func034003001 takes nothing returns boolean
return ( GetPlayerController(ConvertedPlayer(GetForLoopIndexA())) == MAP_CONTROL_COMPUTER )
endfunction
function Trig_Start_Init_Func035001001 takes nothing returns boolean
return ( udg_TempVariable2 == 0 )
endfunction
function Trig_Start_Init_Func035001002 takes nothing returns boolean
return ( GetPlayerController(Player(11)) == MAP_CONTROL_COMPUTER )
endfunction
function Trig_Start_Init_Func035001 takes nothing returns boolean
return GetBooleanAnd( Trig_Start_Init_Func035001001(), Trig_Start_Init_Func035001002() )
endfunction
function Trig_Start_Init_Func035002003002001 takes nothing returns boolean
return ( ConvertedPlayer(GetForLoopIndexA()) != GetEnumPlayer() )
endfunction
function Trig_Start_Init_Func035002003002 takes nothing returns nothing
if ( Trig_Start_Init_Func035002003002001() ) then
call SetPlayerAllianceStateBJ( ConvertedPlayer(GetForLoopIndexA()), GetEnumPlayer(), bj_ALLIANCE_UNALLIED )
else
call DoNothing( )
endif
endfunction
function Trig_Start_Init_Func036001001 takes nothing returns boolean
return ( udg_TempVariable2 == 0 )
endfunction
function Trig_Start_Init_Func036001002 takes nothing returns boolean
return ( GetPlayerController(Player(11)) == MAP_CONTROL_COMPUTER )
endfunction
function Trig_Start_Init_Func036001 takes nothing returns boolean
return GetBooleanAnd( Trig_Start_Init_Func036001001(), Trig_Start_Init_Func036001002() )
endfunction
function Trig_Start_Init_Func038001001 takes nothing returns boolean
return ( udg_TempVariable2 == 0 )
endfunction
function Trig_Start_Init_Func038001002 takes nothing returns boolean
return ( GetPlayerController(Player(11)) == MAP_CONTROL_COMPUTER )
endfunction
function Trig_Start_Init_Func038001 takes nothing returns boolean
return GetBooleanAnd( Trig_Start_Init_Func038001001(), Trig_Start_Init_Func038001002() )
endfunction
function Trig_Start_Init_Func040001 takes nothing returns boolean
return ( udg_AlliesFound == true )
endfunction
function Trig_Start_Init_Func041001 takes nothing returns boolean
return ( udg_AlliesFound == true )
endfunction
function Trig_Start_Init_Func041002003001 takes nothing returns boolean
return ( GetPlayerController(ConvertedPlayer(GetForLoopIndexA())) == MAP_CONTROL_COMPUTER )
endfunction
function Trig_Start_Init_Func041002003002003001001 takes nothing returns boolean
return ( IsPlayerAlly(ConvertedPlayer(GetForLoopIndexB()), ConvertedPlayer(GetForLoopIndexA())) == true )
endfunction
function Trig_Start_Init_Func041002003002003001002001 takes nothing returns boolean
return ( ConvertedPlayer(GetForLoopIndexB()) != ConvertedPlayer(GetForLoopIndexA()) )
endfunction
function Trig_Start_Init_Func041002003002003001002002 takes nothing returns boolean
return ( udg_isPlaying[GetForLoopIndexB()] == true )
endfunction
function Trig_Start_Init_Func041002003002003001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Start_Init_Func041002003002003001002001(), Trig_Start_Init_Func041002003002003001002002() )
endfunction
function Trig_Start_Init_Func041002003002003001 takes nothing returns boolean
return GetBooleanAnd( Trig_Start_Init_Func041002003002003001001(), Trig_Start_Init_Func041002003002003001002() )
endfunction
function Trig_Start_Init_Actions takes nothing returns nothing
call FogEnableOff( )
call FogMaskEnableOff( )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Start_Init_Func003003001() ) then
set udg_isPlaying[GetForLoopIndexA()] = true
else
set udg_isPlaying[GetForLoopIndexA()] = false
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call CommentString( "MISC. INIT." )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set udg_AllyRequest[GetForLoopIndexA()] = 0
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Start_Init_Func006003001() ) then
set udg_NoHints[GetForLoopIndexA()] = false
else
set udg_NoHints[GetForLoopIndexA()] = true
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set udg_Hints[1] = "Join Clan Risk if you like to play Risk and are good."
set udg_Hints[2] = "Never try to team others.. it will backfire most likely."
set udg_Hints[3] = "Don't expand to fast.. taking stuff that you cannot hold."
set udg_Hints[4] = "Getting a continent will give you extra gold per turn."
set udg_Hints[5] = "Take advantage of areas on the map that have bottlenecks - place Infantry or Cavalry in front of Artilery near the entrance of the bottleneck!"
set udg_Hints[6] = "Use strategy.. knowing who and when to hit will help you win the game."
set udg_Hints[7] = "Remember, Artilery cannot target units within a minimum/close range. Keep Cavlary and/or Infantry near Artilery for defense of Artilery."
set udg_Hints[8] = "Always take into consideration when attacking a enemy base that their tower will weaken you."
set udg_Hints[9] = "Cavalry are the fastest moving units... sneak one 'around' enemy defensive positions to attack less defended Countries."
set udg_Hints[10] = "Stockpiling works... save gold so that you can mass build to defend a base."
set udg_Hints[11] = "Be cautious asia may give the most gold but its also hardest to defend."
set udg_Hints[12] = "Remember to deeply thank PrinceSanglant for making this 12 player ffa map."
call CommentString( "BONUS" )
set udg_Crates = GetDestructableLoc(gg_dest_LTcr_0783)
set udg_CrateBonusPlayer = Player(bj_PLAYER_NEUTRAL_VICTIM)
set udg_GameModeDesc[1] = "]M=TEAM Towers=Y"
set udg_GameModeDesc[2] = "]M=FFA Towers=Y"
set udg_GameModeDesc[3] = "]M=MIX Towers=Y"
set udg_GameModeDesc[4] = "]M=TEAM Towers=N"
set udg_GameModeDesc[5] = "]M=FFA Towers=N"
set udg_GameModeDesc[6] = "]M=MIX Towers=N"
call CommentString( "Check for Forced FFA 7 to 11 Players from start" )
call CommentString( "For this Mode, Player #'s 1 - 11 cannot be Computer Players AND Player #11 MUST be a Computer Player in Game Setup" )
set udg_TempVariable2 = 0
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 11
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Start_Init_Func034003001() ) then
set udg_TempVariable2 = 1
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
if ( Trig_Start_Init_Func035001() ) then
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call ForForce( GetPlayersAll(), function Trig_Start_Init_Func035002003002 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
else
call DoNothing( )
endif
if ( Trig_Start_Init_Func036001() ) then
call CustomDefeatBJ( Player(11), "TRIGSTR_959" )
else
call DoNothing( )
endif
call TriggerExecute( gg_trg_Set_Team )
if ( Trig_Start_Init_Func038001() ) then
set udg_AlliesFound = false
else
call DoNothing( )
endif
call CommentString( "Check for Forced FFA 7 to 11 Players from start" )
if ( Trig_Start_Init_Func040001() ) then
set udg_GameMode = 1
else
set udg_GameMode = 2
endif
if ( Trig_Start_Init_Func041001() ) then
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Start_Init_Func041002003001() ) then
set bj_forLoopBIndex = 1
set bj_forLoopBIndexEnd = 12
loop
exitwhen bj_forLoopBIndex > bj_forLoopBIndexEnd
if ( Trig_Start_Init_Func041002003002003001() ) then
set udg_GameMode = 3
else
call DoNothing( )
endif
set bj_forLoopBIndex = bj_forLoopBIndex + 1
endloop
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
else
call DoNothing( )
endif
call TriggerExecute( gg_trg_Set_Ownershop )
endfunction
function InitTrig_Start_Init takes nothing returns nothing
set gg_trg_Start_Init = CreateTrigger( )
call TriggerAddAction( gg_trg_Start_Init, function Trig_Start_Init_Actions )
endfunction
function Trig_CompAlly_Init_Func001001001 takes nothing returns boolean
return ( udg_GameMode == 2 )
endfunction
function Trig_CompAlly_Init_Func001001002 takes nothing returns boolean
return ( udg_GameMode == 5 )
endfunction
function Trig_CompAlly_Init_Func001001 takes nothing returns boolean
return GetBooleanOr( Trig_CompAlly_Init_Func001001001(), Trig_CompAlly_Init_Func001001002() )
endfunction
function Trig_CompAlly_Init_Func004001001 takes nothing returns boolean
return ( udg_isPlaying[7] == true )
endfunction
function Trig_CompAlly_Init_Func004001002001 takes nothing returns boolean
return ( GetPlayerController(Player(6)) == MAP_CONTROL_COMPUTER )
endfunction
function Trig_CompAlly_Init_Func004001002002001 takes nothing returns boolean
return ( udg_isPlaying[1] == true )
endfunction
function Trig_CompAlly_Init_Func004001002002002 takes nothing returns boolean
return ( GetPlayerController(Player(0)) == MAP_CONTROL_USER )
endfunction
function Trig_CompAlly_Init_Func004001002002 takes nothing returns boolean
return GetBooleanAnd( Trig_CompAlly_Init_Func004001002002001(), Trig_CompAlly_Init_Func004001002002002() )
endfunction
function Trig_CompAlly_Init_Func004001002 takes nothing returns boolean
return GetBooleanAnd( Trig_CompAlly_Init_Func004001002001(), Trig_CompAlly_Init_Func004001002002() )
endfunction
function Trig_CompAlly_Init_Func004001 takes nothing returns boolean
return GetBooleanAnd( Trig_CompAlly_Init_Func004001001(), Trig_CompAlly_Init_Func004001002() )
endfunction
function Trig_CompAlly_Init_Func005001001 takes nothing returns boolean
return ( udg_isPlaying[8] == true )
endfunction
function Trig_CompAlly_Init_Func005001002001 takes nothing returns boolean
return ( GetPlayerController(Player(7)) == MAP_CONTROL_COMPUTER )
endfunction
function Trig_CompAlly_Init_Func005001002002001 takes nothing returns boolean
return ( udg_isPlaying[2] == true )
endfunction
function Trig_CompAlly_Init_Func005001002002002 takes nothing returns boolean
return ( GetPlayerController(Player(1)) == MAP_CONTROL_USER )
endfunction
function Trig_CompAlly_Init_Func005001002002 takes nothing returns boolean
return GetBooleanAnd( Trig_CompAlly_Init_Func005001002002001(), Trig_CompAlly_Init_Func005001002002002() )
endfunction
function Trig_CompAlly_Init_Func005001002 takes nothing returns boolean
return GetBooleanAnd( Trig_CompAlly_Init_Func005001002001(), Trig_CompAlly_Init_Func005001002002() )
endfunction
function Trig_CompAlly_Init_Func005001 takes nothing returns boolean
return GetBooleanAnd( Trig_CompAlly_Init_Func005001001(), Trig_CompAlly_Init_Func005001002() )
endfunction
function Trig_CompAlly_Init_Func006001001 takes nothing returns boolean
return ( udg_isPlaying[9] == true )
endfunction
function Trig_CompAlly_Init_Func006001002001 takes nothing returns boolean
return ( GetPlayerController(Player(8)) == MAP_CONTROL_COMPUTER )
endfunction
function Trig_CompAlly_Init_Func006001002002001 takes nothing returns boolean
return ( udg_isPlaying[3] == true )
endfunction
function Trig_CompAlly_Init_Func006001002002002 takes nothing returns boolean
return ( GetPlayerController(Player(2)) == MAP_CONTROL_USER )
endfunction
function Trig_CompAlly_Init_Func006001002002 takes nothing returns boolean
return GetBooleanAnd( Trig_CompAlly_Init_Func006001002002001(), Trig_CompAlly_Init_Func006001002002002() )
endfunction
function Trig_CompAlly_Init_Func006001002 takes nothing returns boolean
return GetBooleanAnd( Trig_CompAlly_Init_Func006001002001(), Trig_CompAlly_Init_Func006001002002() )
endfunction
function Trig_CompAlly_Init_Func006001 takes nothing returns boolean
return GetBooleanAnd( Trig_CompAlly_Init_Func006001001(), Trig_CompAlly_Init_Func006001002() )
endfunction
function Trig_CompAlly_Init_Func007001001 takes nothing returns boolean
return ( udg_isPlaying[10] == true )
endfunction
function Trig_CompAlly_Init_Func007001002001 takes nothing returns boolean
return ( GetPlayerController(Player(9)) == MAP_CONTROL_COMPUTER )
endfunction
function Trig_CompAlly_Init_Func007001002002001 takes nothing returns boolean
return ( udg_isPlaying[4] == true )
endfunction
function Trig_CompAlly_Init_Func007001002002002 takes nothing returns boolean
return ( GetPlayerController(Player(3)) == MAP_CONTROL_USER )
endfunction
function Trig_CompAlly_Init_Func007001002002 takes nothing returns boolean
return GetBooleanAnd( Trig_CompAlly_Init_Func007001002002001(), Trig_CompAlly_Init_Func007001002002002() )
endfunction
function Trig_CompAlly_Init_Func007001002 takes nothing returns boolean
return GetBooleanAnd( Trig_CompAlly_Init_Func007001002001(), Trig_CompAlly_Init_Func007001002002() )
endfunction
function Trig_CompAlly_Init_Func007001 takes nothing returns boolean
return GetBooleanAnd( Trig_CompAlly_Init_Func007001001(), Trig_CompAlly_Init_Func007001002() )
endfunction
function Trig_CompAlly_Init_Func008001001 takes nothing returns boolean
return ( udg_isPlaying[11] == true )
endfunction
function Trig_CompAlly_Init_Func008001002001 takes nothing returns boolean
return ( GetPlayerController(Player(10)) == MAP_CONTROL_COMPUTER )
endfunction
function Trig_CompAlly_Init_Func008001002002001 takes nothing returns boolean
return ( udg_isPlaying[5] == true )
endfunction
function Trig_CompAlly_Init_Func008001002002002 takes nothing returns boolean
return ( GetPlayerController(Player(4)) == MAP_CONTROL_USER )
endfunction
function Trig_CompAlly_Init_Func008001002002 takes nothing returns boolean
return GetBooleanAnd( Trig_CompAlly_Init_Func008001002002001(), Trig_CompAlly_Init_Func008001002002002() )
endfunction
function Trig_CompAlly_Init_Func008001002 takes nothing returns boolean
return GetBooleanAnd( Trig_CompAlly_Init_Func008001002001(), Trig_CompAlly_Init_Func008001002002() )
endfunction
function Trig_CompAlly_Init_Func008001 takes nothing returns boolean
return GetBooleanAnd( Trig_CompAlly_Init_Func008001001(), Trig_CompAlly_Init_Func008001002() )
endfunction
function Trig_CompAlly_Init_Func009001001 takes nothing returns boolean
return ( udg_isPlaying[12] == true )
endfunction
function Trig_CompAlly_Init_Func009001002001 takes nothing returns boolean
return ( GetPlayerController(Player(11)) == MAP_CONTROL_COMPUTER )
endfunction
function Trig_CompAlly_Init_Func009001002002001 takes nothing returns boolean
return ( udg_isPlaying[6] == true )
endfunction
function Trig_CompAlly_Init_Func009001002002002 takes nothing returns boolean
return ( GetPlayerController(Player(5)) == MAP_CONTROL_USER )
endfunction
function Trig_CompAlly_Init_Func009001002002 takes nothing returns boolean
return GetBooleanAnd( Trig_CompAlly_Init_Func009001002002001(), Trig_CompAlly_Init_Func009001002002002() )
endfunction
function Trig_CompAlly_Init_Func009001002 takes nothing returns boolean
return GetBooleanAnd( Trig_CompAlly_Init_Func009001002001(), Trig_CompAlly_Init_Func009001002002() )
endfunction
function Trig_CompAlly_Init_Func009001 takes nothing returns boolean
return GetBooleanAnd( Trig_CompAlly_Init_Func009001001(), Trig_CompAlly_Init_Func009001002() )
endfunction
function Trig_CompAlly_Init_Func011003001 takes nothing returns boolean
return ( udg_CompAlly[GetForLoopIndexA()] == true )
endfunction
function Trig_CompAlly_Init_Func012003001 takes nothing returns boolean
return ( udg_CompAlly[GetForLoopIndexA()] == true )
endfunction
function Trig_CompAlly_Init_Func014003001 takes nothing returns boolean
return ( udg_CompAlly[GetForLoopIndexA()] == true )
endfunction
function Trig_CompAlly_Init_Actions takes nothing returns nothing
if ( Trig_CompAlly_Init_Func001001() ) then
return
else
call DoNothing( )
endif
call CommentString( "Allowing players with staring as Computer Player to allow Computers to share their units with their User Ally!" )
if ( Trig_CompAlly_Init_Func004001() ) then
set udg_CompAlly[1] = true
else
call DoNothing( )
endif
if ( Trig_CompAlly_Init_Func005001() ) then
set udg_CompAlly[2] = true
else
call DoNothing( )
endif
if ( Trig_CompAlly_Init_Func006001() ) then
set udg_CompAlly[3] = true
else
call DoNothing( )
endif
if ( Trig_CompAlly_Init_Func007001() ) then
set udg_CompAlly[4] = true
else
call DoNothing( )
endif
if ( Trig_CompAlly_Init_Func008001() ) then
set udg_CompAlly[5] = true
else
call DoNothing( )
endif
if ( Trig_CompAlly_Init_Func009001() ) then
set udg_CompAlly[6] = true
else
call DoNothing( )
endif
call CommentString( "" )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 6
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_CompAlly_Init_Func011003001() ) then
call SetPlayerAllianceStateBJ( ConvertedPlayer(( GetForLoopIndexA() + 6 )), ConvertedPlayer(GetForLoopIndexA()), bj_ALLIANCE_ALLIED_ADVUNITS )
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 6
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_CompAlly_Init_Func012003001() ) then
call SetPlayerAllianceBJ( ConvertedPlayer(( GetForLoopIndexA() + 6 )), ALLIANCE_SHARED_ADVANCED_CONTROL, true, ConvertedPlayer(GetForLoopIndexA()) )
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call CommentString( "Moved to Welcome Message" )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 6
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_CompAlly_Init_Func014003001() ) then
call SetPlayerStateBJ( ConvertedPlayer(GetForLoopIndexA()), PLAYER_STATE_RESOURCE_LUMBER, GetPlayerState(ConvertedPlayer(( GetForLoopIndexA() + 6 )), PLAYER_STATE_RESOURCE_GOLD) )
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
function InitTrig_CompAlly_Init takes nothing returns nothing
set gg_trg_CompAlly_Init = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_CompAlly_Init, 1.00 )
call TriggerAddAction( gg_trg_CompAlly_Init, function Trig_CompAlly_Init_Actions )
endfunction
function Trig_CompAlly_Gold_Conditions takes nothing returns boolean
if ( not ( GetPlayerController(GetTriggerPlayer()) == MAP_CONTROL_COMPUTER ) ) then
return false
endif
if ( not ( IsPlayerAlly(GetTriggerPlayer(), ConvertedPlayer(( GetConvertedPlayerId(GetTriggerPlayer()) - 6 ))) == true ) ) then
return false
endif
return true
endfunction
function Trig_CompAlly_Gold_Actions takes nothing returns nothing
call CommentString( "Using FOOD Display instead of LUMBER Display, since I can't Lumber to equal 0 once greater than 0" )
call CommentString( "SAME problem with FOOD!" )
call SetPlayerStateBJ( ConvertedPlayer(( GetConvertedPlayerId(GetTriggerPlayer()) - 6 )), PLAYER_STATE_RESOURCE_LUMBER, GetPlayerState(GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD) )
endfunction
function InitTrig_CompAlly_Gold takes nothing returns nothing
set gg_trg_CompAlly_Gold = CreateTrigger( )
call TriggerRegisterPlayerStateEvent( gg_trg_CompAlly_Gold, Player(6), PLAYER_STATE_RESOURCE_GOLD, NOT_EQUAL, I2R(GetPlayerState(ConvertedPlayer(( GetConvertedPlayerId(GetTriggerPlayer()) - 6 )), PLAYER_STATE_RESOURCE_LUMBER)) )
call TriggerRegisterPlayerStateEvent( gg_trg_CompAlly_Gold, Player(7), PLAYER_STATE_RESOURCE_GOLD, NOT_EQUAL, I2R(GetPlayerState(ConvertedPlayer(( GetConvertedPlayerId(GetTriggerPlayer()) - 6 )), PLAYER_STATE_RESOURCE_LUMBER)) )
call TriggerRegisterPlayerStateEvent( gg_trg_CompAlly_Gold, Player(8), PLAYER_STATE_RESOURCE_GOLD, NOT_EQUAL, I2R(GetPlayerState(ConvertedPlayer(( GetConvertedPlayerId(GetTriggerPlayer()) - 6 )), PLAYER_STATE_RESOURCE_LUMBER)) )
call TriggerRegisterPlayerStateEvent( gg_trg_CompAlly_Gold, Player(9), PLAYER_STATE_RESOURCE_GOLD, NOT_EQUAL, I2R(GetPlayerState(ConvertedPlayer(( GetConvertedPlayerId(GetTriggerPlayer()) - 6 )), PLAYER_STATE_RESOURCE_LUMBER)) )
call TriggerRegisterPlayerStateEvent( gg_trg_CompAlly_Gold, Player(10), PLAYER_STATE_RESOURCE_GOLD, NOT_EQUAL, I2R(GetPlayerState(ConvertedPlayer(( GetConvertedPlayerId(GetTriggerPlayer()) - 6 )), PLAYER_STATE_RESOURCE_LUMBER)) )
call TriggerRegisterPlayerStateEvent( gg_trg_CompAlly_Gold, Player(11), PLAYER_STATE_RESOURCE_GOLD, NOT_EQUAL, I2R(GetPlayerState(ConvertedPlayer(( GetConvertedPlayerId(GetTriggerPlayer()) - 6 )), PLAYER_STATE_RESOURCE_LUMBER)) )
call TriggerAddCondition( gg_trg_CompAlly_Gold, Condition( function Trig_CompAlly_Gold_Conditions ) )
call TriggerAddAction( gg_trg_CompAlly_Gold, function Trig_CompAlly_Gold_Actions )
endfunction
function Trig_RemoveDead_Func007001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_Afghanistan, GetTriggerUnit()) == true )
endfunction
function Trig_RemoveDead_Func007001002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Afghanistan, GetOwningPlayer(gg_unit_hbar_0055))) == true )
endfunction
function Trig_RemoveDead_Func007001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) != 'hgtw' )
endfunction
function Trig_RemoveDead_Func007001002 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func007001002001(), Trig_RemoveDead_Func007001002002() )
endfunction
function Trig_RemoveDead_Func007001 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func007001001(), Trig_RemoveDead_Func007001002() )
endfunction
function Trig_RemoveDead_Func008001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_Alaska1, GetTriggerUnit()) == true )
endfunction
function Trig_RemoveDead_Func008001002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Alaska1, GetOwningPlayer(gg_unit_hbar_0047))) == true )
endfunction
function Trig_RemoveDead_Func008001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) != 'hgtw' )
endfunction
function Trig_RemoveDead_Func008001002 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func008001002001(), Trig_RemoveDead_Func008001002002() )
endfunction
function Trig_RemoveDead_Func008001 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func008001001(), Trig_RemoveDead_Func008001002() )
endfunction
function Trig_RemoveDead_Func009001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_Alberta, GetTriggerUnit()) == true )
endfunction
function Trig_RemoveDead_Func009001002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Alberta, GetOwningPlayer(gg_unit_hbar_0066))) == true )
endfunction
function Trig_RemoveDead_Func009001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) != 'hgtw' )
endfunction
function Trig_RemoveDead_Func009001002 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func009001002001(), Trig_RemoveDead_Func009001002002() )
endfunction
function Trig_RemoveDead_Func009001 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func009001001(), Trig_RemoveDead_Func009001002() )
endfunction
function Trig_RemoveDead_Func010001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_Argentina, GetTriggerUnit()) == true )
endfunction
function Trig_RemoveDead_Func010001002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Argentina, GetOwningPlayer(gg_unit_hbar_0065))) == true )
endfunction
function Trig_RemoveDead_Func010001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) != 'hgtw' )
endfunction
function Trig_RemoveDead_Func010001002 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func010001002001(), Trig_RemoveDead_Func010001002002() )
endfunction
function Trig_RemoveDead_Func010001 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func010001001(), Trig_RemoveDead_Func010001002() )
endfunction
function Trig_RemoveDead_Func011001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_Brazil, GetTriggerUnit()) == true )
endfunction
function Trig_RemoveDead_Func011001002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Brazil, GetOwningPlayer(gg_unit_hbar_0070))) == true )
endfunction
function Trig_RemoveDead_Func011001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) != 'hgtw' )
endfunction
function Trig_RemoveDead_Func011001002 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func011001002001(), Trig_RemoveDead_Func011001002002() )
endfunction
function Trig_RemoveDead_Func011001 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func011001001(), Trig_RemoveDead_Func011001002() )
endfunction
function Trig_RemoveDead_Func012001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_Central_America, GetTriggerUnit()) == true )
endfunction
function Trig_RemoveDead_Func012001002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Central_America, GetOwningPlayer(gg_unit_hbar_0077))) == true )
endfunction
function Trig_RemoveDead_Func012001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) != 'hgtw' )
endfunction
function Trig_RemoveDead_Func012001002 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func012001002001(), Trig_RemoveDead_Func012001002002() )
endfunction
function Trig_RemoveDead_Func012001 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func012001001(), Trig_RemoveDead_Func012001002() )
endfunction
function Trig_RemoveDead_Func013001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_China, GetTriggerUnit()) == true )
endfunction
function Trig_RemoveDead_Func013001002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_China, GetOwningPlayer(gg_unit_hbar_0061))) == true )
endfunction
function Trig_RemoveDead_Func013001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) != 'hgtw' )
endfunction
function Trig_RemoveDead_Func013001002 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func013001002001(), Trig_RemoveDead_Func013001002002() )
endfunction
function Trig_RemoveDead_Func013001 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func013001001(), Trig_RemoveDead_Func013001002() )
endfunction
function Trig_RemoveDead_Func014001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_Congo, GetTriggerUnit()) == true )
endfunction
function Trig_RemoveDead_Func014001002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Congo, GetOwningPlayer(gg_unit_hbar_0064))) == true )
endfunction
function Trig_RemoveDead_Func014001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) != 'hgtw' )
endfunction
function Trig_RemoveDead_Func014001002 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func014001002001(), Trig_RemoveDead_Func014001002002() )
endfunction
function Trig_RemoveDead_Func014001 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func014001001(), Trig_RemoveDead_Func014001002() )
endfunction
function Trig_RemoveDead_Func015001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_East_Africa, GetTriggerUnit()) == true )
endfunction
function Trig_RemoveDead_Func015001002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_East_Africa, GetOwningPlayer(gg_unit_hbar_0059))) == true )
endfunction
function Trig_RemoveDead_Func015001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) != 'hgtw' )
endfunction
function Trig_RemoveDead_Func015001002 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func015001002001(), Trig_RemoveDead_Func015001002002() )
endfunction
function Trig_RemoveDead_Func015001 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func015001001(), Trig_RemoveDead_Func015001002() )
endfunction
function Trig_RemoveDead_Func016001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_Eastern_Australia, GetTriggerUnit()) == true )
endfunction
function Trig_RemoveDead_Func016001002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Eastern_Australia, GetOwningPlayer(gg_unit_hbar_0068))) == true )
endfunction
function Trig_RemoveDead_Func016001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) != 'hgtw' )
endfunction
function Trig_RemoveDead_Func016001002 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func016001002001(), Trig_RemoveDead_Func016001002002() )
endfunction
function Trig_RemoveDead_Func016001 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func016001001(), Trig_RemoveDead_Func016001002() )
endfunction
function Trig_RemoveDead_Func017001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_Eastern_United_States, GetTriggerUnit()) == true )
endfunction
function Trig_RemoveDead_Func017001002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Eastern_United_States, GetOwningPlayer(gg_unit_hbar_0052))) == true )
endfunction
function Trig_RemoveDead_Func017001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) != 'hgtw' )
endfunction
function Trig_RemoveDead_Func017001002 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func017001002001(), Trig_RemoveDead_Func017001002002() )
endfunction
function Trig_RemoveDead_Func017001 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func017001001(), Trig_RemoveDead_Func017001002() )
endfunction
function Trig_RemoveDead_Func018001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_Egypt, GetTriggerUnit()) == true )
endfunction
function Trig_RemoveDead_Func018001002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Egypt, GetOwningPlayer(gg_unit_hbar_0069))) == true )
endfunction
function Trig_RemoveDead_Func018001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) != 'hgtw' )
endfunction
function Trig_RemoveDead_Func018001002 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func018001002001(), Trig_RemoveDead_Func018001002002() )
endfunction
function Trig_RemoveDead_Func018001 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func018001001(), Trig_RemoveDead_Func018001002() )
endfunction
function Trig_RemoveDead_Func019001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_Great_Britain, GetTriggerUnit()) == true )
endfunction
function Trig_RemoveDead_Func019001002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Great_Britain, GetOwningPlayer(gg_unit_hbar_0072))) == true )
endfunction
function Trig_RemoveDead_Func019001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) != 'hgtw' )
endfunction
function Trig_RemoveDead_Func019001002 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func019001002001(), Trig_RemoveDead_Func019001002002() )
endfunction
function Trig_RemoveDead_Func019001 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func019001001(), Trig_RemoveDead_Func019001002() )
endfunction
function Trig_RemoveDead_Func020001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_Greenland, GetTriggerUnit()) == true )
endfunction
function Trig_RemoveDead_Func020001002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Greenland, GetOwningPlayer(gg_unit_hbar_0063))) == true )
endfunction
function Trig_RemoveDead_Func020001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) != 'hgtw' )
endfunction
function Trig_RemoveDead_Func020001002 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func020001002001(), Trig_RemoveDead_Func020001002002() )
endfunction
function Trig_RemoveDead_Func020001 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func020001001(), Trig_RemoveDead_Func020001002() )
endfunction
function Trig_RemoveDead_Func021001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_Iceland, GetTriggerUnit()) == true )
endfunction
function Trig_RemoveDead_Func021001002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Iceland, GetOwningPlayer(gg_unit_hbar_0087))) == true )
endfunction
function Trig_RemoveDead_Func021001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) != 'hgtw' )
endfunction
function Trig_RemoveDead_Func021001002 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func021001002001(), Trig_RemoveDead_Func021001002002() )
endfunction
function Trig_RemoveDead_Func021001 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func021001001(), Trig_RemoveDead_Func021001002() )
endfunction
function Trig_RemoveDead_Func022001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_India, GetTriggerUnit()) == true )
endfunction
function Trig_RemoveDead_Func022001002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_India, GetOwningPlayer(gg_unit_hbar_0089))) == true )
endfunction
function Trig_RemoveDead_Func022001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) != 'hgtw' )
endfunction
function Trig_RemoveDead_Func022001002 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func022001002001(), Trig_RemoveDead_Func022001002002() )
endfunction
function Trig_RemoveDead_Func022001 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func022001001(), Trig_RemoveDead_Func022001002() )
endfunction
function Trig_RemoveDead_Func023001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_Indonesia, GetTriggerUnit()) == true )
endfunction
function Trig_RemoveDead_Func023001002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Indonesia, GetOwningPlayer(gg_unit_hbar_0076))) == true )
endfunction
function Trig_RemoveDead_Func023001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) != 'hgtw' )
endfunction
function Trig_RemoveDead_Func023001002 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func023001002001(), Trig_RemoveDead_Func023001002002() )
endfunction
function Trig_RemoveDead_Func023001 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func023001001(), Trig_RemoveDead_Func023001002() )
endfunction
function Trig_RemoveDead_Func024001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_Irkutsk, GetTriggerUnit()) == true )
endfunction
function Trig_RemoveDead_Func024001002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Irkutsk, GetOwningPlayer(gg_unit_hbar_0173))) == true )
endfunction
function Trig_RemoveDead_Func024001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) != 'hgtw' )
endfunction
function Trig_RemoveDead_Func024001002 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func024001002001(), Trig_RemoveDead_Func024001002002() )
endfunction
function Trig_RemoveDead_Func024001 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func024001001(), Trig_RemoveDead_Func024001002() )
endfunction
function Trig_RemoveDead_Func025001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_Japan, GetTriggerUnit()) == true )
endfunction
function Trig_RemoveDead_Func025001002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Japan, GetOwningPlayer(gg_unit_hbar_0085))) == true )
endfunction
function Trig_RemoveDead_Func025001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) != 'hgtw' )
endfunction
function Trig_RemoveDead_Func025001002 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func025001002001(), Trig_RemoveDead_Func025001002002() )
endfunction
function Trig_RemoveDead_Func025001 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func025001001(), Trig_RemoveDead_Func025001002() )
endfunction
function Trig_RemoveDead_Func026001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_Kamchatka1, GetTriggerUnit()) == true )
endfunction
function Trig_RemoveDead_Func026001002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Kamchatka1, GetOwningPlayer(gg_unit_hbar_0088))) == true )
endfunction
function Trig_RemoveDead_Func026001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) != 'hgtw' )
endfunction
function Trig_RemoveDead_Func026001002 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func026001002001(), Trig_RemoveDead_Func026001002002() )
endfunction
function Trig_RemoveDead_Func026001 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func026001001(), Trig_RemoveDead_Func026001002() )
endfunction
function Trig_RemoveDead_Func027001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_Madagascar, GetTriggerUnit()) == true )
endfunction
function Trig_RemoveDead_Func027001002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Madagascar, GetOwningPlayer(gg_unit_hbar_0083))) == true )
endfunction
function Trig_RemoveDead_Func027001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) != 'hgtw' )
endfunction
function Trig_RemoveDead_Func027001002 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func027001002001(), Trig_RemoveDead_Func027001002002() )
endfunction
function Trig_RemoveDead_Func027001 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func027001001(), Trig_RemoveDead_Func027001002() )
endfunction
function Trig_RemoveDead_Func028001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_Middle_East, GetTriggerUnit()) == true )
endfunction
function Trig_RemoveDead_Func028001002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Middle_East, GetOwningPlayer(gg_unit_hbar_0004))) == true )
endfunction
function Trig_RemoveDead_Func028001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) != 'hgtw' )
endfunction
function Trig_RemoveDead_Func028001002 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func028001002001(), Trig_RemoveDead_Func028001002002() )
endfunction
function Trig_RemoveDead_Func028001 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func028001001(), Trig_RemoveDead_Func028001002() )
endfunction
function Trig_RemoveDead_Func029001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_Mongolia, GetTriggerUnit()) == true )
endfunction
function Trig_RemoveDead_Func029001002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Mongolia, GetOwningPlayer(gg_unit_hbar_0073))) == true )
endfunction
function Trig_RemoveDead_Func029001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) != 'hgtw' )
endfunction
function Trig_RemoveDead_Func029001002 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func029001002001(), Trig_RemoveDead_Func029001002002() )
endfunction
function Trig_RemoveDead_Func029001 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func029001001(), Trig_RemoveDead_Func029001002() )
endfunction
function Trig_RemoveDead_Func030001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_New_Guinea, GetTriggerUnit()) == true )
endfunction
function Trig_RemoveDead_Func030001002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_New_Guinea, GetOwningPlayer(gg_unit_hbar_0079))) == true )
endfunction
function Trig_RemoveDead_Func030001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) != 'hgtw' )
endfunction
function Trig_RemoveDead_Func030001002 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func030001002001(), Trig_RemoveDead_Func030001002002() )
endfunction
function Trig_RemoveDead_Func030001 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func030001001(), Trig_RemoveDead_Func030001002() )
endfunction
function Trig_RemoveDead_Func031001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_North_Africa, GetTriggerUnit()) == true )
endfunction
function Trig_RemoveDead_Func031001002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_North_Africa, GetOwningPlayer(gg_unit_hbar_0054))) == true )
endfunction
function Trig_RemoveDead_Func031001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) != 'hgtw' )
endfunction
function Trig_RemoveDead_Func031001002 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func031001002001(), Trig_RemoveDead_Func031001002002() )
endfunction
function Trig_RemoveDead_Func031001 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func031001001(), Trig_RemoveDead_Func031001002() )
endfunction
function Trig_RemoveDead_Func032001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_Northern_Europe, GetTriggerUnit()) == true )
endfunction
function Trig_RemoveDead_Func032001002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Northern_Europe, GetOwningPlayer(gg_unit_hbar_0080))) == true )
endfunction
function Trig_RemoveDead_Func032001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) != 'hgtw' )
endfunction
function Trig_RemoveDead_Func032001002 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func032001002001(), Trig_RemoveDead_Func032001002002() )
endfunction
function Trig_RemoveDead_Func032001 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func032001001(), Trig_RemoveDead_Func032001002() )
endfunction
function Trig_RemoveDead_Func033001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_Northwest_Territory, GetTriggerUnit()) == true )
endfunction
function Trig_RemoveDead_Func033001002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Northwest_Territory, GetOwningPlayer(gg_unit_hbar_0057))) == true )
endfunction
function Trig_RemoveDead_Func033001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) != 'hgtw' )
endfunction
function Trig_RemoveDead_Func033001002 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func033001002001(), Trig_RemoveDead_Func033001002002() )
endfunction
function Trig_RemoveDead_Func033001 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func033001001(), Trig_RemoveDead_Func033001002() )
endfunction
function Trig_RemoveDead_Func034001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_Ontario, GetTriggerUnit()) == true )
endfunction
function Trig_RemoveDead_Func034001002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Ontario, GetOwningPlayer(gg_unit_hbar_0071))) == true )
endfunction
function Trig_RemoveDead_Func034001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) != 'hgtw' )
endfunction
function Trig_RemoveDead_Func034001002 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func034001002001(), Trig_RemoveDead_Func034001002002() )
endfunction
function Trig_RemoveDead_Func034001 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func034001001(), Trig_RemoveDead_Func034001002() )
endfunction
function Trig_RemoveDead_Func035001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_Peru, GetTriggerUnit()) == true )
endfunction
function Trig_RemoveDead_Func035001002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Peru, GetOwningPlayer(gg_unit_hbar_0090))) == true )
endfunction
function Trig_RemoveDead_Func035001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) != 'hgtw' )
endfunction
function Trig_RemoveDead_Func035001002 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func035001002001(), Trig_RemoveDead_Func035001002002() )
endfunction
function Trig_RemoveDead_Func035001 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func035001001(), Trig_RemoveDead_Func035001002() )
endfunction
function Trig_RemoveDead_Func036001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_Quebec, GetTriggerUnit()) == true )
endfunction
function Trig_RemoveDead_Func036001002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Quebec, GetOwningPlayer(gg_unit_hbar_0081))) == true )
endfunction
function Trig_RemoveDead_Func036001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) != 'hgtw' )
endfunction
function Trig_RemoveDead_Func036001002 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func036001002001(), Trig_RemoveDead_Func036001002002() )
endfunction
function Trig_RemoveDead_Func036001 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func036001001(), Trig_RemoveDead_Func036001002() )
endfunction
function Trig_RemoveDead_Func037001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_Scandinavia, GetTriggerUnit()) == true )
endfunction
function Trig_RemoveDead_Func037001002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Scandinavia, GetOwningPlayer(gg_unit_hbar_0074))) == true )
endfunction
function Trig_RemoveDead_Func037001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) != 'hgtw' )
endfunction
function Trig_RemoveDead_Func037001002 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func037001002001(), Trig_RemoveDead_Func037001002002() )
endfunction
function Trig_RemoveDead_Func037001 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func037001001(), Trig_RemoveDead_Func037001002() )
endfunction
function Trig_RemoveDead_Func038001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_Siam, GetTriggerUnit()) == true )
endfunction
function Trig_RemoveDead_Func038001002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Siam, GetOwningPlayer(gg_unit_hbar_0067))) == true )
endfunction
function Trig_RemoveDead_Func038001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) != 'hgtw' )
endfunction
function Trig_RemoveDead_Func038001002 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func038001002001(), Trig_RemoveDead_Func038001002002() )
endfunction
function Trig_RemoveDead_Func038001 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func038001001(), Trig_RemoveDead_Func038001002() )
endfunction
function Trig_RemoveDead_Func039001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_Siberia, GetTriggerUnit()) == true )
endfunction
function Trig_RemoveDead_Func039001002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Siberia, GetOwningPlayer(gg_unit_hbar_0084))) == true )
endfunction
function Trig_RemoveDead_Func039001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) != 'hgtw' )
endfunction
function Trig_RemoveDead_Func039001002 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func039001002001(), Trig_RemoveDead_Func039001002002() )
endfunction
function Trig_RemoveDead_Func039001 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func039001001(), Trig_RemoveDead_Func039001002() )
endfunction
function Trig_RemoveDead_Func040001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_South_Africa, GetTriggerUnit()) == true )
endfunction
function Trig_RemoveDead_Func040001002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_South_Africa, GetOwningPlayer(gg_unit_hbar_0078))) == true )
endfunction
function Trig_RemoveDead_Func040001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) != 'hgtw' )
endfunction
function Trig_RemoveDead_Func040001002 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func040001002001(), Trig_RemoveDead_Func040001002002() )
endfunction
function Trig_RemoveDead_Func040001 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func040001001(), Trig_RemoveDead_Func040001002() )
endfunction
function Trig_RemoveDead_Func041001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_Southern_Europe, GetTriggerUnit()) == true )
endfunction
function Trig_RemoveDead_Func041001002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Southern_Europe, GetOwningPlayer(gg_unit_hbar_0086))) == true )
endfunction
function Trig_RemoveDead_Func041001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) != 'hgtw' )
endfunction
function Trig_RemoveDead_Func041001002 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func041001002001(), Trig_RemoveDead_Func041001002002() )
endfunction
function Trig_RemoveDead_Func041001 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func041001001(), Trig_RemoveDead_Func041001002() )
endfunction
function Trig_RemoveDead_Func042001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_Ukraine, GetTriggerUnit()) == true )
endfunction
function Trig_RemoveDead_Func042001002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Ukraine, GetOwningPlayer(gg_unit_hbar_0062))) == true )
endfunction
function Trig_RemoveDead_Func042001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) != 'hgtw' )
endfunction
function Trig_RemoveDead_Func042001002 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func042001002001(), Trig_RemoveDead_Func042001002002() )
endfunction
function Trig_RemoveDead_Func042001 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func042001001(), Trig_RemoveDead_Func042001002() )
endfunction
function Trig_RemoveDead_Func043001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_Ural, GetTriggerUnit()) == true )
endfunction
function Trig_RemoveDead_Func043001002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Ural, GetOwningPlayer(gg_unit_hbar_0082))) == true )
endfunction
function Trig_RemoveDead_Func043001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) != 'hgtw' )
endfunction
function Trig_RemoveDead_Func043001002 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func043001002001(), Trig_RemoveDead_Func043001002002() )
endfunction
function Trig_RemoveDead_Func043001 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func043001001(), Trig_RemoveDead_Func043001002() )
endfunction
function Trig_RemoveDead_Func044001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_Venezuela, GetTriggerUnit()) == true )
endfunction
function Trig_RemoveDead_Func044001002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Venezuela, GetOwningPlayer(gg_unit_hbar_0053))) == true )
endfunction
function Trig_RemoveDead_Func044001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) != 'hgtw' )
endfunction
function Trig_RemoveDead_Func044001002 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func044001002001(), Trig_RemoveDead_Func044001002002() )
endfunction
function Trig_RemoveDead_Func044001 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func044001001(), Trig_RemoveDead_Func044001002() )
endfunction
function Trig_RemoveDead_Func045001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_Western_Australia, GetTriggerUnit()) == true )
endfunction
function Trig_RemoveDead_Func045001002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Western_Australia, GetOwningPlayer(gg_unit_hbar_0060))) == true )
endfunction
function Trig_RemoveDead_Func045001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) != 'hgtw' )
endfunction
function Trig_RemoveDead_Func045001002 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func045001002001(), Trig_RemoveDead_Func045001002002() )
endfunction
function Trig_RemoveDead_Func045001 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func045001001(), Trig_RemoveDead_Func045001002() )
endfunction
function Trig_RemoveDead_Func046001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_Western_Europe, GetTriggerUnit()) == true )
endfunction
function Trig_RemoveDead_Func046001002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Western_Europe, GetOwningPlayer(gg_unit_hbar_0058))) == true )
endfunction
function Trig_RemoveDead_Func046001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) != 'hgtw' )
endfunction
function Trig_RemoveDead_Func046001002 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func046001002001(), Trig_RemoveDead_Func046001002002() )
endfunction
function Trig_RemoveDead_Func046001 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func046001001(), Trig_RemoveDead_Func046001002() )
endfunction
function Trig_RemoveDead_Func047001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_Western_United_States, GetTriggerUnit()) == true )
endfunction
function Trig_RemoveDead_Func047001002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Western_United_States, GetOwningPlayer(gg_unit_hbar_0075))) == true )
endfunction
function Trig_RemoveDead_Func047001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) != 'hgtw' )
endfunction
function Trig_RemoveDead_Func047001002 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func047001002001(), Trig_RemoveDead_Func047001002002() )
endfunction
function Trig_RemoveDead_Func047001 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func047001001(), Trig_RemoveDead_Func047001002() )
endfunction
function Trig_RemoveDead_Func048001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_Yakutsk, GetTriggerUnit()) == true )
endfunction
function Trig_RemoveDead_Func048001002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_Yakutsk, GetOwningPlayer(gg_unit_hbar_0056))) == true )
endfunction
function Trig_RemoveDead_Func048001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetKillingUnitBJ()) != 'hgtw' )
endfunction
function Trig_RemoveDead_Func048001002 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func048001002001(), Trig_RemoveDead_Func048001002002() )
endfunction
function Trig_RemoveDead_Func048001 takes nothing returns boolean
return GetBooleanAnd( Trig_RemoveDead_Func048001001(), Trig_RemoveDead_Func048001002() )
endfunction
function Trig_RemoveDead_Actions takes nothing returns nothing
call CommentString( "You can check for DECAY instead of DIE (and then remove unit from the game below) but this causes a slight delay before ownership can change" )
call CommentString( "There is a delay from unit death to start of unit decay." )
call CommentString( "I like the animation/sound effect so I simply move the unit - Primary Use is to allow quick Circle of Power ownership changes" )
call CommentString( "NEW idea, change ownership of unit to Neutral Victim! This will still show animation and be fast for ownership change!" )
call SetUnitOwner( GetTriggerUnit(), Player(bj_PLAYER_NEUTRAL_VICTIM), false )
call CommentString( "Have to check if Killing unit is Guard Tower, since a player can have one of his Guard Towers attack one of his own units. This would move the Guard Tower." )
if ( Trig_RemoveDead_Func007001() ) then
call SetUnitPositionLocFacingBJ( GetKillingUnitBJ(), GetRectCenter(gg_rct_Afghanistan), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_RemoveDead_Func008001() ) then
call SetUnitPositionLocFacingBJ( GetKillingUnitBJ(), GetRectCenter(gg_rct_Alaska1), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_RemoveDead_Func009001() ) then
call SetUnitPositionLocFacingBJ( GetKillingUnitBJ(), GetRectCenter(gg_rct_Alberta), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_RemoveDead_Func010001() ) then
call SetUnitPositionLocFacingBJ( GetKillingUnitBJ(), GetRectCenter(gg_rct_Argentina), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_RemoveDead_Func011001() ) then
call SetUnitPositionLocFacingBJ( GetKillingUnitBJ(), GetRectCenter(gg_rct_Brazil), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_RemoveDead_Func012001() ) then
call SetUnitPositionLocFacingBJ( GetKillingUnitBJ(), GetRectCenter(gg_rct_Central_America), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_RemoveDead_Func013001() ) then
call SetUnitPositionLocFacingBJ( GetKillingUnitBJ(), GetRectCenter(gg_rct_China), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_RemoveDead_Func014001() ) then
call SetUnitPositionLocFacingBJ( GetKillingUnitBJ(), GetRectCenter(gg_rct_Congo), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_RemoveDead_Func015001() ) then
call SetUnitPositionLocFacingBJ( GetKillingUnitBJ(), GetRectCenter(gg_rct_East_Africa), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_RemoveDead_Func016001() ) then
call SetUnitPositionLocFacingBJ( GetKillingUnitBJ(), GetRectCenter(gg_rct_Eastern_Australia), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_RemoveDead_Func017001() ) then
call SetUnitPositionLocFacingBJ( GetKillingUnitBJ(), GetRectCenter(gg_rct_Eastern_United_States), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_RemoveDead_Func018001() ) then
call SetUnitPositionLocFacingBJ( GetKillingUnitBJ(), GetRectCenter(gg_rct_Egypt), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_RemoveDead_Func019001() ) then
call SetUnitPositionLocFacingBJ( GetKillingUnitBJ(), GetRectCenter(gg_rct_Great_Britain), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_RemoveDead_Func020001() ) then
call SetUnitPositionLocFacingBJ( GetKillingUnitBJ(), GetRectCenter(gg_rct_Greenland), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_RemoveDead_Func021001() ) then
call SetUnitPositionLocFacingBJ( GetKillingUnitBJ(), GetRectCenter(gg_rct_Iceland), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_RemoveDead_Func022001() ) then
call SetUnitPositionLocFacingBJ( GetKillingUnitBJ(), GetRectCenter(gg_rct_India), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_RemoveDead_Func023001() ) then
call SetUnitPositionLocFacingBJ( GetKillingUnitBJ(), GetRectCenter(gg_rct_Indonesia), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_RemoveDead_Func024001() ) then
call SetUnitPositionLocFacingBJ( GetKillingUnitBJ(), GetRectCenter(gg_rct_Irkutsk), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_RemoveDead_Func025001() ) then
call SetUnitPositionLocFacingBJ( GetKillingUnitBJ(), GetRectCenter(gg_rct_Japan), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_RemoveDead_Func026001() ) then
call SetUnitPositionLocFacingBJ( GetKillingUnitBJ(), GetRectCenter(gg_rct_Kamchatka1), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_RemoveDead_Func027001() ) then
call SetUnitPositionLocFacingBJ( GetKillingUnitBJ(), GetRectCenter(gg_rct_Madagascar), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_RemoveDead_Func028001() ) then
call SetUnitPositionLocFacingBJ( GetKillingUnitBJ(), GetRectCenter(gg_rct_Middle_East), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_RemoveDead_Func029001() ) then
call SetUnitPositionLocFacingBJ( GetKillingUnitBJ(), GetRectCenter(gg_rct_Mongolia), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_RemoveDead_Func030001() ) then
call SetUnitPositionLocFacingBJ( GetKillingUnitBJ(), GetRectCenter(gg_rct_New_Guinea), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_RemoveDead_Func031001() ) then
call SetUnitPositionLocFacingBJ( GetKillingUnitBJ(), GetRectCenter(gg_rct_North_Africa), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_RemoveDead_Func032001() ) then
call SetUnitPositionLocFacingBJ( GetKillingUnitBJ(), GetRectCenter(gg_rct_Northern_Europe), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_RemoveDead_Func033001() ) then
call SetUnitPositionLocFacingBJ( GetKillingUnitBJ(), GetRectCenter(gg_rct_Northwest_Territory), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_RemoveDead_Func034001() ) then
call SetUnitPositionLocFacingBJ( GetKillingUnitBJ(), GetRectCenter(gg_rct_Ontario), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_RemoveDead_Func035001() ) then
call SetUnitPositionLocFacingBJ( GetKillingUnitBJ(), GetRectCenter(gg_rct_Peru), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_RemoveDead_Func036001() ) then
call SetUnitPositionLocFacingBJ( GetKillingUnitBJ(), GetRectCenter(gg_rct_Quebec), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_RemoveDead_Func037001() ) then
call SetUnitPositionLocFacingBJ( GetKillingUnitBJ(), GetRectCenter(gg_rct_Scandinavia), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_RemoveDead_Func038001() ) then
call SetUnitPositionLocFacingBJ( GetKillingUnitBJ(), GetRectCenter(gg_rct_Siam), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_RemoveDead_Func039001() ) then
call SetUnitPositionLocFacingBJ( GetKillingUnitBJ(), GetRectCenter(gg_rct_Siberia), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_RemoveDead_Func040001() ) then
call SetUnitPositionLocFacingBJ( GetKillingUnitBJ(), GetRectCenter(gg_rct_South_Africa), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_RemoveDead_Func041001() ) then
call SetUnitPositionLocFacingBJ( GetKillingUnitBJ(), GetRectCenter(gg_rct_Southern_Europe), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_RemoveDead_Func042001() ) then
call SetUnitPositionLocFacingBJ( GetKillingUnitBJ(), GetRectCenter(gg_rct_Ukraine), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_RemoveDead_Func043001() ) then
call SetUnitPositionLocFacingBJ( GetKillingUnitBJ(), GetRectCenter(gg_rct_Ural), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_RemoveDead_Func044001() ) then
call SetUnitPositionLocFacingBJ( GetKillingUnitBJ(), GetRectCenter(gg_rct_Venezuela), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_RemoveDead_Func045001() ) then
call SetUnitPositionLocFacingBJ( GetKillingUnitBJ(), GetRectCenter(gg_rct_Western_Australia), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_RemoveDead_Func046001() ) then
call SetUnitPositionLocFacingBJ( GetKillingUnitBJ(), GetRectCenter(gg_rct_Western_Europe), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_RemoveDead_Func047001() ) then
call SetUnitPositionLocFacingBJ( GetKillingUnitBJ(), GetRectCenter(gg_rct_Western_United_States), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_RemoveDead_Func048001() ) then
call SetUnitPositionLocFacingBJ( GetKillingUnitBJ(), GetRectCenter(gg_rct_Yakutsk), bj_UNIT_FACING )
else
call DoNothing( )
endif
endfunction
function InitTrig_RemoveDead takes nothing returns nothing
set gg_trg_RemoveDead = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_RemoveDead, Player(0), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_RemoveDead, Player(1), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_RemoveDead, Player(2), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_RemoveDead, Player(3), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_RemoveDead, Player(4), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_RemoveDead, Player(5), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_RemoveDead, Player(6), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_RemoveDead, Player(7), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_RemoveDead, Player(8), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_RemoveDead, Player(9), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_RemoveDead, Player(10), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_RemoveDead, Player(11), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddAction( gg_trg_RemoveDead, function Trig_RemoveDead_Actions )
endfunction
function Trig_basic_Func010002 takes nothing returns nothing
call LeaderboardAddItemBJ( GetEnumPlayer(), GetLastCreatedLeaderboard(), ( ( ( I2S(udg_TeamNumber[GetConvertedPlayerId(GetEnumPlayer())]) + "-" ) + GetPlayerName(GetEnumPlayer()) ) + ( "[" + ( I2S(GetConvertedPlayerId(GetEnumPlayer())) + "]" ) ) ), 4 )
endfunction
function Trig_basic_Func012002001 takes nothing returns boolean
return ( GetPlayerName(GetEnumPlayer()) == "SoulPimp" )
endfunction
function Trig_basic_Func012002 takes nothing returns nothing
if ( Trig_basic_Func012002001() ) then
call LeaderboardSetPlayerItemLabelBJ( GetEnumPlayer(), GetLastCreatedLeaderboard(), ( ( ( I2S(udg_TeamNumber[GetConvertedPlayerId(GetEnumPlayer())]) + "-" ) + "THE CREATOR!" ) + ( "[" + ( I2S(GetConvertedPlayerId(GetEnumPlayer())) + "]" ) ) ) )
else
call DoNothing( )
endif
endfunction
function Trig_basic_Func013002001 takes nothing returns boolean
return ( GetPlayerName(GetEnumPlayer()) == "SoulPimp" )
endfunction
function Trig_basic_Func013002 takes nothing returns nothing
if ( Trig_basic_Func013002001() ) then
call LeaderboardSetPlayerItemLabelColorBJ( GetEnumPlayer(), GetLastCreatedLeaderboard(), 100.00, 0.00, 100, 0 )
else
call DoNothing( )
endif
endfunction
function Trig_basic_Func014002001 takes nothing returns boolean
return ( GetPlayerName(GetEnumPlayer()) == "SoulPimp" )
endfunction
function Trig_basic_Func014002 takes nothing returns nothing
if ( Trig_basic_Func014002001() ) then
set udg_SoulPimpInGame = true
else
call DoNothing( )
endif
endfunction
function Trig_basic_Func015002001 takes nothing returns boolean
return ( GetPlayerName(GetEnumPlayer()) == "SoulPimp" )
endfunction
function Trig_basic_Func015002 takes nothing returns nothing
if ( Trig_basic_Func015002001() ) then
set udg_CreatorToggle = true
else
call DoNothing( )
endif
endfunction
function Trig_basic_Func016001 takes nothing returns boolean
return ( udg_SoulPimpInGame == false )
endfunction
function Trig_basic_Func026001 takes nothing returns boolean
return ( udg_TeamNumber[12] == 0 )
endfunction
function Trig_basic_Func027001 takes nothing returns boolean
return ( udg_TeamNumber[12] == 0 )
endfunction
function Trig_basic_Func028001 takes nothing returns boolean
return ( udg_TeamNumber[12] == 0 )
endfunction
function Trig_basic_Func031001001 takes nothing returns boolean
return ( udg_GameMode == 2 )
endfunction
function Trig_basic_Func031001002 takes nothing returns boolean
return ( udg_GameMode == 5 )
endfunction
function Trig_basic_Func031001 takes nothing returns boolean
return GetBooleanOr( Trig_basic_Func031001001(), Trig_basic_Func031001002() )
endfunction
function Trig_basic_Actions takes nothing returns nothing
call CreateLeaderboardBJ( GetPlayersAll(), "TRIGSTR_144" )
call LeaderboardAddItemBJ( Player(PLAYER_NEUTRAL_PASSIVE), GetLastCreatedLeaderboard(), "TRIGSTR_622", 100 )
call LeaderboardSetPlayerItemLabelColorBJ( Player(PLAYER_NEUTRAL_PASSIVE), GetLastCreatedLeaderboard(), 100.00, 80.00, 0.00, 0 )
call LeaderboardSetPlayerItemValueColorBJ( Player(PLAYER_NEUTRAL_PASSIVE), GetLastCreatedLeaderboard(), 100, 100, 100, 100.00 )
call CommentString( "" )
call ForForce( GetPlayersAll(), function Trig_basic_Func010002 )
call CommentString( "THE CREATOR Toggle" )
call ForForce( GetPlayersAll(), function Trig_basic_Func012002 )
call ForForce( GetPlayersAll(), function Trig_basic_Func013002 )
call ForForce( GetPlayersAll(), function Trig_basic_Func014002 )
call ForForce( GetPlayersAll(), function Trig_basic_Func015002 )
if ( Trig_basic_Func016001() ) then
call DisableTrigger( gg_trg_THE_CREATOR )
else
call DoNothing( )
endif
call CommentString( "THE CREATOR Toggle" )
call LeaderboardAddItemBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), GetLastCreatedLeaderboard(), "TRIGSTR_623", 2 )
call LeaderboardSetPlayerItemLabelColorBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), GetLastCreatedLeaderboard(), 100.00, 80.00, 0.00, 0 )
call LeaderboardSetPlayerItemValueColorBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), GetLastCreatedLeaderboard(), 100, 100, 100, 100.00 )
call CommentString( "" )
call LeaderboardAddItemBJ( Player(bj_PLAYER_NEUTRAL_VICTIM), GetLastCreatedLeaderboard(), udg_GameModeDesc[udg_GameMode], 1 )
call LeaderboardSetPlayerItemLabelColorBJ( Player(bj_PLAYER_NEUTRAL_VICTIM), GetLastCreatedLeaderboard(), 100.00, 80.00, 0.00, 0 )
call LeaderboardSetPlayerItemValueColorBJ( Player(bj_PLAYER_NEUTRAL_VICTIM), GetLastCreatedLeaderboard(), 100, 100, 100, 100.00 )
call CommentString( "" )
if ( Trig_basic_Func026001() ) then
call LeaderboardSetPlayerItemLabelBJ( Player(11), GetLastCreatedLeaderboard(), "TRIGSTR_974" )
else
call DoNothing( )
endif
if ( Trig_basic_Func027001() ) then
call LeaderboardSetPlayerItemValueBJ( Player(11), GetLastCreatedLeaderboard(), 3 )
else
call DoNothing( )
endif
if ( Trig_basic_Func028001() ) then
call LeaderboardSetPlayerItemValueColorBJ( Player(11), GetLastCreatedLeaderboard(), 100, 100, 100, 100.00 )
else
call DoNothing( )
endif
if ( Trig_basic_Func031001() ) then
call LeaderboardSortItemsBJ( GetLastCreatedLeaderboard(), bj_SORTTYPE_SORTBYVALUE, false )
else
call LeaderboardSortItemsBJ( GetLastCreatedLeaderboard(), bj_SORTTYPE_SORTBYLABEL, true )
endif
endfunction
function InitTrig_basic takes nothing returns nothing
set gg_trg_basic = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_basic, 5.00 )
call TriggerAddAction( gg_trg_basic, function Trig_basic_Actions )
endfunction
function Trig_leaderboard_Func004003001 takes nothing returns boolean
return ( GetPlayerSlotState(ConvertedPlayer(GetForLoopIndexA())) == PLAYER_SLOT_STATE_LEFT )
endfunction
function Trig_leaderboard_Func006003001 takes nothing returns boolean
return ( GetPlayerStructureCount(ConvertedPlayer(GetForLoopIndexA()), false) < 1 )
endfunction
function Trig_leaderboard_Func007001001 takes nothing returns boolean
return ( udg_GameMode == 2 )
endfunction
function Trig_leaderboard_Func007001002 takes nothing returns boolean
return ( udg_GameMode == 5 )
endfunction
function Trig_leaderboard_Func007001 takes nothing returns boolean
return GetBooleanOr( Trig_leaderboard_Func007001001(), Trig_leaderboard_Func007001002() )
endfunction
function Trig_leaderboard_Actions takes nothing returns nothing
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call LeaderboardSetPlayerItemValueBJ( ConvertedPlayer(GetForLoopIndexA()), GetLastCreatedLeaderboard(), udg_UnitsReceived[GetForLoopIndexA()] )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call CommentString( "Had to add this line because sometimes [] not changed to [*]" )
call CommentString( "Probably don't need now since I made a change in Defeat Quitting Player" )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_leaderboard_Func004003001() ) then
call LeaderboardSetPlayerItemLabelBJ( ConvertedPlayer(GetForLoopIndexA()), GetLastCreatedLeaderboard(), ( ( I2S(udg_TeamNumber[GetForLoopIndexA()]) + "-" ) + ( GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) + "[*]" ) ) )
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call CommentString( "Next line could be moved to trigger Losing (uner Winning and Losing)" )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_leaderboard_Func006003001() ) then
call LeaderboardRemovePlayerItemBJ( ConvertedPlayer(GetForLoopIndexA()), GetLastCreatedLeaderboard() )
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
if ( Trig_leaderboard_Func007001() ) then
call LeaderboardSortItemsBJ( GetLastCreatedLeaderboard(), bj_SORTTYPE_SORTBYVALUE, false )
else
call LeaderboardSortItemsBJ( GetLastCreatedLeaderboard(), bj_SORTTYPE_SORTBYLABEL, true )
endif
endfunction
function InitTrig_leaderboard takes nothing returns nothing
set gg_trg_leaderboard = CreateTrigger( )
call TriggerAddAction( gg_trg_leaderboard, function Trig_leaderboard_Actions )
endfunction
function Trig_Back_Stab_Conditions takes nothing returns boolean
if ( not ( IsUnitAlly(GetAttackedUnitBJ(), GetOwningPlayer(GetAttacker())) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetAttackedUnitBJ()) != GetOwningPlayer(GetAttacker()) ) ) then
return false
endif
return true
endfunction
function Trig_Back_Stab_Func006003001001 takes nothing returns boolean
return ( RectContainsUnit(udg_COPName[GetForLoopIndexA()], GetAttackedUnitBJ()) == true )
endfunction
function Trig_Back_Stab_Func006003001002 takes nothing returns boolean
return ( udg_AllowAllyAttack[GetForLoopIndexA()] == true )
endfunction
function Trig_Back_Stab_Func006003001 takes nothing returns boolean
return GetBooleanAnd( Trig_Back_Stab_Func006003001001(), Trig_Back_Stab_Func006003001002() )
endfunction
function Trig_Back_Stab_Func013003001001 takes nothing returns boolean
return ( GetOwningPlayer(GetAttackedUnitBJ()) == ConvertedPlayer(GetForLoopIndexA()) )
endfunction
function Trig_Back_Stab_Func013003001002 takes nothing returns boolean
return ( GetPlayerController(ConvertedPlayer(GetForLoopIndexA())) == MAP_CONTROL_COMPUTER )
endfunction
function Trig_Back_Stab_Func013003001 takes nothing returns boolean
return GetBooleanAnd( Trig_Back_Stab_Func013003001001(), Trig_Back_Stab_Func013003001002() )
endfunction
function Trig_Back_Stab_Actions takes nothing returns nothing
call CommentString( "***************************** REMOVE THESE VARIABLES *************************" )
call CommentString( "***************************** REMOVE THESE VARIABLES *************************" )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 42
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Back_Stab_Func006003001() ) then
return
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call CommentString( "RESET AllowAllyAttack() to FALSE once ally takes ownership????" )
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, "TRIGSTR_295" )
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, ( GetPlayerName(GetOwningPlayer(GetAttacker())) + ( " and " + ( GetPlayerName(GetOwningPlayer(GetAttackedUnitBJ())) + " automatically switched to ENEMIES!" ) ) ) )
call SetPlayerAllianceStateBJ( GetOwningPlayer(GetAttacker()), GetOwningPlayer(GetAttackedUnitBJ()), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( GetOwningPlayer(GetAttackedUnitBJ()), GetOwningPlayer(GetAttacker()), bj_ALLIANCE_UNALLIED )
call CommentString( "CompAlly" )
set bj_forLoopAIndex = 7
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Back_Stab_Func013003001() ) then
call SetPlayerStateBJ( ConvertedPlayer(( GetForLoopIndexA() - 6 )), PLAYER_STATE_RESOURCE_LUMBER, 1 )
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call TriggerExecute( gg_trg_Set_Team )
endfunction
function InitTrig_Back_Stab takes nothing returns nothing
set gg_trg_Back_Stab = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Back_Stab, Player(0), EVENT_PLAYER_UNIT_ATTACKED )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Back_Stab, Player(1), EVENT_PLAYER_UNIT_ATTACKED )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Back_Stab, Player(2), EVENT_PLAYER_UNIT_ATTACKED )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Back_Stab, Player(3), EVENT_PLAYER_UNIT_ATTACKED )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Back_Stab, Player(4), EVENT_PLAYER_UNIT_ATTACKED )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Back_Stab, Player(5), EVENT_PLAYER_UNIT_ATTACKED )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Back_Stab, Player(6), EVENT_PLAYER_UNIT_ATTACKED )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Back_Stab, Player(7), EVENT_PLAYER_UNIT_ATTACKED )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Back_Stab, Player(8), EVENT_PLAYER_UNIT_ATTACKED )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Back_Stab, Player(9), EVENT_PLAYER_UNIT_ATTACKED )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Back_Stab, Player(10), EVENT_PLAYER_UNIT_ATTACKED )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Back_Stab, Player(11), EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Back_Stab, Condition( function Trig_Back_Stab_Conditions ) )
call TriggerAddAction( gg_trg_Back_Stab, function Trig_Back_Stab_Actions )
endfunction
function Trig_Toggle_Allow_Conditions takes nothing returns boolean
if ( not ( GetTrainedUnitType() == 'Huth' ) ) then
return false
endif
return true
endfunction
function Trig_Toggle_Allow_Func001001001 takes nothing returns boolean
return ( udg_GameMode == 2 )
endfunction
function Trig_Toggle_Allow_Func001001002 takes nothing returns boolean
return ( udg_GameMode == 5 )
endfunction
function Trig_Toggle_Allow_Func001001 takes nothing returns boolean
return GetBooleanOr( Trig_Toggle_Allow_Func001001001(), Trig_Toggle_Allow_Func001001002() )
endfunction
function Trig_Toggle_Allow_Func002001001 takes nothing returns boolean
return ( udg_GameMode == 2 )
endfunction
function Trig_Toggle_Allow_Func002001002 takes nothing returns boolean
return ( udg_GameMode == 5 )
endfunction
function Trig_Toggle_Allow_Func002001 takes nothing returns boolean
return GetBooleanOr( Trig_Toggle_Allow_Func002001001(), Trig_Toggle_Allow_Func002001002() )
endfunction
function Trig_Toggle_Allow_Func004003001 takes nothing returns boolean
return ( udg_Barracks[GetForLoopIndexA()] == GetTriggerUnit() )
endfunction
function Trig_Toggle_Allow_Func005001001001002001 takes nothing returns boolean
return ( IsUnitAlly(GetFilterUnit(), GetOwningPlayer(udg_Barracks[udg_TempVariable])) == true )
endfunction
function Trig_Toggle_Allow_Func005001001001002002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != GetOwningPlayer(udg_Barracks[udg_TempVariable]) )
endfunction
function Trig_Toggle_Allow_Func005001001001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Toggle_Allow_Func005001001001002001(), Trig_Toggle_Allow_Func005001001001002002() )
endfunction
function Trig_Toggle_Allow_Func005001 takes nothing returns boolean
return ( IsUnitGroupInRectBJ(GetUnitsOfPlayerMatching(GetOwningPlayer(GetFilterUnit()), Condition(function Trig_Toggle_Allow_Func005001001001002)), udg_COPName[udg_TempVariable]) == true )
endfunction
function Trig_Toggle_Allow_Func007003001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) != ConvertedPlayer(GetForLoopIndexA()) )
endfunction
function Trig_Toggle_Allow_Func007003002001 takes nothing returns boolean
return ( IsPlayerAlly(ConvertedPlayer(GetForLoopIndexA()), GetOwningPlayer(GetTriggerUnit())) == true )
endfunction
function Trig_Toggle_Allow_Func007003002002002001 takes nothing returns boolean
return ( IsUnitGroupEmptyBJ(GetLastCreatedGroup()) == false )
endfunction
function Trig_Toggle_Allow_Func007003002002002 takes nothing returns nothing
if ( Trig_Toggle_Allow_Func007003002002002001() ) then
set udg_TempVariable2 = GetForLoopIndexA()
else
call DoNothing( )
endif
endfunction
function Trig_Toggle_Allow_Func008001 takes nothing returns boolean
return ( udg_TempVariable2 > 0 )
endfunction
function Trig_Toggle_Allow_Func009001 takes nothing returns boolean
return ( udg_TempVariable2 > 0 )
endfunction
function Trig_Toggle_Allow_Func010001 takes nothing returns boolean
return ( udg_TempVariable2 > 0 )
endfunction
function Trig_Toggle_Allow_Func011001 takes nothing returns boolean
return ( udg_TempVariable2 > 0 )
endfunction
function Trig_Toggle_Allow_Func012001 takes nothing returns boolean
return ( udg_TempVariable2 > 0 )
endfunction
function Trig_Toggle_Allow_Func013001 takes nothing returns boolean
return ( udg_TempVariable2 > 0 )
endfunction
function Trig_Toggle_Allow_Func014001 takes nothing returns boolean
return ( udg_AllowAllyAttack[udg_TempVariable] == false )
endfunction
function Trig_Toggle_Allow_Func015001 takes nothing returns boolean
return ( udg_AllowAllyAttack[udg_TempVariable] == true )
endfunction
function Trig_Toggle_Allow_Func016001 takes nothing returns boolean
return ( udg_AllowAllyAttack[udg_TempVariable] == true )
endfunction
function Trig_Toggle_Allow_Func017001 takes nothing returns boolean
return ( udg_AllowAllyAttack[udg_TempVariable] == true )
endfunction
function Trig_Toggle_Allow_Actions takes nothing returns nothing
if ( Trig_Toggle_Allow_Func001001() ) then
call DisplayTextToForce( GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit())), "TRIGSTR_982" )
else
call DoNothing( )
endif
if ( Trig_Toggle_Allow_Func002001() ) then
return
else
call DoNothing( )
endif
call CommentString( "Switch to Integer A to avoid problems with the use of Integer B when checking in Captured Country" )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 42
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Toggle_Allow_Func004003001() ) then
set udg_TempVariable = GetForLoopIndexA()
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
if ( Trig_Toggle_Allow_Func005001() ) then
set udg_TempVariable2 = GetConvertedPlayerId(GetOwningPlayer(GetFilterUnit()))
else
set udg_TempVariable2 = 0
endif
set udg_TempVariable2 = 0
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Toggle_Allow_Func007003001() ) then
if ( Trig_Toggle_Allow_Func007003002001() ) then
call ForGroup( GetUnitsInRectOfPlayer(udg_COPName[udg_TempVariable], ConvertedPlayer(GetForLoopIndexA())), function Trig_Toggle_Allow_Func007003002002002 )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
if ( Trig_Toggle_Allow_Func008001() ) then
call SetUnitOwner( udg_Barracks[udg_TempVariable], ConvertedPlayer(udg_TempVariable2), true )
else
call DoNothing( )
endif
if ( Trig_Toggle_Allow_Func009001() ) then
call SetUnitOwner( udg_Towers[udg_TempVariable], ConvertedPlayer(udg_TempVariable2), true )
else
call DoNothing( )
endif
if ( Trig_Toggle_Allow_Func010001() ) then
set udg_AllowAllyAttack[udg_TempVariable] = false
else
call DoNothing( )
endif
if ( Trig_Toggle_Allow_Func011001() ) then
call SetUnitVertexColorBJ( udg_Barracks[udg_TempVariable], 100, 100, 100, 0 )
else
call DoNothing( )
endif
if ( Trig_Toggle_Allow_Func012001() ) then
call SetUnitVertexColorBJ( udg_Towers[udg_TempVariable], 100, 100, 100, 0 )
else
call DoNothing( )
endif
if ( Trig_Toggle_Allow_Func013001() ) then
return
else
call DoNothing( )
endif
if ( Trig_Toggle_Allow_Func014001() ) then
set udg_AllowAllyAttack[udg_TempVariable] = true
else
set udg_AllowAllyAttack[udg_TempVariable] = false
endif
if ( Trig_Toggle_Allow_Func015001() ) then
call DisplayTextToForce( GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit())), "TRIGSTR_292" )
else
call DisplayTextToForce( GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit())), "TRIGSTR_293" )
endif
if ( Trig_Toggle_Allow_Func016001() ) then
call SetUnitVertexColorBJ( udg_Barracks[udg_TempVariable], 100, 100, 100, 60.00 )
else
call SetUnitVertexColorBJ( udg_Barracks[udg_TempVariable], 100, 100, 100, 0 )
endif
if ( Trig_Toggle_Allow_Func017001() ) then
call SetUnitVertexColorBJ( udg_Towers[udg_TempVariable], 100, 100, 100, 60.00 )
else
call SetUnitVertexColorBJ( udg_Towers[udg_TempVariable], 100, 100, 100, 0 )
endif
endfunction
function InitTrig_Toggle_Allow takes nothing returns nothing
set gg_trg_Toggle_Allow = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Toggle_Allow, Player(0), EVENT_PLAYER_UNIT_TRAIN_START )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Toggle_Allow, Player(1), EVENT_PLAYER_UNIT_TRAIN_START )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Toggle_Allow, Player(2), EVENT_PLAYER_UNIT_TRAIN_START )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Toggle_Allow, Player(3), EVENT_PLAYER_UNIT_TRAIN_START )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Toggle_Allow, Player(4), EVENT_PLAYER_UNIT_TRAIN_START )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Toggle_Allow, Player(5), EVENT_PLAYER_UNIT_TRAIN_START )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Toggle_Allow, Player(6), EVENT_PLAYER_UNIT_TRAIN_START )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Toggle_Allow, Player(7), EVENT_PLAYER_UNIT_TRAIN_START )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Toggle_Allow, Player(8), EVENT_PLAYER_UNIT_TRAIN_START )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Toggle_Allow, Player(9), EVENT_PLAYER_UNIT_TRAIN_START )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Toggle_Allow, Player(10), EVENT_PLAYER_UNIT_TRAIN_START )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Toggle_Allow, Player(11), EVENT_PLAYER_UNIT_TRAIN_START )
call TriggerAddCondition( gg_trg_Toggle_Allow, Condition( function Trig_Toggle_Allow_Conditions ) )
call TriggerAddAction( gg_trg_Toggle_Allow, function Trig_Toggle_Allow_Actions )
endfunction
function Trig_Toggle_Cleanup_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'Huth' ) ) then
return false
endif
return true
endfunction
function Trig_Toggle_Cleanup_Actions takes nothing returns nothing
call RemoveUnit( GetTriggerUnit() )
endfunction
function InitTrig_Toggle_Cleanup takes nothing returns nothing
set gg_trg_Toggle_Cleanup = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Toggle_Cleanup, GetPlayableMapRect() )
call TriggerAddCondition( gg_trg_Toggle_Cleanup, Condition( function Trig_Toggle_Cleanup_Conditions ) )
call TriggerAddAction( gg_trg_Toggle_Cleanup, function Trig_Toggle_Cleanup_Actions )
endfunction
function Trig_Set_Team_Func004003001 takes nothing returns boolean
return ( GetPlayerSlotState(ConvertedPlayer(GetForLoopIndexA())) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Set_Team_Func006002 takes nothing returns nothing
call LeaderboardSetPlayerItemLabelBJ( GetEnumPlayer(), GetLastCreatedLeaderboard(), ( ( I2S(udg_TeamNumber[GetConvertedPlayerId(GetEnumPlayer())]) + "-" ) + ( GetPlayerName(GetEnumPlayer()) + ( "[" + ( I2S(GetConvertedPlayerId(GetEnumPlayer())) + "]" ) ) ) ) )
endfunction
function Trig_Set_Team_Func007002001 takes nothing returns boolean
return ( GetPlayerName(GetEnumPlayer()) == "SoulPimp" )
endfunction
function Trig_Set_Team_Func007002 takes nothing returns nothing
if ( Trig_Set_Team_Func007002001() ) then
call LeaderboardSetPlayerItemLabelBJ( GetEnumPlayer(), GetLastCreatedLeaderboard(), ( ( ( I2S(udg_TeamNumber[GetConvertedPlayerId(GetEnumPlayer())]) + "-" ) + "THE CREATOR!" ) + ( "[" + ( I2S(GetConvertedPlayerId(GetEnumPlayer())) + "]" ) ) ) )
else
call DoNothing( )
endif
endfunction
function Trig_Set_Team_Func008002001 takes nothing returns boolean
return ( GetPlayerName(GetEnumPlayer()) == "SoulPimp" )
endfunction
function Trig_Set_Team_Func008002 takes nothing returns nothing
if ( Trig_Set_Team_Func008002001() ) then
set udg_CreatorToggle = true
else
call DoNothing( )
endif
endfunction
function Trig_Set_Team_Func009003001 takes nothing returns boolean
return ( udg_isPlaying[GetForLoopIndexA()] == false )
endfunction
function Trig_Set_Team_Func010001001 takes nothing returns boolean
return ( udg_GameMode == 2 )
endfunction
function Trig_Set_Team_Func010001002 takes nothing returns boolean
return ( udg_GameMode == 5 )
endfunction
function Trig_Set_Team_Func010001 takes nothing returns boolean
return GetBooleanOr( Trig_Set_Team_Func010001001(), Trig_Set_Team_Func010001002() )
endfunction
function Trig_Set_Team_Actions takes nothing returns nothing
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set udg_TeamNumber[GetForLoopIndexA()] = 0
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set udg_NextTeamNumber = 1
set udg_AlliesFound = false
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Set_Team_Func004003001() ) then
call TriggerExecute( gg_trg_Next_Team_Number )
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call CommentString( "This runs for the first time even before a leaderboard is created (which is created at 5 Seconds)" )
call ForForce( GetPlayersAll(), function Trig_Set_Team_Func006002 )
call ForForce( GetPlayersAll(), function Trig_Set_Team_Func007002 )
call ForForce( GetPlayersAll(), function Trig_Set_Team_Func008002 )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Set_Team_Func009003001() ) then
call LeaderboardSetPlayerItemLabelBJ( ConvertedPlayer(GetForLoopIndexA()), GetLastCreatedLeaderboard(), ( ( I2S(udg_TeamNumber[GetForLoopIndexA()]) + "-" ) + ( GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) + "[*]" ) ) )
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
if ( Trig_Set_Team_Func010001() ) then
call LeaderboardSortItemsBJ( GetLastCreatedLeaderboard(), bj_SORTTYPE_SORTBYVALUE, false )
else
call LeaderboardSortItemsBJ( GetLastCreatedLeaderboard(), bj_SORTTYPE_SORTBYLABEL, true )
endif
endfunction
function InitTrig_Set_Team takes nothing returns nothing
set gg_trg_Set_Team = CreateTrigger( )
call TriggerAddAction( gg_trg_Set_Team, function Trig_Set_Team_Actions )
endfunction
function Trig_Next_Team_Number_Func001003001001 takes nothing returns boolean
return ( IsPlayerAlly(ConvertedPlayer(GetForLoopIndexB()), ConvertedPlayer(GetForLoopIndexA())) == true )
endfunction
function Trig_Next_Team_Number_Func001003001002001 takes nothing returns boolean
return ( ConvertedPlayer(GetForLoopIndexB()) != ConvertedPlayer(GetForLoopIndexA()) )
endfunction
function Trig_Next_Team_Number_Func001003001002002 takes nothing returns boolean
return ( udg_isPlaying[GetForLoopIndexB()] == true )
endfunction
function Trig_Next_Team_Number_Func001003001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Next_Team_Number_Func001003001002001(), Trig_Next_Team_Number_Func001003001002002() )
endfunction
function Trig_Next_Team_Number_Func001003001 takes nothing returns boolean
return GetBooleanAnd( Trig_Next_Team_Number_Func001003001001(), Trig_Next_Team_Number_Func001003001002() )
endfunction
function Trig_Next_Team_Number_Func002003001001 takes nothing returns boolean
return ( IsPlayerAlly(ConvertedPlayer(GetForLoopIndexB()), ConvertedPlayer(GetForLoopIndexA())) == true )
endfunction
function Trig_Next_Team_Number_Func002003001002 takes nothing returns boolean
return ( udg_TeamNumber[GetForLoopIndexB()] == 0 )
endfunction
function Trig_Next_Team_Number_Func002003001 takes nothing returns boolean
return GetBooleanAnd( Trig_Next_Team_Number_Func002003001001(), Trig_Next_Team_Number_Func002003001002() )
endfunction
function Trig_Next_Team_Number_Func003003001001 takes nothing returns boolean
return ( IsPlayerAlly(ConvertedPlayer(GetForLoopIndexB()), ConvertedPlayer(GetForLoopIndexA())) == true )
endfunction
function Trig_Next_Team_Number_Func003003001002 takes nothing returns boolean
return ( udg_TeamNumber[GetForLoopIndexB()] == 0 )
endfunction
function Trig_Next_Team_Number_Func003003001 takes nothing returns boolean
return GetBooleanAnd( Trig_Next_Team_Number_Func003003001001(), Trig_Next_Team_Number_Func003003001002() )
endfunction
function Trig_Next_Team_Number_Actions takes nothing returns nothing
set bj_forLoopBIndex = 1
set bj_forLoopBIndexEnd = 12
loop
exitwhen bj_forLoopBIndex > bj_forLoopBIndexEnd
if ( Trig_Next_Team_Number_Func001003001() ) then
set udg_AlliesFound = true
else
call DoNothing( )
endif
set bj_forLoopBIndex = bj_forLoopBIndex + 1
endloop
set bj_forLoopBIndex = 1
set bj_forLoopBIndexEnd = 12
loop
exitwhen bj_forLoopBIndex > bj_forLoopBIndexEnd
if ( Trig_Next_Team_Number_Func002003001() ) then
set udg_TeamNumber[GetForLoopIndexA()] = udg_NextTeamNumber
else
call DoNothing( )
endif
set bj_forLoopBIndex = bj_forLoopBIndex + 1
endloop
set bj_forLoopBIndex = 1
set bj_forLoopBIndexEnd = 12
loop
exitwhen bj_forLoopBIndex > bj_forLoopBIndexEnd
if ( Trig_Next_Team_Number_Func003003001() ) then
set udg_TeamNumber[GetForLoopIndexB()] = udg_TeamNumber[GetForLoopIndexA()]
else
call DoNothing( )
endif
set bj_forLoopBIndex = bj_forLoopBIndex + 1
endloop
set udg_NextTeamNumber = ( udg_NextTeamNumber + 1 )
endfunction
function InitTrig_Next_Team_Number takes nothing returns nothing
set gg_trg_Next_Team_Number = CreateTrigger( )
call TriggerAddAction( gg_trg_Next_Team_Number, function Trig_Next_Team_Number_Actions )
endfunction
function Trig_Player_Quits_Actions takes nothing returns nothing
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call ConditionalTriggerExecute( gg_trg_Defeat_Quitting_Player )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call TriggerExecute( gg_trg_Winning )
endfunction
function InitTrig_Player_Quits takes nothing returns nothing
set gg_trg_Player_Quits = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Player_Quits, 15.00 )
call TriggerAddAction( gg_trg_Player_Quits, function Trig_Player_Quits_Actions )
endfunction
function Trig_Defeat_Quitting_Player_Conditions takes nothing returns boolean
if ( not ( GetPlayerSlotState(ConvertedPlayer(GetForLoopIndexA())) != PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
if ( not ( udg_isPlaying[GetForLoopIndexA()] == true ) ) then
return false
endif
return true
endfunction
function Trig_Defeat_Quitting_Player_Func002001001 takes nothing returns boolean
return ( ConvertedPlayer(GetForLoopIndexA()) == Player(11) )
endfunction
function Trig_Defeat_Quitting_Player_Func002001002 takes nothing returns boolean
return ( udg_TeamNumber[12] == 0 )
endfunction
function Trig_Defeat_Quitting_Player_Func002001 takes nothing returns boolean
return GetBooleanAnd( Trig_Defeat_Quitting_Player_Func002001001(), Trig_Defeat_Quitting_Player_Func002001002() )
endfunction
function Trig_Defeat_Quitting_Player_Actions takes nothing returns nothing
call CommentString( "The next line is only for Game Start if Forced FFA during Game Setup is used!" )
if ( Trig_Defeat_Quitting_Player_Func002001() ) then
return
else
call DoNothing( )
endif
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) + " has left the game!" ) )
set udg_isPlaying[GetForLoopIndexA()] = false
call LeaderboardSetPlayerItemLabelBJ( ConvertedPlayer(GetForLoopIndexA()), GetLastCreatedLeaderboard(), ( ( I2S(udg_TeamNumber[GetForLoopIndexA()]) + "-" ) + ( GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) + "[*]" ) ) )
call CommentString( "MESSY, but I can't use Integer A or Integer B due to conflicts" )
set udg_TempVariable2 = 1
call ConditionalTriggerExecute( gg_trg_Enable_Share_Units )
set udg_TempVariable2 = 2
call ConditionalTriggerExecute( gg_trg_Enable_Share_Units )
set udg_TempVariable2 = 3
call ConditionalTriggerExecute( gg_trg_Enable_Share_Units )
set udg_TempVariable2 = 4
call ConditionalTriggerExecute( gg_trg_Enable_Share_Units )
set udg_TempVariable2 = 5
call ConditionalTriggerExecute( gg_trg_Enable_Share_Units )
set udg_TempVariable2 = 6
call ConditionalTriggerExecute( gg_trg_Enable_Share_Units )
set udg_TempVariable2 = 7
call ConditionalTriggerExecute( gg_trg_Enable_Share_Units )
set udg_TempVariable2 = 8
call ConditionalTriggerExecute( gg_trg_Enable_Share_Units )
set udg_TempVariable2 = 9
call ConditionalTriggerExecute( gg_trg_Enable_Share_Units )
set udg_TempVariable2 = 10
call ConditionalTriggerExecute( gg_trg_Enable_Share_Units )
set udg_TempVariable2 = 11
call ConditionalTriggerExecute( gg_trg_Enable_Share_Units )
set udg_TempVariable2 = 12
call ConditionalTriggerExecute( gg_trg_Enable_Share_Units )
endfunction
function InitTrig_Defeat_Quitting_Player takes nothing returns nothing
set gg_trg_Defeat_Quitting_Player = CreateTrigger( )
call TriggerAddCondition( gg_trg_Defeat_Quitting_Player, Condition( function Trig_Defeat_Quitting_Player_Conditions ) )
call TriggerAddAction( gg_trg_Defeat_Quitting_Player, function Trig_Defeat_Quitting_Player_Actions )
endfunction
function Trig_Enable_Share_Units_Conditions takes nothing returns boolean
if ( not ( IsPlayerAlly(ConvertedPlayer(udg_TempVariable2), ConvertedPlayer(GetForLoopIndexA())) == true ) ) then
return false
endif
if ( not ( ConvertedPlayer(udg_TempVariable2) != ConvertedPlayer(GetForLoopIndexA()) ) ) then
return false
endif
return true
endfunction
function Trig_Enable_Share_Units_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ( ConvertedPlayer(GetForLoopIndexA()), ConvertedPlayer(udg_TempVariable2), bj_ALLIANCE_ALLIED_ADVUNITS )
call SetPlayerAllianceBJ( ConvertedPlayer(GetForLoopIndexA()), ALLIANCE_SHARED_ADVANCED_CONTROL, true, ConvertedPlayer(udg_TempVariable2) )
endfunction
function InitTrig_Enable_Share_Units takes nothing returns nothing
set gg_trg_Enable_Share_Units = CreateTrigger( )
call TriggerAddCondition( gg_trg_Enable_Share_Units, Condition( function Trig_Enable_Share_Units_Conditions ) )
call TriggerAddAction( gg_trg_Enable_Share_Units, function Trig_Enable_Share_Units_Actions )
endfunction
function Trig_Crate_Bonus_Func001001 takes nothing returns boolean
return ( udg_CrateBonusPlayer == Player(bj_PLAYER_NEUTRAL_VICTIM) )
endfunction
function Trig_Crate_Bonus_Actions takes nothing returns nothing
if ( Trig_Crate_Bonus_Func001001() ) then
return
else
call DoNothing( )
endif
call CreateNUnitsAtLoc( 1, 'hmtt', udg_CrateBonusPlayer, udg_Crates, bj_UNIT_FACING )
set udg_CrateBonusPlayer = Player(bj_PLAYER_NEUTRAL_VICTIM)
endfunction
function InitTrig_Crate_Bonus takes nothing returns nothing
set gg_trg_Crate_Bonus = CreateTrigger( )
call TriggerRegisterDeathEvent( gg_trg_Crate_Bonus, gg_dest_LTcr_0783 )
call TriggerRegisterDeathEvent( gg_trg_Crate_Bonus, gg_dest_LTcr_0777 )
call TriggerRegisterDeathEvent( gg_trg_Crate_Bonus, gg_dest_LTcr_0778 )
call TriggerRegisterDeathEvent( gg_trg_Crate_Bonus, gg_dest_LTcr_0782 )
call TriggerRegisterDeathEvent( gg_trg_Crate_Bonus, gg_dest_LTcr_0733 )
call TriggerAddAction( gg_trg_Crate_Bonus, function Trig_Crate_Bonus_Actions )
endfunction
function Trig_Hire_Osama_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetEnteringUnit()) == 'nvil' ) ) then
return false
endif
return true
endfunction
function Trig_Hire_Osama_Func002001 takes nothing returns boolean
return ( udg_UnitsReceived[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))] != 4 )
endfunction
function Trig_Hire_Osama_Func003001 takes nothing returns boolean
return ( udg_UnitsReceived[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))] != 4 )
endfunction
function Trig_Hire_Osama_Actions takes nothing returns nothing
call RemoveUnit( GetTriggerUnit() )
if ( Trig_Hire_Osama_Func002001() ) then
call DisplayTextToForce( GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit())), "TRIGSTR_449" )
else
call DoNothing( )
endif
if ( Trig_Hire_Osama_Func003001() ) then
return
else
call DoNothing( )
endif
call DisplayTextToForce( GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit())), "TRIGSTR_441" )
set udg_CrateBonusPlayer = GetOwningPlayer(GetTriggerUnit())
endfunction
function InitTrig_Hire_Osama takes nothing returns nothing
set gg_trg_Hire_Osama = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Hire_Osama, GetPlayableMapRect() )
call TriggerAddCondition( gg_trg_Hire_Osama, Condition( function Trig_Hire_Osama_Conditions ) )
call TriggerAddAction( gg_trg_Hire_Osama, function Trig_Hire_Osama_Actions )
endfunction
function Trig_Help_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_648" )
endfunction
function InitTrig_Help takes nothing returns nothing
set gg_trg_Help = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Help, 15.00 )
call TriggerAddAction( gg_trg_Help, function Trig_Help_Actions )
endfunction
function Trig_Enable_Votekick_Func016001 takes nothing returns boolean
return ( SubStringBJ(GetEventPlayerChatString(), 8, 16) == "towervote" )
endfunction
function Trig_Enable_Votekick_Func016002 takes nothing returns boolean
return ( SubStringBJ(GetEventPlayerChatString(), 8, 14) == "ffavote" )
endfunction
function Trig_Enable_Votekick_Conditions takes nothing returns boolean
if ( not ( udg_isVoteActive == false ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Enable_Votekick_Func016001(), Trig_Enable_Votekick_Func016002() ) ) then
return false
endif
return true
endfunction
function Trig_Enable_Votekick_Func001001 takes nothing returns boolean
return ( SubStringBJ(GetEventPlayerChatString(), 8, 16) == "towervote" )
endfunction
function Trig_Enable_Votekick_Func002001001 takes nothing returns boolean
return ( udg_VoteType == "TowerVote" )
endfunction
function Trig_Enable_Votekick_Func002001002 takes nothing returns boolean
return ( udg_TowersInPlay == false )
endfunction
function Trig_Enable_Votekick_Func002001 takes nothing returns boolean
return GetBooleanAnd( Trig_Enable_Votekick_Func002001001(), Trig_Enable_Votekick_Func002001002() )
endfunction
function Trig_Enable_Votekick_Func003001001 takes nothing returns boolean
return ( udg_VoteType == "TowerVote" )
endfunction
function Trig_Enable_Votekick_Func003001002 takes nothing returns boolean
return ( udg_TowersInPlay == false )
endfunction
function Trig_Enable_Votekick_Func003001 takes nothing returns boolean
return GetBooleanAnd( Trig_Enable_Votekick_Func003001001(), Trig_Enable_Votekick_Func003001002() )
endfunction
function Trig_Enable_Votekick_Func009001 takes nothing returns boolean
return ( udg_VoteType == "TowerVote" )
endfunction
function Trig_Enable_Votekick_Func009003001001 takes nothing returns boolean
return ( udg_GameMode != 2 )
endfunction
function Trig_Enable_Votekick_Func009003001002 takes nothing returns boolean
return ( udg_GameMode != 5 )
endfunction
function Trig_Enable_Votekick_Func009003001 takes nothing returns boolean
return GetBooleanAnd( Trig_Enable_Votekick_Func009003001001(), Trig_Enable_Votekick_Func009003001002() )
endfunction
function Trig_Enable_Votekick_Func011003001001 takes nothing returns boolean
return ( GetPlayerSlotState(ConvertedPlayer(GetForLoopIndexA())) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Enable_Votekick_Func011003001002 takes nothing returns boolean
return ( GetPlayerController(ConvertedPlayer(GetForLoopIndexA())) == MAP_CONTROL_USER )
endfunction
function Trig_Enable_Votekick_Func011003001 takes nothing returns boolean
return GetBooleanAnd( Trig_Enable_Votekick_Func011003001001(), Trig_Enable_Votekick_Func011003001002() )
endfunction
function Trig_Enable_Votekick_Actions takes nothing returns nothing
if ( Trig_Enable_Votekick_Func001001() ) then
set udg_VoteType = "TowerVote"
else
set udg_VoteType = "FFAVote"
endif
if ( Trig_Enable_Votekick_Func002001() ) then
call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "TRIGSTR_711" )
else
call DoNothing( )
endif
if ( Trig_Enable_Votekick_Func003001() ) then
return
else
call DoNothing( )
endif
set udg_isVoteActive = true
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set udg_Votes[GetForLoopIndexA()] = 0
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set udg_Vote_Results = 0
call DisplayTextToForce( GetPlayersAll(), ( udg_VoteType + " System(tm) activated..." ) )
call DisplayTimedTextToForce( GetPlayersAll(), 15.00, ( "Current Mode: " + udg_GameModeDesc[udg_GameMode] ) )
if ( Trig_Enable_Votekick_Func009001() ) then
call DisplayTimedTextToForce( GetPlayersAll(), 15.00, "TRIGSTR_079" )
else
if ( Trig_Enable_Votekick_Func009003001() ) then
call DisplayTimedTextToForce( GetPlayersAll(), 15.00, "TRIGSTR_080" )
else
call DisplayTimedTextToForce( GetPlayersAll(), 15.00, "TRIGSTR_081" )
endif
endif
set udg_ActivePlayers = 0
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Enable_Votekick_Func011003001() ) then
set udg_ActivePlayers = ( udg_ActivePlayers + 1 )
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set udg_Vote_Results_No = udg_ActivePlayers
call CreateTimerDialogBJ( udg_TowerTimer, ( udg_VoteType + ( " Y=0 N=" + I2S(udg_ActivePlayers) ) ) )
call StartTimerBJ( udg_TowerTimer, false, 30 )
endfunction
function InitTrig_Enable_Votekick takes nothing returns nothing
set gg_trg_Enable_Votekick = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Enable_Votekick, Player(0), "enable", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Enable_Votekick, Player(1), "enable", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Enable_Votekick, Player(2), "enable", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Enable_Votekick, Player(3), "enable", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Enable_Votekick, Player(4), "enable", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Enable_Votekick, Player(5), "enable", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Enable_Votekick, Player(6), "enable", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Enable_Votekick, Player(7), "enable", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Enable_Votekick, Player(8), "enable", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Enable_Votekick, Player(9), "enable", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Enable_Votekick, Player(10), "enable", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Enable_Votekick, Player(11), "enable", false )
call TriggerAddCondition( gg_trg_Enable_Votekick, Condition( function Trig_Enable_Votekick_Conditions ) )
call TriggerAddAction( gg_trg_Enable_Votekick, function Trig_Enable_Votekick_Actions )
endfunction
function Trig_Vote_Yes_Entered_Conditions takes nothing returns boolean
if ( not ( udg_isVoteActive == true ) ) then
return false
endif
return true
endfunction
function Trig_Vote_Yes_Entered_Func002001 takes nothing returns boolean
return ( udg_VoteType == "TowerVote" )
endfunction
function Trig_Vote_Yes_Entered_Func002003001001 takes nothing returns boolean
return ( udg_GameMode != 2 )
endfunction
function Trig_Vote_Yes_Entered_Func002003001002 takes nothing returns boolean
return ( udg_GameMode != 5 )
endfunction
function Trig_Vote_Yes_Entered_Func002003001 takes nothing returns boolean
return GetBooleanAnd( Trig_Vote_Yes_Entered_Func002003001001(), Trig_Vote_Yes_Entered_Func002003001002() )
endfunction
function Trig_Vote_Yes_Entered_Func003001 takes nothing returns boolean
return ( udg_Votes[GetConvertedPlayerId(GetTriggerPlayer())] == 1 )
endfunction
function Trig_Vote_Yes_Entered_Actions takes nothing returns nothing
if ( Trig_Vote_Yes_Entered_Func002001() ) then
call DisplayTextToForce( GetPlayersAll(), ( udg_VoteType + " System : Vote to disable Towers registered." ) )
else
if ( Trig_Vote_Yes_Entered_Func002003001() ) then
call DisplayTextToForce( GetPlayersAll(), ( udg_VoteType + " System : Vote to FORCE FFA Mode registered." ) )
else
call DisplayTextToForce( GetPlayersAll(), ( udg_VoteType + " System : Vote to allow ALLIES (Teams) registered." ) )
endif
endif
if ( Trig_Vote_Yes_Entered_Func003001() ) then
return
else
call DoNothing( )
endif
set udg_Votes[GetConvertedPlayerId(GetTriggerPlayer())] = 1
set udg_Vote_Results = ( udg_Vote_Results + 1 )
set udg_Vote_Results_No = ( udg_Vote_Results_No - 1 )
call TimerDialogSetTitleBJ( GetLastCreatedTimerDialogBJ(), ( udg_VoteType + ( " Y=" + ( I2S(udg_Vote_Results) + ( " N=" + I2S(udg_Vote_Results_No) ) ) ) ) )
endfunction
function InitTrig_Vote_Yes_Entered takes nothing returns nothing
set gg_trg_Vote_Yes_Entered = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_Yes_Entered, Player(0), "vote yes", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_Yes_Entered, Player(1), "vote yes", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_Yes_Entered, Player(2), "vote yes", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_Yes_Entered, Player(3), "vote yes", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_Yes_Entered, Player(4), "vote yes", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_Yes_Entered, Player(5), "vote yes", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_Yes_Entered, Player(6), "vote yes", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_Yes_Entered, Player(7), "vote yes", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_Yes_Entered, Player(8), "vote yes", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_Yes_Entered, Player(9), "vote yes", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_Yes_Entered, Player(10), "vote yes", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_Yes_Entered, Player(11), "vote yes", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_Yes_Entered, Player(0), "yes", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_Yes_Entered, Player(1), "yes", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_Yes_Entered, Player(2), "yes", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_Yes_Entered, Player(3), "yes", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_Yes_Entered, Player(4), "yes", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_Yes_Entered, Player(5), "yes", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_Yes_Entered, Player(6), "yes", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_Yes_Entered, Player(7), "yes", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_Yes_Entered, Player(8), "yes", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_Yes_Entered, Player(9), "yes", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_Yes_Entered, Player(10), "yes", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_Yes_Entered, Player(11), "yes", true )
call TriggerAddCondition( gg_trg_Vote_Yes_Entered, Condition( function Trig_Vote_Yes_Entered_Conditions ) )
call TriggerAddAction( gg_trg_Vote_Yes_Entered, function Trig_Vote_Yes_Entered_Actions )
endfunction
function Trig_Vote_No_Entered_Conditions takes nothing returns boolean
if ( not ( udg_isVoteActive == true ) ) then
return false
endif
return true
endfunction
function Trig_Vote_No_Entered_Func001001 takes nothing returns boolean
return ( udg_VoteType == "TowerVote" )
endfunction
function Trig_Vote_No_Entered_Func001003001001 takes nothing returns boolean
return ( udg_GameMode != 2 )
endfunction
function Trig_Vote_No_Entered_Func001003001002 takes nothing returns boolean
return ( udg_GameMode != 5 )
endfunction
function Trig_Vote_No_Entered_Func001003001 takes nothing returns boolean
return GetBooleanAnd( Trig_Vote_No_Entered_Func001003001001(), Trig_Vote_No_Entered_Func001003001002() )
endfunction
function Trig_Vote_No_Entered_Func002001 takes nothing returns boolean
return ( udg_Votes[GetConvertedPlayerId(GetTriggerPlayer())] == 0 )
endfunction
function Trig_Vote_No_Entered_Actions takes nothing returns nothing
if ( Trig_Vote_No_Entered_Func001001() ) then
call DisplayTextToForce( GetPlayersAll(), ( udg_VoteType + " System : Vote to enable Towers registered." ) )
else
if ( Trig_Vote_No_Entered_Func001003001() ) then
call DisplayTextToForce( GetPlayersAll(), ( udg_VoteType + " System : Vote to allow ALLIES (Teams) registered." ) )
else
call DisplayTextToForce( GetPlayersAll(), ( udg_VoteType + " System : Vote to FORCE FFA Mode registered." ) )
endif
endif
if ( Trig_Vote_No_Entered_Func002001() ) then
return
else
call DoNothing( )
endif
set udg_Votes[GetConvertedPlayerId(GetTriggerPlayer())] = 0
set udg_Vote_Results = ( udg_Vote_Results - 1 )
set udg_Vote_Results_No = ( udg_Vote_Results_No + 1 )
call TimerDialogSetTitleBJ( GetLastCreatedTimerDialogBJ(), ( udg_VoteType + ( " Y=" + ( I2S(udg_Vote_Results) + ( " N=" + I2S(udg_Vote_Results_No) ) ) ) ) )
endfunction
function InitTrig_Vote_No_Entered takes nothing returns nothing
set gg_trg_Vote_No_Entered = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_No_Entered, Player(0), "vote no", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_No_Entered, Player(1), "vote no", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_No_Entered, Player(2), "vote no", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_No_Entered, Player(3), "vote no", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_No_Entered, Player(4), "vote no", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_No_Entered, Player(5), "vote no", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_No_Entered, Player(6), "vote no", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_No_Entered, Player(7), "vote no", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_No_Entered, Player(8), "vote no", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_No_Entered, Player(9), "vote no", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_No_Entered, Player(10), "vote no", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_No_Entered, Player(11), "vote no", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_No_Entered, Player(0), "no", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_No_Entered, Player(1), "no", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_No_Entered, Player(2), "no", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_No_Entered, Player(3), "no", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_No_Entered, Player(4), "no", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_No_Entered, Player(5), "no", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_No_Entered, Player(6), "no", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_No_Entered, Player(7), "no", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_No_Entered, Player(8), "no", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_No_Entered, Player(9), "no", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_No_Entered, Player(10), "no", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Vote_No_Entered, Player(11), "no", true )
call TriggerAddCondition( gg_trg_Vote_No_Entered, Condition( function Trig_Vote_No_Entered_Conditions ) )
call TriggerAddAction( gg_trg_Vote_No_Entered, function Trig_Vote_No_Entered_Actions )
endfunction
function Trig_TowerVote_End_Func002003001 takes nothing returns boolean
return ( udg_Votes[GetForLoopIndexA()] == 1 )
endfunction
function Trig_TowerVote_End_Func005001 takes nothing returns boolean
return ( udg_VoteType == "TowerVote" )
endfunction
function Trig_TowerVote_End_Func005002001 takes nothing returns boolean
return ( udg_Vote_Results > ( udg_ActivePlayers / 2 ) )
endfunction
function Trig_TowerVote_End_Func006001 takes nothing returns boolean
return ( udg_VoteType == "FFAVote" )
endfunction
function Trig_TowerVote_End_Func006002001 takes nothing returns boolean
return ( udg_Vote_Results > ( udg_ActivePlayers / 2 ) )
endfunction
function Trig_TowerVote_End_Func006002002001001 takes nothing returns boolean
return ( udg_GameMode != 2 )
endfunction
function Trig_TowerVote_End_Func006002002001002 takes nothing returns boolean
return ( udg_GameMode != 5 )
endfunction
function Trig_TowerVote_End_Func006002002001 takes nothing returns boolean
return GetBooleanAnd( Trig_TowerVote_End_Func006002002001001(), Trig_TowerVote_End_Func006002002001002() )
endfunction
function Trig_TowerVote_End_Func006002002002001 takes nothing returns boolean
return ( udg_GameMode < 4 )
endfunction
function Trig_TowerVote_End_Func006002002003001 takes nothing returns boolean
return ( udg_GameMode < 4 )
endfunction
function Trig_TowerVote_End_Func014001 takes nothing returns boolean
return ( udg_VoteType == "TowerVote" )
endfunction
function Trig_TowerVote_End_Func014002001 takes nothing returns boolean
return ( udg_TowersInPlay == false )
endfunction
function Trig_TowerVote_End_Func015001 takes nothing returns boolean
return ( udg_VoteType == "TowerVote" )
endfunction
function Trig_TowerVote_End_Func015002001 takes nothing returns boolean
return ( udg_TowersInPlay == false )
endfunction
function Trig_TowerVote_End_Func015002002002 takes nothing returns nothing
call PauseUnitBJ( true, GetEnumUnit() )
endfunction
function Trig_TowerVote_End_Func016001 takes nothing returns boolean
return ( udg_VoteType == "TowerVote" )
endfunction
function Trig_TowerVote_End_Func016002001 takes nothing returns boolean
return ( udg_TowersInPlay == false )
endfunction
function Trig_TowerVote_End_Func016002002001 takes nothing returns boolean
return ( udg_GameMode < 4 )
endfunction
function Trig_TowerVote_End_Func017001 takes nothing returns boolean
return ( udg_VoteType == "FFAVote" )
endfunction
function Trig_TowerVote_End_Func017002001001 takes nothing returns boolean
return ( udg_GameMode != 2 )
endfunction
function Trig_TowerVote_End_Func017002001002 takes nothing returns boolean
return ( udg_GameMode != 5 )
endfunction
function Trig_TowerVote_End_Func017002001 takes nothing returns boolean
return GetBooleanAnd( Trig_TowerVote_End_Func017002001001(), Trig_TowerVote_End_Func017002001002() )
endfunction
function Trig_TowerVote_End_Func020001 takes nothing returns boolean
return ( udg_VoteType == "FFAVote" )
endfunction
function Trig_TowerVote_End_Func020002001001 takes nothing returns boolean
return ( udg_GameMode == 2 )
endfunction
function Trig_TowerVote_End_Func020002001002 takes nothing returns boolean
return ( udg_GameMode == 5 )
endfunction
function Trig_TowerVote_End_Func020002001 takes nothing returns boolean
return GetBooleanOr( Trig_TowerVote_End_Func020002001001(), Trig_TowerVote_End_Func020002001002() )
endfunction
function Trig_TowerVote_End_Func020002002003002001 takes nothing returns boolean
return ( ConvertedPlayer(GetForLoopIndexA()) != GetEnumPlayer() )
endfunction
function Trig_TowerVote_End_Func020002002003002 takes nothing returns nothing
if ( Trig_TowerVote_End_Func020002002003002001() ) then
call SetPlayerAllianceStateBJ( ConvertedPlayer(GetForLoopIndexA()), GetEnumPlayer(), bj_ALLIANCE_UNALLIED )
else
call DoNothing( )
endif
endfunction
function Trig_TowerVote_End_Func021001 takes nothing returns boolean
return ( udg_VoteType == "FFAVote" )
endfunction
function Trig_TowerVote_End_Actions takes nothing returns nothing
set udg_Vote_Results = 0
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_TowerVote_End_Func002003001() ) then
set udg_Vote_Results = ( udg_Vote_Results + 1 )
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
if ( Trig_TowerVote_End_Func005001() ) then
if ( Trig_TowerVote_End_Func005002001() ) then
set udg_TowersInPlay = false
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_TowerVote_End_Func006001() ) then
if ( Trig_TowerVote_End_Func006002001() ) then
if ( Trig_TowerVote_End_Func006002002001() ) then
if ( Trig_TowerVote_End_Func006002002002001() ) then
set udg_GameMode = 2
else
set udg_GameMode = 5
endif
else
if ( Trig_TowerVote_End_Func006002002003001() ) then
set udg_GameMode = 1
else
set udg_GameMode = 4
endif
endif
else
call DoNothing( )
endif
else
call DoNothing( )
endif
call CommentString( "What about COMP Players?" )
call CommentString( "What about COMP Players?" )
if ( Trig_TowerVote_End_Func014001() ) then
if ( Trig_TowerVote_End_Func014002001() ) then
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_953" )
else
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_954" )
endif
else
call DoNothing( )
endif
if ( Trig_TowerVote_End_Func015001() ) then
if ( Trig_TowerVote_End_Func015002001() ) then
call ForGroup( GetUnitsOfTypeIdAll('hgtw'), function Trig_TowerVote_End_Func015002002002 )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_TowerVote_End_Func016001() ) then
if ( Trig_TowerVote_End_Func016002001() ) then
if ( Trig_TowerVote_End_Func016002002001() ) then
set udg_GameMode = ( udg_GameMode + 3 )
else
set udg_GameMode = ( udg_GameMode - 3 )
endif
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_TowerVote_End_Func017001() ) then
if ( Trig_TowerVote_End_Func017002001() ) then
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_000" )
else
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_006" )
endif
else
call DoNothing( )
endif
call LeaderboardSetPlayerItemLabelBJ( Player(bj_PLAYER_NEUTRAL_VICTIM), GetLastCreatedLeaderboard(), udg_GameModeDesc[udg_GameMode] )
call DisplayTextToForce( GetPlayersAll(), ( udg_VoteType + " System(tm) deactivated..." ) )
if ( Trig_TowerVote_End_Func020001() ) then
if ( Trig_TowerVote_End_Func020002001() ) then
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call ForForce( GetPlayersAll(), function Trig_TowerVote_End_Func020002002003002 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
else
call DoNothing( )
endif
else
call DoNothing( )
endif
if ( Trig_TowerVote_End_Func021001() ) then
call TriggerExecute( gg_trg_Set_Team )
else
call DoNothing( )
endif
call DestroyTimerDialogBJ( GetLastCreatedTimerDialogBJ() )
set udg_isVoteActive = false
endfunction
function InitTrig_TowerVote_End takes nothing returns nothing
set gg_trg_TowerVote_End = CreateTrigger( )
call TriggerRegisterTimerExpireEventBJ( gg_trg_TowerVote_End, udg_TowerTimer )
call TriggerAddAction( gg_trg_TowerVote_End, function Trig_TowerVote_End_Actions )
endfunction
function Trig_THE_CREATOR_Conditions takes nothing returns boolean
if ( not ( udg_SoulPimpInGame == true ) ) then
return false
endif
return true
endfunction
function Trig_THE_CREATOR_Func001001 takes nothing returns boolean
return ( udg_CreatorToggle == true )
endfunction
function Trig_THE_CREATOR_Actions takes nothing returns nothing
if ( Trig_THE_CREATOR_Func001001() ) then
call TriggerExecute( gg_trg_Creator1 )
else
call TriggerExecute( gg_trg_Creator2 )
endif
endfunction
function InitTrig_THE_CREATOR takes nothing returns nothing
set gg_trg_THE_CREATOR = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_THE_CREATOR, 5.00 )
call TriggerAddCondition( gg_trg_THE_CREATOR, Condition( function Trig_THE_CREATOR_Conditions ) )
call TriggerAddAction( gg_trg_THE_CREATOR, function Trig_THE_CREATOR_Actions )
endfunction
function Trig_Creator1_Func001002001 takes nothing returns boolean
return ( GetPlayerName(GetEnumPlayer()) == "SoulPimp" )
endfunction
function Trig_Creator1_Func001002 takes nothing returns nothing
if ( Trig_Creator1_Func001002001() ) then
call LeaderboardSetPlayerItemLabelBJ( GetEnumPlayer(), GetLastCreatedLeaderboard(), ( ( ( I2S(udg_TeamNumber[GetConvertedPlayerId(GetEnumPlayer())]) + "-" ) + GetPlayerName(GetEnumPlayer()) ) + ( "[" + ( I2S(GetConvertedPlayerId(GetEnumPlayer())) + "]" ) ) ) )
else
call DoNothing( )
endif
endfunction
function Trig_Creator1_Actions takes nothing returns nothing
call ForForce( GetPlayersAll(), function Trig_Creator1_Func001002 )
set udg_CreatorToggle = false
endfunction
function InitTrig_Creator1 takes nothing returns nothing
set gg_trg_Creator1 = CreateTrigger( )
call TriggerAddAction( gg_trg_Creator1, function Trig_Creator1_Actions )
endfunction
function Trig_Creator2_Func001002001 takes nothing returns boolean
return ( GetPlayerName(GetEnumPlayer()) == "SoulPimp" )
endfunction
function Trig_Creator2_Func001002 takes nothing returns nothing
if ( Trig_Creator2_Func001002001() ) then
call LeaderboardSetPlayerItemLabelBJ( GetEnumPlayer(), GetLastCreatedLeaderboard(), ( ( ( I2S(udg_TeamNumber[GetConvertedPlayerId(GetEnumPlayer())]) + "-" ) + "THE CREATOR!" ) + ( "[" + ( I2S(GetConvertedPlayerId(GetEnumPlayer())) + "]" ) ) ) )
else
call DoNothing( )
endif
endfunction
function Trig_Creator2_Actions takes nothing returns nothing
call ForForce( GetPlayersAll(), function Trig_Creator2_Func001002 )
set udg_CreatorToggle = true
endfunction
function InitTrig_Creator2 takes nothing returns nothing
set gg_trg_Creator2 = CreateTrigger( )
call TriggerAddAction( gg_trg_Creator2, function Trig_Creator2_Actions )
endfunction