Name | Type | is_array | initial_value |
Assassin | real | No | 0.00 |
Bagirma_Kisi | integer | Yes | |
Bagirma_Takim | integer | Yes | |
bord | multiboard | No | |
DeathMatch | integer | Yes | |
deaths | integer | Yes | |
Defiler | real | No | 0.00 |
DefilerRune | integer | No | 'UC05' |
DemonMagess | real | No | 0.00 |
Deny | integer | Yes | |
DragonKnight | real | No | 0.00 |
Earthshaker | real | No | 0.00 |
End_Game_If_All_Gone | boolean | No | |
engine | unit | No | |
FactorCleared | boolean | Yes | |
Fall_Caster | unit | Yes | |
Fall_Channeling | boolean | Yes | |
Fall_Effect | effect | Yes | |
False | abilcode | No | |
Fissure | dialog | No | |
Fissure_AddGroup | group | No | |
Fissure_Angle | real | No | |
Fissure_Caster | unit | No | |
Fissure_Caster_Loc | location | No | |
Fissure_Destructible | destructable | Yes | |
Fissure_Group | group | No | |
Fissure_Level | integer | No | |
Fissure_Offset | location | Yes | |
Fissure_TargetPoint | location | No | |
Fissure_TempLine | real | No | |
Fissure_TimeLast | integer | No | |
FlameLord | real | No | 0.00 |
FrostMaiden | real | No | 0.00 |
Game_Minutes | integer | No | |
Game_Seconds | integer | No | |
Game_Time | timer | No | |
GameMode | integer | No | |
GameStart | real | No | 0.00 |
hareketsayisi | real | No | |
Hero | unitcode | Yes | |
hero_kills | integer | Yes | |
Heroes_All | unitcode | Yes | |
Heroes_Scourge | unitcode | Yes | |
Heroes_Sentinel | unitcode | Yes | |
HeroFlags | boolean | Yes | |
HeroLevel1 | real | No | 1.00 |
HPBAR | string | Yes | |
hpler | real | Yes | |
ikonlar | string | Yes | |
Ingredients | integer | No | |
Integer | integer | No | |
Isimler | string | Yes | |
Kick | dialog | No | |
Kick_Button | button | Yes | |
kills | integer | Yes | |
Lancer | real | No | 0.00 |
LeaderboardScourge | leaderboard | No | |
LeaderboardSentinel | leaderboard | No | |
levels | integer | Yes | |
Lifestealer | real | No | 0.00 |
Lunar | real | No | 0.00 |
Lycanthrope | real | No | 0.00 |
MA_Owner | unit | Yes | |
Mageslayer | real | No | 0.00 |
MODE_AllRandom_AllPick | integer | No | |
MODE_Normal | integer | No | |
MODE_Reverse | integer | No | |
morbfirst | boolean | Yes | |
morbsec | boolean | Yes | |
MR_Cast | boolean | Yes | |
MR_Caster | unit | Yes | |
MR_Point | location | Yes | |
Multiboard_Clock | integer | No | |
Multiboard_ShowDeaths | boolean | No | |
Multiboard_Spots | integer | Yes | |
Necrolyte | real | No | 0.00 |
Nymph | real | No | 0.00 |
oblivstaff | boolean | No | false |
Odd_Man_Out | force | No | |
Oldurme | integer | Yes | |
OldurulenBirimSayisiMULTI | integer | Yes | |
OlenBirimMiktariMULTI | integer | Yes | |
Olum_Zamani | timer | Yes | |
Olumler | integer | Yes | |
PitLord | real | No | 0.00 |
Player | player | No | |
player10isanoob | boolean | No | |
player10timer | timer | No | |
player10timerw | timerdialog | No | |
player11isanoob | boolean | No | |
player11timer | timer | No | |
player11timerw | timerdialog | No | |
player12isanoob | boolean | No | |
player12timer | timer | No | |
player12timerw | timerdialog | No | |
player2hero | integer | No | |
player2isanoob | boolean | No | |
player2timer | timer | No | |
player2timerw | timerdialog | No | |
player3isanoob | boolean | No | |
player3timer | timer | No | |
player3timerw | timerdialog | No | |
player4isanoob | boolean | No | |
player4timer | timer | No | |
player4timerw | timerdialog | No | |
player5isanoob | boolean | No | |
player5timer | timer | No | |
player5timerw | timerdialog | No | |
player6isanoob | boolean | No | |
player6timer | timer | No | |
player6timerw | timerdialog | No | |
player8isanoob | boolean | No | |
player8timer | timer | No | |
player8timerw | timerdialog | No | |
player9isanoob | boolean | No | |
player9timer | timer | No | |
player9timerw | timerdialog | No | |
Player_Already_Picked | integer | Yes | |
playercountscourge | integer | No | 5 |
playercountsentinel | integer | No | 5 |
playeriscota | player | No | |
playerisengine | player | No | |
playerisvamp | player | No | |
PlayerNames | string | Yes | |
Players | force | No | |
PlayersCount | integer | No | |
PlayersInGame | force | No | |
PlayersScourge | force | No | |
PlayersScourgeCount | integer | No | |
PlayersScourgePlaying | force | No | |
PlayersScourgeReverse | force | No | |
PlayersSentinel | force | No | |
PlayersSentinelCount | integer | No | |
PlayersSentinelPlaying | force | No | |
PlayersSentinelReverse | force | No | |
PlayersVote | real | No | 0.00 |
Point | location | No | |
Puan_Tahtasi | multiboard | No | |
Purity | real | No | 0.00 |
Random | integer | No | 1 |
Random_Hero | integer | No | |
RandomData_All | integer | Yes | |
RandomData_Scourge | integer | Yes | |
RandomData_Sentinel | integer | Yes | |
RandomTotal_All | integer | No | |
RandomTotal_Scourge | integer | No | |
RandomTotal_Sentinel | integer | No | |
Rasgele_Hero | integer | No | |
Rasgele_Secim | boolean | Yes | |
RecipeFactor | itemcode | Yes | |
Renkler | string | Yes | |
renkler | string | Yes | |
Repick_Cost_Ammount | integer | No | |
RevivableHeroes | group | No | |
ReviveTimers | timer | Yes | |
Row | integer | No | |
Rune | item | No | |
Saat | integer | Yes | |
Sadece_Orta | boolean | No | |
SavedItems | integer | Yes | |
Score_Deaths | integer | Yes | |
Score_Kills | integer | Yes | |
ScouCommand | boolean | No | false |
scourgplayers | real | No | 0.00 |
SentCommand | boolean | No | false |
sentplayers | real | No | 0.00 |
serbestcaster | unit | No | |
Seviyeler | integer | Yes | |
ShortMode_On | boolean | No | |
Siphon | real | No | 0.00 |
SiphonTimer | timer | No | |
SiphonTimerWindow | timerdialog | No | |
Skip | real | No | 0.00 |
SLevel | integer | No | |
SNumber | integer | No | |
SNumber2 | integer | No | |
Sort_Board_By_Kills | boolean | No | |
stoptimer | timer | No | |
StormSpirit | real | No | 0.00 |
Super_Creeps_On | boolean | No | |
talisman | boolean | No | false |
TempInteger | integer | No | |
Toplam_Oyuncu_Sayisi | integer | Yes | |
UberMode_On | boolean | No | |
UltraShortMode_On | boolean | No | |
Unit | unit | Yes | |
UnitGroup | group | No | |
Venomancer | real | No | 0.00 |
Virtue | real | No | 0.00 |
VoidDemon | real | No | 0.00 |
voidstone | boolean | No | false |
wavehero | unit | No | |
Yeniden_Secim | boolean | Yes | |
ZamanSayaciDakika | integer | No | |
ZamanSayaciSaniye | integer | No |
function Trig_Exp_Decay_And_Bounty_Actions takes nothing returns nothing
call SetTimeOfDay( 24.00 )
call UseTimeOfDayBJ( true )
call SetTimeOfDayScalePercentBJ( 50.00 )
call SetSkyModel( "Environment\\Sky\\FoggedSky\\FoggedSky.mdl" )
call SetPlayerHandicapXPBJ( Player(1), 100.00 )
call SetPlayerHandicapXPBJ( Player(2), 100.00 )
call SetPlayerHandicapXPBJ( Player(3), 100.00 )
call SetPlayerHandicapXPBJ( Player(4), 100.00 )
call SetPlayerHandicapXPBJ( Player(5), 100.00 )
call SetPlayerHandicapXPBJ( Player(7), 100.00 )
call SetPlayerHandicapXPBJ( Player(8), 100.00 )
call SetPlayerHandicapXPBJ( Player(9), 100.00 )
call SetPlayerHandicapXPBJ( Player(10), 100.00 )
call SetPlayerHandicapXPBJ( Player(11), 100.00 )
call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(0) )
call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(1) )
call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(2) )
call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(3) )
call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(4) )
call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(5) )
call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(6) )
call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(7) )
call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(8) )
call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(9) )
call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(10) )
call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(11) )
call TriggerSleepAction( 1.00 )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_248" )
call SetPlayerStateBJ( Player(0), PLAYER_STATE_RESOURCE_LUMBER, 1000 )
call SetPlayerStateBJ( Player(1), PLAYER_STATE_RESOURCE_GOLD, 750 )
call SetPlayerStateBJ( Player(2), PLAYER_STATE_RESOURCE_GOLD, 750 )
call SetPlayerStateBJ( Player(3), PLAYER_STATE_RESOURCE_GOLD, 750 )
call SetPlayerStateBJ( Player(4), PLAYER_STATE_RESOURCE_GOLD, 750 )
call SetPlayerStateBJ( Player(5), PLAYER_STATE_RESOURCE_GOLD, 750 )
call SetPlayerStateBJ( Player(6), PLAYER_STATE_RESOURCE_LUMBER, 1000 )
call SetPlayerStateBJ( Player(7), PLAYER_STATE_RESOURCE_GOLD, 750 )
call SetPlayerStateBJ( Player(8), PLAYER_STATE_RESOURCE_GOLD, 750 )
call SetPlayerStateBJ( Player(9), PLAYER_STATE_RESOURCE_GOLD, 750 )
call SetPlayerStateBJ( Player(10), PLAYER_STATE_RESOURCE_GOLD, 750 )
call SetPlayerStateBJ( Player(11), PLAYER_STATE_RESOURCE_GOLD, 750 )
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_713", "TRIGSTR_714", "ReplaceableTextures\\CommandButtons\\BTNAmbush.blp" )
endfunction
function InitTrig_Exp_Decay_And_Bounty takes nothing returns nothing
set gg_trg_Exp_Decay_And_Bounty = CreateTrigger( )
call TriggerAddAction( gg_trg_Exp_Decay_And_Bounty, function Trig_Exp_Decay_And_Bounty_Actions )
endfunction
function Trig_Tree_Recreation_Func002002 takes nothing returns nothing
call DestructableRestoreLife( GetEnumDestructable(), GetDestructableMaxLife(GetEnumDestructable()), false )
endfunction
function Trig_Tree_Recreation_Actions takes nothing returns nothing
call TriggerSleepAction( 30.00 )
call EnumDestructablesInRectAll( GetEntireMapRect(), function Trig_Tree_Recreation_Func002002 )
endfunction
function InitTrig_Tree_Recreation takes nothing returns nothing
set gg_trg_Tree_Recreation = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Tree_Recreation, 300.00 )
call TriggerAddAction( gg_trg_Tree_Recreation, function Trig_Tree_Recreation_Actions )
endfunction
function Trig_Hero_Kills_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetKillingUnitBJ()) != Player(0) ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetKillingUnitBJ()) != Player(6) ) ) then
return false
endif
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( IsUnitAlly(GetDyingUnit(), GetOwningPlayer(GetKillingUnitBJ())) == false ) ) then
return false
endif
return true
endfunction
function Trig_Hero_Kills_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 100, GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_GOLD )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())) + ( " just pawned " + ( GetPlayerName(GetOwningPlayer(GetDyingUnit())) + "'s head for 100 extra gold!" ) ) ) )
endfunction
function InitTrig_Hero_Kills takes nothing returns nothing
set gg_trg_Hero_Kills = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Hero_Kills, Player(1), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Hero_Kills, Player(2), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Hero_Kills, Player(3), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Hero_Kills, Player(4), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Hero_Kills, Player(5), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Hero_Kills, Player(7), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Hero_Kills, Player(8), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Hero_Kills, Player(9), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Hero_Kills, Player(10), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Hero_Kills, Player(11), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Hero_Kills, Condition( function Trig_Hero_Kills_Conditions ) )
call TriggerAddAction( gg_trg_Hero_Kills, function Trig_Hero_Kills_Actions )
endfunction
function Trig_Creeps_Command_Actions takes nothing returns nothing
call QuestMessageBJ( GetForceOfPlayer(GetTriggerPlayer()), bj_QUESTMESSAGE_ALWAYSHINT, "TRIGSTR_249" )
call PingMinimapLocForForce( GetForceOfPlayer(GetTriggerPlayer()), GetRectCenter(gg_rct_E_Merchant_Creep), 2.00 )
call TriggerSleepAction( 0.50 )
call PingMinimapLocForForce( GetForceOfPlayer(GetTriggerPlayer()), GetRectCenter(gg_rct_W_Merchant_Creep), 2.00 )
call TriggerSleepAction( 0.50 )
call PingMinimapLocForForce( GetForceOfPlayer(GetTriggerPlayer()), GetRectCenter(gg_rct_Scourge02), 2.00 )
call TriggerSleepAction( 0.50 )
call PingMinimapLocForForce( GetForceOfPlayer(GetTriggerPlayer()), GetRectCenter(gg_rct_Sentinel02), 2.00 )
call TriggerSleepAction( 0.50 )
call PingMinimapLocForForce( GetForceOfPlayer(GetTriggerPlayer()), GetRectCenter(gg_rct_Scourge1), 2.00 )
call TriggerSleepAction( 0.50 )
call PingMinimapLocForForce( GetForceOfPlayer(GetTriggerPlayer()), GetRectCenter(gg_rct_Sentinel1), 2.00 )
call TriggerSleepAction( 0.50 )
call PingMinimapLocForForce( GetForceOfPlayer(GetTriggerPlayer()), GetRectCenter(gg_rct_Scourge2), 2.00 )
call TriggerSleepAction( 0.50 )
call PingMinimapLocForForce( GetForceOfPlayer(GetTriggerPlayer()), GetRectCenter(gg_rct_Sentinel2), 2.00 )
call TriggerSleepAction( 0.50 )
call PingMinimapLocForForce( GetForceOfPlayer(GetTriggerPlayer()), GetRectCenter(gg_rct_Scourge4), 2.00 )
call TriggerSleepAction( 0.50 )
call PingMinimapLocForForce( GetForceOfPlayer(GetTriggerPlayer()), GetRectCenter(gg_rct_Sentinel4), 2.00 )
call TriggerSleepAction( 0.50 )
call PingMinimapLocForForce( GetForceOfPlayer(GetTriggerPlayer()), GetRectCenter(gg_rct_Scourge7), 2.00 )
call TriggerSleepAction( 0.50 )
call PingMinimapLocForForce( GetForceOfPlayer(GetTriggerPlayer()), GetRectCenter(gg_rct_Sentinel7), 2.00 )
call TriggerSleepAction( 0.50 )
call PingMinimapLocForForce( GetForceOfPlayer(GetTriggerPlayer()), GetRectCenter(gg_rct_Sentinel6), 2.00 )
call TriggerSleepAction( 0.50 )
call PingMinimapLocForForce( GetForceOfPlayer(GetTriggerPlayer()), GetRectCenter(gg_rct_Scourge6), 2.00 )
call TriggerSleepAction( 0.50 )
call PingMinimapLocForForce( GetForceOfPlayer(GetTriggerPlayer()), GetRectCenter(gg_rct_Scourge3), 2.00 )
call TriggerSleepAction( 0.50 )
call PingMinimapLocForForce( GetForceOfPlayer(GetTriggerPlayer()), GetRectCenter(gg_rct_Sentinel3), 2.00 )
call TriggerSleepAction( 0.50 )
call PingMinimapLocForForce( GetForceOfPlayer(GetTriggerPlayer()), GetRectCenter(gg_rct_Sentinel5), 2.00 )
call TriggerSleepAction( 0.50 )
call PingMinimapLocForForce( GetForceOfPlayer(GetTriggerPlayer()), GetRectCenter(gg_rct_Scourge5), 2.00 )
endfunction
function InitTrig_Creeps_Command takes nothing returns nothing
set gg_trg_Creeps_Command = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Creeps_Command, Player(1), "-creeps", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Creeps_Command, Player(2), "-creeps", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Creeps_Command, Player(3), "-creeps", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Creeps_Command, Player(4), "-creeps", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Creeps_Command, Player(5), "-creeps", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Creeps_Command, Player(7), "-creeps", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Creeps_Command, Player(8), "-creeps", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Creeps_Command, Player(9), "-creeps", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Creeps_Command, Player(10), "-creeps", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Creeps_Command, Player(11), "-creeps", true )
call TriggerAddAction( gg_trg_Creeps_Command, function Trig_Creeps_Command_Actions )
endfunction
function Trig_W_Merchant_Creeps_Conditions takes nothing returns boolean
if ( not ( RectContainsUnit(gg_rct_W_Merchant_Creep, GroupPickRandomUnit(GetUnitsInRectOfPlayer(gg_rct_W_Merchant_Creep, Player(PLAYER_NEUTRAL_AGGRESSIVE)))) == false ) ) then
return false
endif
return true
endfunction
function Trig_W_Merchant_Creeps_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 3, ChooseRandomCreepBJ(3), Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_W_Merchant_Creep), 360.00 )
call ConditionalTriggerExecute( GetTriggeringTrigger() )
endfunction
function InitTrig_W_Merchant_Creeps takes nothing returns nothing
set gg_trg_W_Merchant_Creeps = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_W_Merchant_Creeps, 90.00 )
call TriggerAddCondition( gg_trg_W_Merchant_Creeps, Condition( function Trig_W_Merchant_Creeps_Conditions ) )
call TriggerAddAction( gg_trg_W_Merchant_Creeps, function Trig_W_Merchant_Creeps_Actions )
endfunction
function Trig_E_Merchant_Creeps_Conditions takes nothing returns boolean
if ( not ( RectContainsUnit(gg_rct_E_Merchant_Creep, GroupPickRandomUnit(GetUnitsInRectOfPlayer(gg_rct_E_Merchant_Creep, Player(PLAYER_NEUTRAL_AGGRESSIVE)))) == false ) ) then
return false
endif
return true
endfunction
function Trig_E_Merchant_Creeps_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 3, ChooseRandomCreepBJ(3), Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_E_Merchant_Creep), 360.00 )
call ConditionalTriggerExecute( GetTriggeringTrigger() )
endfunction
function InitTrig_E_Merchant_Creeps takes nothing returns nothing
set gg_trg_E_Merchant_Creeps = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_E_Merchant_Creeps, 90.00 )
call TriggerAddCondition( gg_trg_E_Merchant_Creeps, Condition( function Trig_E_Merchant_Creeps_Conditions ) )
call TriggerAddAction( gg_trg_E_Merchant_Creeps, function Trig_E_Merchant_Creeps_Actions )
endfunction
function Trig_Sentinel1_Conditions takes nothing returns boolean
if ( not ( RectContainsUnit(gg_rct_Sentinel1, GroupPickRandomUnit(GetUnitsInRectOfPlayer(gg_rct_Sentinel1, Player(PLAYER_NEUTRAL_AGGRESSIVE)))) == false ) ) then
return false
endif
return true
endfunction
function Trig_Sentinel1_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 4, ChooseRandomCreepBJ(1), Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Sentinel1), 360.00 )
call ConditionalTriggerExecute( GetTriggeringTrigger() )
endfunction
function InitTrig_Sentinel1 takes nothing returns nothing
set gg_trg_Sentinel1 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Sentinel1, 90.00 )
call TriggerAddCondition( gg_trg_Sentinel1, Condition( function Trig_Sentinel1_Conditions ) )
call TriggerAddAction( gg_trg_Sentinel1, function Trig_Sentinel1_Actions )
endfunction
function Trig_Sentinel2_Conditions takes nothing returns boolean
if ( not ( RectContainsUnit(gg_rct_Sentinel2, GroupPickRandomUnit(GetUnitsInRectOfPlayer(gg_rct_Sentinel2, Player(PLAYER_NEUTRAL_AGGRESSIVE)))) == false ) ) then
return false
endif
return true
endfunction
function Trig_Sentinel2_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 3, ChooseRandomCreepBJ(2), Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Sentinel2), 360.00 )
call ConditionalTriggerExecute( GetTriggeringTrigger() )
endfunction
function InitTrig_Sentinel2 takes nothing returns nothing
set gg_trg_Sentinel2 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Sentinel2, 90.00 )
call TriggerAddCondition( gg_trg_Sentinel2, Condition( function Trig_Sentinel2_Conditions ) )
call TriggerAddAction( gg_trg_Sentinel2, function Trig_Sentinel2_Actions )
endfunction
function Trig_Sentinel02_Conditions takes nothing returns boolean
if ( not ( RectContainsUnit(gg_rct_Sentinel02, GroupPickRandomUnit(GetUnitsInRectOfPlayer(gg_rct_Sentinel02, Player(PLAYER_NEUTRAL_AGGRESSIVE)))) == false ) ) then
return false
endif
return true
endfunction
function Trig_Sentinel02_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 3, ChooseRandomCreepBJ(2), Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Sentinel02), 360.00 )
call ConditionalTriggerExecute( GetTriggeringTrigger() )
endfunction
function InitTrig_Sentinel02 takes nothing returns nothing
set gg_trg_Sentinel02 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Sentinel02, 90.00 )
call TriggerAddCondition( gg_trg_Sentinel02, Condition( function Trig_Sentinel02_Conditions ) )
call TriggerAddAction( gg_trg_Sentinel02, function Trig_Sentinel02_Actions )
endfunction
function Trig_Sentinel3_Conditions takes nothing returns boolean
if ( not ( RectContainsUnit(gg_rct_Sentinel3, GroupPickRandomUnit(GetUnitsInRectOfPlayer(gg_rct_Sentinel3, Player(PLAYER_NEUTRAL_AGGRESSIVE)))) == false ) ) then
return false
endif
return true
endfunction
function Trig_Sentinel3_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 3, ChooseRandomCreepBJ(3), Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Sentinel3), 360.00 )
call ConditionalTriggerExecute( GetTriggeringTrigger() )
endfunction
function InitTrig_Sentinel3 takes nothing returns nothing
set gg_trg_Sentinel3 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Sentinel3, 90.00 )
call TriggerAddCondition( gg_trg_Sentinel3, Condition( function Trig_Sentinel3_Conditions ) )
call TriggerAddAction( gg_trg_Sentinel3, function Trig_Sentinel3_Actions )
endfunction
function Trig_Sentinel4_Conditions takes nothing returns boolean
if ( not ( RectContainsUnit(gg_rct_Sentinel4, GroupPickRandomUnit(GetUnitsInRectOfPlayer(gg_rct_Sentinel4, Player(PLAYER_NEUTRAL_AGGRESSIVE)))) == false ) ) then
return false
endif
return true
endfunction
function Trig_Sentinel4_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 2, ChooseRandomCreepBJ(4), Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Sentinel4), 360.00 )
call ConditionalTriggerExecute( GetTriggeringTrigger() )
endfunction
function InitTrig_Sentinel4 takes nothing returns nothing
set gg_trg_Sentinel4 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Sentinel4, 180.00 )
call TriggerAddCondition( gg_trg_Sentinel4, Condition( function Trig_Sentinel4_Conditions ) )
call TriggerAddAction( gg_trg_Sentinel4, function Trig_Sentinel4_Actions )
endfunction
function Trig_Sentinel5_Conditions takes nothing returns boolean
if ( not ( RectContainsUnit(gg_rct_Sentinel5, GroupPickRandomUnit(GetUnitsInRectOfPlayer(gg_rct_Sentinel5, Player(PLAYER_NEUTRAL_AGGRESSIVE)))) == false ) ) then
return false
endif
return true
endfunction
function Trig_Sentinel5_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 2, ChooseRandomCreepBJ(5), Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Sentinel5), 360.00 )
call ConditionalTriggerExecute( GetTriggeringTrigger() )
endfunction
function InitTrig_Sentinel5 takes nothing returns nothing
set gg_trg_Sentinel5 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Sentinel5, 180.00 )
call TriggerAddCondition( gg_trg_Sentinel5, Condition( function Trig_Sentinel5_Conditions ) )
call TriggerAddAction( gg_trg_Sentinel5, function Trig_Sentinel5_Actions )
endfunction
function Trig_Sentinel7_Conditions takes nothing returns boolean
if ( not ( RectContainsUnit(gg_rct_Sentinel7, GroupPickRandomUnit(GetUnitsInRectOfPlayer(gg_rct_Sentinel7, Player(PLAYER_NEUTRAL_AGGRESSIVE)))) == false ) ) then
return false
endif
return true
endfunction
function Trig_Sentinel7_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, ChooseRandomCreepBJ(7), Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Sentinel7), 360.00 )
call ConditionalTriggerExecute( GetTriggeringTrigger() )
endfunction
function InitTrig_Sentinel7 takes nothing returns nothing
set gg_trg_Sentinel7 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Sentinel7, 300.00 )
call TriggerAddCondition( gg_trg_Sentinel7, Condition( function Trig_Sentinel7_Conditions ) )
call TriggerAddAction( gg_trg_Sentinel7, function Trig_Sentinel7_Actions )
endfunction
function Trig_Scourge1_Conditions takes nothing returns boolean
if ( not ( RectContainsUnit(gg_rct_Scourge1, GroupPickRandomUnit(GetUnitsInRectOfPlayer(gg_rct_Scourge1, Player(PLAYER_NEUTRAL_AGGRESSIVE)))) == false ) ) then
return false
endif
return true
endfunction
function Trig_Scourge1_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 4, ChooseRandomCreepBJ(1), Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Scourge1), 360.00 )
call ConditionalTriggerExecute( GetTriggeringTrigger() )
endfunction
function InitTrig_Scourge1 takes nothing returns nothing
set gg_trg_Scourge1 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Scourge1, 90.00 )
call TriggerAddCondition( gg_trg_Scourge1, Condition( function Trig_Scourge1_Conditions ) )
call TriggerAddAction( gg_trg_Scourge1, function Trig_Scourge1_Actions )
endfunction
function Trig_Scourge2_Conditions takes nothing returns boolean
if ( not ( RectContainsUnit(gg_rct_Scourge2, GroupPickRandomUnit(GetUnitsInRectOfPlayer(gg_rct_Scourge2, Player(PLAYER_NEUTRAL_AGGRESSIVE)))) == false ) ) then
return false
endif
return true
endfunction
function Trig_Scourge2_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 3, ChooseRandomCreepBJ(2), Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Scourge2), 360.00 )
call ConditionalTriggerExecute( GetTriggeringTrigger() )
endfunction
function InitTrig_Scourge2 takes nothing returns nothing
set gg_trg_Scourge2 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Scourge2, 90.00 )
call TriggerAddCondition( gg_trg_Scourge2, Condition( function Trig_Scourge2_Conditions ) )
call TriggerAddAction( gg_trg_Scourge2, function Trig_Scourge2_Actions )
endfunction
function Trig_Scourge02_Conditions takes nothing returns boolean
if ( not ( RectContainsUnit(gg_rct_Scourge02, GroupPickRandomUnit(GetUnitsInRectOfPlayer(gg_rct_Scourge02, Player(PLAYER_NEUTRAL_AGGRESSIVE)))) == false ) ) then
return false
endif
return true
endfunction
function Trig_Scourge02_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 3, ChooseRandomCreepBJ(2), Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Scourge02), 360.00 )
call ConditionalTriggerExecute( GetTriggeringTrigger() )
endfunction
function InitTrig_Scourge02 takes nothing returns nothing
set gg_trg_Scourge02 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Scourge02, 90.00 )
call TriggerAddCondition( gg_trg_Scourge02, Condition( function Trig_Scourge02_Conditions ) )
call TriggerAddAction( gg_trg_Scourge02, function Trig_Scourge02_Actions )
endfunction
function Trig_Scourge3_Conditions takes nothing returns boolean
if ( not ( RectContainsUnit(gg_rct_Scourge3, GroupPickRandomUnit(GetUnitsInRectOfPlayer(gg_rct_Scourge3, Player(PLAYER_NEUTRAL_AGGRESSIVE)))) == false ) ) then
return false
endif
return true
endfunction
function Trig_Scourge3_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 3, ChooseRandomCreepBJ(3), Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Scourge3), 360.00 )
call ConditionalTriggerExecute( GetTriggeringTrigger() )
endfunction
function InitTrig_Scourge3 takes nothing returns nothing
set gg_trg_Scourge3 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Scourge3, 90.00 )
call TriggerAddCondition( gg_trg_Scourge3, Condition( function Trig_Scourge3_Conditions ) )
call TriggerAddAction( gg_trg_Scourge3, function Trig_Scourge3_Actions )
endfunction
function Trig_Scourge4_Conditions takes nothing returns boolean
if ( not ( RectContainsUnit(gg_rct_Scourge4, GroupPickRandomUnit(GetUnitsInRectOfPlayer(gg_rct_Scourge4, Player(PLAYER_NEUTRAL_AGGRESSIVE)))) == false ) ) then
return false
endif
return true
endfunction
function Trig_Scourge4_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 2, ChooseRandomCreepBJ(4), Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Scourge4), 360.00 )
call ConditionalTriggerExecute( GetTriggeringTrigger() )
endfunction
function InitTrig_Scourge4 takes nothing returns nothing
set gg_trg_Scourge4 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Scourge4, 180.00 )
call TriggerAddCondition( gg_trg_Scourge4, Condition( function Trig_Scourge4_Conditions ) )
call TriggerAddAction( gg_trg_Scourge4, function Trig_Scourge4_Actions )
endfunction
function Trig_Scourge5_Conditions takes nothing returns boolean
if ( not ( RectContainsUnit(gg_rct_Scourge5, GroupPickRandomUnit(GetUnitsInRectOfPlayer(gg_rct_Scourge5, Player(PLAYER_NEUTRAL_AGGRESSIVE)))) == false ) ) then
return false
endif
return true
endfunction
function Trig_Scourge5_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 2, ChooseRandomCreepBJ(5), Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Scourge5), 360.00 )
call ConditionalTriggerExecute( GetTriggeringTrigger() )
endfunction
function InitTrig_Scourge5 takes nothing returns nothing
set gg_trg_Scourge5 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Scourge5, 180.00 )
call TriggerAddCondition( gg_trg_Scourge5, Condition( function Trig_Scourge5_Conditions ) )
call TriggerAddAction( gg_trg_Scourge5, function Trig_Scourge5_Actions )
endfunction
function Trig_Scourge7_Conditions takes nothing returns boolean
if ( not ( RectContainsUnit(gg_rct_Scourge7, GroupPickRandomUnit(GetUnitsInRectOfPlayer(gg_rct_Scourge7, Player(PLAYER_NEUTRAL_AGGRESSIVE)))) == false ) ) then
return false
endif
return true
endfunction
function Trig_Scourge7_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, ChooseRandomCreepBJ(7), Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Scourge7), 360.00 )
call ConditionalTriggerExecute( GetTriggeringTrigger() )
endfunction
function InitTrig_Scourge7 takes nothing returns nothing
set gg_trg_Scourge7 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Scourge7, 300.00 )
call TriggerAddCondition( gg_trg_Scourge7, Condition( function Trig_Scourge7_Conditions ) )
call TriggerAddAction( gg_trg_Scourge7, function Trig_Scourge7_Actions )
endfunction
function Trig_Conditional_Spawning_Conditions takes nothing returns boolean
if ( not ( udg_GameStart == 1.00 ) ) then
return false
endif
return true
endfunction
function Trig_Conditional_Spawning_Func002001 takes nothing returns boolean
return ( IsUnitAliveBJ(gg_unit_eaom_0098) == true )
endfunction
function Trig_Conditional_Spawning_Func003001 takes nothing returns boolean
return ( IsUnitAliveBJ(gg_unit_eaom_0099) == true )
endfunction
function Trig_Conditional_Spawning_Func004001 takes nothing returns boolean
return ( IsUnitAliveBJ(gg_unit_eaom_0100) == true )
endfunction
function Trig_Conditional_Spawning_Func006001 takes nothing returns boolean
return ( IsUnitAliveBJ(gg_unit_eaoe_0103) == true )
endfunction
function Trig_Conditional_Spawning_Func007001 takes nothing returns boolean
return ( IsUnitAliveBJ(gg_unit_eaoe_0102) == true )
endfunction
function Trig_Conditional_Spawning_Func008001 takes nothing returns boolean
return ( IsUnitAliveBJ(gg_unit_eaoe_0101) == true )
endfunction
function Trig_Conditional_Spawning_Func010001 takes nothing returns boolean
return ( IsUnitAliveBJ(gg_unit_usep_0125) == true )
endfunction
function Trig_Conditional_Spawning_Func011001 takes nothing returns boolean
return ( IsUnitAliveBJ(gg_unit_usep_0126) == true )
endfunction
function Trig_Conditional_Spawning_Func012001 takes nothing returns boolean
return ( IsUnitAliveBJ(gg_unit_usep_0127) == true )
endfunction
function Trig_Conditional_Spawning_Func014001 takes nothing returns boolean
return ( IsUnitAliveBJ(gg_unit_utod_0130) == true )
endfunction
function Trig_Conditional_Spawning_Func015001 takes nothing returns boolean
return ( IsUnitAliveBJ(gg_unit_utod_0128) == true )
endfunction
function Trig_Conditional_Spawning_Func016001 takes nothing returns boolean
return ( IsUnitAliveBJ(gg_unit_utod_0129) == true )
endfunction
function Trig_Conditional_Spawning_Actions takes nothing returns nothing
if ( Trig_Conditional_Spawning_Func002001() ) then
call ConditionalTriggerExecute( gg_trg_Spawn_Sentinel_N_War )
else
call DoNothing( )
endif
if ( Trig_Conditional_Spawning_Func003001() ) then
call ConditionalTriggerExecute( gg_trg_Spawn_Sentinel_NE_War )
else
call DoNothing( )
endif
if ( Trig_Conditional_Spawning_Func004001() ) then
call ConditionalTriggerExecute( gg_trg_Spawn_Sentinel_E_War )
else
call DoNothing( )
endif
call TriggerSleepAction( 0.01 )
if ( Trig_Conditional_Spawning_Func006001() ) then
call ConditionalTriggerExecute( gg_trg_Spawn_Sentinel_N_Lore )
else
call DoNothing( )
endif
if ( Trig_Conditional_Spawning_Func007001() ) then
call ConditionalTriggerExecute( gg_trg_Spawn_Sentinel_NE_Lore )
else
call DoNothing( )
endif
if ( Trig_Conditional_Spawning_Func008001() ) then
call ConditionalTriggerExecute( gg_trg_Spawn_Sentinel_E_Lore )
else
call DoNothing( )
endif
call TriggerSleepAction( 0.01 )
if ( Trig_Conditional_Spawning_Func010001() ) then
call ConditionalTriggerExecute( gg_trg_Spawn_Scourge_S_Crypt )
else
call DoNothing( )
endif
if ( Trig_Conditional_Spawning_Func011001() ) then
call ConditionalTriggerExecute( gg_trg_Spawn_Scourge_SW_Crypt )
else
call DoNothing( )
endif
if ( Trig_Conditional_Spawning_Func012001() ) then
call ConditionalTriggerExecute( gg_trg_Spawn_Scourge_W_Crypt )
else
call DoNothing( )
endif
call TriggerSleepAction( 0.01 )
if ( Trig_Conditional_Spawning_Func014001() ) then
call ConditionalTriggerExecute( gg_trg_Spawn_Scourge_S_Temple )
else
call DoNothing( )
endif
if ( Trig_Conditional_Spawning_Func015001() ) then
call ConditionalTriggerExecute( gg_trg_Spawn_Scourge_SW_Temple )
else
call DoNothing( )
endif
if ( Trig_Conditional_Spawning_Func016001() ) then
call ConditionalTriggerExecute( gg_trg_Spawn_Scourge_W_Temple )
else
call DoNothing( )
endif
call TriggerSleepAction( 0.01 )
endfunction
function InitTrig_Conditional_Spawning takes nothing returns nothing
set gg_trg_Conditional_Spawning = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Conditional_Spawning, 20.00 )
call TriggerAddCondition( gg_trg_Conditional_Spawning, Condition( function Trig_Conditional_Spawning_Conditions ) )
call TriggerAddAction( gg_trg_Conditional_Spawning, function Trig_Conditional_Spawning_Actions )
endfunction
function Trig_Spawn_Sentinel_N_War_Actions takes nothing returns nothing
call CreateNUnitsAtLocFacingLocBJ( 1, 'esen', Player(0), GetRectCenter(gg_rct_War_N), GetUnitLoc(GetTriggerUnit()) )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "attack", GetRectCenter(gg_rct_Attack_Point_N) )
call CreateNUnitsAtLocFacingLocBJ( 1, 'esen', Player(0), GetRectCenter(gg_rct_War_N), GetUnitLoc(GetTriggerUnit()) )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "attack", GetRectCenter(gg_rct_Attack_Point_N) )
call TriggerSleepAction( 10.00 )
endfunction
function InitTrig_Spawn_Sentinel_N_War takes nothing returns nothing
set gg_trg_Spawn_Sentinel_N_War = CreateTrigger( )
call TriggerAddAction( gg_trg_Spawn_Sentinel_N_War, function Trig_Spawn_Sentinel_N_War_Actions )
endfunction
function Trig_Spawn_Sentinel_NE_War_Actions takes nothing returns nothing
call CreateNUnitsAtLocFacingLocBJ( 1, 'esen', Player(0), GetRectCenter(gg_rct_War_NE), GetUnitLoc(GetTriggerUnit()) )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "attack", GetRectCenter(gg_rct_Hero_Creation_Evil) )
call CreateNUnitsAtLocFacingLocBJ( 1, 'esen', Player(0), GetRectCenter(gg_rct_War_NE), GetUnitLoc(GetTriggerUnit()) )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "attack", GetRectCenter(gg_rct_Hero_Creation_Evil) )
call TriggerSleepAction( 10.00 )
endfunction
function InitTrig_Spawn_Sentinel_NE_War takes nothing returns nothing
set gg_trg_Spawn_Sentinel_NE_War = CreateTrigger( )
call TriggerAddAction( gg_trg_Spawn_Sentinel_NE_War, function Trig_Spawn_Sentinel_NE_War_Actions )
endfunction
function Trig_Spawn_Sentinel_E_War_Actions takes nothing returns nothing
call CreateNUnitsAtLocFacingLocBJ( 1, 'esen', Player(0), GetRectCenter(gg_rct_War_E), GetUnitLoc(GetTriggerUnit()) )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "attack", GetRectCenter(gg_rct_Attack_Point_E) )
call CreateNUnitsAtLocFacingLocBJ( 1, 'esen', Player(0), GetRectCenter(gg_rct_War_E), GetUnitLoc(GetTriggerUnit()) )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "attack", GetRectCenter(gg_rct_Attack_Point_E) )
call TriggerSleepAction( 10.00 )
endfunction
function InitTrig_Spawn_Sentinel_E_War takes nothing returns nothing
set gg_trg_Spawn_Sentinel_E_War = CreateTrigger( )
call TriggerAddAction( gg_trg_Spawn_Sentinel_E_War, function Trig_Spawn_Sentinel_E_War_Actions )
endfunction
function Trig_Spawn_Sentinel_N_Lore_Actions takes nothing returns nothing
call CreateNUnitsAtLocFacingLocBJ( 1, 'edry', Player(0), GetRectCenter(gg_rct_Lore_N), GetUnitLoc(GetTriggerUnit()) )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "attack", GetRectCenter(gg_rct_Attack_Point_N) )
endfunction
function InitTrig_Spawn_Sentinel_N_Lore takes nothing returns nothing
set gg_trg_Spawn_Sentinel_N_Lore = CreateTrigger( )
call TriggerAddAction( gg_trg_Spawn_Sentinel_N_Lore, function Trig_Spawn_Sentinel_N_Lore_Actions )
endfunction
function Trig_Spawn_Sentinel_NE_Lore_Actions takes nothing returns nothing
call CreateNUnitsAtLocFacingLocBJ( 1, 'edry', Player(0), GetRectCenter(gg_rct_Lore_NE), GetUnitLoc(GetTriggerUnit()) )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "attack", GetRectCenter(gg_rct_Hero_Creation_Evil) )
endfunction
function InitTrig_Spawn_Sentinel_NE_Lore takes nothing returns nothing
set gg_trg_Spawn_Sentinel_NE_Lore = CreateTrigger( )
call TriggerAddAction( gg_trg_Spawn_Sentinel_NE_Lore, function Trig_Spawn_Sentinel_NE_Lore_Actions )
endfunction
function Trig_Spawn_Sentinel_E_Lore_Actions takes nothing returns nothing
call CreateNUnitsAtLocFacingLocBJ( 1, 'edry', Player(0), GetRectCenter(gg_rct_Lore_E), GetUnitLoc(GetTriggerUnit()) )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "attack", GetRectCenter(gg_rct_Attack_Point_E) )
endfunction
function InitTrig_Spawn_Sentinel_E_Lore takes nothing returns nothing
set gg_trg_Spawn_Sentinel_E_Lore = CreateTrigger( )
call TriggerAddAction( gg_trg_Spawn_Sentinel_E_Lore, function Trig_Spawn_Sentinel_E_Lore_Actions )
endfunction
function Trig_Spawn_Scourge_S_Crypt_Actions takes nothing returns nothing
call CreateNUnitsAtLocFacingLocBJ( 1, 'ugho', Player(6), GetRectCenter(gg_rct_Crypt_S), GetUnitLoc(GetTriggerUnit()) )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "attack", GetRectCenter(gg_rct_Attack_Point_E) )
call CreateNUnitsAtLocFacingLocBJ( 1, 'ugho', Player(6), GetRectCenter(gg_rct_Crypt_S), GetUnitLoc(GetTriggerUnit()) )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "attack", GetRectCenter(gg_rct_Attack_Point_E) )
call CreateNUnitsAtLocFacingLocBJ( 1, 'ugho', Player(6), GetRectCenter(gg_rct_Crypt_S), GetUnitLoc(GetTriggerUnit()) )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "attack", GetRectCenter(gg_rct_Attack_Point_E) )
endfunction
function InitTrig_Spawn_Scourge_S_Crypt takes nothing returns nothing
set gg_trg_Spawn_Scourge_S_Crypt = CreateTrigger( )
call TriggerAddAction( gg_trg_Spawn_Scourge_S_Crypt, function Trig_Spawn_Scourge_S_Crypt_Actions )
endfunction
function Trig_Spawn_Scourge_SW_Crypt_Actions takes nothing returns nothing
call CreateNUnitsAtLocFacingLocBJ( 1, 'ugho', Player(6), GetRectCenter(gg_rct_Crypt_SW), GetUnitLoc(GetTriggerUnit()) )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "attack", GetRectCenter(gg_rct_Hero_Creation_NE) )
call CreateNUnitsAtLocFacingLocBJ( 1, 'ugho', Player(6), GetRectCenter(gg_rct_Crypt_SW), GetUnitLoc(GetTriggerUnit()) )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "attack", GetRectCenter(gg_rct_Hero_Creation_NE) )
call CreateNUnitsAtLocFacingLocBJ( 1, 'ugho', Player(6), GetRectCenter(gg_rct_Crypt_SW), GetUnitLoc(GetTriggerUnit()) )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "attack", GetRectCenter(gg_rct_Hero_Creation_NE) )
endfunction
function InitTrig_Spawn_Scourge_SW_Crypt takes nothing returns nothing
set gg_trg_Spawn_Scourge_SW_Crypt = CreateTrigger( )
call TriggerAddAction( gg_trg_Spawn_Scourge_SW_Crypt, function Trig_Spawn_Scourge_SW_Crypt_Actions )
endfunction
function Trig_Spawn_Scourge_W_Crypt_Actions takes nothing returns nothing
call CreateNUnitsAtLocFacingLocBJ( 1, 'ugho', Player(6), GetRectCenter(gg_rct_Crypt_W), GetUnitLoc(GetTriggerUnit()) )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "attack", GetRectCenter(gg_rct_Attack_Point_N) )
call CreateNUnitsAtLocFacingLocBJ( 1, 'ugho', Player(6), GetRectCenter(gg_rct_Crypt_W), GetUnitLoc(GetTriggerUnit()) )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "attack", GetRectCenter(gg_rct_Attack_Point_N) )
call CreateNUnitsAtLocFacingLocBJ( 1, 'ugho', Player(6), GetRectCenter(gg_rct_Crypt_W), GetUnitLoc(GetTriggerUnit()) )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "attack", GetRectCenter(gg_rct_Attack_Point_N) )
endfunction
function InitTrig_Spawn_Scourge_W_Crypt takes nothing returns nothing
set gg_trg_Spawn_Scourge_W_Crypt = CreateTrigger( )
call TriggerAddAction( gg_trg_Spawn_Scourge_W_Crypt, function Trig_Spawn_Scourge_W_Crypt_Actions )
endfunction
function Trig_Spawn_Scourge_S_Temple_Actions takes nothing returns nothing
call CreateNUnitsAtLocFacingLocBJ( 1, 'unec', Player(6), GetRectCenter(gg_rct_Temple_S), GetUnitLoc(GetTriggerUnit()) )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "attack", GetRectCenter(gg_rct_Attack_Point_E) )
endfunction
function InitTrig_Spawn_Scourge_S_Temple takes nothing returns nothing
set gg_trg_Spawn_Scourge_S_Temple = CreateTrigger( )
call TriggerAddAction( gg_trg_Spawn_Scourge_S_Temple, function Trig_Spawn_Scourge_S_Temple_Actions )
endfunction
function Trig_Spawn_Scourge_SW_Temple_Actions takes nothing returns nothing
call CreateNUnitsAtLocFacingLocBJ( 1, 'unec', Player(6), GetRectCenter(gg_rct_Temple_SW), GetUnitLoc(GetTriggerUnit()) )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "attack", GetRectCenter(gg_rct_Hero_Creation_NE) )
endfunction
function InitTrig_Spawn_Scourge_SW_Temple takes nothing returns nothing
set gg_trg_Spawn_Scourge_SW_Temple = CreateTrigger( )
call TriggerAddAction( gg_trg_Spawn_Scourge_SW_Temple, function Trig_Spawn_Scourge_SW_Temple_Actions )
endfunction
function Trig_Spawn_Scourge_W_Temple_Actions takes nothing returns nothing
call CreateNUnitsAtLocFacingLocBJ( 1, 'unec', Player(6), GetRectCenter(gg_rct_Temple_W), GetUnitLoc(GetTriggerUnit()) )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "attack", GetRectCenter(gg_rct_Attack_Point_N) )
endfunction
function InitTrig_Spawn_Scourge_W_Temple takes nothing returns nothing
set gg_trg_Spawn_Scourge_W_Temple = CreateTrigger( )
call TriggerAddAction( gg_trg_Spawn_Scourge_W_Temple, function Trig_Spawn_Scourge_W_Temple_Actions )
endfunction
function Trig_Sentinel_Redirection_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(0) ) ) then
return false
endif
return true
endfunction
function Trig_Sentinel_Redirection_Actions takes nothing returns nothing
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Hero_Creation_Evil) )
endfunction
function InitTrig_Sentinel_Redirection takes nothing returns nothing
set gg_trg_Sentinel_Redirection = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Sentinel_Redirection, gg_rct_Attack_Point_N )
call TriggerRegisterEnterRectSimple( gg_trg_Sentinel_Redirection, gg_rct_Attack_Point_E )
call TriggerAddCondition( gg_trg_Sentinel_Redirection, Condition( function Trig_Sentinel_Redirection_Conditions ) )
call TriggerAddAction( gg_trg_Sentinel_Redirection, function Trig_Sentinel_Redirection_Actions )
endfunction
function Trig_Scourge_Redirection_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(6) ) ) then
return false
endif
return true
endfunction
function Trig_Scourge_Redirection_Actions takes nothing returns nothing
call IssuePointOrderLocBJ( GetTriggerUnit(), "attack", GetRectCenter(gg_rct_Hero_Creation_NE) )
endfunction
function InitTrig_Scourge_Redirection takes nothing returns nothing
set gg_trg_Scourge_Redirection = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Scourge_Redirection, gg_rct_Attack_Point_N )
call TriggerRegisterEnterRectSimple( gg_trg_Scourge_Redirection, gg_rct_Attack_Point_E )
call TriggerAddCondition( gg_trg_Scourge_Redirection, Condition( function Trig_Scourge_Redirection_Conditions ) )
call TriggerAddAction( gg_trg_Scourge_Redirection, function Trig_Scourge_Redirection_Actions )
endfunction
function Trig_GameStart_Actions takes nothing returns nothing
set udg_GameStart = 1.00
endfunction
function InitTrig_GameStart takes nothing returns nothing
set gg_trg_GameStart = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_GameStart, 15.00 )
call TriggerAddAction( gg_trg_GameStart, function Trig_GameStart_Actions )
endfunction
function Trig_Huntress_N_Func001002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "attack", GetRectCenter(gg_rct_Attack_Point_N) )
endfunction
function Trig_Huntress_N_Actions takes nothing returns nothing
call ForGroup( GetUnitsInRectAll(gg_rct_War_N), function Trig_Huntress_N_Func001002 )
endfunction
function InitTrig_Huntress_N takes nothing returns nothing
set gg_trg_Huntress_N = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Huntress_N, 30.00 )
call TriggerAddAction( gg_trg_Huntress_N, function Trig_Huntress_N_Actions )
endfunction
function Trig_Huntress_NE_Func001002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "attack", GetRectCenter(gg_rct_Hero_Creation_Evil) )
endfunction
function Trig_Huntress_NE_Actions takes nothing returns nothing
call ForGroup( GetUnitsInRectAll(gg_rct_War_NE), function Trig_Huntress_NE_Func001002 )
endfunction
function InitTrig_Huntress_NE takes nothing returns nothing
set gg_trg_Huntress_NE = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Huntress_NE, 30.00 )
call TriggerAddAction( gg_trg_Huntress_NE, function Trig_Huntress_NE_Actions )
endfunction
function Trig_Huntress_E_Func001002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "attack", GetRectCenter(gg_rct_Attack_Point_E) )
endfunction
function Trig_Huntress_E_Actions takes nothing returns nothing
call ForGroup( GetUnitsInRectAll(gg_rct_War_E), function Trig_Huntress_E_Func001002 )
endfunction
function InitTrig_Huntress_E takes nothing returns nothing
set gg_trg_Huntress_E = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Huntress_E, 30.00 )
call TriggerAddAction( gg_trg_Huntress_E, function Trig_Huntress_E_Actions )
endfunction
function Trig_Sentinel_Wins_Actions takes nothing returns nothing
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_613" )
call PauseAllUnitsBJ( true )
call DisableTrigger( gg_trg_Conditional_Spawning )
call TriggerSleepAction( 300.00 )
call CustomVictoryBJ( Player(1), true, true )
call CustomVictoryBJ( Player(2), true, true )
call CustomVictoryBJ( Player(3), true, true )
call CustomVictoryBJ( Player(4), true, true )
call CustomVictoryBJ( Player(5), true, true )
call CustomDefeatBJ( Player(7), "TRIGSTR_616" )
call CustomDefeatBJ( Player(8), "TRIGSTR_617" )
call CustomDefeatBJ( Player(9), "TRIGSTR_618" )
call CustomDefeatBJ( Player(10), "TRIGSTR_619" )
call CustomDefeatBJ( Player(11), "TRIGSTR_620" )
endfunction
function InitTrig_Sentinel_Wins takes nothing returns nothing
set gg_trg_Sentinel_Wins = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Sentinel_Wins, gg_unit_unpl_0113, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Sentinel_Wins, function Trig_Sentinel_Wins_Actions )
endfunction
function Trig_Scourge_Wins_Actions takes nothing returns nothing
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_614" )
call DisableTrigger( gg_trg_Conditional_Spawning )
call PauseAllUnitsBJ( true )
call TriggerSleepAction( 300.00 )
call CustomVictoryBJ( Player(7), true, true )
call CustomVictoryBJ( Player(8), true, true )
call CustomVictoryBJ( Player(9), true, true )
call CustomVictoryBJ( Player(10), true, true )
call CustomVictoryBJ( Player(11), true, true )
call CustomDefeatBJ( Player(1), "TRIGSTR_621" )
call CustomDefeatBJ( Player(2), "TRIGSTR_622" )
call CustomDefeatBJ( Player(3), "TRIGSTR_623" )
call CustomDefeatBJ( Player(4), "TRIGSTR_624" )
call CustomDefeatBJ( Player(5), "TRIGSTR_625" )
endfunction
function InitTrig_Scourge_Wins takes nothing returns nothing
set gg_trg_Scourge_Wins = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Scourge_Wins, gg_unit_etol_0077, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Scourge_Wins, function Trig_Scourge_Wins_Actions )
endfunction
function Trig_astral_Func001002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetUnitLoc(udg_engine) )
endfunction
function Trig_astral_Func002002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetUnitLoc(udg_engine) )
endfunction
function Trig_astral_Func003002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetUnitLoc(udg_engine) )
endfunction
function Trig_astral_Actions takes nothing returns nothing
call ForGroup( GetUnitsOfPlayerAndTypeId(udg_playerisengine, 'hrif'), function Trig_astral_Func001002 )
call ForGroup( GetUnitsOfPlayerAndTypeId(udg_playerisengine, 'hkni'), function Trig_astral_Func002002 )
call ForGroup( GetUnitsOfPlayerAndTypeId(udg_playerisengine, 'hmtm'), function Trig_astral_Func003002 )
endfunction
function InitTrig_astral takes nothing returns nothing
set gg_trg_astral = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_astral, 6.00 )
call TriggerAddAction( gg_trg_astral, function Trig_astral_Actions )
endfunction
function Trig_rift_Conditions takes nothing returns boolean
if ( not ( IsUnitAlly(GetSummonedUnit(), Player(6)) == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSummonedUnit()) == 'oeye' ) ) then
return false
endif
return true
endfunction
function Trig_rift_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ( "overhead", GetSummoningUnit(), "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl" )
call SetUnitPositionLoc( GetSummoningUnit(), GetUnitLoc(GetSummonedUnit()) )
call RemoveUnit( GetSummonedUnit() )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endfunction
function InitTrig_rift takes nothing returns nothing
set gg_trg_rift = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_rift, Player(7), EVENT_PLAYER_UNIT_SUMMON )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_rift, Player(8), EVENT_PLAYER_UNIT_SUMMON )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_rift, Player(9), EVENT_PLAYER_UNIT_SUMMON )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_rift, Player(10), EVENT_PLAYER_UNIT_SUMMON )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_rift, Player(11), EVENT_PLAYER_UNIT_SUMMON )
call TriggerAddCondition( gg_trg_rift, Condition( function Trig_rift_Conditions ) )
call TriggerAddAction( gg_trg_rift, function Trig_rift_Actions )
endfunction
function Trig_brood_removal_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'nsbm' ) ) then
return false
endif
return true
endfunction
function Trig_brood_removal_Actions takes nothing returns nothing
call RemoveUnit( GetDyingUnit() )
endfunction
function InitTrig_brood_removal takes nothing returns nothing
set gg_trg_brood_removal = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_brood_removal, Player(1), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_brood_removal, Player(2), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_brood_removal, Player(3), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_brood_removal, Player(4), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_brood_removal, Player(5), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_brood_removal, Condition( function Trig_brood_removal_Conditions ) )
call TriggerAddAction( gg_trg_brood_removal, function Trig_brood_removal_Actions )
endfunction
function Trig_lvl_3_moon_removal_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'edot' ) ) then
return false
endif
return true
endfunction
function Trig_lvl_3_moon_removal_Actions takes nothing returns nothing
call RemoveUnit( GetDyingUnit() )
endfunction
function InitTrig_lvl_3_moon_removal takes nothing returns nothing
set gg_trg_lvl_3_moon_removal = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_lvl_3_moon_removal, Player(1), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_lvl_3_moon_removal, Player(2), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_lvl_3_moon_removal, Player(3), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_lvl_3_moon_removal, Player(4), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_lvl_3_moon_removal, Player(5), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_lvl_3_moon_removal, Condition( function Trig_lvl_3_moon_removal_Conditions ) )
call TriggerAddAction( gg_trg_lvl_3_moon_removal, function Trig_lvl_3_moon_removal_Actions )
endfunction
function Trig_give_vampirlings_Func001002 takes nothing returns nothing
call SetUnitOwner( GetEnumUnit(), udg_playerisvamp, true )
endfunction
function Trig_give_vampirlings_Func002002 takes nothing returns nothing
call SetUnitOwner( GetEnumUnit(), udg_playerisvamp, true )
endfunction
function Trig_give_vampirlings_Func004002 takes nothing returns nothing
call UnitApplyTimedLife( GetEnumUnit(), 1, 180 )
endfunction
function Trig_give_vampirlings_Func005002 takes nothing returns nothing
call UnitApplyTimedLife( GetEnumUnit(), 1, 180 )
endfunction
function Trig_give_vampirlings_Func006002 takes nothing returns nothing
call SetUnitOwner( GetEnumUnit(), udg_playeriscota, true )
endfunction
function Trig_give_vampirlings_Actions takes nothing returns nothing
call ForGroup( GetUnitsOfPlayerAndTypeId(Player(0), 'osw1'), function Trig_give_vampirlings_Func001002 )
call ForGroup( GetUnitsOfPlayerAndTypeId(Player(0), 'osw2'), function Trig_give_vampirlings_Func002002 )
call TriggerSleepAction( 2 )
call ForGroup( GetUnitsOfPlayerAndTypeId(udg_playerisvamp, 'osw1'), function Trig_give_vampirlings_Func004002 )
call ForGroup( GetUnitsOfPlayerAndTypeId(udg_playerisvamp, 'osw2'), function Trig_give_vampirlings_Func005002 )
call ForGroup( GetUnitsOfPlayerAndTypeId(Player(6), 'nmfs'), function Trig_give_vampirlings_Func006002 )
endfunction
function InitTrig_give_vampirlings takes nothing returns nothing
set gg_trg_give_vampirlings = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_give_vampirlings, 1.00 )
call TriggerAddAction( gg_trg_give_vampirlings, function Trig_give_vampirlings_Actions )
endfunction
function Trig_Height_Set_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetEnteringUnit()) == 'Ulic' ) ) then
return false
endif
return true
endfunction
function Trig_Height_Set_Actions takes nothing returns nothing
call SetUnitFlyHeightBJ( GetEnteringUnit(), ( 300.00 + 1 ), 1.00 )
endfunction
function InitTrig_Height_Set takes nothing returns nothing
set gg_trg_Height_Set = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Height_Set, GetEntireMapRect() )
call TriggerAddCondition( gg_trg_Height_Set, Condition( function Trig_Height_Set_Conditions ) )
call TriggerAddAction( gg_trg_Height_Set, function Trig_Height_Set_Actions )
endfunction
function Trig_hero_leaves_Actions takes nothing returns nothing
call SetUnitFacingTimed( gg_unit_HC36_0080, 135.00, 1.00 )
endfunction
function InitTrig_hero_leaves takes nothing returns nothing
set gg_trg_hero_leaves = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_hero_leaves, gg_rct_Morbazan )
call TriggerAddAction( gg_trg_hero_leaves, function Trig_hero_leaves_Actions )
endfunction
function Trig_twos_first_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetEnteringUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(1) ) ) then
return false
endif
if ( not ( udg_morbfirst[2] == false ) ) then
return false
endif
return true
endfunction
function Trig_twos_first_Actions takes nothing returns nothing
set udg_morbfirst[2] = true
call SetUnitFacingTimed( gg_unit_HC36_0080, 315.00, 1.00 )
call QuestMessageBJ( bj_FORCE_PLAYER[1], bj_QUESTMESSAGE_UPDATED, "TRIGSTR_740" )
endfunction
function InitTrig_twos_first takes nothing returns nothing
set gg_trg_twos_first = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_twos_first, gg_rct_Morbazan )
call TriggerAddCondition( gg_trg_twos_first, Condition( function Trig_twos_first_Conditions ) )
call TriggerAddAction( gg_trg_twos_first, function Trig_twos_first_Actions )
endfunction
function Trig_three_first_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetEnteringUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(2) ) ) then
return false
endif
if ( not ( udg_morbfirst[3] == false ) ) then
return false
endif
return true
endfunction
function Trig_three_first_Actions takes nothing returns nothing
set udg_morbfirst[3] = true
call SetUnitFacingTimed( gg_unit_HC36_0080, 315.00, 1.00 )
call QuestMessageBJ( bj_FORCE_PLAYER[2], bj_QUESTMESSAGE_UPDATED, "TRIGSTR_741" )
endfunction
function InitTrig_three_first takes nothing returns nothing
set gg_trg_three_first = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_three_first, gg_rct_Morbazan )
call TriggerAddCondition( gg_trg_three_first, Condition( function Trig_three_first_Conditions ) )
call TriggerAddAction( gg_trg_three_first, function Trig_three_first_Actions )
endfunction
function Trig_four_first_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetEnteringUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(3) ) ) then
return false
endif
if ( not ( udg_morbfirst[4] == false ) ) then
return false
endif
return true
endfunction
function Trig_four_first_Actions takes nothing returns nothing
set udg_morbfirst[4] = true
call SetUnitFacingTimed( gg_unit_HC36_0080, 315.00, 1.00 )
call QuestMessageBJ( bj_FORCE_PLAYER[3], bj_QUESTMESSAGE_UPDATED, "TRIGSTR_742" )
endfunction
function InitTrig_four_first takes nothing returns nothing
set gg_trg_four_first = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_four_first, gg_rct_Morbazan )
call TriggerAddCondition( gg_trg_four_first, Condition( function Trig_four_first_Conditions ) )
call TriggerAddAction( gg_trg_four_first, function Trig_four_first_Actions )
endfunction
function Trig_five_first_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetEnteringUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(4) ) ) then
return false
endif
if ( not ( udg_morbfirst[5] == false ) ) then
return false
endif
return true
endfunction
function Trig_five_first_Actions takes nothing returns nothing
set udg_morbfirst[5] = true
call SetUnitFacingTimed( gg_unit_HC36_0080, 315.00, 1.00 )
call QuestMessageBJ( bj_FORCE_PLAYER[4], bj_QUESTMESSAGE_UPDATED, "TRIGSTR_743" )
endfunction
function InitTrig_five_first takes nothing returns nothing
set gg_trg_five_first = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_five_first, gg_rct_Morbazan )
call TriggerAddCondition( gg_trg_five_first, Condition( function Trig_five_first_Conditions ) )
call TriggerAddAction( gg_trg_five_first, function Trig_five_first_Actions )
endfunction
function Trig_six_first_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetEnteringUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(5) ) ) then
return false
endif
if ( not ( udg_morbfirst[6] == false ) ) then
return false
endif
return true
endfunction
function Trig_six_first_Actions takes nothing returns nothing
set udg_morbfirst[6] = true
call SetUnitFacingTimed( gg_unit_HC36_0080, 315.00, 1.00 )
call QuestMessageBJ( bj_FORCE_PLAYER[5], bj_QUESTMESSAGE_UPDATED, "TRIGSTR_744" )
endfunction
function InitTrig_six_first takes nothing returns nothing
set gg_trg_six_first = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_six_first, gg_rct_Morbazan )
call TriggerAddCondition( gg_trg_six_first, Condition( function Trig_six_first_Conditions ) )
call TriggerAddAction( gg_trg_six_first, function Trig_six_first_Actions )
endfunction
function Trig_eight_first_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetEnteringUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(7) ) ) then
return false
endif
if ( not ( udg_morbfirst[8] == false ) ) then
return false
endif
return true
endfunction
function Trig_eight_first_Actions takes nothing returns nothing
set udg_morbfirst[8] = true
call SetUnitFacingTimed( gg_unit_HC36_0080, 315.00, 1.00 )
call QuestMessageBJ( bj_FORCE_PLAYER[7], bj_QUESTMESSAGE_UPDATED, "TRIGSTR_745" )
endfunction
function InitTrig_eight_first takes nothing returns nothing
set gg_trg_eight_first = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_eight_first, gg_rct_Morbazan )
call TriggerAddCondition( gg_trg_eight_first, Condition( function Trig_eight_first_Conditions ) )
call TriggerAddAction( gg_trg_eight_first, function Trig_eight_first_Actions )
endfunction
function Trig_nine_first_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetEnteringUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(8) ) ) then
return false
endif
if ( not ( udg_morbfirst[9] == false ) ) then
return false
endif
return true
endfunction
function Trig_nine_first_Actions takes nothing returns nothing
set udg_morbfirst[9] = true
call SetUnitFacingTimed( gg_unit_HC36_0080, 315.00, 1.00 )
call QuestMessageBJ( bj_FORCE_PLAYER[8], bj_QUESTMESSAGE_UPDATED, "TRIGSTR_746" )
endfunction
function InitTrig_nine_first takes nothing returns nothing
set gg_trg_nine_first = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_nine_first, gg_rct_Morbazan )
call TriggerAddCondition( gg_trg_nine_first, Condition( function Trig_nine_first_Conditions ) )
call TriggerAddAction( gg_trg_nine_first, function Trig_nine_first_Actions )
endfunction
function Trig_ten_first_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetEnteringUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(9) ) ) then
return false
endif
if ( not ( udg_morbfirst[10] == false ) ) then
return false
endif
return true
endfunction
function Trig_ten_first_Actions takes nothing returns nothing
set udg_morbfirst[10] = true
call SetUnitFacingTimed( gg_unit_HC36_0080, 315.00, 1.00 )
call QuestMessageBJ( bj_FORCE_PLAYER[9], bj_QUESTMESSAGE_UPDATED, "TRIGSTR_747" )
endfunction
function InitTrig_ten_first takes nothing returns nothing
set gg_trg_ten_first = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_ten_first, gg_rct_Morbazan )
call TriggerAddCondition( gg_trg_ten_first, Condition( function Trig_ten_first_Conditions ) )
call TriggerAddAction( gg_trg_ten_first, function Trig_ten_first_Actions )
endfunction
function Trig_eleven_first_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetEnteringUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(10) ) ) then
return false
endif
if ( not ( udg_morbfirst[11] == false ) ) then
return false
endif
return true
endfunction
function Trig_eleven_first_Actions takes nothing returns nothing
set udg_morbfirst[11] = true
call SetUnitFacingTimed( gg_unit_HC36_0080, 315.00, 1.00 )
call QuestMessageBJ( bj_FORCE_PLAYER[10], bj_QUESTMESSAGE_UPDATED, "TRIGSTR_748" )
endfunction
function InitTrig_eleven_first takes nothing returns nothing
set gg_trg_eleven_first = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_eleven_first, gg_rct_Morbazan )
call TriggerAddCondition( gg_trg_eleven_first, Condition( function Trig_eleven_first_Conditions ) )
call TriggerAddAction( gg_trg_eleven_first, function Trig_eleven_first_Actions )
endfunction
function Trig_twelve_first_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetEnteringUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(11) ) ) then
return false
endif
if ( not ( udg_morbfirst[12] == false ) ) then
return false
endif
return true
endfunction
function Trig_twelve_first_Actions takes nothing returns nothing
set udg_morbfirst[12] = true
call SetUnitFacingTimed( gg_unit_HC36_0080, 315.00, 1.00 )
call QuestMessageBJ( bj_FORCE_PLAYER[11], bj_QUESTMESSAGE_UPDATED, "TRIGSTR_749" )
endfunction
function InitTrig_twelve_first takes nothing returns nothing
set gg_trg_twelve_first = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_twelve_first, gg_rct_Morbazan )
call TriggerAddCondition( gg_trg_twelve_first, Condition( function Trig_twelve_first_Conditions ) )
call TriggerAddAction( gg_trg_twelve_first, function Trig_twelve_first_Actions )
endfunction
function Trig_two_brings_arty_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetEnteringUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(1) ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC15') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC13') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC14') == true ) ) then
return false
endif
if ( not ( udg_morbfirst[2] == true ) ) then
return false
endif
return true
endfunction
function Trig_two_brings_arty_Actions takes nothing returns nothing
set udg_morbsec[2] = true
call SetUnitFacingTimed( gg_unit_HC36_0080, 315.00, 1.00 )
call QuestMessageBJ( bj_FORCE_PLAYER[1], bj_QUESTMESSAGE_UPDATED, "TRIGSTR_750" )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
function InitTrig_two_brings_arty takes nothing returns nothing
set gg_trg_two_brings_arty = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_two_brings_arty, gg_rct_Morbazan )
call TriggerAddCondition( gg_trg_two_brings_arty, Condition( function Trig_two_brings_arty_Conditions ) )
call TriggerAddAction( gg_trg_two_brings_arty, function Trig_two_brings_arty_Actions )
endfunction
function Trig_three_brings_arty_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetEnteringUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(2) ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC15') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC13') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC14') == true ) ) then
return false
endif
if ( not ( udg_morbfirst[3] == true ) ) then
return false
endif
return true
endfunction
function Trig_three_brings_arty_Actions takes nothing returns nothing
set udg_morbsec[3] = true
call SetUnitFacingTimed( gg_unit_HC36_0080, 315.00, 1.00 )
call QuestMessageBJ( bj_FORCE_PLAYER[2], bj_QUESTMESSAGE_UPDATED, "TRIGSTR_751" )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
function InitTrig_three_brings_arty takes nothing returns nothing
set gg_trg_three_brings_arty = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_three_brings_arty, gg_rct_Morbazan )
call TriggerAddCondition( gg_trg_three_brings_arty, Condition( function Trig_three_brings_arty_Conditions ) )
call TriggerAddAction( gg_trg_three_brings_arty, function Trig_three_brings_arty_Actions )
endfunction
function Trig_four_brings_arty_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetEnteringUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(3) ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC15') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC13') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC14') == true ) ) then
return false
endif
if ( not ( udg_morbfirst[4] == true ) ) then
return false
endif
return true
endfunction
function Trig_four_brings_arty_Actions takes nothing returns nothing
set udg_morbsec[4] = true
call SetUnitFacingTimed( gg_unit_HC36_0080, 315.00, 1.00 )
call QuestMessageBJ( bj_FORCE_PLAYER[3], bj_QUESTMESSAGE_UPDATED, "TRIGSTR_752" )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
function InitTrig_four_brings_arty takes nothing returns nothing
set gg_trg_four_brings_arty = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_four_brings_arty, gg_rct_Morbazan )
call TriggerAddCondition( gg_trg_four_brings_arty, Condition( function Trig_four_brings_arty_Conditions ) )
call TriggerAddAction( gg_trg_four_brings_arty, function Trig_four_brings_arty_Actions )
endfunction
function Trig_five_brings_arty_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetEnteringUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(4) ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC15') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC13') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC14') == true ) ) then
return false
endif
if ( not ( udg_morbfirst[5] == true ) ) then
return false
endif
return true
endfunction
function Trig_five_brings_arty_Actions takes nothing returns nothing
set udg_morbsec[5] = true
call SetUnitFacingTimed( gg_unit_HC36_0080, 315.00, 1.00 )
call QuestMessageBJ( bj_FORCE_PLAYER[4], bj_QUESTMESSAGE_UPDATED, "TRIGSTR_753" )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
function InitTrig_five_brings_arty takes nothing returns nothing
set gg_trg_five_brings_arty = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_five_brings_arty, gg_rct_Morbazan )
call TriggerAddCondition( gg_trg_five_brings_arty, Condition( function Trig_five_brings_arty_Conditions ) )
call TriggerAddAction( gg_trg_five_brings_arty, function Trig_five_brings_arty_Actions )
endfunction
function Trig_six_brings_arty_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetEnteringUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(5) ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC15') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC13') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC14') == true ) ) then
return false
endif
if ( not ( udg_morbfirst[6] == true ) ) then
return false
endif
return true
endfunction
function Trig_six_brings_arty_Actions takes nothing returns nothing
set udg_morbsec[6] = true
call SetUnitFacingTimed( gg_unit_HC36_0080, 315.00, 1.00 )
call QuestMessageBJ( bj_FORCE_PLAYER[5], bj_QUESTMESSAGE_UPDATED, "TRIGSTR_754" )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
function InitTrig_six_brings_arty takes nothing returns nothing
set gg_trg_six_brings_arty = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_six_brings_arty, gg_rct_Morbazan )
call TriggerAddCondition( gg_trg_six_brings_arty, Condition( function Trig_six_brings_arty_Conditions ) )
call TriggerAddAction( gg_trg_six_brings_arty, function Trig_six_brings_arty_Actions )
endfunction
function Trig_five_morb_control_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetEnteringUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(4) ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC15') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC13') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC14') == true ) ) then
return false
endif
if ( not ( udg_morbsec[5] == true ) ) then
return false
endif
return true
endfunction
function Trig_five_morb_control_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_two_morb_control )
call DisableTrigger( gg_trg_three_morb_control )
call DisableTrigger( gg_trg_four_morb_control )
call DisableTrigger( gg_trg_five_morb_control )
call DisableTrigger( gg_trg_six_morb_control )
call DisableTrigger( gg_trg_eight_morb_control )
call DisableTrigger( gg_trg_nine_morb_control )
call DisableTrigger( gg_trg_ten_morb_control )
call DisableTrigger( gg_trg_eleven_morb_control )
call DisableTrigger( gg_trg_twelve_morb_control )
call QuestMessageBJ( GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit())), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_785" )
call TriggerSleepAction( 2.00 )
call AddSpecialEffectTargetUnitBJ( "overhead", GetTriggerUnit(), "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdx" )
call AddSpecialEffectTargetUnitBJ( "overhead", gg_unit_HC36_0080, "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdx" )
call TriggerSleepAction( 5.00 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call RemoveUnit( GetTriggerUnit() )
call RemoveUnit( gg_unit_HC36_0080 )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_morb_control_pt), 2.00 )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_morb_control_pt), "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdx" )
call TriggerSleepAction( 2.00 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call CreateNUnitsAtLoc( 1, 'HC36', Player(4), GetRectCenter(gg_rct_morb_control_pt), 135.00 )
call UnitAddItemByIdSwapped( 'IC21', GetLastCreatedUnit() )
call AddSpecialEffectTargetUnitBJ( "hand,right", GetLastCreatedUnit(), "quarterstaff.mdx" )
call DisableTrigger( gg_trg_two_morb_control )
call DisableTrigger( gg_trg_three_morb_control )
call DisableTrigger( gg_trg_four_morb_control )
call DisableTrigger( gg_trg_five_morb_control )
call DisableTrigger( gg_trg_six_morb_control )
call DisableTrigger( gg_trg_eight_morb_control )
call DisableTrigger( gg_trg_nine_morb_control )
call DisableTrigger( gg_trg_ten_morb_control )
call DisableTrigger( gg_trg_eleven_morb_control )
call DisableTrigger( gg_trg_twelve_morb_control )
endfunction
function InitTrig_five_morb_control takes nothing returns nothing
set gg_trg_five_morb_control = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_five_morb_control, gg_rct_Morbazan )
call TriggerAddCondition( gg_trg_five_morb_control, Condition( function Trig_five_morb_control_Conditions ) )
call TriggerAddAction( gg_trg_five_morb_control, function Trig_five_morb_control_Actions )
endfunction
function Trig_eight_brings_arty_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetEnteringUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(7) ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC15') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC13') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC14') == true ) ) then
return false
endif
if ( not ( udg_morbfirst[8] == true ) ) then
return false
endif
return true
endfunction
function Trig_eight_brings_arty_Actions takes nothing returns nothing
set udg_morbsec[8] = true
call SetUnitFacingTimed( gg_unit_HC36_0080, 315.00, 1.00 )
call QuestMessageBJ( bj_FORCE_PLAYER[7], bj_QUESTMESSAGE_UPDATED, "TRIGSTR_755" )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
function InitTrig_eight_brings_arty takes nothing returns nothing
set gg_trg_eight_brings_arty = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_eight_brings_arty, gg_rct_Morbazan )
call TriggerAddCondition( gg_trg_eight_brings_arty, Condition( function Trig_eight_brings_arty_Conditions ) )
call TriggerAddAction( gg_trg_eight_brings_arty, function Trig_eight_brings_arty_Actions )
endfunction
function Trig_nine_brings_arty_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetEnteringUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(8) ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC15') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC13') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC14') == true ) ) then
return false
endif
if ( not ( udg_morbfirst[9] == true ) ) then
return false
endif
return true
endfunction
function Trig_nine_brings_arty_Actions takes nothing returns nothing
set udg_morbsec[9] = true
call SetUnitFacingTimed( gg_unit_HC36_0080, 315.00, 1.00 )
call QuestMessageBJ( bj_FORCE_PLAYER[8], bj_QUESTMESSAGE_UPDATED, "TRIGSTR_756" )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
function InitTrig_nine_brings_arty takes nothing returns nothing
set gg_trg_nine_brings_arty = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_nine_brings_arty, gg_rct_Morbazan )
call TriggerAddCondition( gg_trg_nine_brings_arty, Condition( function Trig_nine_brings_arty_Conditions ) )
call TriggerAddAction( gg_trg_nine_brings_arty, function Trig_nine_brings_arty_Actions )
endfunction
function Trig_ten_brings_arty_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetEnteringUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(9) ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC15') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC13') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC14') == true ) ) then
return false
endif
if ( not ( udg_morbfirst[10] == true ) ) then
return false
endif
return true
endfunction
function Trig_ten_brings_arty_Actions takes nothing returns nothing
set udg_morbsec[10] = true
call SetUnitFacingTimed( gg_unit_HC36_0080, 315.00, 1.00 )
call QuestMessageBJ( bj_FORCE_PLAYER[9], bj_QUESTMESSAGE_UPDATED, "TRIGSTR_757" )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
function InitTrig_ten_brings_arty takes nothing returns nothing
set gg_trg_ten_brings_arty = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_ten_brings_arty, gg_rct_Morbazan )
call TriggerAddCondition( gg_trg_ten_brings_arty, Condition( function Trig_ten_brings_arty_Conditions ) )
call TriggerAddAction( gg_trg_ten_brings_arty, function Trig_ten_brings_arty_Actions )
endfunction
function Trig_eleven_brings_arty_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetEnteringUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(10) ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC15') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC13') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC14') == true ) ) then
return false
endif
if ( not ( udg_morbfirst[11] == true ) ) then
return false
endif
return true
endfunction
function Trig_eleven_brings_arty_Actions takes nothing returns nothing
set udg_morbsec[11] = true
call SetUnitFacingTimed( gg_unit_HC36_0080, 315.00, 1.00 )
call QuestMessageBJ( bj_FORCE_PLAYER[10], bj_QUESTMESSAGE_UPDATED, "TRIGSTR_758" )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
function InitTrig_eleven_brings_arty takes nothing returns nothing
set gg_trg_eleven_brings_arty = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_eleven_brings_arty, gg_rct_Morbazan )
call TriggerAddCondition( gg_trg_eleven_brings_arty, Condition( function Trig_eleven_brings_arty_Conditions ) )
call TriggerAddAction( gg_trg_eleven_brings_arty, function Trig_eleven_brings_arty_Actions )
endfunction
function Trig_twelve_brings_arty_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetEnteringUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(11) ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC15') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC13') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC14') == true ) ) then
return false
endif
if ( not ( udg_morbfirst[12] == true ) ) then
return false
endif
return true
endfunction
function Trig_twelve_brings_arty_Actions takes nothing returns nothing
set udg_morbsec[12] = true
call SetUnitFacingTimed( gg_unit_HC36_0080, 315.00, 1.00 )
call QuestMessageBJ( bj_FORCE_PLAYER[11], bj_QUESTMESSAGE_UPDATED, "TRIGSTR_759" )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
function InitTrig_twelve_brings_arty takes nothing returns nothing
set gg_trg_twelve_brings_arty = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_twelve_brings_arty, gg_rct_Morbazan )
call TriggerAddCondition( gg_trg_twelve_brings_arty, Condition( function Trig_twelve_brings_arty_Conditions ) )
call TriggerAddAction( gg_trg_twelve_brings_arty, function Trig_twelve_brings_arty_Actions )
endfunction
function Trig_two_morb_control_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetEnteringUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(1) ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC15') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC13') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC14') == true ) ) then
return false
endif
if ( not ( udg_morbsec[2] == true ) ) then
return false
endif
return true
endfunction
function Trig_two_morb_control_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_two_morb_control )
call DisableTrigger( gg_trg_three_morb_control )
call DisableTrigger( gg_trg_four_morb_control )
call DisableTrigger( gg_trg_five_morb_control )
call DisableTrigger( gg_trg_six_morb_control )
call DisableTrigger( gg_trg_eight_morb_control )
call DisableTrigger( gg_trg_nine_morb_control )
call DisableTrigger( gg_trg_ten_morb_control )
call DisableTrigger( gg_trg_eleven_morb_control )
call DisableTrigger( gg_trg_twelve_morb_control )
call QuestMessageBJ( GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit())), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_760" )
call TriggerSleepAction( 2.00 )
call AddSpecialEffectTargetUnitBJ( "overhead", GetTriggerUnit(), "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdx" )
call AddSpecialEffectTargetUnitBJ( "overhead", gg_unit_HC36_0080, "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdx" )
call TriggerSleepAction( 5.00 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call RemoveUnit( GetTriggerUnit() )
call RemoveUnit( gg_unit_HC36_0080 )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_morb_control_pt), 2.00 )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_morb_control_pt), "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdx" )
call TriggerSleepAction( 2.00 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call CreateNUnitsAtLoc( 1, 'HC36', Player(1), GetRectCenter(gg_rct_morb_control_pt), 135.00 )
call UnitAddItemByIdSwapped( 'IC21', GetLastCreatedUnit() )
call AddSpecialEffectTargetUnitBJ( "hand,right", GetLastCreatedUnit(), "quarterstaff.mdx" )
call DisableTrigger( gg_trg_two_morb_control )
call DisableTrigger( gg_trg_three_morb_control )
call DisableTrigger( gg_trg_four_morb_control )
call DisableTrigger( gg_trg_five_morb_control )
call DisableTrigger( gg_trg_six_morb_control )
call DisableTrigger( gg_trg_eight_morb_control )
call DisableTrigger( gg_trg_nine_morb_control )
call DisableTrigger( gg_trg_ten_morb_control )
call DisableTrigger( gg_trg_eleven_morb_control )
call DisableTrigger( gg_trg_twelve_morb_control )
endfunction
function InitTrig_two_morb_control takes nothing returns nothing
set gg_trg_two_morb_control = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_two_morb_control, gg_rct_Morbazan )
call TriggerAddCondition( gg_trg_two_morb_control, Condition( function Trig_two_morb_control_Conditions ) )
call TriggerAddAction( gg_trg_two_morb_control, function Trig_two_morb_control_Actions )
endfunction
function Trig_three_morb_control_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetEnteringUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(2) ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC15') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC13') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC14') == true ) ) then
return false
endif
if ( not ( udg_morbsec[3] == true ) ) then
return false
endif
return true
endfunction
function Trig_three_morb_control_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_two_morb_control )
call DisableTrigger( gg_trg_three_morb_control )
call DisableTrigger( gg_trg_four_morb_control )
call DisableTrigger( gg_trg_five_morb_control )
call DisableTrigger( gg_trg_six_morb_control )
call DisableTrigger( gg_trg_eight_morb_control )
call DisableTrigger( gg_trg_nine_morb_control )
call DisableTrigger( gg_trg_ten_morb_control )
call DisableTrigger( gg_trg_eleven_morb_control )
call DisableTrigger( gg_trg_twelve_morb_control )
call QuestMessageBJ( GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit())), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_783" )
call TriggerSleepAction( 2.00 )
call AddSpecialEffectTargetUnitBJ( "overhead", GetTriggerUnit(), "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdx" )
call AddSpecialEffectTargetUnitBJ( "overhead", gg_unit_HC36_0080, "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdx" )
call TriggerSleepAction( 5.00 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call RemoveUnit( GetTriggerUnit() )
call RemoveUnit( gg_unit_HC36_0080 )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_morb_control_pt), 2.00 )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_morb_control_pt), "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdx" )
call TriggerSleepAction( 2.00 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call CreateNUnitsAtLoc( 1, 'HC36', Player(2), GetRectCenter(gg_rct_morb_control_pt), 135.00 )
call UnitAddItemByIdSwapped( 'IC21', GetLastCreatedUnit() )
call AddSpecialEffectTargetUnitBJ( "hand,right", GetLastCreatedUnit(), "quarterstaff.mdx" )
call DisableTrigger( gg_trg_two_morb_control )
call DisableTrigger( gg_trg_three_morb_control )
call DisableTrigger( gg_trg_four_morb_control )
call DisableTrigger( gg_trg_five_morb_control )
call DisableTrigger( gg_trg_six_morb_control )
call DisableTrigger( gg_trg_eight_morb_control )
call DisableTrigger( gg_trg_nine_morb_control )
call DisableTrigger( gg_trg_ten_morb_control )
call DisableTrigger( gg_trg_eleven_morb_control )
call DisableTrigger( gg_trg_twelve_morb_control )
endfunction
function InitTrig_three_morb_control takes nothing returns nothing
set gg_trg_three_morb_control = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_three_morb_control, gg_rct_Morbazan )
call TriggerAddCondition( gg_trg_three_morb_control, Condition( function Trig_three_morb_control_Conditions ) )
call TriggerAddAction( gg_trg_three_morb_control, function Trig_three_morb_control_Actions )
endfunction
function Trig_four_morb_control_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetEnteringUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(3) ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC15') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC13') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC14') == true ) ) then
return false
endif
if ( not ( udg_morbsec[4] == true ) ) then
return false
endif
return true
endfunction
function Trig_four_morb_control_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_two_morb_control )
call DisableTrigger( gg_trg_three_morb_control )
call DisableTrigger( gg_trg_four_morb_control )
call DisableTrigger( gg_trg_five_morb_control )
call DisableTrigger( gg_trg_six_morb_control )
call DisableTrigger( gg_trg_eight_morb_control )
call DisableTrigger( gg_trg_nine_morb_control )
call DisableTrigger( gg_trg_ten_morb_control )
call DisableTrigger( gg_trg_eleven_morb_control )
call DisableTrigger( gg_trg_twelve_morb_control )
call QuestMessageBJ( GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit())), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_784" )
call TriggerSleepAction( 2.00 )
call AddSpecialEffectTargetUnitBJ( "overhead", GetTriggerUnit(), "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdx" )
call AddSpecialEffectTargetUnitBJ( "overhead", gg_unit_HC36_0080, "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdx" )
call TriggerSleepAction( 5.00 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call RemoveUnit( GetTriggerUnit() )
call RemoveUnit( gg_unit_HC36_0080 )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_morb_control_pt), 2.00 )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_morb_control_pt), "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdx" )
call TriggerSleepAction( 2.00 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call CreateNUnitsAtLoc( 1, 'HC36', Player(3), GetRectCenter(gg_rct_morb_control_pt), 135.00 )
call UnitAddItemByIdSwapped( 'IC21', GetLastCreatedUnit() )
call AddSpecialEffectTargetUnitBJ( "hand,right", GetLastCreatedUnit(), "quarterstaff.mdx" )
call DisableTrigger( gg_trg_two_morb_control )
call DisableTrigger( gg_trg_three_morb_control )
call DisableTrigger( gg_trg_four_morb_control )
call DisableTrigger( gg_trg_five_morb_control )
call DisableTrigger( gg_trg_six_morb_control )
call DisableTrigger( gg_trg_eight_morb_control )
call DisableTrigger( gg_trg_nine_morb_control )
call DisableTrigger( gg_trg_ten_morb_control )
call DisableTrigger( gg_trg_eleven_morb_control )
call DisableTrigger( gg_trg_twelve_morb_control )
endfunction
function InitTrig_four_morb_control takes nothing returns nothing
set gg_trg_four_morb_control = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_four_morb_control, gg_rct_Morbazan )
call TriggerAddCondition( gg_trg_four_morb_control, Condition( function Trig_four_morb_control_Conditions ) )
call TriggerAddAction( gg_trg_four_morb_control, function Trig_four_morb_control_Actions )
endfunction
function Trig_six_morb_control_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetEnteringUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(5) ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC15') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC13') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC14') == true ) ) then
return false
endif
if ( not ( udg_morbsec[6] == true ) ) then
return false
endif
return true
endfunction
function Trig_six_morb_control_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_two_morb_control )
call DisableTrigger( gg_trg_three_morb_control )
call DisableTrigger( gg_trg_four_morb_control )
call DisableTrigger( gg_trg_five_morb_control )
call DisableTrigger( gg_trg_six_morb_control )
call DisableTrigger( gg_trg_eight_morb_control )
call DisableTrigger( gg_trg_nine_morb_control )
call DisableTrigger( gg_trg_ten_morb_control )
call DisableTrigger( gg_trg_eleven_morb_control )
call DisableTrigger( gg_trg_twelve_morb_control )
call QuestMessageBJ( GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit())), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_786" )
call TriggerSleepAction( 2.00 )
call AddSpecialEffectTargetUnitBJ( "overhead", GetTriggerUnit(), "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdx" )
call AddSpecialEffectTargetUnitBJ( "overhead", gg_unit_HC36_0080, "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdx" )
call TriggerSleepAction( 5.00 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call RemoveUnit( GetTriggerUnit() )
call RemoveUnit( gg_unit_HC36_0080 )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_morb_control_pt), 2.00 )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_morb_control_pt), "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdx" )
call TriggerSleepAction( 2.00 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call CreateNUnitsAtLoc( 1, 'HC36', Player(5), GetRectCenter(gg_rct_morb_control_pt), 135.00 )
call UnitAddItemByIdSwapped( 'IC21', GetLastCreatedUnit() )
call AddSpecialEffectTargetUnitBJ( "hand,right", GetLastCreatedUnit(), "quarterstaff.mdx" )
call DisableTrigger( gg_trg_two_morb_control )
call DisableTrigger( gg_trg_three_morb_control )
call DisableTrigger( gg_trg_four_morb_control )
call DisableTrigger( gg_trg_five_morb_control )
call DisableTrigger( gg_trg_six_morb_control )
call DisableTrigger( gg_trg_eight_morb_control )
call DisableTrigger( gg_trg_nine_morb_control )
call DisableTrigger( gg_trg_ten_morb_control )
call DisableTrigger( gg_trg_eleven_morb_control )
call DisableTrigger( gg_trg_twelve_morb_control )
endfunction
function InitTrig_six_morb_control takes nothing returns nothing
set gg_trg_six_morb_control = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_six_morb_control, gg_rct_Morbazan )
call TriggerAddCondition( gg_trg_six_morb_control, Condition( function Trig_six_morb_control_Conditions ) )
call TriggerAddAction( gg_trg_six_morb_control, function Trig_six_morb_control_Actions )
endfunction
function Trig_eight_morb_control_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetEnteringUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(7) ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC15') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC13') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC14') == true ) ) then
return false
endif
if ( not ( udg_morbsec[8] == true ) ) then
return false
endif
return true
endfunction
function Trig_eight_morb_control_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_two_morb_control )
call DisableTrigger( gg_trg_three_morb_control )
call DisableTrigger( gg_trg_four_morb_control )
call DisableTrigger( gg_trg_five_morb_control )
call DisableTrigger( gg_trg_six_morb_control )
call DisableTrigger( gg_trg_eight_morb_control )
call DisableTrigger( gg_trg_nine_morb_control )
call DisableTrigger( gg_trg_ten_morb_control )
call DisableTrigger( gg_trg_eleven_morb_control )
call DisableTrigger( gg_trg_twelve_morb_control )
call QuestMessageBJ( GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit())), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_787" )
call TriggerSleepAction( 2.00 )
call AddSpecialEffectTargetUnitBJ( "overhead", GetTriggerUnit(), "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdx" )
call AddSpecialEffectTargetUnitBJ( "overhead", gg_unit_HC36_0080, "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdx" )
call TriggerSleepAction( 5.00 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call RemoveUnit( GetTriggerUnit() )
call RemoveUnit( gg_unit_HC36_0080 )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_morb_control_pt), 2.00 )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_morb_control_pt), "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdx" )
call TriggerSleepAction( 2.00 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call CreateNUnitsAtLoc( 1, 'HC36', Player(7), GetRectCenter(gg_rct_morb_control_pt), 135.00 )
call UnitAddItemByIdSwapped( 'IC21', GetLastCreatedUnit() )
call AddSpecialEffectTargetUnitBJ( "hand,right", GetLastCreatedUnit(), "quarterstaff.mdx" )
call DisableTrigger( gg_trg_two_morb_control )
call DisableTrigger( gg_trg_three_morb_control )
call DisableTrigger( gg_trg_four_morb_control )
call DisableTrigger( gg_trg_five_morb_control )
call DisableTrigger( gg_trg_six_morb_control )
call DisableTrigger( gg_trg_eight_morb_control )
call DisableTrigger( gg_trg_nine_morb_control )
call DisableTrigger( gg_trg_ten_morb_control )
call DisableTrigger( gg_trg_eleven_morb_control )
call DisableTrigger( gg_trg_twelve_morb_control )
endfunction
function InitTrig_eight_morb_control takes nothing returns nothing
set gg_trg_eight_morb_control = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_eight_morb_control, gg_rct_Morbazan )
call TriggerAddCondition( gg_trg_eight_morb_control, Condition( function Trig_eight_morb_control_Conditions ) )
call TriggerAddAction( gg_trg_eight_morb_control, function Trig_eight_morb_control_Actions )
endfunction
function Trig_nine_morb_control_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetEnteringUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(8) ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC15') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC13') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC14') == true ) ) then
return false
endif
if ( not ( udg_morbsec[9] == true ) ) then
return false
endif
return true
endfunction
function Trig_nine_morb_control_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_two_morb_control )
call DisableTrigger( gg_trg_three_morb_control )
call DisableTrigger( gg_trg_four_morb_control )
call DisableTrigger( gg_trg_five_morb_control )
call DisableTrigger( gg_trg_six_morb_control )
call DisableTrigger( gg_trg_eight_morb_control )
call DisableTrigger( gg_trg_nine_morb_control )
call DisableTrigger( gg_trg_ten_morb_control )
call DisableTrigger( gg_trg_eleven_morb_control )
call DisableTrigger( gg_trg_twelve_morb_control )
call QuestMessageBJ( GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit())), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_788" )
call TriggerSleepAction( 2.00 )
call AddSpecialEffectTargetUnitBJ( "overhead", GetTriggerUnit(), "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdx" )
call AddSpecialEffectTargetUnitBJ( "overhead", gg_unit_HC36_0080, "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdx" )
call TriggerSleepAction( 5.00 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call RemoveUnit( GetTriggerUnit() )
call RemoveUnit( gg_unit_HC36_0080 )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_morb_control_pt), 2.00 )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_morb_control_pt), "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdx" )
call TriggerSleepAction( 2.00 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call CreateNUnitsAtLoc( 1, 'HC36', Player(8), GetRectCenter(gg_rct_morb_control_pt), 135.00 )
call UnitAddItemByIdSwapped( 'IC21', GetLastCreatedUnit() )
call AddSpecialEffectTargetUnitBJ( "hand,right", GetLastCreatedUnit(), "quarterstaff.mdx" )
call DisableTrigger( gg_trg_two_morb_control )
call DisableTrigger( gg_trg_three_morb_control )
call DisableTrigger( gg_trg_four_morb_control )
call DisableTrigger( gg_trg_five_morb_control )
call DisableTrigger( gg_trg_six_morb_control )
call DisableTrigger( gg_trg_eight_morb_control )
call DisableTrigger( gg_trg_nine_morb_control )
call DisableTrigger( gg_trg_ten_morb_control )
call DisableTrigger( gg_trg_eleven_morb_control )
call DisableTrigger( gg_trg_twelve_morb_control )
endfunction
function InitTrig_nine_morb_control takes nothing returns nothing
set gg_trg_nine_morb_control = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_nine_morb_control, gg_rct_Morbazan )
call TriggerAddCondition( gg_trg_nine_morb_control, Condition( function Trig_nine_morb_control_Conditions ) )
call TriggerAddAction( gg_trg_nine_morb_control, function Trig_nine_morb_control_Actions )
endfunction
function Trig_ten_morb_control_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetEnteringUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(9) ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC15') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC13') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC14') == true ) ) then
return false
endif
if ( not ( udg_morbsec[10] == true ) ) then
return false
endif
return true
endfunction
function Trig_ten_morb_control_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_two_morb_control )
call DisableTrigger( gg_trg_three_morb_control )
call DisableTrigger( gg_trg_four_morb_control )
call DisableTrigger( gg_trg_five_morb_control )
call DisableTrigger( gg_trg_six_morb_control )
call DisableTrigger( gg_trg_eight_morb_control )
call DisableTrigger( gg_trg_nine_morb_control )
call DisableTrigger( gg_trg_ten_morb_control )
call DisableTrigger( gg_trg_eleven_morb_control )
call DisableTrigger( gg_trg_twelve_morb_control )
call QuestMessageBJ( GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit())), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_789" )
call TriggerSleepAction( 2.00 )
call AddSpecialEffectTargetUnitBJ( "overhead", GetTriggerUnit(), "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdx" )
call AddSpecialEffectTargetUnitBJ( "overhead", gg_unit_HC36_0080, "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdx" )
call TriggerSleepAction( 5.00 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call RemoveUnit( GetTriggerUnit() )
call RemoveUnit( gg_unit_HC36_0080 )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_morb_control_pt), 2.00 )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_morb_control_pt), "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdx" )
call TriggerSleepAction( 2.00 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call CreateNUnitsAtLoc( 1, 'HC36', Player(9), GetRectCenter(gg_rct_morb_control_pt), 135.00 )
call UnitAddItemByIdSwapped( 'IC21', GetLastCreatedUnit() )
call AddSpecialEffectTargetUnitBJ( "hand,right", GetLastCreatedUnit(), "quarterstaff.mdx" )
call DisableTrigger( gg_trg_two_morb_control )
call DisableTrigger( gg_trg_three_morb_control )
call DisableTrigger( gg_trg_four_morb_control )
call DisableTrigger( gg_trg_five_morb_control )
call DisableTrigger( gg_trg_six_morb_control )
call DisableTrigger( gg_trg_eight_morb_control )
call DisableTrigger( gg_trg_nine_morb_control )
call DisableTrigger( gg_trg_ten_morb_control )
call DisableTrigger( gg_trg_eleven_morb_control )
call DisableTrigger( gg_trg_twelve_morb_control )
endfunction
function InitTrig_ten_morb_control takes nothing returns nothing
set gg_trg_ten_morb_control = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_ten_morb_control, gg_rct_Morbazan )
call TriggerAddCondition( gg_trg_ten_morb_control, Condition( function Trig_ten_morb_control_Conditions ) )
call TriggerAddAction( gg_trg_ten_morb_control, function Trig_ten_morb_control_Actions )
endfunction
function Trig_eleven_morb_control_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetEnteringUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(10) ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC15') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC13') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC14') == true ) ) then
return false
endif
if ( not ( udg_morbsec[11] == true ) ) then
return false
endif
return true
endfunction
function Trig_eleven_morb_control_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_two_morb_control )
call DisableTrigger( gg_trg_three_morb_control )
call DisableTrigger( gg_trg_four_morb_control )
call DisableTrigger( gg_trg_five_morb_control )
call DisableTrigger( gg_trg_six_morb_control )
call DisableTrigger( gg_trg_eight_morb_control )
call DisableTrigger( gg_trg_nine_morb_control )
call DisableTrigger( gg_trg_ten_morb_control )
call DisableTrigger( gg_trg_eleven_morb_control )
call DisableTrigger( gg_trg_twelve_morb_control )
call QuestMessageBJ( GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit())), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_790" )
call TriggerSleepAction( 2.00 )
call AddSpecialEffectTargetUnitBJ( "overhead", GetTriggerUnit(), "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdx" )
call AddSpecialEffectTargetUnitBJ( "overhead", gg_unit_HC36_0080, "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdx" )
call TriggerSleepAction( 5.00 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call RemoveUnit( GetTriggerUnit() )
call RemoveUnit( gg_unit_HC36_0080 )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_morb_control_pt), 2.00 )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_morb_control_pt), "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdx" )
call TriggerSleepAction( 2.00 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call CreateNUnitsAtLoc( 1, 'HC36', Player(10), GetRectCenter(gg_rct_morb_control_pt), 135.00 )
call UnitAddItemByIdSwapped( 'IC21', GetLastCreatedUnit() )
call AddSpecialEffectTargetUnitBJ( "hand,right", GetLastCreatedUnit(), "quarterstaff.mdx" )
endfunction
function InitTrig_eleven_morb_control takes nothing returns nothing
set gg_trg_eleven_morb_control = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_eleven_morb_control, gg_rct_Morbazan )
call TriggerAddCondition( gg_trg_eleven_morb_control, Condition( function Trig_eleven_morb_control_Conditions ) )
call TriggerAddAction( gg_trg_eleven_morb_control, function Trig_eleven_morb_control_Actions )
endfunction
function Trig_twelve_morb_control_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetEnteringUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(11) ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC15') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC13') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'IC14') == true ) ) then
return false
endif
if ( not ( udg_morbsec[12] == true ) ) then
return false
endif
return true
endfunction
function Trig_twelve_morb_control_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_two_morb_control )
call DisableTrigger( gg_trg_three_morb_control )
call DisableTrigger( gg_trg_four_morb_control )
call DisableTrigger( gg_trg_five_morb_control )
call DisableTrigger( gg_trg_six_morb_control )
call DisableTrigger( gg_trg_eight_morb_control )
call DisableTrigger( gg_trg_nine_morb_control )
call DisableTrigger( gg_trg_ten_morb_control )
call DisableTrigger( gg_trg_eleven_morb_control )
call DisableTrigger( gg_trg_twelve_morb_control )
call QuestMessageBJ( GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit())), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_791" )
call TriggerSleepAction( 2.00 )
call AddSpecialEffectTargetUnitBJ( "overhead", GetTriggerUnit(), "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdx" )
call AddSpecialEffectTargetUnitBJ( "overhead", gg_unit_HC36_0080, "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdx" )
call TriggerSleepAction( 5.00 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call RemoveUnit( GetTriggerUnit() )
call RemoveUnit( gg_unit_HC36_0080 )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_morb_control_pt), 2.00 )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_morb_control_pt), "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdx" )
call TriggerSleepAction( 2.00 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call CreateNUnitsAtLoc( 1, 'HC36', Player(11), GetRectCenter(gg_rct_morb_control_pt), 135.00 )
call UnitAddItemByIdSwapped( 'IC21', GetLastCreatedUnit() )
call AddSpecialEffectTargetUnitBJ( "hand,right", GetLastCreatedUnit(), "quarterstaff.mdx" )
call DisableTrigger( gg_trg_two_morb_control )
call DisableTrigger( gg_trg_three_morb_control )
call DisableTrigger( gg_trg_four_morb_control )
call DisableTrigger( gg_trg_five_morb_control )
call DisableTrigger( gg_trg_six_morb_control )
call DisableTrigger( gg_trg_eight_morb_control )
call DisableTrigger( gg_trg_nine_morb_control )
call DisableTrigger( gg_trg_ten_morb_control )
call DisableTrigger( gg_trg_eleven_morb_control )
call DisableTrigger( gg_trg_twelve_morb_control )
endfunction
function InitTrig_twelve_morb_control takes nothing returns nothing
set gg_trg_twelve_morb_control = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_twelve_morb_control, gg_rct_Morbazan )
call TriggerAddCondition( gg_trg_twelve_morb_control, Condition( function Trig_twelve_morb_control_Conditions ) )
call TriggerAddAction( gg_trg_twelve_morb_control, function Trig_twelve_morb_control_Actions )
endfunction