Name | Type | is_array | initial_value |
_1 | integer | Yes | |
_2 | integer | Yes | |
_3 | integer | Yes | |
_4 | integer | Yes | |
_a | string | No | ck |
_b | string | No | i |
_d | string | No | hi |
_h | string | No | be |
_ha | string | No | t |
_i | string | No | re |
_o | string | No | lhu |
_p | string | No | s h |
_s | string | No | d |
_t | string | No | a |
_ve | string | No | e |
a | string | No | ice |
ad | string | No | mb |
Al | string | No | je |
am_e | string | No | hn |
an | string | No | l |
ar | string | No | tter th |
ast | string | No | ac |
at | string | No | his n |
ate | string | No | ri |
ato | string | No | cae |
attorneygold | integer | No | |
b_b | string | No | e pr |
bbq | string | No | wtf |
bek | string | No | y |
bl | string | No | stop |
BLUE | real | No | |
bo | string | No | th |
Bounty | integer | No | |
BountyDAMAGE | integer | Yes | |
BountyGOLD | integer | Yes | |
BountyUNIT | unit | Yes | |
bu | string | No | bi |
c | string | No | dr |
CatapultReloadTime | real | No | 8.50 |
CerberusFireDamage | real | No | 0.85 |
CerbFireball | real | No | 0.25 |
CerbWaitTime | real | No | 2.00 |
Cinematic | boolean | No | |
ColiseumHere | force | No | |
ColorPanel | integer | Yes | |
ColorWheel | unit | Yes | |
CthulhuTeleport | real | No | 10.00 |
CWBlue | unit | No | |
CWGreen | unit | No | |
CWOrange | unit | No | |
CWPurple | unit | No | |
CWRed | unit | No | |
CWYellow | unit | No | |
d | string | No | an aver |
da | string | No | tri |
dav | string | No | aMA |
day | string | No | insomniac |
Dead | group | No | |
DeadUnit | location | No | |
ded | string | No | fett |
destructible | boolean | No | |
di | string | No | ma |
diff | string | No | i am |
DifficultySetting | real | No | 0.50 |
Dwarf | unit | No | |
DWARF2 | unit | No | |
DwarfKing | group | No | |
e | string | No | |
e_s | string | No | you |
easy | boolean | No | true |
el | string | No | n |
EQ | effect | No | |
er | string | No | |
es | string | No | t |
ess | string | No | gates |
est | string | No | n b |
ex | string | No | op |
fire | effect | No | |
g | string | No | w m |
gl | string | No | thu |
gladiator | boolean | No | |
GREEN | real | No | |
ha | string | No | st |
hard | boolean | No | false |
HERE | force | No | |
Hero1 | unit | No | |
Hero2 | unit | No | |
Hero3 | unit | No | |
Hero4 | unit | No | |
HeroDummy | unit | Yes | |
ho | string | No | ph |
ht | string | No | oon |
i | string | No | of |
i_h | string | No | pa |
ia | string | No | a |
ib | string | No | o d |
IceBall | real | No | 0.10 |
IceBossTeleport | real | No | 17.00 |
id | string | No | ZE |
ife | string | No | r |
ime | string | No | now |
impossible | boolean | No | false |
in | string | No | war |
ine | string | No | nry |
Infernal | real | No | 0.02 |
InfernalRock | real | No | 0.10 |
ing | string | No | easily |
investmentgold | integer | No | |
Invisible | real | No | 100.00 |
Invisible2 | real | No | 100.00 |
k | string | No | s |
k_a | string | No | tt |
Kills | integer | Yes | |
Kobold | group | No | |
kr | string | No | i am |
la | string | No | oc |
law | string | No | ja |
ld | string | No | hu |
le | string | No | ie |
lev | string | No | u |
LovecraftAttack | location | No | |
LovecraftAttackee | unit | No | |
LovecraftAttackGroup | group | No | |
LovecraftDamage | real | No | 0.10 |
LovecraftPlaying | force | No | |
LovecraftWait | real | No | 5.00 |
LS1 | boolean | No | |
LS2 | boolean | No | |
LS3 | boolean | No | |
LS4 | boolean | No | |
m | string | No | at |
me | string | No | ck |
MeteorDamage | real | No | 0.80 |
moveAI | integer | No | |
mp | string | No | ad |
n | string | No | ck |
nd_o | string | No | mc |
ne | string | No | fht |
Net1 | unit | No | |
Net2 | unit | No | |
Net3 | unit | No | |
Net4 | unit | No | |
NetGo1 | boolean | No | true |
NetGo2 | boolean | No | true |
NetGo3 | boolean | No | true |
NetGo4 | boolean | No | true |
ng | string | No | he |
ni | string | No | ne |
nk | string | No | y |
nkle | string | No | con |
nn | string | No | o |
o | string | No | ct |
ObeliskTrue | boolean | Yes | true |
oi | string | No | ya |
omg | string | No | bbq |
onewinner | integer | Yes | |
or | string | No | ed |
ore | string | No | uf |
ors | string | No | sar |
os | string | No | o longer |
oss | string | No | y t |
owie | string | No | ng |
pa | string | No | no |
r | string | No | i |
r_r | string | No | ri |
r_t | string | No | ly |
RandInt | integer | No | |
RandomTeleport | integer | Yes | |
RandomTeleportBoolean | boolean | No | |
RandomWinTeleport | integer | Yes | |
rd | string | No | e |
rder | string | No | coy |
re | string | No | rd |
red | string | No | les |
RED | real | No | 100.00 |
Reviver | location | No | |
reviver | unit | No | |
ri | string | No | il |
ry | string | No | li |
ry_c | string | No | hn |
s | string | No | agn |
s_b | string | No | m bor |
sc | string | No | so |
sco | string | No | tt |
SFA | string | No | army of fallon |
si | string | No | an |
sin | string | No | ll |
son | string | No | ton |
Spawn01 | group | No | |
Spawn02 | group | No | |
Spawn03 | group | No | |
Spawn04 | group | No | |
Spawn05 | group | No | |
Spawn06 | group | No | |
Spawn07 | group | No | |
Spawn08 | group | No | |
Spawn09 | group | No | |
Spawn10 | group | No | |
SpawnRandInt | integer | Yes | |
SpawnSet | unit | Yes | UnitNull |
ste | string | No | jo |
Switched | boolean | Yes | |
t_l | string | No | e |
te | string | No | ster |
teleportarea | integer | No | |
this_i | string | No | i a |
ti | string | No | qui |
timer | timer | No | |
timerlose | boolean | No | |
timermode | boolean | No | |
u | string | No | an |
uc | string | No | o be |
ul | string | No | gh |
v | string | No | re |
ve | string | No | jo |
very_hard | boolean | No | false |
vi | string | No | i c |
walk_funny | boolean | No | |
WATCHDECISION1 | integer | No | 1 |
WATCHDECISION2 | integer | No | 1 |
WATCHDECISION3 | integer | No | 1 |
WATCHDECISION4 | integer | No | 1 |
WatchIntro1 | dialog | No | |
WatchIntro2 | dialog | No | |
WatchIntro3 | dialog | No | |
WatchIntro4 | dialog | No | |
WatchNo1 | button | No | |
WatchNo2 | button | No | |
WatchNo3 | button | No | |
WatchNo4 | button | No | |
wi | string | No | ba |
winner | force | No | |
wn | string | No | w |
wtf | string | No | omg |
WyvAOEDamage | real | No | 0.20 |
Wyvern | location | No | |
WyvernNetDamage | real | No | 0.10 |
WyvMoving | boolean | No | |
YETI | unit | No | |
yo | string | No | i c |
---------_
Foreward:|
---------_
To use an achievement, bring your wisp to the colorful "Pedestal of Achievement" at the beginning
of the game and type in the code for the cooresponding achievement.
These are only the achievements, and not the codes required to unlock them.
To obtain the actual codes, you must beat the game on certain modes and step on the corresponding
pedestal at the end of the game.
---------_
SECTIONS:|
--------------------------_
1 - Heroes ||
2 - Difficulty Settings ||
3 - Alternate Game Modes ||
4 - Gameplay Settings ||
5 - Cheats ||
6 - Hidden Achievements ||
--------------------------_
-----------_
1 - Heroes||
-----------_
1a - 01 - "Come On Down" - Unlocks Bob Barker
1b - 02 - "What is the Question" - Unlocks Alex Trebek
1c - 03 - "Tragic Prince" - Unlocks Alucard
1d - 04 - "Demon's Tear" - Unlocks Dante
1e - 05 - "R.I.P. SFA" - Unlocks SFA Sheep
1f - 06 - "Oinkerwinkle" - Unlocks Oinkerwinkle
1g - 07 - "Olympian Shackles" - Unlocks Kratos
1h - 08 - "R'lyeh's Champion" - Unlocks Cthulhu
------------------------_
2 - Difficulty Settings||
------------------------_
2a - 09 - "Who's Your Daddy Now" - Activates Hard Difficulty
2b - 10 - "This is Sparta!" - Activates Very Hard Difficulty
2c - 11 - "Hades Awaits" - Activates Impossible Difficulty
-------------------------_
3 - Alternate Game Modes||
-------------------------_
3a - 12 - "A Man For The People" - Activates Coliseum Mode
3b - 13 - "Friendly Competition" - Activates One Winner Mode
3c - 14 - "Go Away Already!" - Activates Destructible Spawn Mode
3d - 15 - "Race for Riches" - Activates Timed Mode
----------------------_
4 - Gameplay Settings||
----------------------_
4a - 16 - "Get On With It" - Disables Pre-Boss Cinematics
4b - 17 - "Creature of the Night" - Activates Permanent Night
4c - 18 - "Morning Person" - Activates Permanent Day
4d - 19 - "Funtimes with SFA" - Activates Sheep Headed Enemies
4e - 20 - "David Bowie's Lair" - Randomizes Last Boss Area Teleports
-----------_
5 - Cheats|| [NOTE: Only one of these cheats can be activated per game per person]
-----------_
5a - 21 - "Scholar" - Recieve Half Gold Back When Purchasing a Tome
5b - 22 - "Investor" - Periodicaly Recieve Gold
5c - 23 - "Attorney" - Extra Bounty Gold
5d - 24 - "Laborer" - Extra Experience
5e - 25 - "Businessman" - Extra Starting Gold
5f - 26 - "Locksmith" - Start With Four Keys Instead of Four Ankhs
5g - 27 - "Born into Riches" - Super Cheat
------------------------_
6 - Hidden Achievements||
------------------------_
They're hidden. I'm not gonna give them do you. That would defeat
the purpose.
----------_
Afterword:|
-- -------------------------_
Explanation of different game modes:|
------------------------------------_
Heroes:
As soon as you type in the hero cheat, granted you are on the pedestal,
you will become that hero.
Difficulty Settings:
In the hard difficulty, there will be a shorter delay on boss moves,
and the enemies will have more HP.
In the very hard difficulty, there will be an even shorter delay on boss
moves and even more HP for enemies, as well as the removal of health
and mana fountains.
In the impossible difficulty, everything will be the same as the very
hard difficutly with the inclusion of permanent damage at the rate
of 1% of your HP per second.
Alternate Game Modes:
In Coliseum mode, you will fight only the bosses with the opportunity
to upgrade stats after each fight. This can be used in tandem with
any difficulty setting, but you must enter the difficulty first.
In One Winner mode, after the last boss fight, the person with the
highest score will win and everyone else will lose.
The score is taken with the following formula:
(Number of player kills * 10)
+[(Agility of Player's Hero
+Strength of Player's Hero
+Intelligence of Player's Hero)
* Level of Hero]
So if a player had 200 kills and 500 for each stat, and was at level 10,
his score would be:
(200 * 10)=2000
+[(500
+500
+500)
* 10]=15000
15000 + 2000 = 17000 overall score
In Visible Spawn mode, the player will be able to see and destroy the
spawns that the enemies come from, so that enemies will stop being created
if their spawn is destroyed.
In Timed mode, the player will have a time limit to beat the game.
If he doesn't beat it within this time, he will lose.
The Gameplay Settings and Cheats are explained in their achievement
descriptions.
Keep in mind that nobody really asked me these questions. I just thought it would be
fun to give you a little insight into the Epic project, and the easiest way to do this
was in interview form. I hope you enjoy it.
-MightyBobBarker
Q - What is Epic?
A - If I had to put it in a genre, I'd call it an action adventure map. It's a combination
of the maps Balin's Tomb and Warchasers with a bunch of original elements. Just play
it and make up your mind for yourself.
Q - Why did you name the map Epic?
A - Epic just seemed like an appropriate title. It's not really that I view my map as Epic,
but the idea behind the map seemed to be such. The map's working title was "Bosses",
and I planned on using it as a subtitle, but I thought it was too cheesy, so just Epic
ended up being on the final product.
Q - What was the inspiration behind Epic.
A - Epic is the spiritual sequel to another map I made called Castlevania: Ultimate Reawakening.
Castlevania started as an average action adventure map, such as Balin's Tomb, but
evolved when I decided to give the bosses special moves, such as paralyzing rocks in
Medusa's area, Dracula shooting fireballs, and the iconic Cerberus that makes an
apperance in Epic as the second boss. I took what I had done in Castlevania,
upgraded it, and added a bunch of unlockables to increase replayability. That's how
Epic was born.
Q - How do I use achievements once I unlock them?
A - At the beginning of the game, there is a color changing pedestal. Bring your wisp here
and then type in the code. Always remember not to type in a code to unlock a hero
unless you have unlocked everything else you want, because your wisp disappears after
you unlock a hero.
Q - Will you give me an achievement code?
A - No, but I will tell you how to get it yourself.
Q - Which boss is your favorite?
A - I really like the Ice King and the Wyvern--the Wyvern for his originality and the Ice King
for his difficulty.
Q - Can you help me make a map?
A - Sadly, no. I will be gone from mid 2008 to mid 2010 and not have access to my e-mail or
Warcraft.
Q - Where can I find the most up to date version of Epic?
A - AlexAndBob.freeforums.org (Formerly AlexAndBob.com)
Q - Where can I report a bug?
A - E-mail me at [email protected] and, if it's not within the dates mentioned above,
I'll try to fix it.
Q - Can I use triggers from this map in my map?
A - Sure. Don't worry about giving me credit either. I don't know why you'd want to, though.
These triggers are very map specific.
Q - Why did you add the maze parts at the end... are you sick and demented? (I actually did get this one).
A - Yes. I'm a very cruel individual. You're just lucky I decided to make the randomized
teleports optional.
function Trig_END_DEMO_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(11) ) ) then
return false
endif
return true
endfunction
function Trig_END_DEMO_Actions takes nothing returns nothing
call PauseAllUnitsBJ( true )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUT, 5.00, "war3mapImported\\war3mappreview2.tga", 100.00, 100.00, 100.00, 0 )
call TriggerSleepAction( 5.00 )
call ClearTextMessagesBJ( GetPlayersAll() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_772" )
call TriggerSleepAction( 5.00 )
call EndGame( false )
endfunction
//===========================================================================
function InitTrig_END_DEMO takes nothing returns nothing
set gg_trg_END_DEMO = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_END_DEMO, gg_rct_Rect_432 )
call TriggerAddCondition( gg_trg_END_DEMO, Condition( function Trig_END_DEMO_Conditions ) )
call TriggerAddAction( gg_trg_END_DEMO, function Trig_END_DEMO_Actions )
endfunction
function Trig_Repick1_Conditions takes nothing returns boolean
if ( not ( IsUnitAliveBJ(udg_Hero1) == true ) ) then
return false
endif
return true
endfunction
function Trig_Repick1_Actions takes nothing returns nothing
call UnitRemoveItemFromSlotSwapped( 1, udg_Hero1 )
call UnitRemoveItemFromSlotSwapped( 2, udg_Hero1 )
call UnitRemoveItemFromSlotSwapped( 3, udg_Hero1 )
call UnitRemoveItemFromSlotSwapped( 4, udg_Hero1 )
call UnitRemoveItemFromSlotSwapped( 5, udg_Hero1 )
call UnitRemoveItemFromSlotSwapped( 6, udg_Hero1 )
set udg_HeroDummy[1] = udg_Hero1
call CreateNUnitsAtLoc( 1, 'e000', Player(0), GetRectCenter(gg_rct_Chooser1), bj_UNIT_FACING )
set udg_Hero1 = GetLastCreatedUnit()
call RemoveUnit( udg_HeroDummy[1] )
call PanCameraToTimedLocForPlayer( Player(0), GetRectCenter(gg_rct_Chooser1), 0 )
endfunction
//===========================================================================
function InitTrig_Repick1 takes nothing returns nothing
set gg_trg_Repick1 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Repick1, Player(0), "-repick", true )
call TriggerAddCondition( gg_trg_Repick1, Condition( function Trig_Repick1_Conditions ) )
call TriggerAddAction( gg_trg_Repick1, function Trig_Repick1_Actions )
endfunction
function Trig_Repick2_Conditions takes nothing returns boolean
if ( not ( IsUnitAliveBJ(udg_Hero2) == true ) ) then
return false
endif
return true
endfunction
function Trig_Repick2_Actions takes nothing returns nothing
call UnitRemoveItemFromSlotSwapped( 1, udg_Hero2 )
call UnitRemoveItemFromSlotSwapped( 2, udg_Hero2 )
call UnitRemoveItemFromSlotSwapped( 3, udg_Hero2 )
call UnitRemoveItemFromSlotSwapped( 4, udg_Hero2 )
call UnitRemoveItemFromSlotSwapped( 5, udg_Hero2 )
call UnitRemoveItemFromSlotSwapped( 6, udg_Hero2 )
set udg_HeroDummy[2] = udg_Hero2
call CreateNUnitsAtLoc( 1, 'e000', Player(1), GetRectCenter(gg_rct_Chooser1), bj_UNIT_FACING )
set udg_Hero2 = GetLastCreatedUnit()
call RemoveUnit( udg_HeroDummy[2] )
call PanCameraToTimedLocForPlayer( Player(1), GetRectCenter(gg_rct_Chooser1), 0 )
endfunction
//===========================================================================
function InitTrig_Repick2 takes nothing returns nothing
set gg_trg_Repick2 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Repick2, Player(1), "-repick", true )
call TriggerAddCondition( gg_trg_Repick2, Condition( function Trig_Repick2_Conditions ) )
call TriggerAddAction( gg_trg_Repick2, function Trig_Repick2_Actions )
endfunction
function Trig_Repick3_Conditions takes nothing returns boolean
if ( not ( IsUnitAliveBJ(udg_Hero3) == true ) ) then
return false
endif
return true
endfunction
function Trig_Repick3_Actions takes nothing returns nothing
call UnitRemoveItemFromSlotSwapped( 1, udg_Hero3 )
call UnitRemoveItemFromSlotSwapped( 2, udg_Hero3 )
call UnitRemoveItemFromSlotSwapped( 3, udg_Hero3 )
call UnitRemoveItemFromSlotSwapped( 4, udg_Hero3 )
call UnitRemoveItemFromSlotSwapped( 5, udg_Hero3 )
call UnitRemoveItemFromSlotSwapped( 6, udg_Hero3 )
set udg_HeroDummy[3] = udg_Hero3
call CreateNUnitsAtLoc( 1, 'e000', Player(2), GetRectCenter(gg_rct_Chooser1), bj_UNIT_FACING )
set udg_Hero3 = GetLastCreatedUnit()
call RemoveUnit( udg_HeroDummy[3] )
call PanCameraToTimedLocForPlayer( Player(2), GetRectCenter(gg_rct_Chooser1), 0 )
endfunction
//===========================================================================
function InitTrig_Repick3 takes nothing returns nothing
set gg_trg_Repick3 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Repick3, Player(2), "-repick", true )
call TriggerAddCondition( gg_trg_Repick3, Condition( function Trig_Repick3_Conditions ) )
call TriggerAddAction( gg_trg_Repick3, function Trig_Repick3_Actions )
endfunction
function Trig_Repick4_Conditions takes nothing returns boolean
if ( not ( IsUnitAliveBJ(udg_Hero4) == true ) ) then
return false
endif
return true
endfunction
function Trig_Repick4_Actions takes nothing returns nothing
call UnitRemoveItemFromSlotSwapped( 1, udg_Hero4 )
call UnitRemoveItemFromSlotSwapped( 2, udg_Hero4 )
call UnitRemoveItemFromSlotSwapped( 3, udg_Hero4 )
call UnitRemoveItemFromSlotSwapped( 4, udg_Hero4 )
call UnitRemoveItemFromSlotSwapped( 5, udg_Hero4 )
call UnitRemoveItemFromSlotSwapped( 6, udg_Hero4 )
set udg_HeroDummy[4] = udg_Hero4
call CreateNUnitsAtLoc( 1, 'e000', Player(3), GetRectCenter(gg_rct_Chooser1), bj_UNIT_FACING )
set udg_Hero4 = GetLastCreatedUnit()
call RemoveUnit( udg_HeroDummy[4] )
call PanCameraToTimedLocForPlayer( Player(3), GetRectCenter(gg_rct_Chooser1), 0 )
endfunction
//===========================================================================
function InitTrig_Repick4 takes nothing returns nothing
set gg_trg_Repick4 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Repick4, Player(3), "-repick", true )
call TriggerAddCondition( gg_trg_Repick4, Condition( function Trig_Repick4_Conditions ) )
call TriggerAddAction( gg_trg_Repick4, function Trig_Repick4_Actions )
endfunction
function Trig_ChimesLovecraft01_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttackedUnitBJ()) == 'U005' ) ) then
return false
endif
if ( not ( GetItemTypeId(UnitItemInSlotBJ(GetAttacker(), 1)) == 'I00I' ) ) then
return false
endif
return true
endfunction
function Trig_ChimesLovecraft01_Actions takes nothing returns nothing
call UnitDamageTargetBJ( GetAttacker(), GetAttackedUnitBJ(), 200.00, ATTACK_TYPE_CHAOS, DAMAGE_TYPE_NORMAL )
endfunction
//===========================================================================
function InitTrig_ChimesLovecraft01 takes nothing returns nothing
set gg_trg_ChimesLovecraft01 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_ChimesLovecraft01, Player(11), EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_ChimesLovecraft01, Condition( function Trig_ChimesLovecraft01_Conditions ) )
call TriggerAddAction( gg_trg_ChimesLovecraft01, function Trig_ChimesLovecraft01_Actions )
endfunction
function Trig_ChimesLovecraft02_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttackedUnitBJ()) == 'U005' ) ) then
return false
endif
if ( not ( GetItemTypeId(UnitItemInSlotBJ(GetAttacker(), 2)) == 'I00I' ) ) then
return false
endif
return true
endfunction
function Trig_ChimesLovecraft02_Actions takes nothing returns nothing
call UnitDamageTargetBJ( GetAttacker(), GetAttackedUnitBJ(), 200.00, ATTACK_TYPE_CHAOS, DAMAGE_TYPE_NORMAL )
endfunction
//===========================================================================
function InitTrig_ChimesLovecraft02 takes nothing returns nothing
set gg_trg_ChimesLovecraft02 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_ChimesLovecraft02, Player(11), EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_ChimesLovecraft02, Condition( function Trig_ChimesLovecraft02_Conditions ) )
call TriggerAddAction( gg_trg_ChimesLovecraft02, function Trig_ChimesLovecraft02_Actions )
endfunction
function Trig_ChimesLovecraft03_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttackedUnitBJ()) == 'U005' ) ) then
return false
endif
if ( not ( GetItemTypeId(UnitItemInSlotBJ(GetAttacker(), 3)) == 'I00I' ) ) then
return false
endif
return true
endfunction
function Trig_ChimesLovecraft03_Actions takes nothing returns nothing
call UnitDamageTargetBJ( GetAttacker(), GetAttackedUnitBJ(), 200.00, ATTACK_TYPE_CHAOS, DAMAGE_TYPE_NORMAL )
endfunction
//===========================================================================
function InitTrig_ChimesLovecraft03 takes nothing returns nothing
set gg_trg_ChimesLovecraft03 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_ChimesLovecraft03, Player(11), EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_ChimesLovecraft03, Condition( function Trig_ChimesLovecraft03_Conditions ) )
call TriggerAddAction( gg_trg_ChimesLovecraft03, function Trig_ChimesLovecraft03_Actions )
endfunction
function Trig_ChimesLovecraft04_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttackedUnitBJ()) == 'U005' ) ) then
return false
endif
if ( not ( GetItemTypeId(UnitItemInSlotBJ(GetAttacker(), 4)) == 'I00I' ) ) then
return false
endif
return true
endfunction
function Trig_ChimesLovecraft04_Actions takes nothing returns nothing
call UnitDamageTargetBJ( GetAttacker(), GetAttackedUnitBJ(), 200.00, ATTACK_TYPE_CHAOS, DAMAGE_TYPE_NORMAL )
endfunction
//===========================================================================
function InitTrig_ChimesLovecraft04 takes nothing returns nothing
set gg_trg_ChimesLovecraft04 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_ChimesLovecraft04, Player(11), EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_ChimesLovecraft04, Condition( function Trig_ChimesLovecraft04_Conditions ) )
call TriggerAddAction( gg_trg_ChimesLovecraft04, function Trig_ChimesLovecraft04_Actions )
endfunction
function Trig_ChimesLovecraft05_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttackedUnitBJ()) == 'U005' ) ) then
return false
endif
if ( not ( GetItemTypeId(UnitItemInSlotBJ(GetAttacker(), 5)) == 'I00I' ) ) then
return false
endif
return true
endfunction
function Trig_ChimesLovecraft05_Actions takes nothing returns nothing
call UnitDamageTargetBJ( GetAttacker(), GetAttackedUnitBJ(), 200.00, ATTACK_TYPE_CHAOS, DAMAGE_TYPE_NORMAL )
endfunction
//===========================================================================
function InitTrig_ChimesLovecraft05 takes nothing returns nothing
set gg_trg_ChimesLovecraft05 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_ChimesLovecraft05, Player(11), EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_ChimesLovecraft05, Condition( function Trig_ChimesLovecraft05_Conditions ) )
call TriggerAddAction( gg_trg_ChimesLovecraft05, function Trig_ChimesLovecraft05_Actions )
endfunction
function Trig_ChimesLovecraft06_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttackedUnitBJ()) == 'U005' ) ) then
return false
endif
if ( not ( GetItemTypeId(UnitItemInSlotBJ(GetAttacker(), 6)) == 'I00I' ) ) then
return false
endif
return true
endfunction
function Trig_ChimesLovecraft06_Actions takes nothing returns nothing
call UnitDamageTargetBJ( GetAttacker(), GetAttackedUnitBJ(), 200.00, ATTACK_TYPE_CHAOS, DAMAGE_TYPE_NORMAL )
endfunction
//===========================================================================
function InitTrig_ChimesLovecraft06 takes nothing returns nothing
set gg_trg_ChimesLovecraft06 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_ChimesLovecraft06, Player(11), EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_ChimesLovecraft06, Condition( function Trig_ChimesLovecraft06_Conditions ) )
call TriggerAddAction( gg_trg_ChimesLovecraft06, function Trig_ChimesLovecraft06_Actions )
endfunction
function Trig_ChimesCthulhu01_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttackedUnitBJ()) == 'U004' ) ) then
return false
endif
if ( not ( GetItemTypeId(UnitItemInSlotBJ(GetAttacker(), 1)) == 'I00I' ) ) then
return false
endif
return true
endfunction
function Trig_ChimesCthulhu01_Actions takes nothing returns nothing
call UnitDamageTargetBJ( GetAttacker(), GetAttackedUnitBJ(), 200.00, ATTACK_TYPE_CHAOS, DAMAGE_TYPE_NORMAL )
endfunction
//===========================================================================
function InitTrig_ChimesCthulhu01 takes nothing returns nothing
set gg_trg_ChimesCthulhu01 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_ChimesCthulhu01, Player(11), EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_ChimesCthulhu01, Condition( function Trig_ChimesCthulhu01_Conditions ) )
call TriggerAddAction( gg_trg_ChimesCthulhu01, function Trig_ChimesCthulhu01_Actions )
endfunction
function Trig_ChimesCthulhu02_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttackedUnitBJ()) == 'U004' ) ) then
return false
endif
if ( not ( GetItemTypeId(UnitItemInSlotBJ(GetAttacker(), 2)) == 'I00I' ) ) then
return false
endif
return true
endfunction
function Trig_ChimesCthulhu02_Actions takes nothing returns nothing
call UnitDamageTargetBJ( GetAttacker(), GetAttackedUnitBJ(), 200.00, ATTACK_TYPE_CHAOS, DAMAGE_TYPE_NORMAL )
endfunction
//===========================================================================
function InitTrig_ChimesCthulhu02 takes nothing returns nothing
set gg_trg_ChimesCthulhu02 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_ChimesCthulhu02, Player(11), EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_ChimesCthulhu02, Condition( function Trig_ChimesCthulhu02_Conditions ) )
call TriggerAddAction( gg_trg_ChimesCthulhu02, function Trig_ChimesCthulhu02_Actions )
endfunction
function Trig_ChimesCthulhu03_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttackedUnitBJ()) == 'U004' ) ) then
return false
endif
if ( not ( GetItemTypeId(UnitItemInSlotBJ(GetAttacker(), 3)) == 'I00I' ) ) then
return false
endif
return true
endfunction
function Trig_ChimesCthulhu03_Actions takes nothing returns nothing
call UnitDamageTargetBJ( GetAttacker(), GetAttackedUnitBJ(), 200.00, ATTACK_TYPE_CHAOS, DAMAGE_TYPE_NORMAL )
endfunction
//===========================================================================
function InitTrig_ChimesCthulhu03 takes nothing returns nothing
set gg_trg_ChimesCthulhu03 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_ChimesCthulhu03, Player(11), EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_ChimesCthulhu03, Condition( function Trig_ChimesCthulhu03_Conditions ) )
call TriggerAddAction( gg_trg_ChimesCthulhu03, function Trig_ChimesCthulhu03_Actions )
endfunction
function Trig_ChimesCthulhu04_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttackedUnitBJ()) == 'U004' ) ) then
return false
endif
if ( not ( GetItemTypeId(UnitItemInSlotBJ(GetAttacker(), 4)) == 'I00I' ) ) then
return false
endif
return true
endfunction
function Trig_ChimesCthulhu04_Actions takes nothing returns nothing
call UnitDamageTargetBJ( GetAttacker(), GetAttackedUnitBJ(), 200.00, ATTACK_TYPE_CHAOS, DAMAGE_TYPE_NORMAL )
endfunction
//===========================================================================
function InitTrig_ChimesCthulhu04 takes nothing returns nothing
set gg_trg_ChimesCthulhu04 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_ChimesCthulhu04, Player(11), EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_ChimesCthulhu04, Condition( function Trig_ChimesCthulhu04_Conditions ) )
call TriggerAddAction( gg_trg_ChimesCthulhu04, function Trig_ChimesCthulhu04_Actions )
endfunction
function Trig_ChimesCthulhu05_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttackedUnitBJ()) == 'U004' ) ) then
return false
endif
if ( not ( GetItemTypeId(UnitItemInSlotBJ(GetAttacker(), 5)) == 'I00I' ) ) then
return false
endif
return true
endfunction
function Trig_ChimesCthulhu05_Actions takes nothing returns nothing
call UnitDamageTargetBJ( GetAttacker(), GetAttackedUnitBJ(), 200.00, ATTACK_TYPE_CHAOS, DAMAGE_TYPE_NORMAL )
endfunction
//===========================================================================
function InitTrig_ChimesCthulhu05 takes nothing returns nothing
set gg_trg_ChimesCthulhu05 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_ChimesCthulhu05, Player(11), EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_ChimesCthulhu05, Condition( function Trig_ChimesCthulhu05_Conditions ) )
call TriggerAddAction( gg_trg_ChimesCthulhu05, function Trig_ChimesCthulhu05_Actions )
endfunction
function Trig_ChimesCthulhu06_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttackedUnitBJ()) == 'U004' ) ) then
return false
endif
if ( not ( GetItemTypeId(UnitItemInSlotBJ(GetAttacker(), 6)) == 'I00I' ) ) then
return false
endif
return true
endfunction
function Trig_ChimesCthulhu06_Actions takes nothing returns nothing
call UnitDamageTargetBJ( GetAttacker(), GetAttackedUnitBJ(), 200.00, ATTACK_TYPE_CHAOS, DAMAGE_TYPE_NORMAL )
endfunction
//===========================================================================
function InitTrig_ChimesCthulhu06 takes nothing returns nothing
set gg_trg_ChimesCthulhu06 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_ChimesCthulhu06, Player(11), EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_ChimesCthulhu06, Condition( function Trig_ChimesCthulhu06_Conditions ) )
call TriggerAddAction( gg_trg_ChimesCthulhu06, function Trig_ChimesCthulhu06_Actions )
endfunction
function Trig_Pendant_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I00J' ) ) then
return false
endif
return true
endfunction
function Trig_Pendant_Actions takes nothing returns nothing
call UnitAddAbilityBJ( 'Aoar', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_Pendant takes nothing returns nothing
set gg_trg_Pendant = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Pendant, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Pendant, Condition( function Trig_Pendant_Conditions ) )
call TriggerAddAction( gg_trg_Pendant, function Trig_Pendant_Actions )
endfunction
function Trig_PendantLOSE_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I00J' ) ) then
return false
endif
return true
endfunction
function Trig_PendantLOSE_Func002001 takes nothing returns boolean
return ( GetUnitTypeId(GetManipulatingUnit()) == 'E004' )
endfunction
function Trig_PendantLOSE_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( 'Aoar', GetManipulatingUnit() )
if ( Trig_PendantLOSE_Func002001() ) then
call UnitAddAbilityBJ( 'Aoar', GetManipulatingUnit() )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_PendantLOSE takes nothing returns nothing
set gg_trg_PendantLOSE = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_PendantLOSE, EVENT_PLAYER_UNIT_DROP_ITEM )
call TriggerAddCondition( gg_trg_PendantLOSE, Condition( function Trig_PendantLOSE_Conditions ) )
call TriggerAddAction( gg_trg_PendantLOSE, function Trig_PendantLOSE_Actions )
endfunction
function Trig_Bounty_Conditions takes nothing returns boolean
if ( not ( GetAttackedUnitBJ() == gg_unit_o003_0012 ) ) then
return false
endif
return true
endfunction
function Trig_Bounty_Func001001 takes nothing returns boolean
return ( ( ( ( ( 0.50 - 0.10 ) / ( 10.00 - 70.00 ) ) * I2R(GetHeroStatBJ(bj_HEROSTAT_AGI, GetAttacker(), true)) ) + ( 0.50 - ( ( ( 0.50 - 0.10 ) / ( 10.00 - 70.00 ) ) * 10.00 ) ) ) <= 0.00 )
endfunction
function Trig_Bounty_Func008003001 takes nothing returns boolean
return ( GetOwningPlayer(GetAttacker()) == GetFilterPlayer() )
endfunction
function Trig_Bounty_Actions takes nothing returns nothing
if ( Trig_Bounty_Func001001() ) then
call TriggerSleepAction( 0.01 )
else
call DoNothing( )
endif
call TriggerSleepAction( ( ( ( ( 0.50 - 0.10 ) / ( 10.00 - 70.00 ) ) * I2R(GetHeroStatBJ(bj_HEROSTAT_AGI, GetAttacker(), true)) ) + ( 0.50 - ( ( ( 0.50 - 0.10 ) / ( 10.00 - 70.00 ) ) * 10.00 ) ) ) )
set udg_BountyDAMAGE[GetUnitUserData(GetAttackedUnitBJ())] = ( udg_BountyGOLD[GetUnitUserData(GetAttackedUnitBJ())] - R2I(GetUnitStateSwap(UNIT_STATE_LIFE, GetAttackedUnitBJ())) )
set udg_BountyGOLD[GetUnitUserData(GetAttackedUnitBJ())] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, GetAttackedUnitBJ()))
call AdjustPlayerStateBJ( ( udg_BountyDAMAGE[GetUnitUserData(GetAttackedUnitBJ())] / 5 ), GetOwningPlayer(GetAttacker()), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( ( "+" + I2S(( udg_BountyDAMAGE[GetUnitUserData(GetAttackedUnitBJ())] / 5 )) ), GetAttacker(), 0, 10, 100, 100, 0.00, 0 )
call ShowTextTagForceBJ( false, GetLastCreatedTextTag(), GetPlayersAll() )
call ShowTextTagForceBJ( true, GetLastCreatedTextTag(), GetPlayersMatching(Condition(function Trig_Bounty_Func008003001)) )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 0.50 )
endfunction
//===========================================================================
function InitTrig_Bounty1Old takes nothing returns nothing
set gg_trg_Bounty1Old = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Bounty1Old, Player(11), EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Bounty1Old, Condition( function Trig_Bounty_Conditions ) )
call TriggerAddAction( gg_trg_Bounty1Old, function Trig_Bounty_Actions )
endfunction
function Trig_Bounty2_Conditions takes nothing returns boolean
if ( not ( GetAttackedUnitBJ() == gg_unit_o004_0033 ) ) then
return false
endif
return true
endfunction
function Trig_Bounty2_Func001001 takes nothing returns boolean
return ( ( ( ( ( 0.50 - 0.10 ) / ( 10.00 - 70.00 ) ) * I2R(GetHeroStatBJ(bj_HEROSTAT_AGI, GetAttacker(), true)) ) + ( 0.50 - ( ( ( 0.50 - 0.10 ) / ( 10.00 - 70.00 ) ) * 10.00 ) ) ) <= 0.00 )
endfunction
function Trig_Bounty2_Func008003001 takes nothing returns boolean
return ( GetOwningPlayer(GetAttacker()) == GetFilterPlayer() )
endfunction
function Trig_Bounty2_Actions takes nothing returns nothing
if ( Trig_Bounty2_Func001001() ) then
call TriggerSleepAction( 0.01 )
else
call DoNothing( )
endif
call TriggerSleepAction( ( ( ( ( 0.50 - 0.10 ) / ( 10.00 - 70.00 ) ) * I2R(GetHeroStatBJ(bj_HEROSTAT_AGI, GetAttacker(), true)) ) + ( 0.50 - ( ( ( 0.50 - 0.10 ) / ( 10.00 - 70.00 ) ) * 10.00 ) ) ) )
set udg_BountyDAMAGE[GetUnitUserData(GetAttackedUnitBJ())] = ( udg_BountyGOLD[GetUnitUserData(GetAttackedUnitBJ())] - R2I(GetUnitStateSwap(UNIT_STATE_LIFE, GetAttackedUnitBJ())) )
set udg_BountyGOLD[GetUnitUserData(GetAttackedUnitBJ())] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, GetAttackedUnitBJ()))
call AdjustPlayerStateBJ( ( udg_BountyDAMAGE[GetUnitUserData(GetAttackedUnitBJ())] / 5 ), GetOwningPlayer(GetAttacker()), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( ( "+" + I2S(( udg_BountyDAMAGE[GetUnitUserData(GetAttackedUnitBJ())] / 5 )) ), GetAttacker(), 0, 10, 100, 100, 0.00, 0 )
call ShowTextTagForceBJ( false, GetLastCreatedTextTag(), GetPlayersAll() )
call ShowTextTagForceBJ( true, GetLastCreatedTextTag(), GetPlayersMatching(Condition(function Trig_Bounty2_Func008003001)) )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 0.50 )
endfunction
//===========================================================================
function InitTrig_Bounty2Old takes nothing returns nothing
set gg_trg_Bounty2Old = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Bounty2Old, Player(11), EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Bounty2Old, Condition( function Trig_Bounty2_Conditions ) )
call TriggerAddAction( gg_trg_Bounty2Old, function Trig_Bounty2_Actions )
endfunction
function Trig_Bounty3_Conditions takes nothing returns boolean
if ( not ( GetAttackedUnitBJ() == gg_unit_o005_0037 ) ) then
return false
endif
return true
endfunction
function Trig_Bounty3_Func001001 takes nothing returns boolean
return ( ( ( ( ( 0.50 - 0.10 ) / ( 10.00 - 70.00 ) ) * I2R(GetHeroStatBJ(bj_HEROSTAT_AGI, GetAttacker(), true)) ) + ( 0.50 - ( ( ( 0.50 - 0.10 ) / ( 10.00 - 70.00 ) ) * 10.00 ) ) ) <= 0.00 )
endfunction
function Trig_Bounty3_Func008003001 takes nothing returns boolean
return ( GetOwningPlayer(GetAttacker()) == GetFilterPlayer() )
endfunction
function Trig_Bounty3_Actions takes nothing returns nothing
if ( Trig_Bounty3_Func001001() ) then
call TriggerSleepAction( 0.01 )
else
call DoNothing( )
endif
call TriggerSleepAction( ( ( ( ( 0.50 - 0.10 ) / ( 10.00 - 70.00 ) ) * I2R(GetHeroStatBJ(bj_HEROSTAT_AGI, GetAttacker(), true)) ) + ( 0.50 - ( ( ( 0.50 - 0.10 ) / ( 10.00 - 70.00 ) ) * 10.00 ) ) ) )
set udg_BountyDAMAGE[GetUnitUserData(GetAttackedUnitBJ())] = ( udg_BountyGOLD[GetUnitUserData(GetAttackedUnitBJ())] - R2I(GetUnitStateSwap(UNIT_STATE_LIFE, GetAttackedUnitBJ())) )
set udg_BountyGOLD[GetUnitUserData(GetAttackedUnitBJ())] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, GetAttackedUnitBJ()))
call AdjustPlayerStateBJ( ( udg_BountyDAMAGE[GetUnitUserData(GetAttackedUnitBJ())] / 5 ), GetOwningPlayer(GetAttacker()), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( ( "+" + I2S(( udg_BountyDAMAGE[GetUnitUserData(GetAttackedUnitBJ())] / 5 )) ), GetAttacker(), 0, 10, 100, 100, 0.00, 0 )
call ShowTextTagForceBJ( false, GetLastCreatedTextTag(), GetPlayersAll() )
call ShowTextTagForceBJ( true, GetLastCreatedTextTag(), GetPlayersMatching(Condition(function Trig_Bounty3_Func008003001)) )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 0.50 )
endfunction
//===========================================================================
function InitTrig_Bounty3Old takes nothing returns nothing
set gg_trg_Bounty3Old = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Bounty3Old, Player(11), EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Bounty3Old, Condition( function Trig_Bounty3_Conditions ) )
call TriggerAddAction( gg_trg_Bounty3Old, function Trig_Bounty3_Actions )
endfunction
function Trig_Bounty4_Conditions takes nothing returns boolean
if ( not ( GetAttackedUnitBJ() == gg_unit_o006_0038 ) ) then
return false
endif
return true
endfunction
function Trig_Bounty4_Func001001 takes nothing returns boolean
return ( ( ( ( ( 0.50 - 0.10 ) / ( 10.00 - 70.00 ) ) * I2R(GetHeroStatBJ(bj_HEROSTAT_AGI, GetAttacker(), true)) ) + ( 0.50 - ( ( ( 0.50 - 0.10 ) / ( 10.00 - 70.00 ) ) * 10.00 ) ) ) <= 0.00 )
endfunction
function Trig_Bounty4_Func008003001 takes nothing returns boolean
return ( GetOwningPlayer(GetAttacker()) == GetFilterPlayer() )
endfunction
function Trig_Bounty4_Actions takes nothing returns nothing
if ( Trig_Bounty4_Func001001() ) then
call TriggerSleepAction( 0.01 )
else
call DoNothing( )
endif
call TriggerSleepAction( ( ( ( ( 0.50 - 0.10 ) / ( 10.00 - 70.00 ) ) * I2R(GetHeroStatBJ(bj_HEROSTAT_AGI, GetAttacker(), true)) ) + ( 0.50 - ( ( ( 0.50 - 0.10 ) / ( 10.00 - 70.00 ) ) * 10.00 ) ) ) )
set udg_BountyDAMAGE[GetUnitUserData(GetAttackedUnitBJ())] = ( udg_BountyGOLD[GetUnitUserData(GetAttackedUnitBJ())] - R2I(GetUnitStateSwap(UNIT_STATE_LIFE, GetAttackedUnitBJ())) )
set udg_BountyGOLD[GetUnitUserData(GetAttackedUnitBJ())] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, GetAttackedUnitBJ()))
call AdjustPlayerStateBJ( ( udg_BountyDAMAGE[GetUnitUserData(GetAttackedUnitBJ())] / 5 ), GetOwningPlayer(GetAttacker()), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( ( "+" + I2S(( udg_BountyDAMAGE[GetUnitUserData(GetAttackedUnitBJ())] / 5 )) ), GetAttacker(), 0, 10, 100, 100, 0.00, 0 )
call ShowTextTagForceBJ( false, GetLastCreatedTextTag(), GetPlayersAll() )
call ShowTextTagForceBJ( true, GetLastCreatedTextTag(), GetPlayersMatching(Condition(function Trig_Bounty4_Func008003001)) )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 0.50 )
endfunction
//===========================================================================
function InitTrig_Bounty4Old takes nothing returns nothing
set gg_trg_Bounty4Old = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Bounty4Old, Player(11), EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Bounty4Old, Condition( function Trig_Bounty4_Conditions ) )
call TriggerAddAction( gg_trg_Bounty4Old, function Trig_Bounty4_Actions )
endfunction
function Trig_Bounty5_Conditions takes nothing returns boolean
if ( not ( GetAttackedUnitBJ() == gg_unit_o00B_0048 ) ) then
return false
endif
return true
endfunction
function Trig_Bounty5_Func001001 takes nothing returns boolean
return ( ( ( ( ( 0.50 - 0.10 ) / ( 10.00 - 70.00 ) ) * I2R(GetHeroStatBJ(bj_HEROSTAT_AGI, GetAttacker(), true)) ) + ( 0.50 - ( ( ( 0.50 - 0.10 ) / ( 10.00 - 70.00 ) ) * 10.00 ) ) ) <= 0.00 )
endfunction
function Trig_Bounty5_Func008003001 takes nothing returns boolean
return ( GetOwningPlayer(GetAttacker()) == GetFilterPlayer() )
endfunction
function Trig_Bounty5_Actions takes nothing returns nothing
if ( Trig_Bounty5_Func001001() ) then
call TriggerSleepAction( 0.01 )
else
call DoNothing( )
endif
call TriggerSleepAction( ( ( ( ( 0.50 - 0.10 ) / ( 10.00 - 70.00 ) ) * I2R(GetHeroStatBJ(bj_HEROSTAT_AGI, GetAttacker(), true)) ) + ( 0.50 - ( ( ( 0.50 - 0.10 ) / ( 10.00 - 70.00 ) ) * 10.00 ) ) ) )
set udg_BountyDAMAGE[GetUnitUserData(GetAttackedUnitBJ())] = ( udg_BountyGOLD[GetUnitUserData(GetAttackedUnitBJ())] - R2I(GetUnitStateSwap(UNIT_STATE_LIFE, GetAttackedUnitBJ())) )
set udg_BountyGOLD[GetUnitUserData(GetAttackedUnitBJ())] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, GetAttackedUnitBJ()))
call AdjustPlayerStateBJ( ( udg_BountyDAMAGE[GetUnitUserData(GetAttackedUnitBJ())] / 5 ), GetOwningPlayer(GetAttacker()), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( ( "+" + I2S(( udg_BountyDAMAGE[GetUnitUserData(GetAttackedUnitBJ())] / 5 )) ), GetAttacker(), 0, 10, 100, 100, 0.00, 0 )
call ShowTextTagForceBJ( false, GetLastCreatedTextTag(), GetPlayersAll() )
call ShowTextTagForceBJ( true, GetLastCreatedTextTag(), GetPlayersMatching(Condition(function Trig_Bounty5_Func008003001)) )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 0.50 )
endfunction
//===========================================================================
function InitTrig_Bounty5Old takes nothing returns nothing
set gg_trg_Bounty5Old = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Bounty5Old, Player(11), EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Bounty5Old, Condition( function Trig_Bounty5_Conditions ) )
call TriggerAddAction( gg_trg_Bounty5Old, function Trig_Bounty5_Actions )
endfunction
function Trig_Bounty6_Conditions takes nothing returns boolean
if ( not ( GetAttackedUnitBJ() == gg_unit_U005_0120 ) ) then
return false
endif
return true
endfunction
function Trig_Bounty6_Func001001 takes nothing returns boolean
return ( ( ( ( ( 0.50 - 0.10 ) / ( 10.00 - 70.00 ) ) * I2R(GetHeroStatBJ(bj_HEROSTAT_AGI, GetAttacker(), true)) ) + ( 0.50 - ( ( ( 0.50 - 0.10 ) / ( 10.00 - 70.00 ) ) * 10.00 ) ) ) <= 0.00 )
endfunction
function Trig_Bounty6_Func008003001 takes nothing returns boolean
return ( GetOwningPlayer(GetAttacker()) == GetFilterPlayer() )
endfunction
function Trig_Bounty6_Actions takes nothing returns nothing
if ( Trig_Bounty6_Func001001() ) then
call TriggerSleepAction( 0.01 )
else
call DoNothing( )
endif
call TriggerSleepAction( ( ( ( ( 0.50 - 0.10 ) / ( 10.00 - 70.00 ) ) * I2R(GetHeroStatBJ(bj_HEROSTAT_AGI, GetAttacker(), true)) ) + ( 0.50 - ( ( ( 0.50 - 0.10 ) / ( 10.00 - 70.00 ) ) * 10.00 ) ) ) )
set udg_BountyDAMAGE[GetUnitUserData(GetAttackedUnitBJ())] = ( udg_BountyGOLD[GetUnitUserData(GetAttackedUnitBJ())] - R2I(GetUnitStateSwap(UNIT_STATE_LIFE, GetAttackedUnitBJ())) )
set udg_BountyGOLD[GetUnitUserData(GetAttackedUnitBJ())] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, GetAttackedUnitBJ()))
call AdjustPlayerStateBJ( ( udg_BountyDAMAGE[GetUnitUserData(GetAttackedUnitBJ())] / 5 ), GetOwningPlayer(GetAttacker()), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( ( "+" + I2S(( udg_BountyDAMAGE[GetUnitUserData(GetAttackedUnitBJ())] / 5 )) ), GetAttacker(), 0, 10, 100, 100, 0.00, 0 )
call ShowTextTagForceBJ( false, GetLastCreatedTextTag(), GetPlayersAll() )
call ShowTextTagForceBJ( true, GetLastCreatedTextTag(), GetPlayersMatching(Condition(function Trig_Bounty6_Func008003001)) )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 0.50 )
endfunction
//===========================================================================
function InitTrig_Bounty6Old takes nothing returns nothing
set gg_trg_Bounty6Old = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Bounty6Old, Player(11), EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Bounty6Old, Condition( function Trig_Bounty6_Conditions ) )
call TriggerAddAction( gg_trg_Bounty6Old, function Trig_Bounty6_Actions )
endfunction
function Trig_Bounty7_Conditions takes nothing returns boolean
if ( not ( GetAttackedUnitBJ() == gg_unit_U004_0121 ) ) then
return false
endif
return true
endfunction
function Trig_Bounty7_Func001001 takes nothing returns boolean
return ( ( ( ( ( 0.50 - 0.10 ) / ( 10.00 - 70.00 ) ) * I2R(GetHeroStatBJ(bj_HEROSTAT_AGI, GetAttacker(), true)) ) + ( 0.50 - ( ( ( 0.50 - 0.10 ) / ( 10.00 - 70.00 ) ) * 10.00 ) ) ) <= 0.00 )
endfunction
function Trig_Bounty7_Func008003001 takes nothing returns boolean
return ( GetOwningPlayer(GetAttacker()) == GetFilterPlayer() )
endfunction
function Trig_Bounty7_Actions takes nothing returns nothing
if ( Trig_Bounty7_Func001001() ) then
call TriggerSleepAction( 0.01 )
else
call DoNothing( )
endif
call TriggerSleepAction( ( ( ( ( 0.50 - 0.10 ) / ( 10.00 - 70.00 ) ) * I2R(GetHeroStatBJ(bj_HEROSTAT_AGI, GetAttacker(), true)) ) + ( 0.50 - ( ( ( 0.50 - 0.10 ) / ( 10.00 - 70.00 ) ) * 10.00 ) ) ) )
set udg_BountyDAMAGE[GetUnitUserData(GetAttackedUnitBJ())] = ( udg_BountyGOLD[GetUnitUserData(GetAttackedUnitBJ())] - R2I(GetUnitStateSwap(UNIT_STATE_LIFE, GetAttackedUnitBJ())) )
set udg_BountyGOLD[GetUnitUserData(GetAttackedUnitBJ())] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, GetAttackedUnitBJ()))
call AdjustPlayerStateBJ( ( udg_BountyDAMAGE[GetUnitUserData(GetAttackedUnitBJ())] / 5 ), GetOwningPlayer(GetAttacker()), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( ( "+" + I2S(( udg_BountyDAMAGE[GetUnitUserData(GetAttackedUnitBJ())] / 5 )) ), GetAttacker(), 0, 10, 100, 100, 0.00, 0 )
call ShowTextTagForceBJ( false, GetLastCreatedTextTag(), GetPlayersAll() )
call ShowTextTagForceBJ( true, GetLastCreatedTextTag(), GetPlayersMatching(Condition(function Trig_Bounty7_Func008003001)) )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 0.50 )
endfunction
//===========================================================================
function InitTrig_Bounty7Old takes nothing returns nothing
set gg_trg_Bounty7Old = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Bounty7Old, Player(11), EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Bounty7Old, Condition( function Trig_Bounty7_Conditions ) )
call TriggerAddAction( gg_trg_Bounty7Old, function Trig_Bounty7_Actions )
endfunction
function Trig_Damage_Trigger_Conditions takes nothing returns boolean
if ( not ( GetAttackedUnitBJ() != gg_unit_o003_0012 ) ) then
return false
endif
if ( not ( GetAttackedUnitBJ() != gg_unit_o004_0033 ) ) then
return false
endif
if ( not ( GetAttackedUnitBJ() != gg_unit_o005_0037 ) ) then
return false
endif
if ( not ( GetAttackedUnitBJ() != gg_unit_o006_0038 ) ) then
return false
endif
if ( not ( GetAttackedUnitBJ() != gg_unit_o00B_0048 ) ) then
return false
endif
if ( not ( GetAttackedUnitBJ() != gg_unit_U005_0120 ) ) then
return false
endif
if ( not ( GetAttackedUnitBJ() != gg_unit_U004_0121 ) ) then
return false
endif
if ( not ( IsUnitIllusionBJ(GetAttacker()) == false ) ) then
return false
endif
return true
endfunction
function Trig_Damage_Trigger_Func009Func002001 takes nothing returns boolean
return ( ( ( ( ( 0.20 - 0.10 ) / ( 30.00 - 100.00 ) ) * I2R(GetHeroStatBJ(bj_HEROSTAT_AGI, GetAttacker(), true)) ) + 0.67 ) <= 0.00 )
endfunction
function Trig_Damage_Trigger_Func009Func009003001 takes nothing returns boolean
return ( GetOwningPlayer(GetAttacker()) == GetFilterPlayer() )
endfunction
function Trig_Damage_Trigger_Func009C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetAttacker()) == Player(0) ) ) then
return false
endif
return true
endfunction
function Trig_Damage_Trigger_Func010Func002001 takes nothing returns boolean
return ( ( ( ( ( 0.20 - 0.10 ) / ( 30.00 - 100.00 ) ) * I2R(GetHeroStatBJ(bj_HEROSTAT_AGI, GetAttacker(), true)) ) + 0.67 ) <= 0.00 )
endfunction
function Trig_Damage_Trigger_Func010Func009003001 takes nothing returns boolean
return ( GetOwningPlayer(GetAttacker()) == GetFilterPlayer() )
endfunction
function Trig_Damage_Trigger_Func010C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetAttacker()) == Player(1) ) ) then
return false
endif
return true
endfunction
function Trig_Damage_Trigger_Func011Func002001 takes nothing returns boolean
return ( ( ( ( ( 0.20 - 0.10 ) / ( 30.00 - 100.00 ) ) * I2R(GetHeroStatBJ(bj_HEROSTAT_AGI, GetAttacker(), true)) ) + 0.67 ) <= 0.00 )
endfunction
function Trig_Damage_Trigger_Func011Func009003001 takes nothing returns boolean
return ( GetOwningPlayer(GetAttacker()) == GetFilterPlayer() )
endfunction
function Trig_Damage_Trigger_Func011C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetAttacker()) == Player(2) ) ) then
return false
endif
return true
endfunction
function Trig_Damage_Trigger_Func012Func002001 takes nothing returns boolean
return ( ( ( ( ( 0.20 - 0.10 ) / ( 30.00 - 100.00 ) ) * I2R(GetHeroStatBJ(bj_HEROSTAT_AGI, GetAttacker(), true)) ) + 0.67 ) <= 0.00 )
endfunction
function Trig_Damage_Trigger_Func012Func009003001 takes nothing returns boolean
return ( GetOwningPlayer(GetAttacker()) == GetFilterPlayer() )
endfunction
function Trig_Damage_Trigger_Func012C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetAttacker()) == Player(3) ) ) then
return false
endif
return true
endfunction
function Trig_Damage_Trigger_Actions takes nothing returns nothing
if ( Trig_Damage_Trigger_Func009C() ) then
set udg__1[udg_BountyGOLD[GetUnitUserData(GetAttackedUnitBJ())]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, GetAttackedUnitBJ()))
if ( Trig_Damage_Trigger_Func009Func002001() ) then
call TriggerSleepAction( 0.01 )
else
call DoNothing( )
endif
call TriggerSleepAction( ( ( ( ( 0.50 - 0.10 ) / ( 30.00 - 100.00 ) ) * I2R(GetHeroStatBJ(bj_HEROSTAT_AGI, GetAttacker(), true)) ) + 0.67 ) )
set udg__1[udg_BountyDAMAGE[GetUnitUserData(GetAttackedUnitBJ())]] = ( udg__1[udg_BountyGOLD[GetUnitUserData(GetAttackedUnitBJ())]] - R2I(GetUnitStateSwap(UNIT_STATE_LIFE, GetAttackedUnitBJ())) )
call AdjustPlayerStateBJ( ( udg__1[udg_BountyDAMAGE[GetUnitUserData(GetAttackedUnitBJ())]] / 5 ), GetOwningPlayer(GetAttacker()), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( ( "+" + I2S(( udg__1[udg_BountyDAMAGE[GetUnitUserData(GetAttackedUnitBJ())]] / 5 )) ), GetAttacker(), 0, 10, 100, 100, 0.00, 0 )
call ShowTextTagForceBJ( false, GetLastCreatedTextTag(), GetPlayersAll() )
call ShowTextTagForceBJ( true, GetLastCreatedTextTag(), GetPlayersMatching(Condition(function Trig_Damage_Trigger_Func009Func009003001)) )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 0.50 )
else
call DoNothing( )
endif
if ( Trig_Damage_Trigger_Func010C() ) then
set udg__2[udg_BountyGOLD[GetUnitUserData(GetAttackedUnitBJ())]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, GetAttackedUnitBJ()))
if ( Trig_Damage_Trigger_Func010Func002001() ) then
call TriggerSleepAction( 0.01 )
else
call DoNothing( )
endif
call TriggerSleepAction( ( ( ( ( 0.50 - 0.10 ) / ( 30.00 - 100.00 ) ) * I2R(GetHeroStatBJ(bj_HEROSTAT_AGI, GetAttacker(), true)) ) + 0.67 ) )
set udg__2[udg_BountyDAMAGE[GetUnitUserData(GetAttackedUnitBJ())]] = ( udg__2[udg_BountyGOLD[GetUnitUserData(GetAttackedUnitBJ())]] - R2I(GetUnitStateSwap(UNIT_STATE_LIFE, GetAttackedUnitBJ())) )
call AdjustPlayerStateBJ( ( udg__2[udg_BountyDAMAGE[GetUnitUserData(GetAttackedUnitBJ())]] / 5 ), GetOwningPlayer(GetAttacker()), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( ( "+" + I2S(( udg__2[udg_BountyDAMAGE[GetUnitUserData(GetAttackedUnitBJ())]] / 5 )) ), GetAttacker(), 0, 10, 100, 100, 0.00, 0 )
call ShowTextTagForceBJ( false, GetLastCreatedTextTag(), GetPlayersAll() )
call ShowTextTagForceBJ( true, GetLastCreatedTextTag(), GetPlayersMatching(Condition(function Trig_Damage_Trigger_Func010Func009003001)) )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 0.50 )
else
call DoNothing( )
endif
if ( Trig_Damage_Trigger_Func011C() ) then
set udg__3[udg_BountyGOLD[GetUnitUserData(GetAttackedUnitBJ())]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, GetAttackedUnitBJ()))
if ( Trig_Damage_Trigger_Func011Func002001() ) then
call TriggerSleepAction( 0.01 )
else
call DoNothing( )
endif
call TriggerSleepAction( ( ( ( ( 0.50 - 0.10 ) / ( 30.00 - 100.00 ) ) * I2R(GetHeroStatBJ(bj_HEROSTAT_AGI, GetAttacker(), true)) ) + 0.67 ) )
set udg__3[udg_BountyDAMAGE[GetUnitUserData(GetAttackedUnitBJ())]] = ( udg__3[udg_BountyGOLD[GetUnitUserData(GetAttackedUnitBJ())]] - R2I(GetUnitStateSwap(UNIT_STATE_LIFE, GetAttackedUnitBJ())) )
call AdjustPlayerStateBJ( ( udg__3[udg_BountyDAMAGE[GetUnitUserData(GetAttackedUnitBJ())]] / 5 ), GetOwningPlayer(GetAttacker()), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( ( "+" + I2S(( udg__1[udg_BountyDAMAGE[GetUnitUserData(GetAttackedUnitBJ())]] / 5 )) ), GetAttacker(), 0, 10, 100, 100, 0.00, 0 )
call ShowTextTagForceBJ( false, GetLastCreatedTextTag(), GetPlayersAll() )
call ShowTextTagForceBJ( true, GetLastCreatedTextTag(), GetPlayersMatching(Condition(function Trig_Damage_Trigger_Func011Func009003001)) )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 0.50 )
else
call DoNothing( )
endif
if ( Trig_Damage_Trigger_Func012C() ) then
set udg__4[udg_BountyGOLD[GetUnitUserData(GetAttackedUnitBJ())]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, GetAttackedUnitBJ()))
if ( Trig_Damage_Trigger_Func012Func002001() ) then
call TriggerSleepAction( 0.01 )
else
call DoNothing( )
endif
call TriggerSleepAction( ( ( ( ( 0.50 - 0.10 ) / ( 30.00 - 100.00 ) ) * I2R(GetHeroStatBJ(bj_HEROSTAT_AGI, GetAttacker(), true)) ) + 0.67 ) )
set udg__4[udg_BountyDAMAGE[GetUnitUserData(GetAttackedUnitBJ())]] = ( udg__4[udg_BountyGOLD[GetUnitUserData(GetAttackedUnitBJ())]] - R2I(GetUnitStateSwap(UNIT_STATE_LIFE, GetAttackedUnitBJ())) )
call AdjustPlayerStateBJ( ( udg__4[udg_BountyDAMAGE[GetUnitUserData(GetAttackedUnitBJ())]] / 5 ), GetOwningPlayer(GetAttacker()), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( ( "+" + I2S(( udg__4[udg_BountyDAMAGE[GetUnitUserData(GetAttackedUnitBJ())]] / 5 )) ), GetAttacker(), 0, 10, 100, 100, 0.00, 0 )
call ShowTextTagForceBJ( false, GetLastCreatedTextTag(), GetPlayersAll() )
call ShowTextTagForceBJ( true, GetLastCreatedTextTag(), GetPlayersMatching(Condition(function Trig_Damage_Trigger_Func012Func009003001)) )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 0.50 )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Damage_TriggerOld takes nothing returns nothing
set gg_trg_Damage_TriggerOld = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Damage_TriggerOld, Player(11), EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Damage_TriggerOld, Condition( function Trig_Damage_Trigger_Conditions ) )
call TriggerAddAction( gg_trg_Damage_TriggerOld, function Trig_Damage_Trigger_Actions )
endfunction
function Trig_Bounty_Conditions takes nothing returns boolean
if ( not ( IsUnitIllusionBJ(GetAttacker()) == false ) ) then
return false
endif
if ( not ( GetAttackedUnitBJ() != gg_unit_o003_0012 ) ) then
return false
endif
if ( not ( GetAttackedUnitBJ() != gg_unit_o004_0033 ) ) then
return false
endif
if ( not ( GetAttackedUnitBJ() != gg_unit_o006_0038 ) ) then
return false
endif
if ( not ( GetAttackedUnitBJ() != gg_unit_o00B_0048 ) ) then
return false
endif
if ( not ( GetAttackedUnitBJ() != gg_unit_o005_0037 ) ) then
return false
endif
if ( not ( GetAttackedUnitBJ() != gg_unit_U005_0120 ) ) then
return false
endif
if ( not ( GetAttackedUnitBJ() != gg_unit_U004_0121 ) ) then
return false
endif
return true
endfunction
function Trig_Bounty_Func010Func002001 takes nothing returns boolean
return ( ( ( ( ( 0.20 - 0.10 ) / ( 30.00 - 100.00 ) ) * I2R(GetHeroStatBJ(bj_HEROSTAT_AGI, GetAttacker(), true)) ) + 0.67 ) <= 0.00 )
endfunction
function Trig_Bounty_Func010C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetAttacker()) == Player(0) ) ) then
return false
endif
return true
endfunction
function Trig_Bounty_Func011Func002001 takes nothing returns boolean
return ( ( ( ( ( 0.20 - 0.10 ) / ( 30.00 - 100.00 ) ) * I2R(GetHeroStatBJ(bj_HEROSTAT_AGI, GetAttacker(), true)) ) + 0.67 ) <= 0.00 )
endfunction
function Trig_Bounty_Func011C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetAttacker()) == Player(1) ) ) then
return false
endif
return true
endfunction
function Trig_Bounty_Func012Func002001 takes nothing returns boolean
return ( ( ( ( ( 0.20 - 0.10 ) / ( 30.00 - 100.00 ) ) * I2R(GetHeroStatBJ(bj_HEROSTAT_AGI, GetAttacker(), true)) ) + 0.67 ) <= 0.00 )
endfunction
function Trig_Bounty_Func012C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetAttacker()) == Player(2) ) ) then
return false
endif
return true
endfunction
function Trig_Bounty_Func013Func002001 takes nothing returns boolean
return ( ( ( ( ( 0.20 - 0.10 ) / ( 30.00 - 100.00 ) ) * I2R(GetHeroStatBJ(bj_HEROSTAT_AGI, GetAttacker(), true)) ) + 0.67 ) <= 0.00 )
endfunction
function Trig_Bounty_Func013C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetAttacker()) == Player(3) ) ) then
return false
endif
return true
endfunction
function Trig_Bounty_Actions takes nothing returns nothing
if ( Trig_Bounty_Func010C() ) then
set udg__1[udg_BountyGOLD[GetUnitUserData(GetAttackedUnitBJ())]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, GetAttackedUnitBJ()))
if ( Trig_Bounty_Func010Func002001() ) then
call TriggerSleepAction( 0.01 )
else
call DoNothing( )
endif
call TriggerSleepAction( ( ( ( ( 0.50 - 0.10 ) / ( 30.00 - 100.00 ) ) * I2R(GetHeroStatBJ(bj_HEROSTAT_AGI, GetAttacker(), true)) ) + 0.67 ) )
set udg__1[udg_BountyDAMAGE[GetUnitUserData(GetAttackedUnitBJ())]] = ( udg__1[udg_BountyGOLD[GetUnitUserData(GetAttackedUnitBJ())]] - R2I(GetUnitStateSwap(UNIT_STATE_LIFE, GetAttackedUnitBJ())) )
call UnitDamageTargetBJ( gg_unit_o00J_0210, gg_unit_o008_0172, I2R(udg__1[udg_BountyDAMAGE[GetUnitUserData(GetAttackedUnitBJ())]]), ATTACK_TYPE_MELEE, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
if ( Trig_Bounty_Func011C() ) then
set udg__2[udg_BountyGOLD[GetUnitUserData(GetAttackedUnitBJ())]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, GetAttackedUnitBJ()))
if ( Trig_Bounty_Func011Func002001() ) then
call TriggerSleepAction( 0.01 )
else
call DoNothing( )
endif
call TriggerSleepAction( ( ( ( ( 0.50 - 0.10 ) / ( 30.00 - 100.00 ) ) * I2R(GetHeroStatBJ(bj_HEROSTAT_AGI, GetAttacker(), true)) ) + 0.67 ) )
set udg__2[udg_BountyDAMAGE[GetUnitUserData(GetAttackedUnitBJ())]] = ( udg__2[udg_BountyGOLD[GetUnitUserData(GetAttackedUnitBJ())]] - R2I(GetUnitStateSwap(UNIT_STATE_LIFE, GetAttackedUnitBJ())) )
call UnitDamageTargetBJ( gg_unit_o00J_0210, gg_unit_o008_0186, I2R(udg__2[udg_BountyDAMAGE[GetUnitUserData(GetAttackedUnitBJ())]]), ATTACK_TYPE_MELEE, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
if ( Trig_Bounty_Func012C() ) then
set udg__3[udg_BountyGOLD[GetUnitUserData(GetAttackedUnitBJ())]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, GetAttackedUnitBJ()))
if ( Trig_Bounty_Func012Func002001() ) then
call TriggerSleepAction( 0.01 )
else
call DoNothing( )
endif
call TriggerSleepAction( ( ( ( ( 0.50 - 0.10 ) / ( 30.00 - 100.00 ) ) * I2R(GetHeroStatBJ(bj_HEROSTAT_AGI, GetAttacker(), true)) ) + 0.67 ) )
set udg__3[udg_BountyDAMAGE[GetUnitUserData(GetAttackedUnitBJ())]] = ( udg__3[udg_BountyGOLD[GetUnitUserData(GetAttackedUnitBJ())]] - R2I(GetUnitStateSwap(UNIT_STATE_LIFE, GetAttackedUnitBJ())) )
call UnitDamageTargetBJ( gg_unit_o00J_0210, gg_unit_o008_0206, I2R(udg__3[udg_BountyDAMAGE[GetUnitUserData(GetAttackedUnitBJ())]]), ATTACK_TYPE_MELEE, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
if ( Trig_Bounty_Func013C() ) then
set udg__4[udg_BountyGOLD[GetUnitUserData(GetAttackedUnitBJ())]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, GetAttackedUnitBJ()))
if ( Trig_Bounty_Func013Func002001() ) then
call TriggerSleepAction( 0.01 )
else
call DoNothing( )
endif
call TriggerSleepAction( ( ( ( ( 0.50 - 0.10 ) / ( 30.00 - 100.00 ) ) * I2R(GetHeroStatBJ(bj_HEROSTAT_AGI, GetAttacker(), true)) ) + 0.67 ) )
set udg__4[udg_BountyDAMAGE[GetUnitUserData(GetAttackedUnitBJ())]] = ( udg__4[udg_BountyGOLD[GetUnitUserData(GetAttackedUnitBJ())]] - R2I(GetUnitStateSwap(UNIT_STATE_LIFE, GetAttackedUnitBJ())) )
call UnitDamageTargetBJ( gg_unit_o00J_0210, gg_unit_o008_0209, I2R(udg__4[udg_BountyDAMAGE[GetUnitUserData(GetAttackedUnitBJ())]]), ATTACK_TYPE_MELEE, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Bounty takes nothing returns nothing
set gg_trg_Bounty = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Bounty, Player(11), EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Bounty, Condition( function Trig_Bounty_Conditions ) )
call TriggerAddAction( gg_trg_Bounty, function Trig_Bounty_Actions )
endfunction
function Trig_BountyDamage1_Func005003001 takes nothing returns boolean
return ( GetFilterPlayer() == Player(0) )
endfunction
function Trig_BountyDamage1_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( ( R2I(GetEventDamage()) / 5 ), Player(0), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( ( "+" + I2S(( R2I(GetEventDamage()) / 5 )) ), udg_Hero1, 0, 10, 100, 100, 0.00, 0 )
call ShowTextTagForceBJ( false, GetLastCreatedTextTag(), GetPlayersAll() )
call ShowTextTagForceBJ( true, GetLastCreatedTextTag(), GetPlayersMatching(Condition(function Trig_BountyDamage1_Func005003001)) )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 0.50 )
endfunction
//===========================================================================
function InitTrig_BountyDamage1 takes nothing returns nothing
set gg_trg_BountyDamage1 = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_BountyDamage1, gg_unit_o008_0172, EVENT_UNIT_DAMAGED )
call TriggerAddAction( gg_trg_BountyDamage1, function Trig_BountyDamage1_Actions )
endfunction
function Trig_BountyDamage2_Func005003001 takes nothing returns boolean
return ( GetFilterPlayer() == Player(1) )
endfunction
function Trig_BountyDamage2_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( ( R2I(GetEventDamage()) / 5 ), Player(1), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( ( "+" + I2S(( R2I(GetEventDamage()) / 5 )) ), udg_Hero2, 0, 10, 100, 100, 0.00, 0 )
call ShowTextTagForceBJ( false, GetLastCreatedTextTag(), GetPlayersAll() )
call ShowTextTagForceBJ( true, GetLastCreatedTextTag(), GetPlayersMatching(Condition(function Trig_BountyDamage2_Func005003001)) )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 0.50 )
endfunction
//===========================================================================
function InitTrig_BountyDamage2 takes nothing returns nothing
set gg_trg_BountyDamage2 = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_BountyDamage2, gg_unit_o008_0186, EVENT_UNIT_DAMAGED )
call TriggerAddAction( gg_trg_BountyDamage2, function Trig_BountyDamage2_Actions )
endfunction
function Trig_BountyDamage3_Func005003001 takes nothing returns boolean
return ( GetFilterPlayer() == Player(2) )
endfunction
function Trig_BountyDamage3_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( ( R2I(GetEventDamage()) / 5 ), Player(2), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( ( "+" + I2S(( R2I(GetEventDamage()) / 5 )) ), udg_Hero3, 0, 10, 100, 100, 0.00, 0 )
call ShowTextTagForceBJ( false, GetLastCreatedTextTag(), GetPlayersAll() )
call ShowTextTagForceBJ( true, GetLastCreatedTextTag(), GetPlayersMatching(Condition(function Trig_BountyDamage3_Func005003001)) )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 0.50 )
endfunction
//===========================================================================
function InitTrig_BountyDamage3 takes nothing returns nothing
set gg_trg_BountyDamage3 = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_BountyDamage3, gg_unit_o008_0206, EVENT_UNIT_DAMAGED )
call TriggerAddAction( gg_trg_BountyDamage3, function Trig_BountyDamage3_Actions )
endfunction
function Trig_BountyDamage4_Func005003001 takes nothing returns boolean
return ( GetFilterPlayer() == Player(3) )
endfunction
function Trig_BountyDamage4_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( ( R2I(GetEventDamage()) / 5 ), Player(3), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( ( "+" + I2S(( R2I(GetEventDamage()) / 5 )) ), udg_Hero4, 0, 10, 100, 100, 0.00, 0 )
call ShowTextTagForceBJ( false, GetLastCreatedTextTag(), GetPlayersAll() )
call ShowTextTagForceBJ( true, GetLastCreatedTextTag(), GetPlayersMatching(Condition(function Trig_BountyDamage4_Func005003001)) )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 0.50 )
endfunction
//===========================================================================
function InitTrig_BountyDamage4 takes nothing returns nothing
set gg_trg_BountyDamage4 = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_BountyDamage4, gg_unit_o008_0209, EVENT_UNIT_DAMAGED )
call TriggerAddAction( gg_trg_BountyDamage4, function Trig_BountyDamage4_Actions )
endfunction
function Trig_BountyDamageConstants_Func011003001 takes nothing returns boolean
return ( GetFilterPlayer() == GetOwningPlayer(GetEventDamageSource()) )
endfunction
function Trig_BountyDamageConstants_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( ( R2I(GetEventDamage()) / 5 ), GetOwningPlayer(GetEventDamageSource()), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( ( "+" + I2S(( R2I(GetEventDamage()) / 5 )) ), GetEventDamageSource(), 0, 10, 100, 100, 0.00, 0 )
call ShowTextTagForceBJ( false, GetLastCreatedTextTag(), GetPlayersAll() )
call ShowTextTagForceBJ( true, GetLastCreatedTextTag(), GetPlayersMatching(Condition(function Trig_BountyDamageConstants_Func011003001)) )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 0.50 )
endfunction
//===========================================================================
function InitTrig_BountyDamageConstants takes nothing returns nothing
set gg_trg_BountyDamageConstants = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_o003_0012, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_o004_0033, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_o006_0038, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_o005_0037, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_o00B_0048, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_U005_0120, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_U004_0121, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00D_0245, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00D_0246, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00D_0247, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00D_0248, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00D_0249, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00B_0240, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00B_0241, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00B_0242, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00B_0243, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00B_0244, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00D_0255, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00D_0256, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00D_0257, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00D_0258, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00D_0259, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00B_0250, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00B_0251, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00B_0252, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00B_0253, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00B_0254, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00E_0260, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00E_0261, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00E_0262, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00F_0269, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00F_0270, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00F_0271, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00E_0265, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00E_0264, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00E_0263, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00F_0268, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00F_0267, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00F_0266, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00G_0117, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00F_0159, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00F_0158, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00H_0272, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00H_0274, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00H_0273, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00I_0275, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00I_0276, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00I_0277, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00M_0293, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00M_0294, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00M_0295, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00M_0296, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00M_0297, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00L_0288, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00L_0289, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00L_0290, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00L_0291, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00L_0292, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00H_0278, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00H_0279, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00H_0280, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00H_0281, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00H_0282, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00I_0283, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00I_0284, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00I_0285, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00I_0286, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00I_0287, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00L_0298, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00L_0299, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00L_0300, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00L_0301, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00L_0302, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00M_0303, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00M_0304, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00M_0305, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00M_0306, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00M_0307, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00L_0182, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00L_0181, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00L_0180, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00L_0183, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00L_0184, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00L_0185, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00M_0179, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00N_0177, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00M_0178, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00O_0308, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00O_0309, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00O_0310, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00Q_0311, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00Q_0312, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00Q_0313, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00R_0314, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00R_0315, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00R_0316, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00S_0320, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00S_0321, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00S_0322, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00O_0326, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00O_0327, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00O_0328, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00Q_0416, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00Q_0417, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00Q_0418, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00O_0193, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00Q_0195, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00O_0191, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00P_0190, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00O_0192, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00Q_0196, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00O_0194, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00Q_0332, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00Q_0333, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00Q_0334, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00O_0329, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00O_0330, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00O_0331, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00S_0323, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00S_0324, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00S_0325, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00R_0319, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00R_0318, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00R_0317, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00S_0197, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00S_0199, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00S_0189, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00S_0198, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00S_0200, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00S_0188, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00T_0187, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h011_0336, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h011_0335, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00X_0339, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00X_0340, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00X_0341, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00X_0342, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h011_0337, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h011_0338, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00X_0345, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00X_0346, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00X_0344, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00X_0343, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h012_0347, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h012_0348, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h012_0349, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h012_0350, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h012_0351, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h012_0352, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h012_0355, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h012_0354, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h012_0353, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h015_0386, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h015_0387, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h015_0388, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h014_0356, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h014_0357, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h014_0358, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h015_0389, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h015_0390, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h015_0391, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h014_0362, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h014_0363, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h014_0364, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h015_0395, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h015_0396, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h015_0397, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h014_0359, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h014_0360, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h014_0361, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h015_0392, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h015_0393, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h015_0394, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h014_0365, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h014_0366, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h014_0367, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h015_0400, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h015_0399, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h015_0398, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h014_0377, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h014_0378, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h014_0379, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h015_0401, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h015_0402, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h015_0403, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h014_0374, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h014_0375, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h014_0376, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h015_0404, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h015_0405, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h015_0406, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h014_0368, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h014_0369, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h014_0370, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h015_0407, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h015_0408, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h015_0409, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h014_0371, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h014_0372, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h014_0373, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h015_0412, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h015_0411, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h015_0410, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h014_0382, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h014_0381, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h014_0380, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h015_0413, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h015_0414, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h015_0415, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h014_0383, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h014_0384, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h014_0385, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00C_0160, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00C_0167, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00C_0170, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00C_0171, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00J_0173, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00K_0175, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00J_0174, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00K_0176, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00U_0201, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00V_0204, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00W_0205, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00U_0202, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00U_0203, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00V_0208, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00W_0207, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00Z_0215, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00Y_0211, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00Y_0213, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00Y_0212, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00Y_0214, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h00Z_0217, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h010_0218, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h010_0219, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h010_0220, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h013_0221, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h013_0224, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h013_0222, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h013_0223, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h013_0225, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h013_0226, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h013_0228, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h013_0227, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h013_0229, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BountyDamageConstants, gg_unit_h013_0230, EVENT_UNIT_DAMAGED )
call TriggerAddAction( gg_trg_BountyDamageConstants, function Trig_BountyDamageConstants_Actions )
endfunction
function Trig_Set_Up_NonVariables_Actions takes nothing returns nothing
call TriggerSleepAction( 1.00 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_o003_0012, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_o003_0012))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_o003_0012))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_o003_0012))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_o003_0012))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_o003_0012))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_o004_0033, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_o004_0033))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_o004_0033))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_o004_0033))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_o004_0033))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_o004_0033))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_o006_0038, udg_Bounty )
call SetUnitUserData( gg_unit_o005_0037, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_o006_0038))
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_o005_0037))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_o006_0038))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_o006_0038))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_o006_0038))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_o006_0038))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_o005_0037))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_o005_0037))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_o005_0037))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_o005_0037))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_o00B_0048, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_o00B_0048))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_o00B_0048))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_o00B_0048))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_o00B_0048))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_o00B_0048))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_U005_0120, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_U005_0120))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_U005_0120))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_U005_0120))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_U005_0120))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_U005_0120))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_U004_0121, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_U004_0121))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_U004_0121))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_U004_0121))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_U004_0121))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_U004_0121))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00C_0160, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00C_0160))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00C_0160))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00C_0160))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00C_0160))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00C_0160))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00C_0167, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00C_0167))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00C_0167))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00C_0167))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00C_0167))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00C_0167))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00C_0170, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00C_0170))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00C_0170))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00C_0170))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00C_0170))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00C_0170))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00C_0171, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00C_0171))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00C_0171))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00C_0171))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00C_0171))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00C_0171))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00J_0173, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00J_0173))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00J_0173))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00J_0173))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00J_0173))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00J_0173))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00K_0175, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00K_0175))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00K_0175))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00K_0175))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00K_0175))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00K_0175))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00J_0174, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00J_0174))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00J_0174))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00J_0174))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00J_0174))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00J_0174))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00K_0176, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00K_0176))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00K_0176))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00K_0176))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00K_0176))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00K_0176))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00U_0201, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00U_0201))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00U_0201))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00U_0201))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00U_0201))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00U_0201))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00V_0204, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00V_0204))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00V_0204))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00V_0204))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00V_0204))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00V_0204))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00W_0205, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00W_0205))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00W_0205))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00W_0205))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00W_0205))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00W_0205))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00U_0202, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00U_0203))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00U_0203))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00U_0203))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00U_0203))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00U_0203))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00W_0207, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00W_0207))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00W_0207))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00W_0207))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00W_0207))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00W_0207))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00V_0208, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00V_0208))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00V_0208))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00V_0208))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00V_0208))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00V_0208))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00Y_0211, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00Y_0211))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00Y_0211))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00Y_0211))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00Y_0211))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00Y_0211))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00Y_0213, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00Y_0213))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00Y_0213))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00Y_0213))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00Y_0213))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00Y_0213))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00Z_0215, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00Z_0215))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00Z_0215))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00Z_0215))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00Z_0215))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00Z_0215))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00Z_0217, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00Z_0217))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00Z_0217))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00Z_0217))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00Z_0217))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00Z_0217))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00Y_0212, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00Y_0212))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00Y_0212))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00Y_0212))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00Y_0212))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00Y_0212))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00Y_0214, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00Y_0214))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00Y_0214))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00Y_0214))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00Y_0214))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00Y_0214))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h013_0224, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0224))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0224))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0224))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0224))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0224))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h013_0223, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0223))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0223))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0223))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0223))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0223))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h013_0221, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0221))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0221))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0221))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0221))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0221))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h013_0222, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0222))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0222))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0222))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0222))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0222))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h013_0225, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0225))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0225))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0225))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0225))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0225))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h013_0226, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0226))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0226))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0226))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0226))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0226))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h013_0228, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0228))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0228))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0228))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0228))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0228))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h013_0227, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0227))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0227))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0227))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0227))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0227))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h013_0229, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0229))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0229))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0229))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0229))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0229))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h013_0230, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0230))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0230))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0230))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0230))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h013_0230))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00G_0117, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00G_0117))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00G_0117))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00G_0117))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00G_0117))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00G_0117))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00F_0159, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00F_0159))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00F_0159))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00F_0159))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00F_0159))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00F_0159))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00F_0158, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00F_0158))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00F_0158))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00F_0158))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00F_0158))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00F_0158))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00L_0180, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00L_0180))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00L_0180))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00L_0180))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00L_0180))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00L_0180))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00L_0181, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00L_0181))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00L_0181))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00L_0181))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00L_0181))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00L_0181))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00L_0182, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00L_0182))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00L_0182))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00L_0182))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00L_0182))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00L_0182))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00M_0179, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00M_0179))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00M_0179))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00M_0179))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00M_0179))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00M_0179))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00N_0177, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00N_0177))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00N_0177))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00N_0177))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00N_0177))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00N_0177))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00M_0178, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00M_0178))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00M_0178))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00M_0178))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00M_0178))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00M_0178))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00L_0183, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00L_0183))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00L_0183))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00L_0183))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00L_0183))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00L_0183))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00L_0184, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00L_0184))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00L_0184))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00L_0184))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00L_0184))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00L_0184))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00L_0185, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00L_0185))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00L_0185))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00L_0185))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00L_0185))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00L_0185))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00P_0190, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00P_0190))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00P_0190))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00P_0190))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00P_0190))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00P_0190))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00Q_0195, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00Q_0195))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00Q_0195))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00Q_0195))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00Q_0195))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00Q_0195))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00Q_0196, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00Q_0196))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00Q_0196))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00Q_0196))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00Q_0196))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00Q_0196))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00O_0193, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00O_0193))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00O_0193))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00O_0193))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00O_0193))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00O_0193))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00O_0191, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00O_0191))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00O_0191))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00O_0191))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00O_0191))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00O_0191))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00O_0192, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00O_0192))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00O_0192))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00O_0192))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00O_0192))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00O_0192))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00O_0194, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00O_0194))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00O_0194))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00O_0194))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00O_0194))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00O_0194))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00T_0187, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00T_0187))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00T_0187))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00T_0187))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00T_0187))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00T_0187))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00S_0197, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00S_0197))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00S_0197))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00S_0197))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00S_0197))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00S_0197))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00S_0199, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00S_0199))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00S_0199))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00S_0199))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00S_0199))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00S_0199))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00S_0189, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00S_0189))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00S_0189))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00S_0189))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00S_0189))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00S_0189))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00S_0188, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00S_0188))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00S_0188))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00S_0188))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00S_0188))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00S_0188))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00S_0200, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00S_0200))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00S_0200))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00S_0200))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00S_0200))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00S_0200))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h00S_0198, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00S_0198))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00S_0198))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00S_0198))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00S_0198))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h00S_0198))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h010_0218, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h010_0218))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h010_0218))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h010_0218))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h010_0218))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h010_0218))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h010_0219, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h010_0219))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h010_0219))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h010_0219))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h010_0219))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h010_0219))
call TriggerSleepAction( 0.01 )
set udg_Bounty = ( udg_Bounty + 1 )
call SetUnitUserData( gg_unit_h010_0220, udg_Bounty )
call TriggerSleepAction( 0.01 )
set udg_BountyGOLD[udg_Bounty] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h010_0220))
set udg__1[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h010_0220))
set udg__2[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h010_0220))
set udg__3[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h010_0220))
set udg__4[udg_BountyGOLD[udg_Bounty]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h010_0220))
endfunction
//===========================================================================
function InitTrig_Set_Up_NonVariables takes nothing returns nothing
set gg_trg_Set_Up_NonVariables = CreateTrigger( )
call TriggerAddAction( gg_trg_Set_Up_NonVariables, function Trig_Set_Up_NonVariables_Actions )
endfunction
function Trig_TriggerFightBOUNTY01_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(11) ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(10) ) ) then
return false
endif
return true
endfunction
function Trig_TriggerFightBOUNTY01_Actions takes nothing returns nothing
set udg__1[udg_BountyDAMAGE[GetUnitUserData(gg_unit_o003_0012)]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_o003_0012))
set udg__2[udg_BountyDAMAGE[GetUnitUserData(gg_unit_o003_0012)]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_o003_0012))
set udg__3[udg_BountyDAMAGE[GetUnitUserData(gg_unit_o003_0012)]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_o003_0012))
set udg__4[udg_BountyDAMAGE[GetUnitUserData(gg_unit_o003_0012)]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_o003_0012))
endfunction
//===========================================================================
function InitTrig_TriggerFightBOUNTY01 takes nothing returns nothing
set gg_trg_TriggerFightBOUNTY01 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_TriggerFightBOUNTY01, gg_rct_Boss1Cinematic )
call TriggerAddCondition( gg_trg_TriggerFightBOUNTY01, Condition( function Trig_TriggerFightBOUNTY01_Conditions ) )
call TriggerAddAction( gg_trg_TriggerFightBOUNTY01, function Trig_TriggerFightBOUNTY01_Actions )
endfunction
function Trig_TriggerFightBOUNTY02_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(11) ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(10) ) ) then
return false
endif
return true
endfunction
function Trig_TriggerFightBOUNTY02_Actions takes nothing returns nothing
set udg__1[udg_BountyDAMAGE[GetUnitUserData(gg_unit_o004_0033)]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_o004_0033))
set udg__2[udg_BountyDAMAGE[GetUnitUserData(gg_unit_o004_0033)]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_o004_0033))
set udg__3[udg_BountyDAMAGE[GetUnitUserData(gg_unit_o004_0033)]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_o004_0033))
set udg__4[udg_BountyDAMAGE[GetUnitUserData(gg_unit_o004_0033)]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_o004_0033))
endfunction
//===========================================================================
function InitTrig_TriggerFightBOUNTY02 takes nothing returns nothing
set gg_trg_TriggerFightBOUNTY02 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_TriggerFightBOUNTY02, gg_rct_CineBoss2 )
call TriggerAddCondition( gg_trg_TriggerFightBOUNTY02, Condition( function Trig_TriggerFightBOUNTY02_Conditions ) )
call TriggerAddAction( gg_trg_TriggerFightBOUNTY02, function Trig_TriggerFightBOUNTY02_Actions )
endfunction
function Trig_TriggerFightBOUNTY03_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(11) ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(10) ) ) then
return false
endif
return true
endfunction
function Trig_TriggerFightBOUNTY03_Actions takes nothing returns nothing
set udg__1[udg_BountyDAMAGE[GetUnitUserData(gg_unit_o006_0038)]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_o006_0038))
set udg__1[udg_BountyDAMAGE[GetUnitUserData(gg_unit_o005_0037)]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_o005_0037))
endfunction
//===========================================================================
function InitTrig_TriggerFightBOUNTY03 takes nothing returns nothing
set gg_trg_TriggerFightBOUNTY03 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_TriggerFightBOUNTY03, gg_rct_Cinematic_Boss_3 )
call TriggerAddCondition( gg_trg_TriggerFightBOUNTY03, Condition( function Trig_TriggerFightBOUNTY03_Conditions ) )
call TriggerAddAction( gg_trg_TriggerFightBOUNTY03, function Trig_TriggerFightBOUNTY03_Actions )
endfunction
function Trig_TriggerFightBOUNTY04_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(11) ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(10) ) ) then
return false
endif
return true
endfunction
function Trig_TriggerFightBOUNTY04_Actions takes nothing returns nothing
set udg__1[udg_BountyDAMAGE[GetUnitUserData(gg_unit_o00B_0048)]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_o00B_0048))
endfunction
//===========================================================================
function InitTrig_TriggerFightBOUNTY04 takes nothing returns nothing
set gg_trg_TriggerFightBOUNTY04 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_TriggerFightBOUNTY04, gg_rct_Cinematic4 )
call TriggerAddCondition( gg_trg_TriggerFightBOUNTY04, Condition( function Trig_TriggerFightBOUNTY04_Conditions ) )
call TriggerAddAction( gg_trg_TriggerFightBOUNTY04, function Trig_TriggerFightBOUNTY04_Actions )
endfunction
function Trig_TriggerFightBOUNTY05_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(11) ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(10) ) ) then
return false
endif
return true
endfunction
function Trig_TriggerFightBOUNTY05_Actions takes nothing returns nothing
set udg__1[udg_BountyDAMAGE[GetUnitUserData(gg_unit_U005_0120)]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_U005_0120))
endfunction
//===========================================================================
function InitTrig_TriggerFightBOUNTY05 takes nothing returns nothing
set gg_trg_TriggerFightBOUNTY05 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_TriggerFightBOUNTY05, gg_rct_Enter_Final_Boss_Fight )
call TriggerAddCondition( gg_trg_TriggerFightBOUNTY05, Condition( function Trig_TriggerFightBOUNTY05_Conditions ) )
call TriggerAddAction( gg_trg_TriggerFightBOUNTY05, function Trig_TriggerFightBOUNTY05_Actions )
endfunction
function Trig_TriggerFightBOUNTY0502_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(11) ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(10) ) ) then
return false
endif
return true
endfunction
function Trig_TriggerFightBOUNTY0502_Actions takes nothing returns nothing
set udg__1[udg_BountyDAMAGE[GetUnitUserData(gg_unit_U004_0121)]] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_U004_0121))
endfunction
//===========================================================================
function InitTrig_TriggerFightBOUNTY0502 takes nothing returns nothing
set gg_trg_TriggerFightBOUNTY0502 = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_TriggerFightBOUNTY0502, gg_unit_U005_0120, EVENT_UNIT_DEATH )
call TriggerAddCondition( gg_trg_TriggerFightBOUNTY0502, Condition( function Trig_TriggerFightBOUNTY0502_Conditions ) )
call TriggerAddAction( gg_trg_TriggerFightBOUNTY0502, function Trig_TriggerFightBOUNTY0502_Actions )
endfunction
function Trig_Cthulhu_Health_Func001002 takes nothing returns nothing
call ResetToGameCameraForPlayer( GetEnumPlayer(), 0 )
endfunction
function Trig_Cthulhu_Health_Func006002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camera_054, GetEnumPlayer(), 0 )
endfunction
function Trig_Cthulhu_Health_Func007002 takes nothing returns nothing
call CameraSetEQNoiseForPlayer( GetEnumPlayer(), 3 )
endfunction
function Trig_Cthulhu_Health_Func013002 takes nothing returns nothing
call CameraSetEQNoiseForPlayer( GetEnumPlayer(), 10.00 )
endfunction
function Trig_Cthulhu_Health_Func014002 takes nothing returns nothing
call CameraSetEQNoiseForPlayer( GetEnumPlayer(), 3 )
endfunction
function Trig_Cthulhu_Health_Func015002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camera_052, GetEnumPlayer(), 0 )
endfunction
function Trig_Cthulhu_Health_Func016002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camera_052_Copy, GetEnumPlayer(), 6.00 )
endfunction
function Trig_Cthulhu_Health_Func023002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camera_054, GetEnumPlayer(), 0 )
endfunction
function Trig_Cthulhu_Health_Func026002 takes nothing returns nothing
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUT, 0.00, "ReplaceableTextures\\CameraMasks\\White_mask.blp", 100.00, 0, 0, 0 )
endfunction
function Trig_Cthulhu_Health_Func027001002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(11) )
endfunction
function Trig_Cthulhu_Health_Func027002 takes nothing returns nothing
call SetUnitLifePercentBJ( GetEnumUnit(), 15.00 )
endfunction
function Trig_Cthulhu_Health_Func029002 takes nothing returns nothing
call ResetToGameCameraForPlayer( GetEnumPlayer(), 1.00 )
endfunction
function Trig_Cthulhu_Health_Func030002 takes nothing returns nothing
call SetCameraBoundsToRectForPlayerBJ( GetEnumPlayer(), gg_rct_Final_Boss_Fight )
endfunction
function Trig_Cthulhu_Health_Func031002 takes nothing returns nothing
call CinematicFadeBJ( bj_CINEFADETYPE_FADEIN, 1.00, "ReplaceableTextures\\CameraMasks\\White_mask.blp", 100.00, 100.00, 100.00, 0 )
endfunction
function Trig_Cthulhu_Health_Actions takes nothing returns nothing
call ForForce( GetPlayersAll(), function Trig_Cthulhu_Health_Func001002 )
call DisableTrigger( GetTriggeringTrigger() )
call DisableTrigger( gg_trg_Meteor_Shower )
call PauseAllUnitsBJ( true )
call CinematicModeBJ( true, GetPlayersAll() )
call ForForce( GetPlayersAll(), function Trig_Cthulhu_Health_Func006002 )
call ForForce( GetPlayersAll(), function Trig_Cthulhu_Health_Func007002 )
call PlaySoundBJ( gg_snd_ResurrectTarget )
call SetUnitScalePercent( gg_unit_U004_0121, 500.00, 500.00, 500.00 )
call TriggerSleepAction( 2 )
call KillSoundWhenDoneBJ( GetLastPlayedSound() )
call PlaySoundBJ( gg_snd_RainOfFireLoop1 )
call ForForce( GetPlayersAll(), function Trig_Cthulhu_Health_Func013002 )
call ForForce( GetPlayersAll(), function Trig_Cthulhu_Health_Func014002 )
call ForForce( GetPlayersAll(), function Trig_Cthulhu_Health_Func015002 )
call ForForce( GetPlayersAll(), function Trig_Cthulhu_Health_Func016002 )
call TriggerSleepAction( 2.00 )
call CreateNUnitsAtLocFacingLocBJ( 1, 'n009', Player(11), GetRectCenter(gg_rct_Rect_482), GetRectCenter(gg_rct_Rect_481) )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "move", GetRectCenter(gg_rct_Rect_481) )
call TriggerSleepAction( 1.00 )
call KillSoundWhenDoneBJ( GetLastPlayedSound() )
call SetUnitFlyHeightBJ( GetLastCreatedUnit(), 0.00, 1000.00 )
call ForForce( GetPlayersAll(), function Trig_Cthulhu_Health_Func023002 )
call TriggerSleepAction( 1.50 )
call RemoveUnit( GetLastCreatedUnit() )
call ForForce( GetPlayersAll(), function Trig_Cthulhu_Health_Func026002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Final_Boss_Fight, Condition(function Trig_Cthulhu_Health_Func027001002)), function Trig_Cthulhu_Health_Func027002 )
call TriggerSleepAction( 1.00 )
call ForForce( GetPlayersAll(), function Trig_Cthulhu_Health_Func029002 )
call ForForce( GetPlayersAll(), function Trig_Cthulhu_Health_Func030002 )
call ForForce( GetPlayersAll(), function Trig_Cthulhu_Health_Func031002 )
call CinematicModeBJ( false, GetPlayersAll() )
call TriggerSleepAction( 1.00 )
call EnableTrigger( gg_trg_Meteor_Shower )
call PauseAllUnitsBJ( false )
endfunction
//===========================================================================
function InitTrig_Cthulhu_Health takes nothing returns nothing
set gg_trg_Cthulhu_Health = CreateTrigger( )
call TriggerRegisterUnitStateEvent( gg_trg_Cthulhu_Health, gg_unit_U004_0121, UNIT_STATE_LIFE, LESS_THAN, 8333.00 )
call TriggerAddAction( gg_trg_Cthulhu_Health, function Trig_Cthulhu_Health_Actions )
endfunction
function Trig_Obelisk_1_Conditions takes nothing returns boolean
if ( not ( udg_ObeliskTrue[1] == true ) ) then
return false
endif
return true
endfunction
function Trig_Obelisk_1_Actions takes nothing returns nothing
set udg_Wyvern = GetUnitLoc(gg_unit_U005_0120)
call AddLightningLoc( "AFOD", GetRectCenter(gg_rct_Rect_278_Copy_3), udg_Wyvern )
call TriggerSleepAction( 0.25 )
call DestroyLightning( GetLastCreatedLightningBJ() )
call RemoveLocation(udg_Wyvern)
call TriggerSleepAction( 2.00 )
call ConditionalTriggerExecute( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Obelisk_1 takes nothing returns nothing
set gg_trg_Obelisk_1 = CreateTrigger( )
call TriggerAddCondition( gg_trg_Obelisk_1, Condition( function Trig_Obelisk_1_Conditions ) )
call TriggerAddAction( gg_trg_Obelisk_1, function Trig_Obelisk_1_Actions )
endfunction
function Trig_Obelisk_2_Conditions takes nothing returns boolean
if ( not ( udg_ObeliskTrue[2] == true ) ) then
return false
endif
return true
endfunction
function Trig_Obelisk_2_Actions takes nothing returns nothing
set udg_Wyvern = GetUnitLoc(gg_unit_U005_0120)
call AddLightningLoc( "AFOD", GetRectCenter(gg_rct_Rect_278), udg_Wyvern )
call TriggerSleepAction( 0.25 )
call DestroyLightning( GetLastCreatedLightningBJ() )
call RemoveLocation(udg_Wyvern)
call TriggerSleepAction( 2.00 )
call ConditionalTriggerExecute( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Obelisk_2 takes nothing returns nothing
set gg_trg_Obelisk_2 = CreateTrigger( )
call TriggerAddCondition( gg_trg_Obelisk_2, Condition( function Trig_Obelisk_2_Conditions ) )
call TriggerAddAction( gg_trg_Obelisk_2, function Trig_Obelisk_2_Actions )
endfunction
function Trig_Lovecraft_Special_Move_Func003001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(0)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Lovecraft_Special_Move_Func004001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(1)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Lovecraft_Special_Move_Func005001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(2)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Lovecraft_Special_Move_Func006001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(3)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Lovecraft_Special_Move_Func015001003 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(11) )
endfunction
function Trig_Lovecraft_Special_Move_Func015002 takes nothing returns nothing
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - ( GetUnitStateSwap(UNIT_STATE_MAX_LIFE, GetEnumUnit()) * udg_LovecraftDamage ) ) )
endfunction
function Trig_Lovecraft_Special_Move_Func016001 takes nothing returns boolean
return ( RectContainsLoc(gg_rct_Rect_480, udg_LovecraftAttack) == true )
endfunction
function Trig_Lovecraft_Special_Move_Func017001 takes nothing returns boolean
return ( RectContainsLoc(gg_rct_Rect_480, udg_LovecraftAttack) == true )
endfunction
function Trig_Lovecraft_Special_Move_Func018001 takes nothing returns boolean
return ( RectContainsLoc(gg_rct_Rect_479, udg_LovecraftAttack) == true )
endfunction
function Trig_Lovecraft_Special_Move_Func019001 takes nothing returns boolean
return ( RectContainsLoc(gg_rct_Rect_479, udg_LovecraftAttack) == true )
endfunction
function Trig_Lovecraft_Special_Move_Func020001001 takes nothing returns boolean
return ( udg_ObeliskTrue[1] == false )
endfunction
function Trig_Lovecraft_Special_Move_Func020001002 takes nothing returns boolean
return ( udg_ObeliskTrue[2] == false )
endfunction
function Trig_Lovecraft_Special_Move_Func020001 takes nothing returns boolean
return GetBooleanAnd( Trig_Lovecraft_Special_Move_Func020001001(), Trig_Lovecraft_Special_Move_Func020001002() )
endfunction
function Trig_Lovecraft_Special_Move_Actions takes nothing returns nothing
call PauseUnitBJ( true, gg_unit_U005_0120 )
call SetUnitVertexColorBJ( gg_unit_U005_0120, 100, 0.00, 0.00, 0 )
if ( Trig_Lovecraft_Special_Move_Func003001() ) then
call GroupAddUnitSimple( udg_Hero1, udg_LovecraftAttackGroup )
else
call DoNothing( )
endif
if ( Trig_Lovecraft_Special_Move_Func004001() ) then
call GroupAddUnitSimple( udg_Hero2, udg_LovecraftAttackGroup )
else
call DoNothing( )
endif
if ( Trig_Lovecraft_Special_Move_Func005001() ) then
call GroupAddUnitSimple( udg_Hero3, udg_LovecraftAttackGroup )
else
call DoNothing( )
endif
if ( Trig_Lovecraft_Special_Move_Func006001() ) then
call GroupAddUnitSimple( udg_Hero4, udg_LovecraftAttackGroup )
else
call DoNothing( )
endif
call TriggerSleepAction( 0.05 )
set udg_LovecraftAttack = GetUnitLoc(GroupPickRandomUnit(udg_LovecraftAttackGroup))
call TriggerSleepAction( 0.01 )
call AddSpecialEffectLocBJ( udg_LovecraftAttack, "Abilities\\Spells\\Undead\\VampiricAura\\VampiricAura.mdl" )
call TriggerSleepAction( udg_LovecraftWait )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call TriggerSleepAction( 0.01 )
call AddSpecialEffectLocBJ( udg_LovecraftAttack, "Abilities\\Spells\\Orc\\Shockwave\\ShockwaveMissile.mdl" )
call ForGroupBJ( GetUnitsInRangeOfLocMatching(400.00, udg_LovecraftAttack, Condition(function Trig_Lovecraft_Special_Move_Func015001003)), function Trig_Lovecraft_Special_Move_Func015002 )
if ( Trig_Lovecraft_Special_Move_Func016001() ) then
call ExplodeUnitBJ( gg_unit_h01L_0475 )
else
call DoNothing( )
endif
if ( Trig_Lovecraft_Special_Move_Func017001() ) then
set udg_ObeliskTrue[1] = false
else
call DoNothing( )
endif
if ( Trig_Lovecraft_Special_Move_Func018001() ) then
call ExplodeUnitBJ( gg_unit_h01L_0476 )
else
call DoNothing( )
endif
if ( Trig_Lovecraft_Special_Move_Func019001() ) then
set udg_ObeliskTrue[2] = false
else
call DoNothing( )
endif
if ( Trig_Lovecraft_Special_Move_Func020001() ) then
call SetUnitInvulnerable( gg_unit_U005_0120, false )
else
call DoNothing( )
endif
call TriggerSleepAction( 1.00 )
call RemoveLocation(udg_LovecraftAttack)
call GroupClear( udg_LovecraftAttackGroup )
call SetUnitVertexColorBJ( gg_unit_U005_0120, 100, 100.00, 100.00, 0 )
call PauseUnitBJ( false, gg_unit_U005_0120 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endfunction
//===========================================================================
function InitTrig_Lovecraft_Special_Move takes nothing returns nothing
set gg_trg_Lovecraft_Special_Move = CreateTrigger( )
call DisableTrigger( gg_trg_Lovecraft_Special_Move )
call TriggerRegisterTimerEventPeriodic( gg_trg_Lovecraft_Special_Move, GetRandomReal(6.00, 25.00) )
call TriggerAddAction( gg_trg_Lovecraft_Special_Move, function Trig_Lovecraft_Special_Move_Actions )
endfunction
function Trig_SpawnInitialization_Func001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'H01H' )
endfunction
function Trig_SpawnInitialization_Func001002 takes nothing returns nothing
call SelectHeroSkill( GetEnumUnit(), 'AHre' )
endfunction
function Trig_SpawnInitialization_Func002001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h00B' )
endfunction
function Trig_SpawnInitialization_Func002A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRandomLocInRect(gg_rct_Rect_448) )
call SetUnitPathing( GetEnumUnit(), false )
call GroupAddUnitSimple( GetEnumUnit(), udg_Dead )
call ShowUnitHide( GetEnumUnit() )
call PauseUnitBJ( true, GetEnumUnit() )
endfunction
function Trig_SpawnInitialization_Func003001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h00D' )
endfunction
function Trig_SpawnInitialization_Func003A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRandomLocInRect(gg_rct_Rect_448) )
call SetUnitPathing( GetEnumUnit(), false )
call GroupAddUnitSimple( GetEnumUnit(), udg_Dead )
call ShowUnitHide( GetEnumUnit() )
call PauseUnitBJ( true, GetEnumUnit() )
endfunction
function Trig_SpawnInitialization_Func004001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h00F' )
endfunction
function Trig_SpawnInitialization_Func004A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRandomLocInRect(gg_rct_Rect_448) )
call SetUnitPathing( GetEnumUnit(), false )
call GroupAddUnitSimple( GetEnumUnit(), udg_Dead )
call ShowUnitHide( GetEnumUnit() )
call PauseUnitBJ( true, GetEnumUnit() )
endfunction
function Trig_SpawnInitialization_Func005001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h00E' )
endfunction
function Trig_SpawnInitialization_Func005A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRandomLocInRect(gg_rct_Rect_448) )
call SetUnitPathing( GetEnumUnit(), false )
call GroupAddUnitSimple( GetEnumUnit(), udg_Dead )
call ShowUnitHide( GetEnumUnit() )
call PauseUnitBJ( true, GetEnumUnit() )
endfunction
function Trig_SpawnInitialization_Func006001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h00H' )
endfunction
function Trig_SpawnInitialization_Func006A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRandomLocInRect(gg_rct_Rect_448) )
call SetUnitPathing( GetEnumUnit(), false )
call GroupAddUnitSimple( GetEnumUnit(), udg_Dead )
call ShowUnitHide( GetEnumUnit() )
call PauseUnitBJ( true, GetEnumUnit() )
endfunction
function Trig_SpawnInitialization_Func007001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h00I' )
endfunction
function Trig_SpawnInitialization_Func007A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRandomLocInRect(gg_rct_Rect_448) )
call SetUnitPathing( GetEnumUnit(), false )
call GroupAddUnitSimple( GetEnumUnit(), udg_Dead )
call ShowUnitHide( GetEnumUnit() )
call PauseUnitBJ( true, GetEnumUnit() )
endfunction
function Trig_SpawnInitialization_Func008001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h00L' )
endfunction
function Trig_SpawnInitialization_Func008A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRandomLocInRect(gg_rct_Rect_448) )
call SetUnitPathing( GetEnumUnit(), false )
call GroupAddUnitSimple( GetEnumUnit(), udg_Dead )
call ShowUnitHide( GetEnumUnit() )
call PauseUnitBJ( true, GetEnumUnit() )
endfunction
function Trig_SpawnInitialization_Func009001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h00M' )
endfunction
function Trig_SpawnInitialization_Func009A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRandomLocInRect(gg_rct_Rect_448) )
call SetUnitPathing( GetEnumUnit(), false )
call GroupAddUnitSimple( GetEnumUnit(), udg_Dead )
call ShowUnitHide( GetEnumUnit() )
call PauseUnitBJ( true, GetEnumUnit() )
endfunction
function Trig_SpawnInitialization_Func010001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h00O' )
endfunction
function Trig_SpawnInitialization_Func010A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRandomLocInRect(gg_rct_Rect_448) )
call SetUnitPathing( GetEnumUnit(), false )
call GroupAddUnitSimple( GetEnumUnit(), udg_Dead )
call ShowUnitHide( GetEnumUnit() )
call PauseUnitBJ( true, GetEnumUnit() )
endfunction
function Trig_SpawnInitialization_Func011001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h00Q' )
endfunction
function Trig_SpawnInitialization_Func011A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRandomLocInRect(gg_rct_Rect_448) )
call SetUnitPathing( GetEnumUnit(), false )
call GroupAddUnitSimple( GetEnumUnit(), udg_Dead )
call ShowUnitHide( GetEnumUnit() )
call PauseUnitBJ( true, GetEnumUnit() )
endfunction
function Trig_SpawnInitialization_Func012001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h00S' )
endfunction
function Trig_SpawnInitialization_Func012A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRandomLocInRect(gg_rct_Rect_448) )
call SetUnitPathing( GetEnumUnit(), false )
call GroupAddUnitSimple( GetEnumUnit(), udg_Dead )
call ShowUnitHide( GetEnumUnit() )
call PauseUnitBJ( true, GetEnumUnit() )
endfunction
function Trig_SpawnInitialization_Func013001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h00R' )
endfunction
function Trig_SpawnInitialization_Func013A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRandomLocInRect(gg_rct_Rect_448) )
call SetUnitPathing( GetEnumUnit(), false )
call GroupAddUnitSimple( GetEnumUnit(), udg_Dead )
call ShowUnitHide( GetEnumUnit() )
call PauseUnitBJ( true, GetEnumUnit() )
endfunction
function Trig_SpawnInitialization_Func014001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h00X' )
endfunction
function Trig_SpawnInitialization_Func014A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRandomLocInRect(gg_rct_Rect_448) )
call SetUnitPathing( GetEnumUnit(), false )
call GroupAddUnitSimple( GetEnumUnit(), udg_Dead )
call ShowUnitHide( GetEnumUnit() )
call PauseUnitBJ( true, GetEnumUnit() )
endfunction
function Trig_SpawnInitialization_Func015001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h011' )
endfunction
function Trig_SpawnInitialization_Func015A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRandomLocInRect(gg_rct_Rect_448) )
call SetUnitPathing( GetEnumUnit(), false )
call GroupAddUnitSimple( GetEnumUnit(), udg_Dead )
call ShowUnitHide( GetEnumUnit() )
call PauseUnitBJ( true, GetEnumUnit() )
endfunction
function Trig_SpawnInitialization_Func016001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h012' )
endfunction
function Trig_SpawnInitialization_Func016A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRandomLocInRect(gg_rct_Rect_448) )
call SetUnitPathing( GetEnumUnit(), false )
call GroupAddUnitSimple( GetEnumUnit(), udg_Dead )
call ShowUnitHide( GetEnumUnit() )
call PauseUnitBJ( true, GetEnumUnit() )
endfunction
function Trig_SpawnInitialization_Func017001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h014' )
endfunction
function Trig_SpawnInitialization_Func017A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRandomLocInRect(gg_rct_Rect_448) )
call SetUnitPathing( GetEnumUnit(), false )
call GroupAddUnitSimple( GetEnumUnit(), udg_Dead )
call ShowUnitHide( GetEnumUnit() )
call PauseUnitBJ( true, GetEnumUnit() )
endfunction
function Trig_SpawnInitialization_Func018001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h015' )
endfunction
function Trig_SpawnInitialization_Func018A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRandomLocInRect(gg_rct_Rect_448) )
call SetUnitPathing( GetEnumUnit(), false )
call GroupAddUnitSimple( GetEnumUnit(), udg_Dead )
call ShowUnitHide( GetEnumUnit() )
call PauseUnitBJ( true, GetEnumUnit() )
endfunction
function Trig_SpawnInitialization_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_SpawnInitialization_Func001001002)), function Trig_SpawnInitialization_Func001002 )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_SpawnInitialization_Func002001002)), function Trig_SpawnInitialization_Func002A )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_SpawnInitialization_Func003001002)), function Trig_SpawnInitialization_Func003A )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_449, Condition(function Trig_SpawnInitialization_Func004001002)), function Trig_SpawnInitialization_Func004A )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_449, Condition(function Trig_SpawnInitialization_Func005001002)), function Trig_SpawnInitialization_Func005A )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_SpawnInitialization_Func006001002)), function Trig_SpawnInitialization_Func006A )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_SpawnInitialization_Func007001002)), function Trig_SpawnInitialization_Func007A )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_450, Condition(function Trig_SpawnInitialization_Func008001002)), function Trig_SpawnInitialization_Func008A )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_450, Condition(function Trig_SpawnInitialization_Func009001002)), function Trig_SpawnInitialization_Func009A )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_451, Condition(function Trig_SpawnInitialization_Func010001002)), function Trig_SpawnInitialization_Func010A )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_451, Condition(function Trig_SpawnInitialization_Func011001002)), function Trig_SpawnInitialization_Func011A )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_451, Condition(function Trig_SpawnInitialization_Func012001002)), function Trig_SpawnInitialization_Func012A )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_SpawnInitialization_Func013001002)), function Trig_SpawnInitialization_Func013A )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_SpawnInitialization_Func014001002)), function Trig_SpawnInitialization_Func014A )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_SpawnInitialization_Func015001002)), function Trig_SpawnInitialization_Func015A )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_SpawnInitialization_Func016001002)), function Trig_SpawnInitialization_Func016A )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_SpawnInitialization_Func017001002)), function Trig_SpawnInitialization_Func017A )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_SpawnInitialization_Func018001002)), function Trig_SpawnInitialization_Func018A )
endfunction
//===========================================================================
function InitTrig_SpawnInitialization takes nothing returns nothing
set gg_trg_SpawnInitialization = CreateTrigger( )
call TriggerAddAction( gg_trg_SpawnInitialization, function Trig_SpawnInitialization_Actions )
endfunction
function Trig_Respawn_CORE_Func005002001003 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'H01H' )
endfunction
function Trig_Respawn_CORE_Func016001 takes nothing returns boolean
return ( udg_easy == true )
endfunction
function Trig_Respawn_CORE_Func017001 takes nothing returns boolean
return ( udg_hard == true )
endfunction
function Trig_Respawn_CORE_Func018001 takes nothing returns boolean
return ( udg_very_hard == true )
endfunction
function Trig_Respawn_CORE_Func019001 takes nothing returns boolean
return ( udg_impossible == true )
endfunction
function Trig_Respawn_CORE_Actions takes nothing returns nothing
call TriggerSleepAction( 1.50 )
call SetUnitPositionLoc( GetDyingUnit(), GetRandomLocInRect(gg_rct_Rect_448) )
call TriggerSleepAction( 0.50 )
set udg_DeadUnit = GetUnitLoc(GetDyingUnit())
set udg_reviver = GroupPickRandomUnit(GetUnitsInRangeOfLocMatching(900.00, udg_DeadUnit, Condition(function Trig_Respawn_CORE_Func005002001003)))
set udg_Reviver = GetUnitLoc(udg_reviver)
call IssueImmediateOrderBJ( udg_reviver, "resurrection" )
call TriggerSleepAction( 0.50 )
call RemoveUnit( udg_reviver )
call CreateNUnitsAtLoc( 1, 'H01H', Player(11), udg_Reviver, bj_UNIT_FACING )
call SetHeroLevelBJ( GetLastCreatedUnit(), 10, false )
call SelectHeroSkill( GetLastCreatedUnit(), 'AHre' )
call ShowUnitHide( GetDyingUnit() )
call GroupAddUnitSimple( GetDyingUnit(), udg_Dead )
call SetUnitPathing( GetDyingUnit(), false )
if ( Trig_Respawn_CORE_Func016001() ) then
call SetUnitLifePercentBJ( GetDyingUnit(), 50.00 )
else
call DoNothing( )
endif
if ( Trig_Respawn_CORE_Func017001() ) then
call SetUnitLifePercentBJ( GetDyingUnit(), 75.00 )
else
call DoNothing( )
endif
if ( Trig_Respawn_CORE_Func018001() ) then
call SetUnitLifePercentBJ( GetDyingUnit(), 100.00 )
else
call DoNothing( )
endif
if ( Trig_Respawn_CORE_Func019001() ) then
call SetUnitLifePercentBJ( GetDyingUnit(), 100.00 )
else
call DoNothing( )
endif
call PauseUnitBJ( true, GetDyingUnit() )
call RemoveLocation(udg_DeadUnit)
call RemoveLocation(udg_Reviver)
endfunction
//===========================================================================
function InitTrig_Respawn_CORE takes nothing returns nothing
set gg_trg_Respawn_CORE = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Respawn_CORE, Player(11), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddAction( gg_trg_Respawn_CORE, function Trig_Respawn_CORE_Actions )
endfunction
function Trig_Spawn_0101_Func020001001002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(11) )
endfunction
function Trig_Spawn_0101_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_Spawn01) < 5 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(gg_rct_Rect_320, Condition(function Trig_Spawn_0101_Func020001001002))) > 0 ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0101_Func002C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[1] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00B_0240, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00B_0241, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00B_0242, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00B_0243, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00B_0244, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0101_Func003C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[1] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00B_0240, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00B_0241, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00B_0242, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00B_0243, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0101_Func004C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[1] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00B_0240, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00B_0241, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00B_0242, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0101_Func005C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[1] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00B_0240, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00B_0241, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0101_Func006C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[1] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00B_0240, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0101_Func007C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[1] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00D_0245, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00D_0246, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00D_0247, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00D_0248, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00D_0249, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0101_Func008C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[1] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00D_0245, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00D_0246, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00D_0247, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00D_0248, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0101_Func009C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[1] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00D_0245, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00D_0246, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00D_0247, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0101_Func010C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[1] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00D_0245, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00D_0246, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0101_Func011C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[1] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00D_0245, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0101_Actions takes nothing returns nothing
set udg_SpawnRandInt[1] = GetRandomInt(1, 10)
if ( Trig_Spawn_0101_Func002C() ) then
set udg_SpawnSet[1] = gg_unit_h00B_0244
else
endif
if ( Trig_Spawn_0101_Func003C() ) then
set udg_SpawnSet[1] = gg_unit_h00B_0243
else
endif
if ( Trig_Spawn_0101_Func004C() ) then
set udg_SpawnSet[1] = gg_unit_h00B_0242
else
endif
if ( Trig_Spawn_0101_Func005C() ) then
set udg_SpawnSet[1] = gg_unit_h00B_0241
else
endif
if ( Trig_Spawn_0101_Func006C() ) then
set udg_SpawnSet[1] = gg_unit_h00B_0240
else
endif
if ( Trig_Spawn_0101_Func007C() ) then
set udg_SpawnSet[1] = gg_unit_h00D_0249
else
endif
if ( Trig_Spawn_0101_Func008C() ) then
set udg_SpawnSet[1] = gg_unit_h00D_0248
else
endif
if ( Trig_Spawn_0101_Func009C() ) then
set udg_SpawnSet[1] = gg_unit_h00D_0247
else
endif
if ( Trig_Spawn_0101_Func010C() ) then
set udg_SpawnSet[1] = gg_unit_h00D_0246
else
endif
if ( Trig_Spawn_0101_Func011C() ) then
set udg_SpawnSet[1] = gg_unit_h00D_0245
else
endif
call ShowUnitShow( udg_SpawnSet[1] )
call PauseUnitBJ( false, udg_SpawnSet[1] )
call SetUnitPositionLoc( udg_SpawnSet[1], GetRandomLocInRect(gg_rct_Spawn01) )
call SetUnitPathing( udg_SpawnSet[1], true )
call GroupAddUnitSimple( udg_SpawnSet[1], udg_Spawn01 )
call IssuePointOrderLocBJ( udg_SpawnSet[1], "attack", GetRandomLocInRect(gg_rct_Rect_320) )
call GroupRemoveUnitSimple( udg_SpawnSet[1], udg_Dead )
endfunction
//===========================================================================
function InitTrig_Spawn_0101 takes nothing returns nothing
set gg_trg_Spawn_0101 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Spawn_0101, GetRandomReal(7.00, 15.00) )
call TriggerAddCondition( gg_trg_Spawn_0101, Condition( function Trig_Spawn_0101_Conditions ) )
call TriggerAddAction( gg_trg_Spawn_0101, function Trig_Spawn_0101_Actions )
endfunction
function Trig_Spawn_0103_Func020001001002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(11) )
endfunction
function Trig_Spawn_0103_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_Spawn02) < 5 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(gg_rct_Rect_321, Condition(function Trig_Spawn_0103_Func020001001002))) > 0 ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0103_Func002C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[2] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00B_0250, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00B_0251, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00B_0252, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00B_0253, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00B_0254, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0103_Func003C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[2] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00B_0250, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00B_0251, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00B_0252, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00B_0253, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0103_Func004C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[2] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00B_0250, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00B_0251, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00B_0252, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0103_Func005C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[2] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00B_0250, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00B_0251, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0103_Func006C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[2] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00B_0250, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0103_Func007C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[2] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00D_0255, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00D_0256, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00D_0257, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00D_0258, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00D_0259, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0103_Func008C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[2] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00D_0255, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00D_0256, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00D_0257, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00D_0258, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0103_Func009C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[2] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00D_0255, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00D_0256, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00D_0257, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0103_Func010C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[2] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00D_0255, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00D_0256, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0103_Func011C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[2] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00D_0255, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0103_Actions takes nothing returns nothing
set udg_SpawnRandInt[2] = GetRandomInt(1, 10)
if ( Trig_Spawn_0103_Func002C() ) then
set udg_SpawnSet[2] = gg_unit_h00B_0254
else
endif
if ( Trig_Spawn_0103_Func003C() ) then
set udg_SpawnSet[2] = gg_unit_h00B_0253
else
endif
if ( Trig_Spawn_0103_Func004C() ) then
set udg_SpawnSet[2] = gg_unit_h00B_0252
else
endif
if ( Trig_Spawn_0103_Func005C() ) then
set udg_SpawnSet[2] = gg_unit_h00B_0251
else
endif
if ( Trig_Spawn_0103_Func006C() ) then
set udg_SpawnSet[2] = gg_unit_h00B_0250
else
endif
if ( Trig_Spawn_0103_Func007C() ) then
set udg_SpawnSet[2] = gg_unit_h00D_0259
else
endif
if ( Trig_Spawn_0103_Func008C() ) then
set udg_SpawnSet[2] = gg_unit_h00D_0258
else
endif
if ( Trig_Spawn_0103_Func009C() ) then
set udg_SpawnSet[2] = gg_unit_h00D_0257
else
endif
if ( Trig_Spawn_0103_Func010C() ) then
set udg_SpawnSet[2] = gg_unit_h00D_0256
else
endif
if ( Trig_Spawn_0103_Func011C() ) then
set udg_SpawnSet[2] = gg_unit_h00D_0255
else
endif
call SetUnitPositionLoc( udg_SpawnSet[2], GetRandomLocInRect(gg_rct_Spawn02) )
call ShowUnitShow( udg_SpawnSet[2] )
call PauseUnitBJ( false, udg_SpawnSet[2] )
call SetUnitPathing( udg_SpawnSet[2], true )
call GroupAddUnitSimple( udg_SpawnSet[2], udg_Spawn02 )
call IssuePointOrderLocBJ( udg_SpawnSet[2], "attack", GetRandomLocInRect(gg_rct_Rect_321) )
call GroupRemoveUnitSimple( udg_SpawnSet[2], udg_Dead )
endfunction
//===========================================================================
function InitTrig_Spawn_0103 takes nothing returns nothing
set gg_trg_Spawn_0103 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Spawn_0103, GetRandomReal(7.00, 15.00) )
call TriggerAddCondition( gg_trg_Spawn_0103, Condition( function Trig_Spawn_0103_Conditions ) )
call TriggerAddAction( gg_trg_Spawn_0103, function Trig_Spawn_0103_Actions )
endfunction
function Trig_Spawn_0105_Func016001001002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(11) )
endfunction
function Trig_Spawn_0105_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_Spawn03) < 3 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(gg_rct_Rect_319, Condition(function Trig_Spawn_0105_Func016001001002))) > 0 ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0105_Func002C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[3] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00E_0260, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00E_0261, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00E_0262, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0105_Func003C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[3] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00E_0260, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00E_0261, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0105_Func004C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[3] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00E_0260, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0105_Func005C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[3] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00F_0269, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00F_0270, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00F_0271, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0105_Func006C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[3] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00F_0269, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00F_0270, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0105_Func007C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[3] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00F_0269, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0105_Actions takes nothing returns nothing
set udg_SpawnRandInt[3] = GetRandomInt(1, 10)
if ( Trig_Spawn_0105_Func002C() ) then
set udg_SpawnSet[3] = gg_unit_h00E_0262
else
endif
if ( Trig_Spawn_0105_Func003C() ) then
set udg_SpawnSet[3] = gg_unit_h00E_0261
else
endif
if ( Trig_Spawn_0105_Func004C() ) then
set udg_SpawnSet[3] = gg_unit_h00E_0260
else
endif
if ( Trig_Spawn_0105_Func005C() ) then
set udg_SpawnSet[3] = gg_unit_h00F_0271
else
endif
if ( Trig_Spawn_0105_Func006C() ) then
set udg_SpawnSet[3] = gg_unit_h00F_0270
else
endif
if ( Trig_Spawn_0105_Func007C() ) then
set udg_SpawnSet[3] = gg_unit_h00F_0269
else
endif
call ShowUnitShow( udg_SpawnSet[3] )
call PauseUnitBJ( false, udg_SpawnSet[3] )
call SetUnitPositionLoc( udg_SpawnSet[3], GetRandomLocInRect(gg_rct_Spawn03) )
call SetUnitPathing( udg_SpawnSet[3], true )
call GroupAddUnitSimple( udg_SpawnSet[3], udg_Spawn03 )
call IssuePointOrderLocBJ( udg_SpawnSet[3], "attack", GetRandomLocInRect(gg_rct_Rect_319) )
call GroupRemoveUnitSimple( udg_SpawnSet[3], udg_Dead )
endfunction
//===========================================================================
function InitTrig_Spawn_0105 takes nothing returns nothing
set gg_trg_Spawn_0105 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Spawn_0105, GetRandomReal(7.00, 15.00) )
call TriggerAddCondition( gg_trg_Spawn_0105, Condition( function Trig_Spawn_0105_Conditions ) )
call TriggerAddAction( gg_trg_Spawn_0105, function Trig_Spawn_0105_Actions )
endfunction
function Trig_Spawn_0107_Func016001001002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(11) )
endfunction
function Trig_Spawn_0107_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_Spawn04) < 3 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(gg_rct_Rect_319, Condition(function Trig_Spawn_0107_Func016001001002))) > 0 ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0107_Func002C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[4] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00E_0263, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00E_0264, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00E_0265, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0107_Func003C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[4] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00E_0263, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00E_0264, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0107_Func004C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[4] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00E_0263, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0107_Func005C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[4] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00F_0266, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00F_0267, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00F_0268, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0107_Func006C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[4] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00F_0266, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00F_0267, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0107_Func007C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[4] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00F_0266, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0107_Actions takes nothing returns nothing
set udg_SpawnRandInt[4] = GetRandomInt(1, 10)
if ( Trig_Spawn_0107_Func002C() ) then
set udg_SpawnSet[4] = gg_unit_h00E_0265
else
endif
if ( Trig_Spawn_0107_Func003C() ) then
set udg_SpawnSet[4] = gg_unit_h00E_0264
else
endif
if ( Trig_Spawn_0107_Func004C() ) then
set udg_SpawnSet[4] = gg_unit_h00E_0263
else
endif
if ( Trig_Spawn_0107_Func005C() ) then
set udg_SpawnSet[4] = gg_unit_h00F_0268
else
endif
if ( Trig_Spawn_0107_Func006C() ) then
set udg_SpawnSet[4] = gg_unit_h00F_0267
else
endif
if ( Trig_Spawn_0107_Func007C() ) then
set udg_SpawnSet[4] = gg_unit_h00F_0266
else
endif
call ShowUnitShow( udg_SpawnSet[4] )
call PauseUnitBJ( false, udg_SpawnSet[4] )
call SetUnitPositionLoc( udg_SpawnSet[4], GetRandomLocInRect(gg_rct_Spawn04) )
call SetUnitPathing( udg_SpawnSet[4], true )
call GroupAddUnitSimple( udg_SpawnSet[4], udg_Spawn04 )
call IssuePointOrderLocBJ( udg_SpawnSet[4], "attack", GetRandomLocInRect(gg_rct_Rect_319) )
call GroupRemoveUnitSimple( udg_SpawnSet[4], udg_Dead )
endfunction
//===========================================================================
function InitTrig_Spawn_0107 takes nothing returns nothing
set gg_trg_Spawn_0107 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Spawn_0107, GetRandomReal(7.00, 15.00) )
call TriggerAddCondition( gg_trg_Spawn_0107, Condition( function Trig_Spawn_0107_Conditions ) )
call TriggerAddAction( gg_trg_Spawn_0107, function Trig_Spawn_0107_Actions )
endfunction
function Trig_Spawn_0201_Func016001001002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(11) )
endfunction
function Trig_Spawn_0201_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_Spawn01) < 3 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(gg_rct_Rect_336, Condition(function Trig_Spawn_0201_Func016001001002))) > 0 ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0201_Func002C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[1] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00H_0272, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00H_0273, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00H_0274, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0201_Func003C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[1] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00H_0272, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00H_0273, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0201_Func004C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[1] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00H_0272, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0201_Func005C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[1] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00I_0275, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00I_0276, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00I_0277, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0201_Func006C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[1] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00I_0275, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00I_0276, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0201_Func007C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[1] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00I_0275, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0201_Actions takes nothing returns nothing
set udg_SpawnRandInt[1] = GetRandomInt(1, 10)
if ( Trig_Spawn_0201_Func002C() ) then
set udg_SpawnSet[1] = gg_unit_h00H_0274
else
endif
if ( Trig_Spawn_0201_Func003C() ) then
set udg_SpawnSet[1] = gg_unit_h00H_0273
else
endif
if ( Trig_Spawn_0201_Func004C() ) then
set udg_SpawnSet[1] = gg_unit_h00H_0272
else
endif
if ( Trig_Spawn_0201_Func005C() ) then
set udg_SpawnSet[1] = gg_unit_h00I_0277
else
endif
if ( Trig_Spawn_0201_Func006C() ) then
set udg_SpawnSet[1] = gg_unit_h00I_0276
else
endif
if ( Trig_Spawn_0201_Func007C() ) then
set udg_SpawnSet[1] = gg_unit_h00I_0275
else
endif
call ShowUnitShow( udg_SpawnSet[1] )
call PauseUnitBJ( false, udg_SpawnSet[1] )
call SetUnitPositionLoc( udg_SpawnSet[1], GetRandomLocInRect(gg_rct_Rect_329) )
call SetUnitPathing( udg_SpawnSet[1], true )
call GroupAddUnitSimple( udg_SpawnSet[1], udg_Spawn01 )
call IssuePointOrderLocBJ( udg_SpawnSet[1], "attack", GetRandomLocInRect(gg_rct_Rect_336) )
call GroupRemoveUnitSimple( udg_SpawnSet[1], udg_Dead )
endfunction
//===========================================================================
function InitTrig_Spawn_0201 takes nothing returns nothing
set gg_trg_Spawn_0201 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Spawn_0201, GetRandomReal(7.00, 15.00) )
call TriggerAddCondition( gg_trg_Spawn_0201, Condition( function Trig_Spawn_0201_Conditions ) )
call TriggerAddAction( gg_trg_Spawn_0201, function Trig_Spawn_0201_Actions )
endfunction
function Trig_Spawn_0202_Func020001001002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(11) )
endfunction
function Trig_Spawn_0202_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_Spawn02) < 5 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(gg_rct_Rect_335, Condition(function Trig_Spawn_0202_Func020001001002))) > 0 ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0202_Func002C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[2] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00M_0293, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00M_0294, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00M_0295, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00M_0296, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00M_0297, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0202_Func003C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[2] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00M_0293, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00M_0294, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00M_0295, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00M_0296, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0202_Func004C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[2] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00M_0293, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00M_0294, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00M_0295, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0202_Func005C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[2] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00M_0293, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00M_0294, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0202_Func006C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[2] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00M_0293, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0202_Func007C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[2] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00L_0288, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00L_0289, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00L_0290, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00L_0291, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00L_0290, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0202_Func008C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[2] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00L_0288, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00L_0289, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00L_0290, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00L_0291, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0202_Func009C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[2] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00L_0288, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00L_0289, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00L_0290, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0202_Func010C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[2] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00L_0288, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00L_0289, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0202_Func011C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[2] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00L_0288, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0202_Actions takes nothing returns nothing
set udg_SpawnRandInt[2] = GetRandomInt(1, 10)
if ( Trig_Spawn_0202_Func002C() ) then
set udg_SpawnSet[2] = gg_unit_h00M_0297
else
endif
if ( Trig_Spawn_0202_Func003C() ) then
set udg_SpawnSet[2] = gg_unit_h00M_0296
else
endif
if ( Trig_Spawn_0202_Func004C() ) then
set udg_SpawnSet[2] = gg_unit_h00M_0295
else
endif
if ( Trig_Spawn_0202_Func005C() ) then
set udg_SpawnSet[2] = gg_unit_h00M_0294
else
endif
if ( Trig_Spawn_0202_Func006C() ) then
set udg_SpawnSet[2] = gg_unit_h00M_0293
else
endif
if ( Trig_Spawn_0202_Func007C() ) then
set udg_SpawnSet[2] = gg_unit_h00L_0290
else
endif
if ( Trig_Spawn_0202_Func008C() ) then
set udg_SpawnSet[2] = gg_unit_h00L_0291
else
endif
if ( Trig_Spawn_0202_Func009C() ) then
set udg_SpawnSet[2] = gg_unit_h00L_0290
else
endif
if ( Trig_Spawn_0202_Func010C() ) then
set udg_SpawnSet[2] = gg_unit_h00L_0289
else
endif
if ( Trig_Spawn_0202_Func011C() ) then
set udg_SpawnSet[2] = gg_unit_h00L_0288
else
endif
call ShowUnitShow( udg_SpawnSet[2] )
call PauseUnitBJ( false, udg_SpawnSet[2] )
call SetUnitPositionLoc( udg_SpawnSet[2], GetRandomLocInRect(gg_rct_Rect_338) )
call SetUnitPathing( udg_SpawnSet[2], true )
call GroupAddUnitSimple( udg_SpawnSet[2], udg_Spawn02 )
call IssuePointOrderLocBJ( udg_SpawnSet[2], "attack", GetRandomLocInRect(gg_rct_Rect_335) )
call GroupRemoveUnitSimple( udg_SpawnSet[2], udg_Dead )
endfunction
//===========================================================================
function InitTrig_Spawn_0202 takes nothing returns nothing
set gg_trg_Spawn_0202 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Spawn_0202, GetRandomReal(7.00, 15.00) )
call TriggerAddCondition( gg_trg_Spawn_0202, Condition( function Trig_Spawn_0202_Conditions ) )
call TriggerAddAction( gg_trg_Spawn_0202, function Trig_Spawn_0202_Actions )
endfunction
function Trig_Spawn_0203_Func020001001002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(11) )
endfunction
function Trig_Spawn_0203_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_Spawn03) < 5 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(gg_rct_Rect_335, Condition(function Trig_Spawn_0203_Func020001001002))) > 0 ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0203_Func002C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[3] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00H_0278, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00H_0279, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00H_0280, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00H_0281, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00H_0282, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0203_Func003C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[3] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00H_0278, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00H_0279, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00H_0280, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00H_0281, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0203_Func004C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[3] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00H_0278, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00H_0279, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00H_0280, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0203_Func005C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[3] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00H_0278, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00H_0279, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0203_Func006C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[3] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00H_0278, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0203_Func007C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[3] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00I_0283, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00I_0284, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00I_0285, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00I_0286, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00I_0287, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0203_Func008C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[3] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00I_0283, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00I_0284, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00I_0285, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00I_0286, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0203_Func009C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[3] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00I_0283, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00I_0284, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00I_0285, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0203_Func010C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[3] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00I_0283, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00I_0284, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0203_Func011C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[3] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00I_0283, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0203_Actions takes nothing returns nothing
set udg_SpawnRandInt[3] = GetRandomInt(1, 10)
if ( Trig_Spawn_0203_Func002C() ) then
set udg_SpawnSet[3] = gg_unit_h00H_0282
else
endif
if ( Trig_Spawn_0203_Func003C() ) then
set udg_SpawnSet[3] = gg_unit_h00H_0281
else
endif
if ( Trig_Spawn_0203_Func004C() ) then
set udg_SpawnSet[3] = gg_unit_h00H_0280
else
endif
if ( Trig_Spawn_0203_Func005C() ) then
set udg_SpawnSet[3] = gg_unit_h00H_0279
else
endif
if ( Trig_Spawn_0203_Func006C() ) then
set udg_SpawnSet[3] = gg_unit_h00H_0278
else
endif
if ( Trig_Spawn_0203_Func007C() ) then
set udg_SpawnSet[3] = gg_unit_h00I_0287
else
endif
if ( Trig_Spawn_0203_Func008C() ) then
set udg_SpawnSet[3] = gg_unit_h00I_0286
else
endif
if ( Trig_Spawn_0203_Func009C() ) then
set udg_SpawnSet[3] = gg_unit_h00I_0285
else
endif
if ( Trig_Spawn_0203_Func010C() ) then
set udg_SpawnSet[3] = gg_unit_h00I_0284
else
endif
if ( Trig_Spawn_0203_Func011C() ) then
set udg_SpawnSet[3] = gg_unit_h00I_0283
else
endif
call ShowUnitShow( udg_SpawnSet[3] )
call PauseUnitBJ( false, udg_SpawnSet[3] )
call SetUnitPositionLoc( udg_SpawnSet[3], GetRandomLocInRect(gg_rct_Rect_334) )
call SetUnitPathing( udg_SpawnSet[3], true )
call GroupAddUnitSimple( udg_SpawnSet[3], udg_Spawn03 )
call IssuePointOrderLocBJ( udg_SpawnSet[3], "attack", GetRandomLocInRect(gg_rct_Rect_335) )
call GroupRemoveUnitSimple( udg_SpawnSet[3], udg_Dead )
endfunction
//===========================================================================
function InitTrig_Spawn_0203 takes nothing returns nothing
set gg_trg_Spawn_0203 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Spawn_0203, GetRandomReal(7.00, 15.00) )
call TriggerAddCondition( gg_trg_Spawn_0203, Condition( function Trig_Spawn_0203_Conditions ) )
call TriggerAddAction( gg_trg_Spawn_0203, function Trig_Spawn_0203_Actions )
endfunction
function Trig_Spawn_0204_Func020001001002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(11) )
endfunction
function Trig_Spawn_0204_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_Spawn04) < 5 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(gg_rct_Rect_335, Condition(function Trig_Spawn_0204_Func020001001002))) > 0 ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0204_Func002C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[4] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00L_0298, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00L_0299, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00L_0300, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00L_0301, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00L_0302, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0204_Func003C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[4] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00L_0298, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00L_0299, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00L_0300, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00L_0301, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0204_Func004C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[4] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00L_0298, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00L_0299, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00L_0300, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0204_Func005C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[4] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00L_0298, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00L_0299, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0204_Func006C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[4] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00L_0298, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0204_Func007C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[4] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00M_0303, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00M_0304, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00M_0305, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00M_0306, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00M_0307, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0204_Func008C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[4] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00M_0303, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00M_0304, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00M_0305, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00M_0306, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0204_Func009C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[4] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00M_0303, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00M_0304, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00M_0305, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0204_Func010C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[4] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00M_0303, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00M_0304, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0204_Func011C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[4] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00M_0303, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0204_Actions takes nothing returns nothing
set udg_SpawnRandInt[4] = GetRandomInt(1, 10)
if ( Trig_Spawn_0204_Func002C() ) then
set udg_SpawnSet[4] = gg_unit_h00L_0302
else
endif
if ( Trig_Spawn_0204_Func003C() ) then
set udg_SpawnSet[4] = gg_unit_h00L_0301
else
endif
if ( Trig_Spawn_0204_Func004C() ) then
set udg_SpawnSet[4] = gg_unit_h00L_0300
else
endif
if ( Trig_Spawn_0204_Func005C() ) then
set udg_SpawnSet[4] = gg_unit_h00L_0299
else
endif
if ( Trig_Spawn_0204_Func006C() ) then
set udg_SpawnSet[4] = gg_unit_h00L_0298
else
endif
if ( Trig_Spawn_0204_Func007C() ) then
set udg_SpawnSet[4] = gg_unit_h00M_0307
else
endif
if ( Trig_Spawn_0204_Func008C() ) then
set udg_SpawnSet[4] = gg_unit_h00M_0306
else
endif
if ( Trig_Spawn_0204_Func009C() ) then
set udg_SpawnSet[4] = gg_unit_h00M_0305
else
endif
if ( Trig_Spawn_0204_Func010C() ) then
set udg_SpawnSet[4] = gg_unit_h00M_0304
else
endif
if ( Trig_Spawn_0204_Func011C() ) then
set udg_SpawnSet[4] = gg_unit_h00M_0303
else
endif
call ShowUnitShow( udg_SpawnSet[4] )
call PauseUnitBJ( false, udg_SpawnSet[4] )
call SetUnitPositionLoc( udg_SpawnSet[4], GetRandomLocInRect(gg_rct_Rect_331) )
call SetUnitPathing( udg_SpawnSet[4], true )
call GroupAddUnitSimple( udg_SpawnSet[4], udg_Spawn04 )
call IssuePointOrderLocBJ( udg_SpawnSet[4], "attack", GetRandomLocInRect(gg_rct_Rect_335) )
call GroupRemoveUnitSimple( udg_SpawnSet[4], udg_Dead )
endfunction
//===========================================================================
function InitTrig_Spawn_0204 takes nothing returns nothing
set gg_trg_Spawn_0204 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Spawn_0204, GetRandomReal(7.00, 15.00) )
call TriggerAddCondition( gg_trg_Spawn_0204, Condition( function Trig_Spawn_0204_Conditions ) )
call TriggerAddAction( gg_trg_Spawn_0204, function Trig_Spawn_0204_Actions )
endfunction
function Trig_Spawn_0301_Func016001001002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(11) )
endfunction
function Trig_Spawn_0301_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_Spawn01) < 3 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(gg_rct_Rect_345, Condition(function Trig_Spawn_0301_Func016001001002))) > 0 ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0301_Func002C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[1] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00O_0308, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00O_0309, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00O_0310, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0301_Func003C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[1] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00O_0308, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00O_0309, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0301_Func004C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[1] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00O_0308, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0301_Func005C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[1] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00Q_0311, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00Q_0312, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00Q_0313, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0301_Func006C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[1] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00Q_0311, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00Q_0312, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0301_Func007C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[1] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00Q_0311, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0301_Actions takes nothing returns nothing
set udg_SpawnRandInt[1] = GetRandomInt(1, 10)
if ( Trig_Spawn_0301_Func002C() ) then
set udg_SpawnSet[1] = gg_unit_h00O_0310
else
endif
if ( Trig_Spawn_0301_Func003C() ) then
set udg_SpawnSet[1] = gg_unit_h00O_0309
else
endif
if ( Trig_Spawn_0301_Func004C() ) then
set udg_SpawnSet[1] = gg_unit_h00O_0308
else
endif
if ( Trig_Spawn_0301_Func005C() ) then
set udg_SpawnSet[1] = gg_unit_h00Q_0313
else
endif
if ( Trig_Spawn_0301_Func006C() ) then
set udg_SpawnSet[1] = gg_unit_h00Q_0312
else
endif
if ( Trig_Spawn_0301_Func007C() ) then
set udg_SpawnSet[1] = gg_unit_h00Q_0311
else
endif
call ShowUnitShow( udg_SpawnSet[1] )
call PauseUnitBJ( false, udg_SpawnSet[1] )
call SetUnitPositionLoc( udg_SpawnSet[1], GetRandomLocInRect(gg_rct_Rect_341) )
call SetUnitPathing( udg_SpawnSet[1], true )
call GroupAddUnitSimple( udg_SpawnSet[1], udg_Spawn01 )
call IssuePointOrderLocBJ( udg_SpawnSet[1], "patrol", GetRandomLocInRect(gg_rct_Rect_452) )
call GroupRemoveUnitSimple( udg_SpawnSet[1], udg_Dead )
endfunction
//===========================================================================
function InitTrig_Spawn_0301 takes nothing returns nothing
set gg_trg_Spawn_0301 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Spawn_0301, GetRandomReal(7.00, 15.00) )
call TriggerAddCondition( gg_trg_Spawn_0301, Condition( function Trig_Spawn_0301_Conditions ) )
call TriggerAddAction( gg_trg_Spawn_0301, function Trig_Spawn_0301_Actions )
endfunction
function Trig_Spawn_0302_Func012001001002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(11) )
endfunction
function Trig_Spawn_0302_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_Spawn02) < 3 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(gg_rct_Rect_345, Condition(function Trig_Spawn_0302_Func012001001002))) > 0 ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0302_Func001C takes nothing returns boolean
if ( not ( IsUnitInGroup(gg_unit_h00R_0314, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00R_0315, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00R_0316, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0302_Func002C takes nothing returns boolean
if ( not ( IsUnitInGroup(gg_unit_h00R_0314, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00R_0315, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0302_Func003C takes nothing returns boolean
if ( not ( IsUnitInGroup(gg_unit_h00R_0314, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0302_Actions takes nothing returns nothing
if ( Trig_Spawn_0302_Func001C() ) then
set udg_SpawnSet[2] = gg_unit_h00R_0316
else
endif
if ( Trig_Spawn_0302_Func002C() ) then
set udg_SpawnSet[2] = gg_unit_h00R_0315
else
endif
if ( Trig_Spawn_0302_Func003C() ) then
set udg_SpawnSet[2] = gg_unit_h00R_0314
else
endif
call ShowUnitShow( udg_SpawnSet[2] )
call PauseUnitBJ( false, udg_SpawnSet[2] )
call SetUnitPositionLoc( udg_SpawnSet[2], GetRandomLocInRect(gg_rct_Rect_344) )
call SetUnitPathing( udg_SpawnSet[2], true )
call GroupAddUnitSimple( udg_SpawnSet[2], udg_Spawn02 )
call IssuePointOrderLocBJ( udg_SpawnSet[2], "patrol", GetRandomLocInRect(gg_rct_Rect_452) )
call GroupRemoveUnitSimple( udg_SpawnSet[2], udg_Dead )
endfunction
//===========================================================================
function InitTrig_Spawn_0302 takes nothing returns nothing
set gg_trg_Spawn_0302 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Spawn_0302, GetRandomReal(7.00, 15.00) )
call TriggerAddCondition( gg_trg_Spawn_0302, Condition( function Trig_Spawn_0302_Conditions ) )
call TriggerAddAction( gg_trg_Spawn_0302, function Trig_Spawn_0302_Actions )
endfunction
function Trig_Spawn_0303_Func012001001002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(11) )
endfunction
function Trig_Spawn_0303_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_Spawn03) < 3 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(gg_rct_Rect_348, Condition(function Trig_Spawn_0303_Func012001001002))) > 0 ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0303_Func001C takes nothing returns boolean
if ( not ( IsUnitInGroup(gg_unit_h00S_0320, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00S_0321, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00S_0322, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0303_Func002C takes nothing returns boolean
if ( not ( IsUnitInGroup(gg_unit_h00S_0320, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00S_0321, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0303_Func003C takes nothing returns boolean
if ( not ( IsUnitInGroup(gg_unit_h00S_0320, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0303_Actions takes nothing returns nothing
if ( Trig_Spawn_0303_Func001C() ) then
set udg_SpawnSet[3] = gg_unit_h00S_0322
else
endif
if ( Trig_Spawn_0303_Func002C() ) then
set udg_SpawnSet[3] = gg_unit_h00S_0321
else
endif
if ( Trig_Spawn_0303_Func003C() ) then
set udg_SpawnSet[3] = gg_unit_h00S_0320
else
endif
call ShowUnitShow( udg_SpawnSet[3] )
call PauseUnitBJ( false, udg_SpawnSet[3] )
call SetUnitPositionLoc( udg_SpawnSet[3], GetRandomLocInRect(gg_rct_Rect_340) )
call SetUnitPathing( udg_SpawnSet[3], true )
call GroupAddUnitSimple( udg_SpawnSet[3], udg_Spawn03 )
call IssuePointOrderLocBJ( udg_SpawnSet[3], "patrol", GetRandomLocInRect(gg_rct_Rect_348) )
call GroupRemoveUnitSimple( udg_SpawnSet[3], udg_Dead )
endfunction
//===========================================================================
function InitTrig_Spawn_0303 takes nothing returns nothing
set gg_trg_Spawn_0303 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Spawn_0303, GetRandomReal(7.00, 15.00) )
call TriggerAddCondition( gg_trg_Spawn_0303, Condition( function Trig_Spawn_0303_Conditions ) )
call TriggerAddAction( gg_trg_Spawn_0303, function Trig_Spawn_0303_Actions )
endfunction
function Trig_Spawn_0304_Func016001001002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(11) )
endfunction
function Trig_Spawn_0304_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_Spawn04) < 3 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(gg_rct_Rect_353, Condition(function Trig_Spawn_0304_Func016001001002))) > 0 ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0304_Func002C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[4] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00O_0326, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00O_0327, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00O_0328, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0304_Func003C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[4] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00O_0326, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00O_0327, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0304_Func004C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[4] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00O_0326, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0304_Func005C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[4] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00Q_0416, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00Q_0417, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00Q_0418, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0304_Func006C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[4] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00Q_0416, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00Q_0417, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0304_Func007C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[4] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00Q_0416, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0304_Actions takes nothing returns nothing
set udg_SpawnRandInt[4] = GetRandomInt(1, 10)
if ( Trig_Spawn_0304_Func002C() ) then
set udg_SpawnSet[4] = gg_unit_h00O_0328
else
endif
if ( Trig_Spawn_0304_Func003C() ) then
set udg_SpawnSet[4] = gg_unit_h00O_0327
else
endif
if ( Trig_Spawn_0304_Func004C() ) then
set udg_SpawnSet[4] = gg_unit_h00O_0326
else
endif
if ( Trig_Spawn_0304_Func005C() ) then
set udg_SpawnSet[4] = gg_unit_h00Q_0418
else
endif
if ( Trig_Spawn_0304_Func006C() ) then
set udg_SpawnSet[4] = gg_unit_h00Q_0417
else
endif
if ( Trig_Spawn_0304_Func007C() ) then
set udg_SpawnSet[4] = gg_unit_h00Q_0416
else
endif
call ShowUnitShow( udg_SpawnSet[4] )
call PauseUnitBJ( false, udg_SpawnSet[4] )
call SetUnitPositionLoc( udg_SpawnSet[4], GetRandomLocInRect(gg_rct_Rect_350) )
call SetUnitPathing( udg_SpawnSet[4], true )
call GroupAddUnitSimple( udg_SpawnSet[4], udg_Spawn04 )
call IssuePointOrderLocBJ( udg_SpawnSet[4], "patrol", GetRandomLocInRect(gg_rct_Rect_353) )
call GroupRemoveUnitSimple( udg_SpawnSet[4], udg_Dead )
endfunction
//===========================================================================
function InitTrig_Spawn_0304 takes nothing returns nothing
set gg_trg_Spawn_0304 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Spawn_0304, GetRandomReal(7.00, 15.00) )
call TriggerAddCondition( gg_trg_Spawn_0304, Condition( function Trig_Spawn_0304_Conditions ) )
call TriggerAddAction( gg_trg_Spawn_0304, function Trig_Spawn_0304_Actions )
endfunction
function Trig_Spawn_0305_Func016001001002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(11) )
endfunction
function Trig_Spawn_0305_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_Spawn05) < 3 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(gg_rct_Rect_353, Condition(function Trig_Spawn_0305_Func016001001002))) > 0 ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0305_Func002C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[5] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00Q_0332, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00Q_0333, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00Q_0334, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0305_Func003C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[5] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00Q_0332, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00Q_0333, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0305_Func004C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[5] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00Q_0332, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0305_Func005C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[5] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00O_0329, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00O_0330, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00O_0331, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0305_Func006C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[5] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00O_0329, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00O_0330, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0305_Func007C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[5] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00O_0329, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0305_Actions takes nothing returns nothing
set udg_SpawnRandInt[5] = GetRandomInt(1, 10)
if ( Trig_Spawn_0305_Func002C() ) then
set udg_SpawnSet[5] = gg_unit_h00Q_0334
else
endif
if ( Trig_Spawn_0305_Func003C() ) then
set udg_SpawnSet[5] = gg_unit_h00Q_0333
else
endif
if ( Trig_Spawn_0305_Func004C() ) then
set udg_SpawnSet[5] = gg_unit_h00Q_0332
else
endif
if ( Trig_Spawn_0305_Func005C() ) then
set udg_SpawnSet[5] = gg_unit_h00O_0331
else
endif
if ( Trig_Spawn_0305_Func006C() ) then
set udg_SpawnSet[5] = gg_unit_h00O_0330
else
endif
if ( Trig_Spawn_0305_Func007C() ) then
set udg_SpawnSet[5] = gg_unit_h00O_0329
else
endif
call ShowUnitShow( udg_SpawnSet[5] )
call PauseUnitBJ( false, udg_SpawnSet[5] )
call SetUnitPositionLoc( udg_SpawnSet[5], GetRandomLocInRect(gg_rct_Rect_352) )
call SetUnitPathing( udg_SpawnSet[5], true )
call GroupAddUnitSimple( udg_SpawnSet[5], udg_Spawn05 )
call IssuePointOrderLocBJ( udg_SpawnSet[5], "patrol", GetRandomLocInRect(gg_rct_Rect_353) )
call GroupRemoveUnitSimple( udg_SpawnSet[5], udg_Dead )
endfunction
//===========================================================================
function InitTrig_Spawn_0305 takes nothing returns nothing
set gg_trg_Spawn_0305 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Spawn_0305, GetRandomReal(7.00, 15.00) )
call TriggerAddCondition( gg_trg_Spawn_0305, Condition( function Trig_Spawn_0305_Conditions ) )
call TriggerAddAction( gg_trg_Spawn_0305, function Trig_Spawn_0305_Actions )
endfunction
function Trig_Spawn_0306_Func012001001002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(11) )
endfunction
function Trig_Spawn_0306_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_Spawn06) < 3 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(gg_rct_Rect_358, Condition(function Trig_Spawn_0306_Func012001001002))) > 0 ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0306_Func001C takes nothing returns boolean
if ( not ( IsUnitInGroup(gg_unit_h00S_0323, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00S_0324, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00S_0325, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0306_Func002C takes nothing returns boolean
if ( not ( IsUnitInGroup(gg_unit_h00S_0323, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00S_0324, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0306_Func003C takes nothing returns boolean
if ( not ( IsUnitInGroup(gg_unit_h00S_0323, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0306_Actions takes nothing returns nothing
if ( Trig_Spawn_0306_Func001C() ) then
set udg_SpawnSet[6] = gg_unit_h00S_0325
else
endif
if ( Trig_Spawn_0306_Func002C() ) then
set udg_SpawnSet[6] = gg_unit_h00S_0324
else
endif
if ( Trig_Spawn_0306_Func003C() ) then
set udg_SpawnSet[6] = gg_unit_h00S_0323
else
endif
call ShowUnitShow( udg_SpawnSet[6] )
call PauseUnitBJ( false, udg_SpawnSet[6] )
call SetUnitPositionLoc( udg_SpawnSet[6], GetRandomLocInRect(gg_rct_Rect_355) )
call SetUnitPathing( udg_SpawnSet[6], true )
call GroupAddUnitSimple( udg_SpawnSet[6], udg_Spawn06 )
call IssuePointOrderLocBJ( udg_SpawnSet[6], "patrol", GetRandomLocInRect(gg_rct_Rect_358) )
call GroupRemoveUnitSimple( udg_SpawnSet[6], udg_Dead )
endfunction
//===========================================================================
function InitTrig_Spawn_0306 takes nothing returns nothing
set gg_trg_Spawn_0306 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Spawn_0306, GetRandomReal(7.00, 15.00) )
call TriggerAddCondition( gg_trg_Spawn_0306, Condition( function Trig_Spawn_0306_Conditions ) )
call TriggerAddAction( gg_trg_Spawn_0306, function Trig_Spawn_0306_Actions )
endfunction
function Trig_Spawn_0307_Func012001001002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(11) )
endfunction
function Trig_Spawn_0307_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_Spawn07) < 3 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(gg_rct_Rect_358, Condition(function Trig_Spawn_0307_Func012001001002))) > 0 ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0307_Func001C takes nothing returns boolean
if ( not ( IsUnitInGroup(gg_unit_h00R_0317, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00R_0318, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00R_0319, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0307_Func002C takes nothing returns boolean
if ( not ( IsUnitInGroup(gg_unit_h00R_0317, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00R_0318, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0307_Func003C takes nothing returns boolean
if ( not ( IsUnitInGroup(gg_unit_h00R_0317, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0307_Actions takes nothing returns nothing
if ( Trig_Spawn_0307_Func001C() ) then
set udg_SpawnSet[7] = gg_unit_h00R_0319
else
endif
if ( Trig_Spawn_0307_Func002C() ) then
set udg_SpawnSet[7] = gg_unit_h00R_0318
else
endif
if ( Trig_Spawn_0307_Func003C() ) then
set udg_SpawnSet[7] = gg_unit_h00R_0317
else
endif
call ShowUnitShow( udg_SpawnSet[7] )
call PauseUnitBJ( false, udg_SpawnSet[7] )
call SetUnitPositionLoc( udg_SpawnSet[7], GetRandomLocInRect(gg_rct_Rect_357) )
call SetUnitPathing( udg_SpawnSet[7], true )
call GroupAddUnitSimple( udg_SpawnSet[7], udg_Spawn07 )
call IssuePointOrderLocBJ( udg_SpawnSet[7], "patrol", GetRandomLocInRect(gg_rct_Rect_358) )
call GroupRemoveUnitSimple( udg_SpawnSet[7], udg_Dead )
endfunction
//===========================================================================
function InitTrig_Spawn_0307 takes nothing returns nothing
set gg_trg_Spawn_0307 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Spawn_0307, GetRandomReal(7.00, 15.00) )
call TriggerAddCondition( gg_trg_Spawn_0307, Condition( function Trig_Spawn_0307_Conditions ) )
call TriggerAddAction( gg_trg_Spawn_0307, function Trig_Spawn_0307_Actions )
endfunction
function Trig_Spawn_0401_Func011001001002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(11) )
endfunction
function Trig_Spawn_0401_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_Spawn01) < 2 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(gg_rct_Rect_367, Condition(function Trig_Spawn_0401_Func011001001002))) > 0 ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0401_Func001C takes nothing returns boolean
if ( not ( IsUnitInGroup(gg_unit_h011_0335, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h011_0336, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0401_Func002C takes nothing returns boolean
if ( not ( IsUnitInGroup(gg_unit_h011_0335, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0401_Actions takes nothing returns nothing
if ( Trig_Spawn_0401_Func001C() ) then
set udg_SpawnSet[1] = gg_unit_h011_0336
else
endif
if ( Trig_Spawn_0401_Func002C() ) then
set udg_SpawnSet[1] = gg_unit_h011_0335
else
endif
call ShowUnitShow( udg_SpawnSet[1] )
call PauseUnitBJ( false, udg_SpawnSet[1] )
call SetUnitPositionLoc( udg_SpawnSet[1], GetRandomLocInRect(gg_rct_Rect_360) )
call SetUnitPathing( udg_SpawnSet[1], true )
call GroupAddUnitSimple( udg_SpawnSet[1], udg_Spawn01 )
call IssuePointOrderLocBJ( udg_SpawnSet[1], "attack", GetRandomLocInRect(gg_rct_Rect_367) )
call GroupRemoveUnitSimple( udg_SpawnSet[1], udg_Dead )
endfunction
//===========================================================================
function InitTrig_Spawn_0401 takes nothing returns nothing
set gg_trg_Spawn_0401 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Spawn_0401, GetRandomReal(7.00, 15.00) )
call TriggerAddCondition( gg_trg_Spawn_0401, Condition( function Trig_Spawn_0401_Conditions ) )
call TriggerAddAction( gg_trg_Spawn_0401, function Trig_Spawn_0401_Actions )
endfunction
function Trig_Spawn_0402_Func011001001002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(11) )
endfunction
function Trig_Spawn_0402_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_Spawn02) < 2 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(gg_rct_Rect_367, Condition(function Trig_Spawn_0402_Func011001001002))) > 0 ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0402_Func001C takes nothing returns boolean
if ( not ( IsUnitInGroup(gg_unit_h00X_0339, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00X_0340, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0402_Func002C takes nothing returns boolean
if ( not ( IsUnitInGroup(gg_unit_h00X_0339, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0402_Actions takes nothing returns nothing
if ( Trig_Spawn_0402_Func001C() ) then
set udg_SpawnSet[2] = gg_unit_h00X_0340
else
endif
if ( Trig_Spawn_0402_Func002C() ) then
set udg_SpawnSet[2] = gg_unit_h00X_0339
else
endif
call ShowUnitShow( udg_SpawnSet[2] )
call PauseUnitBJ( false, udg_SpawnSet[2] )
call SetUnitPositionLoc( udg_SpawnSet[2], GetRandomLocInRect(gg_rct_Rect_371) )
call SetUnitPathing( udg_SpawnSet[2], true )
call GroupAddUnitSimple( udg_SpawnSet[2], udg_Spawn02 )
call IssuePointOrderLocBJ( udg_SpawnSet[2], "attack", GetRandomLocInRect(gg_rct_Rect_367) )
call GroupRemoveUnitSimple( udg_SpawnSet[2], udg_Dead )
endfunction
//===========================================================================
function InitTrig_Spawn_0402 takes nothing returns nothing
set gg_trg_Spawn_0402 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Spawn_0402, GetRandomReal(7.00, 15.00) )
call TriggerAddCondition( gg_trg_Spawn_0402, Condition( function Trig_Spawn_0402_Conditions ) )
call TriggerAddAction( gg_trg_Spawn_0402, function Trig_Spawn_0402_Actions )
endfunction
function Trig_Spawn_0403_Func011001001002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(11) )
endfunction
function Trig_Spawn_0403_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_Spawn03) < 2 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(gg_rct_Rect_367, Condition(function Trig_Spawn_0403_Func011001001002))) > 0 ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0403_Func001C takes nothing returns boolean
if ( not ( IsUnitInGroup(gg_unit_h00X_0341, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00X_0342, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0403_Func002C takes nothing returns boolean
if ( not ( IsUnitInGroup(gg_unit_h00X_0341, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0403_Actions takes nothing returns nothing
if ( Trig_Spawn_0403_Func001C() ) then
set udg_SpawnSet[3] = gg_unit_h00X_0342
else
endif
if ( Trig_Spawn_0403_Func002C() ) then
set udg_SpawnSet[3] = gg_unit_h00X_0341
else
endif
call ShowUnitShow( udg_SpawnSet[3] )
call PauseUnitBJ( false, udg_SpawnSet[3] )
call SetUnitPositionLoc( udg_SpawnSet[3], GetRandomLocInRect(gg_rct_Rect_373) )
call SetUnitPathing( udg_SpawnSet[3], true )
call GroupAddUnitSimple( udg_SpawnSet[3], udg_Spawn03 )
call IssuePointOrderLocBJ( udg_SpawnSet[3], "attack", GetRandomLocInRect(gg_rct_Rect_367) )
call GroupRemoveUnitSimple( udg_SpawnSet[3], udg_Dead )
endfunction
//===========================================================================
function InitTrig_Spawn_0403 takes nothing returns nothing
set gg_trg_Spawn_0403 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Spawn_0403, GetRandomReal(7.00, 15.00) )
call TriggerAddCondition( gg_trg_Spawn_0403, Condition( function Trig_Spawn_0403_Conditions ) )
call TriggerAddAction( gg_trg_Spawn_0403, function Trig_Spawn_0403_Actions )
endfunction
function Trig_Spawn_0404_Func011001001002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(11) )
endfunction
function Trig_Spawn_0404_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_Spawn04) < 2 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(gg_rct_Rect_367, Condition(function Trig_Spawn_0404_Func011001001002))) > 0 ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0404_Func001C takes nothing returns boolean
if ( not ( IsUnitInGroup(gg_unit_h011_0337, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h011_0338, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0404_Func002C takes nothing returns boolean
if ( not ( IsUnitInGroup(gg_unit_h011_0337, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0404_Actions takes nothing returns nothing
if ( Trig_Spawn_0404_Func001C() ) then
set udg_SpawnSet[4] = gg_unit_h011_0338
else
endif
if ( Trig_Spawn_0404_Func002C() ) then
set udg_SpawnSet[4] = gg_unit_h011_0337
else
endif
call ShowUnitShow( udg_SpawnSet[4] )
call PauseUnitBJ( false, udg_SpawnSet[4] )
call SetUnitPositionLoc( udg_SpawnSet[4], GetRandomLocInRect(gg_rct_Rect_362) )
call SetUnitPathing( udg_SpawnSet[4], true )
call GroupAddUnitSimple( udg_SpawnSet[4], udg_Spawn04 )
call IssuePointOrderLocBJ( udg_SpawnSet[4], "attack", GetRandomLocInRect(gg_rct_Rect_367) )
call GroupRemoveUnitSimple( udg_SpawnSet[4], udg_Dead )
endfunction
//===========================================================================
function InitTrig_Spawn_0404 takes nothing returns nothing
set gg_trg_Spawn_0404 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Spawn_0404, GetRandomReal(7.00, 15.00) )
call TriggerAddCondition( gg_trg_Spawn_0404, Condition( function Trig_Spawn_0404_Conditions ) )
call TriggerAddAction( gg_trg_Spawn_0404, function Trig_Spawn_0404_Actions )
endfunction
function Trig_Spawn_0405_Func011001001002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(11) )
endfunction
function Trig_Spawn_0405_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_Spawn05) < 2 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(gg_rct_Rect_367, Condition(function Trig_Spawn_0405_Func011001001002))) > 0 ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0405_Func001C takes nothing returns boolean
if ( not ( IsUnitInGroup(gg_unit_h00X_0345, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00X_0346, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0405_Func002C takes nothing returns boolean
if ( not ( IsUnitInGroup(gg_unit_h00X_0345, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0405_Actions takes nothing returns nothing
if ( Trig_Spawn_0405_Func001C() ) then
set udg_SpawnSet[5] = gg_unit_h00X_0346
else
endif
if ( Trig_Spawn_0405_Func002C() ) then
set udg_SpawnSet[5] = gg_unit_h00X_0345
else
endif
call ShowUnitShow( udg_SpawnSet[5] )
call PauseUnitBJ( false, udg_SpawnSet[5] )
call SetUnitPositionLoc( udg_SpawnSet[5], GetRandomLocInRect(gg_rct_Rect_369) )
call SetUnitPathing( udg_SpawnSet[5], true )
call GroupAddUnitSimple( udg_SpawnSet[5], udg_Spawn05 )
call IssuePointOrderLocBJ( udg_SpawnSet[5], "attack", GetRandomLocInRect(gg_rct_Rect_367) )
call GroupRemoveUnitSimple( udg_SpawnSet[5], udg_Dead )
endfunction
//===========================================================================
function InitTrig_Spawn_0405 takes nothing returns nothing
set gg_trg_Spawn_0405 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Spawn_0405, GetRandomReal(7.00, 15.00) )
call TriggerAddCondition( gg_trg_Spawn_0405, Condition( function Trig_Spawn_0405_Conditions ) )
call TriggerAddAction( gg_trg_Spawn_0405, function Trig_Spawn_0405_Actions )
endfunction
function Trig_Spawn_0406_Func011001001002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(11) )
endfunction
function Trig_Spawn_0406_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_Spawn06) < 2 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(gg_rct_Rect_367, Condition(function Trig_Spawn_0406_Func011001001002))) > 0 ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0406_Func001C takes nothing returns boolean
if ( not ( IsUnitInGroup(gg_unit_h00X_0343, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h00X_0344, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0406_Func002C takes nothing returns boolean
if ( not ( IsUnitInGroup(gg_unit_h00X_0343, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0406_Actions takes nothing returns nothing
if ( Trig_Spawn_0406_Func001C() ) then
set udg_SpawnSet[6] = gg_unit_h00X_0344
else
endif
if ( Trig_Spawn_0406_Func002C() ) then
set udg_SpawnSet[6] = gg_unit_h00X_0343
else
endif
call ShowUnitShow( udg_SpawnSet[6] )
call PauseUnitBJ( false, udg_SpawnSet[6] )
call SetUnitPositionLoc( udg_SpawnSet[6], GetRandomLocInRect(gg_rct_Rect_375) )
call SetUnitPathing( udg_SpawnSet[6], true )
call GroupAddUnitSimple( udg_SpawnSet[6], udg_Spawn06 )
call IssuePointOrderLocBJ( udg_SpawnSet[6], "attack", GetRandomLocInRect(gg_rct_Rect_367) )
call GroupRemoveUnitSimple( udg_SpawnSet[6], udg_Dead )
endfunction
//===========================================================================
function InitTrig_Spawn_0406 takes nothing returns nothing
set gg_trg_Spawn_0406 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Spawn_0406, GetRandomReal(7.00, 15.00) )
call TriggerAddCondition( gg_trg_Spawn_0406, Condition( function Trig_Spawn_0406_Conditions ) )
call TriggerAddAction( gg_trg_Spawn_0406, function Trig_Spawn_0406_Actions )
endfunction
function Trig_Spawn_0407_Func012001001002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(11) )
endfunction
function Trig_Spawn_0407_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_Spawn07) < 3 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(gg_rct_Rect_378, Condition(function Trig_Spawn_0407_Func012001001002))) > 0 ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0407_Func001C takes nothing returns boolean
if ( not ( IsUnitInGroup(gg_unit_h012_0347, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h012_0348, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h012_0349, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0407_Func002C takes nothing returns boolean
if ( not ( IsUnitInGroup(gg_unit_h012_0347, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h012_0348, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0407_Func003C takes nothing returns boolean
if ( not ( IsUnitInGroup(gg_unit_h012_0347, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0407_Actions takes nothing returns nothing
if ( Trig_Spawn_0407_Func001C() ) then
set udg_SpawnSet[7] = gg_unit_h012_0349
else
endif
if ( Trig_Spawn_0407_Func002C() ) then
set udg_SpawnSet[7] = gg_unit_h012_0348
else
endif
if ( Trig_Spawn_0407_Func003C() ) then
set udg_SpawnSet[7] = gg_unit_h012_0347
else
endif
call ShowUnitShow( udg_SpawnSet[7] )
call PauseUnitBJ( false, udg_SpawnSet[7] )
call SetUnitPositionLoc( udg_SpawnSet[7], GetRandomLocInRect(gg_rct_Rect_377) )
call SetUnitPathing( udg_SpawnSet[7], true )
call GroupAddUnitSimple( udg_SpawnSet[7], udg_Spawn07 )
call IssuePointOrderLocBJ( udg_SpawnSet[7], "attack", GetRandomLocInRect(gg_rct_Rect_378) )
call GroupRemoveUnitSimple( udg_SpawnSet[7], udg_Dead )
endfunction
//===========================================================================
function InitTrig_Spawn_0407 takes nothing returns nothing
set gg_trg_Spawn_0407 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Spawn_0407, GetRandomReal(7.00, 15.00) )
call TriggerAddCondition( gg_trg_Spawn_0407, Condition( function Trig_Spawn_0407_Conditions ) )
call TriggerAddAction( gg_trg_Spawn_0407, function Trig_Spawn_0407_Actions )
endfunction
function Trig_Spawn_0408_Func012001001002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(11) )
endfunction
function Trig_Spawn_0408_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_Spawn08) < 3 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(gg_rct_Rect_382, Condition(function Trig_Spawn_0408_Func012001001002))) > 0 ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0408_Func001C takes nothing returns boolean
if ( not ( IsUnitInGroup(gg_unit_h012_0350, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h012_0351, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h012_0352, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0408_Func002C takes nothing returns boolean
if ( not ( IsUnitInGroup(gg_unit_h012_0350, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h012_0351, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0408_Func003C takes nothing returns boolean
if ( not ( IsUnitInGroup(gg_unit_h012_0350, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0408_Actions takes nothing returns nothing
if ( Trig_Spawn_0408_Func001C() ) then
set udg_SpawnSet[8] = gg_unit_h012_0352
else
endif
if ( Trig_Spawn_0408_Func002C() ) then
set udg_SpawnSet[8] = gg_unit_h012_0351
else
endif
if ( Trig_Spawn_0408_Func003C() ) then
set udg_SpawnSet[8] = gg_unit_h012_0350
else
endif
call ShowUnitShow( udg_SpawnSet[8] )
call PauseUnitBJ( false, udg_SpawnSet[8] )
call SetUnitPositionLoc( udg_SpawnSet[8], GetRandomLocInRect(gg_rct_Rect_381) )
call SetUnitPathing( udg_SpawnSet[8], true )
call GroupAddUnitSimple( udg_SpawnSet[8], udg_Spawn08 )
call IssuePointOrderLocBJ( udg_SpawnSet[8], "attack", GetRandomLocInRect(gg_rct_Rect_382) )
call GroupRemoveUnitSimple( udg_SpawnSet[8], udg_Dead )
endfunction
//===========================================================================
function InitTrig_Spawn_0408 takes nothing returns nothing
set gg_trg_Spawn_0408 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Spawn_0408, GetRandomReal(7.00, 15.00) )
call TriggerAddCondition( gg_trg_Spawn_0408, Condition( function Trig_Spawn_0408_Conditions ) )
call TriggerAddAction( gg_trg_Spawn_0408, function Trig_Spawn_0408_Actions )
endfunction
function Trig_Spawn_0409_Func012001001002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(11) )
endfunction
function Trig_Spawn_0409_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_Spawn09) < 3 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(gg_rct_Rect_379, Condition(function Trig_Spawn_0409_Func012001001002))) > 0 ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0409_Func001C takes nothing returns boolean
if ( not ( IsUnitInGroup(gg_unit_h012_0353, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h012_0354, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h012_0355, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0409_Func002C takes nothing returns boolean
if ( not ( IsUnitInGroup(gg_unit_h012_0353, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h012_0354, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0409_Func003C takes nothing returns boolean
if ( not ( IsUnitInGroup(gg_unit_h012_0353, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0409_Actions takes nothing returns nothing
if ( Trig_Spawn_0409_Func001C() ) then
set udg_SpawnSet[9] = gg_unit_h012_0355
else
endif
if ( Trig_Spawn_0409_Func002C() ) then
set udg_SpawnSet[9] = gg_unit_h012_0354
else
endif
if ( Trig_Spawn_0409_Func003C() ) then
set udg_SpawnSet[9] = gg_unit_h012_0353
else
endif
call ShowUnitShow( udg_SpawnSet[9] )
call PauseUnitBJ( false, udg_SpawnSet[9] )
call SetUnitPositionLoc( udg_SpawnSet[9], GetRandomLocInRect(gg_rct_Rect_366) )
call SetUnitPathing( udg_SpawnSet[9], true )
call GroupAddUnitSimple( udg_SpawnSet[9], udg_Spawn09 )
call IssuePointOrderLocBJ( udg_SpawnSet[9], "attack", GetRandomLocInRect(gg_rct_Rect_379) )
call GroupRemoveUnitSimple( udg_SpawnSet[9], udg_Dead )
endfunction
//===========================================================================
function InitTrig_Spawn_0409 takes nothing returns nothing
set gg_trg_Spawn_0409 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Spawn_0409, GetRandomReal(7.00, 15.00) )
call TriggerAddCondition( gg_trg_Spawn_0409, Condition( function Trig_Spawn_0409_Conditions ) )
call TriggerAddAction( gg_trg_Spawn_0409, function Trig_Spawn_0409_Actions )
endfunction
function Trig_Spawn_0501_Func016001001002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(11) )
endfunction
function Trig_Spawn_0501_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_Spawn01) < 3 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(gg_rct_Rect_391, Condition(function Trig_Spawn_0501_Func016001001002))) > 0 ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0501_Func002C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[1] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0356, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0357, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0358, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0501_Func003C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[1] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0356, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0357, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0501_Func004C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[1] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0356, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0501_Func005C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[1] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0386, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0387, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0388, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0501_Func006C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[1] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0386, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0387, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0501_Func007C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[1] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0386, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0501_Actions takes nothing returns nothing
set udg_SpawnRandInt[1] = GetRandomInt(1, 10)
if ( Trig_Spawn_0501_Func002C() ) then
set udg_SpawnSet[1] = gg_unit_h014_0358
else
endif
if ( Trig_Spawn_0501_Func003C() ) then
set udg_SpawnSet[1] = gg_unit_h014_0357
else
endif
if ( Trig_Spawn_0501_Func004C() ) then
set udg_SpawnSet[1] = gg_unit_h014_0356
else
endif
if ( Trig_Spawn_0501_Func005C() ) then
set udg_SpawnSet[1] = gg_unit_h015_0388
else
endif
if ( Trig_Spawn_0501_Func006C() ) then
set udg_SpawnSet[1] = gg_unit_h015_0387
else
endif
if ( Trig_Spawn_0501_Func007C() ) then
set udg_SpawnSet[1] = gg_unit_h015_0386
else
endif
call ShowUnitShow( udg_SpawnSet[1] )
call PauseUnitBJ( false, udg_SpawnSet[1] )
call SetUnitPositionLoc( udg_SpawnSet[1], GetRandomLocInRect(gg_rct_Rect_384) )
call SetUnitPathing( udg_SpawnSet[1], true )
call GroupAddUnitSimple( udg_SpawnSet[1], udg_Spawn01 )
call IssuePointOrderLocBJ( udg_SpawnSet[1], "attack", GetRandomLocInRect(gg_rct_Rect_391) )
call GroupRemoveUnitSimple( udg_SpawnSet[1], udg_Dead )
endfunction
//===========================================================================
function InitTrig_Spawn_0501 takes nothing returns nothing
set gg_trg_Spawn_0501 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Spawn_0501, GetRandomReal(7.00, 15.00) )
call TriggerAddCondition( gg_trg_Spawn_0501, Condition( function Trig_Spawn_0501_Conditions ) )
call TriggerAddAction( gg_trg_Spawn_0501, function Trig_Spawn_0501_Actions )
endfunction
function Trig_Spawn_0502_Func016001001002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(11) )
endfunction
function Trig_Spawn_0502_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_Spawn02) < 3 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(gg_rct_Rect_391, Condition(function Trig_Spawn_0502_Func016001001002))) > 0 ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0502_Func002C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[2] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0389, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0390, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0391, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0502_Func003C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[2] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0389, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0390, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0502_Func004C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[2] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0389, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0502_Func005C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[2] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0362, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0363, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0364, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0502_Func006C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[2] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0362, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0363, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0502_Func007C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[2] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0362, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0502_Actions takes nothing returns nothing
set udg_SpawnRandInt[2] = GetRandomInt(1, 10)
if ( Trig_Spawn_0502_Func002C() ) then
set udg_SpawnSet[2] = gg_unit_h015_0391
else
endif
if ( Trig_Spawn_0502_Func003C() ) then
set udg_SpawnSet[2] = gg_unit_h015_0390
else
endif
if ( Trig_Spawn_0502_Func004C() ) then
set udg_SpawnSet[2] = gg_unit_h015_0389
else
endif
if ( Trig_Spawn_0502_Func005C() ) then
set udg_SpawnSet[2] = gg_unit_h014_0364
else
endif
if ( Trig_Spawn_0502_Func006C() ) then
set udg_SpawnSet[2] = gg_unit_h014_0363
else
endif
if ( Trig_Spawn_0502_Func007C() ) then
set udg_SpawnSet[2] = gg_unit_h014_0362
else
endif
call ShowUnitShow( udg_SpawnSet[2] )
call PauseUnitBJ( false, udg_SpawnSet[2] )
call SetUnitPositionLoc( udg_SpawnSet[2], GetRandomLocInRect(gg_rct_Rect_386) )
call SetUnitPathing( udg_SpawnSet[2], true )
call GroupAddUnitSimple( udg_SpawnSet[2], udg_Spawn02 )
call IssuePointOrderLocBJ( udg_SpawnSet[2], "attack", GetRandomLocInRect(gg_rct_Rect_391) )
call GroupRemoveUnitSimple( udg_SpawnSet[2], udg_Dead )
endfunction
//===========================================================================
function InitTrig_Spawn_0502 takes nothing returns nothing
set gg_trg_Spawn_0502 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Spawn_0502, GetRandomReal(7.00, 15.00) )
call TriggerAddCondition( gg_trg_Spawn_0502, Condition( function Trig_Spawn_0502_Conditions ) )
call TriggerAddAction( gg_trg_Spawn_0502, function Trig_Spawn_0502_Actions )
endfunction
function Trig_Spawn_0503_Func016001001002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(11) )
endfunction
function Trig_Spawn_0503_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_Spawn03) < 3 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(gg_rct_Rect_392, Condition(function Trig_Spawn_0503_Func016001001002))) > 0 ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0503_Func002C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[3] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0359, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0360, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0361, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0503_Func003C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[3] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0359, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0360, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0503_Func004C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[3] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0359, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0503_Func005C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[3] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0395, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0396, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0397, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0503_Func006C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[3] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0395, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0396, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0503_Func007C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[3] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0395, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0503_Actions takes nothing returns nothing
set udg_SpawnRandInt[3] = GetRandomInt(1, 10)
if ( Trig_Spawn_0503_Func002C() ) then
set udg_SpawnSet[3] = gg_unit_h014_0361
else
endif
if ( Trig_Spawn_0503_Func003C() ) then
set udg_SpawnSet[3] = gg_unit_h014_0360
else
endif
if ( Trig_Spawn_0503_Func004C() ) then
set udg_SpawnSet[3] = gg_unit_h014_0359
else
endif
if ( Trig_Spawn_0503_Func005C() ) then
set udg_SpawnSet[3] = gg_unit_h015_0397
else
endif
if ( Trig_Spawn_0503_Func006C() ) then
set udg_SpawnSet[3] = gg_unit_h015_0396
else
endif
if ( Trig_Spawn_0503_Func007C() ) then
set udg_SpawnSet[3] = gg_unit_h015_0395
else
endif
call ShowUnitShow( udg_SpawnSet[3] )
call PauseUnitBJ( false, udg_SpawnSet[3] )
call SetUnitPositionLoc( udg_SpawnSet[3], GetRandomLocInRect(gg_rct_Rect_390) )
call SetUnitPathing( udg_SpawnSet[3], true )
call GroupAddUnitSimple( udg_SpawnSet[3], udg_Spawn03 )
call IssuePointOrderLocBJ( udg_SpawnSet[3], "attack", GetRandomLocInRect(gg_rct_Rect_392) )
call GroupRemoveUnitSimple( udg_SpawnSet[3], udg_Dead )
endfunction
//===========================================================================
function InitTrig_Spawn_0503 takes nothing returns nothing
set gg_trg_Spawn_0503 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Spawn_0503, GetRandomReal(7.00, 15.00) )
call TriggerAddCondition( gg_trg_Spawn_0503, Condition( function Trig_Spawn_0503_Conditions ) )
call TriggerAddAction( gg_trg_Spawn_0503, function Trig_Spawn_0503_Actions )
endfunction
function Trig_Spawn_0504_Func016001001002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(11) )
endfunction
function Trig_Spawn_0504_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_Spawn04) < 3 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(gg_rct_Rect_392, Condition(function Trig_Spawn_0504_Func016001001002))) > 0 ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0504_Func002C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[4] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0392, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0393, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0394, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0504_Func003C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[4] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0392, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0393, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0504_Func004C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[4] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0392, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0504_Func005C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[4] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0365, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0366, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0367, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0504_Func006C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[4] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0365, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0366, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0504_Func007C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[4] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0365, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0504_Actions takes nothing returns nothing
set udg_SpawnRandInt[4] = GetRandomInt(1, 10)
if ( Trig_Spawn_0504_Func002C() ) then
set udg_SpawnSet[4] = gg_unit_h015_0394
else
endif
if ( Trig_Spawn_0504_Func003C() ) then
set udg_SpawnSet[4] = gg_unit_h015_0393
else
endif
if ( Trig_Spawn_0504_Func004C() ) then
set udg_SpawnSet[4] = gg_unit_h015_0392
else
endif
if ( Trig_Spawn_0504_Func005C() ) then
set udg_SpawnSet[4] = gg_unit_h014_0367
else
endif
if ( Trig_Spawn_0504_Func006C() ) then
set udg_SpawnSet[4] = gg_unit_h014_0366
else
endif
if ( Trig_Spawn_0504_Func007C() ) then
set udg_SpawnSet[4] = gg_unit_h014_0365
else
endif
call ShowUnitShow( udg_SpawnSet[4] )
call PauseUnitBJ( false, udg_SpawnSet[4] )
call SetUnitPositionLoc( udg_SpawnSet[4], GetRandomLocInRect(gg_rct_Rect_388) )
call SetUnitPathing( udg_SpawnSet[4], true )
call GroupAddUnitSimple( udg_SpawnSet[4], udg_Spawn04 )
call IssuePointOrderLocBJ( udg_SpawnSet[4], "attack", GetRandomLocInRect(gg_rct_Rect_392) )
call GroupRemoveUnitSimple( udg_SpawnSet[4], udg_Dead )
endfunction
//===========================================================================
function InitTrig_Spawn_0504 takes nothing returns nothing
set gg_trg_Spawn_0504 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Spawn_0504, GetRandomReal(7.00, 15.00) )
call TriggerAddCondition( gg_trg_Spawn_0504, Condition( function Trig_Spawn_0504_Conditions ) )
call TriggerAddAction( gg_trg_Spawn_0504, function Trig_Spawn_0504_Actions )
endfunction
function Trig_Spawn_0505_Func016001001002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(11) )
endfunction
function Trig_Spawn_0505_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_Spawn05) < 3 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(gg_rct_Rect_395, Condition(function Trig_Spawn_0505_Func016001001002))) > 0 ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0505_Func002C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[5] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0377, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0378, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0379, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0505_Func003C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[5] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0377, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0378, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0505_Func004C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[5] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0377, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0505_Func005C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[5] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0398, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0399, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0400, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0505_Func006C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[5] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0398, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0399, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0505_Func007C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[5] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0398, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0505_Actions takes nothing returns nothing
set udg_SpawnRandInt[5] = GetRandomInt(1, 10)
if ( Trig_Spawn_0505_Func002C() ) then
set udg_SpawnSet[5] = gg_unit_h014_0379
else
endif
if ( Trig_Spawn_0505_Func003C() ) then
set udg_SpawnSet[5] = gg_unit_h014_0378
else
endif
if ( Trig_Spawn_0505_Func004C() ) then
set udg_SpawnSet[5] = gg_unit_h014_0377
else
endif
if ( Trig_Spawn_0505_Func005C() ) then
set udg_SpawnSet[5] = gg_unit_h015_0400
else
endif
if ( Trig_Spawn_0505_Func006C() ) then
set udg_SpawnSet[5] = gg_unit_h015_0399
else
endif
if ( Trig_Spawn_0505_Func007C() ) then
set udg_SpawnSet[5] = gg_unit_h015_0398
else
endif
call ShowUnitShow( udg_SpawnSet[5] )
call PauseUnitBJ( false, udg_SpawnSet[5] )
call SetUnitPositionLoc( udg_SpawnSet[5], GetRandomLocInRect(gg_rct_Rect_394) )
call SetUnitPathing( udg_SpawnSet[5], true )
call GroupAddUnitSimple( udg_SpawnSet[5], udg_Spawn05 )
call IssuePointOrderLocBJ( udg_SpawnSet[5], "attack", GetRandomLocInRect(gg_rct_Rect_395) )
call GroupRemoveUnitSimple( udg_SpawnSet[5], udg_Dead )
endfunction
//===========================================================================
function InitTrig_Spawn_0505 takes nothing returns nothing
set gg_trg_Spawn_0505 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Spawn_0505, GetRandomReal(7.00, 15.00) )
call TriggerAddCondition( gg_trg_Spawn_0505, Condition( function Trig_Spawn_0505_Conditions ) )
call TriggerAddAction( gg_trg_Spawn_0505, function Trig_Spawn_0505_Actions )
endfunction
function Trig_Spawn_0506_Func016001001002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(11) )
endfunction
function Trig_Spawn_0506_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_Spawn06) < 3 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(gg_rct_Rect_398, Condition(function Trig_Spawn_0506_Func016001001002))) > 0 ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0506_Func002C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[6] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0374, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0375, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0376, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0506_Func003C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[6] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0374, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0375, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0506_Func004C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[6] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0374, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0506_Func005C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[6] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0401, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0402, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0403, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0506_Func006C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[6] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0401, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0402, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0506_Func007C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[6] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0401, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0506_Actions takes nothing returns nothing
set udg_SpawnRandInt[6] = GetRandomInt(1, 10)
if ( Trig_Spawn_0506_Func002C() ) then
set udg_SpawnSet[6] = gg_unit_h014_0376
else
endif
if ( Trig_Spawn_0506_Func003C() ) then
set udg_SpawnSet[6] = gg_unit_h014_0375
else
endif
if ( Trig_Spawn_0506_Func004C() ) then
set udg_SpawnSet[6] = gg_unit_h014_0374
else
endif
if ( Trig_Spawn_0506_Func005C() ) then
set udg_SpawnSet[6] = gg_unit_h015_0403
else
endif
if ( Trig_Spawn_0506_Func006C() ) then
set udg_SpawnSet[6] = gg_unit_h015_0402
else
endif
if ( Trig_Spawn_0506_Func007C() ) then
set udg_SpawnSet[6] = gg_unit_h015_0401
else
endif
call ShowUnitShow( udg_SpawnSet[6] )
call PauseUnitBJ( false, udg_SpawnSet[6] )
call SetUnitPositionLoc( udg_SpawnSet[6], GetRandomLocInRect(gg_rct_Rect_397) )
call SetUnitPathing( udg_SpawnSet[6], true )
call GroupAddUnitSimple( udg_SpawnSet[6], udg_Spawn06 )
call IssuePointOrderLocBJ( udg_SpawnSet[6], "attack", GetRandomLocInRect(gg_rct_Rect_398) )
call GroupRemoveUnitSimple( udg_SpawnSet[6], udg_Dead )
endfunction
//===========================================================================
function InitTrig_Spawn_0506 takes nothing returns nothing
set gg_trg_Spawn_0506 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Spawn_0506, GetRandomReal(7.00, 15.00) )
call TriggerAddCondition( gg_trg_Spawn_0506, Condition( function Trig_Spawn_0506_Conditions ) )
call TriggerAddAction( gg_trg_Spawn_0506, function Trig_Spawn_0506_Actions )
endfunction
function Trig_Spawn_0507_Func016001001002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(11) )
endfunction
function Trig_Spawn_0507_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_Spawn07) < 3 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(gg_rct_Rect_403, Condition(function Trig_Spawn_0507_Func016001001002))) > 0 ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0507_Func002C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[7] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0368, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0369, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0370, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0507_Func003C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[7] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0368, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0369, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0507_Func004C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[7] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0368, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0507_Func005C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[7] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0404, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0405, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0406, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0507_Func006C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[7] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0404, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0405, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0507_Func007C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[7] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0404, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0507_Actions takes nothing returns nothing
set udg_SpawnRandInt[7] = GetRandomInt(1, 10)
if ( Trig_Spawn_0507_Func002C() ) then
set udg_SpawnSet[7] = gg_unit_h014_0370
else
endif
if ( Trig_Spawn_0507_Func003C() ) then
set udg_SpawnSet[7] = gg_unit_h014_0369
else
endif
if ( Trig_Spawn_0507_Func004C() ) then
set udg_SpawnSet[7] = gg_unit_h014_0368
else
endif
if ( Trig_Spawn_0507_Func005C() ) then
set udg_SpawnSet[7] = gg_unit_h015_0406
else
endif
if ( Trig_Spawn_0507_Func006C() ) then
set udg_SpawnSet[7] = gg_unit_h015_0405
else
endif
if ( Trig_Spawn_0507_Func007C() ) then
set udg_SpawnSet[7] = gg_unit_h015_0404
else
endif
call ShowUnitShow( udg_SpawnSet[7] )
call PauseUnitBJ( false, udg_SpawnSet[7] )
call SetUnitPositionLoc( udg_SpawnSet[7], GetRandomLocInRect(gg_rct_Rect_402) )
call SetUnitPathing( udg_SpawnSet[7], true )
call GroupAddUnitSimple( udg_SpawnSet[7], udg_Spawn07 )
call IssuePointOrderLocBJ( udg_SpawnSet[7], "attack", GetRandomLocInRect(gg_rct_Rect_403) )
call GroupRemoveUnitSimple( udg_SpawnSet[7], udg_Dead )
endfunction
//===========================================================================
function InitTrig_Spawn_0507 takes nothing returns nothing
set gg_trg_Spawn_0507 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Spawn_0507, GetRandomReal(7.00, 15.00) )
call TriggerAddCondition( gg_trg_Spawn_0507, Condition( function Trig_Spawn_0507_Conditions ) )
call TriggerAddAction( gg_trg_Spawn_0507, function Trig_Spawn_0507_Actions )
endfunction
function Trig_Spawn_0508_Func016001001002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(11) )
endfunction
function Trig_Spawn_0508_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_Spawn08) < 3 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(gg_rct_Rect_403, Condition(function Trig_Spawn_0508_Func016001001002))) > 0 ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0508_Func002C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[8] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0371, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0372, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0373, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0508_Func003C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[8] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0371, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0372, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0508_Func004C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[8] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0371, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0508_Func005C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[8] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0407, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0408, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0409, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0508_Func006C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[8] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0407, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0408, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0508_Func007C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[8] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0407, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0508_Actions takes nothing returns nothing
set udg_SpawnRandInt[8] = GetRandomInt(1, 10)
if ( Trig_Spawn_0508_Func002C() ) then
set udg_SpawnSet[8] = gg_unit_h014_0373
else
endif
if ( Trig_Spawn_0508_Func003C() ) then
set udg_SpawnSet[8] = gg_unit_h014_0372
else
endif
if ( Trig_Spawn_0508_Func004C() ) then
set udg_SpawnSet[8] = gg_unit_h014_0371
else
endif
if ( Trig_Spawn_0508_Func005C() ) then
set udg_SpawnSet[8] = gg_unit_h015_0409
else
endif
if ( Trig_Spawn_0508_Func006C() ) then
set udg_SpawnSet[8] = gg_unit_h015_0408
else
endif
if ( Trig_Spawn_0508_Func007C() ) then
set udg_SpawnSet[8] = gg_unit_h015_0407
else
endif
call ShowUnitShow( udg_SpawnSet[8] )
call PauseUnitBJ( false, udg_SpawnSet[8] )
call SetUnitPositionLoc( udg_SpawnSet[8], GetRandomLocInRect(gg_rct_Rect_400) )
call SetUnitPathing( udg_SpawnSet[8], true )
call GroupAddUnitSimple( udg_SpawnSet[8], udg_Spawn08 )
call IssuePointOrderLocBJ( udg_SpawnSet[8], "attack", GetRandomLocInRect(gg_rct_Rect_403) )
call GroupRemoveUnitSimple( udg_SpawnSet[8], udg_Dead )
endfunction
//===========================================================================
function InitTrig_Spawn_0508 takes nothing returns nothing
set gg_trg_Spawn_0508 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Spawn_0508, GetRandomReal(7.00, 15.00) )
call TriggerAddCondition( gg_trg_Spawn_0508, Condition( function Trig_Spawn_0508_Conditions ) )
call TriggerAddAction( gg_trg_Spawn_0508, function Trig_Spawn_0508_Actions )
endfunction
function Trig_Spawn_0509_Func016001001002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(11) )
endfunction
function Trig_Spawn_0509_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_Spawn09) < 3 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(gg_rct_Rect_406, Condition(function Trig_Spawn_0509_Func016001001002))) > 0 ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0509_Func002C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[9] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0410, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0411, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0412, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0509_Func003C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[9] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0410, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0411, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0509_Func004C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[9] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0410, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0509_Func005C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[9] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0380, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0381, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0382, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0509_Func006C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[9] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0380, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0381, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0509_Func007C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[9] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0380, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0509_Actions takes nothing returns nothing
set udg_SpawnRandInt[9] = GetRandomInt(1, 10)
if ( Trig_Spawn_0509_Func002C() ) then
set udg_SpawnSet[9] = gg_unit_h015_0412
else
endif
if ( Trig_Spawn_0509_Func003C() ) then
set udg_SpawnSet[9] = gg_unit_h015_0411
else
endif
if ( Trig_Spawn_0509_Func004C() ) then
set udg_SpawnSet[9] = gg_unit_h015_0410
else
endif
if ( Trig_Spawn_0509_Func005C() ) then
set udg_SpawnSet[9] = gg_unit_h014_0382
else
endif
if ( Trig_Spawn_0509_Func006C() ) then
set udg_SpawnSet[9] = gg_unit_h014_0381
else
endif
if ( Trig_Spawn_0509_Func007C() ) then
set udg_SpawnSet[9] = gg_unit_h014_0380
else
endif
call ShowUnitShow( udg_SpawnSet[9] )
call PauseUnitBJ( false, udg_SpawnSet[9] )
call SetUnitPositionLoc( udg_SpawnSet[9], GetRandomLocInRect(gg_rct_Rect_405) )
call SetUnitPathing( udg_SpawnSet[9], true )
call GroupAddUnitSimple( udg_SpawnSet[9], udg_Spawn09 )
call IssuePointOrderLocBJ( udg_SpawnSet[9], "attack", GetRandomLocInRect(gg_rct_Rect_406) )
call GroupRemoveUnitSimple( udg_SpawnSet[9], udg_Dead )
endfunction
//===========================================================================
function InitTrig_Spawn_0509 takes nothing returns nothing
set gg_trg_Spawn_0509 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Spawn_0509, GetRandomReal(7.00, 15.00) )
call TriggerAddCondition( gg_trg_Spawn_0509, Condition( function Trig_Spawn_0509_Conditions ) )
call TriggerAddAction( gg_trg_Spawn_0509, function Trig_Spawn_0509_Actions )
endfunction
function Trig_Spawn_0510_Func016001001002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(11) )
endfunction
function Trig_Spawn_0510_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_Spawn10) < 3 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(gg_rct_Rect_409, Condition(function Trig_Spawn_0510_Func016001001002))) > 0 ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0510_Func002C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[10] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0383, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0384, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0385, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0510_Func003C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[10] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0383, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0384, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0510_Func004C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[10] <= 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h014_0383, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0510_Func005C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[10] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0413, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0414, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0415, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0510_Func006C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[10] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0413, udg_Dead) == false ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0414, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0510_Func007C takes nothing returns boolean
if ( not ( udg_SpawnRandInt[10] > 7 ) ) then
return false
endif
if ( not ( IsUnitInGroup(gg_unit_h015_0413, udg_Dead) == true ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_0510_Actions takes nothing returns nothing
set udg_SpawnRandInt[10] = GetRandomInt(1, 10)
if ( Trig_Spawn_0510_Func002C() ) then
set udg_SpawnSet[10] = gg_unit_h014_0385
else
endif
if ( Trig_Spawn_0510_Func003C() ) then
set udg_SpawnSet[10] = gg_unit_h014_0384
else
endif
if ( Trig_Spawn_0510_Func004C() ) then
set udg_SpawnSet[10] = gg_unit_h014_0383
else
endif
if ( Trig_Spawn_0510_Func005C() ) then
set udg_SpawnSet[10] = gg_unit_h015_0415
else
endif
if ( Trig_Spawn_0510_Func006C() ) then
set udg_SpawnSet[10] = gg_unit_h015_0414
else
endif
if ( Trig_Spawn_0510_Func007C() ) then
set udg_SpawnSet[10] = gg_unit_h015_0413
else
endif
call ShowUnitShow( udg_SpawnSet[10] )
call PauseUnitBJ( false, udg_SpawnSet[10] )
call SetUnitPositionLoc( udg_SpawnSet[10], GetRandomLocInRect(gg_rct_Rect_408) )
call SetUnitPathing( udg_SpawnSet[10], true )
call GroupAddUnitSimple( udg_SpawnSet[10], udg_Spawn10 )
call IssuePointOrderLocBJ( udg_SpawnSet[10], "attack", GetRandomLocInRect(gg_rct_Rect_409) )
call GroupRemoveUnitSimple( udg_SpawnSet[10], udg_Dead )
endfunction
//===========================================================================
function InitTrig_Spawn_0510 takes nothing returns nothing
set gg_trg_Spawn_0510 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Spawn_0510, GetRandomReal(7.00, 15.00) )
call TriggerAddCondition( gg_trg_Spawn_0510, Condition( function Trig_Spawn_0510_Conditions ) )
call TriggerAddAction( gg_trg_Spawn_0510, function Trig_Spawn_0510_Actions )
endfunction
function Trig_One_Winner_Mode_Func007001 takes nothing returns boolean
return ( udg_onewinner[1] == IMaxBJ(IMaxBJ(udg_onewinner[1], udg_onewinner[2]), IMaxBJ(udg_onewinner[3], udg_onewinner[4])) )
endfunction
function Trig_One_Winner_Mode_Func008001 takes nothing returns boolean
return ( udg_onewinner[2] == IMaxBJ(IMaxBJ(udg_onewinner[1], udg_onewinner[2]), IMaxBJ(udg_onewinner[3], udg_onewinner[4])) )
endfunction
function Trig_One_Winner_Mode_Func009001 takes nothing returns boolean
return ( udg_onewinner[3] == IMaxBJ(IMaxBJ(udg_onewinner[1], udg_onewinner[2]), IMaxBJ(udg_onewinner[3], udg_onewinner[4])) )
endfunction
function Trig_One_Winner_Mode_Func010001 takes nothing returns boolean
return ( udg_onewinner[4] == IMaxBJ(IMaxBJ(udg_onewinner[1], udg_onewinner[2]), IMaxBJ(udg_onewinner[3], udg_onewinner[4])) )
endfunction
function Trig_One_Winner_Mode_Func013001 takes nothing returns boolean
return ( IsPlayerInForce(Player(0), udg_winner) == true )
endfunction
function Trig_One_Winner_Mode_Func014001 takes nothing returns boolean
return ( IsPlayerInForce(Player(1), udg_winner) == true )
endfunction
function Trig_One_Winner_Mode_Func015001 takes nothing returns boolean
return ( IsPlayerInForce(Player(2), udg_winner) == true )
endfunction
function Trig_One_Winner_Mode_Func016001 takes nothing returns boolean
return ( IsPlayerInForce(Player(3), udg_winner) == true )
endfunction
function Trig_One_Winner_Mode_Actions takes nothing returns nothing
set udg_onewinner[1] = ( ( udg_Kills[1] * 10 ) + ( ( GetHeroStatBJ(bj_HEROSTAT_STR, udg_Hero1, false) + ( GetHeroStatBJ(bj_HEROSTAT_AGI, udg_Hero1, false) + GetHeroStatBJ(bj_HEROSTAT_INT, udg_Hero1, false) ) ) * GetHeroLevel(udg_Hero1) ) )
set udg_onewinner[2] = ( ( udg_Kills[2] * 10 ) + ( ( GetHeroStatBJ(bj_HEROSTAT_STR, udg_Hero2, false) + ( GetHeroStatBJ(bj_HEROSTAT_AGI, udg_Hero2, false) + GetHeroStatBJ(bj_HEROSTAT_INT, udg_Hero2, false) ) ) * GetHeroLevel(udg_Hero2) ) )
set udg_onewinner[3] = ( ( udg_Kills[3] * 10 ) + ( ( GetHeroStatBJ(bj_HEROSTAT_STR, udg_Hero3, false) + ( GetHeroStatBJ(bj_HEROSTAT_AGI, udg_Hero3, false) + GetHeroStatBJ(bj_HEROSTAT_INT, udg_Hero3, false) ) ) * GetHeroLevel(udg_Hero3) ) )
set udg_onewinner[4] = ( ( udg_Kills[4] * 10 ) + ( ( GetHeroStatBJ(bj_HEROSTAT_STR, udg_Hero4, false) + ( GetHeroStatBJ(bj_HEROSTAT_AGI, udg_Hero4, false) + GetHeroStatBJ(bj_HEROSTAT_INT, udg_Hero4, false) ) ) * GetHeroLevel(udg_Hero4) ) )
call TriggerSleepAction( 18.00 )
if ( Trig_One_Winner_Mode_Func007001() ) then
call ForceAddPlayerSimple( Player(0), udg_winner )
else
call DoNothing( )
endif
if ( Trig_One_Winner_Mode_Func008001() ) then
call ForceAddPlayerSimple( Player(1), udg_winner )
else
call DoNothing( )
endif
if ( Trig_One_Winner_Mode_Func009001() ) then
call ForceAddPlayerSimple( Player(2), udg_winner )
else
call DoNothing( )
endif
if ( Trig_One_Winner_Mode_Func010001() ) then
call ForceAddPlayerSimple( Player(3), udg_winner )
else
call DoNothing( )
endif
call TriggerSleepAction( 2.00 )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(ForcePickRandomPlayer(udg_winner)) + ( ( " has won the game with " + I2S(IMaxBJ(IMaxBJ(udg_onewinner[1], udg_onewinner[2]), IMaxBJ(udg_onewinner[3], udg_onewinner[4]))) ) + ( " points. Here is everyone's score, starting with Red and ending with Purple: " + ( ( I2S(udg_onewinner[1]) + " : " ) + ( ( I2S(udg_onewinner[2]) + " : " ) + ( ( I2S(udg_onewinner[3]) + " : " ) + I2S(udg_onewinner[4]) ) ) ) ) ) ) )
call TriggerSleepAction( 5.00 )
if ( Trig_One_Winner_Mode_Func013001() ) then
call DoNothing( )
else
call CustomDefeatBJ( Player(0), ( GetPlayerName(ForcePickRandomPlayer(udg_winner)) + " Won." ) )
endif
if ( Trig_One_Winner_Mode_Func014001() ) then
call DoNothing( )
else
call CustomDefeatBJ( Player(1), ( GetPlayerName(ForcePickRandomPlayer(udg_winner)) + " Won." ) )
endif
if ( Trig_One_Winner_Mode_Func015001() ) then
call DoNothing( )
else
call CustomDefeatBJ( Player(2), ( GetPlayerName(ForcePickRandomPlayer(udg_winner)) + " Won." ) )
endif
if ( Trig_One_Winner_Mode_Func016001() ) then
call DoNothing( )
else
call CustomDefeatBJ( Player(3), ( GetPlayerName(ForcePickRandomPlayer(udg_winner)) + " Won." ) )
endif
endfunction
//===========================================================================
function InitTrig_One_Winner_Mode takes nothing returns nothing
set gg_trg_One_Winner_Mode = CreateTrigger( )
call DisableTrigger( gg_trg_One_Winner_Mode )
call TriggerRegisterUnitEvent( gg_trg_One_Winner_Mode, gg_unit_U004_0121, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_One_Winner_Mode, function Trig_One_Winner_Mode_Actions )
endfunction
function Trig_Scholar_0101_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'tdx2' ) ) then
return false
endif
return true
endfunction
function Trig_Scholar_0101_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 38, Player(0), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( "TRIGSTR_186", udg_Hero1, 0, 10, 100, 100, 0.00, 10.00 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 1.00 )
endfunction
//===========================================================================
function InitTrig_Scholar_0101 takes nothing returns nothing
set gg_trg_Scholar_0101 = CreateTrigger( )
call DisableTrigger( gg_trg_Scholar_0101 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Scholar_0101, Player(0), EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Scholar_0101, Condition( function Trig_Scholar_0101_Conditions ) )
call TriggerAddAction( gg_trg_Scholar_0101, function Trig_Scholar_0101_Actions )
endfunction
function Trig_Scholar_0201_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'tdx2' ) ) then
return false
endif
return true
endfunction
function Trig_Scholar_0201_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 38, Player(1), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( "TRIGSTR_194", udg_Hero2, 0, 10, 100, 100, 0.00, 10.00 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 1.00 )
endfunction
//===========================================================================
function InitTrig_Scholar_0201 takes nothing returns nothing
set gg_trg_Scholar_0201 = CreateTrigger( )
call DisableTrigger( gg_trg_Scholar_0201 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Scholar_0201, Player(1), EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Scholar_0201, Condition( function Trig_Scholar_0201_Conditions ) )
call TriggerAddAction( gg_trg_Scholar_0201, function Trig_Scholar_0201_Actions )
endfunction
function Trig_Scholar_0301_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'tdx2' ) ) then
return false
endif
return true
endfunction
function Trig_Scholar_0301_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 38, Player(2), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( "TRIGSTR_195", udg_Hero3, 0, 10, 100, 100, 0.00, 10.00 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 1.00 )
endfunction
//===========================================================================
function InitTrig_Scholar_0301 takes nothing returns nothing
set gg_trg_Scholar_0301 = CreateTrigger( )
call DisableTrigger( gg_trg_Scholar_0301 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Scholar_0301, Player(2), EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Scholar_0301, Condition( function Trig_Scholar_0301_Conditions ) )
call TriggerAddAction( gg_trg_Scholar_0301, function Trig_Scholar_0301_Actions )
endfunction
function Trig_Scholar_0401_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'tdx2' ) ) then
return false
endif
return true
endfunction
function Trig_Scholar_0401_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 38, Player(3), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( "TRIGSTR_196", udg_Hero4, 0, 10, 100, 100, 0.00, 10.00 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 1.00 )
endfunction
//===========================================================================
function InitTrig_Scholar_0401 takes nothing returns nothing
set gg_trg_Scholar_0401 = CreateTrigger( )
call DisableTrigger( gg_trg_Scholar_0401 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Scholar_0401, Player(3), EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Scholar_0401, Condition( function Trig_Scholar_0401_Conditions ) )
call TriggerAddAction( gg_trg_Scholar_0401, function Trig_Scholar_0401_Actions )
endfunction
function Trig_Scholar_0102_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'tin2' ) ) then
return false
endif
return true
endfunction
function Trig_Scholar_0102_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 38, Player(0), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( "TRIGSTR_187", udg_Hero1, 0, 10, 100, 100, 0.00, 10.00 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 1.00 )
endfunction
//===========================================================================
function InitTrig_Scholar_0102 takes nothing returns nothing
set gg_trg_Scholar_0102 = CreateTrigger( )
call DisableTrigger( gg_trg_Scholar_0102 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Scholar_0102, Player(0), EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Scholar_0102, Condition( function Trig_Scholar_0102_Conditions ) )
call TriggerAddAction( gg_trg_Scholar_0102, function Trig_Scholar_0102_Actions )
endfunction
function Trig_Scholar_0202_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'tin2' ) ) then
return false
endif
return true
endfunction
function Trig_Scholar_0202_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 38, Player(1), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( "TRIGSTR_197", udg_Hero2, 0, 10, 100, 100, 0.00, 10.00 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 1.00 )
endfunction
//===========================================================================
function InitTrig_Scholar_0202 takes nothing returns nothing
set gg_trg_Scholar_0202 = CreateTrigger( )
call DisableTrigger( gg_trg_Scholar_0202 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Scholar_0202, Player(1), EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Scholar_0202, Condition( function Trig_Scholar_0202_Conditions ) )
call TriggerAddAction( gg_trg_Scholar_0202, function Trig_Scholar_0202_Actions )
endfunction
function Trig_Scholar_0302_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'tin2' ) ) then
return false
endif
return true
endfunction
function Trig_Scholar_0302_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 38, Player(2), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( "TRIGSTR_198", udg_Hero3, 0, 10, 100, 100, 0.00, 10.00 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 1.00 )
endfunction
//===========================================================================
function InitTrig_Scholar_0302 takes nothing returns nothing
set gg_trg_Scholar_0302 = CreateTrigger( )
call DisableTrigger( gg_trg_Scholar_0302 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Scholar_0302, Player(2), EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Scholar_0302, Condition( function Trig_Scholar_0302_Conditions ) )
call TriggerAddAction( gg_trg_Scholar_0302, function Trig_Scholar_0302_Actions )
endfunction
function Trig_Scholar_0402_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'tin2' ) ) then
return false
endif
return true
endfunction
function Trig_Scholar_0402_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 38, Player(3), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( "TRIGSTR_199", udg_Hero4, 0, 10, 100, 100, 0.00, 10.00 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 1.00 )
endfunction
//===========================================================================
function InitTrig_Scholar_0402 takes nothing returns nothing
set gg_trg_Scholar_0402 = CreateTrigger( )
call DisableTrigger( gg_trg_Scholar_0402 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Scholar_0402, Player(3), EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Scholar_0402, Condition( function Trig_Scholar_0402_Conditions ) )
call TriggerAddAction( gg_trg_Scholar_0402, function Trig_Scholar_0402_Actions )
endfunction
function Trig_Scholar_0103_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'tst2' ) ) then
return false
endif
return true
endfunction
function Trig_Scholar_0103_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 38, Player(0), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( "TRIGSTR_188", udg_Hero1, 0, 10, 100, 100, 0.00, 10.00 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 1.00 )
endfunction
//===========================================================================
function InitTrig_Scholar_0103 takes nothing returns nothing
set gg_trg_Scholar_0103 = CreateTrigger( )
call DisableTrigger( gg_trg_Scholar_0103 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Scholar_0103, Player(0), EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Scholar_0103, Condition( function Trig_Scholar_0103_Conditions ) )
call TriggerAddAction( gg_trg_Scholar_0103, function Trig_Scholar_0103_Actions )
endfunction
function Trig_Scholar_0203_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'tst2' ) ) then
return false
endif
return true
endfunction
function Trig_Scholar_0203_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 38, Player(1), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( "TRIGSTR_200", udg_Hero2, 0, 10, 100, 100, 0.00, 10.00 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 1.00 )
endfunction
//===========================================================================
function InitTrig_Scholar_0203 takes nothing returns nothing
set gg_trg_Scholar_0203 = CreateTrigger( )
call DisableTrigger( gg_trg_Scholar_0203 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Scholar_0203, Player(1), EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Scholar_0203, Condition( function Trig_Scholar_0203_Conditions ) )
call TriggerAddAction( gg_trg_Scholar_0203, function Trig_Scholar_0203_Actions )
endfunction
function Trig_Scholar_0303_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'tst2' ) ) then
return false
endif
return true
endfunction
function Trig_Scholar_0303_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 38, Player(2), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( "TRIGSTR_201", udg_Hero3, 0, 10, 100, 100, 0.00, 10.00 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 1.00 )
endfunction
//===========================================================================
function InitTrig_Scholar_0303 takes nothing returns nothing
set gg_trg_Scholar_0303 = CreateTrigger( )
call DisableTrigger( gg_trg_Scholar_0303 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Scholar_0303, Player(2), EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Scholar_0303, Condition( function Trig_Scholar_0303_Conditions ) )
call TriggerAddAction( gg_trg_Scholar_0303, function Trig_Scholar_0303_Actions )
endfunction
function Trig_Scholar_0403_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'tst2' ) ) then
return false
endif
return true
endfunction
function Trig_Scholar_0403_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 38, Player(3), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( "TRIGSTR_202", udg_Hero4, 0, 10, 100, 100, 0.00, 10.00 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 1.00 )
endfunction
//===========================================================================
function InitTrig_Scholar_0403 takes nothing returns nothing
set gg_trg_Scholar_0403 = CreateTrigger( )
call DisableTrigger( gg_trg_Scholar_0403 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Scholar_0403, Player(3), EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Scholar_0403, Condition( function Trig_Scholar_0403_Conditions ) )
call TriggerAddAction( gg_trg_Scholar_0403, function Trig_Scholar_0403_Actions )
endfunction
function Trig_Scholar_0104_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I003' ) ) then
return false
endif
return true
endfunction
function Trig_Scholar_0104_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 150, Player(0), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( "TRIGSTR_189", udg_Hero1, 0, 10, 100, 100, 0.00, 10.00 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 1.00 )
endfunction
//===========================================================================
function InitTrig_Scholar_0104 takes nothing returns nothing
set gg_trg_Scholar_0104 = CreateTrigger( )
call DisableTrigger( gg_trg_Scholar_0104 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Scholar_0104, Player(0), EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Scholar_0104, Condition( function Trig_Scholar_0104_Conditions ) )
call TriggerAddAction( gg_trg_Scholar_0104, function Trig_Scholar_0104_Actions )
endfunction
function Trig_Scholar_0204_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I003' ) ) then
return false
endif
return true
endfunction
function Trig_Scholar_0204_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 150, Player(1), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( "TRIGSTR_203", udg_Hero2, 0, 10, 100, 100, 0.00, 10.00 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 1.00 )
endfunction
//===========================================================================
function InitTrig_Scholar_0204 takes nothing returns nothing
set gg_trg_Scholar_0204 = CreateTrigger( )
call DisableTrigger( gg_trg_Scholar_0204 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Scholar_0204, Player(1), EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Scholar_0204, Condition( function Trig_Scholar_0204_Conditions ) )
call TriggerAddAction( gg_trg_Scholar_0204, function Trig_Scholar_0204_Actions )
endfunction
function Trig_Scholar_0304_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I003' ) ) then
return false
endif
return true
endfunction
function Trig_Scholar_0304_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 150, Player(2), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( "TRIGSTR_204", udg_Hero3, 0, 10, 100, 100, 0.00, 10.00 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 1.00 )
endfunction
//===========================================================================
function InitTrig_Scholar_0304 takes nothing returns nothing
set gg_trg_Scholar_0304 = CreateTrigger( )
call DisableTrigger( gg_trg_Scholar_0304 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Scholar_0304, Player(2), EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Scholar_0304, Condition( function Trig_Scholar_0304_Conditions ) )
call TriggerAddAction( gg_trg_Scholar_0304, function Trig_Scholar_0304_Actions )
endfunction
function Trig_Scholar_0404_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I003' ) ) then
return false
endif
return true
endfunction
function Trig_Scholar_0404_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 150, Player(3), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( "TRIGSTR_205", udg_Hero4, 0, 10, 100, 100, 0.00, 10.00 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 1.00 )
endfunction
//===========================================================================
function InitTrig_Scholar_0404 takes nothing returns nothing
set gg_trg_Scholar_0404 = CreateTrigger( )
call DisableTrigger( gg_trg_Scholar_0404 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Scholar_0404, Player(3), EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Scholar_0404, Condition( function Trig_Scholar_0404_Conditions ) )
call TriggerAddAction( gg_trg_Scholar_0404, function Trig_Scholar_0404_Actions )
endfunction
function Trig_Scholar_0105_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I005' ) ) then
return false
endif
return true
endfunction
function Trig_Scholar_0105_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 150, Player(0), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( "TRIGSTR_190", udg_Hero1, 0, 10, 100, 100, 0.00, 10.00 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 1.00 )
endfunction
//===========================================================================
function InitTrig_Scholar_0105 takes nothing returns nothing
set gg_trg_Scholar_0105 = CreateTrigger( )
call DisableTrigger( gg_trg_Scholar_0105 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Scholar_0105, Player(0), EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Scholar_0105, Condition( function Trig_Scholar_0105_Conditions ) )
call TriggerAddAction( gg_trg_Scholar_0105, function Trig_Scholar_0105_Actions )
endfunction
function Trig_Scholar_0205_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I005' ) ) then
return false
endif
return true
endfunction
function Trig_Scholar_0205_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 150, Player(1), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( "TRIGSTR_206", udg_Hero2, 0, 10, 100, 100, 0.00, 10.00 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 1.00 )
endfunction
//===========================================================================
function InitTrig_Scholar_0205 takes nothing returns nothing
set gg_trg_Scholar_0205 = CreateTrigger( )
call DisableTrigger( gg_trg_Scholar_0205 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Scholar_0205, Player(1), EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Scholar_0205, Condition( function Trig_Scholar_0205_Conditions ) )
call TriggerAddAction( gg_trg_Scholar_0205, function Trig_Scholar_0205_Actions )
endfunction
function Trig_Scholar_0305_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I005' ) ) then
return false
endif
return true
endfunction
function Trig_Scholar_0305_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 150, Player(2), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( "TRIGSTR_207", udg_Hero3, 0, 10, 100, 100, 0.00, 10.00 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 1.00 )
endfunction
//===========================================================================
function InitTrig_Scholar_0305 takes nothing returns nothing
set gg_trg_Scholar_0305 = CreateTrigger( )
call DisableTrigger( gg_trg_Scholar_0305 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Scholar_0305, Player(2), EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Scholar_0305, Condition( function Trig_Scholar_0305_Conditions ) )
call TriggerAddAction( gg_trg_Scholar_0305, function Trig_Scholar_0305_Actions )
endfunction
function Trig_Scholar_0405_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I005' ) ) then
return false
endif
return true
endfunction
function Trig_Scholar_0405_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 150, Player(3), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( "TRIGSTR_208", udg_Hero4, 0, 10, 100, 100, 0.00, 10.00 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 1.00 )
endfunction
//===========================================================================
function InitTrig_Scholar_0405 takes nothing returns nothing
set gg_trg_Scholar_0405 = CreateTrigger( )
call DisableTrigger( gg_trg_Scholar_0405 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Scholar_0405, Player(3), EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Scholar_0405, Condition( function Trig_Scholar_0405_Conditions ) )
call TriggerAddAction( gg_trg_Scholar_0405, function Trig_Scholar_0405_Actions )
endfunction
function Trig_Scholar_0106_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I004' ) ) then
return false
endif
return true
endfunction
function Trig_Scholar_0106_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 150, Player(0), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( "TRIGSTR_191", udg_Hero1, 0, 10, 100, 100, 0.00, 10.00 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 1.00 )
endfunction
//===========================================================================
function InitTrig_Scholar_0106 takes nothing returns nothing
set gg_trg_Scholar_0106 = CreateTrigger( )
call DisableTrigger( gg_trg_Scholar_0106 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Scholar_0106, Player(0), EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Scholar_0106, Condition( function Trig_Scholar_0106_Conditions ) )
call TriggerAddAction( gg_trg_Scholar_0106, function Trig_Scholar_0106_Actions )
endfunction
function Trig_Scholar_0206_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I004' ) ) then
return false
endif
return true
endfunction
function Trig_Scholar_0206_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 150, Player(1), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( "TRIGSTR_209", udg_Hero2, 0, 10, 100, 100, 0.00, 10.00 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 1.00 )
endfunction
//===========================================================================
function InitTrig_Scholar_0206 takes nothing returns nothing
set gg_trg_Scholar_0206 = CreateTrigger( )
call DisableTrigger( gg_trg_Scholar_0206 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Scholar_0206, Player(1), EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Scholar_0206, Condition( function Trig_Scholar_0206_Conditions ) )
call TriggerAddAction( gg_trg_Scholar_0206, function Trig_Scholar_0206_Actions )
endfunction
function Trig_Scholar_0306_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I004' ) ) then
return false
endif
return true
endfunction
function Trig_Scholar_0306_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 150, Player(2), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( "TRIGSTR_210", udg_Hero3, 0, 10, 100, 100, 0.00, 10.00 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 1.00 )
endfunction
//===========================================================================
function InitTrig_Scholar_0306 takes nothing returns nothing
set gg_trg_Scholar_0306 = CreateTrigger( )
call DisableTrigger( gg_trg_Scholar_0306 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Scholar_0306, Player(2), EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Scholar_0306, Condition( function Trig_Scholar_0306_Conditions ) )
call TriggerAddAction( gg_trg_Scholar_0306, function Trig_Scholar_0306_Actions )
endfunction
function Trig_Scholar_0406_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I004' ) ) then
return false
endif
return true
endfunction
function Trig_Scholar_0406_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 150, Player(3), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( "TRIGSTR_211", udg_Hero4, 0, 10, 100, 100, 0.00, 10.00 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 1.00 )
endfunction
//===========================================================================
function InitTrig_Scholar_0406 takes nothing returns nothing
set gg_trg_Scholar_0406 = CreateTrigger( )
call DisableTrigger( gg_trg_Scholar_0406 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Scholar_0406, Player(3), EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Scholar_0406, Condition( function Trig_Scholar_0406_Conditions ) )
call TriggerAddAction( gg_trg_Scholar_0406, function Trig_Scholar_0406_Actions )
endfunction
function Trig_Scholar_0107_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I001' ) ) then
return false
endif
return true
endfunction
function Trig_Scholar_0107_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 55, Player(0), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( "TRIGSTR_192", udg_Hero1, 0, 10, 100, 100, 0.00, 10.00 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 1.00 )
endfunction
//===========================================================================
function InitTrig_Scholar_0107 takes nothing returns nothing
set gg_trg_Scholar_0107 = CreateTrigger( )
call DisableTrigger( gg_trg_Scholar_0107 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Scholar_0107, Player(0), EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Scholar_0107, Condition( function Trig_Scholar_0107_Conditions ) )
call TriggerAddAction( gg_trg_Scholar_0107, function Trig_Scholar_0107_Actions )
endfunction
function Trig_Scholar_0207_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I001' ) ) then
return false
endif
return true
endfunction
function Trig_Scholar_0207_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 55, Player(1), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( "TRIGSTR_212", udg_Hero2, 0, 10, 100, 100, 0.00, 10.00 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 1.00 )
endfunction
//===========================================================================
function InitTrig_Scholar_0207 takes nothing returns nothing
set gg_trg_Scholar_0207 = CreateTrigger( )
call DisableTrigger( gg_trg_Scholar_0207 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Scholar_0207, Player(1), EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Scholar_0207, Condition( function Trig_Scholar_0207_Conditions ) )
call TriggerAddAction( gg_trg_Scholar_0207, function Trig_Scholar_0207_Actions )
endfunction
function Trig_Scholar_0307_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I001' ) ) then
return false
endif
return true
endfunction
function Trig_Scholar_0307_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 55, Player(2), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( "TRIGSTR_213", udg_Hero3, 0, 10, 100, 100, 0.00, 10.00 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 1.00 )
endfunction
//===========================================================================
function InitTrig_Scholar_0307 takes nothing returns nothing
set gg_trg_Scholar_0307 = CreateTrigger( )
call DisableTrigger( gg_trg_Scholar_0307 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Scholar_0307, Player(2), EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Scholar_0307, Condition( function Trig_Scholar_0307_Conditions ) )
call TriggerAddAction( gg_trg_Scholar_0307, function Trig_Scholar_0307_Actions )
endfunction
function Trig_Scholar_0407_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I001' ) ) then
return false
endif
return true
endfunction
function Trig_Scholar_0407_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 55, Player(3), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( "TRIGSTR_214", udg_Hero4, 0, 10, 100, 100, 0.00, 10.00 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 1.00 )
endfunction
//===========================================================================
function InitTrig_Scholar_0407 takes nothing returns nothing
set gg_trg_Scholar_0407 = CreateTrigger( )
call DisableTrigger( gg_trg_Scholar_0407 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Scholar_0407, Player(3), EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Scholar_0407, Condition( function Trig_Scholar_0407_Conditions ) )
call TriggerAddAction( gg_trg_Scholar_0407, function Trig_Scholar_0407_Actions )
endfunction
function Trig_Scholar_0108_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I002' ) ) then
return false
endif
return true
endfunction
function Trig_Scholar_0108_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 110, Player(0), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( "TRIGSTR_193", udg_Hero1, 0, 10, 100, 100, 0.00, 10.00 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 1.00 )
endfunction
//===========================================================================
function InitTrig_Scholar_0108 takes nothing returns nothing
set gg_trg_Scholar_0108 = CreateTrigger( )
call DisableTrigger( gg_trg_Scholar_0108 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Scholar_0108, Player(0), EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Scholar_0108, Condition( function Trig_Scholar_0108_Conditions ) )
call TriggerAddAction( gg_trg_Scholar_0108, function Trig_Scholar_0108_Actions )
endfunction
function Trig_Scholar_0208_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I002' ) ) then
return false
endif
return true
endfunction
function Trig_Scholar_0208_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 110, Player(1), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( "TRIGSTR_215", udg_Hero2, 0, 10, 100, 100, 0.00, 10.00 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 1.00 )
endfunction
//===========================================================================
function InitTrig_Scholar_0208 takes nothing returns nothing
set gg_trg_Scholar_0208 = CreateTrigger( )
call DisableTrigger( gg_trg_Scholar_0208 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Scholar_0208, Player(1), EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Scholar_0208, Condition( function Trig_Scholar_0208_Conditions ) )
call TriggerAddAction( gg_trg_Scholar_0208, function Trig_Scholar_0208_Actions )
endfunction
function Trig_Scholar_0308_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I002' ) ) then
return false
endif
return true
endfunction
function Trig_Scholar_0308_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 110, Player(2), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( "TRIGSTR_216", udg_Hero3, 0, 10, 100, 100, 0.00, 10.00 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 1.00 )
endfunction
//===========================================================================
function InitTrig_Scholar_0308 takes nothing returns nothing
set gg_trg_Scholar_0308 = CreateTrigger( )
call DisableTrigger( gg_trg_Scholar_0308 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Scholar_0308, Player(2), EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Scholar_0308, Condition( function Trig_Scholar_0308_Conditions ) )
call TriggerAddAction( gg_trg_Scholar_0308, function Trig_Scholar_0308_Actions )
endfunction
function Trig_Scholar_0408_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I002' ) ) then
return false
endif
return true
endfunction
function Trig_Scholar_0408_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 110, Player(3), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( "TRIGSTR_217", udg_Hero4, 0, 10, 100, 100, 0.00, 10.00 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 1.00 )
endfunction
//===========================================================================
function InitTrig_Scholar_0408 takes nothing returns nothing
set gg_trg_Scholar_0408 = CreateTrigger( )
call DisableTrigger( gg_trg_Scholar_0408 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Scholar_0408, Player(3), EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Scholar_0408, Condition( function Trig_Scholar_0408_Conditions ) )
call TriggerAddAction( gg_trg_Scholar_0408, function Trig_Scholar_0408_Actions )
endfunction
function Trig_Investor_01_Actions takes nothing returns nothing
set udg_investmentgold = GetRandomInt(100, 500)
call AdjustPlayerStateBJ( udg_investmentgold, Player(0), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( ( "+" + I2S(udg_investmentgold) ), udg_Hero1, 0, 10, 100, 100, 0.00, 20.00 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 1.00 )
endfunction
//===========================================================================
function InitTrig_Investor_01 takes nothing returns nothing
set gg_trg_Investor_01 = CreateTrigger( )
call DisableTrigger( gg_trg_Investor_01 )
call TriggerRegisterTimerEventPeriodic( gg_trg_Investor_01, GetRandomReal(45.00, 120.00) )
call TriggerAddAction( gg_trg_Investor_01, function Trig_Investor_01_Actions )
endfunction
function Trig_Investor_02_Actions takes nothing returns nothing
set udg_investmentgold = GetRandomInt(100, 500)
call AdjustPlayerStateBJ( udg_investmentgold, Player(1), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( ( "+" + I2S(udg_investmentgold) ), udg_Hero2, 0, 10, 100, 100, 0.00, 20.00 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 1.00 )
endfunction
//===========================================================================
function InitTrig_Investor_02 takes nothing returns nothing
set gg_trg_Investor_02 = CreateTrigger( )
call DisableTrigger( gg_trg_Investor_02 )
call TriggerRegisterTimerEventPeriodic( gg_trg_Investor_02, GetRandomReal(45.00, 120.00) )
call TriggerAddAction( gg_trg_Investor_02, function Trig_Investor_02_Actions )
endfunction
function Trig_Investor_03_Actions takes nothing returns nothing
set udg_investmentgold = GetRandomInt(100, 500)
call AdjustPlayerStateBJ( udg_investmentgold, Player(2), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( ( "+" + I2S(udg_investmentgold) ), udg_Hero3, 0, 10, 100, 100, 0.00, 20.00 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 1.00 )
endfunction
//===========================================================================
function InitTrig_Investor_03 takes nothing returns nothing
set gg_trg_Investor_03 = CreateTrigger( )
call DisableTrigger( gg_trg_Investor_03 )
call TriggerRegisterTimerEventPeriodic( gg_trg_Investor_03, GetRandomReal(45.00, 120.00) )
call TriggerAddAction( gg_trg_Investor_03, function Trig_Investor_03_Actions )
endfunction
function Trig_Investor_04_Actions takes nothing returns nothing
set udg_investmentgold = GetRandomInt(100, 500)
call AdjustPlayerStateBJ( udg_investmentgold, Player(3), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( ( "+" + I2S(udg_investmentgold) ), udg_Hero4, 0, 10, 100, 100, 0.00, 20.00 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 1.00 )
endfunction
//===========================================================================
function InitTrig_Investor_04 takes nothing returns nothing
set gg_trg_Investor_04 = CreateTrigger( )
call DisableTrigger( gg_trg_Investor_04 )
call TriggerRegisterTimerEventPeriodic( gg_trg_Investor_04, GetRandomReal(45.00, 120.00) )
call TriggerAddAction( gg_trg_Investor_04, function Trig_Investor_04_Actions )
endfunction
function Trig_Attorney_01_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetKillingUnitBJ()) == Player(0) ) ) then
return false
endif
return true
endfunction
function Trig_Attorney_01_Actions takes nothing returns nothing
set udg_attorneygold = GetRandomInt(10, 30)
call AdjustPlayerStateBJ( udg_attorneygold, Player(0), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( ( "+" + I2S(udg_attorneygold) ), udg_Hero1, 0, 10, 100, 100, 0.00, 20.00 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 0.75 )
endfunction
//===========================================================================
function InitTrig_Attorney_01 takes nothing returns nothing
set gg_trg_Attorney_01 = CreateTrigger( )
call DisableTrigger( gg_trg_Attorney_01 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Attorney_01, Player(11), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Attorney_01, Condition( function Trig_Attorney_01_Conditions ) )
call TriggerAddAction( gg_trg_Attorney_01, function Trig_Attorney_01_Actions )
endfunction
function Trig_Attorney_02_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetKillingUnitBJ()) == Player(1) ) ) then
return false
endif
return true
endfunction
function Trig_Attorney_02_Actions takes nothing returns nothing
set udg_attorneygold = GetRandomInt(10, 30)
call AdjustPlayerStateBJ( udg_attorneygold, Player(1), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( ( "+" + I2S(udg_attorneygold) ), udg_Hero2, 0, 10, 100, 100, 0.00, 20.00 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 0.75 )
endfunction
//===========================================================================
function InitTrig_Attorney_02 takes nothing returns nothing
set gg_trg_Attorney_02 = CreateTrigger( )
call DisableTrigger( gg_trg_Attorney_02 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Attorney_02, Player(11), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Attorney_02, Condition( function Trig_Attorney_02_Conditions ) )
call TriggerAddAction( gg_trg_Attorney_02, function Trig_Attorney_02_Actions )
endfunction
function Trig_Attorney_03_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetKillingUnitBJ()) == Player(2) ) ) then
return false
endif
return true
endfunction
function Trig_Attorney_03_Actions takes nothing returns nothing
set udg_attorneygold = GetRandomInt(10, 30)
call AdjustPlayerStateBJ( udg_attorneygold, Player(2), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( ( "+" + I2S(udg_attorneygold) ), udg_Hero3, 0, 10, 100, 100, 0.00, 20.00 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 0.75 )
endfunction
//===========================================================================
function InitTrig_Attorney_03 takes nothing returns nothing
set gg_trg_Attorney_03 = CreateTrigger( )
call DisableTrigger( gg_trg_Attorney_03 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Attorney_03, Player(11), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Attorney_03, Condition( function Trig_Attorney_03_Conditions ) )
call TriggerAddAction( gg_trg_Attorney_03, function Trig_Attorney_03_Actions )
endfunction
function Trig_Attorney_04_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetKillingUnitBJ()) == Player(3) ) ) then
return false
endif
return true
endfunction
function Trig_Attorney_04_Actions takes nothing returns nothing
set udg_attorneygold = GetRandomInt(10, 30)
call AdjustPlayerStateBJ( udg_attorneygold, Player(3), PLAYER_STATE_RESOURCE_GOLD )
call CreateTextTagUnitBJ( ( "+" + I2S(udg_attorneygold) ), udg_Hero4, 0, 10, 100, 100, 0.00, 20.00 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 0.75 )
endfunction
//===========================================================================
function InitTrig_Attorney_04 takes nothing returns nothing
set gg_trg_Attorney_04 = CreateTrigger( )
call DisableTrigger( gg_trg_Attorney_04 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Attorney_04, Player(11), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Attorney_04, Condition( function Trig_Attorney_04_Conditions ) )
call TriggerAddAction( gg_trg_Attorney_04, function Trig_Attorney_04_Actions )
endfunction
function Trig_Player_1_Func001001 takes nothing returns boolean
return ( GetItemTypeId(UnitItemInSlotBJ(GetDyingUnit(), 1)) == 'I000' )
endfunction
function Trig_Player_1_Func002001 takes nothing returns boolean
return ( GetItemTypeId(UnitItemInSlotBJ(GetDyingUnit(), 2)) == 'I000' )
endfunction
function Trig_Player_1_Func003001 takes nothing returns boolean
return ( GetItemTypeId(UnitItemInSlotBJ(GetDyingUnit(), 3)) == 'I000' )
endfunction
function Trig_Player_1_Func004001 takes nothing returns boolean
return ( GetItemTypeId(UnitItemInSlotBJ(GetDyingUnit(), 4)) == 'I000' )
endfunction
function Trig_Player_1_Func005001 takes nothing returns boolean
return ( GetItemTypeId(UnitItemInSlotBJ(GetDyingUnit(), 5)) == 'I000' )
endfunction
function Trig_Player_1_Func006001 takes nothing returns boolean
return ( GetItemTypeId(UnitItemInSlotBJ(GetDyingUnit(), 6)) == 'I000' )
endfunction
function Trig_Player_1_Actions takes nothing returns nothing
if ( Trig_Player_1_Func001001() ) then
call UnitRemoveItemFromSlotSwapped( 1, GetDyingUnit() )
else
call DoNothing( )
endif
if ( Trig_Player_1_Func002001() ) then
call UnitRemoveItemFromSlotSwapped( 2, GetDyingUnit() )
else
call DoNothing( )
endif
if ( Trig_Player_1_Func003001() ) then
call UnitRemoveItemFromSlotSwapped( 3, GetDyingUnit() )
else
call DoNothing( )
endif
if ( Trig_Player_1_Func004001() ) then
call UnitRemoveItemFromSlotSwapped( 4, GetDyingUnit() )
else
call DoNothing( )
endif
if ( Trig_Player_1_Func005001() ) then
call UnitRemoveItemFromSlotSwapped( 5, GetDyingUnit() )
else
call DoNothing( )
endif
if ( Trig_Player_1_Func006001() ) then
call UnitRemoveItemFromSlotSwapped( 6, GetDyingUnit() )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Drop_Keys takes nothing returns nothing
set gg_trg_Drop_Keys = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Drop_Keys, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddAction( gg_trg_Drop_Keys, function Trig_Player_1_Actions )
endfunction
function Trig_Reset_Easy_Func008001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Reset_Easy_Func008002 takes nothing returns nothing
set udg_ColorWheel[1] = GetEnumUnit()
endfunction
function Trig_Reset_Easy_Func009001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Reset_Easy_Func009002 takes nothing returns nothing
set udg_ColorWheel[3] = GetEnumUnit()
endfunction
function Trig_Reset_Easy_Func010001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Reset_Easy_Func010002 takes nothing returns nothing
set udg_ColorWheel[5] = GetEnumUnit()
endfunction
function Trig_Reset_Easy_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Rect_453_Copy_6), "Abilities\\Spells\\Orc\\EarthQuake\\EarthQuakeTarget.mdl" )
set udg_EQ = GetLastCreatedEffectBJ()
call TriggerSleepAction( 0.50 )
call SetUnitPositionLoc( udg_CWRed, GetRectCenter(gg_rct_Rect_453_Copy_4) )
call SetUnitPositionLoc( udg_CWYellow, GetRectCenter(gg_rct_Rect_453) )
call SetUnitPositionLoc( udg_CWBlue, GetRectCenter(gg_rct_Rect_453_Copy_2) )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453, Condition(function Trig_Reset_Easy_Func008001002)), function Trig_Reset_Easy_Func008002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_2, Condition(function Trig_Reset_Easy_Func009001002)), function Trig_Reset_Easy_Func009002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_4, Condition(function Trig_Reset_Easy_Func010001002)), function Trig_Reset_Easy_Func010002 )
call TriggerExecute( gg_trg_Special_Effect_Easy_1 )
call TriggerExecute( gg_trg_Special_Effect_Easy_2 )
call TriggerExecute( gg_trg_Special_Effect_Easy_3 )
call TriggerSleepAction( 0.50 )
call DestroyEffectBJ( udg_EQ )
call TriggerSleepAction( 10.00 )
call EnableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Reset_1_Easy takes nothing returns nothing
set gg_trg_Reset_1_Easy = CreateTrigger( )
call DisableTrigger( gg_trg_Reset_1_Easy )
call TriggerRegisterUnitEvent( gg_trg_Reset_1_Easy, gg_unit_h01K_0432, EVENT_UNIT_ATTACKED )
call TriggerAddAction( gg_trg_Reset_1_Easy, function Trig_Reset_Easy_Actions )
endfunction
function Trig_Reset_Hard_Func011001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Reset_Hard_Func011002 takes nothing returns nothing
set udg_ColorWheel[1] = GetEnumUnit()
endfunction
function Trig_Reset_Hard_Func012001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Reset_Hard_Func012002 takes nothing returns nothing
set udg_ColorWheel[2] = GetEnumUnit()
endfunction
function Trig_Reset_Hard_Func013001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Reset_Hard_Func013002 takes nothing returns nothing
set udg_ColorWheel[3] = GetEnumUnit()
endfunction
function Trig_Reset_Hard_Func014001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Reset_Hard_Func014002 takes nothing returns nothing
set udg_ColorWheel[4] = GetEnumUnit()
endfunction
function Trig_Reset_Hard_Func015001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Reset_Hard_Func015002 takes nothing returns nothing
set udg_ColorWheel[5] = GetEnumUnit()
endfunction
function Trig_Reset_Hard_Func016001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Reset_Hard_Func016002 takes nothing returns nothing
set udg_ColorWheel[6] = GetEnumUnit()
endfunction
function Trig_Reset_Hard_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Rect_453_Copy_6), "Abilities\\Spells\\Orc\\EarthQuake\\EarthQuakeTarget.mdl" )
set udg_EQ = GetLastCreatedEffectBJ()
call TriggerSleepAction( 0.50 )
call SetUnitPositionLoc( udg_CWRed, GetRectCenter(gg_rct_Rect_453) )
call SetUnitPositionLoc( udg_CWOrange, GetRectCenter(gg_rct_Rect_453_Copy_5) )
call SetUnitPositionLoc( udg_CWYellow, GetRectCenter(gg_rct_Rect_453_Copy_2) )
call SetUnitPositionLoc( udg_CWGreen, GetRectCenter(gg_rct_Rect_453_Copy) )
call SetUnitPositionLoc( udg_CWBlue, GetRectCenter(gg_rct_Rect_453_Copy_4) )
call SetUnitPositionLoc( udg_CWPurple, GetRectCenter(gg_rct_Rect_453_Copy_3) )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453, Condition(function Trig_Reset_Hard_Func011001002)), function Trig_Reset_Hard_Func011002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy, Condition(function Trig_Reset_Hard_Func012001002)), function Trig_Reset_Hard_Func012002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_2, Condition(function Trig_Reset_Hard_Func013001002)), function Trig_Reset_Hard_Func013002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_3, Condition(function Trig_Reset_Hard_Func014001002)), function Trig_Reset_Hard_Func014002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_4, Condition(function Trig_Reset_Hard_Func015001002)), function Trig_Reset_Hard_Func015002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_5, Condition(function Trig_Reset_Hard_Func016001002)), function Trig_Reset_Hard_Func016002 )
call TriggerExecute( gg_trg_Special_Effect_Easy_1 )
call TriggerExecute( gg_trg_Special_Effect_Easy_2 )
call TriggerExecute( gg_trg_Special_Effect_Easy_3 )
call TriggerExecute( gg_trg_Special_Effect_Hard_1 )
call TriggerExecute( gg_trg_Special_Effect_Hard_2 )
call TriggerExecute( gg_trg_Special_Effect_Hard_3 )
call TriggerSleepAction( 0.50 )
call DestroyEffectBJ( udg_EQ )
call TriggerSleepAction( 10.00 )
call EnableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Reset_1_Hard takes nothing returns nothing
set gg_trg_Reset_1_Hard = CreateTrigger( )
call DisableTrigger( gg_trg_Reset_1_Hard )
call TriggerRegisterUnitEvent( gg_trg_Reset_1_Hard, gg_unit_h01K_0432, EVENT_UNIT_ATTACKED )
call TriggerAddAction( gg_trg_Reset_1_Hard, function Trig_Reset_Hard_Actions )
endfunction
function Trig_Reset_Very_Hard_Func011001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Reset_Very_Hard_Func011002 takes nothing returns nothing
set udg_ColorWheel[1] = GetEnumUnit()
endfunction
function Trig_Reset_Very_Hard_Func012001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Reset_Very_Hard_Func012002 takes nothing returns nothing
set udg_ColorWheel[2] = GetEnumUnit()
endfunction
function Trig_Reset_Very_Hard_Func013001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Reset_Very_Hard_Func013002 takes nothing returns nothing
set udg_ColorWheel[3] = GetEnumUnit()
endfunction
function Trig_Reset_Very_Hard_Func014001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Reset_Very_Hard_Func014002 takes nothing returns nothing
set udg_ColorWheel[4] = GetEnumUnit()
endfunction
function Trig_Reset_Very_Hard_Func015001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Reset_Very_Hard_Func015002 takes nothing returns nothing
set udg_ColorWheel[5] = GetEnumUnit()
endfunction
function Trig_Reset_Very_Hard_Func016001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Reset_Very_Hard_Func016002 takes nothing returns nothing
set udg_ColorWheel[6] = GetEnumUnit()
endfunction
function Trig_Reset_Very_Hard_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Rect_453_Copy_6), "Abilities\\Spells\\Orc\\EarthQuake\\EarthQuakeTarget.mdl" )
set udg_EQ = GetLastCreatedEffectBJ()
call TriggerSleepAction( 0.50 )
call SetUnitPositionLoc( udg_CWRed, GetRectCenter(gg_rct_Rect_453_Copy_2) )
call SetUnitPositionLoc( udg_CWOrange, GetRectCenter(gg_rct_Rect_453_Copy_4) )
call SetUnitPositionLoc( udg_CWYellow, GetRectCenter(gg_rct_Rect_453) )
call SetUnitPositionLoc( udg_CWGreen, GetRectCenter(gg_rct_Rect_453_Copy_5) )
call SetUnitPositionLoc( udg_CWBlue, GetRectCenter(gg_rct_Rect_453_Copy_3) )
call SetUnitPositionLoc( udg_CWPurple, GetRectCenter(gg_rct_Rect_453_Copy) )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453, Condition(function Trig_Reset_Very_Hard_Func011001002)), function Trig_Reset_Very_Hard_Func011002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy, Condition(function Trig_Reset_Very_Hard_Func012001002)), function Trig_Reset_Very_Hard_Func012002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_2, Condition(function Trig_Reset_Very_Hard_Func013001002)), function Trig_Reset_Very_Hard_Func013002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_3, Condition(function Trig_Reset_Very_Hard_Func014001002)), function Trig_Reset_Very_Hard_Func014002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_4, Condition(function Trig_Reset_Very_Hard_Func015001002)), function Trig_Reset_Very_Hard_Func015002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_5, Condition(function Trig_Reset_Very_Hard_Func016001002)), function Trig_Reset_Very_Hard_Func016002 )
call TriggerExecute( gg_trg_Special_Effect_Easy_1 )
call TriggerExecute( gg_trg_Special_Effect_Easy_2 )
call TriggerExecute( gg_trg_Special_Effect_Easy_3 )
call TriggerExecute( gg_trg_Special_Effect_Hard_1 )
call TriggerExecute( gg_trg_Special_Effect_Hard_2 )
call TriggerExecute( gg_trg_Special_Effect_Hard_3 )
call TriggerSleepAction( 0.50 )
call DestroyEffectBJ( udg_EQ )
call TriggerSleepAction( 10.00 )
call EnableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Reset_1_Very_Hard takes nothing returns nothing
set gg_trg_Reset_1_Very_Hard = CreateTrigger( )
call DisableTrigger( gg_trg_Reset_1_Very_Hard )
call TriggerRegisterUnitEvent( gg_trg_Reset_1_Very_Hard, gg_unit_h01K_0432, EVENT_UNIT_ATTACKED )
call TriggerAddAction( gg_trg_Reset_1_Very_Hard, function Trig_Reset_Very_Hard_Actions )
endfunction
function Trig_Move_Piece0101_Easy_Conditions takes nothing returns boolean
if ( not ( GetUnitFacing(GetAttacker()) > 270.00 ) ) then
return false
endif
if ( not ( GetUnitFacing(GetAttacker()) <= 359.00 ) ) then
return false
endif
return true
endfunction
function Trig_Move_Piece0101_Easy_Func010001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0101_Easy_Func010002 takes nothing returns nothing
set udg_ColorWheel[1] = GetEnumUnit()
endfunction
function Trig_Move_Piece0101_Easy_Func011001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0101_Easy_Func011002 takes nothing returns nothing
set udg_ColorWheel[3] = GetEnumUnit()
endfunction
function Trig_Move_Piece0101_Easy_Func012001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0101_Easy_Func012002 takes nothing returns nothing
set udg_ColorWheel[5] = GetEnumUnit()
endfunction
function Trig_Move_Piece0101_Easy_Func017001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0101_Easy_Func017002 takes nothing returns nothing
set udg_ColorWheel[1] = GetEnumUnit()
endfunction
function Trig_Move_Piece0101_Easy_Func018001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0101_Easy_Func018002 takes nothing returns nothing
set udg_ColorWheel[3] = GetEnumUnit()
endfunction
function Trig_Move_Piece0101_Easy_Func019001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0101_Easy_Func019002 takes nothing returns nothing
set udg_ColorWheel[5] = GetEnumUnit()
endfunction
function Trig_Move_Piece0101_Easy_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Move_Piece0101_Easy )
call DisableTrigger( gg_trg_Move_Piece0102_Easy )
call DisableTrigger( gg_trg_Move_Piece0103_Easy )
call DisableTrigger( gg_trg_Move_Piece0104_Easy )
call DisableTrigger( gg_trg_Move_Piece0105_Easy )
call DisableTrigger( gg_trg_Move_Piece0106_Easy )
call IssuePointOrderLocBJ( udg_ColorWheel[1], "move", GetRectCenter(gg_rct_Rect_453_Copy_2) )
call IssuePointOrderLocBJ( udg_ColorWheel[3], "move", GetRectCenter(gg_rct_Rect_453) )
call TriggerSleepAction( 1.50 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453, Condition(function Trig_Move_Piece0101_Easy_Func010001002)), function Trig_Move_Piece0101_Easy_Func010002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_2, Condition(function Trig_Move_Piece0101_Easy_Func011001002)), function Trig_Move_Piece0101_Easy_Func011002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_4, Condition(function Trig_Move_Piece0101_Easy_Func012001002)), function Trig_Move_Piece0101_Easy_Func012002 )
call IssuePointOrderLocBJ( udg_ColorWheel[1], "move", GetRectCenter(gg_rct_Rect_453_Copy_4) )
call IssuePointOrderLocBJ( udg_ColorWheel[3], "move", GetRectCenter(gg_rct_Rect_453) )
call IssuePointOrderLocBJ( udg_ColorWheel[5], "move", GetRectCenter(gg_rct_Rect_453_Copy_2) )
call TriggerSleepAction( 1.50 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453, Condition(function Trig_Move_Piece0101_Easy_Func017001002)), function Trig_Move_Piece0101_Easy_Func017002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_2, Condition(function Trig_Move_Piece0101_Easy_Func018001002)), function Trig_Move_Piece0101_Easy_Func018002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_4, Condition(function Trig_Move_Piece0101_Easy_Func019001002)), function Trig_Move_Piece0101_Easy_Func019002 )
call ConditionalTriggerExecute( gg_trg_Win_Puzzle_1_Easy )
call TriggerSleepAction( 0.50 )
call EnableTrigger( gg_trg_Move_Piece0101_Easy )
call EnableTrigger( gg_trg_Move_Piece0102_Easy )
call EnableTrigger( gg_trg_Move_Piece0103_Easy )
call EnableTrigger( gg_trg_Move_Piece0104_Easy )
call EnableTrigger( gg_trg_Move_Piece0105_Easy )
call EnableTrigger( gg_trg_Move_Piece0106_Easy )
endfunction
//===========================================================================
function InitTrig_Move_Piece0101_Easy takes nothing returns nothing
set gg_trg_Move_Piece0101_Easy = CreateTrigger( )
call DisableTrigger( gg_trg_Move_Piece0101_Easy )
call TriggerRegisterUnitEvent( gg_trg_Move_Piece0101_Easy, gg_unit_h01I_0420, EVENT_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Move_Piece0101_Easy, Condition( function Trig_Move_Piece0101_Easy_Conditions ) )
call TriggerAddAction( gg_trg_Move_Piece0101_Easy, function Trig_Move_Piece0101_Easy_Actions )
endfunction
function Trig_Move_Piece0102_Easy_Conditions takes nothing returns boolean
if ( not ( GetUnitFacing(GetAttacker()) > 180.00 ) ) then
return false
endif
if ( not ( GetUnitFacing(GetAttacker()) < 270.00 ) ) then
return false
endif
return true
endfunction
function Trig_Move_Piece0102_Easy_Func010001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0102_Easy_Func010002 takes nothing returns nothing
set udg_ColorWheel[1] = GetEnumUnit()
endfunction
function Trig_Move_Piece0102_Easy_Func011001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0102_Easy_Func011002 takes nothing returns nothing
set udg_ColorWheel[3] = GetEnumUnit()
endfunction
function Trig_Move_Piece0102_Easy_Func012001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0102_Easy_Func012002 takes nothing returns nothing
set udg_ColorWheel[5] = GetEnumUnit()
endfunction
function Trig_Move_Piece0102_Easy_Func017001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0102_Easy_Func017002 takes nothing returns nothing
set udg_ColorWheel[1] = GetEnumUnit()
endfunction
function Trig_Move_Piece0102_Easy_Func018001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0102_Easy_Func018002 takes nothing returns nothing
set udg_ColorWheel[3] = GetEnumUnit()
endfunction
function Trig_Move_Piece0102_Easy_Func019001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0102_Easy_Func019002 takes nothing returns nothing
set udg_ColorWheel[5] = GetEnumUnit()
endfunction
function Trig_Move_Piece0102_Easy_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Move_Piece0101_Easy )
call DisableTrigger( gg_trg_Move_Piece0102_Easy )
call DisableTrigger( gg_trg_Move_Piece0103_Easy )
call DisableTrigger( gg_trg_Move_Piece0104_Easy )
call DisableTrigger( gg_trg_Move_Piece0105_Easy )
call DisableTrigger( gg_trg_Move_Piece0106_Easy )
call IssuePointOrderLocBJ( udg_ColorWheel[1], "move", GetRectCenter(gg_rct_Rect_453_Copy_4) )
call IssuePointOrderLocBJ( udg_ColorWheel[5], "move", GetRectCenter(gg_rct_Rect_453) )
call TriggerSleepAction( 1.50 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453, Condition(function Trig_Move_Piece0102_Easy_Func010001002)), function Trig_Move_Piece0102_Easy_Func010002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_2, Condition(function Trig_Move_Piece0102_Easy_Func011001002)), function Trig_Move_Piece0102_Easy_Func011002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_4, Condition(function Trig_Move_Piece0102_Easy_Func012001002)), function Trig_Move_Piece0102_Easy_Func012002 )
call IssuePointOrderLocBJ( udg_ColorWheel[1], "move", GetRectCenter(gg_rct_Rect_453_Copy_2) )
call IssuePointOrderLocBJ( udg_ColorWheel[3], "move", GetRectCenter(gg_rct_Rect_453_Copy_4) )
call IssuePointOrderLocBJ( udg_ColorWheel[5], "move", GetRectCenter(gg_rct_Rect_453) )
call TriggerSleepAction( 1.50 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453, Condition(function Trig_Move_Piece0102_Easy_Func017001002)), function Trig_Move_Piece0102_Easy_Func017002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_2, Condition(function Trig_Move_Piece0102_Easy_Func018001002)), function Trig_Move_Piece0102_Easy_Func018002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_4, Condition(function Trig_Move_Piece0102_Easy_Func019001002)), function Trig_Move_Piece0102_Easy_Func019002 )
call ConditionalTriggerExecute( gg_trg_Win_Puzzle_1_Easy )
call TriggerSleepAction( 0.50 )
call EnableTrigger( gg_trg_Move_Piece0101_Easy )
call EnableTrigger( gg_trg_Move_Piece0102_Easy )
call EnableTrigger( gg_trg_Move_Piece0103_Easy )
call EnableTrigger( gg_trg_Move_Piece0104_Easy )
call EnableTrigger( gg_trg_Move_Piece0105_Easy )
call EnableTrigger( gg_trg_Move_Piece0106_Easy )
endfunction
//===========================================================================
function InitTrig_Move_Piece0102_Easy takes nothing returns nothing
set gg_trg_Move_Piece0102_Easy = CreateTrigger( )
call DisableTrigger( gg_trg_Move_Piece0102_Easy )
call TriggerRegisterUnitEvent( gg_trg_Move_Piece0102_Easy, gg_unit_h01I_0420, EVENT_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Move_Piece0102_Easy, Condition( function Trig_Move_Piece0102_Easy_Conditions ) )
call TriggerAddAction( gg_trg_Move_Piece0102_Easy, function Trig_Move_Piece0102_Easy_Actions )
endfunction
function Trig_Move_Piece0103_Easy_Conditions takes nothing returns boolean
if ( not ( GetUnitFacing(GetAttacker()) > 165.00 ) ) then
return false
endif
if ( not ( GetUnitFacing(GetAttacker()) < 245.00 ) ) then
return false
endif
return true
endfunction
function Trig_Move_Piece0103_Easy_Func010001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0103_Easy_Func010002 takes nothing returns nothing
set udg_ColorWheel[1] = GetEnumUnit()
endfunction
function Trig_Move_Piece0103_Easy_Func011001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0103_Easy_Func011002 takes nothing returns nothing
set udg_ColorWheel[3] = GetEnumUnit()
endfunction
function Trig_Move_Piece0103_Easy_Func012001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0103_Easy_Func012002 takes nothing returns nothing
set udg_ColorWheel[5] = GetEnumUnit()
endfunction
function Trig_Move_Piece0103_Easy_Func017001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0103_Easy_Func017002 takes nothing returns nothing
set udg_ColorWheel[1] = GetEnumUnit()
endfunction
function Trig_Move_Piece0103_Easy_Func018001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0103_Easy_Func018002 takes nothing returns nothing
set udg_ColorWheel[3] = GetEnumUnit()
endfunction
function Trig_Move_Piece0103_Easy_Func019001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0103_Easy_Func019002 takes nothing returns nothing
set udg_ColorWheel[5] = GetEnumUnit()
endfunction
function Trig_Move_Piece0103_Easy_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Move_Piece0101_Easy )
call DisableTrigger( gg_trg_Move_Piece0102_Easy )
call DisableTrigger( gg_trg_Move_Piece0103_Easy )
call DisableTrigger( gg_trg_Move_Piece0104_Easy )
call DisableTrigger( gg_trg_Move_Piece0105_Easy )
call DisableTrigger( gg_trg_Move_Piece0106_Easy )
call IssuePointOrderLocBJ( udg_ColorWheel[3], "move", GetRectCenter(gg_rct_Rect_453_Copy_4) )
call IssuePointOrderLocBJ( udg_ColorWheel[5], "move", GetRectCenter(gg_rct_Rect_453_Copy_2) )
call TriggerSleepAction( 1.50 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453, Condition(function Trig_Move_Piece0103_Easy_Func010001002)), function Trig_Move_Piece0103_Easy_Func010002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_2, Condition(function Trig_Move_Piece0103_Easy_Func011001002)), function Trig_Move_Piece0103_Easy_Func011002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_4, Condition(function Trig_Move_Piece0103_Easy_Func012001002)), function Trig_Move_Piece0103_Easy_Func012002 )
call IssuePointOrderLocBJ( udg_ColorWheel[1], "move", GetRectCenter(gg_rct_Rect_453_Copy_4) )
call IssuePointOrderLocBJ( udg_ColorWheel[3], "move", GetRectCenter(gg_rct_Rect_453) )
call IssuePointOrderLocBJ( udg_ColorWheel[5], "move", GetRectCenter(gg_rct_Rect_453_Copy_2) )
call TriggerSleepAction( 1.50 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453, Condition(function Trig_Move_Piece0103_Easy_Func017001002)), function Trig_Move_Piece0103_Easy_Func017002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_2, Condition(function Trig_Move_Piece0103_Easy_Func018001002)), function Trig_Move_Piece0103_Easy_Func018002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_4, Condition(function Trig_Move_Piece0103_Easy_Func019001002)), function Trig_Move_Piece0103_Easy_Func019002 )
call ConditionalTriggerExecute( gg_trg_Win_Puzzle_1_Easy )
call TriggerSleepAction( 0.50 )
call EnableTrigger( gg_trg_Move_Piece0101_Easy )
call EnableTrigger( gg_trg_Move_Piece0102_Easy )
call EnableTrigger( gg_trg_Move_Piece0103_Easy )
call EnableTrigger( gg_trg_Move_Piece0104_Easy )
call EnableTrigger( gg_trg_Move_Piece0105_Easy )
call EnableTrigger( gg_trg_Move_Piece0106_Easy )
endfunction
//===========================================================================
function InitTrig_Move_Piece0103_Easy takes nothing returns nothing
set gg_trg_Move_Piece0103_Easy = CreateTrigger( )
call DisableTrigger( gg_trg_Move_Piece0103_Easy )
call TriggerRegisterUnitEvent( gg_trg_Move_Piece0103_Easy, gg_unit_h01I_0422, EVENT_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Move_Piece0103_Easy, Condition( function Trig_Move_Piece0103_Easy_Conditions ) )
call TriggerAddAction( gg_trg_Move_Piece0103_Easy, function Trig_Move_Piece0103_Easy_Actions )
endfunction
function Trig_Move_Piece0104_Easy_Conditions takes nothing returns boolean
if ( not ( GetUnitFacing(GetAttacker()) > 90.00 ) ) then
return false
endif
if ( not ( GetUnitFacing(GetAttacker()) < 165.00 ) ) then
return false
endif
return true
endfunction
function Trig_Move_Piece0104_Easy_Func010001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0104_Easy_Func010002 takes nothing returns nothing
set udg_ColorWheel[1] = GetEnumUnit()
endfunction
function Trig_Move_Piece0104_Easy_Func011001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0104_Easy_Func011002 takes nothing returns nothing
set udg_ColorWheel[3] = GetEnumUnit()
endfunction
function Trig_Move_Piece0104_Easy_Func012001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0104_Easy_Func012002 takes nothing returns nothing
set udg_ColorWheel[5] = GetEnumUnit()
endfunction
function Trig_Move_Piece0104_Easy_Func017001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0104_Easy_Func017002 takes nothing returns nothing
set udg_ColorWheel[1] = GetEnumUnit()
endfunction
function Trig_Move_Piece0104_Easy_Func018001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0104_Easy_Func018002 takes nothing returns nothing
set udg_ColorWheel[3] = GetEnumUnit()
endfunction
function Trig_Move_Piece0104_Easy_Func019001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0104_Easy_Func019002 takes nothing returns nothing
set udg_ColorWheel[5] = GetEnumUnit()
endfunction
function Trig_Move_Piece0104_Easy_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Move_Piece0101_Easy )
call DisableTrigger( gg_trg_Move_Piece0102_Easy )
call DisableTrigger( gg_trg_Move_Piece0103_Easy )
call DisableTrigger( gg_trg_Move_Piece0104_Easy )
call DisableTrigger( gg_trg_Move_Piece0105_Easy )
call DisableTrigger( gg_trg_Move_Piece0106_Easy )
call IssuePointOrderLocBJ( udg_ColorWheel[3], "move", GetRectCenter(gg_rct_Rect_453) )
call IssuePointOrderLocBJ( udg_ColorWheel[1], "move", GetRectCenter(gg_rct_Rect_453_Copy_2) )
call TriggerSleepAction( 1.50 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453, Condition(function Trig_Move_Piece0104_Easy_Func010001002)), function Trig_Move_Piece0104_Easy_Func010002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_2, Condition(function Trig_Move_Piece0104_Easy_Func011001002)), function Trig_Move_Piece0104_Easy_Func011002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_4, Condition(function Trig_Move_Piece0104_Easy_Func012001002)), function Trig_Move_Piece0104_Easy_Func012002 )
call IssuePointOrderLocBJ( udg_ColorWheel[1], "move", GetRectCenter(gg_rct_Rect_453_Copy_2) )
call IssuePointOrderLocBJ( udg_ColorWheel[3], "move", GetRectCenter(gg_rct_Rect_453_Copy_4) )
call IssuePointOrderLocBJ( udg_ColorWheel[5], "move", GetRectCenter(gg_rct_Rect_453) )
call TriggerSleepAction( 1.50 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453, Condition(function Trig_Move_Piece0104_Easy_Func017001002)), function Trig_Move_Piece0104_Easy_Func017002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_2, Condition(function Trig_Move_Piece0104_Easy_Func018001002)), function Trig_Move_Piece0104_Easy_Func018002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_4, Condition(function Trig_Move_Piece0104_Easy_Func019001002)), function Trig_Move_Piece0104_Easy_Func019002 )
call ConditionalTriggerExecute( gg_trg_Win_Puzzle_1_Easy )
call TriggerSleepAction( 0.50 )
call EnableTrigger( gg_trg_Move_Piece0101_Easy )
call EnableTrigger( gg_trg_Move_Piece0102_Easy )
call EnableTrigger( gg_trg_Move_Piece0103_Easy )
call EnableTrigger( gg_trg_Move_Piece0104_Easy )
call EnableTrigger( gg_trg_Move_Piece0105_Easy )
call EnableTrigger( gg_trg_Move_Piece0106_Easy )
endfunction
//===========================================================================
function InitTrig_Move_Piece0104_Easy takes nothing returns nothing
set gg_trg_Move_Piece0104_Easy = CreateTrigger( )
call DisableTrigger( gg_trg_Move_Piece0104_Easy )
call TriggerRegisterUnitEvent( gg_trg_Move_Piece0104_Easy, gg_unit_h01I_0422, EVENT_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Move_Piece0104_Easy, Condition( function Trig_Move_Piece0104_Easy_Conditions ) )
call TriggerAddAction( gg_trg_Move_Piece0104_Easy, function Trig_Move_Piece0104_Easy_Actions )
endfunction
function Trig_Move_Piece0105_Easy_Func007Func001C takes nothing returns boolean
if ( not ( GetUnitFacing(GetAttacker()) >= 0.00 ) ) then
return false
endif
if ( not ( GetUnitFacing(GetAttacker()) < 15.00 ) ) then
return false
endif
return true
endfunction
function Trig_Move_Piece0105_Easy_Func007Func002C takes nothing returns boolean
if ( not ( GetUnitFacing(GetEventDamageSource()) <= 360.00 ) ) then
return false
endif
if ( not ( GetUnitFacing(GetEventDamageSource()) > 325.00 ) ) then
return false
endif
return true
endfunction
function Trig_Move_Piece0105_Easy_Func007C takes nothing returns boolean
if ( Trig_Move_Piece0105_Easy_Func007Func001C() ) then
return true
endif
if ( Trig_Move_Piece0105_Easy_Func007Func002C() ) then
return true
endif
return false
endfunction
function Trig_Move_Piece0105_Easy_Conditions takes nothing returns boolean
if ( not Trig_Move_Piece0105_Easy_Func007C() ) then
return false
endif
return true
endfunction
function Trig_Move_Piece0105_Easy_Func011001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0105_Easy_Func011002 takes nothing returns nothing
set udg_ColorWheel[1] = GetEnumUnit()
endfunction
function Trig_Move_Piece0105_Easy_Func012001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0105_Easy_Func012002 takes nothing returns nothing
set udg_ColorWheel[3] = GetEnumUnit()
endfunction
function Trig_Move_Piece0105_Easy_Func013001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0105_Easy_Func013002 takes nothing returns nothing
set udg_ColorWheel[5] = GetEnumUnit()
endfunction
function Trig_Move_Piece0105_Easy_Func018001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0105_Easy_Func018002 takes nothing returns nothing
set udg_ColorWheel[1] = GetEnumUnit()
endfunction
function Trig_Move_Piece0105_Easy_Func019001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0105_Easy_Func019002 takes nothing returns nothing
set udg_ColorWheel[3] = GetEnumUnit()
endfunction
function Trig_Move_Piece0105_Easy_Func020001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0105_Easy_Func020002 takes nothing returns nothing
set udg_ColorWheel[5] = GetEnumUnit()
endfunction
function Trig_Move_Piece0105_Easy_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Move_Piece0101_Easy )
call DisableTrigger( gg_trg_Move_Piece0102_Easy )
call DisableTrigger( gg_trg_Move_Piece0103_Easy )
call DisableTrigger( gg_trg_Move_Piece0104_Easy )
call DisableTrigger( gg_trg_Move_Piece0105_Easy )
call DisableTrigger( gg_trg_Move_Piece0106_Easy )
call IssuePointOrderLocBJ( udg_ColorWheel[5], "move", GetRectCenter(gg_rct_Rect_453_Copy_2) )
call IssuePointOrderLocBJ( udg_ColorWheel[3], "move", GetRectCenter(gg_rct_Rect_453_Copy_4) )
call TriggerSleepAction( 1.50 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453, Condition(function Trig_Move_Piece0105_Easy_Func011001002)), function Trig_Move_Piece0105_Easy_Func011002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_2, Condition(function Trig_Move_Piece0105_Easy_Func012001002)), function Trig_Move_Piece0105_Easy_Func012002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_4, Condition(function Trig_Move_Piece0105_Easy_Func013001002)), function Trig_Move_Piece0105_Easy_Func013002 )
call IssuePointOrderLocBJ( udg_ColorWheel[1], "move", GetRectCenter(gg_rct_Rect_453_Copy_2) )
call IssuePointOrderLocBJ( udg_ColorWheel[3], "move", GetRectCenter(gg_rct_Rect_453_Copy_4) )
call IssuePointOrderLocBJ( udg_ColorWheel[5], "move", GetRectCenter(gg_rct_Rect_453) )
call TriggerSleepAction( 1.50 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453, Condition(function Trig_Move_Piece0105_Easy_Func018001002)), function Trig_Move_Piece0105_Easy_Func018002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_2, Condition(function Trig_Move_Piece0105_Easy_Func019001002)), function Trig_Move_Piece0105_Easy_Func019002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_4, Condition(function Trig_Move_Piece0105_Easy_Func020001002)), function Trig_Move_Piece0105_Easy_Func020002 )
call ConditionalTriggerExecute( gg_trg_Win_Puzzle_1_Easy )
call TriggerSleepAction( 0.50 )
call EnableTrigger( gg_trg_Move_Piece0101_Easy )
call EnableTrigger( gg_trg_Move_Piece0102_Easy )
call EnableTrigger( gg_trg_Move_Piece0103_Easy )
call EnableTrigger( gg_trg_Move_Piece0104_Easy )
call EnableTrigger( gg_trg_Move_Piece0105_Easy )
call EnableTrigger( gg_trg_Move_Piece0106_Easy )
endfunction
//===========================================================================
function InitTrig_Move_Piece0105_Easy takes nothing returns nothing
set gg_trg_Move_Piece0105_Easy = CreateTrigger( )
call DisableTrigger( gg_trg_Move_Piece0105_Easy )
call TriggerRegisterUnitEvent( gg_trg_Move_Piece0105_Easy, gg_unit_h01I_0424, EVENT_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Move_Piece0105_Easy, Condition( function Trig_Move_Piece0105_Easy_Conditions ) )
call TriggerAddAction( gg_trg_Move_Piece0105_Easy, function Trig_Move_Piece0105_Easy_Actions )
endfunction
function Trig_Move_Piece0106_Easy_Conditions takes nothing returns boolean
if ( not ( GetUnitFacing(GetAttacker()) > 15.00 ) ) then
return false
endif
if ( not ( GetUnitFacing(GetAttacker()) < 90.00 ) ) then
return false
endif
return true
endfunction
function Trig_Move_Piece0106_Easy_Func010001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0106_Easy_Func010002 takes nothing returns nothing
set udg_ColorWheel[1] = GetEnumUnit()
endfunction
function Trig_Move_Piece0106_Easy_Func011001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0106_Easy_Func011002 takes nothing returns nothing
set udg_ColorWheel[3] = GetEnumUnit()
endfunction
function Trig_Move_Piece0106_Easy_Func012001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0106_Easy_Func012002 takes nothing returns nothing
set udg_ColorWheel[5] = GetEnumUnit()
endfunction
function Trig_Move_Piece0106_Easy_Func017001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0106_Easy_Func017002 takes nothing returns nothing
set udg_ColorWheel[1] = GetEnumUnit()
endfunction
function Trig_Move_Piece0106_Easy_Func018001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0106_Easy_Func018002 takes nothing returns nothing
set udg_ColorWheel[3] = GetEnumUnit()
endfunction
function Trig_Move_Piece0106_Easy_Func019001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0106_Easy_Func019002 takes nothing returns nothing
set udg_ColorWheel[5] = GetEnumUnit()
endfunction
function Trig_Move_Piece0106_Easy_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Move_Piece0101_Easy )
call DisableTrigger( gg_trg_Move_Piece0102_Easy )
call DisableTrigger( gg_trg_Move_Piece0103_Easy )
call DisableTrigger( gg_trg_Move_Piece0104_Easy )
call DisableTrigger( gg_trg_Move_Piece0105_Easy )
call DisableTrigger( gg_trg_Move_Piece0106_Easy )
call IssuePointOrderLocBJ( udg_ColorWheel[5], "move", GetRectCenter(gg_rct_Rect_453) )
call IssuePointOrderLocBJ( udg_ColorWheel[1], "move", GetRectCenter(gg_rct_Rect_453_Copy_4) )
call TriggerSleepAction( 1.50 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453, Condition(function Trig_Move_Piece0106_Easy_Func010001002)), function Trig_Move_Piece0106_Easy_Func010002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_2, Condition(function Trig_Move_Piece0106_Easy_Func011001002)), function Trig_Move_Piece0106_Easy_Func011002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_4, Condition(function Trig_Move_Piece0106_Easy_Func012001002)), function Trig_Move_Piece0106_Easy_Func012002 )
call IssuePointOrderLocBJ( udg_ColorWheel[1], "move", GetRectCenter(gg_rct_Rect_453_Copy_4) )
call IssuePointOrderLocBJ( udg_ColorWheel[3], "move", GetRectCenter(gg_rct_Rect_453) )
call IssuePointOrderLocBJ( udg_ColorWheel[5], "move", GetRectCenter(gg_rct_Rect_453_Copy_2) )
call TriggerSleepAction( 1.50 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453, Condition(function Trig_Move_Piece0106_Easy_Func017001002)), function Trig_Move_Piece0106_Easy_Func017002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_2, Condition(function Trig_Move_Piece0106_Easy_Func018001002)), function Trig_Move_Piece0106_Easy_Func018002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_4, Condition(function Trig_Move_Piece0106_Easy_Func019001002)), function Trig_Move_Piece0106_Easy_Func019002 )
call ConditionalTriggerExecute( gg_trg_Win_Puzzle_1_Easy )
call TriggerSleepAction( 0.50 )
call EnableTrigger( gg_trg_Move_Piece0101_Easy )
call EnableTrigger( gg_trg_Move_Piece0102_Easy )
call EnableTrigger( gg_trg_Move_Piece0103_Easy )
call EnableTrigger( gg_trg_Move_Piece0104_Easy )
call EnableTrigger( gg_trg_Move_Piece0105_Easy )
call EnableTrigger( gg_trg_Move_Piece0106_Easy )
endfunction
//===========================================================================
function InitTrig_Move_Piece0106_Easy takes nothing returns nothing
set gg_trg_Move_Piece0106_Easy = CreateTrigger( )
call DisableTrigger( gg_trg_Move_Piece0106_Easy )
call TriggerRegisterUnitEvent( gg_trg_Move_Piece0106_Easy, gg_unit_h01I_0424, EVENT_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Move_Piece0106_Easy, Condition( function Trig_Move_Piece0106_Easy_Conditions ) )
call TriggerAddAction( gg_trg_Move_Piece0106_Easy, function Trig_Move_Piece0106_Easy_Actions )
endfunction
function Trig_Move_Piece0201_Hard_Conditions takes nothing returns boolean
if ( not ( GetUnitFacing(GetAttacker()) > 270.00 ) ) then
return false
endif
if ( not ( GetUnitFacing(GetAttacker()) <= 360.00 ) ) then
return false
endif
return true
endfunction
function Trig_Move_Piece0201_Hard_Func018001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0201_Hard_Func018002 takes nothing returns nothing
set udg_ColorWheel[1] = GetEnumUnit()
endfunction
function Trig_Move_Piece0201_Hard_Func019001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0201_Hard_Func019002 takes nothing returns nothing
set udg_ColorWheel[2] = GetEnumUnit()
endfunction
function Trig_Move_Piece0201_Hard_Func020001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0201_Hard_Func020002 takes nothing returns nothing
set udg_ColorWheel[3] = GetEnumUnit()
endfunction
function Trig_Move_Piece0201_Hard_Func021001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0201_Hard_Func021002 takes nothing returns nothing
set udg_ColorWheel[4] = GetEnumUnit()
endfunction
function Trig_Move_Piece0201_Hard_Func022001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0201_Hard_Func022002 takes nothing returns nothing
set udg_ColorWheel[5] = GetEnumUnit()
endfunction
function Trig_Move_Piece0201_Hard_Func023001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0201_Hard_Func023002 takes nothing returns nothing
set udg_ColorWheel[6] = GetEnumUnit()
endfunction
function Trig_Move_Piece0201_Hard_Func031001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0201_Hard_Func031002 takes nothing returns nothing
set udg_ColorWheel[1] = GetEnumUnit()
endfunction
function Trig_Move_Piece0201_Hard_Func032001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0201_Hard_Func032002 takes nothing returns nothing
set udg_ColorWheel[2] = GetEnumUnit()
endfunction
function Trig_Move_Piece0201_Hard_Func033001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0201_Hard_Func033002 takes nothing returns nothing
set udg_ColorWheel[3] = GetEnumUnit()
endfunction
function Trig_Move_Piece0201_Hard_Func034001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0201_Hard_Func034002 takes nothing returns nothing
set udg_ColorWheel[4] = GetEnumUnit()
endfunction
function Trig_Move_Piece0201_Hard_Func035001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0201_Hard_Func035002 takes nothing returns nothing
set udg_ColorWheel[5] = GetEnumUnit()
endfunction
function Trig_Move_Piece0201_Hard_Func036001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0201_Hard_Func036002 takes nothing returns nothing
set udg_ColorWheel[6] = GetEnumUnit()
endfunction
function Trig_Move_Piece0201_Hard_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Move_Piece0201_Hard )
call DisableTrigger( gg_trg_Move_Piece0202_Hard )
call DisableTrigger( gg_trg_Move_Piece0203_Hard )
call DisableTrigger( gg_trg_Move_Piece0204_Hard )
call DisableTrigger( gg_trg_Move_Piece0205_Hard )
call DisableTrigger( gg_trg_Move_Piece0206_Hard )
call DisableTrigger( gg_trg_Move_Piece0207_Hard )
call DisableTrigger( gg_trg_Move_Piece0208_Hard )
call DisableTrigger( gg_trg_Move_Piece0209_Hard )
call DisableTrigger( gg_trg_Move_Piece0210_Hard )
call DisableTrigger( gg_trg_Move_Piece0211_Hard )
call DisableTrigger( gg_trg_Move_Piece0212_Hard )
call IssuePointOrderLocBJ( udg_ColorWheel[1], "move", GetRectCenter(gg_rct_Rect_453_Copy) )
call IssuePointOrderLocBJ( udg_ColorWheel[2], "move", GetRectCenter(gg_rct_Rect_453) )
call TriggerSleepAction( 1.00 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453, Condition(function Trig_Move_Piece0201_Hard_Func018001002)), function Trig_Move_Piece0201_Hard_Func018002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy, Condition(function Trig_Move_Piece0201_Hard_Func019001002)), function Trig_Move_Piece0201_Hard_Func019002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_2, Condition(function Trig_Move_Piece0201_Hard_Func020001002)), function Trig_Move_Piece0201_Hard_Func020002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_3, Condition(function Trig_Move_Piece0201_Hard_Func021001002)), function Trig_Move_Piece0201_Hard_Func021002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_4, Condition(function Trig_Move_Piece0201_Hard_Func022001002)), function Trig_Move_Piece0201_Hard_Func022002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_5, Condition(function Trig_Move_Piece0201_Hard_Func023001002)), function Trig_Move_Piece0201_Hard_Func023002 )
call IssuePointOrderLocBJ( udg_ColorWheel[1], "move", GetRectCenter(gg_rct_Rect_453_Copy_5) )
call IssuePointOrderLocBJ( udg_ColorWheel[2], "move", GetRectCenter(gg_rct_Rect_453) )
call IssuePointOrderLocBJ( udg_ColorWheel[3], "move", GetRectCenter(gg_rct_Rect_453_Copy) )
call IssuePointOrderLocBJ( udg_ColorWheel[4], "move", GetRectCenter(gg_rct_Rect_453_Copy_2) )
call IssuePointOrderLocBJ( udg_ColorWheel[5], "move", GetRectCenter(gg_rct_Rect_453_Copy_3) )
call IssuePointOrderLocBJ( udg_ColorWheel[6], "move", GetRectCenter(gg_rct_Rect_453_Copy_4) )
call TriggerSleepAction( 1.00 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453, Condition(function Trig_Move_Piece0201_Hard_Func031001002)), function Trig_Move_Piece0201_Hard_Func031002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy, Condition(function Trig_Move_Piece0201_Hard_Func032001002)), function Trig_Move_Piece0201_Hard_Func032002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_2, Condition(function Trig_Move_Piece0201_Hard_Func033001002)), function Trig_Move_Piece0201_Hard_Func033002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_3, Condition(function Trig_Move_Piece0201_Hard_Func034001002)), function Trig_Move_Piece0201_Hard_Func034002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_4, Condition(function Trig_Move_Piece0201_Hard_Func035001002)), function Trig_Move_Piece0201_Hard_Func035002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_5, Condition(function Trig_Move_Piece0201_Hard_Func036001002)), function Trig_Move_Piece0201_Hard_Func036002 )
call ConditionalTriggerExecute( gg_trg_Win_Puzzle_1_Hard )
call TriggerSleepAction( 0.50 )
call EnableTrigger( gg_trg_Move_Piece0201_Hard )
call EnableTrigger( gg_trg_Move_Piece0202_Hard )
call EnableTrigger( gg_trg_Move_Piece0203_Hard )
call EnableTrigger( gg_trg_Move_Piece0204_Hard )
call EnableTrigger( gg_trg_Move_Piece0205_Hard )
call EnableTrigger( gg_trg_Move_Piece0206_Hard )
call EnableTrigger( gg_trg_Move_Piece0207_Hard )
call EnableTrigger( gg_trg_Move_Piece0208_Hard )
call EnableTrigger( gg_trg_Move_Piece0209_Hard )
call EnableTrigger( gg_trg_Move_Piece0210_Hard )
call EnableTrigger( gg_trg_Move_Piece0211_Hard )
call EnableTrigger( gg_trg_Move_Piece0212_Hard )
endfunction
//===========================================================================
function InitTrig_Move_Piece0201_Hard takes nothing returns nothing
set gg_trg_Move_Piece0201_Hard = CreateTrigger( )
call DisableTrigger( gg_trg_Move_Piece0201_Hard )
call TriggerRegisterUnitEvent( gg_trg_Move_Piece0201_Hard, gg_unit_h01I_0420, EVENT_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Move_Piece0201_Hard, Condition( function Trig_Move_Piece0201_Hard_Conditions ) )
call TriggerAddAction( gg_trg_Move_Piece0201_Hard, function Trig_Move_Piece0201_Hard_Actions )
endfunction
function Trig_Move_Piece0202_Hard_Conditions takes nothing returns boolean
if ( not ( GetUnitFacing(GetAttacker()) > 180.00 ) ) then
return false
endif
if ( not ( GetUnitFacing(GetAttacker()) < 270.00 ) ) then
return false
endif
return true
endfunction
function Trig_Move_Piece0202_Hard_Func018001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0202_Hard_Func018002 takes nothing returns nothing
set udg_ColorWheel[1] = GetEnumUnit()
endfunction
function Trig_Move_Piece0202_Hard_Func019001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0202_Hard_Func019002 takes nothing returns nothing
set udg_ColorWheel[2] = GetEnumUnit()
endfunction
function Trig_Move_Piece0202_Hard_Func020001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0202_Hard_Func020002 takes nothing returns nothing
set udg_ColorWheel[3] = GetEnumUnit()
endfunction
function Trig_Move_Piece0202_Hard_Func021001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0202_Hard_Func021002 takes nothing returns nothing
set udg_ColorWheel[4] = GetEnumUnit()
endfunction
function Trig_Move_Piece0202_Hard_Func022001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0202_Hard_Func022002 takes nothing returns nothing
set udg_ColorWheel[5] = GetEnumUnit()
endfunction
function Trig_Move_Piece0202_Hard_Func023001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0202_Hard_Func023002 takes nothing returns nothing
set udg_ColorWheel[6] = GetEnumUnit()
endfunction
function Trig_Move_Piece0202_Hard_Func031001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0202_Hard_Func031002 takes nothing returns nothing
set udg_ColorWheel[1] = GetEnumUnit()
endfunction
function Trig_Move_Piece0202_Hard_Func032001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0202_Hard_Func032002 takes nothing returns nothing
set udg_ColorWheel[2] = GetEnumUnit()
endfunction
function Trig_Move_Piece0202_Hard_Func033001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0202_Hard_Func033002 takes nothing returns nothing
set udg_ColorWheel[3] = GetEnumUnit()
endfunction
function Trig_Move_Piece0202_Hard_Func034001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0202_Hard_Func034002 takes nothing returns nothing
set udg_ColorWheel[4] = GetEnumUnit()
endfunction
function Trig_Move_Piece0202_Hard_Func035001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0202_Hard_Func035002 takes nothing returns nothing
set udg_ColorWheel[5] = GetEnumUnit()
endfunction
function Trig_Move_Piece0202_Hard_Func036001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0202_Hard_Func036002 takes nothing returns nothing
set udg_ColorWheel[6] = GetEnumUnit()
endfunction
function Trig_Move_Piece0202_Hard_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Move_Piece0201_Hard )
call DisableTrigger( gg_trg_Move_Piece0202_Hard )
call DisableTrigger( gg_trg_Move_Piece0203_Hard )
call DisableTrigger( gg_trg_Move_Piece0204_Hard )
call DisableTrigger( gg_trg_Move_Piece0205_Hard )
call DisableTrigger( gg_trg_Move_Piece0206_Hard )
call DisableTrigger( gg_trg_Move_Piece0207_Hard )
call DisableTrigger( gg_trg_Move_Piece0208_Hard )
call DisableTrigger( gg_trg_Move_Piece0209_Hard )
call DisableTrigger( gg_trg_Move_Piece0210_Hard )
call DisableTrigger( gg_trg_Move_Piece0211_Hard )
call DisableTrigger( gg_trg_Move_Piece0212_Hard )
call IssuePointOrderLocBJ( udg_ColorWheel[1], "move", GetRectCenter(gg_rct_Rect_453_Copy_5) )
call IssuePointOrderLocBJ( udg_ColorWheel[6], "move", GetRectCenter(gg_rct_Rect_453) )
call TriggerSleepAction( 1.00 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453, Condition(function Trig_Move_Piece0202_Hard_Func018001002)), function Trig_Move_Piece0202_Hard_Func018002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy, Condition(function Trig_Move_Piece0202_Hard_Func019001002)), function Trig_Move_Piece0202_Hard_Func019002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_2, Condition(function Trig_Move_Piece0202_Hard_Func020001002)), function Trig_Move_Piece0202_Hard_Func020002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_3, Condition(function Trig_Move_Piece0202_Hard_Func021001002)), function Trig_Move_Piece0202_Hard_Func021002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_4, Condition(function Trig_Move_Piece0202_Hard_Func022001002)), function Trig_Move_Piece0202_Hard_Func022002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_5, Condition(function Trig_Move_Piece0202_Hard_Func023001002)), function Trig_Move_Piece0202_Hard_Func023002 )
call IssuePointOrderLocBJ( udg_ColorWheel[1], "move", GetRectCenter(gg_rct_Rect_453_Copy) )
call IssuePointOrderLocBJ( udg_ColorWheel[2], "move", GetRectCenter(gg_rct_Rect_453_Copy_2) )
call IssuePointOrderLocBJ( udg_ColorWheel[3], "move", GetRectCenter(gg_rct_Rect_453_Copy_3) )
call IssuePointOrderLocBJ( udg_ColorWheel[4], "move", GetRectCenter(gg_rct_Rect_453_Copy_4) )
call IssuePointOrderLocBJ( udg_ColorWheel[5], "move", GetRectCenter(gg_rct_Rect_453_Copy_5) )
call IssuePointOrderLocBJ( udg_ColorWheel[6], "move", GetRectCenter(gg_rct_Rect_453) )
call TriggerSleepAction( 1.00 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453, Condition(function Trig_Move_Piece0202_Hard_Func031001002)), function Trig_Move_Piece0202_Hard_Func031002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy, Condition(function Trig_Move_Piece0202_Hard_Func032001002)), function Trig_Move_Piece0202_Hard_Func032002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_2, Condition(function Trig_Move_Piece0202_Hard_Func033001002)), function Trig_Move_Piece0202_Hard_Func033002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_3, Condition(function Trig_Move_Piece0202_Hard_Func034001002)), function Trig_Move_Piece0202_Hard_Func034002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_4, Condition(function Trig_Move_Piece0202_Hard_Func035001002)), function Trig_Move_Piece0202_Hard_Func035002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_5, Condition(function Trig_Move_Piece0202_Hard_Func036001002)), function Trig_Move_Piece0202_Hard_Func036002 )
call ConditionalTriggerExecute( gg_trg_Win_Puzzle_1_Hard )
call TriggerSleepAction( 0.50 )
call EnableTrigger( gg_trg_Move_Piece0201_Hard )
call EnableTrigger( gg_trg_Move_Piece0202_Hard )
call EnableTrigger( gg_trg_Move_Piece0203_Hard )
call EnableTrigger( gg_trg_Move_Piece0204_Hard )
call EnableTrigger( gg_trg_Move_Piece0205_Hard )
call EnableTrigger( gg_trg_Move_Piece0206_Hard )
call EnableTrigger( gg_trg_Move_Piece0207_Hard )
call EnableTrigger( gg_trg_Move_Piece0208_Hard )
call EnableTrigger( gg_trg_Move_Piece0209_Hard )
call EnableTrigger( gg_trg_Move_Piece0210_Hard )
call EnableTrigger( gg_trg_Move_Piece0211_Hard )
call EnableTrigger( gg_trg_Move_Piece0212_Hard )
endfunction
//===========================================================================
function InitTrig_Move_Piece0202_Hard takes nothing returns nothing
set gg_trg_Move_Piece0202_Hard = CreateTrigger( )
call DisableTrigger( gg_trg_Move_Piece0202_Hard )
call TriggerRegisterUnitEvent( gg_trg_Move_Piece0202_Hard, gg_unit_h01I_0420, EVENT_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Move_Piece0202_Hard, Condition( function Trig_Move_Piece0202_Hard_Conditions ) )
call TriggerAddAction( gg_trg_Move_Piece0202_Hard, function Trig_Move_Piece0202_Hard_Actions )
endfunction
function Trig_Move_Piece0203_Hard_Conditions takes nothing returns boolean
if ( not ( GetUnitFacing(GetAttacker()) > 90.00 ) ) then
return false
endif
if ( not ( GetUnitFacing(GetAttacker()) < 180.00 ) ) then
return false
endif
return true
endfunction
function Trig_Move_Piece0203_Hard_Func018001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0203_Hard_Func018002 takes nothing returns nothing
set udg_ColorWheel[1] = GetEnumUnit()
endfunction
function Trig_Move_Piece0203_Hard_Func019001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0203_Hard_Func019002 takes nothing returns nothing
set udg_ColorWheel[2] = GetEnumUnit()
endfunction
function Trig_Move_Piece0203_Hard_Func020001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0203_Hard_Func020002 takes nothing returns nothing
set udg_ColorWheel[3] = GetEnumUnit()
endfunction
function Trig_Move_Piece0203_Hard_Func021001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0203_Hard_Func021002 takes nothing returns nothing
set udg_ColorWheel[4] = GetEnumUnit()
endfunction
function Trig_Move_Piece0203_Hard_Func022001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0203_Hard_Func022002 takes nothing returns nothing
set udg_ColorWheel[5] = GetEnumUnit()
endfunction
function Trig_Move_Piece0203_Hard_Func023001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0203_Hard_Func023002 takes nothing returns nothing
set udg_ColorWheel[6] = GetEnumUnit()
endfunction
function Trig_Move_Piece0203_Hard_Func031001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0203_Hard_Func031002 takes nothing returns nothing
set udg_ColorWheel[1] = GetEnumUnit()
endfunction
function Trig_Move_Piece0203_Hard_Func032001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0203_Hard_Func032002 takes nothing returns nothing
set udg_ColorWheel[2] = GetEnumUnit()
endfunction
function Trig_Move_Piece0203_Hard_Func033001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0203_Hard_Func033002 takes nothing returns nothing
set udg_ColorWheel[3] = GetEnumUnit()
endfunction
function Trig_Move_Piece0203_Hard_Func034001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0203_Hard_Func034002 takes nothing returns nothing
set udg_ColorWheel[4] = GetEnumUnit()
endfunction
function Trig_Move_Piece0203_Hard_Func035001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0203_Hard_Func035002 takes nothing returns nothing
set udg_ColorWheel[5] = GetEnumUnit()
endfunction
function Trig_Move_Piece0203_Hard_Func036001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0203_Hard_Func036002 takes nothing returns nothing
set udg_ColorWheel[6] = GetEnumUnit()
endfunction
function Trig_Move_Piece0203_Hard_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Move_Piece0201_Hard )
call DisableTrigger( gg_trg_Move_Piece0202_Hard )
call DisableTrigger( gg_trg_Move_Piece0203_Hard )
call DisableTrigger( gg_trg_Move_Piece0204_Hard )
call DisableTrigger( gg_trg_Move_Piece0205_Hard )
call DisableTrigger( gg_trg_Move_Piece0206_Hard )
call DisableTrigger( gg_trg_Move_Piece0207_Hard )
call DisableTrigger( gg_trg_Move_Piece0208_Hard )
call DisableTrigger( gg_trg_Move_Piece0209_Hard )
call DisableTrigger( gg_trg_Move_Piece0210_Hard )
call DisableTrigger( gg_trg_Move_Piece0211_Hard )
call DisableTrigger( gg_trg_Move_Piece0212_Hard )
call IssuePointOrderLocBJ( udg_ColorWheel[2], "move", GetRectCenter(gg_rct_Rect_453) )
call IssuePointOrderLocBJ( udg_ColorWheel[1], "move", GetRectCenter(gg_rct_Rect_453_Copy) )
call TriggerSleepAction( 1.00 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453, Condition(function Trig_Move_Piece0203_Hard_Func018001002)), function Trig_Move_Piece0203_Hard_Func018002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy, Condition(function Trig_Move_Piece0203_Hard_Func019001002)), function Trig_Move_Piece0203_Hard_Func019002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_2, Condition(function Trig_Move_Piece0203_Hard_Func020001002)), function Trig_Move_Piece0203_Hard_Func020002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_3, Condition(function Trig_Move_Piece0203_Hard_Func021001002)), function Trig_Move_Piece0203_Hard_Func021002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_4, Condition(function Trig_Move_Piece0203_Hard_Func022001002)), function Trig_Move_Piece0203_Hard_Func022002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_5, Condition(function Trig_Move_Piece0203_Hard_Func023001002)), function Trig_Move_Piece0203_Hard_Func023002 )
call IssuePointOrderLocBJ( udg_ColorWheel[1], "move", GetRectCenter(gg_rct_Rect_453_Copy) )
call IssuePointOrderLocBJ( udg_ColorWheel[2], "move", GetRectCenter(gg_rct_Rect_453_Copy_2) )
call IssuePointOrderLocBJ( udg_ColorWheel[3], "move", GetRectCenter(gg_rct_Rect_453_Copy_3) )
call IssuePointOrderLocBJ( udg_ColorWheel[4], "move", GetRectCenter(gg_rct_Rect_453_Copy_4) )
call IssuePointOrderLocBJ( udg_ColorWheel[5], "move", GetRectCenter(gg_rct_Rect_453_Copy_5) )
call IssuePointOrderLocBJ( udg_ColorWheel[6], "move", GetRectCenter(gg_rct_Rect_453) )
call TriggerSleepAction( 1.00 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453, Condition(function Trig_Move_Piece0203_Hard_Func031001002)), function Trig_Move_Piece0203_Hard_Func031002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy, Condition(function Trig_Move_Piece0203_Hard_Func032001002)), function Trig_Move_Piece0203_Hard_Func032002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_2, Condition(function Trig_Move_Piece0203_Hard_Func033001002)), function Trig_Move_Piece0203_Hard_Func033002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_3, Condition(function Trig_Move_Piece0203_Hard_Func034001002)), function Trig_Move_Piece0203_Hard_Func034002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_4, Condition(function Trig_Move_Piece0203_Hard_Func035001002)), function Trig_Move_Piece0203_Hard_Func035002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_5, Condition(function Trig_Move_Piece0203_Hard_Func036001002)), function Trig_Move_Piece0203_Hard_Func036002 )
call ConditionalTriggerExecute( gg_trg_Win_Puzzle_1_Hard )
call TriggerSleepAction( 0.50 )
call EnableTrigger( gg_trg_Move_Piece0201_Hard )
call EnableTrigger( gg_trg_Move_Piece0202_Hard )
call EnableTrigger( gg_trg_Move_Piece0203_Hard )
call EnableTrigger( gg_trg_Move_Piece0204_Hard )
call EnableTrigger( gg_trg_Move_Piece0205_Hard )
call EnableTrigger( gg_trg_Move_Piece0206_Hard )
call EnableTrigger( gg_trg_Move_Piece0207_Hard )
call EnableTrigger( gg_trg_Move_Piece0208_Hard )
call EnableTrigger( gg_trg_Move_Piece0209_Hard )
call EnableTrigger( gg_trg_Move_Piece0210_Hard )
call EnableTrigger( gg_trg_Move_Piece0211_Hard )
call EnableTrigger( gg_trg_Move_Piece0212_Hard )
endfunction
//===========================================================================
function InitTrig_Move_Piece0203_Hard takes nothing returns nothing
set gg_trg_Move_Piece0203_Hard = CreateTrigger( )
call DisableTrigger( gg_trg_Move_Piece0203_Hard )
call TriggerRegisterUnitEvent( gg_trg_Move_Piece0203_Hard, gg_unit_h01I_0421, EVENT_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Move_Piece0203_Hard, Condition( function Trig_Move_Piece0203_Hard_Conditions ) )
call TriggerAddAction( gg_trg_Move_Piece0203_Hard, function Trig_Move_Piece0203_Hard_Actions )
endfunction
function Trig_Move_Piece0204_Hard_Conditions takes nothing returns boolean
if ( not ( GetUnitFacing(GetAttacker()) > 200.00 ) ) then
return false
endif
if ( not ( GetUnitFacing(GetAttacker()) < 340.00 ) ) then
return false
endif
return true
endfunction
function Trig_Move_Piece0204_Hard_Func018001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0204_Hard_Func018002 takes nothing returns nothing
set udg_ColorWheel[1] = GetEnumUnit()
endfunction
function Trig_Move_Piece0204_Hard_Func019001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0204_Hard_Func019002 takes nothing returns nothing
set udg_ColorWheel[2] = GetEnumUnit()
endfunction
function Trig_Move_Piece0204_Hard_Func020001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0204_Hard_Func020002 takes nothing returns nothing
set udg_ColorWheel[3] = GetEnumUnit()
endfunction
function Trig_Move_Piece0204_Hard_Func021001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0204_Hard_Func021002 takes nothing returns nothing
set udg_ColorWheel[4] = GetEnumUnit()
endfunction
function Trig_Move_Piece0204_Hard_Func022001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0204_Hard_Func022002 takes nothing returns nothing
set udg_ColorWheel[5] = GetEnumUnit()
endfunction
function Trig_Move_Piece0204_Hard_Func023001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0204_Hard_Func023002 takes nothing returns nothing
set udg_ColorWheel[6] = GetEnumUnit()
endfunction
function Trig_Move_Piece0204_Hard_Func031001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0204_Hard_Func031002 takes nothing returns nothing
set udg_ColorWheel[1] = GetEnumUnit()
endfunction
function Trig_Move_Piece0204_Hard_Func032001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0204_Hard_Func032002 takes nothing returns nothing
set udg_ColorWheel[2] = GetEnumUnit()
endfunction
function Trig_Move_Piece0204_Hard_Func033001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0204_Hard_Func033002 takes nothing returns nothing
set udg_ColorWheel[3] = GetEnumUnit()
endfunction
function Trig_Move_Piece0204_Hard_Func034001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0204_Hard_Func034002 takes nothing returns nothing
set udg_ColorWheel[4] = GetEnumUnit()
endfunction
function Trig_Move_Piece0204_Hard_Func035001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0204_Hard_Func035002 takes nothing returns nothing
set udg_ColorWheel[5] = GetEnumUnit()
endfunction
function Trig_Move_Piece0204_Hard_Func036001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0204_Hard_Func036002 takes nothing returns nothing
set udg_ColorWheel[6] = GetEnumUnit()
endfunction
function Trig_Move_Piece0204_Hard_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Move_Piece0201_Hard )
call DisableTrigger( gg_trg_Move_Piece0202_Hard )
call DisableTrigger( gg_trg_Move_Piece0203_Hard )
call DisableTrigger( gg_trg_Move_Piece0204_Hard )
call DisableTrigger( gg_trg_Move_Piece0205_Hard )
call DisableTrigger( gg_trg_Move_Piece0206_Hard )
call DisableTrigger( gg_trg_Move_Piece0207_Hard )
call DisableTrigger( gg_trg_Move_Piece0208_Hard )
call DisableTrigger( gg_trg_Move_Piece0209_Hard )
call DisableTrigger( gg_trg_Move_Piece0210_Hard )
call DisableTrigger( gg_trg_Move_Piece0211_Hard )
call DisableTrigger( gg_trg_Move_Piece0212_Hard )
call IssuePointOrderLocBJ( udg_ColorWheel[2], "move", GetRectCenter(gg_rct_Rect_453_Copy_2) )
call IssuePointOrderLocBJ( udg_ColorWheel[3], "move", GetRectCenter(gg_rct_Rect_453_Copy) )
call TriggerSleepAction( 1.00 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453, Condition(function Trig_Move_Piece0204_Hard_Func018001002)), function Trig_Move_Piece0204_Hard_Func018002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy, Condition(function Trig_Move_Piece0204_Hard_Func019001002)), function Trig_Move_Piece0204_Hard_Func019002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_2, Condition(function Trig_Move_Piece0204_Hard_Func020001002)), function Trig_Move_Piece0204_Hard_Func020002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_3, Condition(function Trig_Move_Piece0204_Hard_Func021001002)), function Trig_Move_Piece0204_Hard_Func021002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_4, Condition(function Trig_Move_Piece0204_Hard_Func022001002)), function Trig_Move_Piece0204_Hard_Func022002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_5, Condition(function Trig_Move_Piece0204_Hard_Func023001002)), function Trig_Move_Piece0204_Hard_Func023002 )
call IssuePointOrderLocBJ( udg_ColorWheel[1], "move", GetRectCenter(gg_rct_Rect_453_Copy_5) )
call IssuePointOrderLocBJ( udg_ColorWheel[2], "move", GetRectCenter(gg_rct_Rect_453) )
call IssuePointOrderLocBJ( udg_ColorWheel[3], "move", GetRectCenter(gg_rct_Rect_453_Copy) )
call IssuePointOrderLocBJ( udg_ColorWheel[4], "move", GetRectCenter(gg_rct_Rect_453_Copy_2) )
call IssuePointOrderLocBJ( udg_ColorWheel[5], "move", GetRectCenter(gg_rct_Rect_453_Copy_3) )
call IssuePointOrderLocBJ( udg_ColorWheel[6], "move", GetRectCenter(gg_rct_Rect_453_Copy_4) )
call TriggerSleepAction( 1.00 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453, Condition(function Trig_Move_Piece0204_Hard_Func031001002)), function Trig_Move_Piece0204_Hard_Func031002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy, Condition(function Trig_Move_Piece0204_Hard_Func032001002)), function Trig_Move_Piece0204_Hard_Func032002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_2, Condition(function Trig_Move_Piece0204_Hard_Func033001002)), function Trig_Move_Piece0204_Hard_Func033002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_3, Condition(function Trig_Move_Piece0204_Hard_Func034001002)), function Trig_Move_Piece0204_Hard_Func034002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_4, Condition(function Trig_Move_Piece0204_Hard_Func035001002)), function Trig_Move_Piece0204_Hard_Func035002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_5, Condition(function Trig_Move_Piece0204_Hard_Func036001002)), function Trig_Move_Piece0204_Hard_Func036002 )
call ConditionalTriggerExecute( gg_trg_Win_Puzzle_1_Hard )
call TriggerSleepAction( 0.50 )
call EnableTrigger( gg_trg_Move_Piece0201_Hard )
call EnableTrigger( gg_trg_Move_Piece0202_Hard )
call EnableTrigger( gg_trg_Move_Piece0203_Hard )
call EnableTrigger( gg_trg_Move_Piece0204_Hard )
call EnableTrigger( gg_trg_Move_Piece0205_Hard )
call EnableTrigger( gg_trg_Move_Piece0206_Hard )
call EnableTrigger( gg_trg_Move_Piece0207_Hard )
call EnableTrigger( gg_trg_Move_Piece0208_Hard )
call EnableTrigger( gg_trg_Move_Piece0209_Hard )
call EnableTrigger( gg_trg_Move_Piece0210_Hard )
call EnableTrigger( gg_trg_Move_Piece0211_Hard )
call EnableTrigger( gg_trg_Move_Piece0212_Hard )
endfunction
//===========================================================================
function InitTrig_Move_Piece0204_Hard takes nothing returns nothing
set gg_trg_Move_Piece0204_Hard = CreateTrigger( )
call DisableTrigger( gg_trg_Move_Piece0204_Hard )
call TriggerRegisterUnitEvent( gg_trg_Move_Piece0204_Hard, gg_unit_h01I_0421, EVENT_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Move_Piece0204_Hard, Condition( function Trig_Move_Piece0204_Hard_Conditions ) )
call TriggerAddAction( gg_trg_Move_Piece0204_Hard, function Trig_Move_Piece0204_Hard_Actions )
endfunction
function Trig_Move_Piece0205_Hard_Conditions takes nothing returns boolean
if ( not ( GetUnitFacing(GetAttacker()) > 20.00 ) ) then
return false
endif
if ( not ( GetUnitFacing(GetAttacker()) < 160.00 ) ) then
return false
endif
return true
endfunction
function Trig_Move_Piece0205_Hard_Func018001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0205_Hard_Func018002 takes nothing returns nothing
set udg_ColorWheel[1] = GetEnumUnit()
endfunction
function Trig_Move_Piece0205_Hard_Func019001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0205_Hard_Func019002 takes nothing returns nothing
set udg_ColorWheel[2] = GetEnumUnit()
endfunction
function Trig_Move_Piece0205_Hard_Func020001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0205_Hard_Func020002 takes nothing returns nothing
set udg_ColorWheel[3] = GetEnumUnit()
endfunction
function Trig_Move_Piece0205_Hard_Func021001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0205_Hard_Func021002 takes nothing returns nothing
set udg_ColorWheel[4] = GetEnumUnit()
endfunction
function Trig_Move_Piece0205_Hard_Func022001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0205_Hard_Func022002 takes nothing returns nothing
set udg_ColorWheel[5] = GetEnumUnit()
endfunction
function Trig_Move_Piece0205_Hard_Func023001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0205_Hard_Func023002 takes nothing returns nothing
set udg_ColorWheel[6] = GetEnumUnit()
endfunction
function Trig_Move_Piece0205_Hard_Func031001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0205_Hard_Func031002 takes nothing returns nothing
set udg_ColorWheel[1] = GetEnumUnit()
endfunction
function Trig_Move_Piece0205_Hard_Func032001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0205_Hard_Func032002 takes nothing returns nothing
set udg_ColorWheel[2] = GetEnumUnit()
endfunction
function Trig_Move_Piece0205_Hard_Func033001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0205_Hard_Func033002 takes nothing returns nothing
set udg_ColorWheel[3] = GetEnumUnit()
endfunction
function Trig_Move_Piece0205_Hard_Func034001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0205_Hard_Func034002 takes nothing returns nothing
set udg_ColorWheel[4] = GetEnumUnit()
endfunction
function Trig_Move_Piece0205_Hard_Func035001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0205_Hard_Func035002 takes nothing returns nothing
set udg_ColorWheel[5] = GetEnumUnit()
endfunction
function Trig_Move_Piece0205_Hard_Func036001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0205_Hard_Func036002 takes nothing returns nothing
set udg_ColorWheel[6] = GetEnumUnit()
endfunction
function Trig_Move_Piece0205_Hard_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Move_Piece0201_Hard )
call DisableTrigger( gg_trg_Move_Piece0202_Hard )
call DisableTrigger( gg_trg_Move_Piece0203_Hard )
call DisableTrigger( gg_trg_Move_Piece0204_Hard )
call DisableTrigger( gg_trg_Move_Piece0205_Hard )
call DisableTrigger( gg_trg_Move_Piece0206_Hard )
call DisableTrigger( gg_trg_Move_Piece0207_Hard )
call DisableTrigger( gg_trg_Move_Piece0208_Hard )
call DisableTrigger( gg_trg_Move_Piece0209_Hard )
call DisableTrigger( gg_trg_Move_Piece0210_Hard )
call DisableTrigger( gg_trg_Move_Piece0211_Hard )
call DisableTrigger( gg_trg_Move_Piece0212_Hard )
call IssuePointOrderLocBJ( udg_ColorWheel[3], "move", GetRectCenter(gg_rct_Rect_453_Copy) )
call IssuePointOrderLocBJ( udg_ColorWheel[2], "move", GetRectCenter(gg_rct_Rect_453_Copy_2) )
call TriggerSleepAction( 1.00 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453, Condition(function Trig_Move_Piece0205_Hard_Func018001002)), function Trig_Move_Piece0205_Hard_Func018002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy, Condition(function Trig_Move_Piece0205_Hard_Func019001002)), function Trig_Move_Piece0205_Hard_Func019002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_2, Condition(function Trig_Move_Piece0205_Hard_Func020001002)), function Trig_Move_Piece0205_Hard_Func020002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_3, Condition(function Trig_Move_Piece0205_Hard_Func021001002)), function Trig_Move_Piece0205_Hard_Func021002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_4, Condition(function Trig_Move_Piece0205_Hard_Func022001002)), function Trig_Move_Piece0205_Hard_Func022002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_5, Condition(function Trig_Move_Piece0205_Hard_Func023001002)), function Trig_Move_Piece0205_Hard_Func023002 )
call IssuePointOrderLocBJ( udg_ColorWheel[1], "move", GetRectCenter(gg_rct_Rect_453_Copy) )
call IssuePointOrderLocBJ( udg_ColorWheel[2], "move", GetRectCenter(gg_rct_Rect_453_Copy_2) )
call IssuePointOrderLocBJ( udg_ColorWheel[3], "move", GetRectCenter(gg_rct_Rect_453_Copy_3) )
call IssuePointOrderLocBJ( udg_ColorWheel[4], "move", GetRectCenter(gg_rct_Rect_453_Copy_4) )
call IssuePointOrderLocBJ( udg_ColorWheel[5], "move", GetRectCenter(gg_rct_Rect_453_Copy_5) )
call IssuePointOrderLocBJ( udg_ColorWheel[6], "move", GetRectCenter(gg_rct_Rect_453) )
call TriggerSleepAction( 1.00 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453, Condition(function Trig_Move_Piece0205_Hard_Func031001002)), function Trig_Move_Piece0205_Hard_Func031002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy, Condition(function Trig_Move_Piece0205_Hard_Func032001002)), function Trig_Move_Piece0205_Hard_Func032002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_2, Condition(function Trig_Move_Piece0205_Hard_Func033001002)), function Trig_Move_Piece0205_Hard_Func033002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_3, Condition(function Trig_Move_Piece0205_Hard_Func034001002)), function Trig_Move_Piece0205_Hard_Func034002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_4, Condition(function Trig_Move_Piece0205_Hard_Func035001002)), function Trig_Move_Piece0205_Hard_Func035002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_5, Condition(function Trig_Move_Piece0205_Hard_Func036001002)), function Trig_Move_Piece0205_Hard_Func036002 )
call ConditionalTriggerExecute( gg_trg_Win_Puzzle_1_Hard )
call TriggerSleepAction( 0.50 )
call EnableTrigger( gg_trg_Move_Piece0201_Hard )
call EnableTrigger( gg_trg_Move_Piece0202_Hard )
call EnableTrigger( gg_trg_Move_Piece0203_Hard )
call EnableTrigger( gg_trg_Move_Piece0204_Hard )
call EnableTrigger( gg_trg_Move_Piece0205_Hard )
call EnableTrigger( gg_trg_Move_Piece0206_Hard )
call EnableTrigger( gg_trg_Move_Piece0207_Hard )
call EnableTrigger( gg_trg_Move_Piece0208_Hard )
call EnableTrigger( gg_trg_Move_Piece0209_Hard )
call EnableTrigger( gg_trg_Move_Piece0210_Hard )
call EnableTrigger( gg_trg_Move_Piece0211_Hard )
call EnableTrigger( gg_trg_Move_Piece0212_Hard )
endfunction
//===========================================================================
function InitTrig_Move_Piece0205_Hard takes nothing returns nothing
set gg_trg_Move_Piece0205_Hard = CreateTrigger( )
call DisableTrigger( gg_trg_Move_Piece0205_Hard )
call TriggerRegisterUnitEvent( gg_trg_Move_Piece0205_Hard, gg_unit_h01I_0422, EVENT_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Move_Piece0205_Hard, Condition( function Trig_Move_Piece0205_Hard_Conditions ) )
call TriggerAddAction( gg_trg_Move_Piece0205_Hard, function Trig_Move_Piece0205_Hard_Actions )
endfunction
function Trig_Move_Piece0206_Hard_Conditions takes nothing returns boolean
if ( not ( GetUnitFacing(GetAttacker()) > 180.00 ) ) then
return false
endif
if ( not ( GetUnitFacing(GetAttacker()) < 270.00 ) ) then
return false
endif
return true
endfunction
function Trig_Move_Piece0206_Hard_Func019001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0206_Hard_Func019002 takes nothing returns nothing
set udg_ColorWheel[1] = GetEnumUnit()
endfunction
function Trig_Move_Piece0206_Hard_Func020001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0206_Hard_Func020002 takes nothing returns nothing
set udg_ColorWheel[2] = GetEnumUnit()
endfunction
function Trig_Move_Piece0206_Hard_Func021001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0206_Hard_Func021002 takes nothing returns nothing
set udg_ColorWheel[3] = GetEnumUnit()
endfunction
function Trig_Move_Piece0206_Hard_Func022001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0206_Hard_Func022002 takes nothing returns nothing
set udg_ColorWheel[4] = GetEnumUnit()
endfunction
function Trig_Move_Piece0206_Hard_Func023001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0206_Hard_Func023002 takes nothing returns nothing
set udg_ColorWheel[5] = GetEnumUnit()
endfunction
function Trig_Move_Piece0206_Hard_Func024001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0206_Hard_Func024002 takes nothing returns nothing
set udg_ColorWheel[6] = GetEnumUnit()
endfunction
function Trig_Move_Piece0206_Hard_Func032001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0206_Hard_Func032002 takes nothing returns nothing
set udg_ColorWheel[1] = GetEnumUnit()
endfunction
function Trig_Move_Piece0206_Hard_Func033001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0206_Hard_Func033002 takes nothing returns nothing
set udg_ColorWheel[2] = GetEnumUnit()
endfunction
function Trig_Move_Piece0206_Hard_Func034001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0206_Hard_Func034002 takes nothing returns nothing
set udg_ColorWheel[3] = GetEnumUnit()
endfunction
function Trig_Move_Piece0206_Hard_Func035001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0206_Hard_Func035002 takes nothing returns nothing
set udg_ColorWheel[4] = GetEnumUnit()
endfunction
function Trig_Move_Piece0206_Hard_Func036001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0206_Hard_Func036002 takes nothing returns nothing
set udg_ColorWheel[5] = GetEnumUnit()
endfunction
function Trig_Move_Piece0206_Hard_Func037001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0206_Hard_Func037002 takes nothing returns nothing
set udg_ColorWheel[6] = GetEnumUnit()
endfunction
function Trig_Move_Piece0206_Hard_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Move_Piece0201_Hard )
call DisableTrigger( gg_trg_Move_Piece0202_Hard )
call DisableTrigger( gg_trg_Move_Piece0203_Hard )
call DisableTrigger( gg_trg_Move_Piece0204_Hard )
call DisableTrigger( gg_trg_Move_Piece0205_Hard )
call DisableTrigger( gg_trg_Move_Piece0206_Hard )
call DisableTrigger( gg_trg_Move_Piece0207_Hard )
call DisableTrigger( gg_trg_Move_Piece0208_Hard )
call DisableTrigger( gg_trg_Move_Piece0209_Hard )
call DisableTrigger( gg_trg_Move_Piece0210_Hard )
call DisableTrigger( gg_trg_Move_Piece0211_Hard )
call DisableTrigger( gg_trg_Move_Piece0212_Hard )
call IssuePointOrderLocBJ( udg_ColorWheel[3], "move", GetRectCenter(gg_rct_Rect_453_Copy_3) )
call IssuePointOrderLocBJ( udg_ColorWheel[4], "move", GetRectCenter(gg_rct_Rect_453_Copy_2) )
call TriggerSleepAction( 1.00 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453, Condition(function Trig_Move_Piece0206_Hard_Func019001002)), function Trig_Move_Piece0206_Hard_Func019002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy, Condition(function Trig_Move_Piece0206_Hard_Func020001002)), function Trig_Move_Piece0206_Hard_Func020002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_2, Condition(function Trig_Move_Piece0206_Hard_Func021001002)), function Trig_Move_Piece0206_Hard_Func021002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_3, Condition(function Trig_Move_Piece0206_Hard_Func022001002)), function Trig_Move_Piece0206_Hard_Func022002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_4, Condition(function Trig_Move_Piece0206_Hard_Func023001002)), function Trig_Move_Piece0206_Hard_Func023002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_5, Condition(function Trig_Move_Piece0206_Hard_Func024001002)), function Trig_Move_Piece0206_Hard_Func024002 )
call IssuePointOrderLocBJ( udg_ColorWheel[1], "move", GetRectCenter(gg_rct_Rect_453_Copy_5) )
call IssuePointOrderLocBJ( udg_ColorWheel[2], "move", GetRectCenter(gg_rct_Rect_453) )
call IssuePointOrderLocBJ( udg_ColorWheel[3], "move", GetRectCenter(gg_rct_Rect_453_Copy) )
call IssuePointOrderLocBJ( udg_ColorWheel[4], "move", GetRectCenter(gg_rct_Rect_453_Copy_2) )
call IssuePointOrderLocBJ( udg_ColorWheel[5], "move", GetRectCenter(gg_rct_Rect_453_Copy_3) )
call IssuePointOrderLocBJ( udg_ColorWheel[6], "move", GetRectCenter(gg_rct_Rect_453_Copy_4) )
call TriggerSleepAction( 1.00 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453, Condition(function Trig_Move_Piece0206_Hard_Func032001002)), function Trig_Move_Piece0206_Hard_Func032002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy, Condition(function Trig_Move_Piece0206_Hard_Func033001002)), function Trig_Move_Piece0206_Hard_Func033002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_2, Condition(function Trig_Move_Piece0206_Hard_Func034001002)), function Trig_Move_Piece0206_Hard_Func034002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_3, Condition(function Trig_Move_Piece0206_Hard_Func035001002)), function Trig_Move_Piece0206_Hard_Func035002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_4, Condition(function Trig_Move_Piece0206_Hard_Func036001002)), function Trig_Move_Piece0206_Hard_Func036002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_5, Condition(function Trig_Move_Piece0206_Hard_Func037001002)), function Trig_Move_Piece0206_Hard_Func037002 )
call ConditionalTriggerExecute( gg_trg_Win_Puzzle_1_Hard )
call TriggerSleepAction( 0.50 )
call EnableTrigger( gg_trg_Move_Piece0201_Hard )
call EnableTrigger( gg_trg_Move_Piece0202_Hard )
call EnableTrigger( gg_trg_Move_Piece0203_Hard )
call EnableTrigger( gg_trg_Move_Piece0204_Hard )
call EnableTrigger( gg_trg_Move_Piece0205_Hard )
call EnableTrigger( gg_trg_Move_Piece0206_Hard )
call EnableTrigger( gg_trg_Move_Piece0207_Hard )
call EnableTrigger( gg_trg_Move_Piece0208_Hard )
call EnableTrigger( gg_trg_Move_Piece0209_Hard )
call EnableTrigger( gg_trg_Move_Piece0210_Hard )
call EnableTrigger( gg_trg_Move_Piece0211_Hard )
call EnableTrigger( gg_trg_Move_Piece0212_Hard )
endfunction
//===========================================================================
function InitTrig_Move_Piece0206_Hard takes nothing returns nothing
set gg_trg_Move_Piece0206_Hard = CreateTrigger( )
call DisableTrigger( gg_trg_Move_Piece0206_Hard )
call TriggerRegisterUnitEvent( gg_trg_Move_Piece0206_Hard, gg_unit_h01I_0422, EVENT_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Move_Piece0206_Hard, Condition( function Trig_Move_Piece0206_Hard_Conditions ) )
call TriggerAddAction( gg_trg_Move_Piece0206_Hard, function Trig_Move_Piece0206_Hard_Actions )
endfunction
function Trig_Move_Piece0207_Hard_Conditions takes nothing returns boolean
if ( not ( GetUnitFacing(GetAttacker()) > 0.00 ) ) then
return false
endif
if ( not ( GetUnitFacing(GetAttacker()) < 90.00 ) ) then
return false
endif
return true
endfunction
function Trig_Move_Piece0207_Hard_Func018001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0207_Hard_Func018002 takes nothing returns nothing
set udg_ColorWheel[1] = GetEnumUnit()
endfunction
function Trig_Move_Piece0207_Hard_Func019001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0207_Hard_Func019002 takes nothing returns nothing
set udg_ColorWheel[2] = GetEnumUnit()
endfunction
function Trig_Move_Piece0207_Hard_Func020001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0207_Hard_Func020002 takes nothing returns nothing
set udg_ColorWheel[3] = GetEnumUnit()
endfunction
function Trig_Move_Piece0207_Hard_Func021001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0207_Hard_Func021002 takes nothing returns nothing
set udg_ColorWheel[4] = GetEnumUnit()
endfunction
function Trig_Move_Piece0207_Hard_Func022001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0207_Hard_Func022002 takes nothing returns nothing
set udg_ColorWheel[5] = GetEnumUnit()
endfunction
function Trig_Move_Piece0207_Hard_Func023001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0207_Hard_Func023002 takes nothing returns nothing
set udg_ColorWheel[6] = GetEnumUnit()
endfunction
function Trig_Move_Piece0207_Hard_Func031001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0207_Hard_Func031002 takes nothing returns nothing
set udg_ColorWheel[1] = GetEnumUnit()
endfunction
function Trig_Move_Piece0207_Hard_Func032001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0207_Hard_Func032002 takes nothing returns nothing
set udg_ColorWheel[2] = GetEnumUnit()
endfunction
function Trig_Move_Piece0207_Hard_Func033001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0207_Hard_Func033002 takes nothing returns nothing
set udg_ColorWheel[3] = GetEnumUnit()
endfunction
function Trig_Move_Piece0207_Hard_Func034001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0207_Hard_Func034002 takes nothing returns nothing
set udg_ColorWheel[4] = GetEnumUnit()
endfunction
function Trig_Move_Piece0207_Hard_Func035001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0207_Hard_Func035002 takes nothing returns nothing
set udg_ColorWheel[5] = GetEnumUnit()
endfunction
function Trig_Move_Piece0207_Hard_Func036001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0207_Hard_Func036002 takes nothing returns nothing
set udg_ColorWheel[6] = GetEnumUnit()
endfunction
function Trig_Move_Piece0207_Hard_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Move_Piece0201_Hard )
call DisableTrigger( gg_trg_Move_Piece0202_Hard )
call DisableTrigger( gg_trg_Move_Piece0203_Hard )
call DisableTrigger( gg_trg_Move_Piece0204_Hard )
call DisableTrigger( gg_trg_Move_Piece0205_Hard )
call DisableTrigger( gg_trg_Move_Piece0206_Hard )
call DisableTrigger( gg_trg_Move_Piece0207_Hard )
call DisableTrigger( gg_trg_Move_Piece0208_Hard )
call DisableTrigger( gg_trg_Move_Piece0209_Hard )
call DisableTrigger( gg_trg_Move_Piece0210_Hard )
call DisableTrigger( gg_trg_Move_Piece0211_Hard )
call DisableTrigger( gg_trg_Move_Piece0212_Hard )
call IssuePointOrderLocBJ( udg_ColorWheel[4], "move", GetRectCenter(gg_rct_Rect_453_Copy_2) )
call IssuePointOrderLocBJ( udg_ColorWheel[3], "move", GetRectCenter(gg_rct_Rect_453_Copy_3) )
call TriggerSleepAction( 1.00 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453, Condition(function Trig_Move_Piece0207_Hard_Func018001002)), function Trig_Move_Piece0207_Hard_Func018002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy, Condition(function Trig_Move_Piece0207_Hard_Func019001002)), function Trig_Move_Piece0207_Hard_Func019002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_2, Condition(function Trig_Move_Piece0207_Hard_Func020001002)), function Trig_Move_Piece0207_Hard_Func020002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_3, Condition(function Trig_Move_Piece0207_Hard_Func021001002)), function Trig_Move_Piece0207_Hard_Func021002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_4, Condition(function Trig_Move_Piece0207_Hard_Func022001002)), function Trig_Move_Piece0207_Hard_Func022002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_5, Condition(function Trig_Move_Piece0207_Hard_Func023001002)), function Trig_Move_Piece0207_Hard_Func023002 )
call IssuePointOrderLocBJ( udg_ColorWheel[1], "move", GetRectCenter(gg_rct_Rect_453_Copy) )
call IssuePointOrderLocBJ( udg_ColorWheel[2], "move", GetRectCenter(gg_rct_Rect_453_Copy_2) )
call IssuePointOrderLocBJ( udg_ColorWheel[3], "move", GetRectCenter(gg_rct_Rect_453_Copy_3) )
call IssuePointOrderLocBJ( udg_ColorWheel[4], "move", GetRectCenter(gg_rct_Rect_453_Copy_4) )
call IssuePointOrderLocBJ( udg_ColorWheel[5], "move", GetRectCenter(gg_rct_Rect_453_Copy_5) )
call IssuePointOrderLocBJ( udg_ColorWheel[6], "move", GetRectCenter(gg_rct_Rect_453) )
call TriggerSleepAction( 1.00 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453, Condition(function Trig_Move_Piece0207_Hard_Func031001002)), function Trig_Move_Piece0207_Hard_Func031002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy, Condition(function Trig_Move_Piece0207_Hard_Func032001002)), function Trig_Move_Piece0207_Hard_Func032002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_2, Condition(function Trig_Move_Piece0207_Hard_Func033001002)), function Trig_Move_Piece0207_Hard_Func033002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_3, Condition(function Trig_Move_Piece0207_Hard_Func034001002)), function Trig_Move_Piece0207_Hard_Func034002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_4, Condition(function Trig_Move_Piece0207_Hard_Func035001002)), function Trig_Move_Piece0207_Hard_Func035002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_5, Condition(function Trig_Move_Piece0207_Hard_Func036001002)), function Trig_Move_Piece0207_Hard_Func036002 )
call ConditionalTriggerExecute( gg_trg_Win_Puzzle_1_Hard )
call TriggerSleepAction( 0.50 )
call EnableTrigger( gg_trg_Move_Piece0201_Hard )
call EnableTrigger( gg_trg_Move_Piece0202_Hard )
call EnableTrigger( gg_trg_Move_Piece0203_Hard )
call EnableTrigger( gg_trg_Move_Piece0204_Hard )
call EnableTrigger( gg_trg_Move_Piece0205_Hard )
call EnableTrigger( gg_trg_Move_Piece0206_Hard )
call EnableTrigger( gg_trg_Move_Piece0207_Hard )
call EnableTrigger( gg_trg_Move_Piece0208_Hard )
call EnableTrigger( gg_trg_Move_Piece0209_Hard )
call EnableTrigger( gg_trg_Move_Piece0210_Hard )
call EnableTrigger( gg_trg_Move_Piece0211_Hard )
call EnableTrigger( gg_trg_Move_Piece0212_Hard )
endfunction
//===========================================================================
function InitTrig_Move_Piece0207_Hard takes nothing returns nothing
set gg_trg_Move_Piece0207_Hard = CreateTrigger( )
call DisableTrigger( gg_trg_Move_Piece0207_Hard )
call TriggerRegisterUnitEvent( gg_trg_Move_Piece0207_Hard, gg_unit_h01I_0423, EVENT_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Move_Piece0207_Hard, Condition( function Trig_Move_Piece0207_Hard_Conditions ) )
call TriggerAddAction( gg_trg_Move_Piece0207_Hard, function Trig_Move_Piece0207_Hard_Actions )
endfunction
function Trig_Move_Piece0208_Hard_Conditions takes nothing returns boolean
if ( not ( GetUnitFacing(GetAttacker()) > 90.00 ) ) then
return false
endif
if ( not ( GetUnitFacing(GetAttacker()) < 180.00 ) ) then
return false
endif
return true
endfunction
function Trig_Move_Piece0208_Hard_Func018001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0208_Hard_Func018002 takes nothing returns nothing
set udg_ColorWheel[1] = GetEnumUnit()
endfunction
function Trig_Move_Piece0208_Hard_Func019001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0208_Hard_Func019002 takes nothing returns nothing
set udg_ColorWheel[2] = GetEnumUnit()
endfunction
function Trig_Move_Piece0208_Hard_Func020001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0208_Hard_Func020002 takes nothing returns nothing
set udg_ColorWheel[3] = GetEnumUnit()
endfunction
function Trig_Move_Piece0208_Hard_Func021001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0208_Hard_Func021002 takes nothing returns nothing
set udg_ColorWheel[4] = GetEnumUnit()
endfunction
function Trig_Move_Piece0208_Hard_Func022001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0208_Hard_Func022002 takes nothing returns nothing
set udg_ColorWheel[5] = GetEnumUnit()
endfunction
function Trig_Move_Piece0208_Hard_Func023001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0208_Hard_Func023002 takes nothing returns nothing
set udg_ColorWheel[6] = GetEnumUnit()
endfunction
function Trig_Move_Piece0208_Hard_Func031001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0208_Hard_Func031002 takes nothing returns nothing
set udg_ColorWheel[1] = GetEnumUnit()
endfunction
function Trig_Move_Piece0208_Hard_Func032001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0208_Hard_Func032002 takes nothing returns nothing
set udg_ColorWheel[2] = GetEnumUnit()
endfunction
function Trig_Move_Piece0208_Hard_Func033001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0208_Hard_Func033002 takes nothing returns nothing
set udg_ColorWheel[3] = GetEnumUnit()
endfunction
function Trig_Move_Piece0208_Hard_Func034001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0208_Hard_Func034002 takes nothing returns nothing
set udg_ColorWheel[4] = GetEnumUnit()
endfunction
function Trig_Move_Piece0208_Hard_Func035001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0208_Hard_Func035002 takes nothing returns nothing
set udg_ColorWheel[5] = GetEnumUnit()
endfunction
function Trig_Move_Piece0208_Hard_Func036001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0208_Hard_Func036002 takes nothing returns nothing
set udg_ColorWheel[6] = GetEnumUnit()
endfunction
function Trig_Move_Piece0208_Hard_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Move_Piece0201_Hard )
call DisableTrigger( gg_trg_Move_Piece0202_Hard )
call DisableTrigger( gg_trg_Move_Piece0203_Hard )
call DisableTrigger( gg_trg_Move_Piece0204_Hard )
call DisableTrigger( gg_trg_Move_Piece0205_Hard )
call DisableTrigger( gg_trg_Move_Piece0206_Hard )
call DisableTrigger( gg_trg_Move_Piece0207_Hard )
call DisableTrigger( gg_trg_Move_Piece0208_Hard )
call DisableTrigger( gg_trg_Move_Piece0209_Hard )
call DisableTrigger( gg_trg_Move_Piece0210_Hard )
call DisableTrigger( gg_trg_Move_Piece0211_Hard )
call DisableTrigger( gg_trg_Move_Piece0212_Hard )
call IssuePointOrderLocBJ( udg_ColorWheel[4], "move", GetRectCenter(gg_rct_Rect_453_Copy_4) )
call IssuePointOrderLocBJ( udg_ColorWheel[5], "move", GetRectCenter(gg_rct_Rect_453_Copy_3) )
call TriggerSleepAction( 1.00 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453, Condition(function Trig_Move_Piece0208_Hard_Func018001002)), function Trig_Move_Piece0208_Hard_Func018002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy, Condition(function Trig_Move_Piece0208_Hard_Func019001002)), function Trig_Move_Piece0208_Hard_Func019002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_2, Condition(function Trig_Move_Piece0208_Hard_Func020001002)), function Trig_Move_Piece0208_Hard_Func020002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_3, Condition(function Trig_Move_Piece0208_Hard_Func021001002)), function Trig_Move_Piece0208_Hard_Func021002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_4, Condition(function Trig_Move_Piece0208_Hard_Func022001002)), function Trig_Move_Piece0208_Hard_Func022002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_5, Condition(function Trig_Move_Piece0208_Hard_Func023001002)), function Trig_Move_Piece0208_Hard_Func023002 )
call IssuePointOrderLocBJ( udg_ColorWheel[1], "move", GetRectCenter(gg_rct_Rect_453_Copy_5) )
call IssuePointOrderLocBJ( udg_ColorWheel[2], "move", GetRectCenter(gg_rct_Rect_453) )
call IssuePointOrderLocBJ( udg_ColorWheel[3], "move", GetRectCenter(gg_rct_Rect_453_Copy) )
call IssuePointOrderLocBJ( udg_ColorWheel[4], "move", GetRectCenter(gg_rct_Rect_453_Copy_2) )
call IssuePointOrderLocBJ( udg_ColorWheel[5], "move", GetRectCenter(gg_rct_Rect_453_Copy_3) )
call IssuePointOrderLocBJ( udg_ColorWheel[6], "move", GetRectCenter(gg_rct_Rect_453_Copy_4) )
call TriggerSleepAction( 1.00 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453, Condition(function Trig_Move_Piece0208_Hard_Func031001002)), function Trig_Move_Piece0208_Hard_Func031002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy, Condition(function Trig_Move_Piece0208_Hard_Func032001002)), function Trig_Move_Piece0208_Hard_Func032002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_2, Condition(function Trig_Move_Piece0208_Hard_Func033001002)), function Trig_Move_Piece0208_Hard_Func033002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_3, Condition(function Trig_Move_Piece0208_Hard_Func034001002)), function Trig_Move_Piece0208_Hard_Func034002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_4, Condition(function Trig_Move_Piece0208_Hard_Func035001002)), function Trig_Move_Piece0208_Hard_Func035002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_5, Condition(function Trig_Move_Piece0208_Hard_Func036001002)), function Trig_Move_Piece0208_Hard_Func036002 )
call ConditionalTriggerExecute( gg_trg_Win_Puzzle_1_Hard )
call TriggerSleepAction( 0.50 )
call EnableTrigger( gg_trg_Move_Piece0201_Hard )
call EnableTrigger( gg_trg_Move_Piece0202_Hard )
call EnableTrigger( gg_trg_Move_Piece0203_Hard )
call EnableTrigger( gg_trg_Move_Piece0204_Hard )
call EnableTrigger( gg_trg_Move_Piece0205_Hard )
call EnableTrigger( gg_trg_Move_Piece0206_Hard )
call EnableTrigger( gg_trg_Move_Piece0207_Hard )
call EnableTrigger( gg_trg_Move_Piece0208_Hard )
call EnableTrigger( gg_trg_Move_Piece0209_Hard )
call EnableTrigger( gg_trg_Move_Piece0210_Hard )
call EnableTrigger( gg_trg_Move_Piece0211_Hard )
call EnableTrigger( gg_trg_Move_Piece0212_Hard )
endfunction
//===========================================================================
function InitTrig_Move_Piece0208_Hard takes nothing returns nothing
set gg_trg_Move_Piece0208_Hard = CreateTrigger( )
call DisableTrigger( gg_trg_Move_Piece0208_Hard )
call TriggerRegisterUnitEvent( gg_trg_Move_Piece0208_Hard, gg_unit_h01I_0423, EVENT_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Move_Piece0208_Hard, Condition( function Trig_Move_Piece0208_Hard_Conditions ) )
call TriggerAddAction( gg_trg_Move_Piece0208_Hard, function Trig_Move_Piece0208_Hard_Actions )
endfunction
function Trig_Move_Piece0209_Hard_Conditions takes nothing returns boolean
if ( not ( GetUnitFacing(GetAttacker()) > 270.00 ) ) then
return false
endif
if ( not ( GetUnitFacing(GetAttacker()) < 360.00 ) ) then
return false
endif
return true
endfunction
function Trig_Move_Piece0209_Hard_Func018001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0209_Hard_Func018002 takes nothing returns nothing
set udg_ColorWheel[1] = GetEnumUnit()
endfunction
function Trig_Move_Piece0209_Hard_Func019001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0209_Hard_Func019002 takes nothing returns nothing
set udg_ColorWheel[2] = GetEnumUnit()
endfunction
function Trig_Move_Piece0209_Hard_Func020001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0209_Hard_Func020002 takes nothing returns nothing
set udg_ColorWheel[3] = GetEnumUnit()
endfunction
function Trig_Move_Piece0209_Hard_Func021001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0209_Hard_Func021002 takes nothing returns nothing
set udg_ColorWheel[4] = GetEnumUnit()
endfunction
function Trig_Move_Piece0209_Hard_Func022001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0209_Hard_Func022002 takes nothing returns nothing
set udg_ColorWheel[5] = GetEnumUnit()
endfunction
function Trig_Move_Piece0209_Hard_Func023001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0209_Hard_Func023002 takes nothing returns nothing
set udg_ColorWheel[6] = GetEnumUnit()
endfunction
function Trig_Move_Piece0209_Hard_Func031001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0209_Hard_Func031002 takes nothing returns nothing
set udg_ColorWheel[1] = GetEnumUnit()
endfunction
function Trig_Move_Piece0209_Hard_Func032001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0209_Hard_Func032002 takes nothing returns nothing
set udg_ColorWheel[2] = GetEnumUnit()
endfunction
function Trig_Move_Piece0209_Hard_Func033001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0209_Hard_Func033002 takes nothing returns nothing
set udg_ColorWheel[3] = GetEnumUnit()
endfunction
function Trig_Move_Piece0209_Hard_Func034001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0209_Hard_Func034002 takes nothing returns nothing
set udg_ColorWheel[4] = GetEnumUnit()
endfunction
function Trig_Move_Piece0209_Hard_Func035001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0209_Hard_Func035002 takes nothing returns nothing
set udg_ColorWheel[5] = GetEnumUnit()
endfunction
function Trig_Move_Piece0209_Hard_Func036001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0209_Hard_Func036002 takes nothing returns nothing
set udg_ColorWheel[6] = GetEnumUnit()
endfunction
function Trig_Move_Piece0209_Hard_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Move_Piece0201_Hard )
call DisableTrigger( gg_trg_Move_Piece0202_Hard )
call DisableTrigger( gg_trg_Move_Piece0203_Hard )
call DisableTrigger( gg_trg_Move_Piece0204_Hard )
call DisableTrigger( gg_trg_Move_Piece0205_Hard )
call DisableTrigger( gg_trg_Move_Piece0206_Hard )
call DisableTrigger( gg_trg_Move_Piece0207_Hard )
call DisableTrigger( gg_trg_Move_Piece0208_Hard )
call DisableTrigger( gg_trg_Move_Piece0209_Hard )
call DisableTrigger( gg_trg_Move_Piece0210_Hard )
call DisableTrigger( gg_trg_Move_Piece0211_Hard )
call DisableTrigger( gg_trg_Move_Piece0212_Hard )
call IssuePointOrderLocBJ( udg_ColorWheel[5], "move", GetRectCenter(gg_rct_Rect_453_Copy_3) )
call IssuePointOrderLocBJ( udg_ColorWheel[4], "move", GetRectCenter(gg_rct_Rect_453_Copy_4) )
call TriggerSleepAction( 1.00 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453, Condition(function Trig_Move_Piece0209_Hard_Func018001002)), function Trig_Move_Piece0209_Hard_Func018002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy, Condition(function Trig_Move_Piece0209_Hard_Func019001002)), function Trig_Move_Piece0209_Hard_Func019002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_2, Condition(function Trig_Move_Piece0209_Hard_Func020001002)), function Trig_Move_Piece0209_Hard_Func020002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_3, Condition(function Trig_Move_Piece0209_Hard_Func021001002)), function Trig_Move_Piece0209_Hard_Func021002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_4, Condition(function Trig_Move_Piece0209_Hard_Func022001002)), function Trig_Move_Piece0209_Hard_Func022002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_5, Condition(function Trig_Move_Piece0209_Hard_Func023001002)), function Trig_Move_Piece0209_Hard_Func023002 )
call IssuePointOrderLocBJ( udg_ColorWheel[1], "move", GetRectCenter(gg_rct_Rect_453_Copy) )
call IssuePointOrderLocBJ( udg_ColorWheel[2], "move", GetRectCenter(gg_rct_Rect_453_Copy_2) )
call IssuePointOrderLocBJ( udg_ColorWheel[3], "move", GetRectCenter(gg_rct_Rect_453_Copy_3) )
call IssuePointOrderLocBJ( udg_ColorWheel[4], "move", GetRectCenter(gg_rct_Rect_453_Copy_4) )
call IssuePointOrderLocBJ( udg_ColorWheel[5], "move", GetRectCenter(gg_rct_Rect_453_Copy_5) )
call IssuePointOrderLocBJ( udg_ColorWheel[6], "move", GetRectCenter(gg_rct_Rect_453) )
call TriggerSleepAction( 1.00 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453, Condition(function Trig_Move_Piece0209_Hard_Func031001002)), function Trig_Move_Piece0209_Hard_Func031002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy, Condition(function Trig_Move_Piece0209_Hard_Func032001002)), function Trig_Move_Piece0209_Hard_Func032002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_2, Condition(function Trig_Move_Piece0209_Hard_Func033001002)), function Trig_Move_Piece0209_Hard_Func033002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_3, Condition(function Trig_Move_Piece0209_Hard_Func034001002)), function Trig_Move_Piece0209_Hard_Func034002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_4, Condition(function Trig_Move_Piece0209_Hard_Func035001002)), function Trig_Move_Piece0209_Hard_Func035002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_5, Condition(function Trig_Move_Piece0209_Hard_Func036001002)), function Trig_Move_Piece0209_Hard_Func036002 )
call ConditionalTriggerExecute( gg_trg_Win_Puzzle_1_Hard )
call TriggerSleepAction( 0.50 )
call EnableTrigger( gg_trg_Move_Piece0201_Hard )
call EnableTrigger( gg_trg_Move_Piece0202_Hard )
call EnableTrigger( gg_trg_Move_Piece0203_Hard )
call EnableTrigger( gg_trg_Move_Piece0204_Hard )
call EnableTrigger( gg_trg_Move_Piece0205_Hard )
call EnableTrigger( gg_trg_Move_Piece0206_Hard )
call EnableTrigger( gg_trg_Move_Piece0207_Hard )
call EnableTrigger( gg_trg_Move_Piece0208_Hard )
call EnableTrigger( gg_trg_Move_Piece0209_Hard )
call EnableTrigger( gg_trg_Move_Piece0210_Hard )
call EnableTrigger( gg_trg_Move_Piece0211_Hard )
call EnableTrigger( gg_trg_Move_Piece0212_Hard )
endfunction
//===========================================================================
function InitTrig_Move_Piece0209_Hard takes nothing returns nothing
set gg_trg_Move_Piece0209_Hard = CreateTrigger( )
call DisableTrigger( gg_trg_Move_Piece0209_Hard )
call TriggerRegisterUnitEvent( gg_trg_Move_Piece0209_Hard, gg_unit_h01I_0424, EVENT_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Move_Piece0209_Hard, Condition( function Trig_Move_Piece0209_Hard_Conditions ) )
call TriggerAddAction( gg_trg_Move_Piece0209_Hard, function Trig_Move_Piece0209_Hard_Actions )
endfunction
function Trig_Move_Piece0210_Hard_Conditions takes nothing returns boolean
if ( not ( GetUnitFacing(GetAttacker()) > 20.00 ) ) then
return false
endif
if ( not ( GetUnitFacing(GetAttacker()) < 160.00 ) ) then
return false
endif
return true
endfunction
function Trig_Move_Piece0210_Hard_Func018001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0210_Hard_Func018002 takes nothing returns nothing
set udg_ColorWheel[1] = GetEnumUnit()
endfunction
function Trig_Move_Piece0210_Hard_Func019001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0210_Hard_Func019002 takes nothing returns nothing
set udg_ColorWheel[2] = GetEnumUnit()
endfunction
function Trig_Move_Piece0210_Hard_Func020001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0210_Hard_Func020002 takes nothing returns nothing
set udg_ColorWheel[3] = GetEnumUnit()
endfunction
function Trig_Move_Piece0210_Hard_Func021001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0210_Hard_Func021002 takes nothing returns nothing
set udg_ColorWheel[4] = GetEnumUnit()
endfunction
function Trig_Move_Piece0210_Hard_Func022001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0210_Hard_Func022002 takes nothing returns nothing
set udg_ColorWheel[5] = GetEnumUnit()
endfunction
function Trig_Move_Piece0210_Hard_Func023001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0210_Hard_Func023002 takes nothing returns nothing
set udg_ColorWheel[6] = GetEnumUnit()
endfunction
function Trig_Move_Piece0210_Hard_Func031001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0210_Hard_Func031002 takes nothing returns nothing
set udg_ColorWheel[1] = GetEnumUnit()
endfunction
function Trig_Move_Piece0210_Hard_Func032001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0210_Hard_Func032002 takes nothing returns nothing
set udg_ColorWheel[2] = GetEnumUnit()
endfunction
function Trig_Move_Piece0210_Hard_Func033001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0210_Hard_Func033002 takes nothing returns nothing
set udg_ColorWheel[3] = GetEnumUnit()
endfunction
function Trig_Move_Piece0210_Hard_Func034001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0210_Hard_Func034002 takes nothing returns nothing
set udg_ColorWheel[4] = GetEnumUnit()
endfunction
function Trig_Move_Piece0210_Hard_Func035001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0210_Hard_Func035002 takes nothing returns nothing
set udg_ColorWheel[5] = GetEnumUnit()
endfunction
function Trig_Move_Piece0210_Hard_Func036001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0210_Hard_Func036002 takes nothing returns nothing
set udg_ColorWheel[6] = GetEnumUnit()
endfunction
function Trig_Move_Piece0210_Hard_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Move_Piece0201_Hard )
call DisableTrigger( gg_trg_Move_Piece0202_Hard )
call DisableTrigger( gg_trg_Move_Piece0203_Hard )
call DisableTrigger( gg_trg_Move_Piece0204_Hard )
call DisableTrigger( gg_trg_Move_Piece0205_Hard )
call DisableTrigger( gg_trg_Move_Piece0206_Hard )
call DisableTrigger( gg_trg_Move_Piece0207_Hard )
call DisableTrigger( gg_trg_Move_Piece0208_Hard )
call DisableTrigger( gg_trg_Move_Piece0209_Hard )
call DisableTrigger( gg_trg_Move_Piece0210_Hard )
call DisableTrigger( gg_trg_Move_Piece0211_Hard )
call DisableTrigger( gg_trg_Move_Piece0212_Hard )
call IssuePointOrderLocBJ( udg_ColorWheel[5], "move", GetRectCenter(gg_rct_Rect_453_Copy_5) )
call IssuePointOrderLocBJ( udg_ColorWheel[6], "move", GetRectCenter(gg_rct_Rect_453_Copy_4) )
call TriggerSleepAction( 1.00 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453, Condition(function Trig_Move_Piece0210_Hard_Func018001002)), function Trig_Move_Piece0210_Hard_Func018002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy, Condition(function Trig_Move_Piece0210_Hard_Func019001002)), function Trig_Move_Piece0210_Hard_Func019002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_2, Condition(function Trig_Move_Piece0210_Hard_Func020001002)), function Trig_Move_Piece0210_Hard_Func020002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_3, Condition(function Trig_Move_Piece0210_Hard_Func021001002)), function Trig_Move_Piece0210_Hard_Func021002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_4, Condition(function Trig_Move_Piece0210_Hard_Func022001002)), function Trig_Move_Piece0210_Hard_Func022002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_5, Condition(function Trig_Move_Piece0210_Hard_Func023001002)), function Trig_Move_Piece0210_Hard_Func023002 )
call IssuePointOrderLocBJ( udg_ColorWheel[1], "move", GetRectCenter(gg_rct_Rect_453_Copy_5) )
call IssuePointOrderLocBJ( udg_ColorWheel[2], "move", GetRectCenter(gg_rct_Rect_453) )
call IssuePointOrderLocBJ( udg_ColorWheel[3], "move", GetRectCenter(gg_rct_Rect_453_Copy) )
call IssuePointOrderLocBJ( udg_ColorWheel[4], "move", GetRectCenter(gg_rct_Rect_453_Copy_2) )
call IssuePointOrderLocBJ( udg_ColorWheel[5], "move", GetRectCenter(gg_rct_Rect_453_Copy_3) )
call IssuePointOrderLocBJ( udg_ColorWheel[6], "move", GetRectCenter(gg_rct_Rect_453_Copy_4) )
call TriggerSleepAction( 1.00 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453, Condition(function Trig_Move_Piece0210_Hard_Func031001002)), function Trig_Move_Piece0210_Hard_Func031002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy, Condition(function Trig_Move_Piece0210_Hard_Func032001002)), function Trig_Move_Piece0210_Hard_Func032002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_2, Condition(function Trig_Move_Piece0210_Hard_Func033001002)), function Trig_Move_Piece0210_Hard_Func033002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_3, Condition(function Trig_Move_Piece0210_Hard_Func034001002)), function Trig_Move_Piece0210_Hard_Func034002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_4, Condition(function Trig_Move_Piece0210_Hard_Func035001002)), function Trig_Move_Piece0210_Hard_Func035002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_5, Condition(function Trig_Move_Piece0210_Hard_Func036001002)), function Trig_Move_Piece0210_Hard_Func036002 )
call ConditionalTriggerExecute( gg_trg_Win_Puzzle_1_Hard )
call TriggerSleepAction( 0.50 )
call EnableTrigger( gg_trg_Move_Piece0201_Hard )
call EnableTrigger( gg_trg_Move_Piece0202_Hard )
call EnableTrigger( gg_trg_Move_Piece0203_Hard )
call EnableTrigger( gg_trg_Move_Piece0204_Hard )
call EnableTrigger( gg_trg_Move_Piece0205_Hard )
call EnableTrigger( gg_trg_Move_Piece0206_Hard )
call EnableTrigger( gg_trg_Move_Piece0207_Hard )
call EnableTrigger( gg_trg_Move_Piece0208_Hard )
call EnableTrigger( gg_trg_Move_Piece0209_Hard )
call EnableTrigger( gg_trg_Move_Piece0210_Hard )
call EnableTrigger( gg_trg_Move_Piece0211_Hard )
call EnableTrigger( gg_trg_Move_Piece0212_Hard )
endfunction
//===========================================================================
function InitTrig_Move_Piece0210_Hard takes nothing returns nothing
set gg_trg_Move_Piece0210_Hard = CreateTrigger( )
call DisableTrigger( gg_trg_Move_Piece0210_Hard )
call TriggerRegisterUnitEvent( gg_trg_Move_Piece0210_Hard, gg_unit_h01I_0424, EVENT_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Move_Piece0210_Hard, Condition( function Trig_Move_Piece0210_Hard_Conditions ) )
call TriggerAddAction( gg_trg_Move_Piece0210_Hard, function Trig_Move_Piece0210_Hard_Actions )
endfunction
function Trig_Move_Piece0211_Hard_Conditions takes nothing returns boolean
if ( not ( GetUnitFacing(GetAttacker()) > 200.00 ) ) then
return false
endif
if ( not ( GetUnitFacing(GetAttacker()) < 340.00 ) ) then
return false
endif
return true
endfunction
function Trig_Move_Piece0211_Hard_Func018001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0211_Hard_Func018002 takes nothing returns nothing
set udg_ColorWheel[1] = GetEnumUnit()
endfunction
function Trig_Move_Piece0211_Hard_Func019001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0211_Hard_Func019002 takes nothing returns nothing
set udg_ColorWheel[2] = GetEnumUnit()
endfunction
function Trig_Move_Piece0211_Hard_Func020001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0211_Hard_Func020002 takes nothing returns nothing
set udg_ColorWheel[3] = GetEnumUnit()
endfunction
function Trig_Move_Piece0211_Hard_Func021001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0211_Hard_Func021002 takes nothing returns nothing
set udg_ColorWheel[4] = GetEnumUnit()
endfunction
function Trig_Move_Piece0211_Hard_Func022001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0211_Hard_Func022002 takes nothing returns nothing
set udg_ColorWheel[5] = GetEnumUnit()
endfunction
function Trig_Move_Piece0211_Hard_Func023001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0211_Hard_Func023002 takes nothing returns nothing
set udg_ColorWheel[6] = GetEnumUnit()
endfunction
function Trig_Move_Piece0211_Hard_Func031001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0211_Hard_Func031002 takes nothing returns nothing
set udg_ColorWheel[1] = GetEnumUnit()
endfunction
function Trig_Move_Piece0211_Hard_Func032001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0211_Hard_Func032002 takes nothing returns nothing
set udg_ColorWheel[2] = GetEnumUnit()
endfunction
function Trig_Move_Piece0211_Hard_Func033001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0211_Hard_Func033002 takes nothing returns nothing
set udg_ColorWheel[3] = GetEnumUnit()
endfunction
function Trig_Move_Piece0211_Hard_Func034001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0211_Hard_Func034002 takes nothing returns nothing
set udg_ColorWheel[4] = GetEnumUnit()
endfunction
function Trig_Move_Piece0211_Hard_Func035001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0211_Hard_Func035002 takes nothing returns nothing
set udg_ColorWheel[5] = GetEnumUnit()
endfunction
function Trig_Move_Piece0211_Hard_Func036001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0211_Hard_Func036002 takes nothing returns nothing
set udg_ColorWheel[6] = GetEnumUnit()
endfunction
function Trig_Move_Piece0211_Hard_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Move_Piece0201_Hard )
call DisableTrigger( gg_trg_Move_Piece0202_Hard )
call DisableTrigger( gg_trg_Move_Piece0203_Hard )
call DisableTrigger( gg_trg_Move_Piece0204_Hard )
call DisableTrigger( gg_trg_Move_Piece0205_Hard )
call DisableTrigger( gg_trg_Move_Piece0206_Hard )
call DisableTrigger( gg_trg_Move_Piece0207_Hard )
call DisableTrigger( gg_trg_Move_Piece0208_Hard )
call DisableTrigger( gg_trg_Move_Piece0209_Hard )
call DisableTrigger( gg_trg_Move_Piece0210_Hard )
call DisableTrigger( gg_trg_Move_Piece0211_Hard )
call DisableTrigger( gg_trg_Move_Piece0212_Hard )
call IssuePointOrderLocBJ( udg_ColorWheel[6], "move", GetRectCenter(gg_rct_Rect_453_Copy_4) )
call IssuePointOrderLocBJ( udg_ColorWheel[5], "move", GetRectCenter(gg_rct_Rect_453_Copy_5) )
call TriggerSleepAction( 1.00 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453, Condition(function Trig_Move_Piece0211_Hard_Func018001002)), function Trig_Move_Piece0211_Hard_Func018002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy, Condition(function Trig_Move_Piece0211_Hard_Func019001002)), function Trig_Move_Piece0211_Hard_Func019002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_2, Condition(function Trig_Move_Piece0211_Hard_Func020001002)), function Trig_Move_Piece0211_Hard_Func020002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_3, Condition(function Trig_Move_Piece0211_Hard_Func021001002)), function Trig_Move_Piece0211_Hard_Func021002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_4, Condition(function Trig_Move_Piece0211_Hard_Func022001002)), function Trig_Move_Piece0211_Hard_Func022002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_5, Condition(function Trig_Move_Piece0211_Hard_Func023001002)), function Trig_Move_Piece0211_Hard_Func023002 )
call IssuePointOrderLocBJ( udg_ColorWheel[1], "move", GetRectCenter(gg_rct_Rect_453_Copy) )
call IssuePointOrderLocBJ( udg_ColorWheel[2], "move", GetRectCenter(gg_rct_Rect_453_Copy_2) )
call IssuePointOrderLocBJ( udg_ColorWheel[3], "move", GetRectCenter(gg_rct_Rect_453_Copy_3) )
call IssuePointOrderLocBJ( udg_ColorWheel[4], "move", GetRectCenter(gg_rct_Rect_453_Copy_4) )
call IssuePointOrderLocBJ( udg_ColorWheel[5], "move", GetRectCenter(gg_rct_Rect_453_Copy_5) )
call IssuePointOrderLocBJ( udg_ColorWheel[6], "move", GetRectCenter(gg_rct_Rect_453) )
call TriggerSleepAction( 1.00 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453, Condition(function Trig_Move_Piece0211_Hard_Func031001002)), function Trig_Move_Piece0211_Hard_Func031002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy, Condition(function Trig_Move_Piece0211_Hard_Func032001002)), function Trig_Move_Piece0211_Hard_Func032002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_2, Condition(function Trig_Move_Piece0211_Hard_Func033001002)), function Trig_Move_Piece0211_Hard_Func033002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_3, Condition(function Trig_Move_Piece0211_Hard_Func034001002)), function Trig_Move_Piece0211_Hard_Func034002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_4, Condition(function Trig_Move_Piece0211_Hard_Func035001002)), function Trig_Move_Piece0211_Hard_Func035002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_5, Condition(function Trig_Move_Piece0211_Hard_Func036001002)), function Trig_Move_Piece0211_Hard_Func036002 )
call ConditionalTriggerExecute( gg_trg_Win_Puzzle_1_Hard )
call TriggerSleepAction( 0.50 )
call EnableTrigger( gg_trg_Move_Piece0201_Hard )
call EnableTrigger( gg_trg_Move_Piece0202_Hard )
call EnableTrigger( gg_trg_Move_Piece0203_Hard )
call EnableTrigger( gg_trg_Move_Piece0204_Hard )
call EnableTrigger( gg_trg_Move_Piece0205_Hard )
call EnableTrigger( gg_trg_Move_Piece0206_Hard )
call EnableTrigger( gg_trg_Move_Piece0207_Hard )
call EnableTrigger( gg_trg_Move_Piece0208_Hard )
call EnableTrigger( gg_trg_Move_Piece0209_Hard )
call EnableTrigger( gg_trg_Move_Piece0210_Hard )
call EnableTrigger( gg_trg_Move_Piece0211_Hard )
call EnableTrigger( gg_trg_Move_Piece0212_Hard )
endfunction
//===========================================================================
function InitTrig_Move_Piece0211_Hard takes nothing returns nothing
set gg_trg_Move_Piece0211_Hard = CreateTrigger( )
call DisableTrigger( gg_trg_Move_Piece0211_Hard )
call TriggerRegisterUnitEvent( gg_trg_Move_Piece0211_Hard, gg_unit_h01I_0425, EVENT_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Move_Piece0211_Hard, Condition( function Trig_Move_Piece0211_Hard_Conditions ) )
call TriggerAddAction( gg_trg_Move_Piece0211_Hard, function Trig_Move_Piece0211_Hard_Actions )
endfunction
function Trig_Move_Piece0212_Hard_Conditions takes nothing returns boolean
if ( not ( GetUnitFacing(GetAttacker()) > 0.00 ) ) then
return false
endif
if ( not ( GetUnitFacing(GetAttacker()) < 90.00 ) ) then
return false
endif
return true
endfunction
function Trig_Move_Piece0212_Hard_Func018001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0212_Hard_Func018002 takes nothing returns nothing
set udg_ColorWheel[1] = GetEnumUnit()
endfunction
function Trig_Move_Piece0212_Hard_Func019001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0212_Hard_Func019002 takes nothing returns nothing
set udg_ColorWheel[2] = GetEnumUnit()
endfunction
function Trig_Move_Piece0212_Hard_Func020001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0212_Hard_Func020002 takes nothing returns nothing
set udg_ColorWheel[3] = GetEnumUnit()
endfunction
function Trig_Move_Piece0212_Hard_Func021001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0212_Hard_Func021002 takes nothing returns nothing
set udg_ColorWheel[4] = GetEnumUnit()
endfunction
function Trig_Move_Piece0212_Hard_Func022001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0212_Hard_Func022002 takes nothing returns nothing
set udg_ColorWheel[5] = GetEnumUnit()
endfunction
function Trig_Move_Piece0212_Hard_Func023001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0212_Hard_Func023002 takes nothing returns nothing
set udg_ColorWheel[6] = GetEnumUnit()
endfunction
function Trig_Move_Piece0212_Hard_Func031001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0212_Hard_Func031002 takes nothing returns nothing
set udg_ColorWheel[1] = GetEnumUnit()
endfunction
function Trig_Move_Piece0212_Hard_Func032001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0212_Hard_Func032002 takes nothing returns nothing
set udg_ColorWheel[2] = GetEnumUnit()
endfunction
function Trig_Move_Piece0212_Hard_Func033001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0212_Hard_Func033002 takes nothing returns nothing
set udg_ColorWheel[3] = GetEnumUnit()
endfunction
function Trig_Move_Piece0212_Hard_Func034001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0212_Hard_Func034002 takes nothing returns nothing
set udg_ColorWheel[4] = GetEnumUnit()
endfunction
function Trig_Move_Piece0212_Hard_Func035001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0212_Hard_Func035002 takes nothing returns nothing
set udg_ColorWheel[5] = GetEnumUnit()
endfunction
function Trig_Move_Piece0212_Hard_Func036001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'h01J' )
endfunction
function Trig_Move_Piece0212_Hard_Func036002 takes nothing returns nothing
set udg_ColorWheel[6] = GetEnumUnit()
endfunction
function Trig_Move_Piece0212_Hard_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Move_Piece0201_Hard )
call DisableTrigger( gg_trg_Move_Piece0202_Hard )
call DisableTrigger( gg_trg_Move_Piece0203_Hard )
call DisableTrigger( gg_trg_Move_Piece0204_Hard )
call DisableTrigger( gg_trg_Move_Piece0205_Hard )
call DisableTrigger( gg_trg_Move_Piece0206_Hard )
call DisableTrigger( gg_trg_Move_Piece0207_Hard )
call DisableTrigger( gg_trg_Move_Piece0208_Hard )
call DisableTrigger( gg_trg_Move_Piece0209_Hard )
call DisableTrigger( gg_trg_Move_Piece0210_Hard )
call DisableTrigger( gg_trg_Move_Piece0211_Hard )
call DisableTrigger( gg_trg_Move_Piece0212_Hard )
call IssuePointOrderLocBJ( udg_ColorWheel[6], "move", GetRectCenter(gg_rct_Rect_453) )
call IssuePointOrderLocBJ( udg_ColorWheel[1], "move", GetRectCenter(gg_rct_Rect_453_Copy_5) )
call TriggerSleepAction( 1.00 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453, Condition(function Trig_Move_Piece0212_Hard_Func018001002)), function Trig_Move_Piece0212_Hard_Func018002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy, Condition(function Trig_Move_Piece0212_Hard_Func019001002)), function Trig_Move_Piece0212_Hard_Func019002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_2, Condition(function Trig_Move_Piece0212_Hard_Func020001002)), function Trig_Move_Piece0212_Hard_Func020002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_3, Condition(function Trig_Move_Piece0212_Hard_Func021001002)), function Trig_Move_Piece0212_Hard_Func021002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_4, Condition(function Trig_Move_Piece0212_Hard_Func022001002)), function Trig_Move_Piece0212_Hard_Func022002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_5, Condition(function Trig_Move_Piece0212_Hard_Func023001002)), function Trig_Move_Piece0212_Hard_Func023002 )
call IssuePointOrderLocBJ( udg_ColorWheel[1], "move", GetRectCenter(gg_rct_Rect_453_Copy_5) )
call IssuePointOrderLocBJ( udg_ColorWheel[2], "move", GetRectCenter(gg_rct_Rect_453) )
call IssuePointOrderLocBJ( udg_ColorWheel[3], "move", GetRectCenter(gg_rct_Rect_453_Copy) )
call IssuePointOrderLocBJ( udg_ColorWheel[4], "move", GetRectCenter(gg_rct_Rect_453_Copy_2) )
call IssuePointOrderLocBJ( udg_ColorWheel[5], "move", GetRectCenter(gg_rct_Rect_453_Copy_3) )
call IssuePointOrderLocBJ( udg_ColorWheel[6], "move", GetRectCenter(gg_rct_Rect_453_Copy_4) )
call TriggerSleepAction( 1.00 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453, Condition(function Trig_Move_Piece0212_Hard_Func031001002)), function Trig_Move_Piece0212_Hard_Func031002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy, Condition(function Trig_Move_Piece0212_Hard_Func032001002)), function Trig_Move_Piece0212_Hard_Func032002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_2, Condition(function Trig_Move_Piece0212_Hard_Func033001002)), function Trig_Move_Piece0212_Hard_Func033002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_3, Condition(function Trig_Move_Piece0212_Hard_Func034001002)), function Trig_Move_Piece0212_Hard_Func034002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_4, Condition(function Trig_Move_Piece0212_Hard_Func035001002)), function Trig_Move_Piece0212_Hard_Func035002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Rect_453_Copy_5, Condition(function Trig_Move_Piece0212_Hard_Func036001002)), function Trig_Move_Piece0212_Hard_Func036002 )
call ConditionalTriggerExecute( gg_trg_Win_Puzzle_1_Hard )
call TriggerSleepAction( 0.50 )
call EnableTrigger( gg_trg_Move_Piece0201_Hard )
call EnableTrigger( gg_trg_Move_Piece0202_Hard )
call EnableTrigger( gg_trg_Move_Piece0203_Hard )
call EnableTrigger( gg_trg_Move_Piece0204_Hard )
call EnableTrigger( gg_trg_Move_Piece0205_Hard )
call EnableTrigger( gg_trg_Move_Piece0206_Hard )
call EnableTrigger( gg_trg_Move_Piece0207_Hard )
call EnableTrigger( gg_trg_Move_Piece0208_Hard )
call EnableTrigger( gg_trg_Move_Piece0209_Hard )
call EnableTrigger( gg_trg_Move_Piece0210_Hard )
call EnableTrigger( gg_trg_Move_Piece0211_Hard )
call EnableTrigger( gg_trg_Move_Piece0212_Hard )
endfunction
//===========================================================================
function InitTrig_Move_Piece0212_Hard takes nothing returns nothing
set gg_trg_Move_Piece0212_Hard = CreateTrigger( )
call DisableTrigger( gg_trg_Move_Piece0212_Hard )
call TriggerRegisterUnitEvent( gg_trg_Move_Piece0212_Hard, gg_unit_h01I_0425, EVENT_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Move_Piece0212_Hard, Condition( function Trig_Move_Piece0212_Hard_Conditions ) )
call TriggerAddAction( gg_trg_Move_Piece0212_Hard, function Trig_Move_Piece0212_Hard_Actions )
endfunction
function Trig_Reset_Puzzle_2_Func003001 takes nothing returns boolean
return ( udg_easy == true )
endfunction
function Trig_Reset_Puzzle_2_Func004001 takes nothing returns boolean
return ( udg_hard == true )
endfunction
function Trig_Reset_Puzzle_2_Func005001 takes nothing returns boolean
return ( udg_very_hard == true )
endfunction
function Trig_Reset_Puzzle_2_Func006001 takes nothing returns boolean
return ( udg_impossible == true )
endfunction
function Trig_Reset_Puzzle_2_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Rect_472), "Units\\NightElf\\Wisp\\WispExplode.mdl" )
call TriggerSleepAction( 0.50 )
if ( Trig_Reset_Puzzle_2_Func003001() ) then
call ConditionalTriggerExecute( gg_trg_Set_Up_Puzzle_2_Easy )
else
call DoNothing( )
endif
if ( Trig_Reset_Puzzle_2_Func004001() ) then
call ConditionalTriggerExecute( gg_trg_Set_Up_Puzzle_2_Hard )
else
call DoNothing( )
endif
if ( Trig_Reset_Puzzle_2_Func005001() ) then
call ConditionalTriggerExecute( gg_trg_Set_Up_Puzzle_2_Very_Hard )
else
call DoNothing( )
endif
if ( Trig_Reset_Puzzle_2_Func006001() ) then
call ConditionalTriggerExecute( gg_trg_Set_Up_Puzzle_2_Very_Hard )
else
call DoNothing( )
endif
call TriggerSleepAction( 1.00 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endfunction
//===========================================================================
function InitTrig_Reset_Puzzle_2 takes nothing returns nothing
set gg_trg_Reset_Puzzle_2 = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Reset_Puzzle_2, gg_unit_h01K_0469, EVENT_UNIT_DAMAGED )
call TriggerAddAction( gg_trg_Reset_Puzzle_2, function Trig_Reset_Puzzle_2_Actions )
endfunction
function Trig_Row_A_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(PLAYER_NEUTRAL_PASSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func015Func001C takes nothing returns boolean
if ( not ( udg_Switched[1] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[1] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func015Func002C takes nothing returns boolean
if ( not ( udg_Switched[1] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[1] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func015Func004C takes nothing returns boolean
if ( not ( udg_Switched[2] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[2] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func015Func005C takes nothing returns boolean
if ( not ( udg_Switched[2] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[2] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func015Func007C takes nothing returns boolean
if ( not ( udg_Switched[3] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[3] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func015Func008C takes nothing returns boolean
if ( not ( udg_Switched[3] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[3] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func015Func010C takes nothing returns boolean
if ( not ( udg_Switched[4] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[4] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func015Func011C takes nothing returns boolean
if ( not ( udg_Switched[4] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[4] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func015Func013C takes nothing returns boolean
if ( not ( udg_Switched[5] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[5] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func015Func014C takes nothing returns boolean
if ( not ( udg_Switched[5] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[5] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func015C takes nothing returns boolean
if ( not ( udg_easy == true ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func016Func001C takes nothing returns boolean
if ( not ( udg_Switched[1] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[1] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func016Func002C takes nothing returns boolean
if ( not ( udg_Switched[1] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[1] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func016Func003C takes nothing returns boolean
if ( not ( udg_Switched[1] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[1] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func016Func005C takes nothing returns boolean
if ( not ( udg_Switched[2] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[2] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func016Func006C takes nothing returns boolean
if ( not ( udg_Switched[2] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[2] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func016Func007C takes nothing returns boolean
if ( not ( udg_Switched[2] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[2] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func016Func009C takes nothing returns boolean
if ( not ( udg_Switched[3] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[3] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func016Func010C takes nothing returns boolean
if ( not ( udg_Switched[3] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[3] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func016Func011C takes nothing returns boolean
if ( not ( udg_Switched[3] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[3] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func016Func013C takes nothing returns boolean
if ( not ( udg_Switched[4] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[4] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func016Func014C takes nothing returns boolean
if ( not ( udg_Switched[4] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[4] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func016Func015C takes nothing returns boolean
if ( not ( udg_Switched[4] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[4] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func016Func017C takes nothing returns boolean
if ( not ( udg_Switched[5] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[5] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func016Func018C takes nothing returns boolean
if ( not ( udg_Switched[5] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[5] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func016Func019C takes nothing returns boolean
if ( not ( udg_Switched[5] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[5] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func016C takes nothing returns boolean
if ( not ( udg_hard == true ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func017Func001C takes nothing returns boolean
if ( not ( udg_Switched[1] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[1] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func017Func002C takes nothing returns boolean
if ( not ( udg_Switched[1] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[1] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func017Func003C takes nothing returns boolean
if ( not ( udg_Switched[1] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[1] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func017Func004C takes nothing returns boolean
if ( not ( udg_Switched[1] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[1] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func017Func006C takes nothing returns boolean
if ( not ( udg_Switched[2] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[2] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func017Func007C takes nothing returns boolean
if ( not ( udg_Switched[2] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[2] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func017Func008C takes nothing returns boolean
if ( not ( udg_Switched[2] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[2] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func017Func009C takes nothing returns boolean
if ( not ( udg_Switched[2] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[2] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func017Func011C takes nothing returns boolean
if ( not ( udg_Switched[3] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[3] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func017Func012C takes nothing returns boolean
if ( not ( udg_Switched[3] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[3] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func017Func013C takes nothing returns boolean
if ( not ( udg_Switched[3] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[3] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func017Func014C takes nothing returns boolean
if ( not ( udg_Switched[3] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[3] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func017Func016C takes nothing returns boolean
if ( not ( udg_Switched[4] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[4] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func017Func017C takes nothing returns boolean
if ( not ( udg_Switched[4] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[4] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func017Func018C takes nothing returns boolean
if ( not ( udg_Switched[4] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[4] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func017Func019C takes nothing returns boolean
if ( not ( udg_Switched[4] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[4] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func017Func021C takes nothing returns boolean
if ( not ( udg_Switched[5] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[5] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func017Func022C takes nothing returns boolean
if ( not ( udg_Switched[5] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[5] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func017Func023C takes nothing returns boolean
if ( not ( udg_Switched[5] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[5] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func017Func024C takes nothing returns boolean
if ( not ( udg_Switched[5] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[5] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_A_Func017Func025C takes nothing returns boolean
if ( ( udg_very_hard == true ) ) then
return true
endif
if ( ( udg_impossible == true ) ) then
return true
endif
return false
endfunction
function Trig_Row_A_Func017C takes nothing returns boolean
if ( not Trig_Row_A_Func017Func025C() ) then
return false
endif
return true
endfunction
function Trig_Row_A_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Row_A )
call DisableTrigger( gg_trg_Row_B )
call DisableTrigger( gg_trg_Row_C )
call DisableTrigger( gg_trg_Row_D )
call DisableTrigger( gg_trg_Row_E )
call DisableTrigger( gg_trg_Column_1 )
call DisableTrigger( gg_trg_Column_2 )
call DisableTrigger( gg_trg_Column_3 )
call DisableTrigger( gg_trg_Column_4 )
call DisableTrigger( gg_trg_Column_5 )
call DisableTrigger( gg_trg_Diagonal_1 )
call DisableTrigger( gg_trg_Diagonal_2 )
call DisableTrigger( gg_trg_Reset_Puzzle_2 )
if ( Trig_Row_A_Func015C() ) then
if ( Trig_Row_A_Func015Func001C() ) then
set udg_Switched[1] = true
set udg_ColorPanel[1] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0437, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_A_Func015Func002C() ) then
set udg_Switched[1] = true
set udg_ColorPanel[1] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0437, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_A_Func015Func004C() ) then
set udg_Switched[2] = true
set udg_ColorPanel[2] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0436, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_A_Func015Func005C() ) then
set udg_Switched[2] = true
set udg_ColorPanel[2] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0436, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_A_Func015Func007C() ) then
set udg_Switched[3] = true
set udg_ColorPanel[3] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0435, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_A_Func015Func008C() ) then
set udg_Switched[3] = true
set udg_ColorPanel[3] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0435, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_A_Func015Func010C() ) then
set udg_Switched[4] = true
set udg_ColorPanel[4] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0434, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Row_A_Func015Func011C() ) then
set udg_Switched[4] = true
set udg_ColorPanel[4] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0434, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_A_Func015Func013C() ) then
set udg_Switched[5] = true
set udg_ColorPanel[5] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0433, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Row_A_Func015Func014C() ) then
set udg_Switched[5] = true
set udg_ColorPanel[5] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0433, 100.00, 0.00, 0.00, 0 )
else
endif
else
endif
if ( Trig_Row_A_Func016C() ) then
if ( Trig_Row_A_Func016Func001C() ) then
set udg_Switched[1] = true
set udg_ColorPanel[1] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0437, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_A_Func016Func002C() ) then
set udg_Switched[1] = true
set udg_ColorPanel[1] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0437, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_A_Func016Func003C() ) then
set udg_Switched[1] = true
set udg_ColorPanel[1] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0437, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_A_Func016Func005C() ) then
set udg_Switched[2] = true
set udg_ColorPanel[2] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0436, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_A_Func016Func006C() ) then
set udg_Switched[2] = true
set udg_ColorPanel[2] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0436, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_A_Func016Func007C() ) then
set udg_Switched[2] = true
set udg_ColorPanel[2] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0436, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_A_Func016Func009C() ) then
set udg_Switched[3] = true
set udg_ColorPanel[3] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0435, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_A_Func016Func010C() ) then
set udg_Switched[3] = true
set udg_ColorPanel[3] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0435, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_A_Func016Func011C() ) then
set udg_Switched[3] = true
set udg_ColorPanel[3] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0435, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_A_Func016Func013C() ) then
set udg_Switched[4] = true
set udg_ColorPanel[4] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0434, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_A_Func016Func014C() ) then
set udg_Switched[4] = true
set udg_ColorPanel[4] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0434, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Row_A_Func016Func015C() ) then
set udg_Switched[4] = true
set udg_ColorPanel[4] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0434, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_A_Func016Func017C() ) then
set udg_Switched[5] = true
set udg_ColorPanel[5] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0433, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_A_Func016Func018C() ) then
set udg_Switched[5] = true
set udg_ColorPanel[5] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0433, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Row_A_Func016Func019C() ) then
set udg_Switched[5] = true
set udg_ColorPanel[5] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0433, 100.00, 0.00, 0.00, 0 )
else
endif
else
endif
if ( Trig_Row_A_Func017C() ) then
if ( Trig_Row_A_Func017Func001C() ) then
set udg_Switched[1] = true
set udg_ColorPanel[1] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0437, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Row_A_Func017Func002C() ) then
set udg_Switched[1] = true
set udg_ColorPanel[1] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0437, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_A_Func017Func003C() ) then
set udg_Switched[1] = true
set udg_ColorPanel[1] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0437, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_A_Func017Func004C() ) then
set udg_Switched[1] = true
set udg_ColorPanel[1] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0437, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_A_Func017Func006C() ) then
set udg_Switched[2] = true
set udg_ColorPanel[2] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0436, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Row_A_Func017Func007C() ) then
set udg_Switched[2] = true
set udg_ColorPanel[2] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0436, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_A_Func017Func008C() ) then
set udg_Switched[2] = true
set udg_ColorPanel[2] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0436, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_A_Func017Func009C() ) then
set udg_Switched[2] = true
set udg_ColorPanel[2] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0436, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_A_Func017Func011C() ) then
set udg_Switched[3] = true
set udg_ColorPanel[3] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0435, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Row_A_Func017Func012C() ) then
set udg_Switched[3] = true
set udg_ColorPanel[3] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0435, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_A_Func017Func013C() ) then
set udg_Switched[3] = true
set udg_ColorPanel[3] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0435, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_A_Func017Func014C() ) then
set udg_Switched[3] = true
set udg_ColorPanel[3] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0435, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_A_Func017Func016C() ) then
set udg_Switched[4] = true
set udg_ColorPanel[4] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0434, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Row_A_Func017Func017C() ) then
set udg_Switched[4] = true
set udg_ColorPanel[4] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0434, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_A_Func017Func018C() ) then
set udg_Switched[4] = true
set udg_ColorPanel[4] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0434, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Row_A_Func017Func019C() ) then
set udg_Switched[4] = true
set udg_ColorPanel[4] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0434, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_A_Func017Func021C() ) then
set udg_Switched[5] = true
set udg_ColorPanel[5] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0433, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Row_A_Func017Func022C() ) then
set udg_Switched[5] = true
set udg_ColorPanel[5] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0433, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_A_Func017Func023C() ) then
set udg_Switched[5] = true
set udg_ColorPanel[5] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0433, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Row_A_Func017Func024C() ) then
set udg_Switched[5] = true
set udg_ColorPanel[5] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0433, 100.00, 0.00, 0.00, 0 )
else
endif
else
endif
set udg_Switched[1] = false
set udg_Switched[2] = false
set udg_Switched[3] = false
set udg_Switched[4] = false
set udg_Switched[5] = false
call EnableTrigger( gg_trg_Row_A )
call EnableTrigger( gg_trg_Row_B )
call EnableTrigger( gg_trg_Row_C )
call EnableTrigger( gg_trg_Row_D )
call EnableTrigger( gg_trg_Row_E )
call EnableTrigger( gg_trg_Column_1 )
call EnableTrigger( gg_trg_Column_2 )
call EnableTrigger( gg_trg_Column_3 )
call EnableTrigger( gg_trg_Column_4 )
call EnableTrigger( gg_trg_Column_5 )
call EnableTrigger( gg_trg_Diagonal_1 )
call EnableTrigger( gg_trg_Diagonal_2 )
call EnableTrigger( gg_trg_Reset_Puzzle_2 )
call ConditionalTriggerExecute( gg_trg_Win_Puzzle_2 )
endfunction
//===========================================================================
function InitTrig_Row_A takes nothing returns nothing
set gg_trg_Row_A = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Row_A, gg_rct_Rect_460 )
call TriggerAddCondition( gg_trg_Row_A, Condition( function Trig_Row_A_Conditions ) )
call TriggerAddAction( gg_trg_Row_A, function Trig_Row_A_Actions )
endfunction
function Trig_Row_B_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(PLAYER_NEUTRAL_PASSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func014Func001C takes nothing returns boolean
if ( not ( udg_Switched[6] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[6] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func014Func002C takes nothing returns boolean
if ( not ( udg_Switched[6] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[6] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func014Func004C takes nothing returns boolean
if ( not ( udg_Switched[7] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[7] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func014Func005C takes nothing returns boolean
if ( not ( udg_Switched[7] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[7] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func014Func007C takes nothing returns boolean
if ( not ( udg_Switched[8] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[8] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func014Func008C takes nothing returns boolean
if ( not ( udg_Switched[8] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[8] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func014Func010C takes nothing returns boolean
if ( not ( udg_Switched[9] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[9] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func014Func011C takes nothing returns boolean
if ( not ( udg_Switched[9] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[9] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func014Func013C takes nothing returns boolean
if ( not ( udg_Switched[10] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[10] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func014Func014C takes nothing returns boolean
if ( not ( udg_Switched[10] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[10] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func014C takes nothing returns boolean
if ( not ( udg_easy == true ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func015Func001C takes nothing returns boolean
if ( not ( udg_Switched[6] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[6] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func015Func002C takes nothing returns boolean
if ( not ( udg_Switched[6] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[6] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func015Func003C takes nothing returns boolean
if ( not ( udg_Switched[6] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[6] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func015Func005C takes nothing returns boolean
if ( not ( udg_Switched[7] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[7] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func015Func006C takes nothing returns boolean
if ( not ( udg_Switched[7] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[7] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func015Func007C takes nothing returns boolean
if ( not ( udg_Switched[7] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[7] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func015Func009C takes nothing returns boolean
if ( not ( udg_Switched[8] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[8] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func015Func010C takes nothing returns boolean
if ( not ( udg_Switched[8] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[8] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func015Func011C takes nothing returns boolean
if ( not ( udg_Switched[8] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[8] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func015Func013C takes nothing returns boolean
if ( not ( udg_Switched[9] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[9] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func015Func014C takes nothing returns boolean
if ( not ( udg_Switched[9] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[9] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func015Func015C takes nothing returns boolean
if ( not ( udg_Switched[9] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[9] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func015Func017C takes nothing returns boolean
if ( not ( udg_Switched[10] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[10] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func015Func018C takes nothing returns boolean
if ( not ( udg_Switched[10] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[10] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func015Func019C takes nothing returns boolean
if ( not ( udg_Switched[10] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[10] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func015C takes nothing returns boolean
if ( not ( udg_hard == true ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func016Func001C takes nothing returns boolean
if ( ( udg_very_hard == true ) ) then
return true
endif
if ( ( udg_impossible == true ) ) then
return true
endif
return false
endfunction
function Trig_Row_B_Func016Func002C takes nothing returns boolean
if ( not ( udg_Switched[6] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[6] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func016Func003C takes nothing returns boolean
if ( not ( udg_Switched[6] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[6] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func016Func004C takes nothing returns boolean
if ( not ( udg_Switched[6] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[6] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func016Func005C takes nothing returns boolean
if ( not ( udg_Switched[6] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[6] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func016Func007C takes nothing returns boolean
if ( not ( udg_Switched[7] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[7] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func016Func008C takes nothing returns boolean
if ( not ( udg_Switched[7] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[7] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func016Func009C takes nothing returns boolean
if ( not ( udg_Switched[7] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[7] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func016Func010C takes nothing returns boolean
if ( not ( udg_Switched[7] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[7] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func016Func012C takes nothing returns boolean
if ( not ( udg_Switched[8] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[8] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func016Func013C takes nothing returns boolean
if ( not ( udg_Switched[8] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[8] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func016Func014C takes nothing returns boolean
if ( not ( udg_Switched[8] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[8] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func016Func015C takes nothing returns boolean
if ( not ( udg_Switched[8] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[8] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func016Func017C takes nothing returns boolean
if ( not ( udg_Switched[9] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[9] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func016Func018C takes nothing returns boolean
if ( not ( udg_Switched[9] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[9] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func016Func019C takes nothing returns boolean
if ( not ( udg_Switched[9] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[9] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func016Func020C takes nothing returns boolean
if ( not ( udg_Switched[9] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[9] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func016Func022C takes nothing returns boolean
if ( not ( udg_Switched[10] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[10] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func016Func023C takes nothing returns boolean
if ( not ( udg_Switched[10] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[10] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func016Func024C takes nothing returns boolean
if ( not ( udg_Switched[10] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[10] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func016Func025C takes nothing returns boolean
if ( not ( udg_Switched[10] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[10] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_B_Func016C takes nothing returns boolean
if ( not Trig_Row_B_Func016Func001C() ) then
return false
endif
return true
endfunction
function Trig_Row_B_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Row_A )
call DisableTrigger( gg_trg_Row_B )
call DisableTrigger( gg_trg_Row_C )
call DisableTrigger( gg_trg_Row_D )
call DisableTrigger( gg_trg_Row_E )
call DisableTrigger( gg_trg_Column_1 )
call DisableTrigger( gg_trg_Column_2 )
call DisableTrigger( gg_trg_Column_3 )
call DisableTrigger( gg_trg_Column_4 )
call DisableTrigger( gg_trg_Column_5 )
call DisableTrigger( gg_trg_Diagonal_1 )
call DisableTrigger( gg_trg_Diagonal_2 )
call DisableTrigger( gg_trg_Reset_Puzzle_2 )
if ( Trig_Row_B_Func014C() ) then
if ( Trig_Row_B_Func014Func001C() ) then
set udg_Switched[6] = true
set udg_ColorPanel[6] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0438, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_B_Func014Func002C() ) then
set udg_Switched[6] = true
set udg_ColorPanel[6] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0438, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_B_Func014Func004C() ) then
set udg_Switched[7] = true
set udg_ColorPanel[7] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0449, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_B_Func014Func005C() ) then
set udg_Switched[7] = true
set udg_ColorPanel[7] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0449, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_B_Func014Func007C() ) then
set udg_Switched[8] = true
set udg_ColorPanel[8] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0450, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_B_Func014Func008C() ) then
set udg_Switched[8] = true
set udg_ColorPanel[8] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0450, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_B_Func014Func010C() ) then
set udg_Switched[9] = true
set udg_ColorPanel[9] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0451, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Row_B_Func014Func011C() ) then
set udg_Switched[9] = true
set udg_ColorPanel[9] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0451, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_B_Func014Func013C() ) then
set udg_Switched[10] = true
set udg_ColorPanel[10] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0448, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Row_B_Func014Func014C() ) then
set udg_Switched[10] = true
set udg_ColorPanel[10] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0448, 100.00, 0.00, 0.00, 0 )
else
endif
else
endif
if ( Trig_Row_B_Func015C() ) then
if ( Trig_Row_B_Func015Func001C() ) then
set udg_Switched[6] = true
set udg_ColorPanel[6] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0438, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_B_Func015Func002C() ) then
set udg_Switched[6] = true
set udg_ColorPanel[6] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0438, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_B_Func015Func003C() ) then
set udg_Switched[6] = true
set udg_ColorPanel[6] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0438, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_B_Func015Func005C() ) then
set udg_Switched[7] = true
set udg_ColorPanel[7] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0449, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_B_Func015Func006C() ) then
set udg_Switched[7] = true
set udg_ColorPanel[7] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0449, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_B_Func015Func007C() ) then
set udg_Switched[7] = true
set udg_ColorPanel[7] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0449, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_B_Func015Func009C() ) then
set udg_Switched[8] = true
set udg_ColorPanel[8] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0450, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_B_Func015Func010C() ) then
set udg_Switched[8] = true
set udg_ColorPanel[8] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0450, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_B_Func015Func011C() ) then
set udg_Switched[8] = true
set udg_ColorPanel[8] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0450, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_B_Func015Func013C() ) then
set udg_Switched[9] = true
set udg_ColorPanel[9] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0451, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_B_Func015Func014C() ) then
set udg_Switched[9] = true
set udg_ColorPanel[9] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0451, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Row_B_Func015Func015C() ) then
set udg_Switched[9] = true
set udg_ColorPanel[9] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0451, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_B_Func015Func017C() ) then
set udg_Switched[10] = true
set udg_ColorPanel[10] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0448, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_B_Func015Func018C() ) then
set udg_Switched[10] = true
set udg_ColorPanel[10] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0448, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Row_B_Func015Func019C() ) then
set udg_Switched[10] = true
set udg_ColorPanel[10] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0448, 100.00, 0.00, 0.00, 0 )
else
endif
else
endif
if ( Trig_Row_B_Func016C() ) then
if ( Trig_Row_B_Func016Func002C() ) then
set udg_Switched[6] = true
set udg_ColorPanel[6] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0438, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Row_B_Func016Func003C() ) then
set udg_Switched[6] = true
set udg_ColorPanel[6] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0438, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_B_Func016Func004C() ) then
set udg_Switched[6] = true
set udg_ColorPanel[6] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0438, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_B_Func016Func005C() ) then
set udg_Switched[6] = true
set udg_ColorPanel[6] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0438, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_B_Func016Func007C() ) then
set udg_Switched[7] = true
set udg_ColorPanel[7] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0449, 100.00, 90.00, 0.00, 0 )
else
endif
if ( Trig_Row_B_Func016Func008C() ) then
set udg_Switched[7] = true
set udg_ColorPanel[7] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0449, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_B_Func016Func009C() ) then
set udg_Switched[7] = true
set udg_ColorPanel[7] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0449, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_B_Func016Func010C() ) then
set udg_Switched[7] = true
set udg_ColorPanel[7] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0449, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_B_Func016Func012C() ) then
set udg_Switched[8] = true
set udg_ColorPanel[8] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0450, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Row_B_Func016Func013C() ) then
set udg_Switched[8] = true
set udg_ColorPanel[8] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0450, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_B_Func016Func014C() ) then
set udg_Switched[8] = true
set udg_ColorPanel[8] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0450, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_B_Func016Func015C() ) then
set udg_Switched[8] = true
set udg_ColorPanel[8] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0450, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_B_Func016Func017C() ) then
set udg_Switched[9] = true
set udg_ColorPanel[9] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0451, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Row_B_Func016Func018C() ) then
set udg_Switched[9] = true
set udg_ColorPanel[9] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0451, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_B_Func016Func019C() ) then
set udg_Switched[9] = true
set udg_ColorPanel[9] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0451, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Row_B_Func016Func020C() ) then
set udg_Switched[9] = true
set udg_ColorPanel[9] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0451, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_B_Func016Func022C() ) then
set udg_Switched[10] = true
set udg_ColorPanel[10] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0448, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Row_B_Func016Func023C() ) then
set udg_Switched[10] = true
set udg_ColorPanel[10] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0448, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_B_Func016Func024C() ) then
set udg_Switched[10] = true
set udg_ColorPanel[10] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0448, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Row_B_Func016Func025C() ) then
set udg_Switched[10] = true
set udg_ColorPanel[10] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0448, 100.00, 0.00, 0.00, 0 )
else
endif
else
endif
set udg_Switched[6] = false
set udg_Switched[7] = false
set udg_Switched[8] = false
set udg_Switched[9] = false
set udg_Switched[10] = false
call EnableTrigger( gg_trg_Row_A )
call EnableTrigger( gg_trg_Row_B )
call EnableTrigger( gg_trg_Row_C )
call EnableTrigger( gg_trg_Row_D )
call EnableTrigger( gg_trg_Row_E )
call EnableTrigger( gg_trg_Column_1 )
call EnableTrigger( gg_trg_Column_2 )
call EnableTrigger( gg_trg_Column_3 )
call EnableTrigger( gg_trg_Column_4 )
call EnableTrigger( gg_trg_Column_5 )
call EnableTrigger( gg_trg_Diagonal_1 )
call EnableTrigger( gg_trg_Diagonal_2 )
call EnableTrigger( gg_trg_Reset_Puzzle_2 )
call ConditionalTriggerExecute( gg_trg_Win_Puzzle_2 )
endfunction
//===========================================================================
function InitTrig_Row_B takes nothing returns nothing
set gg_trg_Row_B = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Row_B, gg_rct_Rect_460_Copy )
call TriggerAddCondition( gg_trg_Row_B, Condition( function Trig_Row_B_Conditions ) )
call TriggerAddAction( gg_trg_Row_B, function Trig_Row_B_Actions )
endfunction
function Trig_Row_C_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(PLAYER_NEUTRAL_PASSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func014Func001C takes nothing returns boolean
if ( not ( udg_Switched[11] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[11] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func014Func002C takes nothing returns boolean
if ( not ( udg_Switched[11] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[11] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func014Func004C takes nothing returns boolean
if ( not ( udg_Switched[12] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[12] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func014Func005C takes nothing returns boolean
if ( not ( udg_Switched[12] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[12] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func014Func007C takes nothing returns boolean
if ( not ( udg_Switched[13] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[13] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func014Func008C takes nothing returns boolean
if ( not ( udg_Switched[13] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[13] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func014Func010C takes nothing returns boolean
if ( not ( udg_Switched[14] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[14] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func014Func011C takes nothing returns boolean
if ( not ( udg_Switched[14] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[14] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func014Func013C takes nothing returns boolean
if ( not ( udg_Switched[15] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[15] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func014Func014C takes nothing returns boolean
if ( not ( udg_Switched[15] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[15] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func014C takes nothing returns boolean
if ( not ( udg_easy == true ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func015Func001C takes nothing returns boolean
if ( not ( udg_Switched[11] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[11] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func015Func002C takes nothing returns boolean
if ( not ( udg_Switched[11] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[11] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func015Func003C takes nothing returns boolean
if ( not ( udg_Switched[11] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[11] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func015Func005C takes nothing returns boolean
if ( not ( udg_Switched[12] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[12] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func015Func006C takes nothing returns boolean
if ( not ( udg_Switched[12] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[12] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func015Func007C takes nothing returns boolean
if ( not ( udg_Switched[12] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[12] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func015Func009C takes nothing returns boolean
if ( not ( udg_Switched[13] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[13] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func015Func010C takes nothing returns boolean
if ( not ( udg_Switched[13] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[13] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func015Func011C takes nothing returns boolean
if ( not ( udg_Switched[13] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[13] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func015Func013C takes nothing returns boolean
if ( not ( udg_Switched[14] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[14] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func015Func014C takes nothing returns boolean
if ( not ( udg_Switched[14] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[14] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func015Func015C takes nothing returns boolean
if ( not ( udg_Switched[14] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[14] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func015Func017C takes nothing returns boolean
if ( not ( udg_Switched[15] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[15] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func015Func018C takes nothing returns boolean
if ( not ( udg_Switched[15] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[15] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func015Func019C takes nothing returns boolean
if ( not ( udg_Switched[15] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[15] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func015C takes nothing returns boolean
if ( not ( udg_hard == true ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func016Func001C takes nothing returns boolean
if ( ( udg_very_hard == true ) ) then
return true
endif
if ( ( udg_impossible == true ) ) then
return true
endif
return false
endfunction
function Trig_Row_C_Func016Func002C takes nothing returns boolean
if ( not ( udg_Switched[11] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[11] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func016Func003C takes nothing returns boolean
if ( not ( udg_Switched[11] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[11] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func016Func004C takes nothing returns boolean
if ( not ( udg_Switched[11] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[11] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func016Func005C takes nothing returns boolean
if ( not ( udg_Switched[11] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[11] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func016Func007C takes nothing returns boolean
if ( not ( udg_Switched[12] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[12] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func016Func008C takes nothing returns boolean
if ( not ( udg_Switched[12] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[12] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func016Func009C takes nothing returns boolean
if ( not ( udg_Switched[12] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[12] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func016Func010C takes nothing returns boolean
if ( not ( udg_Switched[12] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[12] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func016Func012C takes nothing returns boolean
if ( not ( udg_Switched[13] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[13] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func016Func013C takes nothing returns boolean
if ( not ( udg_Switched[13] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[13] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func016Func014C takes nothing returns boolean
if ( not ( udg_Switched[13] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[13] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func016Func015C takes nothing returns boolean
if ( not ( udg_Switched[13] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[13] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func016Func017C takes nothing returns boolean
if ( not ( udg_Switched[14] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[14] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func016Func018C takes nothing returns boolean
if ( not ( udg_Switched[14] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[14] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func016Func019C takes nothing returns boolean
if ( not ( udg_Switched[14] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[14] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func016Func020C takes nothing returns boolean
if ( not ( udg_Switched[14] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[14] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func016Func022C takes nothing returns boolean
if ( not ( udg_Switched[15] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[15] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func016Func023C takes nothing returns boolean
if ( not ( udg_Switched[15] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[15] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func016Func024C takes nothing returns boolean
if ( not ( udg_Switched[15] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[15] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func016Func025C takes nothing returns boolean
if ( not ( udg_Switched[15] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[15] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_C_Func016C takes nothing returns boolean
if ( not Trig_Row_C_Func016Func001C() ) then
return false
endif
return true
endfunction
function Trig_Row_C_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Row_A )
call DisableTrigger( gg_trg_Row_B )
call DisableTrigger( gg_trg_Row_C )
call DisableTrigger( gg_trg_Row_D )
call DisableTrigger( gg_trg_Row_E )
call DisableTrigger( gg_trg_Column_1 )
call DisableTrigger( gg_trg_Column_2 )
call DisableTrigger( gg_trg_Column_3 )
call DisableTrigger( gg_trg_Column_4 )
call DisableTrigger( gg_trg_Column_5 )
call DisableTrigger( gg_trg_Diagonal_1 )
call DisableTrigger( gg_trg_Diagonal_2 )
call DisableTrigger( gg_trg_Reset_Puzzle_2 )
if ( Trig_Row_C_Func014C() ) then
if ( Trig_Row_C_Func014Func001C() ) then
set udg_Switched[11] = true
set udg_ColorPanel[11] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0439, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_C_Func014Func002C() ) then
set udg_Switched[11] = true
set udg_ColorPanel[11] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0439, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_C_Func014Func004C() ) then
set udg_Switched[12] = true
set udg_ColorPanel[12] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0452, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_C_Func014Func005C() ) then
set udg_Switched[12] = true
set udg_ColorPanel[12] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0452, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_C_Func014Func007C() ) then
set udg_Switched[13] = true
set udg_ColorPanel[13] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0453, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_C_Func014Func008C() ) then
set udg_Switched[13] = true
set udg_ColorPanel[13] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0453, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_C_Func014Func010C() ) then
set udg_Switched[14] = true
set udg_ColorPanel[14] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0454, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Row_C_Func014Func011C() ) then
set udg_Switched[14] = true
set udg_ColorPanel[14] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0454, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_C_Func014Func013C() ) then
set udg_Switched[15] = true
set udg_ColorPanel[15] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0447, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Row_C_Func014Func014C() ) then
set udg_Switched[15] = true
set udg_ColorPanel[15] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0447, 100.00, 0.00, 0.00, 0 )
else
endif
else
endif
if ( Trig_Row_C_Func015C() ) then
if ( Trig_Row_C_Func015Func001C() ) then
set udg_Switched[11] = true
set udg_ColorPanel[11] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0439, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_C_Func015Func002C() ) then
set udg_Switched[11] = true
set udg_ColorPanel[11] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0439, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_C_Func015Func003C() ) then
set udg_Switched[11] = true
set udg_ColorPanel[11] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0439, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_C_Func015Func005C() ) then
set udg_Switched[12] = true
set udg_ColorPanel[12] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0452, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_C_Func015Func006C() ) then
set udg_Switched[12] = true
set udg_ColorPanel[12] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0452, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_C_Func015Func007C() ) then
set udg_Switched[12] = true
set udg_ColorPanel[12] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0452, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_C_Func015Func009C() ) then
set udg_Switched[13] = true
set udg_ColorPanel[13] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0453, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_C_Func015Func010C() ) then
set udg_Switched[13] = true
set udg_ColorPanel[13] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0453, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_C_Func015Func011C() ) then
set udg_Switched[13] = true
set udg_ColorPanel[13] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0453, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_C_Func015Func013C() ) then
set udg_Switched[14] = true
set udg_ColorPanel[14] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0454, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_C_Func015Func014C() ) then
set udg_Switched[14] = true
set udg_ColorPanel[14] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0454, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Row_C_Func015Func015C() ) then
set udg_Switched[14] = true
set udg_ColorPanel[14] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0454, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_C_Func015Func017C() ) then
set udg_Switched[15] = true
set udg_ColorPanel[15] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0447, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_C_Func015Func018C() ) then
set udg_Switched[15] = true
set udg_ColorPanel[15] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0447, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Row_C_Func015Func019C() ) then
set udg_Switched[15] = true
set udg_ColorPanel[15] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0447, 100.00, 0.00, 0.00, 0 )
else
endif
else
endif
if ( Trig_Row_C_Func016C() ) then
if ( Trig_Row_C_Func016Func002C() ) then
set udg_Switched[11] = true
set udg_ColorPanel[11] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0439, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Row_C_Func016Func003C() ) then
set udg_Switched[11] = true
set udg_ColorPanel[11] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0439, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_C_Func016Func004C() ) then
set udg_Switched[11] = true
set udg_ColorPanel[11] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0439, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_C_Func016Func005C() ) then
set udg_Switched[11] = true
set udg_ColorPanel[11] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0439, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_C_Func016Func007C() ) then
set udg_Switched[12] = true
set udg_ColorPanel[12] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0452, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Row_C_Func016Func008C() ) then
set udg_Switched[12] = true
set udg_ColorPanel[12] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0452, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_C_Func016Func009C() ) then
set udg_Switched[12] = true
set udg_ColorPanel[12] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0452, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_C_Func016Func010C() ) then
set udg_Switched[12] = true
set udg_ColorPanel[12] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0452, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_C_Func016Func012C() ) then
set udg_Switched[13] = true
set udg_ColorPanel[13] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0453, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Row_C_Func016Func013C() ) then
set udg_Switched[13] = true
set udg_ColorPanel[13] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0453, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_C_Func016Func014C() ) then
set udg_Switched[13] = true
set udg_ColorPanel[13] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0453, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_C_Func016Func015C() ) then
set udg_Switched[13] = true
set udg_ColorPanel[13] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0453, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_C_Func016Func017C() ) then
set udg_Switched[14] = true
set udg_ColorPanel[14] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0454, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Row_C_Func016Func018C() ) then
set udg_Switched[14] = true
set udg_ColorPanel[14] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0454, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_C_Func016Func019C() ) then
set udg_Switched[14] = true
set udg_ColorPanel[14] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0454, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Row_C_Func016Func020C() ) then
set udg_Switched[14] = true
set udg_ColorPanel[14] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0454, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_C_Func016Func022C() ) then
set udg_Switched[15] = true
set udg_ColorPanel[15] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0447, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Row_C_Func016Func023C() ) then
set udg_Switched[15] = true
set udg_ColorPanel[15] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0447, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_C_Func016Func024C() ) then
set udg_Switched[15] = true
set udg_ColorPanel[15] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0447, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Row_C_Func016Func025C() ) then
set udg_Switched[15] = true
set udg_ColorPanel[15] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0447, 100.00, 0.00, 0.00, 0 )
else
endif
else
endif
set udg_Switched[11] = false
set udg_Switched[12] = false
set udg_Switched[13] = false
set udg_Switched[14] = false
set udg_Switched[15] = false
call EnableTrigger( gg_trg_Row_A )
call EnableTrigger( gg_trg_Row_B )
call EnableTrigger( gg_trg_Row_C )
call EnableTrigger( gg_trg_Row_D )
call EnableTrigger( gg_trg_Row_E )
call EnableTrigger( gg_trg_Column_1 )
call EnableTrigger( gg_trg_Column_2 )
call EnableTrigger( gg_trg_Column_3 )
call EnableTrigger( gg_trg_Column_4 )
call EnableTrigger( gg_trg_Column_5 )
call EnableTrigger( gg_trg_Diagonal_1 )
call EnableTrigger( gg_trg_Diagonal_2 )
call EnableTrigger( gg_trg_Reset_Puzzle_2 )
call ConditionalTriggerExecute( gg_trg_Win_Puzzle_2 )
endfunction
//===========================================================================
function InitTrig_Row_C takes nothing returns nothing
set gg_trg_Row_C = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Row_C, gg_rct_Rect_460_Copy_2 )
call TriggerAddCondition( gg_trg_Row_C, Condition( function Trig_Row_C_Conditions ) )
call TriggerAddAction( gg_trg_Row_C, function Trig_Row_C_Actions )
endfunction
function Trig_Row_D_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(PLAYER_NEUTRAL_PASSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func014Func001C takes nothing returns boolean
if ( not ( udg_Switched[16] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[16] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func014Func002C takes nothing returns boolean
if ( not ( udg_Switched[16] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[16] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func014Func004C takes nothing returns boolean
if ( not ( udg_Switched[17] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[17] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func014Func005C takes nothing returns boolean
if ( not ( udg_Switched[17] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[17] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func014Func007C takes nothing returns boolean
if ( not ( udg_Switched[18] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[18] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func014Func008C takes nothing returns boolean
if ( not ( udg_Switched[18] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[18] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func014Func010C takes nothing returns boolean
if ( not ( udg_Switched[19] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[19] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func014Func011C takes nothing returns boolean
if ( not ( udg_Switched[19] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[19] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func014Func013C takes nothing returns boolean
if ( not ( udg_Switched[20] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[20] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func014Func014C takes nothing returns boolean
if ( not ( udg_Switched[20] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[20] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func014C takes nothing returns boolean
if ( not ( udg_easy == true ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func015Func001C takes nothing returns boolean
if ( not ( udg_Switched[16] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[16] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func015Func002C takes nothing returns boolean
if ( not ( udg_Switched[16] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[16] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func015Func003C takes nothing returns boolean
if ( not ( udg_Switched[16] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[16] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func015Func005C takes nothing returns boolean
if ( not ( udg_Switched[17] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[17] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func015Func006C takes nothing returns boolean
if ( not ( udg_Switched[17] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[17] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func015Func007C takes nothing returns boolean
if ( not ( udg_Switched[17] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[17] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func015Func009C takes nothing returns boolean
if ( not ( udg_Switched[18] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[18] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func015Func010C takes nothing returns boolean
if ( not ( udg_Switched[18] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[18] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func015Func011C takes nothing returns boolean
if ( not ( udg_Switched[18] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[18] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func015Func013C takes nothing returns boolean
if ( not ( udg_Switched[19] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[19] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func015Func014C takes nothing returns boolean
if ( not ( udg_Switched[19] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[19] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func015Func015C takes nothing returns boolean
if ( not ( udg_Switched[19] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[19] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func015Func017C takes nothing returns boolean
if ( not ( udg_Switched[20] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[20] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func015Func018C takes nothing returns boolean
if ( not ( udg_Switched[20] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[20] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func015Func019C takes nothing returns boolean
if ( not ( udg_Switched[20] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[20] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func015C takes nothing returns boolean
if ( not ( udg_hard == true ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func016Func001C takes nothing returns boolean
if ( ( udg_very_hard == true ) ) then
return true
endif
if ( ( udg_impossible == true ) ) then
return true
endif
return false
endfunction
function Trig_Row_D_Func016Func002C takes nothing returns boolean
if ( not ( udg_Switched[16] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[16] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func016Func003C takes nothing returns boolean
if ( not ( udg_Switched[16] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[16] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func016Func004C takes nothing returns boolean
if ( not ( udg_Switched[16] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[16] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func016Func005C takes nothing returns boolean
if ( not ( udg_Switched[16] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[16] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func016Func007C takes nothing returns boolean
if ( not ( udg_Switched[17] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[17] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func016Func008C takes nothing returns boolean
if ( not ( udg_Switched[17] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[17] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func016Func009C takes nothing returns boolean
if ( not ( udg_Switched[17] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[17] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func016Func010C takes nothing returns boolean
if ( not ( udg_Switched[17] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[17] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func016Func012C takes nothing returns boolean
if ( not ( udg_Switched[18] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[18] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func016Func013C takes nothing returns boolean
if ( not ( udg_Switched[18] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[18] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func016Func014C takes nothing returns boolean
if ( not ( udg_Switched[18] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[18] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func016Func015C takes nothing returns boolean
if ( not ( udg_Switched[18] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[18] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func016Func017C takes nothing returns boolean
if ( not ( udg_Switched[19] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[19] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func016Func018C takes nothing returns boolean
if ( not ( udg_Switched[19] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[19] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func016Func019C takes nothing returns boolean
if ( not ( udg_Switched[19] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[19] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func016Func020C takes nothing returns boolean
if ( not ( udg_Switched[19] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[19] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func016Func022C takes nothing returns boolean
if ( not ( udg_Switched[20] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[20] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func016Func023C takes nothing returns boolean
if ( not ( udg_Switched[20] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[20] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func016Func024C takes nothing returns boolean
if ( not ( udg_Switched[20] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[20] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func016Func025C takes nothing returns boolean
if ( not ( udg_Switched[20] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[20] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_D_Func016C takes nothing returns boolean
if ( not Trig_Row_D_Func016Func001C() ) then
return false
endif
return true
endfunction
function Trig_Row_D_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Row_A )
call DisableTrigger( gg_trg_Row_B )
call DisableTrigger( gg_trg_Row_C )
call DisableTrigger( gg_trg_Row_D )
call DisableTrigger( gg_trg_Row_E )
call DisableTrigger( gg_trg_Column_1 )
call DisableTrigger( gg_trg_Column_2 )
call DisableTrigger( gg_trg_Column_3 )
call DisableTrigger( gg_trg_Column_4 )
call DisableTrigger( gg_trg_Column_5 )
call DisableTrigger( gg_trg_Diagonal_1 )
call DisableTrigger( gg_trg_Diagonal_2 )
call DisableTrigger( gg_trg_Reset_Puzzle_2 )
if ( Trig_Row_D_Func014C() ) then
if ( Trig_Row_D_Func014Func001C() ) then
set udg_Switched[16] = true
set udg_ColorPanel[16] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0440, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_D_Func014Func002C() ) then
set udg_Switched[16] = true
set udg_ColorPanel[16] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0440, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_D_Func014Func004C() ) then
set udg_Switched[17] = true
set udg_ColorPanel[17] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0455, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_D_Func014Func005C() ) then
set udg_Switched[17] = true
set udg_ColorPanel[17] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0455, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_D_Func014Func007C() ) then
set udg_Switched[18] = true
set udg_ColorPanel[18] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0456, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_D_Func014Func008C() ) then
set udg_Switched[18] = true
set udg_ColorPanel[18] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0456, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_D_Func014Func010C() ) then
set udg_Switched[19] = true
set udg_ColorPanel[19] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0457, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Row_D_Func014Func011C() ) then
set udg_Switched[19] = true
set udg_ColorPanel[19] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0457, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_D_Func014Func013C() ) then
set udg_Switched[20] = true
set udg_ColorPanel[20] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0446, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Row_D_Func014Func014C() ) then
set udg_Switched[20] = true
set udg_ColorPanel[20] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0446, 100.00, 0.00, 0.00, 0 )
else
endif
else
endif
if ( Trig_Row_D_Func015C() ) then
if ( Trig_Row_D_Func015Func001C() ) then
set udg_Switched[16] = true
set udg_ColorPanel[16] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0440, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_D_Func015Func002C() ) then
set udg_Switched[16] = true
set udg_ColorPanel[16] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0440, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_D_Func015Func003C() ) then
set udg_Switched[16] = true
set udg_ColorPanel[16] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0440, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_D_Func015Func005C() ) then
set udg_Switched[17] = true
set udg_ColorPanel[17] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0455, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_D_Func015Func006C() ) then
set udg_Switched[17] = true
set udg_ColorPanel[17] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0455, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_D_Func015Func007C() ) then
set udg_Switched[17] = true
set udg_ColorPanel[17] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0455, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_D_Func015Func009C() ) then
set udg_Switched[18] = true
set udg_ColorPanel[18] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0456, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_D_Func015Func010C() ) then
set udg_Switched[18] = true
set udg_ColorPanel[18] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0456, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_D_Func015Func011C() ) then
set udg_Switched[18] = true
set udg_ColorPanel[18] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0456, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_D_Func015Func013C() ) then
set udg_Switched[19] = true
set udg_ColorPanel[19] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0457, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_D_Func015Func014C() ) then
set udg_Switched[19] = true
set udg_ColorPanel[19] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0457, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Row_D_Func015Func015C() ) then
set udg_Switched[19] = true
set udg_ColorPanel[19] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0457, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_D_Func015Func017C() ) then
set udg_Switched[20] = true
set udg_ColorPanel[20] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0446, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_D_Func015Func018C() ) then
set udg_Switched[20] = true
set udg_ColorPanel[20] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0446, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Row_D_Func015Func019C() ) then
set udg_Switched[20] = true
set udg_ColorPanel[20] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0446, 100.00, 0.00, 0.00, 0 )
else
endif
else
endif
if ( Trig_Row_D_Func016C() ) then
if ( Trig_Row_D_Func016Func002C() ) then
set udg_Switched[16] = true
set udg_ColorPanel[16] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0440, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Row_D_Func016Func003C() ) then
set udg_Switched[16] = true
set udg_ColorPanel[16] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0440, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_D_Func016Func004C() ) then
set udg_Switched[16] = true
set udg_ColorPanel[16] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0440, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_D_Func016Func005C() ) then
set udg_Switched[16] = true
set udg_ColorPanel[16] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0440, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_D_Func016Func007C() ) then
set udg_Switched[17] = true
set udg_ColorPanel[17] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0455, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Row_D_Func016Func008C() ) then
set udg_Switched[17] = true
set udg_ColorPanel[17] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0455, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_D_Func016Func009C() ) then
set udg_Switched[17] = true
set udg_ColorPanel[17] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0455, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_D_Func016Func010C() ) then
set udg_Switched[17] = true
set udg_ColorPanel[17] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0455, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_D_Func016Func012C() ) then
set udg_Switched[18] = true
set udg_ColorPanel[18] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0456, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Row_D_Func016Func013C() ) then
set udg_Switched[18] = true
set udg_ColorPanel[18] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0456, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_D_Func016Func014C() ) then
set udg_Switched[18] = true
set udg_ColorPanel[18] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0456, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_D_Func016Func015C() ) then
set udg_Switched[18] = true
set udg_ColorPanel[18] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0456, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_D_Func016Func017C() ) then
set udg_Switched[19] = true
set udg_ColorPanel[19] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0457, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Row_D_Func016Func018C() ) then
set udg_Switched[19] = true
set udg_ColorPanel[19] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0457, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_D_Func016Func019C() ) then
set udg_Switched[19] = true
set udg_ColorPanel[19] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0457, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Row_D_Func016Func020C() ) then
set udg_Switched[19] = true
set udg_ColorPanel[19] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0457, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_D_Func016Func022C() ) then
set udg_Switched[20] = true
set udg_ColorPanel[20] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0446, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Row_D_Func016Func023C() ) then
set udg_Switched[20] = true
set udg_ColorPanel[20] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0446, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_D_Func016Func024C() ) then
set udg_Switched[20] = true
set udg_ColorPanel[20] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0446, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Row_D_Func016Func025C() ) then
set udg_Switched[20] = true
set udg_ColorPanel[20] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0446, 100.00, 0.00, 0.00, 0 )
else
endif
else
endif
set udg_Switched[16] = false
set udg_Switched[17] = false
set udg_Switched[18] = false
set udg_Switched[19] = false
set udg_Switched[20] = false
call EnableTrigger( gg_trg_Row_A )
call EnableTrigger( gg_trg_Row_B )
call EnableTrigger( gg_trg_Row_C )
call EnableTrigger( gg_trg_Row_D )
call EnableTrigger( gg_trg_Row_E )
call EnableTrigger( gg_trg_Column_1 )
call EnableTrigger( gg_trg_Column_2 )
call EnableTrigger( gg_trg_Column_3 )
call EnableTrigger( gg_trg_Column_4 )
call EnableTrigger( gg_trg_Column_5 )
call EnableTrigger( gg_trg_Diagonal_1 )
call EnableTrigger( gg_trg_Diagonal_2 )
call EnableTrigger( gg_trg_Reset_Puzzle_2 )
call ConditionalTriggerExecute( gg_trg_Win_Puzzle_2 )
endfunction
//===========================================================================
function InitTrig_Row_D takes nothing returns nothing
set gg_trg_Row_D = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Row_D, gg_rct_Rect_460_Copy_3 )
call TriggerAddCondition( gg_trg_Row_D, Condition( function Trig_Row_D_Conditions ) )
call TriggerAddAction( gg_trg_Row_D, function Trig_Row_D_Actions )
endfunction
function Trig_Row_E_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(PLAYER_NEUTRAL_PASSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func014Func001C takes nothing returns boolean
if ( not ( udg_Switched[21] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[21] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func014Func002C takes nothing returns boolean
if ( not ( udg_Switched[21] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[21] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func014Func004C takes nothing returns boolean
if ( not ( udg_Switched[22] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[22] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func014Func005C takes nothing returns boolean
if ( not ( udg_Switched[22] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[22] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func014Func007C takes nothing returns boolean
if ( not ( udg_Switched[23] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[23] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func014Func008C takes nothing returns boolean
if ( not ( udg_Switched[23] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[23] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func014Func010C takes nothing returns boolean
if ( not ( udg_Switched[24] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[24] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func014Func011C takes nothing returns boolean
if ( not ( udg_Switched[24] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[24] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func014Func013C takes nothing returns boolean
if ( not ( udg_Switched[25] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[25] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func014Func014C takes nothing returns boolean
if ( not ( udg_Switched[25] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[25] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func014C takes nothing returns boolean
if ( not ( udg_easy == true ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func015Func001C takes nothing returns boolean
if ( not ( udg_Switched[21] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[21] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func015Func002C takes nothing returns boolean
if ( not ( udg_Switched[21] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[21] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func015Func003C takes nothing returns boolean
if ( not ( udg_Switched[21] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[21] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func015Func005C takes nothing returns boolean
if ( not ( udg_Switched[22] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[22] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func015Func006C takes nothing returns boolean
if ( not ( udg_Switched[22] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[22] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func015Func007C takes nothing returns boolean
if ( not ( udg_Switched[22] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[22] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func015Func009C takes nothing returns boolean
if ( not ( udg_Switched[23] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[23] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func015Func010C takes nothing returns boolean
if ( not ( udg_Switched[23] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[23] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func015Func011C takes nothing returns boolean
if ( not ( udg_Switched[23] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[23] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func015Func013C takes nothing returns boolean
if ( not ( udg_Switched[24] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[24] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func015Func014C takes nothing returns boolean
if ( not ( udg_Switched[24] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[24] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func015Func015C takes nothing returns boolean
if ( not ( udg_Switched[24] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[24] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func015Func017C takes nothing returns boolean
if ( not ( udg_Switched[25] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[25] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func015Func018C takes nothing returns boolean
if ( not ( udg_Switched[25] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[25] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func015Func019C takes nothing returns boolean
if ( not ( udg_Switched[25] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[25] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func015C takes nothing returns boolean
if ( not ( udg_hard == true ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func016Func001C takes nothing returns boolean
if ( ( udg_very_hard == true ) ) then
return true
endif
if ( ( udg_impossible == true ) ) then
return true
endif
return false
endfunction
function Trig_Row_E_Func016Func002C takes nothing returns boolean
if ( not ( udg_Switched[21] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[21] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func016Func003C takes nothing returns boolean
if ( not ( udg_Switched[21] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[21] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func016Func004C takes nothing returns boolean
if ( not ( udg_Switched[21] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[21] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func016Func005C takes nothing returns boolean
if ( not ( udg_Switched[21] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[21] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func016Func007C takes nothing returns boolean
if ( not ( udg_Switched[22] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[22] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func016Func008C takes nothing returns boolean
if ( not ( udg_Switched[22] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[22] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func016Func009C takes nothing returns boolean
if ( not ( udg_Switched[22] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[22] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func016Func010C takes nothing returns boolean
if ( not ( udg_Switched[22] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[22] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func016Func012C takes nothing returns boolean
if ( not ( udg_Switched[23] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[23] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func016Func013C takes nothing returns boolean
if ( not ( udg_Switched[23] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[23] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func016Func014C takes nothing returns boolean
if ( not ( udg_Switched[23] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[23] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func016Func015C takes nothing returns boolean
if ( not ( udg_Switched[23] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[23] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func016Func017C takes nothing returns boolean
if ( not ( udg_Switched[24] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[24] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func016Func018C takes nothing returns boolean
if ( not ( udg_Switched[24] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[24] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func016Func019C takes nothing returns boolean
if ( not ( udg_Switched[24] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[24] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func016Func020C takes nothing returns boolean
if ( not ( udg_Switched[24] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[24] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func016Func022C takes nothing returns boolean
if ( not ( udg_Switched[25] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[25] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func016Func023C takes nothing returns boolean
if ( not ( udg_Switched[25] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[25] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func016Func024C takes nothing returns boolean
if ( not ( udg_Switched[25] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[25] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func016Func025C takes nothing returns boolean
if ( not ( udg_Switched[25] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[25] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Row_E_Func016C takes nothing returns boolean
if ( not Trig_Row_E_Func016Func001C() ) then
return false
endif
return true
endfunction
function Trig_Row_E_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Row_A )
call DisableTrigger( gg_trg_Row_B )
call DisableTrigger( gg_trg_Row_C )
call DisableTrigger( gg_trg_Row_D )
call DisableTrigger( gg_trg_Row_E )
call DisableTrigger( gg_trg_Column_1 )
call DisableTrigger( gg_trg_Column_2 )
call DisableTrigger( gg_trg_Column_3 )
call DisableTrigger( gg_trg_Column_4 )
call DisableTrigger( gg_trg_Column_5 )
call DisableTrigger( gg_trg_Diagonal_1 )
call DisableTrigger( gg_trg_Diagonal_2 )
call DisableTrigger( gg_trg_Reset_Puzzle_2 )
if ( Trig_Row_E_Func014C() ) then
if ( Trig_Row_E_Func014Func001C() ) then
set udg_Switched[21] = true
set udg_ColorPanel[21] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0441, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_E_Func014Func002C() ) then
set udg_Switched[21] = true
set udg_ColorPanel[21] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0441, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_E_Func014Func004C() ) then
set udg_Switched[22] = true
set udg_ColorPanel[22] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0442, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_E_Func014Func005C() ) then
set udg_Switched[22] = true
set udg_ColorPanel[22] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0442, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_E_Func014Func007C() ) then
set udg_Switched[23] = true
set udg_ColorPanel[23] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0443, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_E_Func014Func008C() ) then
set udg_Switched[23] = true
set udg_ColorPanel[23] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0443, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_E_Func014Func010C() ) then
set udg_Switched[24] = true
set udg_ColorPanel[24] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0444, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Row_E_Func014Func011C() ) then
set udg_Switched[24] = true
set udg_ColorPanel[24] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0444, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_E_Func014Func013C() ) then
set udg_Switched[25] = true
set udg_ColorPanel[25] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0445, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Row_E_Func014Func014C() ) then
set udg_Switched[25] = true
set udg_ColorPanel[25] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0445, 100.00, 0.00, 0.00, 0 )
else
endif
else
endif
if ( Trig_Row_E_Func015C() ) then
if ( Trig_Row_E_Func015Func001C() ) then
set udg_Switched[21] = true
set udg_ColorPanel[21] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0441, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_E_Func015Func002C() ) then
set udg_Switched[21] = true
set udg_ColorPanel[21] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0441, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_E_Func015Func003C() ) then
set udg_Switched[21] = true
set udg_ColorPanel[21] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0441, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_E_Func015Func005C() ) then
set udg_Switched[22] = true
set udg_ColorPanel[22] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0442, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_E_Func015Func006C() ) then
set udg_Switched[22] = true
set udg_ColorPanel[22] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0442, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_E_Func015Func007C() ) then
set udg_Switched[22] = true
set udg_ColorPanel[22] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0442, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_E_Func015Func009C() ) then
set udg_Switched[23] = true
set udg_ColorPanel[23] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0443, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_E_Func015Func010C() ) then
set udg_Switched[23] = true
set udg_ColorPanel[23] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0443, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_E_Func015Func011C() ) then
set udg_Switched[23] = true
set udg_ColorPanel[23] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0443, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_E_Func015Func013C() ) then
set udg_Switched[24] = true
set udg_ColorPanel[24] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0444, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_E_Func015Func014C() ) then
set udg_Switched[24] = true
set udg_ColorPanel[24] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0444, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Row_E_Func015Func015C() ) then
set udg_Switched[24] = true
set udg_ColorPanel[24] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0444, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_E_Func015Func017C() ) then
set udg_Switched[25] = true
set udg_ColorPanel[25] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0445, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_E_Func015Func018C() ) then
set udg_Switched[25] = true
set udg_ColorPanel[25] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0445, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Row_E_Func015Func019C() ) then
set udg_Switched[25] = true
set udg_ColorPanel[25] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0445, 100.00, 0.00, 0.00, 0 )
else
endif
else
endif
if ( Trig_Row_E_Func016C() ) then
if ( Trig_Row_E_Func016Func002C() ) then
set udg_Switched[21] = true
set udg_ColorPanel[21] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0441, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Row_E_Func016Func003C() ) then
set udg_Switched[21] = true
set udg_ColorPanel[21] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0441, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_E_Func016Func004C() ) then
set udg_Switched[21] = true
set udg_ColorPanel[21] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0441, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_E_Func016Func005C() ) then
set udg_Switched[21] = true
set udg_ColorPanel[21] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0441, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_E_Func016Func007C() ) then
set udg_Switched[22] = true
set udg_ColorPanel[22] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0442, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Row_E_Func016Func008C() ) then
set udg_Switched[22] = true
set udg_ColorPanel[22] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0442, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_E_Func016Func009C() ) then
set udg_Switched[22] = true
set udg_ColorPanel[22] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0442, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_E_Func016Func010C() ) then
set udg_Switched[22] = true
set udg_ColorPanel[22] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0442, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_E_Func016Func012C() ) then
set udg_Switched[23] = true
set udg_ColorPanel[23] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0443, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Row_E_Func016Func013C() ) then
set udg_Switched[23] = true
set udg_ColorPanel[23] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0443, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_E_Func016Func014C() ) then
set udg_Switched[23] = true
set udg_ColorPanel[23] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0443, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Row_E_Func016Func015C() ) then
set udg_Switched[23] = true
set udg_ColorPanel[23] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0443, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_E_Func016Func017C() ) then
set udg_Switched[24] = true
set udg_ColorPanel[24] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0444, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Row_E_Func016Func018C() ) then
set udg_Switched[24] = true
set udg_ColorPanel[24] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0444, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_E_Func016Func019C() ) then
set udg_Switched[24] = true
set udg_ColorPanel[24] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0444, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Row_E_Func016Func020C() ) then
set udg_Switched[24] = true
set udg_ColorPanel[24] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0444, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Row_E_Func016Func022C() ) then
set udg_Switched[25] = true
set udg_ColorPanel[25] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0445, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Row_E_Func016Func023C() ) then
set udg_Switched[25] = true
set udg_ColorPanel[25] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0445, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Row_E_Func016Func024C() ) then
set udg_Switched[25] = true
set udg_ColorPanel[25] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0445, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Row_E_Func016Func025C() ) then
set udg_Switched[25] = true
set udg_ColorPanel[25] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0445, 100.00, 0.00, 0.00, 0 )
else
endif
else
endif
set udg_Switched[21] = false
set udg_Switched[22] = false
set udg_Switched[23] = false
set udg_Switched[24] = false
set udg_Switched[25] = false
call EnableTrigger( gg_trg_Row_A )
call EnableTrigger( gg_trg_Row_B )
call EnableTrigger( gg_trg_Row_C )
call EnableTrigger( gg_trg_Row_D )
call EnableTrigger( gg_trg_Row_E )
call EnableTrigger( gg_trg_Column_1 )
call EnableTrigger( gg_trg_Column_2 )
call EnableTrigger( gg_trg_Column_3 )
call EnableTrigger( gg_trg_Column_4 )
call EnableTrigger( gg_trg_Column_5 )
call EnableTrigger( gg_trg_Diagonal_1 )
call EnableTrigger( gg_trg_Diagonal_2 )
call EnableTrigger( gg_trg_Reset_Puzzle_2 )
call ConditionalTriggerExecute( gg_trg_Win_Puzzle_2 )
endfunction
//===========================================================================
function InitTrig_Row_E takes nothing returns nothing
set gg_trg_Row_E = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Row_E, gg_rct_Rect_460_Copy_4 )
call TriggerAddCondition( gg_trg_Row_E, Condition( function Trig_Row_E_Conditions ) )
call TriggerAddAction( gg_trg_Row_E, function Trig_Row_E_Actions )
endfunction
function Trig_Column_1_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(PLAYER_NEUTRAL_PASSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func014Func001C takes nothing returns boolean
if ( not ( udg_Switched[21] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[21] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func014Func002C takes nothing returns boolean
if ( not ( udg_Switched[21] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[21] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func014Func004C takes nothing returns boolean
if ( not ( udg_Switched[16] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[16] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func014Func005C takes nothing returns boolean
if ( not ( udg_Switched[16] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[16] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func014Func007C takes nothing returns boolean
if ( not ( udg_Switched[11] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[11] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func014Func008C takes nothing returns boolean
if ( not ( udg_Switched[11] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[11] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func014Func010C takes nothing returns boolean
if ( not ( udg_Switched[6] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[6] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func014Func011C takes nothing returns boolean
if ( not ( udg_Switched[6] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[6] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func014Func013C takes nothing returns boolean
if ( not ( udg_Switched[1] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[1] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func014Func014C takes nothing returns boolean
if ( not ( udg_Switched[1] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[1] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func014C takes nothing returns boolean
if ( not ( udg_easy == true ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func015Func001C takes nothing returns boolean
if ( not ( udg_Switched[21] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[21] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func015Func002C takes nothing returns boolean
if ( not ( udg_Switched[21] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[21] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func015Func003C takes nothing returns boolean
if ( not ( udg_Switched[21] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[21] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func015Func005C takes nothing returns boolean
if ( not ( udg_Switched[16] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[16] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func015Func006C takes nothing returns boolean
if ( not ( udg_Switched[16] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[16] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func015Func007C takes nothing returns boolean
if ( not ( udg_Switched[16] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[16] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func015Func009C takes nothing returns boolean
if ( not ( udg_Switched[11] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[11] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func015Func010C takes nothing returns boolean
if ( not ( udg_Switched[11] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[11] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func015Func011C takes nothing returns boolean
if ( not ( udg_Switched[11] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[11] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func015Func013C takes nothing returns boolean
if ( not ( udg_Switched[6] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[6] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func015Func014C takes nothing returns boolean
if ( not ( udg_Switched[6] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[6] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func015Func015C takes nothing returns boolean
if ( not ( udg_Switched[6] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[6] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func015Func017C takes nothing returns boolean
if ( not ( udg_Switched[1] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[1] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func015Func018C takes nothing returns boolean
if ( not ( udg_Switched[1] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[1] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func015Func019C takes nothing returns boolean
if ( not ( udg_Switched[1] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[1] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func015C takes nothing returns boolean
if ( not ( udg_hard == true ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func016Func001C takes nothing returns boolean
if ( not ( udg_Switched[21] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[21] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func016Func002C takes nothing returns boolean
if ( not ( udg_Switched[21] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[21] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func016Func003C takes nothing returns boolean
if ( not ( udg_Switched[21] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[21] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func016Func004C takes nothing returns boolean
if ( not ( udg_Switched[21] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[21] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func016Func006C takes nothing returns boolean
if ( not ( udg_Switched[16] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[16] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func016Func007C takes nothing returns boolean
if ( not ( udg_Switched[16] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[16] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func016Func008C takes nothing returns boolean
if ( not ( udg_Switched[16] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[16] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func016Func009C takes nothing returns boolean
if ( not ( udg_Switched[16] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[16] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func016Func011C takes nothing returns boolean
if ( not ( udg_Switched[11] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[11] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func016Func012C takes nothing returns boolean
if ( not ( udg_Switched[11] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[11] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func016Func013C takes nothing returns boolean
if ( not ( udg_Switched[11] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[11] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func016Func014C takes nothing returns boolean
if ( not ( udg_Switched[11] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[11] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func016Func016C takes nothing returns boolean
if ( not ( udg_Switched[6] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[6] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func016Func017C takes nothing returns boolean
if ( not ( udg_Switched[6] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[6] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func016Func018C takes nothing returns boolean
if ( not ( udg_Switched[6] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[6] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func016Func019C takes nothing returns boolean
if ( not ( udg_Switched[6] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[6] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func016Func021C takes nothing returns boolean
if ( not ( udg_Switched[1] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[1] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func016Func022C takes nothing returns boolean
if ( not ( udg_Switched[1] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[1] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func016Func023C takes nothing returns boolean
if ( not ( udg_Switched[1] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[1] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func016Func024C takes nothing returns boolean
if ( not ( udg_Switched[1] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[1] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_1_Func016Func025C takes nothing returns boolean
if ( ( udg_very_hard == true ) ) then
return true
endif
if ( ( udg_impossible == true ) ) then
return true
endif
return false
endfunction
function Trig_Column_1_Func016C takes nothing returns boolean
if ( not Trig_Column_1_Func016Func025C() ) then
return false
endif
return true
endfunction
function Trig_Column_1_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Row_A )
call DisableTrigger( gg_trg_Row_B )
call DisableTrigger( gg_trg_Row_C )
call DisableTrigger( gg_trg_Row_D )
call DisableTrigger( gg_trg_Row_E )
call DisableTrigger( gg_trg_Column_1 )
call DisableTrigger( gg_trg_Column_2 )
call DisableTrigger( gg_trg_Column_3 )
call DisableTrigger( gg_trg_Column_4 )
call DisableTrigger( gg_trg_Column_5 )
call DisableTrigger( gg_trg_Diagonal_1 )
call DisableTrigger( gg_trg_Diagonal_2 )
call DisableTrigger( gg_trg_Reset_Puzzle_2 )
if ( Trig_Column_1_Func014C() ) then
if ( Trig_Column_1_Func014Func001C() ) then
set udg_Switched[21] = true
set udg_ColorPanel[21] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0441, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_1_Func014Func002C() ) then
set udg_Switched[21] = true
set udg_ColorPanel[21] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0441, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_1_Func014Func004C() ) then
set udg_Switched[16] = true
set udg_ColorPanel[16] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0440, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_1_Func014Func005C() ) then
set udg_Switched[16] = true
set udg_ColorPanel[16] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0440, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_1_Func014Func007C() ) then
set udg_Switched[11] = true
set udg_ColorPanel[11] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0439, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_1_Func014Func008C() ) then
set udg_Switched[11] = true
set udg_ColorPanel[11] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0439, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_1_Func014Func010C() ) then
set udg_Switched[6] = true
set udg_ColorPanel[6] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0438, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_1_Func014Func011C() ) then
set udg_Switched[6] = true
set udg_ColorPanel[6] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0438, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_1_Func014Func013C() ) then
set udg_Switched[1] = true
set udg_ColorPanel[1] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0437, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_1_Func014Func014C() ) then
set udg_Switched[1] = true
set udg_ColorPanel[1] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0437, 100.00, 0.00, 0.00, 0 )
else
endif
else
endif
if ( Trig_Column_1_Func015C() ) then
if ( Trig_Column_1_Func015Func001C() ) then
set udg_Switched[21] = true
set udg_ColorPanel[21] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0441, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_1_Func015Func002C() ) then
set udg_Switched[21] = true
set udg_ColorPanel[21] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0441, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_1_Func015Func003C() ) then
set udg_Switched[21] = true
set udg_ColorPanel[21] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0441, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_1_Func015Func005C() ) then
set udg_Switched[16] = true
set udg_ColorPanel[16] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0440, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_1_Func015Func006C() ) then
set udg_Switched[16] = true
set udg_ColorPanel[16] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0440, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_1_Func015Func007C() ) then
set udg_Switched[16] = true
set udg_ColorPanel[16] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0440, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_1_Func015Func009C() ) then
set udg_Switched[11] = true
set udg_ColorPanel[11] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0439, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_1_Func015Func010C() ) then
set udg_Switched[11] = true
set udg_ColorPanel[11] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0439, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_1_Func015Func011C() ) then
set udg_Switched[11] = true
set udg_ColorPanel[11] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0439, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_1_Func015Func013C() ) then
set udg_Switched[6] = true
set udg_ColorPanel[6] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0438, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_1_Func015Func014C() ) then
set udg_Switched[6] = true
set udg_ColorPanel[6] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0438, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_1_Func015Func015C() ) then
set udg_Switched[6] = true
set udg_ColorPanel[6] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0438, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_1_Func015Func017C() ) then
set udg_Switched[1] = true
set udg_ColorPanel[1] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0437, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_1_Func015Func018C() ) then
set udg_Switched[1] = true
set udg_ColorPanel[1] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0437, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_1_Func015Func019C() ) then
set udg_Switched[1] = true
set udg_ColorPanel[1] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0437, 100.00, 0.00, 0.00, 0 )
else
endif
else
endif
if ( Trig_Column_1_Func016C() ) then
if ( Trig_Column_1_Func016Func001C() ) then
set udg_Switched[21] = true
set udg_ColorPanel[21] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0441, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Column_1_Func016Func002C() ) then
set udg_Switched[21] = true
set udg_ColorPanel[21] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0441, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_1_Func016Func003C() ) then
set udg_Switched[21] = true
set udg_ColorPanel[21] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0441, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_1_Func016Func004C() ) then
set udg_Switched[21] = true
set udg_ColorPanel[21] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0441, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_1_Func016Func006C() ) then
set udg_Switched[16] = true
set udg_ColorPanel[16] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0440, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Column_1_Func016Func007C() ) then
set udg_Switched[16] = true
set udg_ColorPanel[16] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0440, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_1_Func016Func008C() ) then
set udg_Switched[16] = true
set udg_ColorPanel[16] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0440, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_1_Func016Func009C() ) then
set udg_Switched[16] = true
set udg_ColorPanel[16] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0440, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_1_Func016Func011C() ) then
set udg_Switched[11] = true
set udg_ColorPanel[11] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0439, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Column_1_Func016Func012C() ) then
set udg_Switched[11] = true
set udg_ColorPanel[11] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0439, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_1_Func016Func013C() ) then
set udg_Switched[11] = true
set udg_ColorPanel[11] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0439, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_1_Func016Func014C() ) then
set udg_Switched[11] = true
set udg_ColorPanel[11] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0439, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_1_Func016Func016C() ) then
set udg_Switched[6] = true
set udg_ColorPanel[6] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0438, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Column_1_Func016Func017C() ) then
set udg_Switched[6] = true
set udg_ColorPanel[6] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0438, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_1_Func016Func018C() ) then
set udg_Switched[6] = true
set udg_ColorPanel[6] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0438, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_1_Func016Func019C() ) then
set udg_Switched[6] = true
set udg_ColorPanel[6] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0438, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_1_Func016Func021C() ) then
set udg_Switched[1] = true
set udg_ColorPanel[1] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0437, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Column_1_Func016Func022C() ) then
set udg_Switched[1] = true
set udg_ColorPanel[1] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0437, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_1_Func016Func023C() ) then
set udg_Switched[1] = true
set udg_ColorPanel[1] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0437, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_1_Func016Func024C() ) then
set udg_Switched[1] = true
set udg_ColorPanel[1] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0437, 100.00, 0.00, 0.00, 0 )
else
endif
else
endif
set udg_Switched[1] = false
set udg_Switched[6] = false
set udg_Switched[11] = false
set udg_Switched[16] = false
set udg_Switched[21] = false
call EnableTrigger( gg_trg_Row_A )
call EnableTrigger( gg_trg_Row_B )
call EnableTrigger( gg_trg_Row_C )
call EnableTrigger( gg_trg_Row_D )
call EnableTrigger( gg_trg_Row_E )
call EnableTrigger( gg_trg_Column_1 )
call EnableTrigger( gg_trg_Column_2 )
call EnableTrigger( gg_trg_Column_3 )
call EnableTrigger( gg_trg_Column_4 )
call EnableTrigger( gg_trg_Column_5 )
call EnableTrigger( gg_trg_Diagonal_1 )
call EnableTrigger( gg_trg_Diagonal_2 )
call EnableTrigger( gg_trg_Reset_Puzzle_2 )
call ConditionalTriggerExecute( gg_trg_Win_Puzzle_2 )
endfunction
//===========================================================================
function InitTrig_Column_1 takes nothing returns nothing
set gg_trg_Column_1 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Column_1, gg_rct_Rect_460_Copy_6 )
call TriggerAddCondition( gg_trg_Column_1, Condition( function Trig_Column_1_Conditions ) )
call TriggerAddAction( gg_trg_Column_1, function Trig_Column_1_Actions )
endfunction
function Trig_Column_2_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(PLAYER_NEUTRAL_PASSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func014Func001C takes nothing returns boolean
if ( not ( udg_Switched[22] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[22] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func014Func002C takes nothing returns boolean
if ( not ( udg_Switched[22] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[22] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func014Func004C takes nothing returns boolean
if ( not ( udg_Switched[17] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[17] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func014Func005C takes nothing returns boolean
if ( not ( udg_Switched[17] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[17] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func014Func007C takes nothing returns boolean
if ( not ( udg_Switched[12] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[12] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func014Func008C takes nothing returns boolean
if ( not ( udg_Switched[12] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[12] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func014Func010C takes nothing returns boolean
if ( not ( udg_Switched[7] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[7] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func014Func011C takes nothing returns boolean
if ( not ( udg_Switched[7] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[7] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func014Func013C takes nothing returns boolean
if ( not ( udg_Switched[2] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[2] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func014Func014C takes nothing returns boolean
if ( not ( udg_Switched[2] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[2] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func014C takes nothing returns boolean
if ( not ( udg_easy == true ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func015Func001C takes nothing returns boolean
if ( not ( udg_Switched[22] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[22] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func015Func002C takes nothing returns boolean
if ( not ( udg_Switched[22] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[22] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func015Func003C takes nothing returns boolean
if ( not ( udg_Switched[22] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[22] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func015Func005C takes nothing returns boolean
if ( not ( udg_Switched[17] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[17] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func015Func006C takes nothing returns boolean
if ( not ( udg_Switched[17] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[17] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func015Func007C takes nothing returns boolean
if ( not ( udg_Switched[17] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[17] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func015Func009C takes nothing returns boolean
if ( not ( udg_Switched[12] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[12] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func015Func010C takes nothing returns boolean
if ( not ( udg_Switched[12] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[12] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func015Func011C takes nothing returns boolean
if ( not ( udg_Switched[12] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[12] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func015Func013C takes nothing returns boolean
if ( not ( udg_Switched[7] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[7] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func015Func014C takes nothing returns boolean
if ( not ( udg_Switched[7] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[7] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func015Func015C takes nothing returns boolean
if ( not ( udg_Switched[7] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[7] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func015Func017C takes nothing returns boolean
if ( not ( udg_Switched[2] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[2] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func015Func018C takes nothing returns boolean
if ( not ( udg_Switched[2] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[2] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func015Func019C takes nothing returns boolean
if ( not ( udg_Switched[2] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[2] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func015C takes nothing returns boolean
if ( not ( udg_hard == true ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func016Func001C takes nothing returns boolean
if ( not ( udg_Switched[22] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[22] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func016Func002C takes nothing returns boolean
if ( not ( udg_Switched[22] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[22] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func016Func003C takes nothing returns boolean
if ( not ( udg_Switched[22] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[22] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func016Func004C takes nothing returns boolean
if ( not ( udg_Switched[22] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[22] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func016Func006C takes nothing returns boolean
if ( not ( udg_Switched[17] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[17] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func016Func007C takes nothing returns boolean
if ( not ( udg_Switched[17] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[17] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func016Func008C takes nothing returns boolean
if ( not ( udg_Switched[17] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[17] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func016Func009C takes nothing returns boolean
if ( not ( udg_Switched[17] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[17] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func016Func011C takes nothing returns boolean
if ( not ( udg_Switched[12] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[12] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func016Func012C takes nothing returns boolean
if ( not ( udg_Switched[12] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[12] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func016Func013C takes nothing returns boolean
if ( not ( udg_Switched[12] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[12] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func016Func014C takes nothing returns boolean
if ( not ( udg_Switched[12] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[12] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func016Func016C takes nothing returns boolean
if ( not ( udg_Switched[7] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[7] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func016Func017C takes nothing returns boolean
if ( not ( udg_Switched[7] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[7] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func016Func018C takes nothing returns boolean
if ( not ( udg_Switched[7] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[7] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func016Func019C takes nothing returns boolean
if ( not ( udg_Switched[7] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[7] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func016Func021C takes nothing returns boolean
if ( not ( udg_Switched[2] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[2] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func016Func022C takes nothing returns boolean
if ( not ( udg_Switched[2] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[2] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func016Func023C takes nothing returns boolean
if ( not ( udg_Switched[2] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[2] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func016Func024C takes nothing returns boolean
if ( not ( udg_Switched[2] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[2] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_2_Func016Func025C takes nothing returns boolean
if ( ( udg_very_hard == true ) ) then
return true
endif
if ( ( udg_impossible == true ) ) then
return true
endif
return false
endfunction
function Trig_Column_2_Func016C takes nothing returns boolean
if ( not Trig_Column_2_Func016Func025C() ) then
return false
endif
return true
endfunction
function Trig_Column_2_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Row_A )
call DisableTrigger( gg_trg_Row_B )
call DisableTrigger( gg_trg_Row_C )
call DisableTrigger( gg_trg_Row_D )
call DisableTrigger( gg_trg_Row_E )
call DisableTrigger( gg_trg_Column_1 )
call DisableTrigger( gg_trg_Column_2 )
call DisableTrigger( gg_trg_Column_3 )
call DisableTrigger( gg_trg_Column_4 )
call DisableTrigger( gg_trg_Column_5 )
call DisableTrigger( gg_trg_Diagonal_1 )
call DisableTrigger( gg_trg_Diagonal_2 )
call DisableTrigger( gg_trg_Reset_Puzzle_2 )
if ( Trig_Column_2_Func014C() ) then
if ( Trig_Column_2_Func014Func001C() ) then
set udg_Switched[22] = true
set udg_ColorPanel[22] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0442, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_2_Func014Func002C() ) then
set udg_Switched[22] = true
set udg_ColorPanel[22] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0442, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_2_Func014Func004C() ) then
set udg_Switched[17] = true
set udg_ColorPanel[17] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0455, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_2_Func014Func005C() ) then
set udg_Switched[17] = true
set udg_ColorPanel[17] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0455, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_2_Func014Func007C() ) then
set udg_Switched[12] = true
set udg_ColorPanel[12] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0452, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_2_Func014Func008C() ) then
set udg_Switched[12] = true
set udg_ColorPanel[12] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0452, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_2_Func014Func010C() ) then
set udg_Switched[7] = true
set udg_ColorPanel[7] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0449, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_2_Func014Func011C() ) then
set udg_Switched[7] = true
set udg_ColorPanel[7] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0449, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_2_Func014Func013C() ) then
set udg_Switched[2] = true
set udg_ColorPanel[2] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0436, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_2_Func014Func014C() ) then
set udg_Switched[2] = true
set udg_ColorPanel[2] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0436, 100.00, 0.00, 0.00, 0 )
else
endif
else
endif
if ( Trig_Column_2_Func015C() ) then
if ( Trig_Column_2_Func015Func001C() ) then
set udg_Switched[22] = true
set udg_ColorPanel[22] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0442, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_2_Func015Func002C() ) then
set udg_Switched[22] = true
set udg_ColorPanel[22] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0442, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_2_Func015Func003C() ) then
set udg_Switched[22] = true
set udg_ColorPanel[22] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0442, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_2_Func015Func005C() ) then
set udg_Switched[17] = true
set udg_ColorPanel[17] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0455, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_2_Func015Func006C() ) then
set udg_Switched[17] = true
set udg_ColorPanel[17] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0455, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_2_Func015Func007C() ) then
set udg_Switched[17] = true
set udg_ColorPanel[17] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0455, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_2_Func015Func009C() ) then
set udg_Switched[12] = true
set udg_ColorPanel[12] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0452, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_2_Func015Func010C() ) then
set udg_Switched[12] = true
set udg_ColorPanel[12] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0452, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_2_Func015Func011C() ) then
set udg_Switched[12] = true
set udg_ColorPanel[12] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0452, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_2_Func015Func013C() ) then
set udg_Switched[7] = true
set udg_ColorPanel[7] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0449, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_2_Func015Func014C() ) then
set udg_Switched[7] = true
set udg_ColorPanel[7] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0449, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_2_Func015Func015C() ) then
set udg_Switched[7] = true
set udg_ColorPanel[7] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0449, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_2_Func015Func017C() ) then
set udg_Switched[2] = true
set udg_ColorPanel[2] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0436, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_2_Func015Func018C() ) then
set udg_Switched[2] = true
set udg_ColorPanel[2] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0436, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_2_Func015Func019C() ) then
set udg_Switched[2] = true
set udg_ColorPanel[2] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0436, 100.00, 0.00, 0.00, 0 )
else
endif
else
endif
if ( Trig_Column_2_Func016C() ) then
if ( Trig_Column_2_Func016Func001C() ) then
set udg_Switched[22] = true
set udg_ColorPanel[22] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0442, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Column_2_Func016Func002C() ) then
set udg_Switched[22] = true
set udg_ColorPanel[22] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0442, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_2_Func016Func003C() ) then
set udg_Switched[22] = true
set udg_ColorPanel[22] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0442, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_2_Func016Func004C() ) then
set udg_Switched[22] = true
set udg_ColorPanel[22] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0442, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_2_Func016Func006C() ) then
set udg_Switched[17] = true
set udg_ColorPanel[17] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0455, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Column_2_Func016Func007C() ) then
set udg_Switched[17] = true
set udg_ColorPanel[17] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0455, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_2_Func016Func008C() ) then
set udg_Switched[17] = true
set udg_ColorPanel[17] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0455, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_2_Func016Func009C() ) then
set udg_Switched[17] = true
set udg_ColorPanel[17] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0455, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_2_Func016Func011C() ) then
set udg_Switched[12] = true
set udg_ColorPanel[12] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0452, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Column_2_Func016Func012C() ) then
set udg_Switched[12] = true
set udg_ColorPanel[12] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0452, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_2_Func016Func013C() ) then
set udg_Switched[12] = true
set udg_ColorPanel[12] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0452, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_2_Func016Func014C() ) then
set udg_Switched[12] = true
set udg_ColorPanel[12] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0452, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_2_Func016Func016C() ) then
set udg_Switched[7] = true
set udg_ColorPanel[7] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0449, 100.00, 90.00, 0.00, 0 )
else
endif
if ( Trig_Column_2_Func016Func017C() ) then
set udg_Switched[7] = true
set udg_ColorPanel[7] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0449, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_2_Func016Func018C() ) then
set udg_Switched[7] = true
set udg_ColorPanel[7] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0449, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_2_Func016Func019C() ) then
set udg_Switched[7] = true
set udg_ColorPanel[7] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0449, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_2_Func016Func021C() ) then
set udg_Switched[2] = true
set udg_ColorPanel[2] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0436, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Column_2_Func016Func022C() ) then
set udg_Switched[2] = true
set udg_ColorPanel[2] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0436, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_2_Func016Func023C() ) then
set udg_Switched[2] = true
set udg_ColorPanel[2] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0436, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_2_Func016Func024C() ) then
set udg_Switched[2] = true
set udg_ColorPanel[2] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0436, 100.00, 0.00, 0.00, 0 )
else
endif
else
endif
set udg_Switched[2] = false
set udg_Switched[7] = false
set udg_Switched[12] = false
set udg_Switched[17] = false
set udg_Switched[22] = false
call EnableTrigger( gg_trg_Row_A )
call EnableTrigger( gg_trg_Row_B )
call EnableTrigger( gg_trg_Row_C )
call EnableTrigger( gg_trg_Row_D )
call EnableTrigger( gg_trg_Row_E )
call EnableTrigger( gg_trg_Column_1 )
call EnableTrigger( gg_trg_Column_2 )
call EnableTrigger( gg_trg_Column_3 )
call EnableTrigger( gg_trg_Column_4 )
call EnableTrigger( gg_trg_Column_5 )
call EnableTrigger( gg_trg_Diagonal_1 )
call EnableTrigger( gg_trg_Diagonal_2 )
call EnableTrigger( gg_trg_Reset_Puzzle_2 )
call ConditionalTriggerExecute( gg_trg_Win_Puzzle_2 )
endfunction
//===========================================================================
function InitTrig_Column_2 takes nothing returns nothing
set gg_trg_Column_2 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Column_2, gg_rct_Rect_460_Copy_6_Copy )
call TriggerAddCondition( gg_trg_Column_2, Condition( function Trig_Column_2_Conditions ) )
call TriggerAddAction( gg_trg_Column_2, function Trig_Column_2_Actions )
endfunction
function Trig_Column_3_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(PLAYER_NEUTRAL_PASSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func014Func001C takes nothing returns boolean
if ( not ( udg_Switched[23] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[23] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func014Func002C takes nothing returns boolean
if ( not ( udg_Switched[23] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[23] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func014Func004C takes nothing returns boolean
if ( not ( udg_Switched[18] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[18] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func014Func005C takes nothing returns boolean
if ( not ( udg_Switched[18] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[18] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func014Func007C takes nothing returns boolean
if ( not ( udg_Switched[13] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[13] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func014Func008C takes nothing returns boolean
if ( not ( udg_Switched[13] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[13] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func014Func010C takes nothing returns boolean
if ( not ( udg_Switched[8] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[8] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func014Func011C takes nothing returns boolean
if ( not ( udg_Switched[8] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[8] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func014Func013C takes nothing returns boolean
if ( not ( udg_Switched[3] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[3] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func014Func014C takes nothing returns boolean
if ( not ( udg_Switched[3] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[3] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func014C takes nothing returns boolean
if ( not ( udg_easy == true ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func015Func001C takes nothing returns boolean
if ( not ( udg_Switched[23] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[23] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func015Func002C takes nothing returns boolean
if ( not ( udg_Switched[23] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[23] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func015Func003C takes nothing returns boolean
if ( not ( udg_Switched[23] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[23] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func015Func005C takes nothing returns boolean
if ( not ( udg_Switched[18] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[18] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func015Func006C takes nothing returns boolean
if ( not ( udg_Switched[18] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[18] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func015Func007C takes nothing returns boolean
if ( not ( udg_Switched[18] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[18] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func015Func009C takes nothing returns boolean
if ( not ( udg_Switched[13] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[13] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func015Func010C takes nothing returns boolean
if ( not ( udg_Switched[13] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[13] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func015Func011C takes nothing returns boolean
if ( not ( udg_Switched[13] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[13] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func015Func013C takes nothing returns boolean
if ( not ( udg_Switched[8] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[8] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func015Func014C takes nothing returns boolean
if ( not ( udg_Switched[8] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[8] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func015Func015C takes nothing returns boolean
if ( not ( udg_Switched[8] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[8] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func015Func017C takes nothing returns boolean
if ( not ( udg_Switched[3] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[3] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func015Func018C takes nothing returns boolean
if ( not ( udg_Switched[3] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[3] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func015Func019C takes nothing returns boolean
if ( not ( udg_Switched[3] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[3] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func015C takes nothing returns boolean
if ( not ( udg_hard == true ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func016Func001C takes nothing returns boolean
if ( not ( udg_Switched[23] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[23] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func016Func002C takes nothing returns boolean
if ( not ( udg_Switched[23] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[23] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func016Func003C takes nothing returns boolean
if ( not ( udg_Switched[23] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[23] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func016Func004C takes nothing returns boolean
if ( not ( udg_Switched[23] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[23] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func016Func006C takes nothing returns boolean
if ( not ( udg_Switched[18] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[18] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func016Func007C takes nothing returns boolean
if ( not ( udg_Switched[18] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[18] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func016Func008C takes nothing returns boolean
if ( not ( udg_Switched[18] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[18] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func016Func009C takes nothing returns boolean
if ( not ( udg_Switched[18] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[18] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func016Func011C takes nothing returns boolean
if ( not ( udg_Switched[13] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[13] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func016Func012C takes nothing returns boolean
if ( not ( udg_Switched[13] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[13] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func016Func013C takes nothing returns boolean
if ( not ( udg_Switched[13] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[13] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func016Func014C takes nothing returns boolean
if ( not ( udg_Switched[13] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[13] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func016Func016C takes nothing returns boolean
if ( not ( udg_Switched[8] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[8] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func016Func017C takes nothing returns boolean
if ( not ( udg_Switched[8] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[8] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func016Func018C takes nothing returns boolean
if ( not ( udg_Switched[8] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[8] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func016Func019C takes nothing returns boolean
if ( not ( udg_Switched[8] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[8] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func016Func021C takes nothing returns boolean
if ( not ( udg_Switched[3] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[3] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func016Func022C takes nothing returns boolean
if ( not ( udg_Switched[3] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[3] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func016Func023C takes nothing returns boolean
if ( not ( udg_Switched[3] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[3] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func016Func024C takes nothing returns boolean
if ( not ( udg_Switched[3] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[3] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_3_Func016Func025C takes nothing returns boolean
if ( ( udg_very_hard == true ) ) then
return true
endif
if ( ( udg_impossible == true ) ) then
return true
endif
return false
endfunction
function Trig_Column_3_Func016C takes nothing returns boolean
if ( not Trig_Column_3_Func016Func025C() ) then
return false
endif
return true
endfunction
function Trig_Column_3_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Row_A )
call DisableTrigger( gg_trg_Row_B )
call DisableTrigger( gg_trg_Row_C )
call DisableTrigger( gg_trg_Row_D )
call DisableTrigger( gg_trg_Row_E )
call DisableTrigger( gg_trg_Column_1 )
call DisableTrigger( gg_trg_Column_2 )
call DisableTrigger( gg_trg_Column_3 )
call DisableTrigger( gg_trg_Column_4 )
call DisableTrigger( gg_trg_Column_5 )
call DisableTrigger( gg_trg_Diagonal_1 )
call DisableTrigger( gg_trg_Diagonal_2 )
call DisableTrigger( gg_trg_Reset_Puzzle_2 )
if ( Trig_Column_3_Func014C() ) then
if ( Trig_Column_3_Func014Func001C() ) then
set udg_Switched[23] = true
set udg_ColorPanel[23] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0443, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_3_Func014Func002C() ) then
set udg_Switched[23] = true
set udg_ColorPanel[23] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0443, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_3_Func014Func004C() ) then
set udg_Switched[18] = true
set udg_ColorPanel[18] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0456, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_3_Func014Func005C() ) then
set udg_Switched[18] = true
set udg_ColorPanel[18] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0456, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_3_Func014Func007C() ) then
set udg_Switched[13] = true
set udg_ColorPanel[13] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0453, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_3_Func014Func008C() ) then
set udg_Switched[13] = true
set udg_ColorPanel[13] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0453, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_3_Func014Func010C() ) then
set udg_Switched[8] = true
set udg_ColorPanel[8] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0450, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_3_Func014Func011C() ) then
set udg_Switched[8] = true
set udg_ColorPanel[8] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0450, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_3_Func014Func013C() ) then
set udg_Switched[3] = true
set udg_ColorPanel[3] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0435, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_3_Func014Func014C() ) then
set udg_Switched[3] = true
set udg_ColorPanel[3] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0435, 100.00, 0.00, 0.00, 0 )
else
endif
else
endif
if ( Trig_Column_3_Func015C() ) then
if ( Trig_Column_3_Func015Func001C() ) then
set udg_Switched[23] = true
set udg_ColorPanel[23] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0443, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_3_Func015Func002C() ) then
set udg_Switched[23] = true
set udg_ColorPanel[23] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0443, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_3_Func015Func003C() ) then
set udg_Switched[23] = true
set udg_ColorPanel[23] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0443, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_3_Func015Func005C() ) then
set udg_Switched[18] = true
set udg_ColorPanel[18] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0456, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_3_Func015Func006C() ) then
set udg_Switched[18] = true
set udg_ColorPanel[18] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0456, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_3_Func015Func007C() ) then
set udg_Switched[18] = true
set udg_ColorPanel[18] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0456, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_3_Func015Func009C() ) then
set udg_Switched[13] = true
set udg_ColorPanel[13] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0453, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_3_Func015Func010C() ) then
set udg_Switched[13] = true
set udg_ColorPanel[13] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0453, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_3_Func015Func011C() ) then
set udg_Switched[13] = true
set udg_ColorPanel[13] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0453, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_3_Func015Func013C() ) then
set udg_Switched[8] = true
set udg_ColorPanel[8] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0450, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_3_Func015Func014C() ) then
set udg_Switched[8] = true
set udg_ColorPanel[8] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0450, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_3_Func015Func015C() ) then
set udg_Switched[8] = true
set udg_ColorPanel[8] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0450, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_3_Func015Func017C() ) then
set udg_Switched[3] = true
set udg_ColorPanel[3] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0435, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_3_Func015Func018C() ) then
set udg_Switched[3] = true
set udg_ColorPanel[3] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0435, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_3_Func015Func019C() ) then
set udg_Switched[3] = true
set udg_ColorPanel[3] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0435, 100.00, 0.00, 0.00, 0 )
else
endif
else
endif
if ( Trig_Column_3_Func016C() ) then
if ( Trig_Column_3_Func016Func001C() ) then
set udg_Switched[23] = true
set udg_ColorPanel[23] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0443, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Column_3_Func016Func002C() ) then
set udg_Switched[23] = true
set udg_ColorPanel[23] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0443, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_3_Func016Func003C() ) then
set udg_Switched[23] = true
set udg_ColorPanel[23] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0443, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_3_Func016Func004C() ) then
set udg_Switched[23] = true
set udg_ColorPanel[23] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0443, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_3_Func016Func006C() ) then
set udg_Switched[18] = true
set udg_ColorPanel[18] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0456, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Column_3_Func016Func007C() ) then
set udg_Switched[18] = true
set udg_ColorPanel[18] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0456, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_3_Func016Func008C() ) then
set udg_Switched[18] = true
set udg_ColorPanel[18] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0456, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_3_Func016Func009C() ) then
set udg_Switched[18] = true
set udg_ColorPanel[18] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0456, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_3_Func016Func011C() ) then
set udg_Switched[13] = true
set udg_ColorPanel[13] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0453, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Column_3_Func016Func012C() ) then
set udg_Switched[13] = true
set udg_ColorPanel[13] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0453, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_3_Func016Func013C() ) then
set udg_Switched[13] = true
set udg_ColorPanel[13] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0453, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_3_Func016Func014C() ) then
set udg_Switched[13] = true
set udg_ColorPanel[13] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0453, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_3_Func016Func016C() ) then
set udg_Switched[8] = true
set udg_ColorPanel[8] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0450, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Column_3_Func016Func017C() ) then
set udg_Switched[8] = true
set udg_ColorPanel[8] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0450, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_3_Func016Func018C() ) then
set udg_Switched[8] = true
set udg_ColorPanel[8] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0450, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_3_Func016Func019C() ) then
set udg_Switched[8] = true
set udg_ColorPanel[8] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0450, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_3_Func016Func021C() ) then
set udg_Switched[3] = true
set udg_ColorPanel[3] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0435, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Column_3_Func016Func022C() ) then
set udg_Switched[3] = true
set udg_ColorPanel[3] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0435, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_3_Func016Func023C() ) then
set udg_Switched[3] = true
set udg_ColorPanel[3] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0435, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Column_3_Func016Func024C() ) then
set udg_Switched[3] = true
set udg_ColorPanel[3] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0435, 100.00, 0.00, 0.00, 0 )
else
endif
else
endif
set udg_Switched[3] = false
set udg_Switched[8] = false
set udg_Switched[13] = false
set udg_Switched[18] = false
set udg_Switched[23] = false
call EnableTrigger( gg_trg_Row_A )
call EnableTrigger( gg_trg_Row_B )
call EnableTrigger( gg_trg_Row_C )
call EnableTrigger( gg_trg_Row_D )
call EnableTrigger( gg_trg_Row_E )
call EnableTrigger( gg_trg_Column_1 )
call EnableTrigger( gg_trg_Column_2 )
call EnableTrigger( gg_trg_Column_3 )
call EnableTrigger( gg_trg_Column_4 )
call EnableTrigger( gg_trg_Column_5 )
call EnableTrigger( gg_trg_Diagonal_1 )
call EnableTrigger( gg_trg_Diagonal_2 )
call EnableTrigger( gg_trg_Reset_Puzzle_2 )
call ConditionalTriggerExecute( gg_trg_Win_Puzzle_2 )
endfunction
//===========================================================================
function InitTrig_Column_3 takes nothing returns nothing
set gg_trg_Column_3 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Column_3, gg_rct_Rect_460_Copy_6_Copy_2 )
call TriggerAddCondition( gg_trg_Column_3, Condition( function Trig_Column_3_Conditions ) )
call TriggerAddAction( gg_trg_Column_3, function Trig_Column_3_Actions )
endfunction
function Trig_Column_4_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(PLAYER_NEUTRAL_PASSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func014Func001C takes nothing returns boolean
if ( not ( udg_Switched[24] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[24] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func014Func002C takes nothing returns boolean
if ( not ( udg_Switched[24] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[24] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func014Func004C takes nothing returns boolean
if ( not ( udg_Switched[19] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[19] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func014Func005C takes nothing returns boolean
if ( not ( udg_Switched[19] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[19] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func014Func007C takes nothing returns boolean
if ( not ( udg_Switched[14] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[14] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func014Func008C takes nothing returns boolean
if ( not ( udg_Switched[14] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[14] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func014Func010C takes nothing returns boolean
if ( not ( udg_Switched[9] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[9] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func014Func011C takes nothing returns boolean
if ( not ( udg_Switched[9] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[9] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func014Func013C takes nothing returns boolean
if ( not ( udg_Switched[4] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[4] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func014Func014C takes nothing returns boolean
if ( not ( udg_Switched[4] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[4] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func014C takes nothing returns boolean
if ( not ( udg_easy == true ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func015Func001C takes nothing returns boolean
if ( not ( udg_Switched[24] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[24] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func015Func002C takes nothing returns boolean
if ( not ( udg_Switched[24] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[24] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func015Func003C takes nothing returns boolean
if ( not ( udg_Switched[24] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[24] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func015Func005C takes nothing returns boolean
if ( not ( udg_Switched[19] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[19] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func015Func006C takes nothing returns boolean
if ( not ( udg_Switched[19] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[19] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func015Func007C takes nothing returns boolean
if ( not ( udg_Switched[19] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[19] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func015Func009C takes nothing returns boolean
if ( not ( udg_Switched[14] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[14] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func015Func010C takes nothing returns boolean
if ( not ( udg_Switched[14] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[14] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func015Func011C takes nothing returns boolean
if ( not ( udg_Switched[14] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[14] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func015Func013C takes nothing returns boolean
if ( not ( udg_Switched[9] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[9] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func015Func014C takes nothing returns boolean
if ( not ( udg_Switched[9] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[9] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func015Func015C takes nothing returns boolean
if ( not ( udg_Switched[9] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[9] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func015Func017C takes nothing returns boolean
if ( not ( udg_Switched[4] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[4] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func015Func018C takes nothing returns boolean
if ( not ( udg_Switched[4] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[4] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func015Func019C takes nothing returns boolean
if ( not ( udg_Switched[4] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[4] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func015C takes nothing returns boolean
if ( not ( udg_hard == true ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func016Func001C takes nothing returns boolean
if ( not ( udg_Switched[24] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[24] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func016Func002C takes nothing returns boolean
if ( not ( udg_Switched[24] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[24] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func016Func003C takes nothing returns boolean
if ( not ( udg_Switched[24] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[24] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func016Func004C takes nothing returns boolean
if ( not ( udg_Switched[24] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[24] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func016Func006C takes nothing returns boolean
if ( not ( udg_Switched[19] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[19] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func016Func007C takes nothing returns boolean
if ( not ( udg_Switched[19] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[19] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func016Func008C takes nothing returns boolean
if ( not ( udg_Switched[19] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[19] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func016Func009C takes nothing returns boolean
if ( not ( udg_Switched[19] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[19] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func016Func011C takes nothing returns boolean
if ( not ( udg_Switched[14] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[14] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func016Func012C takes nothing returns boolean
if ( not ( udg_Switched[14] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[14] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func016Func013C takes nothing returns boolean
if ( not ( udg_Switched[14] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[14] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func016Func014C takes nothing returns boolean
if ( not ( udg_Switched[14] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[14] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func016Func016C takes nothing returns boolean
if ( not ( udg_Switched[9] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[9] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func016Func017C takes nothing returns boolean
if ( not ( udg_Switched[9] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[9] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func016Func018C takes nothing returns boolean
if ( not ( udg_Switched[9] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[9] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func016Func019C takes nothing returns boolean
if ( not ( udg_Switched[9] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[9] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func016Func021C takes nothing returns boolean
if ( not ( udg_Switched[4] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[4] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func016Func022C takes nothing returns boolean
if ( not ( udg_Switched[4] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[4] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func016Func023C takes nothing returns boolean
if ( not ( udg_Switched[4] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[4] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func016Func024C takes nothing returns boolean
if ( not ( udg_Switched[4] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[4] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_4_Func016Func025C takes nothing returns boolean
if ( ( udg_very_hard == true ) ) then
return true
endif
if ( ( udg_impossible == true ) ) then
return true
endif
return false
endfunction
function Trig_Column_4_Func016C takes nothing returns boolean
if ( not Trig_Column_4_Func016Func025C() ) then
return false
endif
return true
endfunction
function Trig_Column_4_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Row_A )
call DisableTrigger( gg_trg_Row_B )
call DisableTrigger( gg_trg_Row_C )
call DisableTrigger( gg_trg_Row_D )
call DisableTrigger( gg_trg_Row_E )
call DisableTrigger( gg_trg_Column_1 )
call DisableTrigger( gg_trg_Column_2 )
call DisableTrigger( gg_trg_Column_3 )
call DisableTrigger( gg_trg_Column_4 )
call DisableTrigger( gg_trg_Column_5 )
call DisableTrigger( gg_trg_Diagonal_1 )
call DisableTrigger( gg_trg_Diagonal_2 )
call DisableTrigger( gg_trg_Reset_Puzzle_2 )
if ( Trig_Column_4_Func014C() ) then
if ( Trig_Column_4_Func014Func001C() ) then
set udg_Switched[24] = true
set udg_ColorPanel[24] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0444, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Column_4_Func014Func002C() ) then
set udg_Switched[24] = true
set udg_ColorPanel[24] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0444, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_4_Func014Func004C() ) then
set udg_Switched[19] = true
set udg_ColorPanel[19] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0457, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Column_4_Func014Func005C() ) then
set udg_Switched[19] = true
set udg_ColorPanel[19] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0457, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_4_Func014Func007C() ) then
set udg_Switched[14] = true
set udg_ColorPanel[14] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0454, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Column_4_Func014Func008C() ) then
set udg_Switched[14] = true
set udg_ColorPanel[14] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0454, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_4_Func014Func010C() ) then
set udg_Switched[9] = true
set udg_ColorPanel[9] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0451, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Column_4_Func014Func011C() ) then
set udg_Switched[9] = true
set udg_ColorPanel[9] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0451, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_4_Func014Func013C() ) then
set udg_Switched[4] = true
set udg_ColorPanel[4] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0434, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Column_4_Func014Func014C() ) then
set udg_Switched[4] = true
set udg_ColorPanel[4] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0434, 100.00, 0.00, 0.00, 0 )
else
endif
else
endif
if ( Trig_Column_4_Func015C() ) then
if ( Trig_Column_4_Func015Func001C() ) then
set udg_Switched[24] = true
set udg_ColorPanel[24] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0444, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_4_Func015Func002C() ) then
set udg_Switched[24] = true
set udg_ColorPanel[24] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0444, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Column_4_Func015Func003C() ) then
set udg_Switched[24] = true
set udg_ColorPanel[24] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0444, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_4_Func015Func005C() ) then
set udg_Switched[19] = true
set udg_ColorPanel[19] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0457, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_4_Func015Func006C() ) then
set udg_Switched[19] = true
set udg_ColorPanel[19] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0457, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Column_4_Func015Func007C() ) then
set udg_Switched[19] = true
set udg_ColorPanel[19] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0457, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_4_Func015Func009C() ) then
set udg_Switched[14] = true
set udg_ColorPanel[14] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0454, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_4_Func015Func010C() ) then
set udg_Switched[14] = true
set udg_ColorPanel[14] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0454, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Column_4_Func015Func011C() ) then
set udg_Switched[14] = true
set udg_ColorPanel[14] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0454, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_4_Func015Func013C() ) then
set udg_Switched[9] = true
set udg_ColorPanel[9] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0451, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_4_Func015Func014C() ) then
set udg_Switched[9] = true
set udg_ColorPanel[9] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0451, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Column_4_Func015Func015C() ) then
set udg_Switched[9] = true
set udg_ColorPanel[9] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0451, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_4_Func015Func017C() ) then
set udg_Switched[4] = true
set udg_ColorPanel[4] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0434, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_4_Func015Func018C() ) then
set udg_Switched[4] = true
set udg_ColorPanel[4] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0434, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Column_4_Func015Func019C() ) then
set udg_Switched[4] = true
set udg_ColorPanel[4] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0434, 100.00, 0.00, 0.00, 0 )
else
endif
else
endif
if ( Trig_Column_4_Func016C() ) then
if ( Trig_Column_4_Func016Func001C() ) then
set udg_Switched[24] = true
set udg_ColorPanel[24] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0444, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Column_4_Func016Func002C() ) then
set udg_Switched[24] = true
set udg_ColorPanel[24] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0444, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_4_Func016Func003C() ) then
set udg_Switched[24] = true
set udg_ColorPanel[24] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0444, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Column_4_Func016Func004C() ) then
set udg_Switched[24] = true
set udg_ColorPanel[24] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0444, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_4_Func016Func006C() ) then
set udg_Switched[19] = true
set udg_ColorPanel[19] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0457, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Column_4_Func016Func007C() ) then
set udg_Switched[19] = true
set udg_ColorPanel[19] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0457, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_4_Func016Func008C() ) then
set udg_Switched[19] = true
set udg_ColorPanel[19] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0457, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Column_4_Func016Func009C() ) then
set udg_Switched[19] = true
set udg_ColorPanel[19] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0457, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_4_Func016Func011C() ) then
set udg_Switched[14] = true
set udg_ColorPanel[14] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0454, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Column_4_Func016Func012C() ) then
set udg_Switched[14] = true
set udg_ColorPanel[14] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0454, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_4_Func016Func013C() ) then
set udg_Switched[14] = true
set udg_ColorPanel[14] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0454, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Column_4_Func016Func014C() ) then
set udg_Switched[14] = true
set udg_ColorPanel[14] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0454, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_4_Func016Func016C() ) then
set udg_Switched[9] = true
set udg_ColorPanel[9] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0451, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Column_4_Func016Func017C() ) then
set udg_Switched[9] = true
set udg_ColorPanel[9] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0451, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_4_Func016Func018C() ) then
set udg_Switched[9] = true
set udg_ColorPanel[9] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0451, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Column_4_Func016Func019C() ) then
set udg_Switched[9] = true
set udg_ColorPanel[9] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0451, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_4_Func016Func021C() ) then
set udg_Switched[4] = true
set udg_ColorPanel[4] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0434, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Column_4_Func016Func022C() ) then
set udg_Switched[4] = true
set udg_ColorPanel[4] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0434, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_4_Func016Func023C() ) then
set udg_Switched[4] = true
set udg_ColorPanel[4] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0434, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Column_4_Func016Func024C() ) then
set udg_Switched[4] = true
set udg_ColorPanel[4] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0434, 100.00, 0.00, 0.00, 0 )
else
endif
else
endif
set udg_Switched[4] = false
set udg_Switched[9] = false
set udg_Switched[14] = false
set udg_Switched[19] = false
set udg_Switched[24] = false
call EnableTrigger( gg_trg_Row_A )
call EnableTrigger( gg_trg_Row_B )
call EnableTrigger( gg_trg_Row_C )
call EnableTrigger( gg_trg_Row_D )
call EnableTrigger( gg_trg_Row_E )
call EnableTrigger( gg_trg_Column_1 )
call EnableTrigger( gg_trg_Column_2 )
call EnableTrigger( gg_trg_Column_3 )
call EnableTrigger( gg_trg_Column_4 )
call EnableTrigger( gg_trg_Column_5 )
call EnableTrigger( gg_trg_Diagonal_1 )
call EnableTrigger( gg_trg_Diagonal_2 )
call EnableTrigger( gg_trg_Reset_Puzzle_2 )
call ConditionalTriggerExecute( gg_trg_Win_Puzzle_2 )
endfunction
//===========================================================================
function InitTrig_Column_4 takes nothing returns nothing
set gg_trg_Column_4 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Column_4, gg_rct_Rect_460_Copy_6_Copy_3 )
call TriggerAddCondition( gg_trg_Column_4, Condition( function Trig_Column_4_Conditions ) )
call TriggerAddAction( gg_trg_Column_4, function Trig_Column_4_Actions )
endfunction
function Trig_Column_5_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(PLAYER_NEUTRAL_PASSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func014Func001C takes nothing returns boolean
if ( not ( udg_Switched[25] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[25] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func014Func002C takes nothing returns boolean
if ( not ( udg_Switched[25] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[25] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func014Func004C takes nothing returns boolean
if ( not ( udg_Switched[20] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[20] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func014Func005C takes nothing returns boolean
if ( not ( udg_Switched[20] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[20] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func014Func007C takes nothing returns boolean
if ( not ( udg_Switched[15] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[15] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func014Func008C takes nothing returns boolean
if ( not ( udg_Switched[15] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[15] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func014Func010C takes nothing returns boolean
if ( not ( udg_Switched[10] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[10] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func014Func011C takes nothing returns boolean
if ( not ( udg_Switched[10] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[10] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func014Func013C takes nothing returns boolean
if ( not ( udg_Switched[5] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[5] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func014Func014C takes nothing returns boolean
if ( not ( udg_Switched[5] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[5] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func014C takes nothing returns boolean
if ( not ( udg_easy == true ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func015Func001C takes nothing returns boolean
if ( not ( udg_Switched[25] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[25] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func015Func002C takes nothing returns boolean
if ( not ( udg_Switched[25] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[25] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func015Func003C takes nothing returns boolean
if ( not ( udg_Switched[25] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[25] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func015Func005C takes nothing returns boolean
if ( not ( udg_Switched[20] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[20] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func015Func006C takes nothing returns boolean
if ( not ( udg_Switched[20] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[20] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func015Func007C takes nothing returns boolean
if ( not ( udg_Switched[20] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[20] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func015Func009C takes nothing returns boolean
if ( not ( udg_Switched[15] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[15] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func015Func010C takes nothing returns boolean
if ( not ( udg_Switched[15] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[15] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func015Func011C takes nothing returns boolean
if ( not ( udg_Switched[15] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[15] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func015Func013C takes nothing returns boolean
if ( not ( udg_Switched[10] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[10] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func015Func014C takes nothing returns boolean
if ( not ( udg_Switched[10] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[10] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func015Func015C takes nothing returns boolean
if ( not ( udg_Switched[10] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[10] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func015Func017C takes nothing returns boolean
if ( not ( udg_Switched[5] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[5] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func015Func018C takes nothing returns boolean
if ( not ( udg_Switched[5] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[5] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func015Func019C takes nothing returns boolean
if ( not ( udg_Switched[5] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[5] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func015C takes nothing returns boolean
if ( not ( udg_hard == true ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func016Func001C takes nothing returns boolean
if ( not ( udg_Switched[25] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[25] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func016Func002C takes nothing returns boolean
if ( not ( udg_Switched[25] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[25] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func016Func003C takes nothing returns boolean
if ( not ( udg_Switched[25] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[25] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func016Func004C takes nothing returns boolean
if ( not ( udg_Switched[25] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[25] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func016Func006C takes nothing returns boolean
if ( not ( udg_Switched[20] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[20] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func016Func007C takes nothing returns boolean
if ( not ( udg_Switched[20] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[20] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func016Func008C takes nothing returns boolean
if ( not ( udg_Switched[20] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[20] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func016Func009C takes nothing returns boolean
if ( not ( udg_Switched[20] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[20] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func016Func011C takes nothing returns boolean
if ( not ( udg_Switched[15] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[15] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func016Func012C takes nothing returns boolean
if ( not ( udg_Switched[15] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[15] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func016Func013C takes nothing returns boolean
if ( not ( udg_Switched[15] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[15] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func016Func014C takes nothing returns boolean
if ( not ( udg_Switched[15] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[15] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func016Func016C takes nothing returns boolean
if ( not ( udg_Switched[10] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[10] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func016Func017C takes nothing returns boolean
if ( not ( udg_Switched[10] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[10] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func016Func018C takes nothing returns boolean
if ( not ( udg_Switched[10] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[10] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func016Func019C takes nothing returns boolean
if ( not ( udg_Switched[10] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[10] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func016Func021C takes nothing returns boolean
if ( not ( udg_Switched[5] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[5] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func016Func022C takes nothing returns boolean
if ( not ( udg_Switched[5] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[5] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func016Func023C takes nothing returns boolean
if ( not ( udg_Switched[5] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[5] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func016Func024C takes nothing returns boolean
if ( not ( udg_Switched[5] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[5] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Column_5_Func016Func025C takes nothing returns boolean
if ( ( udg_very_hard == true ) ) then
return true
endif
if ( ( udg_impossible == true ) ) then
return true
endif
return false
endfunction
function Trig_Column_5_Func016C takes nothing returns boolean
if ( not Trig_Column_5_Func016Func025C() ) then
return false
endif
return true
endfunction
function Trig_Column_5_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Row_A )
call DisableTrigger( gg_trg_Row_B )
call DisableTrigger( gg_trg_Row_C )
call DisableTrigger( gg_trg_Row_D )
call DisableTrigger( gg_trg_Row_E )
call DisableTrigger( gg_trg_Column_1 )
call DisableTrigger( gg_trg_Column_2 )
call DisableTrigger( gg_trg_Column_3 )
call DisableTrigger( gg_trg_Column_4 )
call DisableTrigger( gg_trg_Column_5 )
call DisableTrigger( gg_trg_Diagonal_1 )
call DisableTrigger( gg_trg_Diagonal_2 )
call DisableTrigger( gg_trg_Reset_Puzzle_2 )
if ( Trig_Column_5_Func014C() ) then
if ( Trig_Column_5_Func014Func001C() ) then
set udg_Switched[25] = true
set udg_ColorPanel[25] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0445, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Column_5_Func014Func002C() ) then
set udg_Switched[25] = true
set udg_ColorPanel[25] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0445, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_5_Func014Func004C() ) then
set udg_Switched[20] = true
set udg_ColorPanel[20] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0446, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Column_5_Func014Func005C() ) then
set udg_Switched[20] = true
set udg_ColorPanel[20] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0446, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_5_Func014Func007C() ) then
set udg_Switched[15] = true
set udg_ColorPanel[15] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0447, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Column_5_Func014Func008C() ) then
set udg_Switched[15] = true
set udg_ColorPanel[15] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0447, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_5_Func014Func010C() ) then
set udg_Switched[10] = true
set udg_ColorPanel[10] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0448, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Column_5_Func014Func011C() ) then
set udg_Switched[10] = true
set udg_ColorPanel[10] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0448, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_5_Func014Func013C() ) then
set udg_Switched[5] = true
set udg_ColorPanel[5] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0433, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Column_5_Func014Func014C() ) then
set udg_Switched[5] = true
set udg_ColorPanel[5] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0433, 100.00, 0.00, 0.00, 0 )
else
endif
else
endif
if ( Trig_Column_5_Func015C() ) then
if ( Trig_Column_5_Func015Func001C() ) then
set udg_Switched[25] = true
set udg_ColorPanel[25] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0445, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_5_Func015Func002C() ) then
set udg_Switched[25] = true
set udg_ColorPanel[25] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0445, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Column_5_Func015Func003C() ) then
set udg_Switched[25] = true
set udg_ColorPanel[25] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0445, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_5_Func015Func005C() ) then
set udg_Switched[20] = true
set udg_ColorPanel[20] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0446, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_5_Func015Func006C() ) then
set udg_Switched[20] = true
set udg_ColorPanel[20] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0446, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Column_5_Func015Func007C() ) then
set udg_Switched[20] = true
set udg_ColorPanel[20] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0446, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_5_Func015Func009C() ) then
set udg_Switched[15] = true
set udg_ColorPanel[15] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0447, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_5_Func015Func010C() ) then
set udg_Switched[15] = true
set udg_ColorPanel[15] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0447, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Column_5_Func015Func011C() ) then
set udg_Switched[15] = true
set udg_ColorPanel[15] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0447, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_5_Func015Func013C() ) then
set udg_Switched[10] = true
set udg_ColorPanel[10] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0448, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_5_Func015Func014C() ) then
set udg_Switched[10] = true
set udg_ColorPanel[10] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0448, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Column_5_Func015Func015C() ) then
set udg_Switched[10] = true
set udg_ColorPanel[10] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0448, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_5_Func015Func017C() ) then
set udg_Switched[5] = true
set udg_ColorPanel[5] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0433, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_5_Func015Func018C() ) then
set udg_Switched[5] = true
set udg_ColorPanel[5] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0433, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Column_5_Func015Func019C() ) then
set udg_Switched[5] = true
set udg_ColorPanel[5] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0433, 100.00, 0.00, 0.00, 0 )
else
endif
else
endif
if ( Trig_Column_5_Func016C() ) then
if ( Trig_Column_5_Func016Func001C() ) then
set udg_Switched[25] = true
set udg_ColorPanel[25] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0445, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Column_5_Func016Func002C() ) then
set udg_Switched[25] = true
set udg_ColorPanel[25] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0445, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_5_Func016Func003C() ) then
set udg_Switched[25] = true
set udg_ColorPanel[25] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0445, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Column_5_Func016Func004C() ) then
set udg_Switched[25] = true
set udg_ColorPanel[25] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0445, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_5_Func016Func006C() ) then
set udg_Switched[20] = true
set udg_ColorPanel[20] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0446, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Column_5_Func016Func007C() ) then
set udg_Switched[20] = true
set udg_ColorPanel[20] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0446, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_5_Func016Func008C() ) then
set udg_Switched[20] = true
set udg_ColorPanel[20] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0446, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Column_5_Func016Func009C() ) then
set udg_Switched[20] = true
set udg_ColorPanel[20] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0446, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_5_Func016Func011C() ) then
set udg_Switched[15] = true
set udg_ColorPanel[15] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0447, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Column_5_Func016Func012C() ) then
set udg_Switched[15] = true
set udg_ColorPanel[15] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0447, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_5_Func016Func013C() ) then
set udg_Switched[15] = true
set udg_ColorPanel[15] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0447, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Column_5_Func016Func014C() ) then
set udg_Switched[15] = true
set udg_ColorPanel[15] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0447, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_5_Func016Func016C() ) then
set udg_Switched[10] = true
set udg_ColorPanel[10] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0448, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Column_5_Func016Func017C() ) then
set udg_Switched[10] = true
set udg_ColorPanel[10] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0448, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_5_Func016Func018C() ) then
set udg_Switched[10] = true
set udg_ColorPanel[10] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0448, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Column_5_Func016Func019C() ) then
set udg_Switched[10] = true
set udg_ColorPanel[10] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0448, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Column_5_Func016Func021C() ) then
set udg_Switched[5] = true
set udg_ColorPanel[5] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0433, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Column_5_Func016Func022C() ) then
set udg_Switched[5] = true
set udg_ColorPanel[5] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0433, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Column_5_Func016Func023C() ) then
set udg_Switched[5] = true
set udg_ColorPanel[5] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0433, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Column_5_Func016Func024C() ) then
set udg_Switched[5] = true
set udg_ColorPanel[5] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0433, 100.00, 0.00, 0.00, 0 )
else
endif
else
endif
set udg_Switched[5] = false
set udg_Switched[10] = false
set udg_Switched[15] = false
set udg_Switched[20] = false
set udg_Switched[25] = false
call EnableTrigger( gg_trg_Row_A )
call EnableTrigger( gg_trg_Row_B )
call EnableTrigger( gg_trg_Row_C )
call EnableTrigger( gg_trg_Row_D )
call EnableTrigger( gg_trg_Row_E )
call EnableTrigger( gg_trg_Column_1 )
call EnableTrigger( gg_trg_Column_2 )
call EnableTrigger( gg_trg_Column_3 )
call EnableTrigger( gg_trg_Column_4 )
call EnableTrigger( gg_trg_Column_5 )
call EnableTrigger( gg_trg_Diagonal_1 )
call EnableTrigger( gg_trg_Diagonal_2 )
call EnableTrigger( gg_trg_Reset_Puzzle_2 )
call ConditionalTriggerExecute( gg_trg_Win_Puzzle_2 )
endfunction
//===========================================================================
function InitTrig_Column_5 takes nothing returns nothing
set gg_trg_Column_5 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Column_5, gg_rct_Rect_460_Copy_6_Copy_4 )
call TriggerAddCondition( gg_trg_Column_5, Condition( function Trig_Column_5_Conditions ) )
call TriggerAddAction( gg_trg_Column_5, function Trig_Column_5_Actions )
endfunction
function Trig_Diagonal_1_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(PLAYER_NEUTRAL_PASSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func014Func001C takes nothing returns boolean
if ( not ( udg_Switched[21] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[21] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func014Func002C takes nothing returns boolean
if ( not ( udg_Switched[21] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[21] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func014Func004C takes nothing returns boolean
if ( not ( udg_Switched[17] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[17] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func014Func005C takes nothing returns boolean
if ( not ( udg_Switched[17] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[17] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func014Func007C takes nothing returns boolean
if ( not ( udg_Switched[13] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[13] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func014Func008C takes nothing returns boolean
if ( not ( udg_Switched[13] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[13] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func014Func010C takes nothing returns boolean
if ( not ( udg_Switched[9] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[9] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func014Func011C takes nothing returns boolean
if ( not ( udg_Switched[9] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[9] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func014Func013C takes nothing returns boolean
if ( not ( udg_Switched[5] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[5] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func014Func014C takes nothing returns boolean
if ( not ( udg_Switched[5] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[5] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func014C takes nothing returns boolean
if ( not ( udg_easy == true ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func015Func001C takes nothing returns boolean
if ( not ( udg_Switched[21] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[21] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func015Func002C takes nothing returns boolean
if ( not ( udg_Switched[21] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[21] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func015Func003C takes nothing returns boolean
if ( not ( udg_Switched[21] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[21] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func015Func005C takes nothing returns boolean
if ( not ( udg_Switched[17] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[17] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func015Func006C takes nothing returns boolean
if ( not ( udg_Switched[17] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[17] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func015Func007C takes nothing returns boolean
if ( not ( udg_Switched[17] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[17] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func015Func009C takes nothing returns boolean
if ( not ( udg_Switched[13] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[13] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func015Func010C takes nothing returns boolean
if ( not ( udg_Switched[13] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[13] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func015Func011C takes nothing returns boolean
if ( not ( udg_Switched[13] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[13] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func015Func013C takes nothing returns boolean
if ( not ( udg_Switched[9] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[9] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func015Func014C takes nothing returns boolean
if ( not ( udg_Switched[9] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[9] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func015Func015C takes nothing returns boolean
if ( not ( udg_Switched[9] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[9] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func015Func017C takes nothing returns boolean
if ( not ( udg_Switched[5] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[5] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func015Func018C takes nothing returns boolean
if ( not ( udg_Switched[5] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[5] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func015Func019C takes nothing returns boolean
if ( not ( udg_Switched[5] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[5] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func015C takes nothing returns boolean
if ( not ( udg_hard == true ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func016Func001C takes nothing returns boolean
if ( not ( udg_Switched[21] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[21] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func016Func002C takes nothing returns boolean
if ( not ( udg_Switched[21] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[21] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func016Func003C takes nothing returns boolean
if ( not ( udg_Switched[21] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[21] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func016Func004C takes nothing returns boolean
if ( not ( udg_Switched[21] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[21] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func016Func006C takes nothing returns boolean
if ( not ( udg_Switched[17] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[17] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func016Func007C takes nothing returns boolean
if ( not ( udg_Switched[17] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[17] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func016Func008C takes nothing returns boolean
if ( not ( udg_Switched[17] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[17] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func016Func009C takes nothing returns boolean
if ( not ( udg_Switched[17] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[17] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func016Func011C takes nothing returns boolean
if ( not ( udg_Switched[13] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[13] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func016Func012C takes nothing returns boolean
if ( not ( udg_Switched[13] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[13] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func016Func013C takes nothing returns boolean
if ( not ( udg_Switched[13] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[13] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func016Func014C takes nothing returns boolean
if ( not ( udg_Switched[13] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[13] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func016Func016C takes nothing returns boolean
if ( not ( udg_Switched[9] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[9] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func016Func017C takes nothing returns boolean
if ( not ( udg_Switched[9] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[9] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func016Func018C takes nothing returns boolean
if ( not ( udg_Switched[9] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[9] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func016Func019C takes nothing returns boolean
if ( not ( udg_Switched[9] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[9] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func016Func021C takes nothing returns boolean
if ( not ( udg_Switched[5] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[5] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func016Func022C takes nothing returns boolean
if ( not ( udg_Switched[5] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[5] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func016Func023C takes nothing returns boolean
if ( not ( udg_Switched[5] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[5] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func016Func024C takes nothing returns boolean
if ( not ( udg_Switched[5] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[5] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Func016Func025C takes nothing returns boolean
if ( ( udg_very_hard == true ) ) then
return true
endif
if ( ( udg_impossible == true ) ) then
return true
endif
return false
endfunction
function Trig_Diagonal_1_Func016C takes nothing returns boolean
if ( not Trig_Diagonal_1_Func016Func025C() ) then
return false
endif
return true
endfunction
function Trig_Diagonal_1_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Row_A )
call DisableTrigger( gg_trg_Row_B )
call DisableTrigger( gg_trg_Row_C )
call DisableTrigger( gg_trg_Row_D )
call DisableTrigger( gg_trg_Row_E )
call DisableTrigger( gg_trg_Column_1 )
call DisableTrigger( gg_trg_Column_2 )
call DisableTrigger( gg_trg_Column_3 )
call DisableTrigger( gg_trg_Column_4 )
call DisableTrigger( gg_trg_Column_5 )
call DisableTrigger( gg_trg_Diagonal_1 )
call DisableTrigger( gg_trg_Diagonal_2 )
call DisableTrigger( gg_trg_Reset_Puzzle_2 )
if ( Trig_Diagonal_1_Func014C() ) then
if ( Trig_Diagonal_1_Func014Func001C() ) then
set udg_Switched[21] = true
set udg_ColorPanel[21] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0441, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Diagonal_1_Func014Func002C() ) then
set udg_Switched[21] = true
set udg_ColorPanel[21] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0441, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Diagonal_1_Func014Func004C() ) then
set udg_Switched[17] = true
set udg_ColorPanel[17] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0455, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Diagonal_1_Func014Func005C() ) then
set udg_Switched[17] = true
set udg_ColorPanel[17] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0455, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Diagonal_1_Func014Func007C() ) then
set udg_Switched[13] = true
set udg_ColorPanel[13] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0453, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Diagonal_1_Func014Func008C() ) then
set udg_Switched[13] = true
set udg_ColorPanel[13] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0453, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Diagonal_1_Func014Func010C() ) then
set udg_Switched[9] = true
set udg_ColorPanel[9] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0451, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Diagonal_1_Func014Func011C() ) then
set udg_Switched[9] = true
set udg_ColorPanel[9] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0451, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Diagonal_1_Func014Func013C() ) then
set udg_Switched[5] = true
set udg_ColorPanel[5] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0433, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Diagonal_1_Func014Func014C() ) then
set udg_Switched[5] = true
set udg_ColorPanel[5] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0433, 100.00, 0.00, 0.00, 0 )
else
endif
else
endif
if ( Trig_Diagonal_1_Func015C() ) then
if ( Trig_Diagonal_1_Func015Func001C() ) then
set udg_Switched[21] = true
set udg_ColorPanel[21] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0441, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Diagonal_1_Func015Func002C() ) then
set udg_Switched[21] = true
set udg_ColorPanel[21] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0441, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Diagonal_1_Func015Func003C() ) then
set udg_Switched[21] = true
set udg_ColorPanel[21] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0441, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Diagonal_1_Func015Func005C() ) then
set udg_Switched[17] = true
set udg_ColorPanel[17] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0455, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Diagonal_1_Func015Func006C() ) then
set udg_Switched[17] = true
set udg_ColorPanel[17] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0455, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Diagonal_1_Func015Func007C() ) then
set udg_Switched[17] = true
set udg_ColorPanel[17] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0455, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Diagonal_1_Func015Func009C() ) then
set udg_Switched[13] = true
set udg_ColorPanel[13] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0453, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Diagonal_1_Func015Func010C() ) then
set udg_Switched[13] = true
set udg_ColorPanel[13] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0453, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Diagonal_1_Func015Func011C() ) then
set udg_Switched[13] = true
set udg_ColorPanel[13] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0453, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Diagonal_1_Func015Func013C() ) then
set udg_Switched[9] = true
set udg_ColorPanel[9] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0451, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Diagonal_1_Func015Func014C() ) then
set udg_Switched[9] = true
set udg_ColorPanel[9] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0451, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Diagonal_1_Func015Func015C() ) then
set udg_Switched[9] = true
set udg_ColorPanel[9] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0451, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Diagonal_1_Func015Func017C() ) then
set udg_Switched[5] = true
set udg_ColorPanel[5] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0433, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Diagonal_1_Func015Func018C() ) then
set udg_Switched[5] = true
set udg_ColorPanel[5] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0433, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Diagonal_1_Func015Func019C() ) then
set udg_Switched[5] = true
set udg_ColorPanel[5] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0433, 100.00, 0.00, 0.00, 0 )
else
endif
else
endif
if ( Trig_Diagonal_1_Func016C() ) then
if ( Trig_Diagonal_1_Func016Func001C() ) then
set udg_Switched[21] = true
set udg_ColorPanel[21] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0441, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Diagonal_1_Func016Func002C() ) then
set udg_Switched[21] = true
set udg_ColorPanel[21] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0441, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Diagonal_1_Func016Func003C() ) then
set udg_Switched[21] = true
set udg_ColorPanel[21] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0441, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Diagonal_1_Func016Func004C() ) then
set udg_Switched[21] = true
set udg_ColorPanel[21] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0441, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Diagonal_1_Func016Func006C() ) then
set udg_Switched[17] = true
set udg_ColorPanel[17] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0455, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Diagonal_1_Func016Func007C() ) then
set udg_Switched[17] = true
set udg_ColorPanel[17] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0455, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Diagonal_1_Func016Func008C() ) then
set udg_Switched[17] = true
set udg_ColorPanel[17] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0455, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Diagonal_1_Func016Func009C() ) then
set udg_Switched[17] = true
set udg_ColorPanel[17] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0455, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Diagonal_1_Func016Func011C() ) then
set udg_Switched[13] = true
set udg_ColorPanel[13] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0453, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Diagonal_1_Func016Func012C() ) then
set udg_Switched[13] = true
set udg_ColorPanel[13] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0453, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Diagonal_1_Func016Func013C() ) then
set udg_Switched[13] = true
set udg_ColorPanel[13] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0453, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Diagonal_1_Func016Func014C() ) then
set udg_Switched[13] = true
set udg_ColorPanel[13] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0453, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Diagonal_1_Func016Func016C() ) then
set udg_Switched[9] = true
set udg_ColorPanel[9] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0451, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Diagonal_1_Func016Func017C() ) then
set udg_Switched[9] = true
set udg_ColorPanel[9] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0451, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Diagonal_1_Func016Func018C() ) then
set udg_Switched[9] = true
set udg_ColorPanel[9] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0451, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Diagonal_1_Func016Func019C() ) then
set udg_Switched[9] = true
set udg_ColorPanel[9] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0451, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Diagonal_1_Func016Func021C() ) then
set udg_Switched[5] = true
set udg_ColorPanel[5] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0433, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Diagonal_1_Func016Func022C() ) then
set udg_Switched[5] = true
set udg_ColorPanel[5] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0433, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Diagonal_1_Func016Func023C() ) then
set udg_Switched[5] = true
set udg_ColorPanel[5] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0433, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Diagonal_1_Func016Func024C() ) then
set udg_Switched[5] = true
set udg_ColorPanel[5] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0433, 100.00, 0.00, 0.00, 0 )
else
endif
else
endif
set udg_Switched[21] = false
set udg_Switched[17] = false
set udg_Switched[13] = false
set udg_Switched[9] = false
set udg_Switched[5] = false
call EnableTrigger( gg_trg_Row_A )
call EnableTrigger( gg_trg_Row_B )
call EnableTrigger( gg_trg_Row_C )
call EnableTrigger( gg_trg_Row_D )
call EnableTrigger( gg_trg_Row_E )
call EnableTrigger( gg_trg_Column_1 )
call EnableTrigger( gg_trg_Column_2 )
call EnableTrigger( gg_trg_Column_3 )
call EnableTrigger( gg_trg_Column_4 )
call EnableTrigger( gg_trg_Column_5 )
call EnableTrigger( gg_trg_Diagonal_1 )
call EnableTrigger( gg_trg_Diagonal_2 )
call EnableTrigger( gg_trg_Reset_Puzzle_2 )
call ConditionalTriggerExecute( gg_trg_Win_Puzzle_2 )
endfunction
//===========================================================================
function InitTrig_Diagonal_1 takes nothing returns nothing
set gg_trg_Diagonal_1 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Diagonal_1, gg_rct_Rect_460_Copy_5 )
call TriggerAddCondition( gg_trg_Diagonal_1, Condition( function Trig_Diagonal_1_Conditions ) )
call TriggerAddAction( gg_trg_Diagonal_1, function Trig_Diagonal_1_Actions )
endfunction
function Trig_Diagonal_2_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(PLAYER_NEUTRAL_PASSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func014Func001C takes nothing returns boolean
if ( not ( udg_Switched[25] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[25] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func014Func002C takes nothing returns boolean
if ( not ( udg_Switched[25] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[25] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func014Func004C takes nothing returns boolean
if ( not ( udg_Switched[19] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[19] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func014Func005C takes nothing returns boolean
if ( not ( udg_Switched[19] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[19] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func014Func007C takes nothing returns boolean
if ( not ( udg_Switched[13] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[13] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func014Func008C takes nothing returns boolean
if ( not ( udg_Switched[13] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[13] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func014Func010C takes nothing returns boolean
if ( not ( udg_Switched[7] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[7] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func014Func011C takes nothing returns boolean
if ( not ( udg_Switched[7] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[7] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func014Func013C takes nothing returns boolean
if ( not ( udg_Switched[1] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[1] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func014Func014C takes nothing returns boolean
if ( not ( udg_Switched[1] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[1] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func014C takes nothing returns boolean
if ( not ( udg_easy == true ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func015Func001C takes nothing returns boolean
if ( not ( udg_Switched[25] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[25] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func015Func002C takes nothing returns boolean
if ( not ( udg_Switched[25] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[25] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func015Func003C takes nothing returns boolean
if ( not ( udg_Switched[25] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[25] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func015Func005C takes nothing returns boolean
if ( not ( udg_Switched[19] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[19] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func015Func006C takes nothing returns boolean
if ( not ( udg_Switched[19] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[19] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func015Func007C takes nothing returns boolean
if ( not ( udg_Switched[19] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[19] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func015Func009C takes nothing returns boolean
if ( not ( udg_Switched[13] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[13] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func015Func010C takes nothing returns boolean
if ( not ( udg_Switched[13] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[13] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func015Func011C takes nothing returns boolean
if ( not ( udg_Switched[13] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[13] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func015Func013C takes nothing returns boolean
if ( not ( udg_Switched[7] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[7] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func015Func014C takes nothing returns boolean
if ( not ( udg_Switched[7] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[7] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func015Func015C takes nothing returns boolean
if ( not ( udg_Switched[7] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[7] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func015Func017C takes nothing returns boolean
if ( not ( udg_Switched[1] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[1] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func015Func018C takes nothing returns boolean
if ( not ( udg_Switched[1] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[1] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func015Func019C takes nothing returns boolean
if ( not ( udg_Switched[1] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[1] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func015C takes nothing returns boolean
if ( not ( udg_hard == true ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func016Func001C takes nothing returns boolean
if ( not ( udg_Switched[25] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[25] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func016Func002C takes nothing returns boolean
if ( not ( udg_Switched[25] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[25] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func016Func003C takes nothing returns boolean
if ( not ( udg_Switched[25] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[25] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func016Func004C takes nothing returns boolean
if ( not ( udg_Switched[25] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[25] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func016Func006C takes nothing returns boolean
if ( not ( udg_Switched[19] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[19] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func016Func007C takes nothing returns boolean
if ( not ( udg_Switched[19] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[19] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func016Func008C takes nothing returns boolean
if ( not ( udg_Switched[19] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[19] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func016Func009C takes nothing returns boolean
if ( not ( udg_Switched[19] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[19] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func016Func011C takes nothing returns boolean
if ( not ( udg_Switched[13] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[13] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func016Func012C takes nothing returns boolean
if ( not ( udg_Switched[13] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[13] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func016Func013C takes nothing returns boolean
if ( not ( udg_Switched[13] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[13] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func016Func014C takes nothing returns boolean
if ( not ( udg_Switched[13] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[13] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func016Func016C takes nothing returns boolean
if ( not ( udg_Switched[7] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[7] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func016Func017C takes nothing returns boolean
if ( not ( udg_Switched[7] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[7] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func016Func018C takes nothing returns boolean
if ( not ( udg_Switched[7] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[7] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func016Func019C takes nothing returns boolean
if ( not ( udg_Switched[7] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[7] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func016Func021C takes nothing returns boolean
if ( not ( udg_Switched[1] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[1] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func016Func022C takes nothing returns boolean
if ( not ( udg_Switched[1] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[1] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func016Func023C takes nothing returns boolean
if ( not ( udg_Switched[1] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[1] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func016Func024C takes nothing returns boolean
if ( not ( udg_Switched[1] == false ) ) then
return false
endif
if ( not ( udg_ColorPanel[1] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Func016Func025C takes nothing returns boolean
if ( ( udg_very_hard == true ) ) then
return true
endif
if ( ( udg_impossible == true ) ) then
return true
endif
return false
endfunction
function Trig_Diagonal_2_Func016C takes nothing returns boolean
if ( not Trig_Diagonal_2_Func016Func025C() ) then
return false
endif
return true
endfunction
function Trig_Diagonal_2_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Row_A )
call DisableTrigger( gg_trg_Row_B )
call DisableTrigger( gg_trg_Row_C )
call DisableTrigger( gg_trg_Row_D )
call DisableTrigger( gg_trg_Row_E )
call DisableTrigger( gg_trg_Column_1 )
call DisableTrigger( gg_trg_Column_2 )
call DisableTrigger( gg_trg_Column_3 )
call DisableTrigger( gg_trg_Column_4 )
call DisableTrigger( gg_trg_Column_5 )
call DisableTrigger( gg_trg_Diagonal_1 )
call DisableTrigger( gg_trg_Diagonal_2 )
call DisableTrigger( gg_trg_Reset_Puzzle_2 )
if ( Trig_Diagonal_2_Func014C() ) then
if ( Trig_Diagonal_2_Func014Func001C() ) then
set udg_Switched[25] = true
set udg_ColorPanel[25] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0445, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Diagonal_2_Func014Func002C() ) then
set udg_Switched[25] = true
set udg_ColorPanel[25] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0445, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Diagonal_2_Func014Func004C() ) then
set udg_Switched[19] = true
set udg_ColorPanel[19] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0457, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Diagonal_2_Func014Func005C() ) then
set udg_Switched[19] = true
set udg_ColorPanel[19] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0457, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Diagonal_2_Func014Func007C() ) then
set udg_Switched[13] = true
set udg_ColorPanel[13] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0453, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Diagonal_2_Func014Func008C() ) then
set udg_Switched[13] = true
set udg_ColorPanel[13] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0453, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Diagonal_2_Func014Func010C() ) then
set udg_Switched[7] = true
set udg_ColorPanel[7] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0449, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Diagonal_2_Func014Func011C() ) then
set udg_Switched[7] = true
set udg_ColorPanel[7] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0449, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Diagonal_2_Func014Func013C() ) then
set udg_Switched[1] = true
set udg_ColorPanel[1] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0437, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Diagonal_2_Func014Func014C() ) then
set udg_Switched[1] = true
set udg_ColorPanel[1] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0437, 100.00, 0.00, 0.00, 0 )
else
endif
else
endif
if ( Trig_Diagonal_2_Func015C() ) then
if ( Trig_Diagonal_2_Func015Func001C() ) then
set udg_Switched[25] = true
set udg_ColorPanel[25] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0445, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Diagonal_2_Func015Func002C() ) then
set udg_Switched[25] = true
set udg_ColorPanel[25] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0445, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Diagonal_2_Func015Func003C() ) then
set udg_Switched[25] = true
set udg_ColorPanel[25] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0445, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Diagonal_2_Func015Func005C() ) then
set udg_Switched[19] = true
set udg_ColorPanel[19] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0457, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Diagonal_2_Func015Func006C() ) then
set udg_Switched[19] = true
set udg_ColorPanel[19] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0457, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Diagonal_2_Func015Func007C() ) then
set udg_Switched[19] = true
set udg_ColorPanel[19] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0457, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Diagonal_2_Func015Func009C() ) then
set udg_Switched[13] = true
set udg_ColorPanel[13] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0453, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Diagonal_2_Func015Func010C() ) then
set udg_Switched[13] = true
set udg_ColorPanel[13] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0453, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Diagonal_2_Func015Func011C() ) then
set udg_Switched[13] = true
set udg_ColorPanel[13] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0453, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Diagonal_2_Func015Func013C() ) then
set udg_Switched[7] = true
set udg_ColorPanel[7] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0449, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Diagonal_2_Func015Func014C() ) then
set udg_Switched[7] = true
set udg_ColorPanel[7] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0449, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Diagonal_2_Func015Func015C() ) then
set udg_Switched[7] = true
set udg_ColorPanel[7] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0449, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Diagonal_2_Func015Func017C() ) then
set udg_Switched[1] = true
set udg_ColorPanel[1] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0437, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Diagonal_2_Func015Func018C() ) then
set udg_Switched[1] = true
set udg_ColorPanel[1] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0437, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Diagonal_2_Func015Func019C() ) then
set udg_Switched[1] = true
set udg_ColorPanel[1] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0437, 100.00, 0.00, 0.00, 0 )
else
endif
else
endif
if ( Trig_Diagonal_2_Func016C() ) then
if ( Trig_Diagonal_2_Func016Func001C() ) then
set udg_Switched[25] = true
set udg_ColorPanel[25] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0445, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Diagonal_2_Func016Func002C() ) then
set udg_Switched[25] = true
set udg_ColorPanel[25] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0445, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Diagonal_2_Func016Func003C() ) then
set udg_Switched[25] = true
set udg_ColorPanel[25] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0445, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Diagonal_2_Func016Func004C() ) then
set udg_Switched[25] = true
set udg_ColorPanel[25] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0445, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Diagonal_2_Func016Func006C() ) then
set udg_Switched[19] = true
set udg_ColorPanel[19] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0457, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Diagonal_2_Func016Func007C() ) then
set udg_Switched[19] = true
set udg_ColorPanel[19] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0457, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Diagonal_2_Func016Func008C() ) then
set udg_Switched[19] = true
set udg_ColorPanel[19] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0457, 0.00, 100.00, 0.00, 0 )
else
endif
if ( Trig_Diagonal_2_Func016Func009C() ) then
set udg_Switched[19] = true
set udg_ColorPanel[19] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0457, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Diagonal_2_Func016Func011C() ) then
set udg_Switched[13] = true
set udg_ColorPanel[13] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0453, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Diagonal_2_Func016Func012C() ) then
set udg_Switched[13] = true
set udg_ColorPanel[13] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0453, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Diagonal_2_Func016Func013C() ) then
set udg_Switched[13] = true
set udg_ColorPanel[13] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0453, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Diagonal_2_Func016Func014C() ) then
set udg_Switched[13] = true
set udg_ColorPanel[13] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0453, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Diagonal_2_Func016Func016C() ) then
set udg_Switched[7] = true
set udg_ColorPanel[7] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0449, 100.00, 90.00, 0.00, 0 )
else
endif
if ( Trig_Diagonal_2_Func016Func017C() ) then
set udg_Switched[7] = true
set udg_ColorPanel[7] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0449, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Diagonal_2_Func016Func018C() ) then
set udg_Switched[7] = true
set udg_ColorPanel[7] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0449, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Diagonal_2_Func016Func019C() ) then
set udg_Switched[7] = true
set udg_ColorPanel[7] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0449, 100.00, 0.00, 0.00, 0 )
else
endif
call TriggerSleepAction( 0.07 )
if ( Trig_Diagonal_2_Func016Func021C() ) then
set udg_Switched[1] = true
set udg_ColorPanel[1] = 2
call SetUnitVertexColorBJ( gg_unit_n008_0437, 100.00, 90.00, 10.00, 0 )
else
endif
if ( Trig_Diagonal_2_Func016Func022C() ) then
set udg_Switched[1] = true
set udg_ColorPanel[1] = 3
call SetUnitVertexColorBJ( gg_unit_n008_0437, 0.00, 0.00, 100.00, 0 )
else
endif
if ( Trig_Diagonal_2_Func016Func023C() ) then
set udg_Switched[1] = true
set udg_ColorPanel[1] = 4
call SetUnitVertexColorBJ( gg_unit_n008_0437, 0.00, 100, 0.00, 0 )
else
endif
if ( Trig_Diagonal_2_Func016Func024C() ) then
set udg_Switched[1] = true
set udg_ColorPanel[1] = 1
call SetUnitVertexColorBJ( gg_unit_n008_0437, 100.00, 0.00, 0.00, 0 )
else
endif
else
endif
set udg_Switched[25] = false
set udg_Switched[19] = false
set udg_Switched[13] = false
set udg_Switched[7] = false
set udg_Switched[1] = false
call EnableTrigger( gg_trg_Row_A )
call EnableTrigger( gg_trg_Row_B )
call EnableTrigger( gg_trg_Row_C )
call EnableTrigger( gg_trg_Row_D )
call EnableTrigger( gg_trg_Row_E )
call EnableTrigger( gg_trg_Column_1 )
call EnableTrigger( gg_trg_Column_2 )
call EnableTrigger( gg_trg_Column_3 )
call EnableTrigger( gg_trg_Column_4 )
call EnableTrigger( gg_trg_Column_5 )
call EnableTrigger( gg_trg_Diagonal_1 )
call EnableTrigger( gg_trg_Diagonal_2 )
call EnableTrigger( gg_trg_Reset_Puzzle_2 )
call ConditionalTriggerExecute( gg_trg_Win_Puzzle_2 )
endfunction
//===========================================================================
function InitTrig_Diagonal_2 takes nothing returns nothing
set gg_trg_Diagonal_2 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Diagonal_2, gg_rct_Rect_460_Copy_6_Copy_5 )
call TriggerAddCondition( gg_trg_Diagonal_2, Condition( function Trig_Diagonal_2_Conditions ) )
call TriggerAddAction( gg_trg_Diagonal_2, function Trig_Diagonal_2_Actions )
endfunction