Name | Type | is_array | initial_value |
AttackToHuman | rect | No | |
AttackToOrc | rect | No | |
count | integer | No | |
CreateAtHuman | rect | No | |
CreateAtOrc | rect | No | |
DropText | string | No | has surrendered |
Heroes | unit | Yes | |
HumansLeft | integer | No | 0 |
HumanTower | unit | No | |
JerkPlayer | player | No | |
JerkUnit | unit | No | |
OrcsLeft | integer | No | 0 |
Tower | unit | No | |
TowersHBL | integer | Yes | |
TowersHBU | integer | Yes | |
TowersHN | integer | Yes | |
TowersHW | integer | Yes | |
TowersOBL | integer | Yes | |
TowersOBU | integer | Yes | |
TowersOE | integer | Yes | |
TowersOS | integer | Yes |
//===========================================================================
//
// Code Comments
//
//
//TOWERS
// This code was designed to fill in arrays with the current towers built for each side
//and what location they are in. I left SetHumanBaseLower in point-and-click format while
//the rest were converted to text code.
//
//WAYPOINTS
// Initially these are off since attacking forces do not need to be redirected to a
//different attack location. These are turned on when a base dies.
//
//BASE DIES
// Turns on waypoints to redirect attacking troops to next attack location and send
//current troops in the area to next attack location.
//
//CONTROL SPAWNS
// Instead of having each area with its own spawn Event, I combined everything so that two Events
//control all of the spawning. I also spaced the spawning out in hopes this would improve performance.
//
//HUMANUNITSPAWNS & ORCUNITSPAWNS
// Altered to use the arrays from TOWERS and got rid of the Events for each one.
//
//KICKINBUTT
// In massive battles troops have a tendency to get stuck or forget their attack orders, so
//this is designed to help keep things flowing.
//
//JerkWhomper
// Added this in for those idiots who try to ruin the game for everyone. This only applies to
//structures since I expect the players to handle some of this by themselves (plus I don't want
//to kill someone for a mistaken attack on troops). This won't get rid of all jerks, but should help
//encourage them to leave.
//
//GENERAL COMMENTS
// I fixed some pathing issues such as troops running by the main base in the NE and SE
//corners. Created arrays to track towers vs just grabbing everything within a certain range of
//bases. The idea of the arrays was good, but it would have been better if I had a CASE statement
//to use as well as the ability to copy an array in its entirety with one command. I am sure I made
//mistakes in here or someone might have a better idea of how to do things, but what the heck, it is
//a fun map and a good learning experience! Also increased defense by main castle, raised HP of towers,
//added three new towers for each side, raised HP of Castles, turned off triggers when they were no
//longer needed, and overall tried to keep the game flowing in its later stages. I also got rid of any
// trigger|item|etc not being used. Altered bottom Main base exit for Orcs to help alleviate jams.
//
//CATAGORIES NOT ALTERED
//Map Initialization (except to have opening statement say Mithril and got rid of SetTeams trigger)
//Respawn
//SelectHeroHuman
//SelectHeroOrc
//MakePassiveHeroHuman
//MakePassiveHeroOrc
//DroppedPlayerHuman
//DroppedPlayerOrc
//
//MAP ALTERED BY: BrutusBattleAxe (altered from Platinum version)
//IDEAS & PLAYTESTING BY: broodbozo, Sxar, valgaav
function Trig_SetHumanBaseUpper_Func001001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('hC49')) == true )
endfunction
function Trig_SetHumanBaseUpper_Func001003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('nC83')) == true )
endfunction
function Trig_SetHumanBaseUpper_Func001003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('nC82')) == true )
endfunction
function Trig_SetHumanBaseUpper_Func001003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('nC84')) == true )
endfunction
function Trig_SetHumanBaseUpper_Func001003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('hC45')) == true )
endfunction
function Trig_SetHumanBaseUpper_Func001003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('hC50')) == true )
endfunction
function Trig_SetHumanBaseUpper_Func001003003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('hC46')) == true )
endfunction
function Trig_SetHumanBaseUpper_Func001003003003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('hC47')) == true )
endfunction
function Trig_SetHumanBaseUpper_Func001003003003003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('nC85')) == true )
endfunction
function Trig_SetHumanBaseUpper_Func001003003003003003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('nC87')) == true )
endfunction
function Trig_SetHumanBaseUpper_Func001003003003003003003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('nC86')) == true )
endfunction
function Trig_SetHumanBaseUpper_Func001003003003003003003003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('hC23')) == true )
endfunction
function Trig_SetHumanBaseUpper_Actions takes nothing returns nothing
if ( Trig_SetHumanBaseUpper_Func001001() ) then
set udg_TowersHBU[0] = ( udg_TowersHBU[0] + udg_count )
else
if ( Trig_SetHumanBaseUpper_Func001003001() ) then
set udg_TowersHBU[1] = ( udg_TowersHBU[1] + udg_count )
else
if ( Trig_SetHumanBaseUpper_Func001003003001() ) then
set udg_TowersHBU[2] = ( udg_TowersHBU[2] + udg_count )
else
if ( Trig_SetHumanBaseUpper_Func001003003003001() ) then
set udg_TowersHBU[3] = ( udg_TowersHBU[3] + udg_count )
else
if ( Trig_SetHumanBaseUpper_Func001003003003003001() ) then
set udg_TowersHBU[4] = ( udg_TowersHBU[4] + udg_count )
else
if ( Trig_SetHumanBaseUpper_Func001003003003003003001() ) then
set udg_TowersHBU[5] = ( udg_TowersHBU[5] + udg_count )
else
if ( Trig_SetHumanBaseUpper_Func001003003003003003003001() ) then
set udg_TowersHBU[6] = ( udg_TowersHBU[6] + udg_count )
else
if ( Trig_SetHumanBaseUpper_Func001003003003003003003003001() ) then
set udg_TowersHBU[7] = ( udg_TowersHBU[7] + udg_count )
else
if ( Trig_SetHumanBaseUpper_Func001003003003003003003003003001() ) then
set udg_TowersHBU[8] = ( udg_TowersHBU[8] + udg_count )
else
if ( Trig_SetHumanBaseUpper_Func001003003003003003003003003003001() ) then
set udg_TowersHBU[9] = ( udg_TowersHBU[9] + udg_count )
else
if ( Trig_SetHumanBaseUpper_Func001003003003003003003003003003003001() ) then
set udg_TowersHBU[10] = ( udg_TowersHBU[10] + udg_count )
else
if ( Trig_SetHumanBaseUpper_Func001003003003003003003003003003003003001() ) then
set udg_TowersHBU[11] = ( udg_TowersHBU[11] + udg_count )
else
call DoNothing( )
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endfunction
//===========================================================================
function InitTrig_SetHumanBaseUpper takes nothing returns nothing
set gg_trg_SetHumanBaseUpper = CreateTrigger( )
call TriggerAddAction( gg_trg_SetHumanBaseUpper, function Trig_SetHumanBaseUpper_Actions )
endfunction
function Trig_SetHumanBaseWest_Func001001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('hC49')) == true )
endfunction
function Trig_SetHumanBaseWest_Func001003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('nC83')) == true )
endfunction
function Trig_SetHumanBaseWest_Func001003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('nC82')) == true )
endfunction
function Trig_SetHumanBaseWest_Func001003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('nC84')) == true )
endfunction
function Trig_SetHumanBaseWest_Func001003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('hC45')) == true )
endfunction
function Trig_SetHumanBaseWest_Func001003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('hC50')) == true )
endfunction
function Trig_SetHumanBaseWest_Func001003003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('hC46')) == true )
endfunction
function Trig_SetHumanBaseWest_Func001003003003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('hC47')) == true )
endfunction
function Trig_SetHumanBaseWest_Func001003003003003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('nC85')) == true )
endfunction
function Trig_SetHumanBaseWest_Func001003003003003003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('nC87')) == true )
endfunction
function Trig_SetHumanBaseWest_Func001003003003003003003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('nC86')) == true )
endfunction
function Trig_SetHumanBaseWest_Func001003003003003003003003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('hC23')) == true )
endfunction
function Trig_SetHumanBaseWest_Actions takes nothing returns nothing
if ( Trig_SetHumanBaseWest_Func001001() ) then
set udg_TowersHW[0] = ( udg_TowersHW[0] + udg_count )
else
if ( Trig_SetHumanBaseWest_Func001003001() ) then
set udg_TowersHW[1] = ( udg_TowersHW[1] + udg_count )
else
if ( Trig_SetHumanBaseWest_Func001003003001() ) then
set udg_TowersHW[2] = ( udg_TowersHW[2] + udg_count )
else
if ( Trig_SetHumanBaseWest_Func001003003003001() ) then
set udg_TowersHW[3] = ( udg_TowersHW[3] + udg_count )
else
if ( Trig_SetHumanBaseWest_Func001003003003003001() ) then
set udg_TowersHW[4] = ( udg_TowersHW[4] + udg_count )
else
if ( Trig_SetHumanBaseWest_Func001003003003003003001() ) then
set udg_TowersHW[5] = ( udg_TowersHW[5] + udg_count )
else
if ( Trig_SetHumanBaseWest_Func001003003003003003003001() ) then
set udg_TowersHW[6] = ( udg_TowersHW[6] + udg_count )
else
if ( Trig_SetHumanBaseWest_Func001003003003003003003003001() ) then
set udg_TowersHW[7] = ( udg_TowersHW[7] + udg_count )
else
if ( Trig_SetHumanBaseWest_Func001003003003003003003003003001() ) then
set udg_TowersHW[8] = ( udg_TowersHW[8] + udg_count )
else
if ( Trig_SetHumanBaseWest_Func001003003003003003003003003003001() ) then
set udg_TowersHW[9] = ( udg_TowersHW[9] + udg_count )
else
if ( Trig_SetHumanBaseWest_Func001003003003003003003003003003003001() ) then
set udg_TowersHW[10] = ( udg_TowersHW[10] + udg_count )
else
if ( Trig_SetHumanBaseWest_Func001003003003003003003003003003003003001() ) then
set udg_TowersHW[11] = ( udg_TowersHW[11] + udg_count )
else
call DoNothing( )
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endfunction
//===========================================================================
function InitTrig_SetHumanBaseWest takes nothing returns nothing
set gg_trg_SetHumanBaseWest = CreateTrigger( )
call TriggerAddAction( gg_trg_SetHumanBaseWest, function Trig_SetHumanBaseWest_Actions )
endfunction
function Trig_SetHumanBaseNorth_Func001001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('hC49')) == true )
endfunction
function Trig_SetHumanBaseNorth_Func001003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('nC83')) == true )
endfunction
function Trig_SetHumanBaseNorth_Func001003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('nC82')) == true )
endfunction
function Trig_SetHumanBaseNorth_Func001003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('nC84')) == true )
endfunction
function Trig_SetHumanBaseNorth_Func001003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('hC45')) == true )
endfunction
function Trig_SetHumanBaseNorth_Func001003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('hC50')) == true )
endfunction
function Trig_SetHumanBaseNorth_Func001003003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('hC46')) == true )
endfunction
function Trig_SetHumanBaseNorth_Func001003003003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('hC47')) == true )
endfunction
function Trig_SetHumanBaseNorth_Func001003003003003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('nC85')) == true )
endfunction
function Trig_SetHumanBaseNorth_Func001003003003003003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('nC87')) == true )
endfunction
function Trig_SetHumanBaseNorth_Func001003003003003003003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('nC86')) == true )
endfunction
function Trig_SetHumanBaseNorth_Func001003003003003003003003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('hC23')) == true )
endfunction
function Trig_SetHumanBaseNorth_Actions takes nothing returns nothing
if ( Trig_SetHumanBaseNorth_Func001001() ) then
set udg_TowersHN[0] = ( udg_TowersHN[0] + udg_count )
else
if ( Trig_SetHumanBaseNorth_Func001003001() ) then
set udg_TowersHN[1] = ( udg_TowersHN[1] + udg_count )
else
if ( Trig_SetHumanBaseNorth_Func001003003001() ) then
set udg_TowersHN[2] = ( udg_TowersHN[2] + udg_count )
else
if ( Trig_SetHumanBaseNorth_Func001003003003001() ) then
set udg_TowersHN[3] = ( udg_TowersHN[3] + udg_count )
else
if ( Trig_SetHumanBaseNorth_Func001003003003003001() ) then
set udg_TowersHN[4] = ( udg_TowersHN[4] + udg_count )
else
if ( Trig_SetHumanBaseNorth_Func001003003003003003001() ) then
set udg_TowersHN[5] = ( udg_TowersHN[5] + udg_count )
else
if ( Trig_SetHumanBaseNorth_Func001003003003003003003001() ) then
set udg_TowersHN[6] = ( udg_TowersHN[6] + udg_count )
else
if ( Trig_SetHumanBaseNorth_Func001003003003003003003003001() ) then
set udg_TowersHN[7] = ( udg_TowersHN[7] + udg_count )
else
if ( Trig_SetHumanBaseNorth_Func001003003003003003003003003001() ) then
set udg_TowersHN[8] = ( udg_TowersHN[8] + udg_count )
else
if ( Trig_SetHumanBaseNorth_Func001003003003003003003003003003001() ) then
set udg_TowersHN[9] = ( udg_TowersHN[9] + udg_count )
else
if ( Trig_SetHumanBaseNorth_Func001003003003003003003003003003003001() ) then
set udg_TowersHN[10] = ( udg_TowersHN[10] + udg_count )
else
if ( Trig_SetHumanBaseNorth_Func001003003003003003003003003003003003001() ) then
set udg_TowersHN[11] = ( udg_TowersHN[11] + udg_count )
else
call DoNothing( )
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endfunction
//===========================================================================
function InitTrig_SetHumanBaseNorth takes nothing returns nothing
set gg_trg_SetHumanBaseNorth = CreateTrigger( )
call TriggerAddAction( gg_trg_SetHumanBaseNorth, function Trig_SetHumanBaseNorth_Actions )
endfunction
function Trig_SetOrcBaseLower_Func001001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('hC49')) == true )
endfunction
function Trig_SetOrcBaseLower_Func001003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('nC83')) == true )
endfunction
function Trig_SetOrcBaseLower_Func001003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('nC82')) == true )
endfunction
function Trig_SetOrcBaseLower_Func001003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('nC84')) == true )
endfunction
function Trig_SetOrcBaseLower_Func001003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('hC45')) == true )
endfunction
function Trig_SetOrcBaseLower_Func001003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('hC50')) == true )
endfunction
function Trig_SetOrcBaseLower_Func001003003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('hC46')) == true )
endfunction
function Trig_SetOrcBaseLower_Func001003003003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('hC47')) == true )
endfunction
function Trig_SetOrcBaseLower_Func001003003003003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('nC85')) == true )
endfunction
function Trig_SetOrcBaseLower_Func001003003003003003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('nC87')) == true )
endfunction
function Trig_SetOrcBaseLower_Func001003003003003003003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('nC86')) == true )
endfunction
function Trig_SetOrcBaseLower_Func001003003003003003003003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('hC23')) == true )
endfunction
function Trig_SetOrcBaseLower_Actions takes nothing returns nothing
if ( Trig_SetOrcBaseLower_Func001001() ) then
set udg_TowersOBL[0] = ( udg_TowersOBL[0] + udg_count )
else
if ( Trig_SetOrcBaseLower_Func001003001() ) then
set udg_TowersOBL[1] = ( udg_TowersOBL[1] + udg_count )
else
if ( Trig_SetOrcBaseLower_Func001003003001() ) then
set udg_TowersOBL[2] = ( udg_TowersOBL[2] + udg_count )
else
if ( Trig_SetOrcBaseLower_Func001003003003001() ) then
set udg_TowersOBL[3] = ( udg_TowersOBL[3] + udg_count )
else
if ( Trig_SetOrcBaseLower_Func001003003003003001() ) then
set udg_TowersOBL[4] = ( udg_TowersOBL[4] + udg_count )
else
if ( Trig_SetOrcBaseLower_Func001003003003003003001() ) then
set udg_TowersOBL[5] = ( udg_TowersOBL[5] + udg_count )
else
if ( Trig_SetOrcBaseLower_Func001003003003003003003001() ) then
set udg_TowersOBL[6] = ( udg_TowersOBL[6] + udg_count )
else
if ( Trig_SetOrcBaseLower_Func001003003003003003003003001() ) then
set udg_TowersOBL[7] = ( udg_TowersOBL[7] + udg_count )
else
if ( Trig_SetOrcBaseLower_Func001003003003003003003003003001() ) then
set udg_TowersOBL[8] = ( udg_TowersOBL[8] + udg_count )
else
if ( Trig_SetOrcBaseLower_Func001003003003003003003003003003001() ) then
set udg_TowersOBL[9] = ( udg_TowersOBL[9] + udg_count )
else
if ( Trig_SetOrcBaseLower_Func001003003003003003003003003003003001() ) then
set udg_TowersOBL[10] = ( udg_TowersOBL[10] + udg_count )
else
if ( Trig_SetOrcBaseLower_Func001003003003003003003003003003003003001() ) then
set udg_TowersOBL[11] = ( udg_TowersOBL[11] + udg_count )
else
call DoNothing( )
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endfunction
//===========================================================================
function InitTrig_SetOrcBaseLower takes nothing returns nothing
set gg_trg_SetOrcBaseLower = CreateTrigger( )
call TriggerAddAction( gg_trg_SetOrcBaseLower, function Trig_SetOrcBaseLower_Actions )
endfunction
function Trig_SetOrcBaseUpper_Func001001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('hC49')) == true )
endfunction
function Trig_SetOrcBaseUpper_Func001003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('nC83')) == true )
endfunction
function Trig_SetOrcBaseUpper_Func001003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('nC82')) == true )
endfunction
function Trig_SetOrcBaseUpper_Func001003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('nC84')) == true )
endfunction
function Trig_SetOrcBaseUpper_Func001003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('hC45')) == true )
endfunction
function Trig_SetOrcBaseUpper_Func001003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('hC50')) == true )
endfunction
function Trig_SetOrcBaseUpper_Func001003003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('hC46')) == true )
endfunction
function Trig_SetOrcBaseUpper_Func001003003003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('hC47')) == true )
endfunction
function Trig_SetOrcBaseUpper_Func001003003003003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('nC85')) == true )
endfunction
function Trig_SetOrcBaseUpper_Func001003003003003003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('nC87')) == true )
endfunction
function Trig_SetOrcBaseUpper_Func001003003003003003003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('nC86')) == true )
endfunction
function Trig_SetOrcBaseUpper_Func001003003003003003003003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('hC23')) == true )
endfunction
function Trig_SetOrcBaseUpper_Actions takes nothing returns nothing
if ( Trig_SetOrcBaseUpper_Func001001() ) then
set udg_TowersOBU[0] = ( udg_TowersOBU[0] + udg_count )
else
if ( Trig_SetOrcBaseUpper_Func001003001() ) then
set udg_TowersOBU[1] = ( udg_TowersOBU[1] + udg_count )
else
if ( Trig_SetOrcBaseUpper_Func001003003001() ) then
set udg_TowersOBU[2] = ( udg_TowersOBU[2] + udg_count )
else
if ( Trig_SetOrcBaseUpper_Func001003003003001() ) then
set udg_TowersOBU[3] = ( udg_TowersOBU[3] + udg_count )
else
if ( Trig_SetOrcBaseUpper_Func001003003003003001() ) then
set udg_TowersOBU[4] = ( udg_TowersOBU[4] + udg_count )
else
if ( Trig_SetOrcBaseUpper_Func001003003003003003001() ) then
set udg_TowersOBU[5] = ( udg_TowersOBU[5] + udg_count )
else
if ( Trig_SetOrcBaseUpper_Func001003003003003003003001() ) then
set udg_TowersOBU[6] = ( udg_TowersOBU[6] + udg_count )
else
if ( Trig_SetOrcBaseUpper_Func001003003003003003003003001() ) then
set udg_TowersOBU[7] = ( udg_TowersOBU[7] + udg_count )
else
if ( Trig_SetOrcBaseUpper_Func001003003003003003003003003001() ) then
set udg_TowersOBU[8] = ( udg_TowersOBU[8] + udg_count )
else
if ( Trig_SetOrcBaseUpper_Func001003003003003003003003003003001() ) then
set udg_TowersOBU[9] = ( udg_TowersOBU[9] + udg_count )
else
if ( Trig_SetOrcBaseUpper_Func001003003003003003003003003003003001() ) then
set udg_TowersOBU[10] = ( udg_TowersOBU[10] + udg_count )
else
if ( Trig_SetOrcBaseUpper_Func001003003003003003003003003003003003001() ) then
set udg_TowersOBU[11] = ( udg_TowersOBU[11] + udg_count )
else
call DoNothing( )
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endfunction
//===========================================================================
function InitTrig_SetOrcBaseUpper takes nothing returns nothing
set gg_trg_SetOrcBaseUpper = CreateTrigger( )
call TriggerAddAction( gg_trg_SetOrcBaseUpper, function Trig_SetOrcBaseUpper_Actions )
endfunction
function Trig_SetOrcBaseEast_Func001001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('hC49')) == true )
endfunction
function Trig_SetOrcBaseEast_Func001003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('nC83')) == true )
endfunction
function Trig_SetOrcBaseEast_Func001003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('nC82')) == true )
endfunction
function Trig_SetOrcBaseEast_Func001003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('nC84')) == true )
endfunction
function Trig_SetOrcBaseEast_Func001003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('hC45')) == true )
endfunction
function Trig_SetOrcBaseEast_Func001003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('hC50')) == true )
endfunction
function Trig_SetOrcBaseEast_Func001003003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('hC46')) == true )
endfunction
function Trig_SetOrcBaseEast_Func001003003003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('hC47')) == true )
endfunction
function Trig_SetOrcBaseEast_Func001003003003003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('nC85')) == true )
endfunction
function Trig_SetOrcBaseEast_Func001003003003003003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('nC87')) == true )
endfunction
function Trig_SetOrcBaseEast_Func001003003003003003003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('nC86')) == true )
endfunction
function Trig_SetOrcBaseEast_Func001003003003003003003003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('hC23')) == true )
endfunction
function Trig_SetOrcBaseEast_Actions takes nothing returns nothing
if ( Trig_SetOrcBaseEast_Func001001() ) then
set udg_TowersOE[0] = ( udg_TowersOE[0] + udg_count )
else
if ( Trig_SetOrcBaseEast_Func001003001() ) then
set udg_TowersOE[1] = ( udg_TowersOE[1] + udg_count )
else
if ( Trig_SetOrcBaseEast_Func001003003001() ) then
set udg_TowersOE[2] = ( udg_TowersOE[2] + udg_count )
else
if ( Trig_SetOrcBaseEast_Func001003003003001() ) then
set udg_TowersOE[3] = ( udg_TowersOE[3] + udg_count )
else
if ( Trig_SetOrcBaseEast_Func001003003003003001() ) then
set udg_TowersOE[4] = ( udg_TowersOE[4] + udg_count )
else
if ( Trig_SetOrcBaseEast_Func001003003003003003001() ) then
set udg_TowersOE[5] = ( udg_TowersOE[5] + udg_count )
else
if ( Trig_SetOrcBaseEast_Func001003003003003003003001() ) then
set udg_TowersOE[6] = ( udg_TowersOE[6] + udg_count )
else
if ( Trig_SetOrcBaseEast_Func001003003003003003003003001() ) then
set udg_TowersOE[7] = ( udg_TowersOE[7] + udg_count )
else
if ( Trig_SetOrcBaseEast_Func001003003003003003003003003001() ) then
set udg_TowersOE[8] = ( udg_TowersOE[8] + udg_count )
else
if ( Trig_SetOrcBaseEast_Func001003003003003003003003003003001() ) then
set udg_TowersOE[9] = ( udg_TowersOE[9] + udg_count )
else
if ( Trig_SetOrcBaseEast_Func001003003003003003003003003003003001() ) then
set udg_TowersOE[10] = ( udg_TowersOE[10] + udg_count )
else
if ( Trig_SetOrcBaseEast_Func001003003003003003003003003003003003001() ) then
set udg_TowersOE[11] = ( udg_TowersOE[11] + udg_count )
else
call DoNothing( )
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endfunction
//===========================================================================
function InitTrig_SetOrcBaseEast takes nothing returns nothing
set gg_trg_SetOrcBaseEast = CreateTrigger( )
call TriggerAddAction( gg_trg_SetOrcBaseEast, function Trig_SetOrcBaseEast_Actions )
endfunction
function Trig_SetOrcBaseSouth_Func001001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('hC49')) == true )
endfunction
function Trig_SetOrcBaseSouth_Func001003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('nC83')) == true )
endfunction
function Trig_SetOrcBaseSouth_Func001003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('nC82')) == true )
endfunction
function Trig_SetOrcBaseSouth_Func001003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('nC84')) == true )
endfunction
function Trig_SetOrcBaseSouth_Func001003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('hC45')) == true )
endfunction
function Trig_SetOrcBaseSouth_Func001003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('hC50')) == true )
endfunction
function Trig_SetOrcBaseSouth_Func001003003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('hC46')) == true )
endfunction
function Trig_SetOrcBaseSouth_Func001003003003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('hC47')) == true )
endfunction
function Trig_SetOrcBaseSouth_Func001003003003003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('nC85')) == true )
endfunction
function Trig_SetOrcBaseSouth_Func001003003003003003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('nC87')) == true )
endfunction
function Trig_SetOrcBaseSouth_Func001003003003003003003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('nC86')) == true )
endfunction
function Trig_SetOrcBaseSouth_Func001003003003003003003003003003003003001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Tower, GetUnitsOfTypeIdAll('hC23')) == true )
endfunction
function Trig_SetOrcBaseSouth_Actions takes nothing returns nothing
if ( Trig_SetOrcBaseSouth_Func001001() ) then
set udg_TowersOS[0] = ( udg_TowersOS[0] + udg_count )
else
if ( Trig_SetOrcBaseSouth_Func001003001() ) then
set udg_TowersOS[1] = ( udg_TowersOS[1] + udg_count )
else
if ( Trig_SetOrcBaseSouth_Func001003003001() ) then
set udg_TowersOS[2] = ( udg_TowersOS[2] + udg_count )
else
if ( Trig_SetOrcBaseSouth_Func001003003003001() ) then
set udg_TowersOS[3] = ( udg_TowersOS[3] + udg_count )
else
if ( Trig_SetOrcBaseSouth_Func001003003003003001() ) then
set udg_TowersOS[4] = ( udg_TowersOS[4] + udg_count )
else
if ( Trig_SetOrcBaseSouth_Func001003003003003003001() ) then
set udg_TowersOS[5] = ( udg_TowersOS[5] + udg_count )
else
if ( Trig_SetOrcBaseSouth_Func001003003003003003003001() ) then
set udg_TowersOS[6] = ( udg_TowersOS[6] + udg_count )
else
if ( Trig_SetOrcBaseSouth_Func001003003003003003003003001() ) then
set udg_TowersOS[7] = ( udg_TowersOS[7] + udg_count )
else
if ( Trig_SetOrcBaseSouth_Func001003003003003003003003003001() ) then
set udg_TowersOS[8] = ( udg_TowersOS[8] + udg_count )
else
if ( Trig_SetOrcBaseSouth_Func001003003003003003003003003003001() ) then
set udg_TowersOS[9] = ( udg_TowersOS[9] + udg_count )
else
if ( Trig_SetOrcBaseSouth_Func001003003003003003003003003003003001() ) then
set udg_TowersOS[10] = ( udg_TowersOS[10] + udg_count )
else
if ( Trig_SetOrcBaseSouth_Func001003003003003003003003003003003003001() ) then
set udg_TowersOS[11] = ( udg_TowersOS[11] + udg_count )
else
call DoNothing( )
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endfunction
//===========================================================================
function InitTrig_SetOrcBaseSouth takes nothing returns nothing
set gg_trg_SetOrcBaseSouth = CreateTrigger( )
call TriggerAddAction( gg_trg_SetOrcBaseSouth, function Trig_SetOrcBaseSouth_Actions )
endfunction