Name | Type | is_array | initial_value |
Acceptance | boolean | No | false |
Animist | unit | No | |
AnimistExperience | integer | No | 0 |
Aphonia | unit | No | |
ArcherExperience | integer | No | 0 |
ArmShot | texttag | No | |
ArrowSpirit | real | No | 0 |
AtroxDummy | unit | No | |
AutoDifficultyModifier | real | No | 0 |
BanditChiefDead | boolean | No | false |
Beggar | player | No | |
Blackjacked | unit | No | |
Blackjacker | unit | No | |
BlueChallenger | unit | No | |
BonusExperience | integer | No | 0 |
BruteExperience | integer | No | 0 |
CalisBandCounter | real | No | 0 |
CalledFloater | texttag | No | |
CallingShooter1 | unit | No | |
CallingShooter2 | unit | No | |
CallingShooter3 | unit | No | |
CardCounter | real | No | 0 |
Challenger | unit | No | |
ChaosFury | real | No | 12.00 |
ChaosRain | real | No | 50.00 |
Chapter3 | boolean | No | false |
ChapterQuest | quest | No | |
ChemistExperience | integer | No | 0 |
CiaraJoined | boolean | No | false |
Cindescrae | unit | No | |
ClericExperience | integer | No | 0 |
ComboBonus | real | No | 0 |
ComboFloater | texttag | No | |
ComboTarget | unit | No | |
Conjurer | unit | No | |
CorbinDeath | boolean | No | false |
CrushCounter | integer | No | 0 |
Crusher | unit | No | |
Cutter | unit | No | |
DarkArcher | unit | No | |
DeadSpirit | unit | No | |
Death1 | unit | No | |
Death2 | unit | No | |
Death3 | unit | No | |
DeathSpirit | unit | No | |
DifficultyLock | boolean | No | false |
DifficultyLocker | real | No | 0 |
Domino | unit | No | |
DominoPlayer | player | No | |
DragonBeam | unit | No | |
DrakeJoined | boolean | No | false |
DruidExperience | integer | No | 0 |
DummyRaine | unit | No | |
Elementalist | unit | No | |
EyeOfTheStorm | unit | No | |
FakeGeneral | unit | No | |
FakeLeon | unit | No | |
FakeSeer | unit | No | |
FakingIt | real | No | 0 |
Ferdinand | unit | No | |
FinalCountdown | real | No | 0 |
FireOrb | item | No | |
FletchLives | boolean | No | false |
FreezeCounter | integer | No | 0 |
Freezer | unit | No | |
FreyaDead | boolean | No | false |
FrozenBeam | unit | No | |
GamblerExperience | integer | No | 0 |
Gladiator | unit | No | |
GuardianCounter | real | No | 0 |
Hawk1 | unit | No | |
Hawk2 | unit | No | |
Hawk3 | unit | No | |
HeadShot | texttag | No | |
HirelingCounter | real | No | 0 |
HirelingExpAtrox | integer | No | 0 |
HirelingExpCiara | integer | No | 0 |
HirelingExpDrake | integer | No | 0 |
HirelingExpFreya | integer | No | 0 |
HirelingExpGraves | integer | No | 0 |
HirelingExpLoki | integer | No | 0 |
HirelingHPAtrox | real | No | 0 |
HirelingHPCiara | real | No | 0 |
HirelingHPDrake | real | No | 0 |
HirelingHPFreya | real | No | 0 |
HirelingHPGraves | real | No | 0 |
HirelingHPLoki | real | No | 0 |
HirelingMPAtrox | real | No | 0 |
HirelingMPCiara | real | No | 0 |
HirelingMPDrake | real | No | 0 |
HirelingMPFreya | real | No | 0 |
HirelingMPGraves | real | No | 0 |
HirelingMPLoki | real | No | 0 |
HireQuest1 | quest | No | |
HireQuest2 | quest | No | |
HireQuest3 | quest | No | |
HoW | item | No | |
HuntressExperience | integer | No | 0 |
IngredientCount | real | No | 0 |
JezrelIntro | boolean | No | false |
KaeManos | real | No | 0 |
KillCounter | real | No | 0 |
KindredSpirit1 | player | No | |
KindredSpirit2 | player | No | |
KindredSpirit3 | player | No | |
LastAddedAbility | unitcode | No | |
LeaderInKilling | player | No | |
LegShot | texttag | No | |
Lethe | unit | No | |
LevelXDeath | integer | No | 0 |
LifeOfMisery | real | No | 0 |
LoserInKilling | player | No | |
Luna | unit | No | |
MayorKnows | boolean | No | false |
Merchant | player | No | |
Misery | real | No | 0 |
Nathan | unit | No | |
Nitro | real | No | 0 |
Offspring | unit | No | |
OpQuest1 | quest | No | |
OpQuest2 | quest | No | |
OwnerOfAnimist | player | No | |
P1Hero | unit | No | |
P1name | string | No | |
P2Hero | unit | No | |
P2name | string | No | |
P4Hero | unit | No | |
P4name | string | No | |
P5Hero | unit | No | |
P5name | string | No | |
P6Hero | unit | No | |
P6name | string | No | |
P7Hero | unit | No | |
P7name | string | No | |
Painhammer | unit | No | |
PainReflection | unit | No | |
PainReflector | unit | No | |
PartyReady | real | No | 0 |
PartyTotal | real | No | 0 |
PearlNecklace | item | No | |
Player1Hero | boolean | No | false |
Player2Hero | boolean | No | false |
Player4Hero | boolean | No | false |
Player5Hero | boolean | No | false |
Player6Hero | boolean | No | false |
Player7Hero | boolean | No | false |
PlayerArray | player | Yes | |
PlayerGroup | force | No | |
PrawnHead | item | No | |
PromoItem1 | item | No | |
PromoItem2 | item | No | |
PromoItem3 | item | No | |
PromoItem4 | item | No | |
PromoItem5 | item | No | |
PromoItem6 | item | No | |
ProQuestAnimist | quest | No | |
ProQuestArcher | quest | No | |
ProQuestChemist | quest | No | |
ProQuestCleric | quest | No | |
ProQuestDruid | quest | No | |
ProQuestGambler | quest | No | |
ProQuestHuntress | quest | No | |
ProQuestSorc | quest | No | |
ProQuestSwordsman | quest | No | |
Quest1 | quest | No | |
Quest2 | quest | No | |
Quest3 | quest | No | |
Quest4 | quest | No | |
Quest5 | quest | No | |
RandomFate | integer | No | 1 |
Ravager | unit | No | |
RealDeath | real | No | 0 |
RedChallenger | unit | No | |
ResurrectionMan | unit | No | |
RogueExperience | integer | No | 0 |
SamJoined | boolean | No | false |
SeerActive | boolean | No | false |
SeveredHead | item | No | |
SilverSaturation | real | No | 100.00 |
SkyCaptain | player | No | |
SkyCaptain2 | player | No | |
Slayer1 | unit | No | |
Slayer2 | unit | No | |
Slayer3 | unit | No | |
Sniper | unit | No | |
SorceressExperience | integer | No | 0 |
SpokeToJessa | boolean | No | false |
SpokeToSue | boolean | No | false |
SpokeToVirginia | boolean | No | false |
StairKey | item | No | |
StolenIdentity | unitcode | No | |
Succubus | unit | No | |
SwordsmanExperience | integer | No | 0 |
TheftLevel | integer | No | 0 |
Thief1 | unit | No | |
Thief2 | unit | No | |
Thief3 | unit | No | |
Thievery | real | No | 0 |
Tickets | item | No | |
UnitInStasis | unit | No | |
ViperBeam | unit | No | |
WarlockExperience | integer | No | 0 |
Watchman | unit | No | |
WatchmanDummy | unit | No | |
WatchmanReviveCost | integer | No | 0 |
WatchmanSalvation | player | No | |
WeatherRain | weathereffect | No | |
WeatherSnow | weathereffect | No | |
WeatherStorm | weathereffect | No | |
WeatherWind | weathereffect | No | |
WeddingRing | item | No |
function Trig_Melee_Initialization_Func004002001 takes nothing returns boolean
return ( GetPlayerController(GetFilterPlayer()) == MAP_CONTROL_USER )
endfunction
function Trig_Melee_Initialization_Func005002 takes nothing returns nothing
call SetUnitInvulnerable( GetEnumUnit(), true )
endfunction
function Trig_Melee_Initialization_Func006002 takes nothing returns nothing
call SetUnitInvulnerable( GetEnumUnit(), true )
endfunction
function Trig_Melee_Initialization_Func007002 takes nothing returns nothing
call SetUnitInvulnerable( GetEnumUnit(), true )
endfunction
function Trig_Melee_Initialization_Func043002 takes nothing returns nothing
call SetPlayerStateBJ( GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD, 50 )
endfunction
function Trig_Melee_Initialization_Func068002 takes nothing returns nothing
call SetUnitOwner( GetEnumUnit(), Player(7), false )
endfunction
function Trig_Melee_Initialization_Func089002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Fields, GetEnumPlayer(), 0.01 )
endfunction
function Trig_Melee_Initialization_Func105002 takes nothing returns nothing
call ResetToGameCameraForPlayer( GetEnumPlayer(), 0.01 )
endfunction
function Trig_Melee_Initialization_Func106002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetEnumPlayer(), GetRectCenter(gg_rct_Hero_Selection), 0.02 )
endfunction
function Trig_Melee_Initialization_Actions takes nothing returns nothing
call MeleeStartingVisibility( )
call MeleeStartingHeroLimit( )
set udg_PlayerGroup = GetPlayersMatching(Condition(function Trig_Melee_Initialization_Func004002001))
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(11)), function Trig_Melee_Initialization_Func005002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(10)), function Trig_Melee_Initialization_Func006002 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Hero_Selection), function Trig_Melee_Initialization_Func007002 )
call SetPlayerName( Player(2), "TRIGSTR_001" )
call SetPlayerName( Player(11), "TRIGSTR_002" )
call SetPlayerAllianceStateBJ( Player(2), Player(0), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(2), Player(1), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(2), Player(3), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(2), Player(4), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(2), Player(5), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(2), Player(6), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(11), Player(0), bj_ALLIANCE_ALLIED_UNITS )
call SetPlayerAllianceStateBJ( Player(11), Player(1), bj_ALLIANCE_ALLIED_UNITS )
call SetPlayerAllianceStateBJ( Player(11), Player(3), bj_ALLIANCE_ALLIED_UNITS )
call SetPlayerAllianceStateBJ( Player(11), Player(4), bj_ALLIANCE_ALLIED_UNITS )
call SetPlayerAllianceStateBJ( Player(11), Player(5), bj_ALLIANCE_ALLIED_UNITS )
call SetPlayerAllianceStateBJ( Player(11), Player(6), bj_ALLIANCE_ALLIED_UNITS )
call SetPlayerAllianceStateBJ( Player(7), Player(0), bj_ALLIANCE_NEUTRAL )
call SetPlayerAllianceStateBJ( Player(7), Player(1), bj_ALLIANCE_NEUTRAL )
call SetPlayerAllianceStateBJ( Player(7), Player(3), bj_ALLIANCE_NEUTRAL )
call SetPlayerAllianceStateBJ( Player(7), Player(4), bj_ALLIANCE_NEUTRAL )
call SetPlayerAllianceStateBJ( Player(7), Player(5), bj_ALLIANCE_NEUTRAL )
call SetPlayerAllianceStateBJ( Player(7), Player(6), bj_ALLIANCE_NEUTRAL )
call SetPlayerAllianceStateBJ( Player(8), Player(0), bj_ALLIANCE_ALLIED_ADVUNITS )
call SetPlayerAllianceStateBJ( Player(8), Player(1), bj_ALLIANCE_ALLIED_ADVUNITS )
call SetPlayerAllianceStateBJ( Player(8), Player(3), bj_ALLIANCE_ALLIED_ADVUNITS )
call SetPlayerAllianceStateBJ( Player(8), Player(4), bj_ALLIANCE_ALLIED_ADVUNITS )
call SetPlayerAllianceStateBJ( Player(8), Player(5), bj_ALLIANCE_ALLIED_ADVUNITS )
call SetPlayerAllianceStateBJ( Player(8), Player(6), bj_ALLIANCE_ALLIED_ADVUNITS )
call SetPlayerAllianceStateBJ( Player(10), Player(0), bj_ALLIANCE_ALLIED_UNITS )
call SetPlayerAllianceStateBJ( Player(10), Player(1), bj_ALLIANCE_ALLIED_UNITS )
call SetPlayerAllianceStateBJ( Player(10), Player(3), bj_ALLIANCE_ALLIED_UNITS )
call SetPlayerAllianceStateBJ( Player(10), Player(4), bj_ALLIANCE_ALLIED_UNITS )
call SetPlayerAllianceStateBJ( Player(10), Player(5), bj_ALLIANCE_ALLIED_UNITS )
call SetPlayerAllianceStateBJ( Player(10), Player(6), bj_ALLIANCE_ALLIED_UNITS )
call SetPlayerAllianceStateBJ( Player(8), Player(9), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( Player(9), Player(8), bj_ALLIANCE_UNALLIED )
call ClearTextMessagesBJ( GetPlayersAll() )
call ForForce( GetPlayersAll(), function Trig_Melee_Initialization_Func043002 )
call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(8) )
call SetPlayerOnScoreScreenBJ( false, Player(2) )
call SetPlayerOnScoreScreenBJ( false, Player(7) )
call SetPlayerOnScoreScreenBJ( false, Player(8) )
call SetPlayerOnScoreScreenBJ( false, Player(9) )
call SetPlayerOnScoreScreenBJ( false, Player(10) )
call SetPlayerOnScoreScreenBJ( false, Player(11) )
call SetUnitInvulnerable( gg_unit_H00G_0068, true )
call SetUnitInvulnerable( gg_unit_h00I_0087, true )
call ForceCinematicSubtitlesBJ( true )
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_003", "TRIGSTR_004", "ReplaceableTextures\\CommandButtons\\BTNSelectHeroOn.blp" )
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_005", "TRIGSTR_006", "ReplaceableTextures\\CommandButtons\\BTNSunKey.blp" )
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_7687", "TRIGSTR_7688", "ReplaceableTextures\\CommandButtons\\BTNMoonKey.blp" )
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_6854", "TRIGSTR_6855", "ReplaceableTextures\\CommandButtons\\BTNTome.blp" )
call FlashQuestDialogButtonBJ( )
call SetCreepCampFilterState( false )
call EnableMinimapFilterButtons( false, false )
call SetSkyModel( "Environment\\Sky\\FoggedSky\\FoggedSky.mdl" )
call AddWeatherEffectSaveLast( GetEntireMapRect(), 'RLlr' )
set udg_WeatherRain = GetLastCreatedWeatherEffect()
call AddWeatherEffectSaveLast( GetEntireMapRect(), 'SNls' )
set udg_WeatherSnow = GetLastCreatedWeatherEffect()
call AddWeatherEffectSaveLast( GetEntireMapRect(), 'WOlw' )
set udg_WeatherStorm = GetLastCreatedWeatherEffect()
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_HirelingZone, Player(9)), function Trig_Melee_Initialization_Func068002 )
set udg_Watchman = gg_unit_U00A_0134
set udg_CallingShooter1 = gg_unit_U00A_0134
set udg_Hawk1 = gg_unit_H00K_0206
call AddHeroXPSwapped( 200, gg_unit_E00J_0356, false )
call AddHeroXPSwapped( 200, gg_unit_E00Y_0354, false )
set udg_WeddingRing = GetItemOfTypeFromUnitBJ(gg_unit_n00S_0136, 'I00K')
call MultiboardAllowDisplayBJ( false )
set udg_ResurrectionMan = gg_unit_n00C_0049
set udg_Gladiator = gg_unit_H00K_0206
set udg_Succubus = gg_unit_E00J_0356
set udg_Conjurer = gg_unit_U00H_0438
set udg_Ravager = gg_unit_O00O_0170
set udg_DarkArcher = gg_unit_E01D_0629
call SetPlayerTechResearchedSwap( 'R002', 1, Player(8) )
// Intro
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUT, 0.01, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call SetUserControlForceOff( GetPlayersAll() )
call ClearTextMessagesBJ( GetPlayersAll() )
call ShowInterfaceForceOff( GetPlayersAll(), 2 )
call CinematicModeExBJ( true, GetPlayersAll(), 2.00 )
call ForForce( GetPlayersAll(), function Trig_Melee_Initialization_Func089002 )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEIN, 5.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call PolledWait( 1.00 )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_6870" )
call PolledWait( 3.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6869" )
call PolledWait( 14.00 )
call ClearTextMessagesBJ( GetPlayersAll() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6871" )
call PolledWait( 14.00 )
call ClearTextMessagesBJ( GetPlayersAll() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6872" )
call PolledWait( 9.00 )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUT, 5.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call PolledWait( 5.00 )
call ClearTextMessagesBJ( GetPlayersAll() )
call ForForce( GetPlayersAll(), function Trig_Melee_Initialization_Func105002 )
call ForForce( GetPlayersAll(), function Trig_Melee_Initialization_Func106002 )
call SetUserControlForceOn( GetPlayersAll() )
call CinematicModeExBJ( false, GetPlayersAll(), 2.00 )
call ShowInterfaceForceOn( GetPlayersAll(), 2 )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEIN, 5.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call PolledWait( 6.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6876" )
call PlaySoundBJ( gg_snd_QuestLog )
endfunction
//===========================================================================
function InitTrig_Melee_Initialization takes nothing returns nothing
set gg_trg_Melee_Initialization = CreateTrigger( )
call TriggerAddAction( gg_trg_Melee_Initialization, function Trig_Melee_Initialization_Actions )
endfunction
function Trig_Almost_Immediately_Func012002 takes nothing returns nothing
call SetDestructableInvulnerableBJ( GetEnumDestructable(), true )
endfunction
function Trig_Almost_Immediately_Func019002 takes nothing returns nothing
call SetDestructableInvulnerableBJ( GetEnumDestructable(), true )
endfunction
function Trig_Almost_Immediately_Actions takes nothing returns nothing
call PlaySoundBJ( gg_snd_SadMystery )
call SetUnitInvulnerable( gg_unit_H00M_0159, true )
call SetUnitInvulnerable( gg_unit_n019_0208, true )
call SetUnitInvulnerable( gg_unit_n019_0207, true )
call SetUnitInvulnerable( gg_unit_E00W_0277, true )
call SetUnitInvulnerable( gg_unit_E00X_0278, true )
call SetUnitOwner( gg_unit_E00K_0161, Player(7), false )
call SetUnitInvulnerable( gg_unit_E00K_0161, true )
call SetUnitOwner( gg_unit_U00D_0160, Player(7), false )
call SetUnitInvulnerable( gg_unit_U00D_0160, true )
call EnumDestructablesInRectAll( gg_rct_Megiddon, function Trig_Almost_Immediately_Func012002 )
set udg_P1name = GetPlayerName(Player(0))
set udg_P2name = GetPlayerName(Player(1))
set udg_P4name = GetPlayerName(Player(3))
set udg_P5name = GetPlayerName(Player(4))
set udg_P6name = GetPlayerName(Player(5))
set udg_P7name = GetPlayerName(Player(6))
call EnumDestructablesInRectAll( gg_rct_Cave_Blockade, function Trig_Almost_Immediately_Func019002 )
call SetDestructableInvulnerableBJ( gg_dest_ITx1_4696, true )
call SetDestructableInvulnerableBJ( gg_dest_ITx3_4721, true )
call SetDestructableInvulnerableBJ( gg_dest_ITg3_4722, true )
call SetDestructableInvulnerableBJ( gg_dest_LTrc_4766, true )
call SetDestructableInvulnerableBJ( gg_dest_LTrc_4765, true )
call SetDestructableInvulnerableBJ( gg_dest_ITg1_4743, true )
call SetDestructableInvulnerableBJ( gg_dest_ITg1_4744, true )
call SetDestructableInvulnerableBJ( gg_dest_ITg3_5313, true )
call SetDestructableInvulnerableBJ( gg_dest_ITg1_5314, true )
call SetDestructableInvulnerableBJ( gg_dest_ITg1_0139, true )
call SetDestructableInvulnerableBJ( gg_dest_ITg1_5850, true )
call SetDestructableInvulnerableBJ( gg_dest_LTg3_6421, true )
call SetDestructableInvulnerableBJ( gg_dest_LTg3_6422, true )
call SetDestructableInvulnerableBJ( gg_dest_LTg1_6423, true )
call SetUnitOwner( gg_unit_H01S_0537, Player(7), false )
set udg_Freezer = gg_unit_N03J_0535
set udg_FreezeCounter = 1
set udg_Crusher = gg_unit_U00W_0536
set udg_CrushCounter = 1
call SetUnitInvulnerable( gg_unit_N03J_0535, true )
endfunction
//===========================================================================
function InitTrig_Almost_Immediately takes nothing returns nothing
set gg_trg_Almost_Immediately = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Almost_Immediately, 0.10 )
call TriggerAddAction( gg_trg_Almost_Immediately, function Trig_Almost_Immediately_Actions )
endfunction
function Trig_Select_1_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(2) ) ) then
return false
endif
if ( not ( udg_Player1Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_1_Func001002 takes nothing returns nothing
call SetUnitOwner( GetEnumUnit(), Player(2), true )
endfunction
function Trig_Select_1_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(0)), function Trig_Select_1_Func001002 )
call ClearSelectionForPlayer( Player(0) )
call SetUnitOwner( GetTriggerUnit(), Player(0), true )
call SelectUnitForPlayerSingle( GetTriggerUnit(), Player(0) )
endfunction
//===========================================================================
function InitTrig_Select_1 takes nothing returns nothing
set gg_trg_Select_1 = CreateTrigger( )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_Select_1, Player(0), true )
call TriggerAddCondition( gg_trg_Select_1, Condition( function Trig_Select_1_Conditions ) )
call TriggerAddAction( gg_trg_Select_1, function Trig_Select_1_Actions )
endfunction
function Trig_Select_Swordsman_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00M' ) ) then
return false
endif
if ( not ( udg_Player1Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Swordsman_1_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Swordsman_1_Actions takes nothing returns nothing
set udg_Player1Hero = true
call PanCameraToTimedLocForPlayer( Player(0), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(0), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'H002', Player(0), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(0)), function Trig_Select_Swordsman_1_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(0) )
endfunction
//===========================================================================
function InitTrig_Select_Swordsman_1 takes nothing returns nothing
set gg_trg_Select_Swordsman_1 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Swordsman_1, Player(0), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Swordsman_1, Condition( function Trig_Select_Swordsman_1_Conditions ) )
call TriggerAddAction( gg_trg_Select_Swordsman_1, function Trig_Select_Swordsman_1_Actions )
endfunction
function Trig_Select_Warlock_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00O' ) ) then
return false
endif
if ( not ( udg_Player1Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Warlock_1_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Warlock_1_Actions takes nothing returns nothing
set udg_Player1Hero = true
call PanCameraToTimedLocForPlayer( Player(0), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(0), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'U000', Player(0), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(0)), function Trig_Select_Warlock_1_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(0) )
endfunction
//===========================================================================
function InitTrig_Select_Warlock_1 takes nothing returns nothing
set gg_trg_Select_Warlock_1 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Warlock_1, Player(0), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Warlock_1, Condition( function Trig_Select_Warlock_1_Conditions ) )
call TriggerAddAction( gg_trg_Select_Warlock_1, function Trig_Select_Warlock_1_Actions )
endfunction
function Trig_Select_Druid_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A017' ) ) then
return false
endif
if ( not ( udg_Player1Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Druid_1_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Druid_1_Actions takes nothing returns nothing
set udg_Player1Hero = true
call PanCameraToTimedLocForPlayer( Player(0), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(0), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E000', Player(0), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(0)), function Trig_Select_Druid_1_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(0) )
endfunction
//===========================================================================
function InitTrig_Select_Druid_1 takes nothing returns nothing
set gg_trg_Select_Druid_1 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Druid_1, Player(0), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Druid_1, Condition( function Trig_Select_Druid_1_Conditions ) )
call TriggerAddAction( gg_trg_Select_Druid_1, function Trig_Select_Druid_1_Actions )
endfunction
function Trig_Select_Brute_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01C' ) ) then
return false
endif
if ( not ( udg_Player1Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Brute_1_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Brute_1_Actions takes nothing returns nothing
set udg_Player1Hero = true
call PanCameraToTimedLocForPlayer( Player(0), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(0), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'O000', Player(0), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(0)), function Trig_Select_Brute_1_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(0) )
endfunction
//===========================================================================
function InitTrig_Select_Brute_1 takes nothing returns nothing
set gg_trg_Select_Brute_1 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Brute_1, Player(0), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Brute_1, Condition( function Trig_Select_Brute_1_Conditions ) )
call TriggerAddAction( gg_trg_Select_Brute_1, function Trig_Select_Brute_1_Actions )
endfunction
function Trig_Select_Sorceress_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01R' ) ) then
return false
endif
if ( not ( udg_Player1Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Sorceress_1_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Sorceress_1_Actions takes nothing returns nothing
set udg_Player1Hero = true
call PanCameraToTimedLocForPlayer( Player(0), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(0), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'U006', Player(0), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(0)), function Trig_Select_Sorceress_1_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(0) )
endfunction
//===========================================================================
function InitTrig_Select_Sorceress_1 takes nothing returns nothing
set gg_trg_Select_Sorceress_1 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Sorceress_1, Player(0), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Sorceress_1, Condition( function Trig_Select_Sorceress_1_Conditions ) )
call TriggerAddAction( gg_trg_Select_Sorceress_1, function Trig_Select_Sorceress_1_Actions )
endfunction
function Trig_Select_Huntress_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01X' ) ) then
return false
endif
if ( not ( udg_Player1Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Huntress_1_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Huntress_1_Actions takes nothing returns nothing
set udg_Player1Hero = true
call PanCameraToTimedLocForPlayer( Player(0), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(0), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E005', Player(0), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(0)), function Trig_Select_Huntress_1_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(0) )
endfunction
//===========================================================================
function InitTrig_Select_Huntress_1 takes nothing returns nothing
set gg_trg_Select_Huntress_1 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Huntress_1, Player(0), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Huntress_1, Condition( function Trig_Select_Huntress_1_Conditions ) )
call TriggerAddAction( gg_trg_Select_Huntress_1, function Trig_Select_Huntress_1_Actions )
endfunction
function Trig_Select_Cleric_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A022' ) ) then
return false
endif
if ( not ( udg_Player1Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Cleric_1_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Cleric_1_Actions takes nothing returns nothing
set udg_Player1Hero = true
call PanCameraToTimedLocForPlayer( Player(0), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(0), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E007', Player(0), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(0)), function Trig_Select_Cleric_1_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(0) )
endfunction
//===========================================================================
function InitTrig_Select_Cleric_1 takes nothing returns nothing
set gg_trg_Select_Cleric_1 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Cleric_1, Player(0), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Cleric_1, Condition( function Trig_Select_Cleric_1_Conditions ) )
call TriggerAddAction( gg_trg_Select_Cleric_1, function Trig_Select_Cleric_1_Actions )
endfunction
function Trig_Select_Archer_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A029' ) ) then
return false
endif
if ( not ( udg_Player1Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Archer_1_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Archer_1_Actions takes nothing returns nothing
set udg_Player1Hero = true
call PanCameraToTimedLocForPlayer( Player(0), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(0), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E009', Player(0), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(0)), function Trig_Select_Archer_1_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(0) )
endfunction
//===========================================================================
function InitTrig_Select_Archer_1 takes nothing returns nothing
set gg_trg_Select_Archer_1 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Archer_1, Player(0), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Archer_1, Condition( function Trig_Select_Archer_1_Conditions ) )
call TriggerAddAction( gg_trg_Select_Archer_1, function Trig_Select_Archer_1_Actions )
endfunction
function Trig_Select_Animist_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A03X' ) ) then
return false
endif
if ( not ( udg_Player1Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Animist_1_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Animist_1_Actions takes nothing returns nothing
set udg_Player1Hero = true
call PanCameraToTimedLocForPlayer( Player(0), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(0), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'O00C', Player(0), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(0)), function Trig_Select_Animist_1_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(0) )
endfunction
//===========================================================================
function InitTrig_Select_Animist_1 takes nothing returns nothing
set gg_trg_Select_Animist_1 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Animist_1, Player(0), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Animist_1, Condition( function Trig_Select_Animist_1_Conditions ) )
call TriggerAddAction( gg_trg_Select_Animist_1, function Trig_Select_Animist_1_Actions )
endfunction
function Trig_Select_Rogue_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A4' ) ) then
return false
endif
if ( not ( udg_Player1Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Rogue_1_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Rogue_1_Actions takes nothing returns nothing
set udg_Player1Hero = true
call PanCameraToTimedLocForPlayer( Player(0), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(0), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E013', Player(0), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(0)), function Trig_Select_Rogue_1_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(0) )
call UnitAddItemByIdSwapped( 'I02S', GetLastCreatedUnit() )
call EnableTrigger( gg_trg_Enlightenment )
endfunction
//===========================================================================
function InitTrig_Select_Rogue_1 takes nothing returns nothing
set gg_trg_Select_Rogue_1 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Rogue_1, Player(0), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Rogue_1, Condition( function Trig_Select_Rogue_1_Conditions ) )
call TriggerAddAction( gg_trg_Select_Rogue_1, function Trig_Select_Rogue_1_Actions )
endfunction
function Trig_Select_Gambler_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AS' ) ) then
return false
endif
if ( not ( udg_Player1Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Gambler_1_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Gambler_1_Actions takes nothing returns nothing
set udg_Player1Hero = true
call PanCameraToTimedLocForPlayer( Player(0), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(0), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E016', Player(0), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(0)), function Trig_Select_Gambler_1_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(0) )
call EnableTrigger( gg_trg_Virginia_Gossip_X )
call DisableTrigger( gg_trg_Barmaid_Gossip )
endfunction
//===========================================================================
function InitTrig_Select_Gambler_1 takes nothing returns nothing
set gg_trg_Select_Gambler_1 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Gambler_1, Player(0), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Gambler_1, Condition( function Trig_Select_Gambler_1_Conditions ) )
call TriggerAddAction( gg_trg_Select_Gambler_1, function Trig_Select_Gambler_1_Actions )
endfunction
function Trig_Select_Chemist_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AT' ) ) then
return false
endif
if ( not ( udg_Player1Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Chemist_1_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Chemist_1_Actions takes nothing returns nothing
set udg_Player1Hero = true
call PanCameraToTimedLocForPlayer( Player(0), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(0), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'O00M', Player(0), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(0)), function Trig_Select_Chemist_1_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(0) )
endfunction
//===========================================================================
function InitTrig_Select_Chemist_1 takes nothing returns nothing
set gg_trg_Select_Chemist_1 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Chemist_1, Player(0), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Chemist_1, Condition( function Trig_Select_Chemist_1_Conditions ) )
call TriggerAddAction( gg_trg_Select_Chemist_1, function Trig_Select_Chemist_1_Actions )
endfunction
function Trig_Select_Hidden_Sorcerer_1_Conditions takes nothing returns boolean
if ( not ( udg_Player1Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Sorcerer_1_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Sorcerer_1_Actions takes nothing returns nothing
set udg_Player1Hero = true
call PanCameraToTimedLocForPlayer( Player(0), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(0), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'U008', Player(0), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(0)), function Trig_Select_Hidden_Sorcerer_1_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(0) )
call DisableTrigger( gg_trg_Select_Hidden_Sorcerer_1 )
call DisableTrigger( gg_trg_Select_Hidden_Sorcerer_2 )
call DisableTrigger( gg_trg_Select_Hidden_Sorcerer_4 )
call DisableTrigger( gg_trg_Select_Hidden_Sorcerer_5 )
call DisableTrigger( gg_trg_Select_Hidden_Sorcerer_6 )
call DisableTrigger( gg_trg_Select_Hidden_Sorcerer_7 )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Sorcerer_1 takes nothing returns nothing
set gg_trg_Select_Hidden_Sorcerer_1 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Sorcerer_1, Player(0), "-omega", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Sorcerer_1, Condition( function Trig_Select_Hidden_Sorcerer_1_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Sorcerer_1, function Trig_Select_Hidden_Sorcerer_1_Actions )
endfunction
function Trig_Select_Hidden_Assassin_1_Conditions takes nothing returns boolean
if ( not ( udg_Player1Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Assassin_1_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Assassin_1_Actions takes nothing returns nothing
set udg_Player1Hero = true
call PanCameraToTimedLocForPlayer( Player(0), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(0), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E00D', Player(0), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(0)), function Trig_Select_Hidden_Assassin_1_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(0) )
call UnitAddItemByIdSwapped( 'I03K', GetLastCreatedUnit() )
call CreateNUnitsAtLocFacingLocBJ( 1, 'n03G', Player(10), GetRectCenter(gg_rct_Ripley), GetRectCenter(gg_rct_Drake_Rally) )
call DisableTrigger( gg_trg_Select_Hidden_Assassin_1 )
call DisableTrigger( gg_trg_Select_Hidden_Assassin_2 )
call DisableTrigger( gg_trg_Select_Hidden_Assassin_4 )
call DisableTrigger( gg_trg_Select_Hidden_Assassin_5 )
call DisableTrigger( gg_trg_Select_Hidden_Assassin_6 )
call DisableTrigger( gg_trg_Select_Hidden_Assassin_7 )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Assassin_1 takes nothing returns nothing
set gg_trg_Select_Hidden_Assassin_1 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Assassin_1, Player(0), "-slayer", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Assassin_1, Condition( function Trig_Select_Hidden_Assassin_1_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Assassin_1, function Trig_Select_Hidden_Assassin_1_Actions )
endfunction
function Trig_Select_Hidden_Elementalist_1_Conditions takes nothing returns boolean
if ( not ( udg_Player1Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Elementalist_1_Func006002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Elementalist_1_Actions takes nothing returns nothing
set udg_Player1Hero = true
call PanCameraToTimedLocForPlayer( Player(0), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(0), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'H01W', Player(0), GetRectCenter(gg_rct_Start_Location), 270.00 )
call UnitAddItemByIdSwapped( 'I03U', GetLastCreatedUnit() )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(0)), function Trig_Select_Hidden_Elementalist_1_Func006002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(0) )
call DisableTrigger( gg_trg_Select_Hidden_Elementalist_1 )
call DisableTrigger( gg_trg_Select_Hidden_Elementalist_2 )
call DisableTrigger( gg_trg_Select_Hidden_Elementalist_4 )
call DisableTrigger( gg_trg_Select_Hidden_Elementalist_5 )
call DisableTrigger( gg_trg_Select_Hidden_Elementalist_6 )
call DisableTrigger( gg_trg_Select_Hidden_Elementalist_7 )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Elementalist_1 takes nothing returns nothing
set gg_trg_Select_Hidden_Elementalist_1 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Elementalist_1, Player(0), "-combo", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Elementalist_1, Condition( function Trig_Select_Hidden_Elementalist_1_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Elementalist_1, function Trig_Select_Hidden_Elementalist_1_Actions )
endfunction
function Trig_Select_Hidden_Buccaneer_1_Conditions takes nothing returns boolean
if ( not ( udg_Player1Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Buccaneer_1_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Buccaneer_1_Actions takes nothing returns nothing
set udg_Player1Hero = true
call PanCameraToTimedLocForPlayer( Player(0), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(0), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'H01X', Player(0), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(0)), function Trig_Select_Hidden_Buccaneer_1_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(0) )
call DisableTrigger( gg_trg_Select_Hidden_Buccaneer_1 )
call DisableTrigger( gg_trg_Select_Hidden_Buccaneer_2 )
call DisableTrigger( gg_trg_Select_Hidden_Buccaneer_4 )
call DisableTrigger( gg_trg_Select_Hidden_Buccaneer_5 )
call DisableTrigger( gg_trg_Select_Hidden_Buccaneer_6 )
call DisableTrigger( gg_trg_Select_Hidden_Buccaneer_7 )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Buccaneer_1 takes nothing returns nothing
set gg_trg_Select_Hidden_Buccaneer_1 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Buccaneer_1, Player(0), "-simulacrum", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Buccaneer_1, Condition( function Trig_Select_Hidden_Buccaneer_1_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Buccaneer_1, function Trig_Select_Hidden_Buccaneer_1_Actions )
endfunction
function Trig_Select_Hidden_Siren_1_Conditions takes nothing returns boolean
if ( not ( udg_Player1Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Siren_1_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Siren_1_Actions takes nothing returns nothing
set udg_Player1Hero = true
call PanCameraToTimedLocForPlayer( Player(0), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(0), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E00E', Player(0), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(0)), function Trig_Select_Hidden_Siren_1_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(0) )
call DisableTrigger( gg_trg_Select_Hidden_Siren_1 )
call DisableTrigger( gg_trg_Select_Hidden_Siren_2 )
call DisableTrigger( gg_trg_Select_Hidden_Siren_4 )
call DisableTrigger( gg_trg_Select_Hidden_Siren_5 )
call DisableTrigger( gg_trg_Select_Hidden_Siren_6 )
call DisableTrigger( gg_trg_Select_Hidden_Siren_7 )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Siren_1 takes nothing returns nothing
set gg_trg_Select_Hidden_Siren_1 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Siren_1, Player(0), "-avalanche", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Siren_1, Condition( function Trig_Select_Hidden_Siren_1_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Siren_1, function Trig_Select_Hidden_Siren_1_Actions )
endfunction
function Trig_Select_Hidden_Basilisk_1_Conditions takes nothing returns boolean
if ( not ( udg_Player1Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Basilisk_1_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Basilisk_1_Actions takes nothing returns nothing
set udg_Player1Hero = true
call PanCameraToTimedLocForPlayer( Player(0), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(0), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E00F', Player(0), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(0)), function Trig_Select_Hidden_Basilisk_1_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(0) )
call DisableTrigger( gg_trg_Select_Hidden_Basilisk_1 )
call DisableTrigger( gg_trg_Select_Hidden_Basilisk_2 )
call DisableTrigger( gg_trg_Select_Hidden_Basilisk_4 )
call DisableTrigger( gg_trg_Select_Hidden_Basilisk_5 )
call DisableTrigger( gg_trg_Select_Hidden_Basilisk_6 )
call DisableTrigger( gg_trg_Select_Hidden_Basilisk_7 )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Basilisk_1 takes nothing returns nothing
set gg_trg_Select_Hidden_Basilisk_1 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Basilisk_1, Player(0), "-gaia", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Basilisk_1, Condition( function Trig_Select_Hidden_Basilisk_1_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Basilisk_1, function Trig_Select_Hidden_Basilisk_1_Actions )
endfunction
function Trig_Add_To_Party_1_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(0) ) ) then
return false
endif
return true
endfunction
function Trig_Add_To_Party_1_Actions takes nothing returns nothing
set udg_PartyReady = ( udg_PartyReady + 1 )
endfunction
//===========================================================================
function InitTrig_Add_To_Party_1 takes nothing returns nothing
set gg_trg_Add_To_Party_1 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Add_To_Party_1, gg_rct_Start_Location )
call TriggerAddCondition( gg_trg_Add_To_Party_1, Condition( function Trig_Add_To_Party_1_Conditions ) )
call TriggerAddAction( gg_trg_Add_To_Party_1, function Trig_Add_To_Party_1_Actions )
endfunction
function Trig_Select_Hidden_Grunt_1_Conditions takes nothing returns boolean
if ( not ( udg_Player1Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Grunt_1_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Grunt_1_Actions takes nothing returns nothing
set udg_Player1Hero = true
call PanCameraToTimedLocForPlayer( Player(0), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(0), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E01H', Player(0), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(0)), function Trig_Select_Hidden_Grunt_1_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(0) )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Grunt_1 takes nothing returns nothing
set gg_trg_Select_Hidden_Grunt_1 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Grunt_1, Player(0), "-gimp", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Grunt_1, Condition( function Trig_Select_Hidden_Grunt_1_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Grunt_1, function Trig_Select_Hidden_Grunt_1_Actions )
endfunction
function Trig_Select_Hidden_Sniper_1_Conditions takes nothing returns boolean
if ( not ( udg_Player1Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Sniper_1_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Sniper_1_Actions takes nothing returns nothing
set udg_Player1Hero = true
call PanCameraToTimedLocForPlayer( Player(0), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(0), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E01I', Player(0), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(0)), function Trig_Select_Hidden_Sniper_1_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(0) )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Sniper_1 takes nothing returns nothing
set gg_trg_Select_Hidden_Sniper_1 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Sniper_1, Player(0), "-pain", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Sniper_1, Condition( function Trig_Select_Hidden_Sniper_1_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Sniper_1, function Trig_Select_Hidden_Sniper_1_Actions )
endfunction
function Trig_Select_Hidden_Medic_1_Conditions takes nothing returns boolean
if ( not ( udg_Player1Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Medic_1_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Medic_1_Actions takes nothing returns nothing
set udg_Player1Hero = true
call PanCameraToTimedLocForPlayer( Player(0), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(0), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E01J', Player(0), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(0)), function Trig_Select_Hidden_Medic_1_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(0) )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Medic_1 takes nothing returns nothing
set gg_trg_Select_Hidden_Medic_1 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Medic_1, Player(0), "-wife", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Medic_1, Condition( function Trig_Select_Hidden_Medic_1_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Medic_1, function Trig_Select_Hidden_Medic_1_Actions )
endfunction
function Trig_Select_Hidden_Demo_1_Conditions takes nothing returns boolean
if ( not ( udg_Player1Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Demo_1_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Demo_1_Actions takes nothing returns nothing
set udg_Player1Hero = true
call PanCameraToTimedLocForPlayer( Player(0), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(0), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E01K', Player(0), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(0)), function Trig_Select_Hidden_Demo_1_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(0) )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Demo_1 takes nothing returns nothing
set gg_trg_Select_Hidden_Demo_1 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Demo_1, Player(0), "-bear", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Demo_1, Condition( function Trig_Select_Hidden_Demo_1_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Demo_1, function Trig_Select_Hidden_Demo_1_Actions )
endfunction
function Trig_Select_2_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(2) ) ) then
return false
endif
if ( not ( udg_Player2Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_2_Func001002 takes nothing returns nothing
call SetUnitOwner( GetEnumUnit(), Player(2), true )
endfunction
function Trig_Select_2_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(1)), function Trig_Select_2_Func001002 )
call ClearSelectionForPlayer( Player(1) )
call SetUnitOwner( GetTriggerUnit(), Player(1), true )
call SelectUnitForPlayerSingle( GetTriggerUnit(), Player(1) )
endfunction
//===========================================================================
function InitTrig_Select_2 takes nothing returns nothing
set gg_trg_Select_2 = CreateTrigger( )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_Select_2, Player(1), true )
call TriggerAddCondition( gg_trg_Select_2, Condition( function Trig_Select_2_Conditions ) )
call TriggerAddAction( gg_trg_Select_2, function Trig_Select_2_Actions )
endfunction
function Trig_Select_Swordsman_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00M' ) ) then
return false
endif
if ( not ( udg_Player2Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Swordsman_2_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Swordsman_2_Actions takes nothing returns nothing
set udg_Player2Hero = true
call PanCameraToTimedLocForPlayer( Player(1), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(1), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'H002', Player(1), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(1)), function Trig_Select_Swordsman_2_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(1) )
endfunction
//===========================================================================
function InitTrig_Select_Swordsman_2 takes nothing returns nothing
set gg_trg_Select_Swordsman_2 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Swordsman_2, Player(1), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Swordsman_2, Condition( function Trig_Select_Swordsman_2_Conditions ) )
call TriggerAddAction( gg_trg_Select_Swordsman_2, function Trig_Select_Swordsman_2_Actions )
endfunction
function Trig_Select_Warlock_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00O' ) ) then
return false
endif
if ( not ( udg_Player2Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Warlock_2_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Warlock_2_Actions takes nothing returns nothing
set udg_Player2Hero = true
call PanCameraToTimedLocForPlayer( Player(1), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(1), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'U000', Player(1), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(1)), function Trig_Select_Warlock_2_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(1) )
endfunction
//===========================================================================
function InitTrig_Select_Warlock_2 takes nothing returns nothing
set gg_trg_Select_Warlock_2 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Warlock_2, Player(1), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Warlock_2, Condition( function Trig_Select_Warlock_2_Conditions ) )
call TriggerAddAction( gg_trg_Select_Warlock_2, function Trig_Select_Warlock_2_Actions )
endfunction
function Trig_Select_Druid_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A017' ) ) then
return false
endif
if ( not ( udg_Player2Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Druid_2_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Druid_2_Actions takes nothing returns nothing
set udg_Player2Hero = true
call PanCameraToTimedLocForPlayer( Player(1), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(1), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E000', Player(1), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(1)), function Trig_Select_Druid_2_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(1) )
endfunction
//===========================================================================
function InitTrig_Select_Druid_2 takes nothing returns nothing
set gg_trg_Select_Druid_2 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Druid_2, Player(1), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Druid_2, Condition( function Trig_Select_Druid_2_Conditions ) )
call TriggerAddAction( gg_trg_Select_Druid_2, function Trig_Select_Druid_2_Actions )
endfunction
function Trig_Select_Brute_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01C' ) ) then
return false
endif
if ( not ( udg_Player2Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Brute_2_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Brute_2_Actions takes nothing returns nothing
set udg_Player2Hero = true
call PanCameraToTimedLocForPlayer( Player(1), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(1), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'O000', Player(1), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(1)), function Trig_Select_Brute_2_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(1) )
endfunction
//===========================================================================
function InitTrig_Select_Brute_2 takes nothing returns nothing
set gg_trg_Select_Brute_2 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Brute_2, Player(1), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Brute_2, Condition( function Trig_Select_Brute_2_Conditions ) )
call TriggerAddAction( gg_trg_Select_Brute_2, function Trig_Select_Brute_2_Actions )
endfunction
function Trig_Select_Sorceress_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01R' ) ) then
return false
endif
if ( not ( udg_Player2Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Sorceress_2_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Sorceress_2_Actions takes nothing returns nothing
set udg_Player2Hero = true
call PanCameraToTimedLocForPlayer( Player(1), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(1), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'U006', Player(1), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(1)), function Trig_Select_Sorceress_2_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(1) )
endfunction
//===========================================================================
function InitTrig_Select_Sorceress_2 takes nothing returns nothing
set gg_trg_Select_Sorceress_2 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Sorceress_2, Player(1), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Sorceress_2, Condition( function Trig_Select_Sorceress_2_Conditions ) )
call TriggerAddAction( gg_trg_Select_Sorceress_2, function Trig_Select_Sorceress_2_Actions )
endfunction
function Trig_Select_Huntress_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01X' ) ) then
return false
endif
if ( not ( udg_Player2Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Huntress_2_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Huntress_2_Actions takes nothing returns nothing
set udg_Player2Hero = true
call PanCameraToTimedLocForPlayer( Player(1), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(1), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E005', Player(1), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(1)), function Trig_Select_Huntress_2_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(1) )
endfunction
//===========================================================================
function InitTrig_Select_Huntress_2 takes nothing returns nothing
set gg_trg_Select_Huntress_2 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Huntress_2, Player(1), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Huntress_2, Condition( function Trig_Select_Huntress_2_Conditions ) )
call TriggerAddAction( gg_trg_Select_Huntress_2, function Trig_Select_Huntress_2_Actions )
endfunction
function Trig_Select_Cleric_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A022' ) ) then
return false
endif
if ( not ( udg_Player2Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Cleric_2_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Cleric_2_Actions takes nothing returns nothing
set udg_Player2Hero = true
call PanCameraToTimedLocForPlayer( Player(1), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(1), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E007', Player(1), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(1)), function Trig_Select_Cleric_2_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(1) )
endfunction
//===========================================================================
function InitTrig_Select_Cleric_2 takes nothing returns nothing
set gg_trg_Select_Cleric_2 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Cleric_2, Player(1), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Cleric_2, Condition( function Trig_Select_Cleric_2_Conditions ) )
call TriggerAddAction( gg_trg_Select_Cleric_2, function Trig_Select_Cleric_2_Actions )
endfunction
function Trig_Select_Archer_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A029' ) ) then
return false
endif
if ( not ( udg_Player2Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Archer_2_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Archer_2_Actions takes nothing returns nothing
set udg_Player2Hero = true
call PanCameraToTimedLocForPlayer( Player(1), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(1), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E009', Player(1), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(1)), function Trig_Select_Archer_2_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(1) )
endfunction
//===========================================================================
function InitTrig_Select_Archer_2 takes nothing returns nothing
set gg_trg_Select_Archer_2 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Archer_2, Player(1), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Archer_2, Condition( function Trig_Select_Archer_2_Conditions ) )
call TriggerAddAction( gg_trg_Select_Archer_2, function Trig_Select_Archer_2_Actions )
endfunction
function Trig_Select_Animist_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A03X' ) ) then
return false
endif
if ( not ( udg_Player2Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Animist_2_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Animist_2_Actions takes nothing returns nothing
set udg_Player2Hero = true
call PanCameraToTimedLocForPlayer( Player(1), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(1), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'O00C', Player(1), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(1)), function Trig_Select_Animist_2_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(1) )
endfunction
//===========================================================================
function InitTrig_Select_Animist_2 takes nothing returns nothing
set gg_trg_Select_Animist_2 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Animist_2, Player(1), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Animist_2, Condition( function Trig_Select_Animist_2_Conditions ) )
call TriggerAddAction( gg_trg_Select_Animist_2, function Trig_Select_Animist_2_Actions )
endfunction
function Trig_Select_Rogue_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A4' ) ) then
return false
endif
if ( not ( udg_Player2Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Rogue_2_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Rogue_2_Actions takes nothing returns nothing
set udg_Player2Hero = true
call PanCameraToTimedLocForPlayer( Player(1), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(1), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E013', Player(1), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(1)), function Trig_Select_Rogue_2_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(1) )
call UnitAddItemByIdSwapped( 'I02S', GetLastCreatedUnit() )
call EnableTrigger( gg_trg_Enlightenment )
endfunction
//===========================================================================
function InitTrig_Select_Rogue_2 takes nothing returns nothing
set gg_trg_Select_Rogue_2 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Rogue_2, Player(1), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Rogue_2, Condition( function Trig_Select_Rogue_2_Conditions ) )
call TriggerAddAction( gg_trg_Select_Rogue_2, function Trig_Select_Rogue_2_Actions )
endfunction
function Trig_Select_Gambler_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AS' ) ) then
return false
endif
if ( not ( udg_Player2Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Gambler_2_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Gambler_2_Actions takes nothing returns nothing
set udg_Player2Hero = true
call PanCameraToTimedLocForPlayer( Player(1), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(1), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E016', Player(1), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(1)), function Trig_Select_Gambler_2_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(1) )
call EnableTrigger( gg_trg_Virginia_Gossip_X )
call DisableTrigger( gg_trg_Barmaid_Gossip )
endfunction
//===========================================================================
function InitTrig_Select_Gambler_2 takes nothing returns nothing
set gg_trg_Select_Gambler_2 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Gambler_2, Player(1), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Gambler_2, Condition( function Trig_Select_Gambler_2_Conditions ) )
call TriggerAddAction( gg_trg_Select_Gambler_2, function Trig_Select_Gambler_2_Actions )
endfunction
function Trig_Select_Chemist_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AT' ) ) then
return false
endif
if ( not ( udg_Player2Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Chemist_2_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Chemist_2_Actions takes nothing returns nothing
set udg_Player2Hero = true
call PanCameraToTimedLocForPlayer( Player(1), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(1), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'O00M', Player(1), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(1)), function Trig_Select_Chemist_2_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(1) )
endfunction
//===========================================================================
function InitTrig_Select_Chemist_2 takes nothing returns nothing
set gg_trg_Select_Chemist_2 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Chemist_2, Player(1), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Chemist_2, Condition( function Trig_Select_Chemist_2_Conditions ) )
call TriggerAddAction( gg_trg_Select_Chemist_2, function Trig_Select_Chemist_2_Actions )
endfunction
function Trig_Select_Hidden_Sorcerer_2_Conditions takes nothing returns boolean
if ( not ( udg_Player2Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Sorcerer_2_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Sorcerer_2_Actions takes nothing returns nothing
set udg_Player2Hero = true
call PanCameraToTimedLocForPlayer( Player(1), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(1), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'U008', Player(1), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(1)), function Trig_Select_Hidden_Sorcerer_2_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(1) )
call DisableTrigger( gg_trg_Select_Hidden_Sorcerer_1 )
call DisableTrigger( gg_trg_Select_Hidden_Sorcerer_2 )
call DisableTrigger( gg_trg_Select_Hidden_Sorcerer_4 )
call DisableTrigger( gg_trg_Select_Hidden_Sorcerer_5 )
call DisableTrigger( gg_trg_Select_Hidden_Sorcerer_6 )
call DisableTrigger( gg_trg_Select_Hidden_Sorcerer_7 )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Sorcerer_2 takes nothing returns nothing
set gg_trg_Select_Hidden_Sorcerer_2 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Sorcerer_2, Player(1), "-omega", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Sorcerer_2, Condition( function Trig_Select_Hidden_Sorcerer_2_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Sorcerer_2, function Trig_Select_Hidden_Sorcerer_2_Actions )
endfunction
function Trig_Select_Hidden_Assassin_2_Conditions takes nothing returns boolean
if ( not ( udg_Player2Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Assassin_2_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Assassin_2_Actions takes nothing returns nothing
set udg_Player2Hero = true
call PanCameraToTimedLocForPlayer( Player(1), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(1), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E00D', Player(1), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(1)), function Trig_Select_Hidden_Assassin_2_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(1) )
call UnitAddItemByIdSwapped( 'I03K', GetLastCreatedUnit() )
call CreateNUnitsAtLocFacingLocBJ( 1, 'n03G', Player(10), GetRectCenter(gg_rct_Ripley), GetRectCenter(gg_rct_Drake_Rally) )
call DisableTrigger( gg_trg_Select_Hidden_Assassin_1 )
call DisableTrigger( gg_trg_Select_Hidden_Assassin_2 )
call DisableTrigger( gg_trg_Select_Hidden_Assassin_4 )
call DisableTrigger( gg_trg_Select_Hidden_Assassin_5 )
call DisableTrigger( gg_trg_Select_Hidden_Assassin_6 )
call DisableTrigger( gg_trg_Select_Hidden_Assassin_7 )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Assassin_2 takes nothing returns nothing
set gg_trg_Select_Hidden_Assassin_2 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Assassin_2, Player(1), "-slayer", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Assassin_2, Condition( function Trig_Select_Hidden_Assassin_2_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Assassin_2, function Trig_Select_Hidden_Assassin_2_Actions )
endfunction
function Trig_Select_Hidden_Elementalist_2_Conditions takes nothing returns boolean
if ( not ( udg_Player2Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Elementalist_2_Func006002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Elementalist_2_Actions takes nothing returns nothing
set udg_Player2Hero = true
call PanCameraToTimedLocForPlayer( Player(1), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(1), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'H01W', Player(1), GetRectCenter(gg_rct_Start_Location), 270.00 )
call UnitAddItemByIdSwapped( 'I03U', GetLastCreatedUnit() )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(1)), function Trig_Select_Hidden_Elementalist_2_Func006002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(1) )
call DisableTrigger( gg_trg_Select_Hidden_Elementalist_1 )
call DisableTrigger( gg_trg_Select_Hidden_Elementalist_2 )
call DisableTrigger( gg_trg_Select_Hidden_Elementalist_4 )
call DisableTrigger( gg_trg_Select_Hidden_Elementalist_5 )
call DisableTrigger( gg_trg_Select_Hidden_Elementalist_6 )
call DisableTrigger( gg_trg_Select_Hidden_Elementalist_7 )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Elementalist_2 takes nothing returns nothing
set gg_trg_Select_Hidden_Elementalist_2 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Elementalist_2, Player(1), "-combo", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Elementalist_2, Condition( function Trig_Select_Hidden_Elementalist_2_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Elementalist_2, function Trig_Select_Hidden_Elementalist_2_Actions )
endfunction
function Trig_Select_Hidden_Buccaneer_2_Conditions takes nothing returns boolean
if ( not ( udg_Player2Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Buccaneer_2_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Buccaneer_2_Actions takes nothing returns nothing
set udg_Player2Hero = true
call PanCameraToTimedLocForPlayer( Player(1), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(1), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'H01X', Player(1), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(1)), function Trig_Select_Hidden_Buccaneer_2_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(1) )
call DisableTrigger( gg_trg_Select_Hidden_Buccaneer_1 )
call DisableTrigger( gg_trg_Select_Hidden_Buccaneer_2 )
call DisableTrigger( gg_trg_Select_Hidden_Buccaneer_4 )
call DisableTrigger( gg_trg_Select_Hidden_Buccaneer_5 )
call DisableTrigger( gg_trg_Select_Hidden_Buccaneer_6 )
call DisableTrigger( gg_trg_Select_Hidden_Buccaneer_7 )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Buccaneer_2 takes nothing returns nothing
set gg_trg_Select_Hidden_Buccaneer_2 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Buccaneer_2, Player(1), "-simulacrum", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Buccaneer_2, Condition( function Trig_Select_Hidden_Buccaneer_2_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Buccaneer_2, function Trig_Select_Hidden_Buccaneer_2_Actions )
endfunction
function Trig_Select_Hidden_Siren_2_Conditions takes nothing returns boolean
if ( not ( udg_Player2Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Siren_2_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Siren_2_Actions takes nothing returns nothing
set udg_Player2Hero = true
call PanCameraToTimedLocForPlayer( Player(1), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(1), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E00E', Player(1), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(1)), function Trig_Select_Hidden_Siren_2_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(1) )
call DisableTrigger( gg_trg_Select_Hidden_Siren_1 )
call DisableTrigger( gg_trg_Select_Hidden_Siren_2 )
call DisableTrigger( gg_trg_Select_Hidden_Siren_4 )
call DisableTrigger( gg_trg_Select_Hidden_Siren_5 )
call DisableTrigger( gg_trg_Select_Hidden_Siren_6 )
call DisableTrigger( gg_trg_Select_Hidden_Siren_7 )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Siren_2 takes nothing returns nothing
set gg_trg_Select_Hidden_Siren_2 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Siren_2, Player(1), "-avalanche", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Siren_2, Condition( function Trig_Select_Hidden_Siren_2_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Siren_2, function Trig_Select_Hidden_Siren_2_Actions )
endfunction
function Trig_Select_Hidden_Basilisk_2_Conditions takes nothing returns boolean
if ( not ( udg_Player2Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Basilisk_2_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Basilisk_2_Actions takes nothing returns nothing
set udg_Player2Hero = true
call PanCameraToTimedLocForPlayer( Player(1), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(1), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E00F', Player(1), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(1)), function Trig_Select_Hidden_Basilisk_2_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(1) )
call DisableTrigger( gg_trg_Select_Hidden_Basilisk_1 )
call DisableTrigger( gg_trg_Select_Hidden_Basilisk_2 )
call DisableTrigger( gg_trg_Select_Hidden_Basilisk_4 )
call DisableTrigger( gg_trg_Select_Hidden_Basilisk_5 )
call DisableTrigger( gg_trg_Select_Hidden_Basilisk_6 )
call DisableTrigger( gg_trg_Select_Hidden_Basilisk_7 )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Basilisk_2 takes nothing returns nothing
set gg_trg_Select_Hidden_Basilisk_2 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Basilisk_2, Player(1), "-gaia", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Basilisk_2, Condition( function Trig_Select_Hidden_Basilisk_2_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Basilisk_2, function Trig_Select_Hidden_Basilisk_2_Actions )
endfunction
function Trig_Add_To_Party_2_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(1) ) ) then
return false
endif
return true
endfunction
function Trig_Add_To_Party_2_Actions takes nothing returns nothing
set udg_PartyReady = ( udg_PartyReady + 1 )
endfunction
//===========================================================================
function InitTrig_Add_To_Party_2 takes nothing returns nothing
set gg_trg_Add_To_Party_2 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Add_To_Party_2, gg_rct_Start_Location )
call TriggerAddCondition( gg_trg_Add_To_Party_2, Condition( function Trig_Add_To_Party_2_Conditions ) )
call TriggerAddAction( gg_trg_Add_To_Party_2, function Trig_Add_To_Party_2_Actions )
endfunction
function Trig_Select_Hidden_Grunt_2_Conditions takes nothing returns boolean
if ( not ( udg_Player2Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Grunt_2_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Grunt_2_Actions takes nothing returns nothing
set udg_Player2Hero = true
call PanCameraToTimedLocForPlayer( Player(1), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(1), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E01H', Player(1), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(1)), function Trig_Select_Hidden_Grunt_2_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(1) )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Grunt_2 takes nothing returns nothing
set gg_trg_Select_Hidden_Grunt_2 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Grunt_2, Player(1), "-gimp", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Grunt_2, Condition( function Trig_Select_Hidden_Grunt_2_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Grunt_2, function Trig_Select_Hidden_Grunt_2_Actions )
endfunction
function Trig_Select_Hidden_Sniper_2_Conditions takes nothing returns boolean
if ( not ( udg_Player2Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Sniper_2_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Sniper_2_Actions takes nothing returns nothing
set udg_Player2Hero = true
call PanCameraToTimedLocForPlayer( Player(1), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(1), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E01I', Player(1), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(1)), function Trig_Select_Hidden_Sniper_2_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(1) )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Sniper_2 takes nothing returns nothing
set gg_trg_Select_Hidden_Sniper_2 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Sniper_2, Player(1), "-pain", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Sniper_2, Condition( function Trig_Select_Hidden_Sniper_2_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Sniper_2, function Trig_Select_Hidden_Sniper_2_Actions )
endfunction
function Trig_Select_Hidden_Medic_2_Conditions takes nothing returns boolean
if ( not ( udg_Player2Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Medic_2_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Medic_2_Actions takes nothing returns nothing
set udg_Player2Hero = true
call PanCameraToTimedLocForPlayer( Player(1), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(1), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E01J', Player(1), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(1)), function Trig_Select_Hidden_Medic_2_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(1) )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Medic_2 takes nothing returns nothing
set gg_trg_Select_Hidden_Medic_2 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Medic_2, Player(1), "-wife", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Medic_2, Condition( function Trig_Select_Hidden_Medic_2_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Medic_2, function Trig_Select_Hidden_Medic_2_Actions )
endfunction
function Trig_Select_Hidden_Demo_2_Conditions takes nothing returns boolean
if ( not ( udg_Player2Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Demo_2_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Demo_2_Actions takes nothing returns nothing
set udg_Player2Hero = true
call PanCameraToTimedLocForPlayer( Player(1), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(1), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E01K', Player(1), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(1)), function Trig_Select_Hidden_Demo_2_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(1) )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Demo_2 takes nothing returns nothing
set gg_trg_Select_Hidden_Demo_2 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Demo_2, Player(1), "-bear", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Demo_2, Condition( function Trig_Select_Hidden_Demo_2_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Demo_2, function Trig_Select_Hidden_Demo_2_Actions )
endfunction
function Trig_Select_4_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(2) ) ) then
return false
endif
if ( not ( udg_Player4Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_4_Func001002 takes nothing returns nothing
call SetUnitOwner( GetEnumUnit(), Player(2), true )
endfunction
function Trig_Select_4_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(3)), function Trig_Select_4_Func001002 )
call ClearSelectionForPlayer( Player(3) )
call SetUnitOwner( GetTriggerUnit(), Player(3), true )
call SelectUnitForPlayerSingle( GetTriggerUnit(), Player(3) )
endfunction
//===========================================================================
function InitTrig_Select_4 takes nothing returns nothing
set gg_trg_Select_4 = CreateTrigger( )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_Select_4, Player(3), true )
call TriggerAddCondition( gg_trg_Select_4, Condition( function Trig_Select_4_Conditions ) )
call TriggerAddAction( gg_trg_Select_4, function Trig_Select_4_Actions )
endfunction
function Trig_Select_Swordsman_4_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00M' ) ) then
return false
endif
if ( not ( udg_Player4Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Swordsman_4_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Swordsman_4_Actions takes nothing returns nothing
set udg_Player4Hero = true
call PanCameraToTimedLocForPlayer( Player(3), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(3), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'H002', Player(3), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(3)), function Trig_Select_Swordsman_4_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(3) )
endfunction
//===========================================================================
function InitTrig_Select_Swordsman_4 takes nothing returns nothing
set gg_trg_Select_Swordsman_4 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Swordsman_4, Player(3), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Swordsman_4, Condition( function Trig_Select_Swordsman_4_Conditions ) )
call TriggerAddAction( gg_trg_Select_Swordsman_4, function Trig_Select_Swordsman_4_Actions )
endfunction
function Trig_Select_Warlock_4_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00O' ) ) then
return false
endif
if ( not ( udg_Player4Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Warlock_4_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Warlock_4_Actions takes nothing returns nothing
set udg_Player4Hero = true
call PanCameraToTimedLocForPlayer( Player(3), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(3), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'U000', Player(3), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(3)), function Trig_Select_Warlock_4_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(3) )
endfunction
//===========================================================================
function InitTrig_Select_Warlock_4 takes nothing returns nothing
set gg_trg_Select_Warlock_4 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Warlock_4, Player(3), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Warlock_4, Condition( function Trig_Select_Warlock_4_Conditions ) )
call TriggerAddAction( gg_trg_Select_Warlock_4, function Trig_Select_Warlock_4_Actions )
endfunction
function Trig_Select_Druid_4_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A017' ) ) then
return false
endif
if ( not ( udg_Player4Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Druid_4_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Druid_4_Actions takes nothing returns nothing
set udg_Player4Hero = true
call PanCameraToTimedLocForPlayer( Player(3), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(3), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E000', Player(3), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(3)), function Trig_Select_Druid_4_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(3) )
endfunction
//===========================================================================
function InitTrig_Select_Druid_4 takes nothing returns nothing
set gg_trg_Select_Druid_4 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Druid_4, Player(3), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Druid_4, Condition( function Trig_Select_Druid_4_Conditions ) )
call TriggerAddAction( gg_trg_Select_Druid_4, function Trig_Select_Druid_4_Actions )
endfunction
function Trig_Select_Brute_4_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01C' ) ) then
return false
endif
if ( not ( udg_Player4Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Brute_4_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Brute_4_Actions takes nothing returns nothing
set udg_Player4Hero = true
call PanCameraToTimedLocForPlayer( Player(3), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(3), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'O000', Player(3), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(3)), function Trig_Select_Brute_4_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(3) )
endfunction
//===========================================================================
function InitTrig_Select_Brute_4 takes nothing returns nothing
set gg_trg_Select_Brute_4 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Brute_4, Player(3), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Brute_4, Condition( function Trig_Select_Brute_4_Conditions ) )
call TriggerAddAction( gg_trg_Select_Brute_4, function Trig_Select_Brute_4_Actions )
endfunction
function Trig_Select_Sorceress_4_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01R' ) ) then
return false
endif
if ( not ( udg_Player4Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Sorceress_4_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Sorceress_4_Actions takes nothing returns nothing
set udg_Player4Hero = true
call PanCameraToTimedLocForPlayer( Player(3), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(3), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'U006', Player(3), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(3)), function Trig_Select_Sorceress_4_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(3) )
endfunction
//===========================================================================
function InitTrig_Select_Sorceress_4 takes nothing returns nothing
set gg_trg_Select_Sorceress_4 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Sorceress_4, Player(3), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Sorceress_4, Condition( function Trig_Select_Sorceress_4_Conditions ) )
call TriggerAddAction( gg_trg_Select_Sorceress_4, function Trig_Select_Sorceress_4_Actions )
endfunction
function Trig_Select_Huntress_4_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01X' ) ) then
return false
endif
if ( not ( udg_Player4Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Huntress_4_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Huntress_4_Actions takes nothing returns nothing
set udg_Player4Hero = true
call PanCameraToTimedLocForPlayer( Player(3), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(3), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E005', Player(3), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(3)), function Trig_Select_Huntress_4_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(3) )
endfunction
//===========================================================================
function InitTrig_Select_Huntress_4 takes nothing returns nothing
set gg_trg_Select_Huntress_4 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Huntress_4, Player(3), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Huntress_4, Condition( function Trig_Select_Huntress_4_Conditions ) )
call TriggerAddAction( gg_trg_Select_Huntress_4, function Trig_Select_Huntress_4_Actions )
endfunction
function Trig_Select_Cleric_4_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A022' ) ) then
return false
endif
if ( not ( udg_Player4Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Cleric_4_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Cleric_4_Actions takes nothing returns nothing
set udg_Player4Hero = true
call PanCameraToTimedLocForPlayer( Player(3), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(3), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E007', Player(3), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(3)), function Trig_Select_Cleric_4_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(3) )
endfunction
//===========================================================================
function InitTrig_Select_Cleric_4 takes nothing returns nothing
set gg_trg_Select_Cleric_4 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Cleric_4, Player(3), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Cleric_4, Condition( function Trig_Select_Cleric_4_Conditions ) )
call TriggerAddAction( gg_trg_Select_Cleric_4, function Trig_Select_Cleric_4_Actions )
endfunction
function Trig_Select_Archer_4_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A029' ) ) then
return false
endif
if ( not ( udg_Player4Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Archer_4_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Archer_4_Actions takes nothing returns nothing
set udg_Player4Hero = true
call PanCameraToTimedLocForPlayer( Player(3), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(3), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E009', Player(3), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(3)), function Trig_Select_Archer_4_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(3) )
endfunction
//===========================================================================
function InitTrig_Select_Archer_4 takes nothing returns nothing
set gg_trg_Select_Archer_4 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Archer_4, Player(3), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Archer_4, Condition( function Trig_Select_Archer_4_Conditions ) )
call TriggerAddAction( gg_trg_Select_Archer_4, function Trig_Select_Archer_4_Actions )
endfunction
function Trig_Select_Animist_4_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A03X' ) ) then
return false
endif
if ( not ( udg_Player4Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Animist_4_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Animist_4_Actions takes nothing returns nothing
set udg_Player4Hero = true
call PanCameraToTimedLocForPlayer( Player(3), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(3), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'O00C', Player(3), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(3)), function Trig_Select_Animist_4_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(3) )
endfunction
//===========================================================================
function InitTrig_Select_Animist_4 takes nothing returns nothing
set gg_trg_Select_Animist_4 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Animist_4, Player(3), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Animist_4, Condition( function Trig_Select_Animist_4_Conditions ) )
call TriggerAddAction( gg_trg_Select_Animist_4, function Trig_Select_Animist_4_Actions )
endfunction
function Trig_Select_Rogue_4_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A4' ) ) then
return false
endif
if ( not ( udg_Player4Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Rogue_4_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Rogue_4_Actions takes nothing returns nothing
set udg_Player4Hero = true
call PanCameraToTimedLocForPlayer( Player(3), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(3), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E013', Player(3), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(3)), function Trig_Select_Rogue_4_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(3) )
call UnitAddItemByIdSwapped( 'I02S', GetLastCreatedUnit() )
call EnableTrigger( gg_trg_Enlightenment )
endfunction
//===========================================================================
function InitTrig_Select_Rogue_4 takes nothing returns nothing
set gg_trg_Select_Rogue_4 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Rogue_4, Player(3), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Rogue_4, Condition( function Trig_Select_Rogue_4_Conditions ) )
call TriggerAddAction( gg_trg_Select_Rogue_4, function Trig_Select_Rogue_4_Actions )
endfunction
function Trig_Select_Gambler_4_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AS' ) ) then
return false
endif
if ( not ( udg_Player4Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Gambler_4_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Gambler_4_Actions takes nothing returns nothing
set udg_Player4Hero = true
call PanCameraToTimedLocForPlayer( Player(3), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(3), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E016', Player(3), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(3)), function Trig_Select_Gambler_4_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(3) )
call EnableTrigger( gg_trg_Virginia_Gossip_X )
call DisableTrigger( gg_trg_Barmaid_Gossip )
endfunction
//===========================================================================
function InitTrig_Select_Gambler_4 takes nothing returns nothing
set gg_trg_Select_Gambler_4 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Gambler_4, Player(3), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Gambler_4, Condition( function Trig_Select_Gambler_4_Conditions ) )
call TriggerAddAction( gg_trg_Select_Gambler_4, function Trig_Select_Gambler_4_Actions )
endfunction
function Trig_Select_Chemist_4_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AT' ) ) then
return false
endif
if ( not ( udg_Player4Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Chemist_4_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Chemist_4_Actions takes nothing returns nothing
set udg_Player4Hero = true
call PanCameraToTimedLocForPlayer( Player(3), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(3), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'O00M', Player(3), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(3)), function Trig_Select_Chemist_4_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(3) )
endfunction
//===========================================================================
function InitTrig_Select_Chemist_4 takes nothing returns nothing
set gg_trg_Select_Chemist_4 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Chemist_4, Player(3), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Chemist_4, Condition( function Trig_Select_Chemist_4_Conditions ) )
call TriggerAddAction( gg_trg_Select_Chemist_4, function Trig_Select_Chemist_4_Actions )
endfunction
function Trig_Select_Hidden_Sorcerer_4_Conditions takes nothing returns boolean
if ( not ( udg_Player4Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Sorcerer_4_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Sorcerer_4_Actions takes nothing returns nothing
set udg_Player4Hero = true
call PanCameraToTimedLocForPlayer( Player(3), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(3), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'U008', Player(3), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(3)), function Trig_Select_Hidden_Sorcerer_4_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(3) )
call DisableTrigger( gg_trg_Select_Hidden_Sorcerer_1 )
call DisableTrigger( gg_trg_Select_Hidden_Sorcerer_2 )
call DisableTrigger( gg_trg_Select_Hidden_Sorcerer_4 )
call DisableTrigger( gg_trg_Select_Hidden_Sorcerer_5 )
call DisableTrigger( gg_trg_Select_Hidden_Sorcerer_6 )
call DisableTrigger( gg_trg_Select_Hidden_Sorcerer_7 )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Sorcerer_4 takes nothing returns nothing
set gg_trg_Select_Hidden_Sorcerer_4 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Sorcerer_4, Player(3), "-omega", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Sorcerer_4, Condition( function Trig_Select_Hidden_Sorcerer_4_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Sorcerer_4, function Trig_Select_Hidden_Sorcerer_4_Actions )
endfunction
function Trig_Select_Hidden_Assassin_4_Conditions takes nothing returns boolean
if ( not ( udg_Player4Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Assassin_4_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Assassin_4_Actions takes nothing returns nothing
set udg_Player4Hero = true
call PanCameraToTimedLocForPlayer( Player(3), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(3), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E00D', Player(3), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(3)), function Trig_Select_Hidden_Assassin_4_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(3) )
call UnitAddItemByIdSwapped( 'I03K', GetLastCreatedUnit() )
call CreateNUnitsAtLocFacingLocBJ( 1, 'n03G', Player(10), GetRectCenter(gg_rct_Ripley), GetRectCenter(gg_rct_Drake_Rally) )
call DisableTrigger( gg_trg_Select_Hidden_Assassin_1 )
call DisableTrigger( gg_trg_Select_Hidden_Assassin_2 )
call DisableTrigger( gg_trg_Select_Hidden_Assassin_4 )
call DisableTrigger( gg_trg_Select_Hidden_Assassin_5 )
call DisableTrigger( gg_trg_Select_Hidden_Assassin_6 )
call DisableTrigger( gg_trg_Select_Hidden_Assassin_7 )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Assassin_4 takes nothing returns nothing
set gg_trg_Select_Hidden_Assassin_4 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Assassin_4, Player(3), "-slayer", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Assassin_4, Condition( function Trig_Select_Hidden_Assassin_4_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Assassin_4, function Trig_Select_Hidden_Assassin_4_Actions )
endfunction
function Trig_Select_Hidden_Elementalist_4_Conditions takes nothing returns boolean
if ( not ( udg_Player4Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Elementalist_4_Func006002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Elementalist_4_Actions takes nothing returns nothing
set udg_Player4Hero = true
call PanCameraToTimedLocForPlayer( Player(3), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(3), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'H01W', Player(3), GetRectCenter(gg_rct_Start_Location), 270.00 )
call UnitAddItemByIdSwapped( 'I03U', GetLastCreatedUnit() )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(3)), function Trig_Select_Hidden_Elementalist_4_Func006002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(3) )
call DisableTrigger( gg_trg_Select_Hidden_Elementalist_1 )
call DisableTrigger( gg_trg_Select_Hidden_Elementalist_2 )
call DisableTrigger( gg_trg_Select_Hidden_Elementalist_4 )
call DisableTrigger( gg_trg_Select_Hidden_Elementalist_5 )
call DisableTrigger( gg_trg_Select_Hidden_Elementalist_6 )
call DisableTrigger( gg_trg_Select_Hidden_Elementalist_7 )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Elementalist_4 takes nothing returns nothing
set gg_trg_Select_Hidden_Elementalist_4 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Elementalist_4, Player(3), "-combo", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Elementalist_4, Condition( function Trig_Select_Hidden_Elementalist_4_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Elementalist_4, function Trig_Select_Hidden_Elementalist_4_Actions )
endfunction
function Trig_Select_Hidden_Buccaneer_4_Conditions takes nothing returns boolean
if ( not ( udg_Player4Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Buccaneer_4_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Buccaneer_4_Actions takes nothing returns nothing
set udg_Player4Hero = true
call PanCameraToTimedLocForPlayer( Player(3), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(3), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'H01X', Player(3), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(3)), function Trig_Select_Hidden_Buccaneer_4_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(3) )
call DisableTrigger( gg_trg_Select_Hidden_Buccaneer_1 )
call DisableTrigger( gg_trg_Select_Hidden_Buccaneer_2 )
call DisableTrigger( gg_trg_Select_Hidden_Buccaneer_4 )
call DisableTrigger( gg_trg_Select_Hidden_Buccaneer_5 )
call DisableTrigger( gg_trg_Select_Hidden_Buccaneer_6 )
call DisableTrigger( gg_trg_Select_Hidden_Buccaneer_7 )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Buccaneer_4 takes nothing returns nothing
set gg_trg_Select_Hidden_Buccaneer_4 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Buccaneer_4, Player(3), "-simulacrum", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Buccaneer_4, Condition( function Trig_Select_Hidden_Buccaneer_4_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Buccaneer_4, function Trig_Select_Hidden_Buccaneer_4_Actions )
endfunction
function Trig_Select_Hidden_Siren_4_Conditions takes nothing returns boolean
if ( not ( udg_Player4Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Siren_4_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Siren_4_Actions takes nothing returns nothing
set udg_Player4Hero = true
call PanCameraToTimedLocForPlayer( Player(3), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(3), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E00E', Player(3), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(3)), function Trig_Select_Hidden_Siren_4_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(3) )
call DisableTrigger( gg_trg_Select_Hidden_Siren_1 )
call DisableTrigger( gg_trg_Select_Hidden_Siren_2 )
call DisableTrigger( gg_trg_Select_Hidden_Siren_4 )
call DisableTrigger( gg_trg_Select_Hidden_Siren_5 )
call DisableTrigger( gg_trg_Select_Hidden_Siren_6 )
call DisableTrigger( gg_trg_Select_Hidden_Siren_7 )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Siren_4 takes nothing returns nothing
set gg_trg_Select_Hidden_Siren_4 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Siren_4, Player(3), "-avalanche", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Siren_4, Condition( function Trig_Select_Hidden_Siren_4_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Siren_4, function Trig_Select_Hidden_Siren_4_Actions )
endfunction
function Trig_Select_Hidden_Basilisk_4_Conditions takes nothing returns boolean
if ( not ( udg_Player4Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Basilisk_4_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Basilisk_4_Actions takes nothing returns nothing
set udg_Player4Hero = true
call PanCameraToTimedLocForPlayer( Player(3), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(3), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E00F', Player(3), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(3)), function Trig_Select_Hidden_Basilisk_4_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(3) )
call DisableTrigger( gg_trg_Select_Hidden_Basilisk_1 )
call DisableTrigger( gg_trg_Select_Hidden_Basilisk_2 )
call DisableTrigger( gg_trg_Select_Hidden_Basilisk_4 )
call DisableTrigger( gg_trg_Select_Hidden_Basilisk_5 )
call DisableTrigger( gg_trg_Select_Hidden_Basilisk_6 )
call DisableTrigger( gg_trg_Select_Hidden_Basilisk_7 )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Basilisk_4 takes nothing returns nothing
set gg_trg_Select_Hidden_Basilisk_4 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Basilisk_4, Player(3), "-gaia", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Basilisk_4, Condition( function Trig_Select_Hidden_Basilisk_4_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Basilisk_4, function Trig_Select_Hidden_Basilisk_4_Actions )
endfunction
function Trig_Add_To_Party_4_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(3) ) ) then
return false
endif
return true
endfunction
function Trig_Add_To_Party_4_Actions takes nothing returns nothing
set udg_PartyReady = ( udg_PartyReady + 1 )
endfunction
//===========================================================================
function InitTrig_Add_To_Party_4 takes nothing returns nothing
set gg_trg_Add_To_Party_4 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Add_To_Party_4, gg_rct_Start_Location )
call TriggerAddCondition( gg_trg_Add_To_Party_4, Condition( function Trig_Add_To_Party_4_Conditions ) )
call TriggerAddAction( gg_trg_Add_To_Party_4, function Trig_Add_To_Party_4_Actions )
endfunction
function Trig_Select_Hidden_Grunt_4_Conditions takes nothing returns boolean
if ( not ( udg_Player4Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Grunt_4_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Grunt_4_Actions takes nothing returns nothing
set udg_Player4Hero = true
call PanCameraToTimedLocForPlayer( Player(3), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(3), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E01H', Player(3), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(3)), function Trig_Select_Hidden_Grunt_4_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(3) )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Grunt_4 takes nothing returns nothing
set gg_trg_Select_Hidden_Grunt_4 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Grunt_4, Player(3), "-gimp", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Grunt_4, Condition( function Trig_Select_Hidden_Grunt_4_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Grunt_4, function Trig_Select_Hidden_Grunt_4_Actions )
endfunction
function Trig_Select_Hidden_Sniper_4_Conditions takes nothing returns boolean
if ( not ( udg_Player4Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Sniper_4_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Sniper_4_Actions takes nothing returns nothing
set udg_Player4Hero = true
call PanCameraToTimedLocForPlayer( Player(3), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(3), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E01I', Player(3), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(3)), function Trig_Select_Hidden_Sniper_4_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(3) )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Sniper_4 takes nothing returns nothing
set gg_trg_Select_Hidden_Sniper_4 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Sniper_4, Player(3), "-pain", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Sniper_4, Condition( function Trig_Select_Hidden_Sniper_4_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Sniper_4, function Trig_Select_Hidden_Sniper_4_Actions )
endfunction
function Trig_Select_Hidden_Medic_4_Conditions takes nothing returns boolean
if ( not ( udg_Player4Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Medic_4_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Medic_4_Actions takes nothing returns nothing
set udg_Player4Hero = true
call PanCameraToTimedLocForPlayer( Player(3), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(3), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E01J', Player(3), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(3)), function Trig_Select_Hidden_Medic_4_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(3) )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Medic_4 takes nothing returns nothing
set gg_trg_Select_Hidden_Medic_4 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Medic_4, Player(3), "-wife", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Medic_4, Condition( function Trig_Select_Hidden_Medic_4_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Medic_4, function Trig_Select_Hidden_Medic_4_Actions )
endfunction
function Trig_Select_Hidden_Demo_4_Conditions takes nothing returns boolean
if ( not ( udg_Player4Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Demo_4_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Demo_4_Actions takes nothing returns nothing
set udg_Player4Hero = true
call PanCameraToTimedLocForPlayer( Player(3), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(3), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E01K', Player(3), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(3)), function Trig_Select_Hidden_Demo_4_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(3) )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Demo_4 takes nothing returns nothing
set gg_trg_Select_Hidden_Demo_4 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Demo_4, Player(3), "-bear", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Demo_4, Condition( function Trig_Select_Hidden_Demo_4_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Demo_4, function Trig_Select_Hidden_Demo_4_Actions )
endfunction
function Trig_Select_5_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(2) ) ) then
return false
endif
if ( not ( udg_Player5Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_5_Func001002 takes nothing returns nothing
call SetUnitOwner( GetEnumUnit(), Player(2), true )
endfunction
function Trig_Select_5_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(4)), function Trig_Select_5_Func001002 )
call ClearSelectionForPlayer( Player(4) )
call SetUnitOwner( GetTriggerUnit(), Player(4), true )
call SelectUnitForPlayerSingle( GetTriggerUnit(), Player(4) )
endfunction
//===========================================================================
function InitTrig_Select_5 takes nothing returns nothing
set gg_trg_Select_5 = CreateTrigger( )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_Select_5, Player(4), true )
call TriggerAddCondition( gg_trg_Select_5, Condition( function Trig_Select_5_Conditions ) )
call TriggerAddAction( gg_trg_Select_5, function Trig_Select_5_Actions )
endfunction
function Trig_Select_Swordsman_5_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00M' ) ) then
return false
endif
if ( not ( udg_Player5Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Swordsman_5_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Swordsman_5_Actions takes nothing returns nothing
set udg_Player5Hero = true
call PanCameraToTimedLocForPlayer( Player(4), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(4), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'H002', Player(4), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(4)), function Trig_Select_Swordsman_5_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(4) )
endfunction
//===========================================================================
function InitTrig_Select_Swordsman_5 takes nothing returns nothing
set gg_trg_Select_Swordsman_5 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Swordsman_5, Player(4), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Swordsman_5, Condition( function Trig_Select_Swordsman_5_Conditions ) )
call TriggerAddAction( gg_trg_Select_Swordsman_5, function Trig_Select_Swordsman_5_Actions )
endfunction
function Trig_Select_Warlock_5_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00O' ) ) then
return false
endif
if ( not ( udg_Player5Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Warlock_5_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Warlock_5_Actions takes nothing returns nothing
set udg_Player5Hero = true
call PanCameraToTimedLocForPlayer( Player(4), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(4), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'U000', Player(4), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(4)), function Trig_Select_Warlock_5_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(4) )
endfunction
//===========================================================================
function InitTrig_Select_Warlock_5 takes nothing returns nothing
set gg_trg_Select_Warlock_5 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Warlock_5, Player(4), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Warlock_5, Condition( function Trig_Select_Warlock_5_Conditions ) )
call TriggerAddAction( gg_trg_Select_Warlock_5, function Trig_Select_Warlock_5_Actions )
endfunction
function Trig_Select_Druid_5_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A017' ) ) then
return false
endif
if ( not ( udg_Player5Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Druid_5_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Druid_5_Actions takes nothing returns nothing
set udg_Player5Hero = true
call PanCameraToTimedLocForPlayer( Player(4), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(4), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E000', Player(4), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(4)), function Trig_Select_Druid_5_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(4) )
endfunction
//===========================================================================
function InitTrig_Select_Druid_5 takes nothing returns nothing
set gg_trg_Select_Druid_5 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Druid_5, Player(4), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Druid_5, Condition( function Trig_Select_Druid_5_Conditions ) )
call TriggerAddAction( gg_trg_Select_Druid_5, function Trig_Select_Druid_5_Actions )
endfunction
function Trig_Select_Brute_5_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01C' ) ) then
return false
endif
if ( not ( udg_Player5Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Brute_5_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Brute_5_Actions takes nothing returns nothing
set udg_Player5Hero = true
call PanCameraToTimedLocForPlayer( Player(4), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(4), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'O000', Player(4), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(4)), function Trig_Select_Brute_5_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(4) )
endfunction
//===========================================================================
function InitTrig_Select_Brute_5 takes nothing returns nothing
set gg_trg_Select_Brute_5 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Brute_5, Player(4), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Brute_5, Condition( function Trig_Select_Brute_5_Conditions ) )
call TriggerAddAction( gg_trg_Select_Brute_5, function Trig_Select_Brute_5_Actions )
endfunction
function Trig_Select_Sorceress_5_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01R' ) ) then
return false
endif
if ( not ( udg_Player5Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Sorceress_5_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Sorceress_5_Actions takes nothing returns nothing
set udg_Player5Hero = true
call PanCameraToTimedLocForPlayer( Player(4), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(4), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'U006', Player(4), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(4)), function Trig_Select_Sorceress_5_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(4) )
endfunction
//===========================================================================
function InitTrig_Select_Sorceress_5 takes nothing returns nothing
set gg_trg_Select_Sorceress_5 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Sorceress_5, Player(4), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Sorceress_5, Condition( function Trig_Select_Sorceress_5_Conditions ) )
call TriggerAddAction( gg_trg_Select_Sorceress_5, function Trig_Select_Sorceress_5_Actions )
endfunction
function Trig_Select_Huntress_5_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01X' ) ) then
return false
endif
if ( not ( udg_Player5Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Huntress_5_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Huntress_5_Actions takes nothing returns nothing
set udg_Player5Hero = true
call PanCameraToTimedLocForPlayer( Player(4), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(4), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E005', Player(4), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(4)), function Trig_Select_Huntress_5_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(4) )
endfunction
//===========================================================================
function InitTrig_Select_Huntress_5 takes nothing returns nothing
set gg_trg_Select_Huntress_5 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Huntress_5, Player(4), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Huntress_5, Condition( function Trig_Select_Huntress_5_Conditions ) )
call TriggerAddAction( gg_trg_Select_Huntress_5, function Trig_Select_Huntress_5_Actions )
endfunction
function Trig_Select_Cleric_5_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A022' ) ) then
return false
endif
if ( not ( udg_Player5Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Cleric_5_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Cleric_5_Actions takes nothing returns nothing
set udg_Player5Hero = true
call PanCameraToTimedLocForPlayer( Player(4), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(4), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E007', Player(4), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(4)), function Trig_Select_Cleric_5_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(4) )
endfunction
//===========================================================================
function InitTrig_Select_Cleric_5 takes nothing returns nothing
set gg_trg_Select_Cleric_5 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Cleric_5, Player(4), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Cleric_5, Condition( function Trig_Select_Cleric_5_Conditions ) )
call TriggerAddAction( gg_trg_Select_Cleric_5, function Trig_Select_Cleric_5_Actions )
endfunction
function Trig_Select_Archer_5_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A029' ) ) then
return false
endif
if ( not ( udg_Player5Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Archer_5_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Archer_5_Actions takes nothing returns nothing
set udg_Player5Hero = true
call PanCameraToTimedLocForPlayer( Player(4), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(4), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E009', Player(4), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(4)), function Trig_Select_Archer_5_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(4) )
endfunction
//===========================================================================
function InitTrig_Select_Archer_5 takes nothing returns nothing
set gg_trg_Select_Archer_5 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Archer_5, Player(4), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Archer_5, Condition( function Trig_Select_Archer_5_Conditions ) )
call TriggerAddAction( gg_trg_Select_Archer_5, function Trig_Select_Archer_5_Actions )
endfunction
function Trig_Select_Animist_5_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A03X' ) ) then
return false
endif
if ( not ( udg_Player5Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Animist_5_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Animist_5_Actions takes nothing returns nothing
set udg_Player5Hero = true
call PanCameraToTimedLocForPlayer( Player(4), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(4), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'O00C', Player(4), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(4)), function Trig_Select_Animist_5_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(4) )
endfunction
//===========================================================================
function InitTrig_Select_Animist_5 takes nothing returns nothing
set gg_trg_Select_Animist_5 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Animist_5, Player(4), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Animist_5, Condition( function Trig_Select_Animist_5_Conditions ) )
call TriggerAddAction( gg_trg_Select_Animist_5, function Trig_Select_Animist_5_Actions )
endfunction
function Trig_Select_Rogue_5_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A4' ) ) then
return false
endif
if ( not ( udg_Player5Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Rogue_5_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Rogue_5_Actions takes nothing returns nothing
set udg_Player5Hero = true
call PanCameraToTimedLocForPlayer( Player(4), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(4), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E013', Player(4), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(4)), function Trig_Select_Rogue_5_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(4) )
call UnitAddItemByIdSwapped( 'I02S', GetLastCreatedUnit() )
call EnableTrigger( gg_trg_Enlightenment )
endfunction
//===========================================================================
function InitTrig_Select_Rogue_5 takes nothing returns nothing
set gg_trg_Select_Rogue_5 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Rogue_5, Player(4), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Rogue_5, Condition( function Trig_Select_Rogue_5_Conditions ) )
call TriggerAddAction( gg_trg_Select_Rogue_5, function Trig_Select_Rogue_5_Actions )
endfunction
function Trig_Select_Gambler_5_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AS' ) ) then
return false
endif
if ( not ( udg_Player5Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Gambler_5_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Gambler_5_Actions takes nothing returns nothing
set udg_Player5Hero = true
call PanCameraToTimedLocForPlayer( Player(4), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(4), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E016', Player(4), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(4)), function Trig_Select_Gambler_5_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(4) )
call EnableTrigger( gg_trg_Virginia_Gossip_X )
call DisableTrigger( gg_trg_Barmaid_Gossip )
endfunction
//===========================================================================
function InitTrig_Select_Gambler_5 takes nothing returns nothing
set gg_trg_Select_Gambler_5 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Gambler_5, Player(4), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Gambler_5, Condition( function Trig_Select_Gambler_5_Conditions ) )
call TriggerAddAction( gg_trg_Select_Gambler_5, function Trig_Select_Gambler_5_Actions )
endfunction
function Trig_Select_Chemist_5_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AT' ) ) then
return false
endif
if ( not ( udg_Player5Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Chemist_5_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Chemist_5_Actions takes nothing returns nothing
set udg_Player5Hero = true
call PanCameraToTimedLocForPlayer( Player(4), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(4), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'O00M', Player(4), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(4)), function Trig_Select_Chemist_5_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(4) )
endfunction
//===========================================================================
function InitTrig_Select_Chemist_5 takes nothing returns nothing
set gg_trg_Select_Chemist_5 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Chemist_5, Player(4), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Chemist_5, Condition( function Trig_Select_Chemist_5_Conditions ) )
call TriggerAddAction( gg_trg_Select_Chemist_5, function Trig_Select_Chemist_5_Actions )
endfunction
function Trig_Select_Hidden_Sorcerer_5_Conditions takes nothing returns boolean
if ( not ( udg_Player5Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Sorcerer_5_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Sorcerer_5_Actions takes nothing returns nothing
set udg_Player5Hero = true
call PanCameraToTimedLocForPlayer( Player(4), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(4), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'U008', Player(4), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(4)), function Trig_Select_Hidden_Sorcerer_5_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(4) )
call DisableTrigger( gg_trg_Select_Hidden_Sorcerer_1 )
call DisableTrigger( gg_trg_Select_Hidden_Sorcerer_2 )
call DisableTrigger( gg_trg_Select_Hidden_Sorcerer_4 )
call DisableTrigger( gg_trg_Select_Hidden_Sorcerer_5 )
call DisableTrigger( gg_trg_Select_Hidden_Sorcerer_6 )
call DisableTrigger( gg_trg_Select_Hidden_Sorcerer_7 )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Sorcerer_5 takes nothing returns nothing
set gg_trg_Select_Hidden_Sorcerer_5 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Sorcerer_5, Player(4), "-omega", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Sorcerer_5, Condition( function Trig_Select_Hidden_Sorcerer_5_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Sorcerer_5, function Trig_Select_Hidden_Sorcerer_5_Actions )
endfunction
function Trig_Select_Hidden_Assassin_5_Conditions takes nothing returns boolean
if ( not ( udg_Player5Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Assassin_5_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Assassin_5_Actions takes nothing returns nothing
set udg_Player5Hero = true
call PanCameraToTimedLocForPlayer( Player(4), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(4), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E00D', Player(4), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(4)), function Trig_Select_Hidden_Assassin_5_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(4) )
call UnitAddItemByIdSwapped( 'I03K', GetLastCreatedUnit() )
call CreateNUnitsAtLocFacingLocBJ( 1, 'n03G', Player(10), GetRectCenter(gg_rct_Ripley), GetRectCenter(gg_rct_Drake_Rally) )
call DisableTrigger( gg_trg_Select_Hidden_Assassin_1 )
call DisableTrigger( gg_trg_Select_Hidden_Assassin_2 )
call DisableTrigger( gg_trg_Select_Hidden_Assassin_4 )
call DisableTrigger( gg_trg_Select_Hidden_Assassin_5 )
call DisableTrigger( gg_trg_Select_Hidden_Assassin_6 )
call DisableTrigger( gg_trg_Select_Hidden_Assassin_7 )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Assassin_5 takes nothing returns nothing
set gg_trg_Select_Hidden_Assassin_5 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Assassin_5, Player(4), "-slayer", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Assassin_5, Condition( function Trig_Select_Hidden_Assassin_5_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Assassin_5, function Trig_Select_Hidden_Assassin_5_Actions )
endfunction
function Trig_Select_Hidden_Elementalist_5_Conditions takes nothing returns boolean
if ( not ( udg_Player5Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Elementalist_5_Func006002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Elementalist_5_Actions takes nothing returns nothing
set udg_Player5Hero = true
call PanCameraToTimedLocForPlayer( Player(4), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(4), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'H01W', Player(4), GetRectCenter(gg_rct_Start_Location), 270.00 )
call UnitAddItemByIdSwapped( 'I03U', GetLastCreatedUnit() )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(4)), function Trig_Select_Hidden_Elementalist_5_Func006002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(4) )
call DisableTrigger( gg_trg_Select_Hidden_Elementalist_1 )
call DisableTrigger( gg_trg_Select_Hidden_Elementalist_2 )
call DisableTrigger( gg_trg_Select_Hidden_Elementalist_4 )
call DisableTrigger( gg_trg_Select_Hidden_Elementalist_5 )
call DisableTrigger( gg_trg_Select_Hidden_Elementalist_6 )
call DisableTrigger( gg_trg_Select_Hidden_Elementalist_7 )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Elementalist_5 takes nothing returns nothing
set gg_trg_Select_Hidden_Elementalist_5 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Elementalist_5, Player(4), "-combo", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Elementalist_5, Condition( function Trig_Select_Hidden_Elementalist_5_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Elementalist_5, function Trig_Select_Hidden_Elementalist_5_Actions )
endfunction
function Trig_Select_Hidden_Buccaneer_5_Conditions takes nothing returns boolean
if ( not ( udg_Player5Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Buccaneer_5_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Buccaneer_5_Actions takes nothing returns nothing
set udg_Player5Hero = true
call PanCameraToTimedLocForPlayer( Player(4), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(4), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'H01X', Player(4), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(4)), function Trig_Select_Hidden_Buccaneer_5_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(4) )
call DisableTrigger( gg_trg_Select_Hidden_Buccaneer_1 )
call DisableTrigger( gg_trg_Select_Hidden_Buccaneer_2 )
call DisableTrigger( gg_trg_Select_Hidden_Buccaneer_4 )
call DisableTrigger( gg_trg_Select_Hidden_Buccaneer_5 )
call DisableTrigger( gg_trg_Select_Hidden_Buccaneer_6 )
call DisableTrigger( gg_trg_Select_Hidden_Buccaneer_7 )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Buccaneer_5 takes nothing returns nothing
set gg_trg_Select_Hidden_Buccaneer_5 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Buccaneer_5, Player(4), "-simulacrum", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Buccaneer_5, Condition( function Trig_Select_Hidden_Buccaneer_5_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Buccaneer_5, function Trig_Select_Hidden_Buccaneer_5_Actions )
endfunction
function Trig_Select_Hidden_Siren_5_Conditions takes nothing returns boolean
if ( not ( udg_Player5Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Siren_5_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Siren_5_Actions takes nothing returns nothing
set udg_Player5Hero = true
call PanCameraToTimedLocForPlayer( Player(4), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(4), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E00E', Player(4), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(4)), function Trig_Select_Hidden_Siren_5_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(4) )
call DisableTrigger( gg_trg_Select_Hidden_Siren_1 )
call DisableTrigger( gg_trg_Select_Hidden_Siren_2 )
call DisableTrigger( gg_trg_Select_Hidden_Siren_4 )
call DisableTrigger( gg_trg_Select_Hidden_Siren_5 )
call DisableTrigger( gg_trg_Select_Hidden_Siren_6 )
call DisableTrigger( gg_trg_Select_Hidden_Siren_7 )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Siren_5 takes nothing returns nothing
set gg_trg_Select_Hidden_Siren_5 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Siren_5, Player(4), "-avalanche", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Siren_5, Condition( function Trig_Select_Hidden_Siren_5_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Siren_5, function Trig_Select_Hidden_Siren_5_Actions )
endfunction
function Trig_Select_Hidden_Basilisk_5_Conditions takes nothing returns boolean
if ( not ( udg_Player5Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Basilisk_5_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Basilisk_5_Actions takes nothing returns nothing
set udg_Player5Hero = true
call PanCameraToTimedLocForPlayer( Player(4), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(4), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E00F', Player(4), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(4)), function Trig_Select_Hidden_Basilisk_5_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(4) )
call DisableTrigger( gg_trg_Select_Hidden_Basilisk_1 )
call DisableTrigger( gg_trg_Select_Hidden_Basilisk_2 )
call DisableTrigger( gg_trg_Select_Hidden_Basilisk_4 )
call DisableTrigger( gg_trg_Select_Hidden_Basilisk_5 )
call DisableTrigger( gg_trg_Select_Hidden_Basilisk_6 )
call DisableTrigger( gg_trg_Select_Hidden_Basilisk_7 )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Basilisk_5 takes nothing returns nothing
set gg_trg_Select_Hidden_Basilisk_5 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Basilisk_5, Player(4), "-gaia", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Basilisk_5, Condition( function Trig_Select_Hidden_Basilisk_5_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Basilisk_5, function Trig_Select_Hidden_Basilisk_5_Actions )
endfunction
function Trig_Add_To_Party_5_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(4) ) ) then
return false
endif
return true
endfunction
function Trig_Add_To_Party_5_Actions takes nothing returns nothing
set udg_PartyReady = ( udg_PartyReady + 1 )
endfunction
//===========================================================================
function InitTrig_Add_To_Party_5 takes nothing returns nothing
set gg_trg_Add_To_Party_5 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Add_To_Party_5, gg_rct_Start_Location )
call TriggerAddCondition( gg_trg_Add_To_Party_5, Condition( function Trig_Add_To_Party_5_Conditions ) )
call TriggerAddAction( gg_trg_Add_To_Party_5, function Trig_Add_To_Party_5_Actions )
endfunction
function Trig_Select_Hidden_Grunt_5_Conditions takes nothing returns boolean
if ( not ( udg_Player5Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Grunt_5_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Grunt_5_Actions takes nothing returns nothing
set udg_Player5Hero = true
call PanCameraToTimedLocForPlayer( Player(4), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(4), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E01H', Player(4), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(4)), function Trig_Select_Hidden_Grunt_5_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(4) )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Grunt_5 takes nothing returns nothing
set gg_trg_Select_Hidden_Grunt_5 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Grunt_5, Player(4), "-gimp", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Grunt_5, Condition( function Trig_Select_Hidden_Grunt_5_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Grunt_5, function Trig_Select_Hidden_Grunt_5_Actions )
endfunction
function Trig_Select_Hidden_Sniper_5_Conditions takes nothing returns boolean
if ( not ( udg_Player5Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Sniper_5_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Sniper_5_Actions takes nothing returns nothing
set udg_Player5Hero = true
call PanCameraToTimedLocForPlayer( Player(4), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(4), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E01I', Player(4), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(4)), function Trig_Select_Hidden_Sniper_5_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(4) )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Sniper_5 takes nothing returns nothing
set gg_trg_Select_Hidden_Sniper_5 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Sniper_5, Player(4), "-pain", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Sniper_5, Condition( function Trig_Select_Hidden_Sniper_5_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Sniper_5, function Trig_Select_Hidden_Sniper_5_Actions )
endfunction
function Trig_Select_Hidden_Medic_5_Conditions takes nothing returns boolean
if ( not ( udg_Player5Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Medic_5_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Medic_5_Actions takes nothing returns nothing
set udg_Player5Hero = true
call PanCameraToTimedLocForPlayer( Player(4), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(4), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E01J', Player(4), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(4)), function Trig_Select_Hidden_Medic_5_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(4) )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Medic_5 takes nothing returns nothing
set gg_trg_Select_Hidden_Medic_5 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Medic_5, Player(4), "-wife", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Medic_5, Condition( function Trig_Select_Hidden_Medic_5_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Medic_5, function Trig_Select_Hidden_Medic_5_Actions )
endfunction
function Trig_Select_Hidden_Demo_5_Conditions takes nothing returns boolean
if ( not ( udg_Player5Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Demo_5_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Demo_5_Actions takes nothing returns nothing
set udg_Player5Hero = true
call PanCameraToTimedLocForPlayer( Player(4), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(4), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E01K', Player(4), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(4)), function Trig_Select_Hidden_Demo_5_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(4) )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Demo_5 takes nothing returns nothing
set gg_trg_Select_Hidden_Demo_5 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Demo_5, Player(4), "-bear", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Demo_5, Condition( function Trig_Select_Hidden_Demo_5_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Demo_5, function Trig_Select_Hidden_Demo_5_Actions )
endfunction
function Trig_Select_6_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(2) ) ) then
return false
endif
if ( not ( udg_Player6Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_6_Func001002 takes nothing returns nothing
call SetUnitOwner( GetEnumUnit(), Player(2), true )
endfunction
function Trig_Select_6_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(5)), function Trig_Select_6_Func001002 )
call ClearSelectionForPlayer( Player(5) )
call SetUnitOwner( GetTriggerUnit(), Player(5), true )
call SelectUnitForPlayerSingle( GetTriggerUnit(), Player(5) )
endfunction
//===========================================================================
function InitTrig_Select_6 takes nothing returns nothing
set gg_trg_Select_6 = CreateTrigger( )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_Select_6, Player(5), true )
call TriggerAddCondition( gg_trg_Select_6, Condition( function Trig_Select_6_Conditions ) )
call TriggerAddAction( gg_trg_Select_6, function Trig_Select_6_Actions )
endfunction
function Trig_Select_Swordsman_6_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00M' ) ) then
return false
endif
if ( not ( udg_Player6Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Swordsman_6_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Swordsman_6_Actions takes nothing returns nothing
set udg_Player6Hero = true
call PanCameraToTimedLocForPlayer( Player(5), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(5), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'H002', Player(5), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(5)), function Trig_Select_Swordsman_6_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(5) )
endfunction
//===========================================================================
function InitTrig_Select_Swordsman_6 takes nothing returns nothing
set gg_trg_Select_Swordsman_6 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Swordsman_6, Player(5), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Swordsman_6, Condition( function Trig_Select_Swordsman_6_Conditions ) )
call TriggerAddAction( gg_trg_Select_Swordsman_6, function Trig_Select_Swordsman_6_Actions )
endfunction
function Trig_Select_Warlock_6_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00O' ) ) then
return false
endif
if ( not ( udg_Player6Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Warlock_6_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Warlock_6_Actions takes nothing returns nothing
set udg_Player6Hero = true
call PanCameraToTimedLocForPlayer( Player(5), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(5), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'U000', Player(5), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(5)), function Trig_Select_Warlock_6_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(5) )
endfunction
//===========================================================================
function InitTrig_Select_Warlock_6 takes nothing returns nothing
set gg_trg_Select_Warlock_6 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Warlock_6, Player(5), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Warlock_6, Condition( function Trig_Select_Warlock_6_Conditions ) )
call TriggerAddAction( gg_trg_Select_Warlock_6, function Trig_Select_Warlock_6_Actions )
endfunction
function Trig_Select_Druid_6_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A017' ) ) then
return false
endif
if ( not ( udg_Player6Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Druid_6_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Druid_6_Actions takes nothing returns nothing
set udg_Player6Hero = true
call PanCameraToTimedLocForPlayer( Player(5), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(5), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E000', Player(5), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(5)), function Trig_Select_Druid_6_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(5) )
endfunction
//===========================================================================
function InitTrig_Select_Druid_6 takes nothing returns nothing
set gg_trg_Select_Druid_6 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Druid_6, Player(5), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Druid_6, Condition( function Trig_Select_Druid_6_Conditions ) )
call TriggerAddAction( gg_trg_Select_Druid_6, function Trig_Select_Druid_6_Actions )
endfunction
function Trig_Select_Brute_6_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01C' ) ) then
return false
endif
if ( not ( udg_Player6Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Brute_6_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Brute_6_Actions takes nothing returns nothing
set udg_Player6Hero = true
call PanCameraToTimedLocForPlayer( Player(5), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(5), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'O000', Player(5), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(5)), function Trig_Select_Brute_6_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(5) )
endfunction
//===========================================================================
function InitTrig_Select_Brute_6 takes nothing returns nothing
set gg_trg_Select_Brute_6 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Brute_6, Player(5), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Brute_6, Condition( function Trig_Select_Brute_6_Conditions ) )
call TriggerAddAction( gg_trg_Select_Brute_6, function Trig_Select_Brute_6_Actions )
endfunction
function Trig_Select_Sorceress_6_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01R' ) ) then
return false
endif
if ( not ( udg_Player6Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Sorceress_6_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Sorceress_6_Actions takes nothing returns nothing
set udg_Player6Hero = true
call PanCameraToTimedLocForPlayer( Player(5), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(5), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'U006', Player(5), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(5)), function Trig_Select_Sorceress_6_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(5) )
endfunction
//===========================================================================
function InitTrig_Select_Sorceress_6 takes nothing returns nothing
set gg_trg_Select_Sorceress_6 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Sorceress_6, Player(5), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Sorceress_6, Condition( function Trig_Select_Sorceress_6_Conditions ) )
call TriggerAddAction( gg_trg_Select_Sorceress_6, function Trig_Select_Sorceress_6_Actions )
endfunction
function Trig_Select_Huntress_6_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01X' ) ) then
return false
endif
if ( not ( udg_Player6Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Huntress_6_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Huntress_6_Actions takes nothing returns nothing
set udg_Player6Hero = true
call PanCameraToTimedLocForPlayer( Player(5), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(5), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E005', Player(5), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(5)), function Trig_Select_Huntress_6_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(5) )
endfunction
//===========================================================================
function InitTrig_Select_Huntress_6 takes nothing returns nothing
set gg_trg_Select_Huntress_6 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Huntress_6, Player(5), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Huntress_6, Condition( function Trig_Select_Huntress_6_Conditions ) )
call TriggerAddAction( gg_trg_Select_Huntress_6, function Trig_Select_Huntress_6_Actions )
endfunction
function Trig_Select_Cleric_6_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A022' ) ) then
return false
endif
if ( not ( udg_Player6Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Cleric_6_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Cleric_6_Actions takes nothing returns nothing
set udg_Player6Hero = true
call PanCameraToTimedLocForPlayer( Player(5), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(5), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E007', Player(5), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(5)), function Trig_Select_Cleric_6_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(5) )
endfunction
//===========================================================================
function InitTrig_Select_Cleric_6 takes nothing returns nothing
set gg_trg_Select_Cleric_6 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Cleric_6, Player(5), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Cleric_6, Condition( function Trig_Select_Cleric_6_Conditions ) )
call TriggerAddAction( gg_trg_Select_Cleric_6, function Trig_Select_Cleric_6_Actions )
endfunction
function Trig_Select_Archer_6_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A029' ) ) then
return false
endif
if ( not ( udg_Player6Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Archer_6_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Archer_6_Actions takes nothing returns nothing
set udg_Player6Hero = true
call PanCameraToTimedLocForPlayer( Player(5), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(5), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E009', Player(5), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(5)), function Trig_Select_Archer_6_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(5) )
endfunction
//===========================================================================
function InitTrig_Select_Archer_6 takes nothing returns nothing
set gg_trg_Select_Archer_6 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Archer_6, Player(5), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Archer_6, Condition( function Trig_Select_Archer_6_Conditions ) )
call TriggerAddAction( gg_trg_Select_Archer_6, function Trig_Select_Archer_6_Actions )
endfunction
function Trig_Select_Animist_6_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A03X' ) ) then
return false
endif
if ( not ( udg_Player6Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Animist_6_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Animist_6_Actions takes nothing returns nothing
set udg_Player6Hero = true
call PanCameraToTimedLocForPlayer( Player(5), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(5), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'O00C', Player(5), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(5)), function Trig_Select_Animist_6_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(5) )
endfunction
//===========================================================================
function InitTrig_Select_Animist_6 takes nothing returns nothing
set gg_trg_Select_Animist_6 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Animist_6, Player(5), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Animist_6, Condition( function Trig_Select_Animist_6_Conditions ) )
call TriggerAddAction( gg_trg_Select_Animist_6, function Trig_Select_Animist_6_Actions )
endfunction
function Trig_Select_Rogue_6_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A4' ) ) then
return false
endif
if ( not ( udg_Player6Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Rogue_6_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Rogue_6_Actions takes nothing returns nothing
set udg_Player6Hero = true
call PanCameraToTimedLocForPlayer( Player(5), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(5), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E013', Player(5), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(5)), function Trig_Select_Rogue_6_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(5) )
call UnitAddItemByIdSwapped( 'I02S', GetLastCreatedUnit() )
call EnableTrigger( gg_trg_Enlightenment )
endfunction
//===========================================================================
function InitTrig_Select_Rogue_6 takes nothing returns nothing
set gg_trg_Select_Rogue_6 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Rogue_6, Player(5), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Rogue_6, Condition( function Trig_Select_Rogue_6_Conditions ) )
call TriggerAddAction( gg_trg_Select_Rogue_6, function Trig_Select_Rogue_6_Actions )
endfunction
function Trig_Select_Gambler_6_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AS' ) ) then
return false
endif
if ( not ( udg_Player6Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Gambler_6_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Gambler_6_Actions takes nothing returns nothing
set udg_Player6Hero = true
call PanCameraToTimedLocForPlayer( Player(5), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(5), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E016', Player(5), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(5)), function Trig_Select_Gambler_6_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(5) )
call EnableTrigger( gg_trg_Virginia_Gossip_X )
call DisableTrigger( gg_trg_Barmaid_Gossip )
endfunction
//===========================================================================
function InitTrig_Select_Gambler_6 takes nothing returns nothing
set gg_trg_Select_Gambler_6 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Gambler_6, Player(5), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Gambler_6, Condition( function Trig_Select_Gambler_6_Conditions ) )
call TriggerAddAction( gg_trg_Select_Gambler_6, function Trig_Select_Gambler_6_Actions )
endfunction
function Trig_Select_Chemist_6_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AT' ) ) then
return false
endif
if ( not ( udg_Player6Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Chemist_6_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Chemist_6_Actions takes nothing returns nothing
set udg_Player6Hero = true
call PanCameraToTimedLocForPlayer( Player(5), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(5), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'O00M', Player(5), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(5)), function Trig_Select_Chemist_6_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(5) )
endfunction
//===========================================================================
function InitTrig_Select_Chemist_6 takes nothing returns nothing
set gg_trg_Select_Chemist_6 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Chemist_6, Player(5), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Chemist_6, Condition( function Trig_Select_Chemist_6_Conditions ) )
call TriggerAddAction( gg_trg_Select_Chemist_6, function Trig_Select_Chemist_6_Actions )
endfunction
function Trig_Select_Hidden_Sorcerer_6_Conditions takes nothing returns boolean
if ( not ( udg_Player6Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Sorcerer_6_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Sorcerer_6_Actions takes nothing returns nothing
set udg_Player6Hero = true
call PanCameraToTimedLocForPlayer( Player(5), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(5), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'U008', Player(5), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(5)), function Trig_Select_Hidden_Sorcerer_6_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(5) )
call DisableTrigger( gg_trg_Select_Hidden_Sorcerer_1 )
call DisableTrigger( gg_trg_Select_Hidden_Sorcerer_2 )
call DisableTrigger( gg_trg_Select_Hidden_Sorcerer_4 )
call DisableTrigger( gg_trg_Select_Hidden_Sorcerer_5 )
call DisableTrigger( gg_trg_Select_Hidden_Sorcerer_6 )
call DisableTrigger( gg_trg_Select_Hidden_Sorcerer_7 )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Sorcerer_6 takes nothing returns nothing
set gg_trg_Select_Hidden_Sorcerer_6 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Sorcerer_6, Player(5), "-omega", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Sorcerer_6, Condition( function Trig_Select_Hidden_Sorcerer_6_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Sorcerer_6, function Trig_Select_Hidden_Sorcerer_6_Actions )
endfunction
function Trig_Select_Hidden_Assassin_6_Conditions takes nothing returns boolean
if ( not ( udg_Player6Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Assassin_6_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Assassin_6_Actions takes nothing returns nothing
set udg_Player6Hero = true
call PanCameraToTimedLocForPlayer( Player(5), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(5), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E00D', Player(5), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(5)), function Trig_Select_Hidden_Assassin_6_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(5) )
call UnitAddItemByIdSwapped( 'I03K', GetLastCreatedUnit() )
call CreateNUnitsAtLocFacingLocBJ( 1, 'n03G', Player(10), GetRectCenter(gg_rct_Ripley), GetRectCenter(gg_rct_Drake_Rally) )
call DisableTrigger( gg_trg_Select_Hidden_Assassin_1 )
call DisableTrigger( gg_trg_Select_Hidden_Assassin_2 )
call DisableTrigger( gg_trg_Select_Hidden_Assassin_4 )
call DisableTrigger( gg_trg_Select_Hidden_Assassin_5 )
call DisableTrigger( gg_trg_Select_Hidden_Assassin_6 )
call DisableTrigger( gg_trg_Select_Hidden_Assassin_7 )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Assassin_6 takes nothing returns nothing
set gg_trg_Select_Hidden_Assassin_6 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Assassin_6, Player(5), "-slayer", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Assassin_6, Condition( function Trig_Select_Hidden_Assassin_6_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Assassin_6, function Trig_Select_Hidden_Assassin_6_Actions )
endfunction
function Trig_Select_Hidden_Elementalist_6_Conditions takes nothing returns boolean
if ( not ( udg_Player6Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Elementalist_6_Func006002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Elementalist_6_Actions takes nothing returns nothing
set udg_Player6Hero = true
call PanCameraToTimedLocForPlayer( Player(5), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(5), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'H01W', Player(5), GetRectCenter(gg_rct_Start_Location), 270.00 )
call UnitAddItemByIdSwapped( 'I03U', GetLastCreatedUnit() )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(5)), function Trig_Select_Hidden_Elementalist_6_Func006002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(5) )
call DisableTrigger( gg_trg_Select_Hidden_Elementalist_1 )
call DisableTrigger( gg_trg_Select_Hidden_Elementalist_2 )
call DisableTrigger( gg_trg_Select_Hidden_Elementalist_4 )
call DisableTrigger( gg_trg_Select_Hidden_Elementalist_5 )
call DisableTrigger( gg_trg_Select_Hidden_Elementalist_6 )
call DisableTrigger( gg_trg_Select_Hidden_Elementalist_7 )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Elementalist_6 takes nothing returns nothing
set gg_trg_Select_Hidden_Elementalist_6 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Elementalist_6, Player(5), "-combo", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Elementalist_6, Condition( function Trig_Select_Hidden_Elementalist_6_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Elementalist_6, function Trig_Select_Hidden_Elementalist_6_Actions )
endfunction
function Trig_Select_Hidden_Buccaneer_6_Conditions takes nothing returns boolean
if ( not ( udg_Player6Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Buccaneer_6_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Buccaneer_6_Actions takes nothing returns nothing
set udg_Player6Hero = true
call PanCameraToTimedLocForPlayer( Player(5), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(5), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'H01X', Player(5), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(5)), function Trig_Select_Hidden_Buccaneer_6_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(5) )
call DisableTrigger( gg_trg_Select_Hidden_Buccaneer_1 )
call DisableTrigger( gg_trg_Select_Hidden_Buccaneer_2 )
call DisableTrigger( gg_trg_Select_Hidden_Buccaneer_4 )
call DisableTrigger( gg_trg_Select_Hidden_Buccaneer_5 )
call DisableTrigger( gg_trg_Select_Hidden_Buccaneer_6 )
call DisableTrigger( gg_trg_Select_Hidden_Buccaneer_7 )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Buccaneer_6 takes nothing returns nothing
set gg_trg_Select_Hidden_Buccaneer_6 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Buccaneer_6, Player(5), "-simulacrum", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Buccaneer_6, Condition( function Trig_Select_Hidden_Buccaneer_6_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Buccaneer_6, function Trig_Select_Hidden_Buccaneer_6_Actions )
endfunction
function Trig_Select_Hidden_Siren_6_Conditions takes nothing returns boolean
if ( not ( udg_Player6Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Siren_6_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Siren_6_Actions takes nothing returns nothing
set udg_Player6Hero = true
call PanCameraToTimedLocForPlayer( Player(5), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(5), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E00E', Player(5), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(5)), function Trig_Select_Hidden_Siren_6_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(5) )
call DisableTrigger( gg_trg_Select_Hidden_Siren_1 )
call DisableTrigger( gg_trg_Select_Hidden_Siren_2 )
call DisableTrigger( gg_trg_Select_Hidden_Siren_4 )
call DisableTrigger( gg_trg_Select_Hidden_Siren_5 )
call DisableTrigger( gg_trg_Select_Hidden_Siren_6 )
call DisableTrigger( gg_trg_Select_Hidden_Siren_7 )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Siren_6 takes nothing returns nothing
set gg_trg_Select_Hidden_Siren_6 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Siren_6, Player(5), "-avalanche", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Siren_6, Condition( function Trig_Select_Hidden_Siren_6_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Siren_6, function Trig_Select_Hidden_Siren_6_Actions )
endfunction
function Trig_Select_Hidden_Basilisk_6_Conditions takes nothing returns boolean
if ( not ( udg_Player6Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Basilisk_6_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Basilisk_6_Actions takes nothing returns nothing
set udg_Player6Hero = true
call PanCameraToTimedLocForPlayer( Player(5), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(5), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E00F', Player(5), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(5)), function Trig_Select_Hidden_Basilisk_6_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(5) )
call DisableTrigger( gg_trg_Select_Hidden_Basilisk_1 )
call DisableTrigger( gg_trg_Select_Hidden_Basilisk_2 )
call DisableTrigger( gg_trg_Select_Hidden_Basilisk_4 )
call DisableTrigger( gg_trg_Select_Hidden_Basilisk_5 )
call DisableTrigger( gg_trg_Select_Hidden_Basilisk_6 )
call DisableTrigger( gg_trg_Select_Hidden_Basilisk_7 )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Basilisk_6 takes nothing returns nothing
set gg_trg_Select_Hidden_Basilisk_6 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Basilisk_6, Player(5), "-gaia", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Basilisk_6, Condition( function Trig_Select_Hidden_Basilisk_6_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Basilisk_6, function Trig_Select_Hidden_Basilisk_6_Actions )
endfunction
function Trig_Add_To_Party_6_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(5) ) ) then
return false
endif
return true
endfunction
function Trig_Add_To_Party_6_Actions takes nothing returns nothing
set udg_PartyReady = ( udg_PartyReady + 1 )
endfunction
//===========================================================================
function InitTrig_Add_To_Party_6 takes nothing returns nothing
set gg_trg_Add_To_Party_6 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Add_To_Party_6, gg_rct_Start_Location )
call TriggerAddCondition( gg_trg_Add_To_Party_6, Condition( function Trig_Add_To_Party_6_Conditions ) )
call TriggerAddAction( gg_trg_Add_To_Party_6, function Trig_Add_To_Party_6_Actions )
endfunction
function Trig_Select_Hidden_Grunt_6_Conditions takes nothing returns boolean
if ( not ( udg_Player6Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Grunt_6_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Grunt_6_Actions takes nothing returns nothing
set udg_Player6Hero = true
call PanCameraToTimedLocForPlayer( Player(5), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(5), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E01H', Player(5), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(5)), function Trig_Select_Hidden_Grunt_6_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(5) )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Grunt_6 takes nothing returns nothing
set gg_trg_Select_Hidden_Grunt_6 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Grunt_6, Player(5), "-gimp", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Grunt_6, Condition( function Trig_Select_Hidden_Grunt_6_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Grunt_6, function Trig_Select_Hidden_Grunt_6_Actions )
endfunction
function Trig_Select_Hidden_Sniper_6_Conditions takes nothing returns boolean
if ( not ( udg_Player6Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Sniper_6_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Sniper_6_Actions takes nothing returns nothing
set udg_Player6Hero = true
call PanCameraToTimedLocForPlayer( Player(5), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(5), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E01I', Player(5), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(5)), function Trig_Select_Hidden_Sniper_6_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(5) )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Sniper_6 takes nothing returns nothing
set gg_trg_Select_Hidden_Sniper_6 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Sniper_6, Player(5), "-pain", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Sniper_6, Condition( function Trig_Select_Hidden_Sniper_6_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Sniper_6, function Trig_Select_Hidden_Sniper_6_Actions )
endfunction
function Trig_Select_Hidden_Medic_6_Conditions takes nothing returns boolean
if ( not ( udg_Player6Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Medic_6_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Medic_6_Actions takes nothing returns nothing
set udg_Player6Hero = true
call PanCameraToTimedLocForPlayer( Player(5), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(5), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E01J', Player(5), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(5)), function Trig_Select_Hidden_Medic_6_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(5) )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Medic_6 takes nothing returns nothing
set gg_trg_Select_Hidden_Medic_6 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Medic_6, Player(5), "-wife", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Medic_6, Condition( function Trig_Select_Hidden_Medic_6_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Medic_6, function Trig_Select_Hidden_Medic_6_Actions )
endfunction
function Trig_Select_Hidden_Demo_6_Conditions takes nothing returns boolean
if ( not ( udg_Player6Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Demo_6_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Demo_6_Actions takes nothing returns nothing
set udg_Player6Hero = true
call PanCameraToTimedLocForPlayer( Player(5), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(5), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E01K', Player(5), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(5)), function Trig_Select_Hidden_Demo_6_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(5) )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Demo_6 takes nothing returns nothing
set gg_trg_Select_Hidden_Demo_6 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Demo_6, Player(5), "-bear", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Demo_6, Condition( function Trig_Select_Hidden_Demo_6_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Demo_6, function Trig_Select_Hidden_Demo_6_Actions )
endfunction
function Trig_Select_7_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(2) ) ) then
return false
endif
if ( not ( udg_Player7Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_7_Func001002 takes nothing returns nothing
call SetUnitOwner( GetEnumUnit(), Player(2), true )
endfunction
function Trig_Select_7_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(6)), function Trig_Select_7_Func001002 )
call ClearSelectionForPlayer( Player(6) )
call SetUnitOwner( GetTriggerUnit(), Player(6), true )
call SelectUnitForPlayerSingle( GetTriggerUnit(), Player(6) )
endfunction
//===========================================================================
function InitTrig_Select_7 takes nothing returns nothing
set gg_trg_Select_7 = CreateTrigger( )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_Select_7, Player(6), true )
call TriggerAddCondition( gg_trg_Select_7, Condition( function Trig_Select_7_Conditions ) )
call TriggerAddAction( gg_trg_Select_7, function Trig_Select_7_Actions )
endfunction
function Trig_Select_Swordsman_7_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00M' ) ) then
return false
endif
if ( not ( udg_Player7Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Swordsman_7_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Swordsman_7_Actions takes nothing returns nothing
set udg_Player7Hero = true
call PanCameraToTimedLocForPlayer( Player(6), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(6), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'H002', Player(6), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(6)), function Trig_Select_Swordsman_7_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(6) )
endfunction
//===========================================================================
function InitTrig_Select_Swordsman_7 takes nothing returns nothing
set gg_trg_Select_Swordsman_7 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Swordsman_7, Player(6), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Swordsman_7, Condition( function Trig_Select_Swordsman_7_Conditions ) )
call TriggerAddAction( gg_trg_Select_Swordsman_7, function Trig_Select_Swordsman_7_Actions )
endfunction
function Trig_Select_Warlock_7_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00O' ) ) then
return false
endif
if ( not ( udg_Player7Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Warlock_7_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Warlock_7_Actions takes nothing returns nothing
set udg_Player7Hero = true
call PanCameraToTimedLocForPlayer( Player(6), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(6), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'U000', Player(6), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(6)), function Trig_Select_Warlock_7_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(6) )
endfunction
//===========================================================================
function InitTrig_Select_Warlock_7 takes nothing returns nothing
set gg_trg_Select_Warlock_7 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Warlock_7, Player(6), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Warlock_7, Condition( function Trig_Select_Warlock_7_Conditions ) )
call TriggerAddAction( gg_trg_Select_Warlock_7, function Trig_Select_Warlock_7_Actions )
endfunction
function Trig_Select_Druid_7_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A017' ) ) then
return false
endif
if ( not ( udg_Player7Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Druid_7_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Druid_7_Actions takes nothing returns nothing
set udg_Player7Hero = true
call PanCameraToTimedLocForPlayer( Player(6), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(6), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E000', Player(6), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(6)), function Trig_Select_Druid_7_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(6) )
endfunction
//===========================================================================
function InitTrig_Select_Druid_7 takes nothing returns nothing
set gg_trg_Select_Druid_7 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Druid_7, Player(6), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Druid_7, Condition( function Trig_Select_Druid_7_Conditions ) )
call TriggerAddAction( gg_trg_Select_Druid_7, function Trig_Select_Druid_7_Actions )
endfunction
function Trig_Select_Brute_7_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01C' ) ) then
return false
endif
if ( not ( udg_Player7Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Brute_7_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Brute_7_Actions takes nothing returns nothing
set udg_Player7Hero = true
call PanCameraToTimedLocForPlayer( Player(6), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(6), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'O000', Player(6), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(6)), function Trig_Select_Brute_7_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(6) )
endfunction
//===========================================================================
function InitTrig_Select_Brute_7 takes nothing returns nothing
set gg_trg_Select_Brute_7 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Brute_7, Player(6), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Brute_7, Condition( function Trig_Select_Brute_7_Conditions ) )
call TriggerAddAction( gg_trg_Select_Brute_7, function Trig_Select_Brute_7_Actions )
endfunction
function Trig_Select_Sorceress_7_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01R' ) ) then
return false
endif
if ( not ( udg_Player7Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Sorceress_7_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Sorceress_7_Actions takes nothing returns nothing
set udg_Player7Hero = true
call PanCameraToTimedLocForPlayer( Player(6), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(6), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'U006', Player(6), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(6)), function Trig_Select_Sorceress_7_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(6) )
endfunction
//===========================================================================
function InitTrig_Select_Sorceress_7 takes nothing returns nothing
set gg_trg_Select_Sorceress_7 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Sorceress_7, Player(6), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Sorceress_7, Condition( function Trig_Select_Sorceress_7_Conditions ) )
call TriggerAddAction( gg_trg_Select_Sorceress_7, function Trig_Select_Sorceress_7_Actions )
endfunction
function Trig_Select_Huntress_7_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01X' ) ) then
return false
endif
if ( not ( udg_Player7Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Huntress_7_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Huntress_7_Actions takes nothing returns nothing
set udg_Player7Hero = true
call PanCameraToTimedLocForPlayer( Player(6), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(6), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E005', Player(6), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(6)), function Trig_Select_Huntress_7_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(6) )
endfunction
//===========================================================================
function InitTrig_Select_Huntress_7 takes nothing returns nothing
set gg_trg_Select_Huntress_7 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Huntress_7, Player(6), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Huntress_7, Condition( function Trig_Select_Huntress_7_Conditions ) )
call TriggerAddAction( gg_trg_Select_Huntress_7, function Trig_Select_Huntress_7_Actions )
endfunction
function Trig_Select_Cleric_7_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A022' ) ) then
return false
endif
if ( not ( udg_Player7Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Cleric_7_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Cleric_7_Actions takes nothing returns nothing
set udg_Player7Hero = true
call PanCameraToTimedLocForPlayer( Player(6), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(6), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E007', Player(6), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(6)), function Trig_Select_Cleric_7_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(6) )
endfunction
//===========================================================================
function InitTrig_Select_Cleric_7 takes nothing returns nothing
set gg_trg_Select_Cleric_7 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Cleric_7, Player(6), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Cleric_7, Condition( function Trig_Select_Cleric_7_Conditions ) )
call TriggerAddAction( gg_trg_Select_Cleric_7, function Trig_Select_Cleric_7_Actions )
endfunction
function Trig_Select_Archer_7_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A029' ) ) then
return false
endif
if ( not ( udg_Player7Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Archer_7_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Archer_7_Actions takes nothing returns nothing
set udg_Player7Hero = true
call PanCameraToTimedLocForPlayer( Player(6), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(6), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E009', Player(6), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(6)), function Trig_Select_Archer_7_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(6) )
endfunction
//===========================================================================
function InitTrig_Select_Archer_7 takes nothing returns nothing
set gg_trg_Select_Archer_7 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Archer_7, Player(6), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Archer_7, Condition( function Trig_Select_Archer_7_Conditions ) )
call TriggerAddAction( gg_trg_Select_Archer_7, function Trig_Select_Archer_7_Actions )
endfunction
function Trig_Select_Animist_7_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A03X' ) ) then
return false
endif
if ( not ( udg_Player7Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Animist_7_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Animist_7_Actions takes nothing returns nothing
set udg_Player7Hero = true
call PanCameraToTimedLocForPlayer( Player(6), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(6), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'O00C', Player(6), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(6)), function Trig_Select_Animist_7_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(6) )
endfunction
//===========================================================================
function InitTrig_Select_Animist_7 takes nothing returns nothing
set gg_trg_Select_Animist_7 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Animist_7, Player(6), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Animist_7, Condition( function Trig_Select_Animist_7_Conditions ) )
call TriggerAddAction( gg_trg_Select_Animist_7, function Trig_Select_Animist_7_Actions )
endfunction
function Trig_Select_Rogue_7_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A4' ) ) then
return false
endif
if ( not ( udg_Player7Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Rogue_7_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Rogue_7_Actions takes nothing returns nothing
set udg_Player7Hero = true
call PanCameraToTimedLocForPlayer( Player(6), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(6), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E013', Player(6), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(6)), function Trig_Select_Rogue_7_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(6) )
call UnitAddItemByIdSwapped( 'I02S', GetLastCreatedUnit() )
call EnableTrigger( gg_trg_Enlightenment )
endfunction
//===========================================================================
function InitTrig_Select_Rogue_7 takes nothing returns nothing
set gg_trg_Select_Rogue_7 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Rogue_7, Player(6), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Rogue_7, Condition( function Trig_Select_Rogue_7_Conditions ) )
call TriggerAddAction( gg_trg_Select_Rogue_7, function Trig_Select_Rogue_7_Actions )
endfunction
function Trig_Select_Gambler_7_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AS' ) ) then
return false
endif
if ( not ( udg_Player7Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Gambler_7_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Gambler_7_Actions takes nothing returns nothing
set udg_Player7Hero = true
call PanCameraToTimedLocForPlayer( Player(6), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(6), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E016', Player(6), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(6)), function Trig_Select_Gambler_7_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(6) )
call EnableTrigger( gg_trg_Virginia_Gossip_X )
call DisableTrigger( gg_trg_Barmaid_Gossip )
endfunction
//===========================================================================
function InitTrig_Select_Gambler_7 takes nothing returns nothing
set gg_trg_Select_Gambler_7 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Gambler_7, Player(6), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Gambler_7, Condition( function Trig_Select_Gambler_7_Conditions ) )
call TriggerAddAction( gg_trg_Select_Gambler_7, function Trig_Select_Gambler_7_Actions )
endfunction
function Trig_Select_Chemist_7_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AT' ) ) then
return false
endif
if ( not ( udg_Player7Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Chemist_7_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Chemist_7_Actions takes nothing returns nothing
set udg_Player7Hero = true
call PanCameraToTimedLocForPlayer( Player(6), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(6), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'O00M', Player(6), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(6)), function Trig_Select_Chemist_7_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(6) )
endfunction
//===========================================================================
function InitTrig_Select_Chemist_7 takes nothing returns nothing
set gg_trg_Select_Chemist_7 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Select_Chemist_7, Player(6), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Select_Chemist_7, Condition( function Trig_Select_Chemist_7_Conditions ) )
call TriggerAddAction( gg_trg_Select_Chemist_7, function Trig_Select_Chemist_7_Actions )
endfunction
function Trig_Select_Hidden_Sorcerer_7_Conditions takes nothing returns boolean
if ( not ( udg_Player7Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Sorcerer_7_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Sorcerer_7_Actions takes nothing returns nothing
set udg_Player7Hero = true
call PanCameraToTimedLocForPlayer( Player(6), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(6), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'U008', Player(6), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(6)), function Trig_Select_Hidden_Sorcerer_7_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(6) )
call DisableTrigger( gg_trg_Select_Hidden_Sorcerer_1 )
call DisableTrigger( gg_trg_Select_Hidden_Sorcerer_2 )
call DisableTrigger( gg_trg_Select_Hidden_Sorcerer_4 )
call DisableTrigger( gg_trg_Select_Hidden_Sorcerer_5 )
call DisableTrigger( gg_trg_Select_Hidden_Sorcerer_6 )
call DisableTrigger( gg_trg_Select_Hidden_Sorcerer_7 )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Sorcerer_7 takes nothing returns nothing
set gg_trg_Select_Hidden_Sorcerer_7 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Sorcerer_7, Player(6), "-omega", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Sorcerer_7, Condition( function Trig_Select_Hidden_Sorcerer_7_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Sorcerer_7, function Trig_Select_Hidden_Sorcerer_7_Actions )
endfunction
function Trig_Select_Hidden_Assassin_7_Conditions takes nothing returns boolean
if ( not ( udg_Player7Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Assassin_7_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Assassin_7_Actions takes nothing returns nothing
set udg_Player7Hero = true
call PanCameraToTimedLocForPlayer( Player(6), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(6), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E00D', Player(6), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(6)), function Trig_Select_Hidden_Assassin_7_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(6) )
call UnitAddItemByIdSwapped( 'I03K', GetLastCreatedUnit() )
call CreateNUnitsAtLocFacingLocBJ( 1, 'n03G', Player(10), GetRectCenter(gg_rct_Ripley), GetRectCenter(gg_rct_Drake_Rally) )
call DisableTrigger( gg_trg_Select_Hidden_Assassin_1 )
call DisableTrigger( gg_trg_Select_Hidden_Assassin_2 )
call DisableTrigger( gg_trg_Select_Hidden_Assassin_4 )
call DisableTrigger( gg_trg_Select_Hidden_Assassin_5 )
call DisableTrigger( gg_trg_Select_Hidden_Assassin_6 )
call DisableTrigger( gg_trg_Select_Hidden_Assassin_7 )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Assassin_7 takes nothing returns nothing
set gg_trg_Select_Hidden_Assassin_7 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Assassin_7, Player(6), "-slayer", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Assassin_7, Condition( function Trig_Select_Hidden_Assassin_7_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Assassin_7, function Trig_Select_Hidden_Assassin_7_Actions )
endfunction
function Trig_Select_Hidden_Elementalist_7_Conditions takes nothing returns boolean
if ( not ( udg_Player7Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Elementalist_7_Func006002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Elementalist_7_Actions takes nothing returns nothing
set udg_Player7Hero = true
call PanCameraToTimedLocForPlayer( Player(6), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(6), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'H01W', Player(6), GetRectCenter(gg_rct_Start_Location), 270.00 )
call UnitAddItemByIdSwapped( 'I03U', GetLastCreatedUnit() )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(6)), function Trig_Select_Hidden_Elementalist_7_Func006002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(6) )
call DisableTrigger( gg_trg_Select_Hidden_Elementalist_1 )
call DisableTrigger( gg_trg_Select_Hidden_Elementalist_2 )
call DisableTrigger( gg_trg_Select_Hidden_Elementalist_4 )
call DisableTrigger( gg_trg_Select_Hidden_Elementalist_5 )
call DisableTrigger( gg_trg_Select_Hidden_Elementalist_6 )
call DisableTrigger( gg_trg_Select_Hidden_Elementalist_7 )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Elementalist_7 takes nothing returns nothing
set gg_trg_Select_Hidden_Elementalist_7 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Elementalist_7, Player(6), "-combo", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Elementalist_7, Condition( function Trig_Select_Hidden_Elementalist_7_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Elementalist_7, function Trig_Select_Hidden_Elementalist_7_Actions )
endfunction
function Trig_Select_Hidden_Buccaneer_7_Conditions takes nothing returns boolean
if ( not ( udg_Player7Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Buccaneer_7_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Buccaneer_7_Actions takes nothing returns nothing
set udg_Player7Hero = true
call PanCameraToTimedLocForPlayer( Player(6), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(6), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'H01X', Player(6), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(6)), function Trig_Select_Hidden_Buccaneer_7_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(6) )
call DisableTrigger( gg_trg_Select_Hidden_Buccaneer_1 )
call DisableTrigger( gg_trg_Select_Hidden_Buccaneer_2 )
call DisableTrigger( gg_trg_Select_Hidden_Buccaneer_4 )
call DisableTrigger( gg_trg_Select_Hidden_Buccaneer_5 )
call DisableTrigger( gg_trg_Select_Hidden_Buccaneer_6 )
call DisableTrigger( gg_trg_Select_Hidden_Buccaneer_7 )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Buccaneer_7 takes nothing returns nothing
set gg_trg_Select_Hidden_Buccaneer_7 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Buccaneer_7, Player(6), "-simulacrum", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Buccaneer_7, Condition( function Trig_Select_Hidden_Buccaneer_7_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Buccaneer_7, function Trig_Select_Hidden_Buccaneer_7_Actions )
endfunction
function Trig_Select_Hidden_Siren_7_Conditions takes nothing returns boolean
if ( not ( udg_Player7Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Siren_7_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Siren_7_Actions takes nothing returns nothing
set udg_Player7Hero = true
call PanCameraToTimedLocForPlayer( Player(6), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(6), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E00E', Player(6), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(6)), function Trig_Select_Hidden_Siren_7_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(6) )
call DisableTrigger( gg_trg_Select_Hidden_Siren_1 )
call DisableTrigger( gg_trg_Select_Hidden_Siren_2 )
call DisableTrigger( gg_trg_Select_Hidden_Siren_4 )
call DisableTrigger( gg_trg_Select_Hidden_Siren_5 )
call DisableTrigger( gg_trg_Select_Hidden_Siren_6 )
call DisableTrigger( gg_trg_Select_Hidden_Siren_7 )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Siren_7 takes nothing returns nothing
set gg_trg_Select_Hidden_Siren_7 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Siren_7, Player(6), "-avalanche", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Siren_7, Condition( function Trig_Select_Hidden_Siren_7_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Siren_7, function Trig_Select_Hidden_Siren_7_Actions )
endfunction
function Trig_Select_Hidden_Basilisk_7_Conditions takes nothing returns boolean
if ( not ( udg_Player7Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Basilisk_7_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Basilisk_7_Actions takes nothing returns nothing
set udg_Player7Hero = true
call PanCameraToTimedLocForPlayer( Player(6), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(6), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E00F', Player(6), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(6)), function Trig_Select_Hidden_Basilisk_7_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(6) )
call DisableTrigger( gg_trg_Select_Hidden_Basilisk_1 )
call DisableTrigger( gg_trg_Select_Hidden_Basilisk_2 )
call DisableTrigger( gg_trg_Select_Hidden_Basilisk_4 )
call DisableTrigger( gg_trg_Select_Hidden_Basilisk_5 )
call DisableTrigger( gg_trg_Select_Hidden_Basilisk_6 )
call DisableTrigger( gg_trg_Select_Hidden_Basilisk_7 )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Basilisk_7 takes nothing returns nothing
set gg_trg_Select_Hidden_Basilisk_7 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Basilisk_7, Player(6), "-gaia", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Basilisk_7, Condition( function Trig_Select_Hidden_Basilisk_7_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Basilisk_7, function Trig_Select_Hidden_Basilisk_7_Actions )
endfunction
function Trig_Add_To_Party_7_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(6) ) ) then
return false
endif
return true
endfunction
function Trig_Add_To_Party_7_Actions takes nothing returns nothing
set udg_PartyReady = ( udg_PartyReady + 1 )
endfunction
//===========================================================================
function InitTrig_Add_To_Party_7 takes nothing returns nothing
set gg_trg_Add_To_Party_7 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Add_To_Party_7, gg_rct_Start_Location )
call TriggerAddCondition( gg_trg_Add_To_Party_7, Condition( function Trig_Add_To_Party_7_Conditions ) )
call TriggerAddAction( gg_trg_Add_To_Party_7, function Trig_Add_To_Party_7_Actions )
endfunction
function Trig_Select_Hidden_Grunt_7_Conditions takes nothing returns boolean
if ( not ( udg_Player7Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Grunt_7_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Grunt_7_Actions takes nothing returns nothing
set udg_Player7Hero = true
call PanCameraToTimedLocForPlayer( Player(6), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(6), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E01H', Player(6), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(6)), function Trig_Select_Hidden_Grunt_7_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(6) )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Grunt_7 takes nothing returns nothing
set gg_trg_Select_Hidden_Grunt_7 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Grunt_7, Player(6), "-gimp", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Grunt_7, Condition( function Trig_Select_Hidden_Grunt_7_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Grunt_7, function Trig_Select_Hidden_Grunt_7_Actions )
endfunction
function Trig_Select_Hidden_Sniper_7_Conditions takes nothing returns boolean
if ( not ( udg_Player7Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Sniper_7_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Sniper_7_Actions takes nothing returns nothing
set udg_Player7Hero = true
call PanCameraToTimedLocForPlayer( Player(6), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(6), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E01I', Player(6), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(6)), function Trig_Select_Hidden_Sniper_7_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(6) )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Sniper_7 takes nothing returns nothing
set gg_trg_Select_Hidden_Sniper_7 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Sniper_7, Player(6), "-pain", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Sniper_7, Condition( function Trig_Select_Hidden_Sniper_7_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Sniper_7, function Trig_Select_Hidden_Sniper_7_Actions )
endfunction
function Trig_Select_Hidden_Medic_7_Conditions takes nothing returns boolean
if ( not ( udg_Player7Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Medic_7_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Medic_7_Actions takes nothing returns nothing
set udg_Player7Hero = true
call PanCameraToTimedLocForPlayer( Player(6), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(6), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E01J', Player(6), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(6)), function Trig_Select_Hidden_Medic_7_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(6) )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Medic_7 takes nothing returns nothing
set gg_trg_Select_Hidden_Medic_7 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Medic_7, Player(6), "-wife", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Medic_7, Condition( function Trig_Select_Hidden_Medic_7_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Medic_7, function Trig_Select_Hidden_Medic_7_Actions )
endfunction
function Trig_Select_Hidden_Demo_7_Conditions takes nothing returns boolean
if ( not ( udg_Player7Hero == false ) ) then
return false
endif
return true
endfunction
function Trig_Select_Hidden_Demo_7_Func005002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Select_Hidden_Demo_7_Actions takes nothing returns nothing
set udg_Player7Hero = true
call PanCameraToTimedLocForPlayer( Player(6), GetRectCenter(gg_rct_Start_Location), 0.50 )
call SetPlayerAllianceStateBJ( Player(2), Player(6), bj_ALLIANCE_NEUTRAL )
call CreateNUnitsAtLoc( 1, 'E01K', Player(6), GetRectCenter(gg_rct_Start_Location), 270.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Hero_Selection, Player(6)), function Trig_Select_Hidden_Demo_7_Func005002 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), Player(6) )
endfunction
//===========================================================================
function InitTrig_Select_Hidden_Demo_7 takes nothing returns nothing
set gg_trg_Select_Hidden_Demo_7 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Select_Hidden_Demo_7, Player(6), "-bear", true )
call TriggerAddCondition( gg_trg_Select_Hidden_Demo_7, Condition( function Trig_Select_Hidden_Demo_7_Conditions ) )
call TriggerAddAction( gg_trg_Select_Hidden_Demo_7, function Trig_Select_Hidden_Demo_7_Actions )
endfunction
function Trig_Fixing_the_Raise_Dead_Bug_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00Y' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A00Y', GetSpellAbilityUnit()) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Fixing_the_Raise_Dead_Bug_Func001002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Fixing_the_Raise_Dead_Bug_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetSpellAbilityUnit()), 'u004'), function Trig_Fixing_the_Raise_Dead_Bug_Func001002 )
endfunction
//===========================================================================
function InitTrig_Fixing_the_Raise_Dead_Bug takes nothing returns nothing
set gg_trg_Fixing_the_Raise_Dead_Bug = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Fixing_the_Raise_Dead_Bug, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Fixing_the_Raise_Dead_Bug, Condition( function Trig_Fixing_the_Raise_Dead_Bug_Conditions ) )
call TriggerAddAction( gg_trg_Fixing_the_Raise_Dead_Bug, function Trig_Fixing_the_Raise_Dead_Bug_Actions )
endfunction
function Trig_Raise_Dead_2_Bug_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00Y' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A094', GetSpellAbilityUnit()) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Raise_Dead_2_Bug_Func001002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Raise_Dead_2_Bug_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetSpellAbilityUnit()), 'u00P'), function Trig_Raise_Dead_2_Bug_Func001002 )
endfunction
//===========================================================================
function InitTrig_Raise_Dead_2_Bug takes nothing returns nothing
set gg_trg_Raise_Dead_2_Bug = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Raise_Dead_2_Bug, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Raise_Dead_2_Bug, Condition( function Trig_Raise_Dead_2_Bug_Conditions ) )
call TriggerAddAction( gg_trg_Raise_Dead_2_Bug, function Trig_Raise_Dead_2_Bug_Actions )
endfunction
function Trig_Sleeping_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I008' ) ) then
return false
endif
return true
endfunction
function Trig_Sleeping_Actions takes nothing returns nothing
call IssueTargetOrderBJ( gg_unit_u005_0041, "sleep", GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_Sleeping takes nothing returns nothing
set gg_trg_Sleeping = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Sleeping, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Sleeping, Condition( function Trig_Sleeping_Conditions ) )
call TriggerAddAction( gg_trg_Sleeping, function Trig_Sleeping_Actions )
endfunction
function Trig_More_Sleeping_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I026' ) ) then
return false
endif
return true
endfunction
function Trig_More_Sleeping_Actions takes nothing returns nothing
call IssueTargetOrderBJ( gg_unit_u005_0227, "sleep", GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_More_Sleeping takes nothing returns nothing
set gg_trg_More_Sleeping = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_More_Sleeping, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_More_Sleeping, Condition( function Trig_More_Sleeping_Conditions ) )
call TriggerAddAction( gg_trg_More_Sleeping, function Trig_More_Sleeping_Actions )
endfunction
function Trig_More_Bloody_Sleeping_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I02M' ) ) then
return false
endif
return true
endfunction
function Trig_More_Bloody_Sleeping_Actions takes nothing returns nothing
call IssueTargetOrderBJ( gg_unit_u005_0439, "sleep", GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_More_Bloody_Sleeping takes nothing returns nothing
set gg_trg_More_Bloody_Sleeping = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_More_Bloody_Sleeping, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_More_Bloody_Sleeping, Condition( function Trig_More_Bloody_Sleeping_Conditions ) )
call TriggerAddAction( gg_trg_More_Bloody_Sleeping, function Trig_More_Bloody_Sleeping_Actions )
endfunction
function Trig_Even_More_Bloody_Sleeping_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I03Q' ) ) then
return false
endif
return true
endfunction
function Trig_Even_More_Bloody_Sleeping_Actions takes nothing returns nothing
call IssueTargetOrderBJ( gg_unit_u005_0534, "sleep", GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_Even_More_Bloody_Sleeping takes nothing returns nothing
set gg_trg_Even_More_Bloody_Sleeping = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Even_More_Bloody_Sleeping, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Even_More_Bloody_Sleeping, Condition( function Trig_Even_More_Bloody_Sleeping_Conditions ) )
call TriggerAddAction( gg_trg_Even_More_Bloody_Sleeping, function Trig_Even_More_Bloody_Sleeping_Actions )
endfunction
function Trig_Revival_Conditions takes nothing returns boolean
if ( not ( udg_JezrelIntro == true ) ) then
return false
endif
return true
endfunction
function Trig_Revival_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetRevivableUnit()), GetUnitLoc(udg_ResurrectionMan), 0.50 )
call SelectUnitForPlayerSingle( udg_ResurrectionMan, GetOwningPlayer(GetRevivableUnit()) )
endfunction
//===========================================================================
function InitTrig_Revival takes nothing returns nothing
set gg_trg_Revival = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Revival, EVENT_PLAYER_HERO_REVIVABLE )
call TriggerAddCondition( gg_trg_Revival, Condition( function Trig_Revival_Conditions ) )
call TriggerAddAction( gg_trg_Revival, function Trig_Revival_Actions )
endfunction
function Trig_Unseen_Death_Level_1_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A023' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A023', GetLearningUnit()) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Unseen_Death_Level_1_Actions takes nothing returns nothing
call SetPlayerTechResearchedSwap( 'R000', 1, GetOwningPlayer(GetLearningUnit()) )
set udg_Death1 = GetLearningUnit()
endfunction
//===========================================================================
function InitTrig_Unseen_Death_Level_1 takes nothing returns nothing
set gg_trg_Unseen_Death_Level_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Unseen_Death_Level_1, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Unseen_Death_Level_1, Condition( function Trig_Unseen_Death_Level_1_Conditions ) )
call TriggerAddAction( gg_trg_Unseen_Death_Level_1, function Trig_Unseen_Death_Level_1_Actions )
endfunction
function Trig_Unseen_Death_Level_2_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A023' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A023', GetLearningUnit()) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Unseen_Death_Level_2_Actions takes nothing returns nothing
call SetPlayerTechResearchedSwap( 'R000', 2, GetOwningPlayer(GetLearningUnit()) )
set udg_Death1 = null
set udg_Death2 = GetLearningUnit()
endfunction
//===========================================================================
function InitTrig_Unseen_Death_Level_2 takes nothing returns nothing
set gg_trg_Unseen_Death_Level_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Unseen_Death_Level_2, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Unseen_Death_Level_2, Condition( function Trig_Unseen_Death_Level_2_Conditions ) )
call TriggerAddAction( gg_trg_Unseen_Death_Level_2, function Trig_Unseen_Death_Level_2_Actions )
endfunction
function Trig_Unseen_Death_Level_3_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A023' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A023', GetLearningUnit()) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Unseen_Death_Level_3_Actions takes nothing returns nothing
call SetPlayerTechResearchedSwap( 'R000', 3, GetOwningPlayer(GetLearningUnit()) )
set udg_Death2 = null
set udg_Death3 = GetLearningUnit()
endfunction
//===========================================================================
function InitTrig_Unseen_Death_Level_3 takes nothing returns nothing
set gg_trg_Unseen_Death_Level_3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Unseen_Death_Level_3, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Unseen_Death_Level_3, Condition( function Trig_Unseen_Death_Level_3_Conditions ) )
call TriggerAddAction( gg_trg_Unseen_Death_Level_3, function Trig_Unseen_Death_Level_3_Actions )
endfunction
function Trig_Marksmanship_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A0DO' ) ) then
return false
endif
return true
endfunction
function Trig_Marksmanship_Actions takes nothing returns nothing
call SetPlayerTechResearchedSwap( 'R004', ( GetPlayerTechCountSimple('R004', GetOwningPlayer(GetLearningUnit())) + 1 ), GetOwningPlayer(GetLearningUnit()) )
set udg_Sniper = GetLearningUnit()
endfunction
//===========================================================================
function InitTrig_Marksmanship takes nothing returns nothing
set gg_trg_Marksmanship = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Marksmanship, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Marksmanship, Condition( function Trig_Marksmanship_Conditions ) )
call TriggerAddAction( gg_trg_Marksmanship, function Trig_Marksmanship_Actions )
endfunction
function Trig_Learning_Slayer_Level_1_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A02G' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A02G', GetLearningUnit()) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Learning_Slayer_Level_1_Actions takes nothing returns nothing
set udg_Slayer1 = GetLearningUnit()
endfunction
//===========================================================================
function InitTrig_Learning_Slayer_Level_1 takes nothing returns nothing
set gg_trg_Learning_Slayer_Level_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Learning_Slayer_Level_1, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Learning_Slayer_Level_1, Condition( function Trig_Learning_Slayer_Level_1_Conditions ) )
call TriggerAddAction( gg_trg_Learning_Slayer_Level_1, function Trig_Learning_Slayer_Level_1_Actions )
endfunction
function Trig_Learning_Slayer_Level_2_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A02G' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A02G', GetLearningUnit()) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Learning_Slayer_Level_2_Actions takes nothing returns nothing
set udg_Slayer1 = null
set udg_Slayer2 = GetLearningUnit()
endfunction
//===========================================================================
function InitTrig_Learning_Slayer_Level_2 takes nothing returns nothing
set gg_trg_Learning_Slayer_Level_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Learning_Slayer_Level_2, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Learning_Slayer_Level_2, Condition( function Trig_Learning_Slayer_Level_2_Conditions ) )
call TriggerAddAction( gg_trg_Learning_Slayer_Level_2, function Trig_Learning_Slayer_Level_2_Actions )
endfunction
function Trig_Learning_Slayer_Level_3_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A02G' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A02G', GetLearningUnit()) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Learning_Slayer_Level_3_Actions takes nothing returns nothing
set udg_Slayer2 = null
set udg_Slayer3 = GetLearningUnit()
endfunction
//===========================================================================
function InitTrig_Learning_Slayer_Level_3 takes nothing returns nothing
set gg_trg_Learning_Slayer_Level_3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Learning_Slayer_Level_3, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Learning_Slayer_Level_3, Condition( function Trig_Learning_Slayer_Level_3_Conditions ) )
call TriggerAddAction( gg_trg_Learning_Slayer_Level_3, function Trig_Learning_Slayer_Level_3_Actions )
endfunction
function Trig_Slayer_Level_1_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetAttackedUnitBJ(), UNIT_TYPE_HERO) == false ) ) then
return false
endif
if ( not ( GetAttacker() == udg_Slayer1 ) ) then
return false
endif
return true
endfunction
function Trig_Slayer_Level_1_Func002001 takes nothing returns boolean
return ( GetRandomInt(1, 20) == 1 )
endfunction
function Trig_Slayer_Level_1_Actions takes nothing returns nothing
call PolledWait( 0.25 )
if ( Trig_Slayer_Level_1_Func002001() ) then
call ExplodeUnitBJ( GetAttackedUnitBJ() )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Slayer_Level_1 takes nothing returns nothing
set gg_trg_Slayer_Level_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Slayer_Level_1, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Slayer_Level_1, Condition( function Trig_Slayer_Level_1_Conditions ) )
call TriggerAddAction( gg_trg_Slayer_Level_1, function Trig_Slayer_Level_1_Actions )
endfunction
function Trig_Slayer_Level_2_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetAttackedUnitBJ(), UNIT_TYPE_HERO) == false ) ) then
return false
endif
if ( not ( GetAttacker() == udg_Slayer2 ) ) then
return false
endif
return true
endfunction
function Trig_Slayer_Level_2_Func002001 takes nothing returns boolean
return ( GetRandomInt(1, 20) <= 2 )
endfunction
function Trig_Slayer_Level_2_Actions takes nothing returns nothing
call PolledWait( 0.25 )
if ( Trig_Slayer_Level_2_Func002001() ) then
call ExplodeUnitBJ( GetAttackedUnitBJ() )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Slayer_Level_2 takes nothing returns nothing
set gg_trg_Slayer_Level_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Slayer_Level_2, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Slayer_Level_2, Condition( function Trig_Slayer_Level_2_Conditions ) )
call TriggerAddAction( gg_trg_Slayer_Level_2, function Trig_Slayer_Level_2_Actions )
endfunction
function Trig_Slayer_Level_3_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetAttackedUnitBJ(), UNIT_TYPE_HERO) == false ) ) then
return false
endif
if ( not ( GetAttacker() == udg_Slayer3 ) ) then
return false
endif
return true
endfunction
function Trig_Slayer_Level_3_Func002001 takes nothing returns boolean
return ( GetRandomInt(1, 20) <= 3 )
endfunction
function Trig_Slayer_Level_3_Actions takes nothing returns nothing
call PolledWait( 0.25 )
if ( Trig_Slayer_Level_3_Func002001() ) then
call ExplodeUnitBJ( GetAttackedUnitBJ() )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Slayer_Level_3 takes nothing returns nothing
set gg_trg_Slayer_Level_3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Slayer_Level_3, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Slayer_Level_3, Condition( function Trig_Slayer_Level_3_Conditions ) )
call TriggerAddAction( gg_trg_Slayer_Level_3, function Trig_Slayer_Level_3_Actions )
endfunction
function Trig_Learning_Called_Shot_1_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A035' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A035', GetLearningUnit()) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Learning_Called_Shot_1_Actions takes nothing returns nothing
set udg_CallingShooter1 = GetLearningUnit()
endfunction
//===========================================================================
function InitTrig_Learning_Called_Shot_1 takes nothing returns nothing
set gg_trg_Learning_Called_Shot_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Learning_Called_Shot_1, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Learning_Called_Shot_1, Condition( function Trig_Learning_Called_Shot_1_Conditions ) )
call TriggerAddAction( gg_trg_Learning_Called_Shot_1, function Trig_Learning_Called_Shot_1_Actions )
endfunction
function Trig_Learning_Called_Shot_2_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A035' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A035', GetLearningUnit()) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Learning_Called_Shot_2_Actions takes nothing returns nothing
set udg_CallingShooter1 = null
set udg_CallingShooter2 = GetLearningUnit()
endfunction
//===========================================================================
function InitTrig_Learning_Called_Shot_2 takes nothing returns nothing
set gg_trg_Learning_Called_Shot_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Learning_Called_Shot_2, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Learning_Called_Shot_2, Condition( function Trig_Learning_Called_Shot_2_Conditions ) )
call TriggerAddAction( gg_trg_Learning_Called_Shot_2, function Trig_Learning_Called_Shot_2_Actions )
endfunction
function Trig_Learning_Called_Shot_3_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A035' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A035', GetLearningUnit()) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Learning_Called_Shot_3_Actions takes nothing returns nothing
set udg_CallingShooter2 = null
set udg_CallingShooter3 = GetLearningUnit()
endfunction
//===========================================================================
function InitTrig_Learning_Called_Shot_3 takes nothing returns nothing
set gg_trg_Learning_Called_Shot_3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Learning_Called_Shot_3, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Learning_Called_Shot_3, Condition( function Trig_Learning_Called_Shot_3_Conditions ) )
call TriggerAddAction( gg_trg_Learning_Called_Shot_3, function Trig_Learning_Called_Shot_3_Actions )
endfunction
function Trig_Called_Shot_Level_1_Conditions takes nothing returns boolean
if ( not ( GetAttacker() == udg_CallingShooter1 ) ) then
return false
endif
return true
endfunction
function Trig_Called_Shot_Level_1_Func001Func002A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetUnitLoc(GetAttackedUnitBJ()) )
call IssueTargetOrderBJ( GetEnumUnit(), "slow", GetAttackedUnitBJ() )
endfunction
function Trig_Called_Shot_Level_1_Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 10) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Called_Shot_Level_1_Actions takes nothing returns nothing
if ( Trig_Called_Shot_Level_1_Func001C() ) then
call DestroyTextTagBJ( udg_CalledFloater )
call ForGroupBJ( GetUnitsOfTypeIdAll('u00C'), function Trig_Called_Shot_Level_1_Func001Func002A )
call PolledWait( 0.20 )
call CreateTextTagUnitBJ( "TRIGSTR_1694", GetAttackedUnitBJ(), 50.00, 8.00, 50.00, 100, 50.00, 1.00 )
set udg_CalledFloater = GetLastCreatedTextTag()
call PolledWait( 1.80 )
call DestroyTextTagBJ( udg_CalledFloater )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Called_Shot_Level_1 takes nothing returns nothing
set gg_trg_Called_Shot_Level_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Called_Shot_Level_1, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Called_Shot_Level_1, Condition( function Trig_Called_Shot_Level_1_Conditions ) )
call TriggerAddAction( gg_trg_Called_Shot_Level_1, function Trig_Called_Shot_Level_1_Actions )
endfunction
function Trig_Called_Shot_Level_2_Conditions takes nothing returns boolean
if ( not ( GetAttacker() == udg_CallingShooter2 ) ) then
return false
endif
return true
endfunction
function Trig_Called_Shot_Level_2_Func001Func002A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetUnitLoc(GetAttackedUnitBJ()) )
call IssueTargetOrderBJ( GetEnumUnit(), "slow", GetAttackedUnitBJ() )
endfunction
function Trig_Called_Shot_Level_2_Func001Func008Func002A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetUnitLoc(GetAttackedUnitBJ()) )
call IssueTargetOrderBJ( GetEnumUnit(), "curse", GetAttackedUnitBJ() )
endfunction
function Trig_Called_Shot_Level_2_Func001Func008C takes nothing returns boolean
if ( not ( GetRandomInt(1, 10) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Called_Shot_Level_2_Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 10) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Called_Shot_Level_2_Actions takes nothing returns nothing
if ( Trig_Called_Shot_Level_2_Func001C() ) then
call DestroyTextTagBJ( udg_CalledFloater )
call ForGroupBJ( GetUnitsOfTypeIdAll('u00C'), function Trig_Called_Shot_Level_2_Func001Func002A )
call PolledWait( 0.20 )
call CreateTextTagUnitBJ( "TRIGSTR_1695", GetAttackedUnitBJ(), 50.00, 8.00, 50.00, 100, 50.00, 1.00 )
set udg_CalledFloater = GetLastCreatedTextTag()
call PolledWait( 1.80 )
call DestroyTextTagBJ( udg_CalledFloater )
else
if ( Trig_Called_Shot_Level_2_Func001Func008C() ) then
call DestroyTextTagBJ( udg_CalledFloater )
call ForGroupBJ( GetUnitsOfTypeIdAll('u00C'), function Trig_Called_Shot_Level_2_Func001Func008Func002A )
call PolledWait( 0.20 )
call CreateTextTagUnitBJ( "TRIGSTR_1697", GetAttackedUnitBJ(), 50.00, 8.00, 50.00, 50.00, 100.00, 1.00 )
set udg_CalledFloater = GetLastCreatedTextTag()
call PolledWait( 1.80 )
call DestroyTextTagBJ( udg_CalledFloater )
else
call DoNothing( )
endif
endif
endfunction
//===========================================================================
function InitTrig_Called_Shot_Level_2 takes nothing returns nothing
set gg_trg_Called_Shot_Level_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Called_Shot_Level_2, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Called_Shot_Level_2, Condition( function Trig_Called_Shot_Level_2_Conditions ) )
call TriggerAddAction( gg_trg_Called_Shot_Level_2, function Trig_Called_Shot_Level_2_Actions )
endfunction
function Trig_Called_Shot_Level_3_Conditions takes nothing returns boolean
if ( not ( GetAttacker() == udg_CallingShooter3 ) ) then
return false
endif
return true
endfunction
function Trig_Called_Shot_Level_3_Func001Func002A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetUnitLoc(GetAttackedUnitBJ()) )
call IssueTargetOrderBJ( GetEnumUnit(), "slow", GetAttackedUnitBJ() )
endfunction
function Trig_Called_Shot_Level_3_Func001Func008Func002A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetUnitLoc(GetAttackedUnitBJ()) )
call IssueTargetOrderBJ( GetEnumUnit(), "curse", GetAttackedUnitBJ() )
endfunction
function Trig_Called_Shot_Level_3_Func001Func008Func008C takes nothing returns boolean
if ( not ( GetRandomInt(1, 10) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Called_Shot_Level_3_Func001Func008C takes nothing returns boolean
if ( not ( GetRandomInt(1, 10) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Called_Shot_Level_3_Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 10) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Called_Shot_Level_3_Actions takes nothing returns nothing
if ( Trig_Called_Shot_Level_3_Func001C() ) then
call DestroyTextTagBJ( udg_CalledFloater )
call ForGroupBJ( GetUnitsOfTypeIdAll('u00C'), function Trig_Called_Shot_Level_3_Func001Func002A )
call PolledWait( 0.20 )
call CreateTextTagUnitBJ( "TRIGSTR_1696", GetAttackedUnitBJ(), 50.00, 8.00, 50.00, 100, 50.00, 1.00 )
set udg_CalledFloater = GetLastCreatedTextTag()
call PolledWait( 1.80 )
call DestroyTextTagBJ( udg_CalledFloater )
else
if ( Trig_Called_Shot_Level_3_Func001Func008C() ) then
call DestroyTextTagBJ( udg_CalledFloater )
call ForGroupBJ( GetUnitsOfTypeIdAll('u00C'), function Trig_Called_Shot_Level_3_Func001Func008Func002A )
call PolledWait( 0.20 )
call CreateTextTagUnitBJ( "TRIGSTR_1698", GetAttackedUnitBJ(), 50.00, 8.00, 50.00, 50.00, 100.00, 1.00 )
set udg_CalledFloater = GetLastCreatedTextTag()
call PolledWait( 1.80 )
call DestroyTextTagBJ( udg_CalledFloater )
else
if ( Trig_Called_Shot_Level_3_Func001Func008Func008C() ) then
call DestroyTextTagBJ( udg_CalledFloater )
call UnitDamageTargetBJ( udg_CallingShooter3, GetAttackedUnitBJ(), 50.00, ATTACK_TYPE_PIERCE, DAMAGE_TYPE_NORMAL )
call PolledWait( 0.20 )
call CreateTextTagUnitBJ( "TRIGSTR_1699", GetAttackedUnitBJ(), 50.00, 8.00, 100.00, 50.00, 50.00, 1.00 )
set udg_CalledFloater = GetLastCreatedTextTag()
call PolledWait( 1.80 )
call DestroyTextTagBJ( udg_CalledFloater )
else
call DoNothing( )
endif
endif
endif
endfunction
//===========================================================================
function InitTrig_Called_Shot_Level_3 takes nothing returns nothing
set gg_trg_Called_Shot_Level_3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Called_Shot_Level_3, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Called_Shot_Level_3, Condition( function Trig_Called_Shot_Level_3_Conditions ) )
call TriggerAddAction( gg_trg_Called_Shot_Level_3, function Trig_Called_Shot_Level_3_Actions )
endfunction
function Trig_TNT_1_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetSummonedUnit()) == 'o00A' ) ) then
return false
endif
return true
endfunction
function Trig_TNT_1_Actions takes nothing returns nothing
call PolledWait( 9.50 )
call AddSpecialEffectLocBJ( GetUnitLoc(GetSummonedUnit()), "Abilities\\Spells\\Human\\FlameStrike\\FlameStrike1.mdl" )
endfunction
//===========================================================================
function InitTrig_TNT_1 takes nothing returns nothing
set gg_trg_TNT_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_TNT_1, EVENT_PLAYER_UNIT_SUMMON )
call TriggerAddCondition( gg_trg_TNT_1, Condition( function Trig_TNT_1_Conditions ) )
call TriggerAddAction( gg_trg_TNT_1, function Trig_TNT_1_Actions )
endfunction
function Trig_TNT_2_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetSummonedUnit()) == 'o00B' ) ) then
return false
endif
return true
endfunction
function Trig_TNT_2_Actions takes nothing returns nothing
call PolledWait( 9.50 )
call AddSpecialEffectLocBJ( GetUnitLoc(GetSummonedUnit()), "Abilities\\Spells\\Human\\FlameStrike\\FlameStrike1.mdl" )
endfunction
//===========================================================================
function InitTrig_TNT_2 takes nothing returns nothing
set gg_trg_TNT_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_TNT_2, EVENT_PLAYER_UNIT_SUMMON )
call TriggerAddCondition( gg_trg_TNT_2, Condition( function Trig_TNT_2_Conditions ) )
call TriggerAddAction( gg_trg_TNT_2, function Trig_TNT_2_Actions )
endfunction
function Trig_TNT_3_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetSummonedUnit()) == 'o009' ) ) then
return false
endif
return true
endfunction
function Trig_TNT_3_Actions takes nothing returns nothing
call PolledWait( 9.50 )
call AddSpecialEffectLocBJ( GetUnitLoc(GetSummonedUnit()), "Abilities\\Spells\\Human\\FlameStrike\\FlameStrike1.mdl" )
endfunction
//===========================================================================
function InitTrig_TNT_3 takes nothing returns nothing
set gg_trg_TNT_3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_TNT_3, EVENT_PLAYER_UNIT_SUMMON )
call TriggerAddCondition( gg_trg_TNT_3, Condition( function Trig_TNT_3_Conditions ) )
call TriggerAddAction( gg_trg_TNT_3, function Trig_TNT_3_Actions )
endfunction
function Trig_Allure_1_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A03P' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A03P', GetLearningUnit()) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Allure_1_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'n00Y', GetOwningPlayer(GetLearningUnit()), GetRectCenter(gg_rct_Allure), 270.00 )
set udg_KindredSpirit1 = GetOwningPlayer(GetLearningUnit())
endfunction
//===========================================================================
function InitTrig_Allure_1 takes nothing returns nothing
set gg_trg_Allure_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Allure_1, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Allure_1, Condition( function Trig_Allure_1_Conditions ) )
call TriggerAddAction( gg_trg_Allure_1, function Trig_Allure_1_Actions )
endfunction
function Trig_Allure_2_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A03P' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A03P', GetLearningUnit()) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Allure_2_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'n00Y', GetOwningPlayer(GetLearningUnit()), GetRectCenter(gg_rct_Allure), 270.00 )
set udg_KindredSpirit2 = GetOwningPlayer(GetLearningUnit())
endfunction
//===========================================================================
function InitTrig_Allure_2 takes nothing returns nothing
set gg_trg_Allure_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Allure_2, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Allure_2, Condition( function Trig_Allure_2_Conditions ) )
call TriggerAddAction( gg_trg_Allure_2, function Trig_Allure_2_Actions )
endfunction
function Trig_Allure_3_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A03P' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A03P', GetLearningUnit()) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Allure_3_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'n00Y', GetOwningPlayer(GetLearningUnit()), GetRectCenter(gg_rct_Allure), 270.00 )
set udg_KindredSpirit3 = GetOwningPlayer(GetLearningUnit())
endfunction
//===========================================================================
function InitTrig_Allure_3 takes nothing returns nothing
set gg_trg_Allure_3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Allure_3, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Allure_3, Condition( function Trig_Allure_3_Conditions ) )
call TriggerAddAction( gg_trg_Allure_3, function Trig_Allure_3_Actions )
endfunction
function Trig_Gravity_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A040' ) ) then
return false
endif
return true
endfunction
function Trig_Gravity_Func002001002 takes nothing returns boolean
return ( UnitHasBuffBJ(GetFilterUnit(), 'B01G') == true )
endfunction
function Trig_Gravity_Func002002 takes nothing returns nothing
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) * 0.75 ) )
endfunction
function Trig_Gravity_Actions takes nothing returns nothing
call PolledWait( 1.00 )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Gravity_Func002001002)), function Trig_Gravity_Func002002 )
endfunction
//===========================================================================
function InitTrig_Gravity takes nothing returns nothing
set gg_trg_Gravity = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Gravity, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Gravity, Condition( function Trig_Gravity_Conditions ) )
call TriggerAddAction( gg_trg_Gravity, function Trig_Gravity_Actions )
endfunction
function Trig_Stasis_Purge_Level_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A04Z' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A04Z', GetSpellAbilityUnit()) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Stasis_Purge_Level_1_Actions takes nothing returns nothing
set udg_UnitInStasis = GetSpellTargetUnit()
call PolledWait( 1.00 )
call SetUnitLifeBJ( udg_UnitInStasis, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_UnitInStasis) + 40.00 ) )
call PolledWait( 1.00 )
call SetUnitLifeBJ( udg_UnitInStasis, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_UnitInStasis) + 40.00 ) )
call PolledWait( 1.00 )
call SetUnitLifeBJ( udg_UnitInStasis, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_UnitInStasis) + 40.00 ) )
call PolledWait( 1.00 )
call SetUnitLifeBJ( udg_UnitInStasis, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_UnitInStasis) + 40.00 ) )
call PolledWait( 1.00 )
call SetUnitLifeBJ( udg_UnitInStasis, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_UnitInStasis) + 40.00 ) )
call PolledWait( 1.00 )
call SetUnitLifeBJ( udg_UnitInStasis, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_UnitInStasis) + 40.00 ) )
call PolledWait( 1.00 )
call SetUnitLifeBJ( udg_UnitInStasis, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_UnitInStasis) + 40.00 ) )
call PolledWait( 1.00 )
call SetUnitLifeBJ( udg_UnitInStasis, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_UnitInStasis) + 40.00 ) )
call PolledWait( 1.00 )
call SetUnitLifeBJ( udg_UnitInStasis, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_UnitInStasis) + 40.00 ) )
call PolledWait( 1.00 )
call SetUnitLifeBJ( udg_UnitInStasis, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_UnitInStasis) + 40.00 ) )
endfunction
//===========================================================================
function InitTrig_Stasis_Purge_Level_1 takes nothing returns nothing
set gg_trg_Stasis_Purge_Level_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stasis_Purge_Level_1, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stasis_Purge_Level_1, Condition( function Trig_Stasis_Purge_Level_1_Conditions ) )
call TriggerAddAction( gg_trg_Stasis_Purge_Level_1, function Trig_Stasis_Purge_Level_1_Actions )
endfunction
function Trig_Stasis_Purge_Level_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A04Z' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A04Z', GetSpellAbilityUnit()) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Stasis_Purge_Level_2_Actions takes nothing returns nothing
set udg_UnitInStasis = GetSpellTargetUnit()
call PolledWait( 1.00 )
call SetUnitLifeBJ( udg_UnitInStasis, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_UnitInStasis) + 60.00 ) )
call PolledWait( 1.00 )
call SetUnitLifeBJ( udg_UnitInStasis, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_UnitInStasis) + 60.00 ) )
call PolledWait( 1.00 )
call SetUnitLifeBJ( udg_UnitInStasis, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_UnitInStasis) + 60.00 ) )
call PolledWait( 1.00 )
call SetUnitLifeBJ( udg_UnitInStasis, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_UnitInStasis) + 60.00 ) )
call PolledWait( 1.00 )
call SetUnitLifeBJ( udg_UnitInStasis, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_UnitInStasis) + 60.00 ) )
call PolledWait( 1.00 )
call SetUnitLifeBJ( udg_UnitInStasis, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_UnitInStasis) + 60.00 ) )
call PolledWait( 1.00 )
call SetUnitLifeBJ( udg_UnitInStasis, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_UnitInStasis) + 60.00 ) )
call PolledWait( 1.00 )
call SetUnitLifeBJ( udg_UnitInStasis, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_UnitInStasis) + 60.00 ) )
call PolledWait( 1.00 )
call SetUnitLifeBJ( udg_UnitInStasis, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_UnitInStasis) + 60.00 ) )
call PolledWait( 1.00 )
call SetUnitLifeBJ( udg_UnitInStasis, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_UnitInStasis) + 60.00 ) )
endfunction
//===========================================================================
function InitTrig_Stasis_Purge_Level_2 takes nothing returns nothing
set gg_trg_Stasis_Purge_Level_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stasis_Purge_Level_2, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stasis_Purge_Level_2, Condition( function Trig_Stasis_Purge_Level_2_Conditions ) )
call TriggerAddAction( gg_trg_Stasis_Purge_Level_2, function Trig_Stasis_Purge_Level_2_Actions )
endfunction
function Trig_Stasis_Purge_Level_3_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A04Z' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A04Z', GetSpellAbilityUnit()) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Stasis_Purge_Level_3_Actions takes nothing returns nothing
set udg_UnitInStasis = GetSpellTargetUnit()
call PolledWait( 1.00 )
call SetUnitLifeBJ( udg_UnitInStasis, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_UnitInStasis) + 80.00 ) )
call PolledWait( 1.00 )
call SetUnitLifeBJ( udg_UnitInStasis, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_UnitInStasis) + 80.00 ) )
call PolledWait( 1.00 )
call SetUnitLifeBJ( udg_UnitInStasis, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_UnitInStasis) + 80.00 ) )
call PolledWait( 1.00 )
call SetUnitLifeBJ( udg_UnitInStasis, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_UnitInStasis) + 80.00 ) )
call PolledWait( 1.00 )
call SetUnitLifeBJ( udg_UnitInStasis, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_UnitInStasis) + 80.00 ) )
call PolledWait( 1.00 )
call SetUnitLifeBJ( udg_UnitInStasis, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_UnitInStasis) + 80.00 ) )
call PolledWait( 1.00 )
call SetUnitLifeBJ( udg_UnitInStasis, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_UnitInStasis) + 80.00 ) )
call PolledWait( 1.00 )
call SetUnitLifeBJ( udg_UnitInStasis, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_UnitInStasis) + 80.00 ) )
call PolledWait( 1.00 )
call SetUnitLifeBJ( udg_UnitInStasis, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_UnitInStasis) + 80.00 ) )
call PolledWait( 1.00 )
call SetUnitLifeBJ( udg_UnitInStasis, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_UnitInStasis) + 80.00 ) )
endfunction
//===========================================================================
function InitTrig_Stasis_Purge_Level_3 takes nothing returns nothing
set gg_trg_Stasis_Purge_Level_3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stasis_Purge_Level_3, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stasis_Purge_Level_3, Condition( function Trig_Stasis_Purge_Level_3_Conditions ) )
call TriggerAddAction( gg_trg_Stasis_Purge_Level_3, function Trig_Stasis_Purge_Level_3_Actions )
endfunction
function Trig_Hunting_Hawk_Level_1_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A05N' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A05N', GetLearningUnit()) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Hunting_Hawk_Level_1_Actions takes nothing returns nothing
call SetPlayerTechResearchedSwap( 'R002', 1, GetOwningPlayer(GetLearningUnit()) )
set udg_Hawk1 = GetLearningUnit()
endfunction
//===========================================================================
function InitTrig_Hunting_Hawk_Level_1 takes nothing returns nothing
set gg_trg_Hunting_Hawk_Level_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Hunting_Hawk_Level_1, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Hunting_Hawk_Level_1, Condition( function Trig_Hunting_Hawk_Level_1_Conditions ) )
call TriggerAddAction( gg_trg_Hunting_Hawk_Level_1, function Trig_Hunting_Hawk_Level_1_Actions )
endfunction
function Trig_Hunting_Hawk_Level_2_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A05N' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A05N', GetLearningUnit()) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Hunting_Hawk_Level_2_Actions takes nothing returns nothing
call SetPlayerTechResearchedSwap( 'R002', 2, GetOwningPlayer(GetLearningUnit()) )
set udg_Hawk1 = null
set udg_Hawk2 = GetLearningUnit()
endfunction
//===========================================================================
function InitTrig_Hunting_Hawk_Level_2 takes nothing returns nothing
set gg_trg_Hunting_Hawk_Level_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Hunting_Hawk_Level_2, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Hunting_Hawk_Level_2, Condition( function Trig_Hunting_Hawk_Level_2_Conditions ) )
call TriggerAddAction( gg_trg_Hunting_Hawk_Level_2, function Trig_Hunting_Hawk_Level_2_Actions )
endfunction
function Trig_Hunting_Hawk_Level_3_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A05N' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A05N', GetLearningUnit()) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Hunting_Hawk_Level_3_Actions takes nothing returns nothing
call SetPlayerTechResearchedSwap( 'R003', 1, GetOwningPlayer(GetLearningUnit()) )
set udg_Hawk2 = null
set udg_Hawk3 = GetLearningUnit()
endfunction
//===========================================================================
function InitTrig_Hunting_Hawk_Level_3 takes nothing returns nothing
set gg_trg_Hunting_Hawk_Level_3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Hunting_Hawk_Level_3, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Hunting_Hawk_Level_3, Condition( function Trig_Hunting_Hawk_Level_3_Conditions ) )
call TriggerAddAction( gg_trg_Hunting_Hawk_Level_3, function Trig_Hunting_Hawk_Level_3_Actions )
endfunction
function Trig_Finding_Aphonia_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I02E' ) ) then
return false
endif
return true
endfunction
function Trig_Finding_Aphonia_Actions takes nothing returns nothing
set udg_Aphonia = GetManipulatingUnit()
endfunction
//===========================================================================
function InitTrig_Finding_Aphonia takes nothing returns nothing
set gg_trg_Finding_Aphonia = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Finding_Aphonia, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Finding_Aphonia, Condition( function Trig_Finding_Aphonia_Conditions ) )
call TriggerAddAction( gg_trg_Finding_Aphonia, function Trig_Finding_Aphonia_Actions )
endfunction
function Trig_Losing_Aphonia_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I02E' ) ) then
return false
endif
return true
endfunction
function Trig_Losing_Aphonia_Actions takes nothing returns nothing
set udg_Aphonia = null
endfunction
//===========================================================================
function InitTrig_Losing_Aphonia takes nothing returns nothing
set gg_trg_Losing_Aphonia = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Losing_Aphonia, EVENT_PLAYER_UNIT_DROP_ITEM )
call TriggerAddCondition( gg_trg_Losing_Aphonia, Condition( function Trig_Losing_Aphonia_Conditions ) )
call TriggerAddAction( gg_trg_Losing_Aphonia, function Trig_Losing_Aphonia_Actions )
endfunction
function Trig_Aphonia_Conditions takes nothing returns boolean
if ( not ( GetAttacker() == udg_Aphonia ) ) then
return false
endif
return true
endfunction
function Trig_Aphonia_Func002Func002A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetUnitLoc(GetAttackedUnitBJ()) )
call IssueTargetOrderBJ( GetEnumUnit(), "drunkenhaze", GetAttackedUnitBJ() )
endfunction
function Trig_Aphonia_Func002C takes nothing returns boolean
if ( not ( GetRandomInt(1, 10) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Aphonia_Actions takes nothing returns nothing
call PolledWait( 0.25 )
if ( Trig_Aphonia_Func002C() ) then
call ForGroupBJ( GetUnitsOfTypeIdAll('u00L'), function Trig_Aphonia_Func002Func002A )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Aphonia takes nothing returns nothing
set gg_trg_Aphonia = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Aphonia, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Aphonia, Condition( function Trig_Aphonia_Conditions ) )
call TriggerAddAction( gg_trg_Aphonia, function Trig_Aphonia_Actions )
endfunction
function Trig_Overgrowth_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A07U' ) ) then
return false
endif
return true
endfunction
function Trig_Overgrowth_Func010002 takes nothing returns nothing
call ReplaceUnitBJ( GetEnumUnit(), 'e00V', bj_UNIT_STATE_METHOD_RELATIVE )
endfunction
function Trig_Overgrowth_Func011002 takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ( "origin", GetEnumUnit(), "Abilities\\Spells\\Undead\\AnimateDead\\AnimateDeadTarget.mdl" )
endfunction
function Trig_Overgrowth_Func013002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Overgrowth_Actions takes nothing returns nothing
call CreateNUnitsAtLocFacingLocBJ( 1, 'h01H', GetOwningPlayer(GetSpellAbilityUnit()), OffsetLocation(GetUnitLoc(GetSpellAbilityUnit()), 200.00, 0), GetUnitLoc(GetSpellAbilityUnit()) )
call CreateNUnitsAtLocFacingLocBJ( 1, 'h01H', GetOwningPlayer(GetSpellAbilityUnit()), OffsetLocation(GetUnitLoc(GetSpellAbilityUnit()), 100.00, 100.00), GetUnitLoc(GetSpellAbilityUnit()) )
call CreateNUnitsAtLocFacingLocBJ( 1, 'h01H', GetOwningPlayer(GetSpellAbilityUnit()), OffsetLocation(GetUnitLoc(GetSpellAbilityUnit()), 0.00, 200.00), GetUnitLoc(GetSpellAbilityUnit()) )
call CreateNUnitsAtLocFacingLocBJ( 1, 'h01H', GetOwningPlayer(GetSpellAbilityUnit()), OffsetLocation(GetUnitLoc(GetSpellAbilityUnit()), -100.00, 100.00), GetUnitLoc(GetSpellAbilityUnit()) )
call CreateNUnitsAtLocFacingLocBJ( 1, 'h01H', GetOwningPlayer(GetSpellAbilityUnit()), OffsetLocation(GetUnitLoc(GetSpellAbilityUnit()), -200.00, 0), GetUnitLoc(GetSpellAbilityUnit()) )
call CreateNUnitsAtLocFacingLocBJ( 1, 'h01H', GetOwningPlayer(GetSpellAbilityUnit()), OffsetLocation(GetUnitLoc(GetSpellAbilityUnit()), -100.00, -100.00), GetUnitLoc(GetSpellAbilityUnit()) )
call CreateNUnitsAtLocFacingLocBJ( 1, 'h01H', GetOwningPlayer(GetSpellAbilityUnit()), OffsetLocation(GetUnitLoc(GetSpellAbilityUnit()), 0.00, -200.00), GetUnitLoc(GetSpellAbilityUnit()) )
call CreateNUnitsAtLocFacingLocBJ( 1, 'h01H', GetOwningPlayer(GetSpellAbilityUnit()), OffsetLocation(GetUnitLoc(GetSpellAbilityUnit()), 100.00, -100.00), GetUnitLoc(GetSpellAbilityUnit()) )
call PolledWait( 15.00 )
call ForGroupBJ( GetUnitsOfTypeIdAll('h01H'), function Trig_Overgrowth_Func010002 )
call ForGroupBJ( GetUnitsOfTypeIdAll('e00V'), function Trig_Overgrowth_Func011002 )
call PolledWait( 15.00 )
call ForGroupBJ( GetUnitsOfTypeIdAll('e00V'), function Trig_Overgrowth_Func013002 )
endfunction
//===========================================================================
function InitTrig_Overgrowth takes nothing returns nothing
set gg_trg_Overgrowth = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Overgrowth, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Overgrowth, Condition( function Trig_Overgrowth_Conditions ) )
call TriggerAddAction( gg_trg_Overgrowth, function Trig_Overgrowth_Actions )
endfunction
function Trig_Adder_Kiss_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A08L' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A08L', GetSpellAbilityUnit()) == 2 ) ) then
return false
endif
if ( not ( IsUnitType(GetSpellTargetUnit(), UNIT_TYPE_HERO) == false ) ) then
return false
endif
return true
endfunction
function Trig_Adder_Kiss_2_Func006001 takes nothing returns boolean
return ( GetRandomInt(1, 20) == 1 )
endfunction
function Trig_Adder_Kiss_2_Actions takes nothing returns nothing
call PolledWait( 0.25 )
if ( Trig_Adder_Kiss_2_Func006001() ) then
call ExplodeUnitBJ( GetSpellTargetUnit() )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Adder_Kiss_2 takes nothing returns nothing
set gg_trg_Adder_Kiss_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Adder_Kiss_2, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Adder_Kiss_2, Condition( function Trig_Adder_Kiss_2_Conditions ) )
call TriggerAddAction( gg_trg_Adder_Kiss_2, function Trig_Adder_Kiss_2_Actions )
endfunction
function Trig_Adder_Kiss_3_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A08L' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A08L', GetSpellAbilityUnit()) == 3 ) ) then
return false
endif
if ( not ( IsUnitType(GetSpellTargetUnit(), UNIT_TYPE_HERO) == false ) ) then
return false
endif
return true
endfunction
function Trig_Adder_Kiss_3_Func006001 takes nothing returns boolean
return ( GetRandomInt(1, 20) <= 2 )
endfunction
function Trig_Adder_Kiss_3_Actions takes nothing returns nothing
call PolledWait( 0.25 )
if ( Trig_Adder_Kiss_3_Func006001() ) then
call ExplodeUnitBJ( GetSpellTargetUnit() )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Adder_Kiss_3 takes nothing returns nothing
set gg_trg_Adder_Kiss_3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Adder_Kiss_3, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Adder_Kiss_3, Condition( function Trig_Adder_Kiss_3_Conditions ) )
call TriggerAddAction( gg_trg_Adder_Kiss_3, function Trig_Adder_Kiss_3_Actions )
endfunction
function Trig_Domination_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A08M' ) ) then
return false
endif
return true
endfunction
function Trig_Domination_Actions takes nothing returns nothing
set udg_Domino = GetSpellTargetUnit()
set udg_DominoPlayer = GetOwningPlayer(GetSpellTargetUnit())
call PolledWait( 30.00 )
call SetUnitOwner( udg_Domino, udg_DominoPlayer, true )
endfunction
//===========================================================================
function InitTrig_Domination takes nothing returns nothing
set gg_trg_Domination = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Domination, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Domination, Condition( function Trig_Domination_Conditions ) )
call TriggerAddAction( gg_trg_Domination, function Trig_Domination_Actions )
endfunction
function Trig_Tentacle_Swarm_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A08X' ) ) then
return false
endif
return true
endfunction
function Trig_Tentacle_Swarm_Actions takes nothing returns nothing
call CreateNUnitsAtLocFacingLocBJ( 1, 'n02X', GetOwningPlayer(GetSpellAbilityUnit()), OffsetLocation(GetUnitLoc(GetSpellAbilityUnit()), 200.00, 0), GetUnitLoc(GetSpellAbilityUnit()) )
call CreateNUnitsAtLocFacingLocBJ( 1, 'n02X', GetOwningPlayer(GetSpellAbilityUnit()), OffsetLocation(GetUnitLoc(GetSpellAbilityUnit()), 100.00, 100.00), GetUnitLoc(GetSpellAbilityUnit()) )
call CreateNUnitsAtLocFacingLocBJ( 1, 'n02X', GetOwningPlayer(GetSpellAbilityUnit()), OffsetLocation(GetUnitLoc(GetSpellAbilityUnit()), 0.00, 200.00), GetUnitLoc(GetSpellAbilityUnit()) )
call CreateNUnitsAtLocFacingLocBJ( 1, 'n02X', GetOwningPlayer(GetSpellAbilityUnit()), OffsetLocation(GetUnitLoc(GetSpellAbilityUnit()), -100.00, 100.00), GetUnitLoc(GetSpellAbilityUnit()) )
call CreateNUnitsAtLocFacingLocBJ( 1, 'n02X', GetOwningPlayer(GetSpellAbilityUnit()), OffsetLocation(GetUnitLoc(GetSpellAbilityUnit()), -200.00, 0), GetUnitLoc(GetSpellAbilityUnit()) )
call CreateNUnitsAtLocFacingLocBJ( 1, 'n02X', GetOwningPlayer(GetSpellAbilityUnit()), OffsetLocation(GetUnitLoc(GetSpellAbilityUnit()), -100.00, -100.00), GetUnitLoc(GetSpellAbilityUnit()) )
call CreateNUnitsAtLocFacingLocBJ( 1, 'n02X', GetOwningPlayer(GetSpellAbilityUnit()), OffsetLocation(GetUnitLoc(GetSpellAbilityUnit()), 0.00, -200.00), GetUnitLoc(GetSpellAbilityUnit()) )
call CreateNUnitsAtLocFacingLocBJ( 1, 'n02X', GetOwningPlayer(GetSpellAbilityUnit()), OffsetLocation(GetUnitLoc(GetSpellAbilityUnit()), 100.00, -100.00), GetUnitLoc(GetSpellAbilityUnit()) )
endfunction
//===========================================================================
function InitTrig_Tentacle_Swarm takes nothing returns nothing
set gg_trg_Tentacle_Swarm = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Tentacle_Swarm, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Tentacle_Swarm, Condition( function Trig_Tentacle_Swarm_Conditions ) )
call TriggerAddAction( gg_trg_Tentacle_Swarm, function Trig_Tentacle_Swarm_Actions )
endfunction
function Trig_Spirit_Arrow_Level_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A09T' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A09T', GetSpellAbilityUnit()) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Spirit_Arrow_Level_1_Actions takes nothing returns nothing
set udg_DeathSpirit = GetSpellAbilityUnit()
set udg_DeadSpirit = GetSpellTargetUnit()
call PolledWait( 0.60 )
set udg_ArrowSpirit = ( GetUnitStateSwap(UNIT_STATE_MAX_LIFE, GetSpellAbilityUnit()) - GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellAbilityUnit()) )
call UnitDamageTargetBJ( udg_DeathSpirit, udg_DeadSpirit, udg_ArrowSpirit, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
endfunction
//===========================================================================
function InitTrig_Spirit_Arrow_Level_1 takes nothing returns nothing
set gg_trg_Spirit_Arrow_Level_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Spirit_Arrow_Level_1, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Spirit_Arrow_Level_1, Condition( function Trig_Spirit_Arrow_Level_1_Conditions ) )
call TriggerAddAction( gg_trg_Spirit_Arrow_Level_1, function Trig_Spirit_Arrow_Level_1_Actions )
endfunction
function Trig_Spirit_Arrow_Level_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A09T' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A09T', GetSpellAbilityUnit()) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Spirit_Arrow_Level_2_Actions takes nothing returns nothing
set udg_DeathSpirit = GetSpellAbilityUnit()
set udg_DeadSpirit = GetSpellTargetUnit()
call PolledWait( 0.60 )
set udg_ArrowSpirit = ( GetUnitStateSwap(UNIT_STATE_MAX_LIFE, GetSpellAbilityUnit()) - GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellAbilityUnit()) )
set udg_ArrowSpirit = ( udg_ArrowSpirit * 1.25 )
call UnitDamageTargetBJ( udg_DeathSpirit, udg_DeadSpirit, udg_ArrowSpirit, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
endfunction
//===========================================================================
function InitTrig_Spirit_Arrow_Level_2 takes nothing returns nothing
set gg_trg_Spirit_Arrow_Level_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Spirit_Arrow_Level_2, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Spirit_Arrow_Level_2, Condition( function Trig_Spirit_Arrow_Level_2_Conditions ) )
call TriggerAddAction( gg_trg_Spirit_Arrow_Level_2, function Trig_Spirit_Arrow_Level_2_Actions )
endfunction
function Trig_Spirit_Arrow_Level_3_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A09T' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A09T', GetSpellAbilityUnit()) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Spirit_Arrow_Level_3_Actions takes nothing returns nothing
set udg_DeathSpirit = GetSpellAbilityUnit()
set udg_DeadSpirit = GetSpellTargetUnit()
call PolledWait( 0.60 )
set udg_ArrowSpirit = ( GetUnitStateSwap(UNIT_STATE_MAX_LIFE, GetSpellAbilityUnit()) - GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellAbilityUnit()) )
set udg_ArrowSpirit = ( udg_ArrowSpirit * 1.50 )
call UnitDamageTargetBJ( udg_DeathSpirit, udg_DeadSpirit, udg_ArrowSpirit, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
endfunction
//===========================================================================
function InitTrig_Spirit_Arrow_Level_3 takes nothing returns nothing
set gg_trg_Spirit_Arrow_Level_3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Spirit_Arrow_Level_3, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Spirit_Arrow_Level_3, Condition( function Trig_Spirit_Arrow_Level_3_Conditions ) )
call TriggerAddAction( gg_trg_Spirit_Arrow_Level_3, function Trig_Spirit_Arrow_Level_3_Actions )
endfunction
function Trig_Silver_Saturation_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A0E9' ) ) then
return false
endif
return true
endfunction
function Trig_Silver_Saturation_Actions takes nothing returns nothing
set udg_SilverSaturation = ( udg_SilverSaturation + 100.00 )
endfunction
//===========================================================================
function InitTrig_Silver_Saturation takes nothing returns nothing
set gg_trg_Silver_Saturation = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Silver_Saturation, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Silver_Saturation, Condition( function Trig_Silver_Saturation_Conditions ) )
call TriggerAddAction( gg_trg_Silver_Saturation, function Trig_Silver_Saturation_Actions )
endfunction
function Trig_Silver_Rain_Level_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0E9' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A09T', GetSpellAbilityUnit()) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Silver_Rain_Level_1_Func004001003 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(udg_DeathSpirit)) == true )
endfunction
function Trig_Silver_Rain_Level_1_Func004A takes nothing returns nothing
call UnitDamageTargetBJ( udg_DeathSpirit, GetEnumUnit(), udg_ArrowSpirit, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
endfunction
function Trig_Silver_Rain_Level_1_Actions takes nothing returns nothing
set udg_DeathSpirit = GetSpellAbilityUnit()
call PolledWait( 0.60 )
set udg_ArrowSpirit = ( GetUnitStateSwap(UNIT_STATE_MAX_LIFE, GetSpellAbilityUnit()) - GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellAbilityUnit()) )
call ForGroupBJ( GetUnitsInRangeOfLocMatching(udg_SilverSaturation, GetSpellTargetLoc(), Condition(function Trig_Silver_Rain_Level_1_Func004001003)), function Trig_Silver_Rain_Level_1_Func004A )
endfunction
//===========================================================================
function InitTrig_Silver_Rain_Level_1 takes nothing returns nothing
set gg_trg_Silver_Rain_Level_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Silver_Rain_Level_1, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Silver_Rain_Level_1, Condition( function Trig_Silver_Rain_Level_1_Conditions ) )
call TriggerAddAction( gg_trg_Silver_Rain_Level_1, function Trig_Silver_Rain_Level_1_Actions )
endfunction
function Trig_Silver_Rain_Level_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0E9' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A09T', GetSpellAbilityUnit()) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Silver_Rain_Level_2_Func005001003 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(udg_DeathSpirit)) == true )
endfunction
function Trig_Silver_Rain_Level_2_Func005A takes nothing returns nothing
call UnitDamageTargetBJ( udg_DeathSpirit, GetEnumUnit(), udg_ArrowSpirit, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
endfunction
function Trig_Silver_Rain_Level_2_Actions takes nothing returns nothing
set udg_DeathSpirit = GetSpellAbilityUnit()
call PolledWait( 0.60 )
set udg_ArrowSpirit = ( GetUnitStateSwap(UNIT_STATE_MAX_LIFE, GetSpellAbilityUnit()) - GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellAbilityUnit()) )
set udg_ArrowSpirit = ( udg_ArrowSpirit * 1.25 )
call ForGroupBJ( GetUnitsInRangeOfLocMatching(udg_SilverSaturation, GetSpellTargetLoc(), Condition(function Trig_Silver_Rain_Level_2_Func005001003)), function Trig_Silver_Rain_Level_2_Func005A )
endfunction
//===========================================================================
function InitTrig_Silver_Rain_Level_2 takes nothing returns nothing
set gg_trg_Silver_Rain_Level_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Silver_Rain_Level_2, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Silver_Rain_Level_2, Condition( function Trig_Silver_Rain_Level_2_Conditions ) )
call TriggerAddAction( gg_trg_Silver_Rain_Level_2, function Trig_Silver_Rain_Level_2_Actions )
endfunction
function Trig_Silver_Rain_Level_3_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0E9' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A09T', GetSpellAbilityUnit()) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Silver_Rain_Level_3_Func005001003 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(udg_DeathSpirit)) == true )
endfunction
function Trig_Silver_Rain_Level_3_Func005A takes nothing returns nothing
call UnitDamageTargetBJ( udg_DeathSpirit, GetEnumUnit(), udg_ArrowSpirit, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
endfunction
function Trig_Silver_Rain_Level_3_Actions takes nothing returns nothing
set udg_DeathSpirit = GetSpellAbilityUnit()
call PolledWait( 0.60 )
set udg_ArrowSpirit = ( GetUnitStateSwap(UNIT_STATE_MAX_LIFE, GetSpellAbilityUnit()) - GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellAbilityUnit()) )
set udg_ArrowSpirit = ( udg_ArrowSpirit * 1.50 )
call ForGroupBJ( GetUnitsInRangeOfLocMatching(udg_SilverSaturation, GetSpellTargetLoc(), Condition(function Trig_Silver_Rain_Level_3_Func005001003)), function Trig_Silver_Rain_Level_3_Func005A )
endfunction
//===========================================================================
function InitTrig_Silver_Rain_Level_3 takes nothing returns nothing
set gg_trg_Silver_Rain_Level_3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Silver_Rain_Level_3, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Silver_Rain_Level_3, Condition( function Trig_Silver_Rain_Level_3_Conditions ) )
call TriggerAddAction( gg_trg_Silver_Rain_Level_3, function Trig_Silver_Rain_Level_3_Actions )
endfunction
function Trig_Identity_Theft_Level_1_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0A2', GetLearningUnit()) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Identity_Theft_Level_1_Actions takes nothing returns nothing
set udg_TheftLevel = 1
endfunction
//===========================================================================
function InitTrig_Identity_Theft_Level_1 takes nothing returns nothing
set gg_trg_Identity_Theft_Level_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Identity_Theft_Level_1, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Identity_Theft_Level_1, Condition( function Trig_Identity_Theft_Level_1_Conditions ) )
call TriggerAddAction( gg_trg_Identity_Theft_Level_1, function Trig_Identity_Theft_Level_1_Actions )
endfunction
function Trig_Identity_Theft_Level_2_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0A2', GetLearningUnit()) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Identity_Theft_Level_2_Actions takes nothing returns nothing
set udg_TheftLevel = 2
endfunction
//===========================================================================
function InitTrig_Identity_Theft_Level_2 takes nothing returns nothing
set gg_trg_Identity_Theft_Level_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Identity_Theft_Level_2, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Identity_Theft_Level_2, Condition( function Trig_Identity_Theft_Level_2_Conditions ) )
call TriggerAddAction( gg_trg_Identity_Theft_Level_2, function Trig_Identity_Theft_Level_2_Actions )
endfunction
function Trig_Identity_Theft_Level_3_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0A2', GetLearningUnit()) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Identity_Theft_Level_3_Actions takes nothing returns nothing
set udg_TheftLevel = 3
endfunction
//===========================================================================
function InitTrig_Identity_Theft_Level_3 takes nothing returns nothing
set gg_trg_Identity_Theft_Level_3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Identity_Theft_Level_3, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Identity_Theft_Level_3, Condition( function Trig_Identity_Theft_Level_3_Conditions ) )
call TriggerAddAction( gg_trg_Identity_Theft_Level_3, function Trig_Identity_Theft_Level_3_Actions )
endfunction
function Trig_Stealing_Swordsman_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'H002' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Swordsman_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A09U', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A09U'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Swordsman takes nothing returns nothing
set gg_trg_Stealing_Swordsman = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Swordsman, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Swordsman, Condition( function Trig_Stealing_Swordsman_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Swordsman, function Trig_Stealing_Swordsman_Actions )
endfunction
function Trig_Stealing_Knight_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'H00T' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Knight_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A09U', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A09U'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Knight takes nothing returns nothing
set gg_trg_Stealing_Knight = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Knight, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Knight, Condition( function Trig_Stealing_Knight_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Knight, function Trig_Stealing_Knight_Actions )
endfunction
function Trig_Stealing_Brute_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'O000' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Brute_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A09V', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A09V'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Brute takes nothing returns nothing
set gg_trg_Stealing_Brute = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Brute, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Brute, Condition( function Trig_Stealing_Brute_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Brute, function Trig_Stealing_Brute_Actions )
endfunction
function Trig_Stealing_Brute_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'O001' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Brute_1_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A09V', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A09V'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Brute_1 takes nothing returns nothing
set gg_trg_Stealing_Brute_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Brute_1, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Brute_1, Condition( function Trig_Stealing_Brute_1_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Brute_1, function Trig_Stealing_Brute_1_Actions )
endfunction
function Trig_Stealing_Brute_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'O002' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Brute_2_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A09V', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A09V'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Brute_2 takes nothing returns nothing
set gg_trg_Stealing_Brute_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Brute_2, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Brute_2, Condition( function Trig_Stealing_Brute_2_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Brute_2, function Trig_Stealing_Brute_2_Actions )
endfunction
function Trig_Stealing_Brute_3_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'O003' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Brute_3_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A09V', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A09V'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Brute_3 takes nothing returns nothing
set gg_trg_Stealing_Brute_3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Brute_3, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Brute_3, Condition( function Trig_Stealing_Brute_3_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Brute_3, function Trig_Stealing_Brute_3_Actions )
endfunction
function Trig_Stealing_Berserker_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'O00E' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Berserker_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A09V', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A09V'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Berserker takes nothing returns nothing
set gg_trg_Stealing_Berserker = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Berserker, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Berserker, Condition( function Trig_Stealing_Berserker_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Berserker, function Trig_Stealing_Berserker_Actions )
endfunction
function Trig_Stealing_Berserker_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'O00G' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Berserker_1_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A09V', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A09V'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Berserker_1 takes nothing returns nothing
set gg_trg_Stealing_Berserker_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Berserker_1, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Berserker_1, Condition( function Trig_Stealing_Berserker_1_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Berserker_1, function Trig_Stealing_Berserker_1_Actions )
endfunction
function Trig_Stealing_Berserker_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'O00H' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Berserker_2_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A09V', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A09V'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Berserker_2 takes nothing returns nothing
set gg_trg_Stealing_Berserker_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Berserker_2, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Berserker_2, Condition( function Trig_Stealing_Berserker_2_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Berserker_2, function Trig_Stealing_Berserker_2_Actions )
endfunction
function Trig_Stealing_Berserker_3_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'O00I' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Berserker_3_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A09V', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A09V'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Berserker_3 takes nothing returns nothing
set gg_trg_Stealing_Berserker_3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Berserker_3, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Berserker_3, Condition( function Trig_Stealing_Berserker_3_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Berserker_3, function Trig_Stealing_Berserker_3_Actions )
endfunction
function Trig_Stealing_Huntress_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'E005' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Huntress_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A09W', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A09W'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Huntress takes nothing returns nothing
set gg_trg_Stealing_Huntress = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Huntress, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Huntress, Condition( function Trig_Stealing_Huntress_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Huntress, function Trig_Stealing_Huntress_Actions )
endfunction
function Trig_Stealing_Ninja_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'E00U' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Ninja_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A09W', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A09W'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Ninja takes nothing returns nothing
set gg_trg_Stealing_Ninja = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Ninja, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Ninja, Condition( function Trig_Stealing_Ninja_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Ninja, function Trig_Stealing_Ninja_Actions )
endfunction
function Trig_Stealing_Cleric_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'E007' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Cleric_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A01E', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A01E'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Cleric takes nothing returns nothing
set gg_trg_Stealing_Cleric = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Cleric, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Cleric, Condition( function Trig_Stealing_Cleric_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Cleric, function Trig_Stealing_Cleric_Actions )
endfunction
function Trig_Stealing_High_Priest_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'H01M' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_High_Priest_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A01E', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A01E'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_High_Priest takes nothing returns nothing
set gg_trg_Stealing_High_Priest = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_High_Priest, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_High_Priest, Condition( function Trig_Stealing_High_Priest_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_High_Priest, function Trig_Stealing_High_Priest_Actions )
endfunction
function Trig_Stealing_Animist_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'O00C' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Animist_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A09X', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A09X'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Animist takes nothing returns nothing
set gg_trg_Stealing_Animist = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Animist, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Animist, Condition( function Trig_Stealing_Animist_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Animist, function Trig_Stealing_Animist_Actions )
endfunction
function Trig_Stealing_Shaman_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'O00J' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Shaman_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A09X', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A09X'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Shaman takes nothing returns nothing
set gg_trg_Stealing_Shaman = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Shaman, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Shaman, Condition( function Trig_Stealing_Shaman_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Shaman, function Trig_Stealing_Shaman_Actions )
endfunction
function Trig_Stealing_Archer_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'E009' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Archer_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A09Y', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A09Y'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Archer takes nothing returns nothing
set gg_trg_Stealing_Archer = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Archer, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Archer, Condition( function Trig_Stealing_Archer_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Archer, function Trig_Stealing_Archer_Actions )
endfunction
function Trig_Stealing_Ranger_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'E012' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Ranger_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A09Y', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A09Y'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Ranger takes nothing returns nothing
set gg_trg_Stealing_Ranger = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Ranger, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Ranger, Condition( function Trig_Stealing_Ranger_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Ranger, function Trig_Stealing_Ranger_Actions )
endfunction
function Trig_Stealing_Druid_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'E000' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Druid_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A09Z', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A09Z'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Druid takes nothing returns nothing
set gg_trg_Stealing_Druid = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Druid, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Druid, Condition( function Trig_Stealing_Druid_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Druid, function Trig_Stealing_Druid_Actions )
endfunction
function Trig_Stealing_Druid_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'E002' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Druid_1_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A09Z', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A09Z'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Druid_1 takes nothing returns nothing
set gg_trg_Stealing_Druid_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Druid_1, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Druid_1, Condition( function Trig_Stealing_Druid_1_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Druid_1, function Trig_Stealing_Druid_1_Actions )
endfunction
function Trig_Stealing_Druid_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'E003' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Druid_2_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A09Z', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A09Z'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Druid_2 takes nothing returns nothing
set gg_trg_Stealing_Druid_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Druid_2, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Druid_2, Condition( function Trig_Stealing_Druid_2_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Druid_2, function Trig_Stealing_Druid_2_Actions )
endfunction
function Trig_Stealing_Druid_3_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'E004' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Druid_3_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A09Z', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A09Z'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Druid_3 takes nothing returns nothing
set gg_trg_Stealing_Druid_3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Druid_3, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Druid_3, Condition( function Trig_Stealing_Druid_3_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Druid_3, function Trig_Stealing_Druid_3_Actions )
endfunction
function Trig_Stealing_Enforcer_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'E00P' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Enforcer_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A09Z', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A09Z'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Enforcer takes nothing returns nothing
set gg_trg_Stealing_Enforcer = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Enforcer, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Enforcer, Condition( function Trig_Stealing_Enforcer_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Enforcer, function Trig_Stealing_Enforcer_Actions )
endfunction
function Trig_Stealing_Enforcer_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'E00Q' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Enforcer_1_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A09Z', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A09Z'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Enforcer_1 takes nothing returns nothing
set gg_trg_Stealing_Enforcer_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Enforcer_1, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Enforcer_1, Condition( function Trig_Stealing_Enforcer_1_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Enforcer_1, function Trig_Stealing_Enforcer_1_Actions )
endfunction
function Trig_Stealing_Enforcer_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'E00R' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Enforcer_2_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A09Z', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A09Z'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Enforcer_2 takes nothing returns nothing
set gg_trg_Stealing_Enforcer_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Enforcer_2, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Enforcer_2, Condition( function Trig_Stealing_Enforcer_2_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Enforcer_2, function Trig_Stealing_Enforcer_2_Actions )
endfunction
function Trig_Stealing_Enforcer_3_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'E00S' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Enforcer_3_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A09Z', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A09Z'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Enforcer_3 takes nothing returns nothing
set gg_trg_Stealing_Enforcer_3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Enforcer_3, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Enforcer_3, Condition( function Trig_Stealing_Enforcer_3_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Enforcer_3, function Trig_Stealing_Enforcer_3_Actions )
endfunction
function Trig_Stealing_Sorceress_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'U006' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Sorceress_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0A0', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0A0'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Sorceress takes nothing returns nothing
set gg_trg_Stealing_Sorceress = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Sorceress, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Sorceress, Condition( function Trig_Stealing_Sorceress_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Sorceress, function Trig_Stealing_Sorceress_Actions )
endfunction
function Trig_Stealing_Enchantress_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'U00F' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Enchantress_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0A0', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0A0'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Enchantress takes nothing returns nothing
set gg_trg_Stealing_Enchantress = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Enchantress, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Enchantress, Condition( function Trig_Stealing_Enchantress_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Enchantress, function Trig_Stealing_Enchantress_Actions )
endfunction
function Trig_Stealing_Warlock_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'U000' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Warlock_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0A1', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0A1'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Warlock takes nothing returns nothing
set gg_trg_Stealing_Warlock = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Warlock, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Warlock, Condition( function Trig_Stealing_Warlock_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Warlock, function Trig_Stealing_Warlock_Actions )
endfunction
function Trig_Stealing_Lich_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'U00O' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Lich_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0A1', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0A1'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Lich takes nothing returns nothing
set gg_trg_Stealing_Lich = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Lich, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Lich, Condition( function Trig_Stealing_Lich_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Lich, function Trig_Stealing_Lich_Actions )
endfunction
function Trig_Stealing_Earlier_Self_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'E013' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Earlier_Self_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0A3', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0A3'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Earlier_Self takes nothing returns nothing
set gg_trg_Stealing_Earlier_Self = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Earlier_Self, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Earlier_Self, Condition( function Trig_Stealing_Earlier_Self_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Earlier_Self, function Trig_Stealing_Earlier_Self_Actions )
endfunction
function Trig_Stealing_Self_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'E014' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Self_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0A3', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0A3'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Self takes nothing returns nothing
set gg_trg_Stealing_Self = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Self, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Self, Condition( function Trig_Stealing_Self_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Self, function Trig_Stealing_Self_Actions )
endfunction
function Trig_Stealing_Gambler_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'E016' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Gambler_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0AY', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0AY'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Gambler takes nothing returns nothing
set gg_trg_Stealing_Gambler = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Gambler, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Gambler, Condition( function Trig_Stealing_Gambler_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Gambler, function Trig_Stealing_Gambler_Actions )
endfunction
function Trig_Stealing_Maverick_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'E017' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Maverick_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0AY', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0AY'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Maverick takes nothing returns nothing
set gg_trg_Stealing_Maverick = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Maverick, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Maverick, Condition( function Trig_Stealing_Maverick_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Maverick, function Trig_Stealing_Maverick_Actions )
endfunction
function Trig_Stealing_Chemist_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'O00M' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Chemist_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0AZ', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0AZ'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Chemist takes nothing returns nothing
set gg_trg_Stealing_Chemist = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Chemist, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Chemist, Condition( function Trig_Stealing_Chemist_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Chemist, function Trig_Stealing_Chemist_Actions )
endfunction
function Trig_Stealing_Alchemist_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'N03E' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Alchemist_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0AZ', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0AZ'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Alchemist takes nothing returns nothing
set gg_trg_Stealing_Alchemist = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Alchemist, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Alchemist, Condition( function Trig_Stealing_Alchemist_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Alchemist, function Trig_Stealing_Alchemist_Actions )
endfunction
function Trig_Stealing_Watchman_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'U00A' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Watchman_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0A7', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0A7'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Watchman takes nothing returns nothing
set gg_trg_Stealing_Watchman = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Watchman, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Watchman, Condition( function Trig_Stealing_Watchman_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Watchman, function Trig_Stealing_Watchman_Actions )
endfunction
function Trig_Stealing_Watchman_Dummy_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'U00B' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Watchman_Dummy_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0A7', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0A7'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Watchman_Dummy takes nothing returns nothing
set gg_trg_Stealing_Watchman_Dummy = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Watchman_Dummy, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Watchman_Dummy, Condition( function Trig_Stealing_Watchman_Dummy_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Watchman_Dummy, function Trig_Stealing_Watchman_Dummy_Actions )
endfunction
function Trig_Stealing_Gladiator_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'H00K' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Gladiator_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0A8', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0A8'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Gladiator takes nothing returns nothing
set gg_trg_Stealing_Gladiator = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Gladiator, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Gladiator, Condition( function Trig_Stealing_Gladiator_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Gladiator, function Trig_Stealing_Gladiator_Actions )
endfunction
function Trig_Stealing_Gladiator_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'H00V' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Gladiator_1_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0A8', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0A8'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Gladiator_1 takes nothing returns nothing
set gg_trg_Stealing_Gladiator_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Gladiator_1, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Gladiator_1, Condition( function Trig_Stealing_Gladiator_1_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Gladiator_1, function Trig_Stealing_Gladiator_1_Actions )
endfunction
function Trig_Stealing_Gladiator_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'H00W' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Gladiator_2_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0A8', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0A8'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Gladiator_2 takes nothing returns nothing
set gg_trg_Stealing_Gladiator_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Gladiator_2, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Gladiator_2, Condition( function Trig_Stealing_Gladiator_2_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Gladiator_2, function Trig_Stealing_Gladiator_2_Actions )
endfunction
function Trig_Stealing_Gladiator_3_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'H00X' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Gladiator_3_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0A8', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0A8'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Gladiator_3 takes nothing returns nothing
set gg_trg_Stealing_Gladiator_3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Gladiator_3, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Gladiator_3, Condition( function Trig_Stealing_Gladiator_3_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Gladiator_3, function Trig_Stealing_Gladiator_3_Actions )
endfunction
function Trig_Stealing_Gladiator_Dummy_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'H00Y' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Gladiator_Dummy_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0A8', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0A8'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Gladiator_Dummy takes nothing returns nothing
set gg_trg_Stealing_Gladiator_Dummy = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Gladiator_Dummy, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Gladiator_Dummy, Condition( function Trig_Stealing_Gladiator_Dummy_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Gladiator_Dummy, function Trig_Stealing_Gladiator_Dummy_Actions )
endfunction
function Trig_Stealing_Succubus_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'E00J' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Succubus_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0A9', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0A9'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Succubus takes nothing returns nothing
set gg_trg_Stealing_Succubus = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Succubus, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Succubus, Condition( function Trig_Stealing_Succubus_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Succubus, function Trig_Stealing_Succubus_Actions )
endfunction
function Trig_Stealing_Succubus_Dummy_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'E00Y' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Succubus_Dummy_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0A9', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0A9'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Succubus_Dummy takes nothing returns nothing
set gg_trg_Stealing_Succubus_Dummy = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Succubus_Dummy, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Succubus_Dummy, Condition( function Trig_Stealing_Succubus_Dummy_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Succubus_Dummy, function Trig_Stealing_Succubus_Dummy_Actions )
endfunction
function Trig_Stealing_Conjurer_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'U00H' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Conjurer_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0A6', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0A6'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Conjurer takes nothing returns nothing
set gg_trg_Stealing_Conjurer = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Conjurer, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Conjurer, Condition( function Trig_Stealing_Conjurer_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Conjurer, function Trig_Stealing_Conjurer_Actions )
endfunction
function Trig_Stealing_Conjurer_Dummy_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'U00Q' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Conjurer_Dummy_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0A6', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0A6'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Conjurer_Dummy takes nothing returns nothing
set gg_trg_Stealing_Conjurer_Dummy = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Conjurer_Dummy, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Conjurer_Dummy, Condition( function Trig_Stealing_Conjurer_Dummy_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Conjurer_Dummy, function Trig_Stealing_Conjurer_Dummy_Actions )
endfunction
function Trig_Stealing_Ravager_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'O00O' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Ravager_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0CX', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0CX'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Ravager takes nothing returns nothing
set gg_trg_Stealing_Ravager = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Ravager, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Ravager, Condition( function Trig_Stealing_Ravager_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Ravager, function Trig_Stealing_Ravager_Actions )
endfunction
function Trig_Stealing_Ravager_Dummy_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'O00P' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Ravager_Dummy_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0CX', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0CX'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Ravager_Dummy takes nothing returns nothing
set gg_trg_Stealing_Ravager_Dummy = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Ravager_Dummy, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Ravager_Dummy, Condition( function Trig_Stealing_Ravager_Dummy_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Ravager_Dummy, function Trig_Stealing_Ravager_Dummy_Actions )
endfunction
function Trig_Stealing_Dark_Archer_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'E01D' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Dark_Archer_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0CY', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0CY'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Dark_Archer takes nothing returns nothing
set gg_trg_Stealing_Dark_Archer = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Dark_Archer, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Dark_Archer, Condition( function Trig_Stealing_Dark_Archer_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Dark_Archer, function Trig_Stealing_Dark_Archer_Actions )
endfunction
function Trig_Stealing_Dark_Archer_Dummy_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'E01E' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Dark_Archer_Dummy_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0CY', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0CY'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Dark_Archer_Dummy takes nothing returns nothing
set gg_trg_Stealing_Dark_Archer_Dummy = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Dark_Archer_Dummy, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Dark_Archer_Dummy, Condition( function Trig_Stealing_Dark_Archer_Dummy_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Dark_Archer_Dummy, function Trig_Stealing_Dark_Archer_Dummy_Actions )
endfunction
function Trig_Stealing_Ciara_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'E00C' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Ciara_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0CY', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0CY'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Ciara takes nothing returns nothing
set gg_trg_Stealing_Ciara = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Ciara, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Ciara, Condition( function Trig_Stealing_Ciara_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Ciara, function Trig_Stealing_Ciara_Actions )
endfunction
function Trig_Stealing_Assassin_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'E00D' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Assassin_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0CZ', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0CZ'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Assassin takes nothing returns nothing
set gg_trg_Stealing_Assassin = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Assassin, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Assassin, Condition( function Trig_Stealing_Assassin_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Assassin, function Trig_Stealing_Assassin_Actions )
endfunction
function Trig_Stealing_Sniper_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'N03F' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Sniper_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0CZ', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0CZ'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Sniper takes nothing returns nothing
set gg_trg_Stealing_Sniper = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Sniper, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Sniper, Condition( function Trig_Stealing_Sniper_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Sniper, function Trig_Stealing_Sniper_Actions )
endfunction
function Trig_Stealing_Raine_A_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'E00K' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Raine_A_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0CZ', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0CZ'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Raine_A takes nothing returns nothing
set gg_trg_Stealing_Raine_A = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Raine_A, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Raine_A, Condition( function Trig_Stealing_Raine_A_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Raine_A, function Trig_Stealing_Raine_A_Actions )
endfunction
function Trig_Stealing_Raine_C_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'n03L' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Raine_C_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0CZ', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0CZ'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Raine_C takes nothing returns nothing
set gg_trg_Stealing_Raine_C = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Raine_C, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Raine_C, Condition( function Trig_Stealing_Raine_C_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Raine_C, function Trig_Stealing_Raine_C_Actions )
endfunction
function Trig_Stealing_Raine_S_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'N03O' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Raine_S_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0CZ', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0CZ'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Raine_S takes nothing returns nothing
set gg_trg_Stealing_Raine_S = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Raine_S, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Raine_S, Condition( function Trig_Stealing_Raine_S_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Raine_S, function Trig_Stealing_Raine_S_Actions )
endfunction
function Trig_Stealing_Raine_T_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'E00Z' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Raine_T_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0CZ', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0CZ'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Raine_T takes nothing returns nothing
set gg_trg_Stealing_Raine_T = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Raine_T, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Raine_T, Condition( function Trig_Stealing_Raine_T_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Raine_T, function Trig_Stealing_Raine_T_Actions )
endfunction
function Trig_Stealing_Sorcerer_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'U008' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Sorcerer_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0D0', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0D0'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Sorcerer takes nothing returns nothing
set gg_trg_Stealing_Sorcerer = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Sorcerer, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Sorcerer, Condition( function Trig_Stealing_Sorcerer_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Sorcerer, function Trig_Stealing_Sorcerer_Actions )
endfunction
function Trig_Stealing_Angel_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'U00U' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Angel_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0D0', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0D0'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Angel takes nothing returns nothing
set gg_trg_Stealing_Angel = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Angel, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Angel, Condition( function Trig_Stealing_Angel_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Angel, function Trig_Stealing_Angel_Actions )
endfunction
function Trig_Stealing_Leon_S_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'U00D' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Leon_S_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0D0', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0D0'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Leon_S takes nothing returns nothing
set gg_trg_Stealing_Leon_S = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Leon_S, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Leon_S, Condition( function Trig_Stealing_Leon_S_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Leon_S, function Trig_Stealing_Leon_S_Actions )
endfunction
function Trig_Stealing_Leon_A_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'U00J' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Leon_A_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0D0', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0D0'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Leon_A takes nothing returns nothing
set gg_trg_Stealing_Leon_A = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Leon_A, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Leon_A, Condition( function Trig_Stealing_Leon_A_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Leon_A, function Trig_Stealing_Leon_A_Actions )
endfunction
function Trig_Stealing_Leon_T_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'U00N' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Leon_T_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0D0', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0D0'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Leon_T takes nothing returns nothing
set gg_trg_Stealing_Leon_T = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Leon_T, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Leon_T, Condition( function Trig_Stealing_Leon_T_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Leon_T, function Trig_Stealing_Leon_T_Actions )
endfunction
function Trig_Stealing_Siren_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'E00E' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Siren_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0D2', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0D2'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Siren takes nothing returns nothing
set gg_trg_Stealing_Siren = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Siren, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Siren, Condition( function Trig_Stealing_Siren_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Siren, function Trig_Stealing_Siren_Actions )
endfunction
function Trig_Stealing_Medusa_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'N03T' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Medusa_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0D2', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0D2'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Medusa takes nothing returns nothing
set gg_trg_Stealing_Medusa = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Medusa, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Medusa, Condition( function Trig_Stealing_Medusa_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Medusa, function Trig_Stealing_Medusa_Actions )
endfunction
function Trig_Stealing_Kae_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'N03J' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Kae_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0D2', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0D2'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Kae takes nothing returns nothing
set gg_trg_Stealing_Kae = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Kae, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Kae, Condition( function Trig_Stealing_Kae_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Kae, function Trig_Stealing_Kae_Actions )
endfunction
function Trig_Stealing_Basilisk_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'E00F' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Basilisk_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0D1', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0D1'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Basilisk takes nothing returns nothing
set gg_trg_Stealing_Basilisk = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Basilisk, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Basilisk, Condition( function Trig_Stealing_Basilisk_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Basilisk, function Trig_Stealing_Basilisk_Actions )
endfunction
function Trig_Stealing_Gorgon_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'U011' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Gorgon_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0D1', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0D1'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Gorgon takes nothing returns nothing
set gg_trg_Stealing_Gorgon = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Gorgon, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Gorgon, Condition( function Trig_Stealing_Gorgon_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Gorgon, function Trig_Stealing_Gorgon_Actions )
endfunction
function Trig_Stealing_Manos_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'U00W' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Manos_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0D1', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0D1'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Manos takes nothing returns nothing
set gg_trg_Stealing_Manos = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Manos, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Manos, Condition( function Trig_Stealing_Manos_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Manos, function Trig_Stealing_Manos_Actions )
endfunction
function Trig_Stealing_Manos_I_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'U00V' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Manos_I_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0D1', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0D1'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Manos_I takes nothing returns nothing
set gg_trg_Stealing_Manos_I = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Manos_I, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Manos_I, Condition( function Trig_Stealing_Manos_I_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Manos_I, function Trig_Stealing_Manos_I_Actions )
endfunction
function Trig_Stealing_Buccaneer_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'H01X' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Buccaneer_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0D3', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0D3'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Buccaneer takes nothing returns nothing
set gg_trg_Stealing_Buccaneer = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Buccaneer, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Buccaneer, Condition( function Trig_Stealing_Buccaneer_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Buccaneer, function Trig_Stealing_Buccaneer_Actions )
endfunction
function Trig_Stealing_Taraba_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'H00M' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Taraba_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0D3', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0D3'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Taraba takes nothing returns nothing
set gg_trg_Stealing_Taraba = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Taraba, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Taraba, Condition( function Trig_Stealing_Taraba_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Taraba, function Trig_Stealing_Taraba_Actions )
endfunction
function Trig_Stealing_Panda_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0A2' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'H01W' ) ) then
return false
endif
return true
endfunction
function Trig_Stealing_Panda_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0D4', GetSpellAbilityUnit() )
set udg_StolenIdentity = 'A0D4'
call SetUnitAbilityLevelSwapped( udg_StolenIdentity, GetSpellAbilityUnit(), udg_TheftLevel )
endfunction
//===========================================================================
function InitTrig_Stealing_Panda takes nothing returns nothing
set gg_trg_Stealing_Panda = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stealing_Panda, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stealing_Panda, Condition( function Trig_Stealing_Panda_Conditions ) )
call TriggerAddAction( gg_trg_Stealing_Panda, function Trig_Stealing_Panda_Actions )
endfunction
function Trig_Blackjack_Level_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AB' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0AB', GetSpellAbilityUnit()) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Blackjack_Level_1_Actions takes nothing returns nothing
set udg_Blackjacker = GetSpellAbilityUnit()
set udg_Blackjacked = GetSpellTargetUnit()
call PolledWait( 0.50 )
set udg_CardCounter = GetRandomReal(1.00, 200.00)
call UnitDamageTargetBJ( udg_Blackjacker, udg_Blackjacked, udg_CardCounter, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
endfunction
//===========================================================================
function InitTrig_Blackjack_Level_1 takes nothing returns nothing
set gg_trg_Blackjack_Level_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Blackjack_Level_1, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Blackjack_Level_1, Condition( function Trig_Blackjack_Level_1_Conditions ) )
call TriggerAddAction( gg_trg_Blackjack_Level_1, function Trig_Blackjack_Level_1_Actions )
endfunction
function Trig_Blackjack_Level_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AB' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0AB', GetSpellAbilityUnit()) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Blackjack_Level_2_Actions takes nothing returns nothing
set udg_Blackjacker = GetSpellAbilityUnit()
set udg_Blackjacked = GetSpellTargetUnit()
call PolledWait( 0.50 )
set udg_CardCounter = GetRandomReal(2.00, 400.00)
call UnitDamageTargetBJ( udg_Blackjacker, udg_Blackjacked, udg_CardCounter, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
endfunction
//===========================================================================
function InitTrig_Blackjack_Level_2 takes nothing returns nothing
set gg_trg_Blackjack_Level_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Blackjack_Level_2, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Blackjack_Level_2, Condition( function Trig_Blackjack_Level_2_Conditions ) )
call TriggerAddAction( gg_trg_Blackjack_Level_2, function Trig_Blackjack_Level_2_Actions )
endfunction
function Trig_Blackjack_Level_3_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AB' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0AB', GetSpellAbilityUnit()) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Blackjack_Level_3_Actions takes nothing returns nothing
set udg_Blackjacker = GetSpellAbilityUnit()
set udg_Blackjacked = GetSpellTargetUnit()
call PolledWait( 0.50 )
set udg_CardCounter = GetRandomReal(3.00, 600.00)
call UnitDamageTargetBJ( udg_Blackjacker, udg_Blackjacked, udg_CardCounter, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
endfunction
//===========================================================================
function InitTrig_Blackjack_Level_3 takes nothing returns nothing
set gg_trg_Blackjack_Level_3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Blackjack_Level_3, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Blackjack_Level_3, Condition( function Trig_Blackjack_Level_3_Conditions ) )
call TriggerAddAction( gg_trg_Blackjack_Level_3, function Trig_Blackjack_Level_3_Actions )
endfunction
function Trig_Roulette_Level_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AC' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0AC', GetSpellAbilityUnit()) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Roulette_Level_1_Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 10) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Roulette_Level_1_Func002C takes nothing returns boolean
if ( not ( GetRandomInt(1, 10) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Roulette_Level_1_Actions takes nothing returns nothing
if ( Trig_Roulette_Level_1_Func001C() ) then
call SetUnitLifeBJ( GetSpellAbilityUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellAbilityUnit()) - 50.00 ) )
else
call DoNothing( )
endif
if ( Trig_Roulette_Level_1_Func002C() ) then
call SetUnitLifeBJ( GetSpellAbilityUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellAbilityUnit()) + 50.00 ) )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Roulette_Level_1 takes nothing returns nothing
set gg_trg_Roulette_Level_1 = CreateTrigger( )
call DisableTrigger( gg_trg_Roulette_Level_1 )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Roulette_Level_1, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Roulette_Level_1, Condition( function Trig_Roulette_Level_1_Conditions ) )
call TriggerAddAction( gg_trg_Roulette_Level_1, function Trig_Roulette_Level_1_Actions )
endfunction
function Trig_Roulette_Level_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AC' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0AC', GetSpellAbilityUnit()) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Roulette_Level_2_Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 10) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Roulette_Level_2_Func002C takes nothing returns boolean
if ( not ( GetRandomInt(1, 10) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Roulette_Level_2_Actions takes nothing returns nothing
if ( Trig_Roulette_Level_2_Func001C() ) then
call SetUnitLifeBJ( GetSpellAbilityUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellAbilityUnit()) - 100.00 ) )
else
call DoNothing( )
endif
if ( Trig_Roulette_Level_2_Func002C() ) then
call SetUnitLifeBJ( GetSpellAbilityUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellAbilityUnit()) + 100.00 ) )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Roulette_Level_2 takes nothing returns nothing
set gg_trg_Roulette_Level_2 = CreateTrigger( )
call DisableTrigger( gg_trg_Roulette_Level_2 )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Roulette_Level_2, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Roulette_Level_2, Condition( function Trig_Roulette_Level_2_Conditions ) )
call TriggerAddAction( gg_trg_Roulette_Level_2, function Trig_Roulette_Level_2_Actions )
endfunction
function Trig_Roulette_Level_3_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AC' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0AC', GetSpellAbilityUnit()) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Roulette_Level_3_Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 10) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Roulette_Level_3_Func002C takes nothing returns boolean
if ( not ( GetRandomInt(1, 10) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Roulette_Level_3_Actions takes nothing returns nothing
if ( Trig_Roulette_Level_3_Func001C() ) then
call SetUnitLifeBJ( GetSpellAbilityUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellAbilityUnit()) - 150.00 ) )
else
call DoNothing( )
endif
if ( Trig_Roulette_Level_3_Func002C() ) then
call SetUnitLifeBJ( GetSpellAbilityUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellAbilityUnit()) + 150.00 ) )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Roulette_Level_3 takes nothing returns nothing
set gg_trg_Roulette_Level_3 = CreateTrigger( )
call DisableTrigger( gg_trg_Roulette_Level_3 )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Roulette_Level_3, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Roulette_Level_3, Condition( function Trig_Roulette_Level_3_Conditions ) )
call TriggerAddAction( gg_trg_Roulette_Level_3, function Trig_Roulette_Level_3_Actions )
endfunction
function Trig_Thievery_Level_1J_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AD' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0AD', GetSpellAbilityUnit()) == 1 ) ) then
return false
endif
if ( not ( IsUnitInGroup(GetSpellTargetUnit(), GetUnitsOfPlayerAll(Player(11))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Thievery_Level_1J_Func001Func001001001 takes nothing returns boolean
return ( IsUnitInGroup(GetSpellAbilityUnit(), GetUnitsOfPlayerAll(GetFilterPlayer())) == true )
endfunction
function Trig_Thievery_Level_1J_Func001Func002C takes nothing returns boolean
if ( not ( GetRandomInt(1, 2) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Thievery_Level_1J_Func001Func003001001 takes nothing returns boolean
return ( IsUnitInGroup(GetSpellAbilityUnit(), GetUnitsOfPlayerAll(GetFilterPlayer())) == true )
endfunction
function Trig_Thievery_Level_1J_Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 10) <= 2 ) ) then
return false
endif
return true
endfunction
function Trig_Thievery_Level_1J_Actions takes nothing returns nothing
if ( Trig_Thievery_Level_1J_Func001C() ) then
if ( Trig_Thievery_Level_1J_Func001Func002C() ) then
call UnitAddItemByIdSwapped( 'I00A', GetSpellAbilityUnit() )
else
call UnitAddItemByIdSwapped( 'I02V', GetSpellAbilityUnit() )
endif
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Thievery_Level_1J_Func001Func003001001)), "TRIGSTR_5308" )
set udg_Thievery = ( udg_Thievery + 5.00 )
else
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Thievery_Level_1J_Func001Func001001001)), "TRIGSTR_5309" )
endif
endfunction
//===========================================================================
function InitTrig_Thievery_Level_1J takes nothing returns nothing
set gg_trg_Thievery_Level_1J = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Thievery_Level_1J, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Thievery_Level_1J, Condition( function Trig_Thievery_Level_1J_Conditions ) )
call TriggerAddAction( gg_trg_Thievery_Level_1J, function Trig_Thievery_Level_1J_Actions )
endfunction
function Trig_Thievery_Level_1M_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AD' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0AD', GetSpellAbilityUnit()) == 1 ) ) then
return false
endif
if ( not ( IsUnitInGroup(GetSpellTargetUnit(), GetUnitsOfPlayerAll(Player(10))) == true ) ) then
return false
endif
if ( not ( GetSpellTargetUnit() != gg_unit_n01J_0215 ) ) then
return false
endif
if ( not ( GetSpellTargetUnit() != gg_unit_n01V_0239 ) ) then
return false
endif
return true
endfunction
function Trig_Thievery_Level_1M_Func001Func001001001 takes nothing returns boolean
return ( IsUnitInGroup(GetSpellAbilityUnit(), GetUnitsOfPlayerAll(GetFilterPlayer())) == true )
endfunction
function Trig_Thievery_Level_1M_Func001Func002C takes nothing returns boolean
if ( not ( GetRandomInt(1, 2) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Thievery_Level_1M_Func001Func003001001 takes nothing returns boolean
return ( IsUnitInGroup(GetSpellAbilityUnit(), GetUnitsOfPlayerAll(GetFilterPlayer())) == true )
endfunction
function Trig_Thievery_Level_1M_Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 10) <= 2 ) ) then
return false
endif
return true
endfunction
function Trig_Thievery_Level_1M_Actions takes nothing returns nothing
if ( Trig_Thievery_Level_1M_Func001C() ) then
if ( Trig_Thievery_Level_1M_Func001Func002C() ) then
call UnitAddItemByIdSwapped( 'I01W', GetSpellAbilityUnit() )
else
call UnitAddItemByIdSwapped( 'I01X', GetSpellAbilityUnit() )
endif
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Thievery_Level_1M_Func001Func003001001)), "TRIGSTR_5310" )
set udg_Thievery = ( udg_Thievery + 5.00 )
else
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Thievery_Level_1M_Func001Func001001001)), "TRIGSTR_5315" )
endif
endfunction
//===========================================================================
function InitTrig_Thievery_Level_1M takes nothing returns nothing
set gg_trg_Thievery_Level_1M = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Thievery_Level_1M, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Thievery_Level_1M, Condition( function Trig_Thievery_Level_1M_Conditions ) )
call TriggerAddAction( gg_trg_Thievery_Level_1M, function Trig_Thievery_Level_1M_Actions )
endfunction
function Trig_Thievery_Level_2J_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AD' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0AD', GetSpellAbilityUnit()) == 2 ) ) then
return false
endif
if ( not ( IsUnitInGroup(GetSpellTargetUnit(), GetUnitsOfPlayerAll(Player(11))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Thievery_Level_2J_Func001Func001001001 takes nothing returns boolean
return ( IsUnitInGroup(GetSpellAbilityUnit(), GetUnitsOfPlayerAll(GetFilterPlayer())) == true )
endfunction
function Trig_Thievery_Level_2J_Func001Func002C takes nothing returns boolean
if ( not ( GetRandomInt(1, 2) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Thievery_Level_2J_Func001Func003001001 takes nothing returns boolean
return ( IsUnitInGroup(GetSpellAbilityUnit(), GetUnitsOfPlayerAll(GetFilterPlayer())) == true )
endfunction
function Trig_Thievery_Level_2J_Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 10) <= 3 ) ) then
return false
endif
return true
endfunction
function Trig_Thievery_Level_2J_Actions takes nothing returns nothing
if ( Trig_Thievery_Level_2J_Func001C() ) then
if ( Trig_Thievery_Level_2J_Func001Func002C() ) then
call UnitAddItemByIdSwapped( 'I009', GetSpellAbilityUnit() )
else
call UnitAddItemByIdSwapped( 'I01Q', GetSpellAbilityUnit() )
endif
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Thievery_Level_2J_Func001Func003001001)), "TRIGSTR_5311" )
set udg_Thievery = ( udg_Thievery + 5.00 )
else
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Thievery_Level_2J_Func001Func001001001)), "TRIGSTR_5316" )
endif
endfunction
//===========================================================================
function InitTrig_Thievery_Level_2J takes nothing returns nothing
set gg_trg_Thievery_Level_2J = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Thievery_Level_2J, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Thievery_Level_2J, Condition( function Trig_Thievery_Level_2J_Conditions ) )
call TriggerAddAction( gg_trg_Thievery_Level_2J, function Trig_Thievery_Level_2J_Actions )
endfunction
function Trig_Thievery_Level_2M_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AD' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0AD', GetSpellAbilityUnit()) == 2 ) ) then
return false
endif
if ( not ( IsUnitInGroup(GetSpellTargetUnit(), GetUnitsOfPlayerAll(Player(10))) == true ) ) then
return false
endif
if ( not ( GetSpellTargetUnit() != gg_unit_n01J_0215 ) ) then
return false
endif
if ( not ( GetSpellTargetUnit() != gg_unit_n01V_0239 ) ) then
return false
endif
return true
endfunction
function Trig_Thievery_Level_2M_Func001Func001001001 takes nothing returns boolean
return ( IsUnitInGroup(GetSpellAbilityUnit(), GetUnitsOfPlayerAll(GetFilterPlayer())) == true )
endfunction
function Trig_Thievery_Level_2M_Func001Func002C takes nothing returns boolean
if ( not ( GetRandomInt(1, 2) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Thievery_Level_2M_Func001Func003001001 takes nothing returns boolean
return ( IsUnitInGroup(GetSpellAbilityUnit(), GetUnitsOfPlayerAll(GetFilterPlayer())) == true )
endfunction
function Trig_Thievery_Level_2M_Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 10) <= 3 ) ) then
return false
endif
return true
endfunction
function Trig_Thievery_Level_2M_Actions takes nothing returns nothing
if ( Trig_Thievery_Level_2M_Func001C() ) then
if ( Trig_Thievery_Level_2M_Func001Func002C() ) then
call UnitAddItemByIdSwapped( 'I01W', GetSpellAbilityUnit() )
else
call UnitAddItemByIdSwapped( 'I01S', GetSpellAbilityUnit() )
endif
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Thievery_Level_2M_Func001Func003001001)), "TRIGSTR_5312" )
set udg_Thievery = ( udg_Thievery + 5.00 )
else
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Thievery_Level_2M_Func001Func001001001)), "TRIGSTR_5317" )
endif
endfunction
//===========================================================================
function InitTrig_Thievery_Level_2M takes nothing returns nothing
set gg_trg_Thievery_Level_2M = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Thievery_Level_2M, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Thievery_Level_2M, Condition( function Trig_Thievery_Level_2M_Conditions ) )
call TriggerAddAction( gg_trg_Thievery_Level_2M, function Trig_Thievery_Level_2M_Actions )
endfunction
function Trig_Thievery_Level_3J_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AD' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0AD', GetSpellAbilityUnit()) == 3 ) ) then
return false
endif
if ( not ( IsUnitInGroup(GetSpellTargetUnit(), GetUnitsOfPlayerAll(Player(11))) == true ) ) then
return false
endif
return true
endfunction
function Trig_Thievery_Level_3J_Func001Func001001001 takes nothing returns boolean
return ( IsUnitInGroup(GetSpellAbilityUnit(), GetUnitsOfPlayerAll(GetFilterPlayer())) == true )
endfunction
function Trig_Thievery_Level_3J_Func001Func002C takes nothing returns boolean
if ( not ( GetRandomInt(1, 2) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Thievery_Level_3J_Func001Func003001001 takes nothing returns boolean
return ( IsUnitInGroup(GetSpellAbilityUnit(), GetUnitsOfPlayerAll(GetFilterPlayer())) == true )
endfunction
function Trig_Thievery_Level_3J_Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 10) <= 4 ) ) then
return false
endif
return true
endfunction
function Trig_Thievery_Level_3J_Actions takes nothing returns nothing
if ( Trig_Thievery_Level_3J_Func001C() ) then
if ( Trig_Thievery_Level_3J_Func001Func002C() ) then
call UnitAddItemByIdSwapped( 'I014', GetSpellAbilityUnit() )
else
call UnitAddItemByIdSwapped( 'I01Q', GetSpellAbilityUnit() )
endif
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Thievery_Level_3J_Func001Func003001001)), "TRIGSTR_5313" )
set udg_Thievery = ( udg_Thievery + 5.00 )
else
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Thievery_Level_3J_Func001Func001001001)), "TRIGSTR_5318" )
endif
endfunction
//===========================================================================
function InitTrig_Thievery_Level_3J takes nothing returns nothing
set gg_trg_Thievery_Level_3J = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Thievery_Level_3J, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Thievery_Level_3J, Condition( function Trig_Thievery_Level_3J_Conditions ) )
call TriggerAddAction( gg_trg_Thievery_Level_3J, function Trig_Thievery_Level_3J_Actions )
endfunction
function Trig_Thievery_Level_3M_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AD' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0AD', GetSpellAbilityUnit()) == 3 ) ) then
return false
endif
if ( not ( IsUnitInGroup(GetSpellTargetUnit(), GetUnitsOfPlayerAll(Player(10))) == true ) ) then
return false
endif
if ( not ( GetSpellTargetUnit() != gg_unit_n01J_0215 ) ) then
return false
endif
if ( not ( GetSpellTargetUnit() != gg_unit_n01V_0239 ) ) then
return false
endif
return true
endfunction
function Trig_Thievery_Level_3M_Func001Func001001001 takes nothing returns boolean
return ( IsUnitInGroup(GetSpellAbilityUnit(), GetUnitsOfPlayerAll(GetFilterPlayer())) == true )
endfunction
function Trig_Thievery_Level_3M_Func001Func002C takes nothing returns boolean
if ( not ( GetRandomInt(1, 2) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Thievery_Level_3M_Func001Func003001001 takes nothing returns boolean
return ( IsUnitInGroup(GetSpellAbilityUnit(), GetUnitsOfPlayerAll(GetFilterPlayer())) == true )
endfunction
function Trig_Thievery_Level_3M_Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 10) <= 4 ) ) then
return false
endif
return true
endfunction
function Trig_Thievery_Level_3M_Actions takes nothing returns nothing
if ( Trig_Thievery_Level_3M_Func001C() ) then
if ( Trig_Thievery_Level_3M_Func001Func002C() ) then
call UnitAddItemByIdSwapped( 'I01R', GetSpellAbilityUnit() )
else
call UnitAddItemByIdSwapped( 'I01S', GetSpellAbilityUnit() )
endif
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Thievery_Level_3M_Func001Func003001001)), "TRIGSTR_5314" )
set udg_Thievery = ( udg_Thievery + 5.00 )
else
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Thievery_Level_3M_Func001Func001001001)), "TRIGSTR_5319" )
endif
endfunction
//===========================================================================
function InitTrig_Thievery_Level_3M takes nothing returns nothing
set gg_trg_Thievery_Level_3M = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Thievery_Level_3M, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Thievery_Level_3M, Condition( function Trig_Thievery_Level_3M_Conditions ) )
call TriggerAddAction( gg_trg_Thievery_Level_3M, function Trig_Thievery_Level_3M_Actions )
endfunction
function Trig_Thievery_Hostile_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AD' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0AD', GetSpellAbilityUnit()) == 1 ) ) then
return false
endif
if ( not ( IsUnitEnemy(GetSpellTargetUnit(), GetOwningPlayer(GetSpellAbilityUnit())) == true ) ) then
return false
endif
return true
endfunction
function Trig_Thievery_Hostile_1_Func001Func001001001 takes nothing returns boolean
return ( IsUnitInGroup(GetSpellAbilityUnit(), GetUnitsOfPlayerAll(GetFilterPlayer())) == true )
endfunction
function Trig_Thievery_Hostile_1_Func001Func002C takes nothing returns boolean
if ( not ( GetRandomInt(1, 2) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Thievery_Hostile_1_Func001Func003001001 takes nothing returns boolean
return ( IsUnitInGroup(GetSpellAbilityUnit(), GetUnitsOfPlayerAll(GetFilterPlayer())) == true )
endfunction
function Trig_Thievery_Hostile_1_Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 10) <= 2 ) ) then
return false
endif
return true
endfunction
function Trig_Thievery_Hostile_1_Actions takes nothing returns nothing
if ( Trig_Thievery_Hostile_1_Func001C() ) then
if ( Trig_Thievery_Hostile_1_Func001Func002C() ) then
call UnitAddItemByIdSwapped( 'I03C', GetSpellAbilityUnit() )
else
call UnitAddItemByIdSwapped( 'I03B', GetSpellAbilityUnit() )
endif
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Thievery_Hostile_1_Func001Func003001001)), "TRIGSTR_5728" )
set udg_Thievery = ( udg_Thievery + 5.00 )
else
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Thievery_Hostile_1_Func001Func001001001)), "TRIGSTR_5727" )
endif
call PolledWait( 0.10 )
call UnitDamageTargetBJ( GetSpellAbilityUnit(), GetSpellTargetUnit(), udg_Thievery, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
endfunction
//===========================================================================
function InitTrig_Thievery_Hostile_1 takes nothing returns nothing
set gg_trg_Thievery_Hostile_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Thievery_Hostile_1, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Thievery_Hostile_1, Condition( function Trig_Thievery_Hostile_1_Conditions ) )
call TriggerAddAction( gg_trg_Thievery_Hostile_1, function Trig_Thievery_Hostile_1_Actions )
endfunction
function Trig_Thievery_Hostile_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AD' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0AD', GetSpellAbilityUnit()) == 2 ) ) then
return false
endif
if ( not ( IsUnitEnemy(GetSpellTargetUnit(), GetOwningPlayer(GetSpellAbilityUnit())) == true ) ) then
return false
endif
return true
endfunction
function Trig_Thievery_Hostile_2_Func001Func001001001 takes nothing returns boolean
return ( IsUnitInGroup(GetSpellAbilityUnit(), GetUnitsOfPlayerAll(GetFilterPlayer())) == true )
endfunction
function Trig_Thievery_Hostile_2_Func001Func002C takes nothing returns boolean
if ( not ( GetRandomInt(1, 2) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Thievery_Hostile_2_Func001Func003001001 takes nothing returns boolean
return ( IsUnitInGroup(GetSpellAbilityUnit(), GetUnitsOfPlayerAll(GetFilterPlayer())) == true )
endfunction
function Trig_Thievery_Hostile_2_Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 10) <= 3 ) ) then
return false
endif
return true
endfunction
function Trig_Thievery_Hostile_2_Actions takes nothing returns nothing
if ( Trig_Thievery_Hostile_2_Func001C() ) then
if ( Trig_Thievery_Hostile_2_Func001Func002C() ) then
call UnitAddItemByIdSwapped( 'I03C', GetSpellAbilityUnit() )
else
call UnitAddItemByIdSwapped( 'I03D', GetSpellAbilityUnit() )
endif
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Thievery_Hostile_2_Func001Func003001001)), "TRIGSTR_5730" )
set udg_Thievery = ( udg_Thievery + 5.00 )
else
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Thievery_Hostile_2_Func001Func001001001)), "TRIGSTR_5729" )
endif
call PolledWait( 0.10 )
call UnitDamageTargetBJ( GetSpellAbilityUnit(), GetSpellTargetUnit(), udg_Thievery, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
endfunction
//===========================================================================
function InitTrig_Thievery_Hostile_2 takes nothing returns nothing
set gg_trg_Thievery_Hostile_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Thievery_Hostile_2, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Thievery_Hostile_2, Condition( function Trig_Thievery_Hostile_2_Conditions ) )
call TriggerAddAction( gg_trg_Thievery_Hostile_2, function Trig_Thievery_Hostile_2_Actions )
endfunction
function Trig_Thievery_Hostile_3_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AD' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0AD', GetSpellAbilityUnit()) == 3 ) ) then
return false
endif
if ( not ( IsUnitEnemy(GetSpellTargetUnit(), GetOwningPlayer(GetSpellAbilityUnit())) == true ) ) then
return false
endif
return true
endfunction
function Trig_Thievery_Hostile_3_Func001Func001001001 takes nothing returns boolean
return ( IsUnitInGroup(GetSpellAbilityUnit(), GetUnitsOfPlayerAll(GetFilterPlayer())) == true )
endfunction
function Trig_Thievery_Hostile_3_Func001Func002C takes nothing returns boolean
if ( not ( GetRandomInt(1, 2) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Thievery_Hostile_3_Func001Func003001001 takes nothing returns boolean
return ( IsUnitInGroup(GetSpellAbilityUnit(), GetUnitsOfPlayerAll(GetFilterPlayer())) == true )
endfunction
function Trig_Thievery_Hostile_3_Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 10) <= 4 ) ) then
return false
endif
return true
endfunction
function Trig_Thievery_Hostile_3_Actions takes nothing returns nothing
if ( Trig_Thievery_Hostile_3_Func001C() ) then
if ( Trig_Thievery_Hostile_3_Func001Func002C() ) then
call UnitAddItemByIdSwapped( 'I03C', GetSpellAbilityUnit() )
else
call UnitAddItemByIdSwapped( 'I03E', GetSpellAbilityUnit() )
endif
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Thievery_Hostile_3_Func001Func003001001)), "TRIGSTR_5732" )
set udg_Thievery = ( udg_Thievery + 5.00 )
else
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Thievery_Hostile_3_Func001Func001001001)), "TRIGSTR_5731" )
endif
call PolledWait( 0.10 )
call UnitDamageTargetBJ( GetSpellAbilityUnit(), GetSpellTargetUnit(), udg_Thievery, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
endfunction
//===========================================================================
function InitTrig_Thievery_Hostile_3 takes nothing returns nothing
set gg_trg_Thievery_Hostile_3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Thievery_Hostile_3, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Thievery_Hostile_3, Condition( function Trig_Thievery_Hostile_3_Conditions ) )
call TriggerAddAction( gg_trg_Thievery_Hostile_3, function Trig_Thievery_Hostile_3_Actions )
endfunction
function Trig_Thievery_Chavez_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AD' ) ) then
return false
endif
if ( not ( GetSpellTargetUnit() == gg_unit_n01V_0239 ) ) then
return false
endif
return true
endfunction
function Trig_Thievery_Chavez_Func003001001 takes nothing returns boolean
return ( IsUnitInGroup(GetSpellAbilityUnit(), GetUnitsOfPlayerAll(GetFilterPlayer())) == true )
endfunction
function Trig_Thievery_Chavez_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call UnitAddItemByIdSwapped( 'I03J', GetSpellAbilityUnit() )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Thievery_Chavez_Func003001001)), "TRIGSTR_5805" )
call PolledWait( 2.00 )
call EnableTrigger( gg_trg_No_More_Stealing_Chavez )
endfunction
//===========================================================================
function InitTrig_Thievery_Chavez takes nothing returns nothing
set gg_trg_Thievery_Chavez = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Thievery_Chavez, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Thievery_Chavez, Condition( function Trig_Thievery_Chavez_Conditions ) )
call TriggerAddAction( gg_trg_Thievery_Chavez, function Trig_Thievery_Chavez_Actions )
endfunction
function Trig_No_More_Stealing_Chavez_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AD' ) ) then
return false
endif
if ( not ( GetSpellTargetUnit() == gg_unit_n01V_0239 ) ) then
return false
endif
return true
endfunction
function Trig_No_More_Stealing_Chavez_Func001001001 takes nothing returns boolean
return ( IsUnitInGroup(GetSpellAbilityUnit(), GetUnitsOfPlayerAll(GetFilterPlayer())) == true )
endfunction
function Trig_No_More_Stealing_Chavez_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_No_More_Stealing_Chavez_Func001001001)), "TRIGSTR_5808" )
endfunction
//===========================================================================
function InitTrig_No_More_Stealing_Chavez takes nothing returns nothing
set gg_trg_No_More_Stealing_Chavez = CreateTrigger( )
call DisableTrigger( gg_trg_No_More_Stealing_Chavez )
call TriggerRegisterAnyUnitEventBJ( gg_trg_No_More_Stealing_Chavez, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_No_More_Stealing_Chavez, Condition( function Trig_No_More_Stealing_Chavez_Conditions ) )
call TriggerAddAction( gg_trg_No_More_Stealing_Chavez, function Trig_No_More_Stealing_Chavez_Actions )
endfunction
function Trig_Learning_Thief_1_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A0AD' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0AD', GetLearningUnit()) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Learning_Thief_1_Actions takes nothing returns nothing
set udg_Thief1 = GetLearningUnit()
endfunction
//===========================================================================
function InitTrig_Learning_Thief_1 takes nothing returns nothing
set gg_trg_Learning_Thief_1 = CreateTrigger( )
call DisableTrigger( gg_trg_Learning_Thief_1 )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Learning_Thief_1, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Learning_Thief_1, Condition( function Trig_Learning_Thief_1_Conditions ) )
call TriggerAddAction( gg_trg_Learning_Thief_1, function Trig_Learning_Thief_1_Actions )
endfunction
function Trig_Learning_Thief_2_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A0AD' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0AD', GetLearningUnit()) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Learning_Thief_2_Actions takes nothing returns nothing
set udg_Thief2 = GetLearningUnit()
endfunction
//===========================================================================
function InitTrig_Learning_Thief_2 takes nothing returns nothing
set gg_trg_Learning_Thief_2 = CreateTrigger( )
call DisableTrigger( gg_trg_Learning_Thief_2 )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Learning_Thief_2, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Learning_Thief_2, Condition( function Trig_Learning_Thief_2_Conditions ) )
call TriggerAddAction( gg_trg_Learning_Thief_2, function Trig_Learning_Thief_2_Actions )
endfunction
function Trig_Learning_Thief_3_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A0AD' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0AD', GetLearningUnit()) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Learning_Thief_3_Actions takes nothing returns nothing
set udg_Thief3 = GetLearningUnit()
endfunction
//===========================================================================
function InitTrig_Learning_Thief_3 takes nothing returns nothing
set gg_trg_Learning_Thief_3 = CreateTrigger( )
call DisableTrigger( gg_trg_Learning_Thief_3 )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Learning_Thief_3, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Learning_Thief_3, Condition( function Trig_Learning_Thief_3_Conditions ) )
call TriggerAddAction( gg_trg_Learning_Thief_3, function Trig_Learning_Thief_3_Actions )
endfunction
function Trig_Thief_1_Kills_Conditions takes nothing returns boolean
if ( not ( GetKillingUnitBJ() == udg_Thief1 ) ) then
return false
endif
return true
endfunction
function Trig_Thief_1_Kills_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 1, GetOwningPlayer(udg_Thief1), PLAYER_STATE_RESOURCE_GOLD )
endfunction
//===========================================================================
function InitTrig_Thief_1_Kills takes nothing returns nothing
set gg_trg_Thief_1_Kills = CreateTrigger( )
call DisableTrigger( gg_trg_Thief_1_Kills )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Thief_1_Kills, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Thief_1_Kills, Condition( function Trig_Thief_1_Kills_Conditions ) )
call TriggerAddAction( gg_trg_Thief_1_Kills, function Trig_Thief_1_Kills_Actions )
endfunction
function Trig_Thief_2_Kills_Conditions takes nothing returns boolean
if ( not ( GetKillingUnitBJ() == udg_Thief2 ) ) then
return false
endif
return true
endfunction
function Trig_Thief_2_Kills_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 1, GetOwningPlayer(udg_Thief2), PLAYER_STATE_RESOURCE_GOLD )
endfunction
//===========================================================================
function InitTrig_Thief_2_Kills takes nothing returns nothing
set gg_trg_Thief_2_Kills = CreateTrigger( )
call DisableTrigger( gg_trg_Thief_2_Kills )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Thief_2_Kills, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Thief_2_Kills, Condition( function Trig_Thief_2_Kills_Conditions ) )
call TriggerAddAction( gg_trg_Thief_2_Kills, function Trig_Thief_2_Kills_Actions )
endfunction
function Trig_Thief_3_Kills_Conditions takes nothing returns boolean
if ( not ( GetKillingUnitBJ() == udg_Thief3 ) ) then
return false
endif
return true
endfunction
function Trig_Thief_3_Kills_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 1, GetOwningPlayer(udg_Thief3), PLAYER_STATE_RESOURCE_GOLD )
endfunction
//===========================================================================
function InitTrig_Thief_3_Kills takes nothing returns nothing
set gg_trg_Thief_3_Kills = CreateTrigger( )
call DisableTrigger( gg_trg_Thief_3_Kills )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Thief_3_Kills, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Thief_3_Kills, Condition( function Trig_Thief_3_Kills_Conditions ) )
call TriggerAddAction( gg_trg_Thief_3_Kills, function Trig_Thief_3_Kills_Actions )
endfunction
function Trig_The_Final_Cut_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AF' ) ) then
return false
endif
return true
endfunction
function Trig_The_Final_Cut_Actions takes nothing returns nothing
call SetUnitLifeBJ( GetSpellAbilityUnit(), 1.00 )
endfunction
//===========================================================================
function InitTrig_The_Final_Cut takes nothing returns nothing
set gg_trg_The_Final_Cut = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_The_Final_Cut, EVENT_PLAYER_UNIT_SPELL_FINISH )
call TriggerAddCondition( gg_trg_The_Final_Cut, Condition( function Trig_The_Final_Cut_Conditions ) )
call TriggerAddAction( gg_trg_The_Final_Cut, function Trig_The_Final_Cut_Actions )
endfunction
function Trig_Learning_Nitro_1_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A0AG' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0AG', GetLearningUnit()) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Learning_Nitro_1_Actions takes nothing returns nothing
set udg_Nitro = 1.00
set udg_Offspring = GetLearningUnit()
endfunction
//===========================================================================
function InitTrig_Learning_Nitro_1 takes nothing returns nothing
set gg_trg_Learning_Nitro_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Learning_Nitro_1, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Learning_Nitro_1, Condition( function Trig_Learning_Nitro_1_Conditions ) )
call TriggerAddAction( gg_trg_Learning_Nitro_1, function Trig_Learning_Nitro_1_Actions )
endfunction
function Trig_Learning_Nitro_2_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A0AG' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0AG', GetLearningUnit()) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Learning_Nitro_2_Actions takes nothing returns nothing
set udg_Nitro = 2.00
set udg_Offspring = GetLearningUnit()
endfunction
//===========================================================================
function InitTrig_Learning_Nitro_2 takes nothing returns nothing
set gg_trg_Learning_Nitro_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Learning_Nitro_2, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Learning_Nitro_2, Condition( function Trig_Learning_Nitro_2_Conditions ) )
call TriggerAddAction( gg_trg_Learning_Nitro_2, function Trig_Learning_Nitro_2_Actions )
endfunction
function Trig_Learning_Nitro_3_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A0AG' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0AG', GetLearningUnit()) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Learning_Nitro_3_Actions takes nothing returns nothing
set udg_Nitro = 3.00
set udg_Offspring = GetLearningUnit()
endfunction
//===========================================================================
function InitTrig_Learning_Nitro_3 takes nothing returns nothing
set gg_trg_Learning_Nitro_3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Learning_Nitro_3, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Learning_Nitro_3, Condition( function Trig_Learning_Nitro_3_Conditions ) )
call TriggerAddAction( gg_trg_Learning_Nitro_3, function Trig_Learning_Nitro_3_Actions )
endfunction
function Trig_Nitro_1_Conditions takes nothing returns boolean
if ( not ( UnitHasBuffBJ(GetAttackedUnitBJ(), 'B02D') == true ) ) then
return false
endif
if ( not ( udg_Nitro == 1.00 ) ) then
return false
endif
return true
endfunction
function Trig_Nitro_1_Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 10) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Nitro_1_Actions takes nothing returns nothing
if ( Trig_Nitro_1_Func001C() ) then
call UnitDamageTargetBJ( udg_Offspring, GetAttackedUnitBJ(), 30.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call AddSpecialEffectTargetUnitBJ( "chest", GetAttackedUnitBJ(), "Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl" )
call PolledWait( 2 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Nitro_1 takes nothing returns nothing
set gg_trg_Nitro_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Nitro_1, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Nitro_1, Condition( function Trig_Nitro_1_Conditions ) )
call TriggerAddAction( gg_trg_Nitro_1, function Trig_Nitro_1_Actions )
endfunction
function Trig_Nitro_2_Conditions takes nothing returns boolean
if ( not ( UnitHasBuffBJ(GetAttackedUnitBJ(), 'B02D') == true ) ) then
return false
endif
if ( not ( udg_Nitro == 2.00 ) ) then
return false
endif
return true
endfunction
function Trig_Nitro_2_Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 10) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Nitro_2_Actions takes nothing returns nothing
if ( Trig_Nitro_2_Func001C() ) then
call UnitDamageTargetBJ( udg_Offspring, GetAttackedUnitBJ(), 60.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call AddSpecialEffectTargetUnitBJ( "chest", GetAttackedUnitBJ(), "Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl" )
call PolledWait( 2 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Nitro_2 takes nothing returns nothing
set gg_trg_Nitro_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Nitro_2, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Nitro_2, Condition( function Trig_Nitro_2_Conditions ) )
call TriggerAddAction( gg_trg_Nitro_2, function Trig_Nitro_2_Actions )
endfunction
function Trig_Nitro_3_Conditions takes nothing returns boolean
if ( not ( UnitHasBuffBJ(GetAttackedUnitBJ(), 'B02D') == true ) ) then
return false
endif
if ( not ( udg_Nitro == 3.00 ) ) then
return false
endif
return true
endfunction
function Trig_Nitro_3_Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 10) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Nitro_3_Actions takes nothing returns nothing
if ( Trig_Nitro_3_Func001C() ) then
call UnitDamageTargetBJ( udg_Offspring, GetAttackedUnitBJ(), 90.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call AddSpecialEffectTargetUnitBJ( "chest", GetAttackedUnitBJ(), "Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl" )
call PolledWait( 2 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Nitro_3 takes nothing returns nothing
set gg_trg_Nitro_3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Nitro_3, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Nitro_3, Condition( function Trig_Nitro_3_Conditions ) )
call TriggerAddAction( gg_trg_Nitro_3, function Trig_Nitro_3_Actions )
endfunction
function Trig_Pocket_Shopping_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AO' ) ) then
return false
endif
return true
endfunction
function Trig_Pocket_Shopping_Func001002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Pocket_Shopping_Func002002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Pocket_Shopping_Func003002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Pocket_Shopping_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetSpellAbilityUnit()), 'h01O'), function Trig_Pocket_Shopping_Func001002 )
call ForGroupBJ( GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetSpellAbilityUnit()), 'h01P'), function Trig_Pocket_Shopping_Func002002 )
call ForGroupBJ( GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetSpellAbilityUnit()), 'h01Q'), function Trig_Pocket_Shopping_Func003002 )
endfunction
//===========================================================================
function InitTrig_Pocket_Shopping takes nothing returns nothing
set gg_trg_Pocket_Shopping = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Pocket_Shopping, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Pocket_Shopping, Condition( function Trig_Pocket_Shopping_Conditions ) )
call TriggerAddAction( gg_trg_Pocket_Shopping, function Trig_Pocket_Shopping_Actions )
endfunction
function Trig_Absorbing_the_Pain_Conditions takes nothing returns boolean
if ( not ( UnitHasBuffBJ(GetAttackedUnitBJ(), 'B02H') == true ) ) then
return false
endif
return true
endfunction
function Trig_Absorbing_the_Pain_Actions takes nothing returns nothing
set udg_FakingIt = ( udg_LifeOfMisery - GetUnitStateSwap(UNIT_STATE_LIFE, GetAttackedUnitBJ()) )
set udg_Misery = ( udg_Misery + udg_FakingIt )
set udg_Lethe = GetAttackedUnitBJ()
set udg_LifeOfMisery = GetUnitStateSwap(UNIT_STATE_LIFE, udg_Lethe)
endfunction
//===========================================================================
function InitTrig_Absorbing_the_Pain takes nothing returns nothing
set gg_trg_Absorbing_the_Pain = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Absorbing_the_Pain, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Absorbing_the_Pain, Condition( function Trig_Absorbing_the_Pain_Conditions ) )
call TriggerAddAction( gg_trg_Absorbing_the_Pain, function Trig_Absorbing_the_Pain_Actions )
endfunction
function Trig_Preparing_the_Pain_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AP' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0AP', GetSpellAbilityUnit()) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Preparing_the_Pain_1_Actions takes nothing returns nothing
set udg_Misery = 0.00
set udg_Lethe = GetSpellAbilityUnit()
set udg_LifeOfMisery = GetUnitStateSwap(UNIT_STATE_LIFE, udg_Lethe)
call PolledWait( 10.00 )
call EnableTrigger( gg_trg_Unleashing_the_Pain_1 )
endfunction
//===========================================================================
function InitTrig_Preparing_the_Pain_1 takes nothing returns nothing
set gg_trg_Preparing_the_Pain_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Preparing_the_Pain_1, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Preparing_the_Pain_1, Condition( function Trig_Preparing_the_Pain_1_Conditions ) )
call TriggerAddAction( gg_trg_Preparing_the_Pain_1, function Trig_Preparing_the_Pain_1_Actions )
endfunction
function Trig_Unleashing_the_Pain_1_Conditions takes nothing returns boolean
if ( not ( GetAttacker() == udg_Lethe ) ) then
return false
endif
return true
endfunction
function Trig_Unleashing_the_Pain_1_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call UnitDamageTargetBJ( udg_Lethe, GetAttackedUnitBJ(), ( udg_Misery * 1.00 ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
set udg_Misery = 0.00
call AddSpecialEffectTargetUnitBJ( "origin", GetAttackedUnitBJ(), "Abilities\\Spells\\Undead\\AnimateDead\\AnimateDeadTarget.mdl" )
call PolledWait( 2 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endfunction
//===========================================================================
function InitTrig_Unleashing_the_Pain_1 takes nothing returns nothing
set gg_trg_Unleashing_the_Pain_1 = CreateTrigger( )
call DisableTrigger( gg_trg_Unleashing_the_Pain_1 )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Unleashing_the_Pain_1, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Unleashing_the_Pain_1, Condition( function Trig_Unleashing_the_Pain_1_Conditions ) )
call TriggerAddAction( gg_trg_Unleashing_the_Pain_1, function Trig_Unleashing_the_Pain_1_Actions )
endfunction
function Trig_Preparing_the_Pain_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AP' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0AP', GetSpellAbilityUnit()) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Preparing_the_Pain_2_Actions takes nothing returns nothing
set udg_Misery = 0.00
set udg_Lethe = GetSpellAbilityUnit()
set udg_LifeOfMisery = GetUnitStateSwap(UNIT_STATE_LIFE, udg_Lethe)
call PolledWait( 10.00 )
call EnableTrigger( gg_trg_Unleashing_the_Pain_2 )
endfunction
//===========================================================================
function InitTrig_Preparing_the_Pain_2 takes nothing returns nothing
set gg_trg_Preparing_the_Pain_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Preparing_the_Pain_2, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Preparing_the_Pain_2, Condition( function Trig_Preparing_the_Pain_2_Conditions ) )
call TriggerAddAction( gg_trg_Preparing_the_Pain_2, function Trig_Preparing_the_Pain_2_Actions )
endfunction
function Trig_Unleashing_the_Pain_2_Conditions takes nothing returns boolean
if ( not ( GetAttacker() == udg_Lethe ) ) then
return false
endif
return true
endfunction
function Trig_Unleashing_the_Pain_2_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call UnitDamageTargetBJ( udg_Lethe, GetAttackedUnitBJ(), ( udg_Misery * 2.00 ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
set udg_Misery = 0.00
call AddSpecialEffectTargetUnitBJ( "origin", GetAttackedUnitBJ(), "Abilities\\Spells\\Undead\\AnimateDead\\AnimateDeadTarget.mdl" )
call PolledWait( 2 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endfunction
//===========================================================================
function InitTrig_Unleashing_the_Pain_2 takes nothing returns nothing
set gg_trg_Unleashing_the_Pain_2 = CreateTrigger( )
call DisableTrigger( gg_trg_Unleashing_the_Pain_2 )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Unleashing_the_Pain_2, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Unleashing_the_Pain_2, Condition( function Trig_Unleashing_the_Pain_2_Conditions ) )
call TriggerAddAction( gg_trg_Unleashing_the_Pain_2, function Trig_Unleashing_the_Pain_2_Actions )
endfunction
function Trig_Preparing_the_Pain_3_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AP' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0AP', GetSpellAbilityUnit()) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Preparing_the_Pain_3_Actions takes nothing returns nothing
set udg_Misery = 0.00
set udg_Lethe = GetSpellAbilityUnit()
set udg_LifeOfMisery = GetUnitStateSwap(UNIT_STATE_LIFE, udg_Lethe)
call PolledWait( 10.00 )
call EnableTrigger( gg_trg_Unleashing_the_Pain_3 )
endfunction
//===========================================================================
function InitTrig_Preparing_the_Pain_3 takes nothing returns nothing
set gg_trg_Preparing_the_Pain_3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Preparing_the_Pain_3, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Preparing_the_Pain_3, Condition( function Trig_Preparing_the_Pain_3_Conditions ) )
call TriggerAddAction( gg_trg_Preparing_the_Pain_3, function Trig_Preparing_the_Pain_3_Actions )
endfunction
function Trig_Unleashing_the_Pain_3_Conditions takes nothing returns boolean
if ( not ( GetAttacker() == udg_Lethe ) ) then
return false
endif
return true
endfunction
function Trig_Unleashing_the_Pain_3_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call UnitDamageTargetBJ( udg_Lethe, GetAttackedUnitBJ(), ( udg_Misery * 3.00 ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
set udg_Misery = 0.00
call AddSpecialEffectTargetUnitBJ( "origin", GetAttackedUnitBJ(), "Abilities\\Spells\\Undead\\AnimateDead\\AnimateDeadTarget.mdl" )
call PolledWait( 2 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endfunction
//===========================================================================
function InitTrig_Unleashing_the_Pain_3 takes nothing returns nothing
set gg_trg_Unleashing_the_Pain_3 = CreateTrigger( )
call DisableTrigger( gg_trg_Unleashing_the_Pain_3 )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Unleashing_the_Pain_3, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Unleashing_the_Pain_3, Condition( function Trig_Unleashing_the_Pain_3_Conditions ) )
call TriggerAddAction( gg_trg_Unleashing_the_Pain_3, function Trig_Unleashing_the_Pain_3_Actions )
endfunction
function Trig_Lunar_Circle_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AR' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0AR', GetSpellAbilityUnit()) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Lunar_Circle_1_Func003001003 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(GetSpellAbilityUnit())) == true )
endfunction
function Trig_Lunar_Circle_1_Func003A takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetUnitLoc(GetSpellAbilityUnit()), GetUnitLoc(GetSpellAbilityUnit()) )
call UnitDamageTargetBJ( GetSpellAbilityUnit(), GetEnumUnit(), 250.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
endfunction
function Trig_Lunar_Circle_1_Actions takes nothing returns nothing
set udg_Luna = GetSpellAbilityUnit()
call PolledWait( 0.90 )
call ForGroupBJ( GetUnitsInRangeOfLocMatching(600.00, GetUnitLoc(udg_Luna), Condition(function Trig_Lunar_Circle_1_Func003001003)), function Trig_Lunar_Circle_1_Func003A )
endfunction
//===========================================================================
function InitTrig_Lunar_Circle_1 takes nothing returns nothing
set gg_trg_Lunar_Circle_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Lunar_Circle_1, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Lunar_Circle_1, Condition( function Trig_Lunar_Circle_1_Conditions ) )
call TriggerAddAction( gg_trg_Lunar_Circle_1, function Trig_Lunar_Circle_1_Actions )
endfunction
function Trig_Lunar_Circle_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AR' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0AR', GetSpellAbilityUnit()) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Lunar_Circle_2_Func003001003 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(GetSpellAbilityUnit())) == true )
endfunction
function Trig_Lunar_Circle_2_Func003A takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetUnitLoc(GetSpellAbilityUnit()), GetUnitLoc(GetSpellAbilityUnit()) )
call UnitDamageTargetBJ( GetSpellAbilityUnit(), GetEnumUnit(), 450.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
endfunction
function Trig_Lunar_Circle_2_Actions takes nothing returns nothing
set udg_Luna = GetSpellAbilityUnit()
call PolledWait( 0.90 )
call ForGroupBJ( GetUnitsInRangeOfLocMatching(600.00, GetUnitLoc(udg_Luna), Condition(function Trig_Lunar_Circle_2_Func003001003)), function Trig_Lunar_Circle_2_Func003A )
endfunction
//===========================================================================
function InitTrig_Lunar_Circle_2 takes nothing returns nothing
set gg_trg_Lunar_Circle_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Lunar_Circle_2, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Lunar_Circle_2, Condition( function Trig_Lunar_Circle_2_Conditions ) )
call TriggerAddAction( gg_trg_Lunar_Circle_2, function Trig_Lunar_Circle_2_Actions )
endfunction
function Trig_Lunar_Circle_3_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AR' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0AR', GetSpellAbilityUnit()) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Lunar_Circle_3_Func003001003 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(GetSpellAbilityUnit())) == true )
endfunction
function Trig_Lunar_Circle_3_Func003A takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetUnitLoc(GetSpellAbilityUnit()), GetUnitLoc(GetSpellAbilityUnit()) )
call UnitDamageTargetBJ( GetSpellAbilityUnit(), GetEnumUnit(), 650.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
endfunction
function Trig_Lunar_Circle_3_Actions takes nothing returns nothing
set udg_Luna = GetSpellAbilityUnit()
call PolledWait( 0.90 )
call ForGroupBJ( GetUnitsInRangeOfLocMatching(600.00, GetUnitLoc(udg_Luna), Condition(function Trig_Lunar_Circle_3_Func003001003)), function Trig_Lunar_Circle_3_Func003A )
endfunction
//===========================================================================
function InitTrig_Lunar_Circle_3 takes nothing returns nothing
set gg_trg_Lunar_Circle_3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Lunar_Circle_3, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Lunar_Circle_3, Condition( function Trig_Lunar_Circle_3_Conditions ) )
call TriggerAddAction( gg_trg_Lunar_Circle_3, function Trig_Lunar_Circle_3_Actions )
endfunction
function Trig_Roulette_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AC' ) ) then
return false
endif
return true
endfunction
function Trig_Roulette_Func001Func002A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetUnitLoc(GetSpellAbilityUnit()) )
call IssueImmediateOrderBJ( GetEnumUnit(), "fanofknives" )
endfunction
function Trig_Roulette_Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 10) <= 2 ) ) then
return false
endif
return true
endfunction
function Trig_Roulette_Actions takes nothing returns nothing
if ( Trig_Roulette_Func001C() ) then
call ForGroupBJ( GetUnitsOfTypeIdAll('u00T'), function Trig_Roulette_Func001Func002A )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Roulette takes nothing returns nothing
set gg_trg_Roulette = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Roulette, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Roulette, Condition( function Trig_Roulette_Conditions ) )
call TriggerAddAction( gg_trg_Roulette, function Trig_Roulette_Actions )
endfunction
function Trig_Learning_Roulette_1_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A0AC' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0AC', GetLearningUnit()) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Learning_Roulette_1_Actions takes nothing returns nothing
call SetUnitAbilityLevelSwapped( 'A0B3', gg_unit_u00T_0472, 1 )
endfunction
//===========================================================================
function InitTrig_Learning_Roulette_1 takes nothing returns nothing
set gg_trg_Learning_Roulette_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Learning_Roulette_1, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Learning_Roulette_1, Condition( function Trig_Learning_Roulette_1_Conditions ) )
call TriggerAddAction( gg_trg_Learning_Roulette_1, function Trig_Learning_Roulette_1_Actions )
endfunction
function Trig_Learning_Roulette_2_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A0AC' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0AC', GetLearningUnit()) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Learning_Roulette_2_Actions takes nothing returns nothing
call SetUnitAbilityLevelSwapped( 'A0B3', gg_unit_u00T_0472, 2 )
endfunction
//===========================================================================
function InitTrig_Learning_Roulette_2 takes nothing returns nothing
set gg_trg_Learning_Roulette_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Learning_Roulette_2, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Learning_Roulette_2, Condition( function Trig_Learning_Roulette_2_Conditions ) )
call TriggerAddAction( gg_trg_Learning_Roulette_2, function Trig_Learning_Roulette_2_Actions )
endfunction
function Trig_Learning_Roulette_3_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A0AC' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0AC', GetLearningUnit()) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Learning_Roulette_3_Actions takes nothing returns nothing
call SetUnitAbilityLevelSwapped( 'A0B3', gg_unit_u00T_0472, 3 )
endfunction
//===========================================================================
function InitTrig_Learning_Roulette_3 takes nothing returns nothing
set gg_trg_Learning_Roulette_3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Learning_Roulette_3, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Learning_Roulette_3, Condition( function Trig_Learning_Roulette_3_Conditions ) )
call TriggerAddAction( gg_trg_Learning_Roulette_3, function Trig_Learning_Roulette_3_Actions )
endfunction
function Trig_Dominate_Gargoyle_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A08M' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'u00M' ) ) then
return false
endif
return true
endfunction
function Trig_Dominate_Gargoyle_Actions takes nothing returns nothing
call PolledWait( 0.10 )
call KillUnit( GetSpellTargetUnit() )
endfunction
//===========================================================================
function InitTrig_Dominate_Gargoyle takes nothing returns nothing
set gg_trg_Dominate_Gargoyle = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Dominate_Gargoyle, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Dominate_Gargoyle, Condition( function Trig_Dominate_Gargoyle_Conditions ) )
call TriggerAddAction( gg_trg_Dominate_Gargoyle, function Trig_Dominate_Gargoyle_Actions )
endfunction
function Trig_Dominate_Dragon_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A08M' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'n03S' ) ) then
return false
endif
return true
endfunction
function Trig_Dominate_Dragon_Actions takes nothing returns nothing
call PolledWait( 0.10 )
call KillUnit( GetSpellTargetUnit() )
endfunction
//===========================================================================
function InitTrig_Dominate_Dragon takes nothing returns nothing
set gg_trg_Dominate_Dragon = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Dominate_Dragon, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Dominate_Dragon, Condition( function Trig_Dominate_Dragon_Conditions ) )
call TriggerAddAction( gg_trg_Dominate_Dragon, function Trig_Dominate_Dragon_Actions )
endfunction
function Trig_Pain_Mirror_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0B7' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0B7', GetSpellAbilityUnit()) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Pain_Mirror_1_Actions takes nothing returns nothing
set udg_PainReflection = GetSpellTargetUnit()
set udg_PainReflector = GetSpellAbilityUnit()
call PolledWait( 0.50 )
call SetUnitLifePercentBJ( udg_PainReflection, GetUnitLifePercent(udg_PainReflector) )
call PolledWait( 0.50 )
call SetUnitLifeBJ( udg_PainReflector, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_PainReflector) - 100.00 ) )
endfunction
//===========================================================================
function InitTrig_Pain_Mirror_1 takes nothing returns nothing
set gg_trg_Pain_Mirror_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Pain_Mirror_1, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Pain_Mirror_1, Condition( function Trig_Pain_Mirror_1_Conditions ) )
call TriggerAddAction( gg_trg_Pain_Mirror_1, function Trig_Pain_Mirror_1_Actions )
endfunction
function Trig_Pain_Mirror_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0B7' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0B7', GetSpellAbilityUnit()) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Pain_Mirror_2_Actions takes nothing returns nothing
set udg_PainReflection = GetSpellTargetUnit()
set udg_PainReflector = GetSpellAbilityUnit()
call PolledWait( 0.50 )
call SetUnitLifePercentBJ( udg_PainReflection, GetUnitLifePercent(udg_PainReflector) )
call PolledWait( 0.50 )
call SetUnitLifeBJ( udg_PainReflector, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_PainReflector) - 50.00 ) )
endfunction
//===========================================================================
function InitTrig_Pain_Mirror_2 takes nothing returns nothing
set gg_trg_Pain_Mirror_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Pain_Mirror_2, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Pain_Mirror_2, Condition( function Trig_Pain_Mirror_2_Conditions ) )
call TriggerAddAction( gg_trg_Pain_Mirror_2, function Trig_Pain_Mirror_2_Actions )
endfunction
function Trig_Pain_Mirror_3_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0B7' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0B7', GetSpellAbilityUnit()) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Pain_Mirror_3_Actions takes nothing returns nothing
set udg_PainReflection = GetSpellTargetUnit()
set udg_PainReflector = GetSpellAbilityUnit()
call PolledWait( 0.50 )
call SetUnitLifePercentBJ( udg_PainReflection, GetUnitLifePercent(udg_PainReflector) )
endfunction
//===========================================================================
function InitTrig_Pain_Mirror_3 takes nothing returns nothing
set gg_trg_Pain_Mirror_3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Pain_Mirror_3, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Pain_Mirror_3, Condition( function Trig_Pain_Mirror_3_Conditions ) )
call TriggerAddAction( gg_trg_Pain_Mirror_3, function Trig_Pain_Mirror_3_Actions )
endfunction
function Trig_Rough_Divide_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0BG' ) ) then
return false
endif
return true
endfunction
function Trig_Rough_Divide_Actions takes nothing returns nothing
call PolledWait( 0.50 )
call SetUnitPositionLocFacingLocBJ( GetSpellAbilityUnit(), GetUnitLoc(GetSpellTargetUnit()), GetUnitLoc(GetSpellTargetUnit()) )
endfunction
//===========================================================================
function InitTrig_Rough_Divide takes nothing returns nothing
set gg_trg_Rough_Divide = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Rough_Divide, EVENT_PLAYER_UNIT_SPELL_CHANNEL )
call TriggerAddCondition( gg_trg_Rough_Divide, Condition( function Trig_Rough_Divide_Conditions ) )
call TriggerAddAction( gg_trg_Rough_Divide, function Trig_Rough_Divide_Actions )
endfunction
function Trig_Delusions_Func002001002 takes nothing returns boolean
return ( UnitHasBuffBJ(GetFilterUnit(), 'B02T') == true )
endfunction
function Trig_Delusions_Func002A takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "move", OffsetLocation(GetUnitLoc(GetEnumUnit()), GetRandomReal(-200.00, 200.00), GetRandomReal(-200.00, 200.00)) )
endfunction
function Trig_Delusions_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Delusions_Func002001002)), function Trig_Delusions_Func002A )
endfunction
//===========================================================================
function InitTrig_Delusions takes nothing returns nothing
set gg_trg_Delusions = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Delusions, 1.00 )
call TriggerAddAction( gg_trg_Delusions, function Trig_Delusions_Actions )
endfunction
function Trig_Combo_Mastery_1_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A0CG' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0CG', GetLearningUnit()) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Combo_Mastery_1_Actions takes nothing returns nothing
set udg_ComboBonus = 50.00
endfunction
//===========================================================================
function InitTrig_Combo_Mastery_1 takes nothing returns nothing
set gg_trg_Combo_Mastery_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Combo_Mastery_1, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Combo_Mastery_1, Condition( function Trig_Combo_Mastery_1_Conditions ) )
call TriggerAddAction( gg_trg_Combo_Mastery_1, function Trig_Combo_Mastery_1_Actions )
endfunction
function Trig_Combo_Mastery_2_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A0CG' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0CG', GetLearningUnit()) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Combo_Mastery_2_Actions takes nothing returns nothing
set udg_ComboBonus = 100.00
endfunction
//===========================================================================
function InitTrig_Combo_Mastery_2 takes nothing returns nothing
set gg_trg_Combo_Mastery_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Combo_Mastery_2, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Combo_Mastery_2, Condition( function Trig_Combo_Mastery_2_Conditions ) )
call TriggerAddAction( gg_trg_Combo_Mastery_2, function Trig_Combo_Mastery_2_Actions )
endfunction
function Trig_Combo_Mastery_3_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A0CG' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0CG', GetLearningUnit()) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Combo_Mastery_3_Actions takes nothing returns nothing
set udg_ComboBonus = 150.00
endfunction
//===========================================================================
function InitTrig_Combo_Mastery_3 takes nothing returns nothing
set gg_trg_Combo_Mastery_3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Combo_Mastery_3, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Combo_Mastery_3, Condition( function Trig_Combo_Mastery_3_Conditions ) )
call TriggerAddAction( gg_trg_Combo_Mastery_3, function Trig_Combo_Mastery_3_Actions )
endfunction
function Trig_Combo_Mastery_4_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A0CG' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0CG', GetLearningUnit()) == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Combo_Mastery_4_Actions takes nothing returns nothing
set udg_ComboBonus = 200.00
endfunction
//===========================================================================
function InitTrig_Combo_Mastery_4 takes nothing returns nothing
set gg_trg_Combo_Mastery_4 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Combo_Mastery_4, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Combo_Mastery_4, Condition( function Trig_Combo_Mastery_4_Conditions ) )
call TriggerAddAction( gg_trg_Combo_Mastery_4, function Trig_Combo_Mastery_4_Actions )
endfunction
function Trig_Combo_Mastery_5_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A0CG' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0CG', GetLearningUnit()) == 5 ) ) then
return false
endif
return true
endfunction
function Trig_Combo_Mastery_5_Actions takes nothing returns nothing
set udg_ComboBonus = 250.00
endfunction
//===========================================================================
function InitTrig_Combo_Mastery_5 takes nothing returns nothing
set gg_trg_Combo_Mastery_5 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Combo_Mastery_5, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Combo_Mastery_5, Condition( function Trig_Combo_Mastery_5_Conditions ) )
call TriggerAddAction( gg_trg_Combo_Mastery_5, function Trig_Combo_Mastery_5_Actions )
endfunction
function Trig_Combo_Mastery_6_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A0CG' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0CG', GetLearningUnit()) == 6 ) ) then
return false
endif
return true
endfunction
function Trig_Combo_Mastery_6_Actions takes nothing returns nothing
set udg_ComboBonus = 300.00
endfunction
//===========================================================================
function InitTrig_Combo_Mastery_6 takes nothing returns nothing
set gg_trg_Combo_Mastery_6 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Combo_Mastery_6, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Combo_Mastery_6, Condition( function Trig_Combo_Mastery_6_Conditions ) )
call TriggerAddAction( gg_trg_Combo_Mastery_6, function Trig_Combo_Mastery_6_Actions )
endfunction
function Trig_Dragon_Rage_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0CE' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0CE', GetSpellAbilityUnit()) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Dragon_Rage_1_Actions takes nothing returns nothing
set udg_DragonBeam = GetSpellTargetUnit()
set udg_Elementalist = GetSpellAbilityUnit()
call PolledWait( 0.50 )
call UnitDamageTargetBJ( udg_Elementalist, udg_DragonBeam, 50.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
endfunction
//===========================================================================
function InitTrig_Dragon_Rage_1 takes nothing returns nothing
set gg_trg_Dragon_Rage_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Dragon_Rage_1, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Dragon_Rage_1, Condition( function Trig_Dragon_Rage_1_Conditions ) )
call TriggerAddAction( gg_trg_Dragon_Rage_1, function Trig_Dragon_Rage_1_Actions )
endfunction
function Trig_Dragon_Rage_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0CE' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0CE', GetSpellAbilityUnit()) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Dragon_Rage_2_Actions takes nothing returns nothing
set udg_DragonBeam = GetSpellTargetUnit()
set udg_Elementalist = GetSpellAbilityUnit()
call PolledWait( 0.50 )
call UnitDamageTargetBJ( udg_Elementalist, udg_DragonBeam, 100.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
endfunction
//===========================================================================
function InitTrig_Dragon_Rage_2 takes nothing returns nothing
set gg_trg_Dragon_Rage_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Dragon_Rage_2, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Dragon_Rage_2, Condition( function Trig_Dragon_Rage_2_Conditions ) )
call TriggerAddAction( gg_trg_Dragon_Rage_2, function Trig_Dragon_Rage_2_Actions )
endfunction
function Trig_Dragon_Rage_3_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0CE' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0CE', GetSpellAbilityUnit()) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Dragon_Rage_3_Actions takes nothing returns nothing
set udg_DragonBeam = GetSpellTargetUnit()
set udg_Elementalist = GetSpellAbilityUnit()
call PolledWait( 0.50 )
call UnitDamageTargetBJ( udg_Elementalist, udg_DragonBeam, 150.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
endfunction
//===========================================================================
function InitTrig_Dragon_Rage_3 takes nothing returns nothing
set gg_trg_Dragon_Rage_3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Dragon_Rage_3, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Dragon_Rage_3, Condition( function Trig_Dragon_Rage_3_Conditions ) )
call TriggerAddAction( gg_trg_Dragon_Rage_3, function Trig_Dragon_Rage_3_Actions )
endfunction
function Trig_Viper_Strike_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0CD' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0CD', GetSpellAbilityUnit()) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Viper_Strike_1_Actions takes nothing returns nothing
set udg_ViperBeam = GetSpellTargetUnit()
set udg_Elementalist = GetSpellAbilityUnit()
call PolledWait( 0.50 )
call UnitDamageTargetBJ( udg_Elementalist, udg_ViperBeam, 50.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
endfunction
//===========================================================================
function InitTrig_Viper_Strike_1 takes nothing returns nothing
set gg_trg_Viper_Strike_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Viper_Strike_1, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Viper_Strike_1, Condition( function Trig_Viper_Strike_1_Conditions ) )
call TriggerAddAction( gg_trg_Viper_Strike_1, function Trig_Viper_Strike_1_Actions )
endfunction
function Trig_Viper_Strike_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0CD' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0CD', GetSpellAbilityUnit()) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Viper_Strike_2_Actions takes nothing returns nothing
set udg_ViperBeam = GetSpellTargetUnit()
set udg_Elementalist = GetSpellAbilityUnit()
call PolledWait( 0.50 )
call UnitDamageTargetBJ( udg_Elementalist, udg_ViperBeam, 100.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
endfunction
//===========================================================================
function InitTrig_Viper_Strike_2 takes nothing returns nothing
set gg_trg_Viper_Strike_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Viper_Strike_2, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Viper_Strike_2, Condition( function Trig_Viper_Strike_2_Conditions ) )
call TriggerAddAction( gg_trg_Viper_Strike_2, function Trig_Viper_Strike_2_Actions )
endfunction
function Trig_Viper_Strike_3_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0CD' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0CD', GetSpellAbilityUnit()) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Viper_Strike_3_Actions takes nothing returns nothing
set udg_ViperBeam = GetSpellTargetUnit()
set udg_Elementalist = GetSpellAbilityUnit()
call PolledWait( 0.50 )
call UnitDamageTargetBJ( udg_Elementalist, udg_ViperBeam, 150.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
endfunction
//===========================================================================
function InitTrig_Viper_Strike_3 takes nothing returns nothing
set gg_trg_Viper_Strike_3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Viper_Strike_3, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Viper_Strike_3, Condition( function Trig_Viper_Strike_3_Conditions ) )
call TriggerAddAction( gg_trg_Viper_Strike_3, function Trig_Viper_Strike_3_Actions )
endfunction
function Trig_Frozen_Spire_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0CF' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0CF', GetSpellAbilityUnit()) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Frozen_Spire_1_Actions takes nothing returns nothing
set udg_FrozenBeam = GetSpellTargetUnit()
set udg_Elementalist = GetSpellAbilityUnit()
call PolledWait( 0.50 )
call UnitDamageTargetBJ( udg_Elementalist, udg_FrozenBeam, 50.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
endfunction
//===========================================================================
function InitTrig_Frozen_Spire_1 takes nothing returns nothing
set gg_trg_Frozen_Spire_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Frozen_Spire_1, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Frozen_Spire_1, Condition( function Trig_Frozen_Spire_1_Conditions ) )
call TriggerAddAction( gg_trg_Frozen_Spire_1, function Trig_Frozen_Spire_1_Actions )
endfunction
function Trig_Frozen_Spire_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0CF' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0CF', GetSpellAbilityUnit()) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Frozen_Spire_2_Actions takes nothing returns nothing
set udg_FrozenBeam = GetSpellTargetUnit()
set udg_Elementalist = GetSpellAbilityUnit()
call PolledWait( 0.50 )
call UnitDamageTargetBJ( udg_Elementalist, udg_FrozenBeam, 100.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
endfunction
//===========================================================================
function InitTrig_Frozen_Spire_2 takes nothing returns nothing
set gg_trg_Frozen_Spire_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Frozen_Spire_2, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Frozen_Spire_2, Condition( function Trig_Frozen_Spire_2_Conditions ) )
call TriggerAddAction( gg_trg_Frozen_Spire_2, function Trig_Frozen_Spire_2_Actions )
endfunction
function Trig_Frozen_Spire_3_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0CF' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0CF', GetSpellAbilityUnit()) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Frozen_Spire_3_Actions takes nothing returns nothing
set udg_FrozenBeam = GetSpellTargetUnit()
set udg_Elementalist = GetSpellAbilityUnit()
call PolledWait( 0.50 )
call UnitDamageTargetBJ( udg_Elementalist, udg_FrozenBeam, 150.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
endfunction
//===========================================================================
function InitTrig_Frozen_Spire_3 takes nothing returns nothing
set gg_trg_Frozen_Spire_3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Frozen_Spire_3, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Frozen_Spire_3, Condition( function Trig_Frozen_Spire_3_Conditions ) )
call TriggerAddAction( gg_trg_Frozen_Spire_3, function Trig_Frozen_Spire_3_Actions )
endfunction
function Trig_Demon_Fang_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0CD' ) ) then
return false
endif
if ( not ( UnitHasBuffBJ(GetSpellTargetUnit(), 'B02W') == true ) ) then
return false
endif
return true
endfunction
function Trig_Demon_Fang_Func008A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetUnitLoc(udg_ComboTarget) )
call IssueTargetOrderBJ( GetEnumUnit(), "drunkenhaze", udg_ComboTarget )
endfunction
function Trig_Demon_Fang_Actions takes nothing returns nothing
set udg_ComboTarget = GetSpellTargetUnit()
call PolledWait( 0.10 )
call UnitRemoveBuffsBJ( bj_REMOVEBUFFS_ALL, GetSpellTargetUnit() )
call PolledWait( 0.50 )
call UnitRemoveBuffsBJ( bj_REMOVEBUFFS_ALL, GetSpellTargetUnit() )
call UnitDamageTargetBJ( udg_Elementalist, udg_ComboTarget, ( 200.00 + udg_ComboBonus ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call ForGroupBJ( GetUnitsOfTypeIdAll('u010'), function Trig_Demon_Fang_Func008A )
call DestroyTextTagBJ( udg_ComboFloater )
call CreateTextTagUnitBJ( "TRIGSTR_6562", udg_ComboTarget, 50.00, 8.00, 100.00, 100, 50.00, 1.00 )
set udg_ComboFloater = GetLastCreatedTextTag()
call PolledWait( 2.00 )
call DestroyTextTagBJ( udg_ComboFloater )
endfunction
//===========================================================================
function InitTrig_Demon_Fang takes nothing returns nothing
set gg_trg_Demon_Fang = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Demon_Fang, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Demon_Fang, Condition( function Trig_Demon_Fang_Conditions ) )
call TriggerAddAction( gg_trg_Demon_Fang, function Trig_Demon_Fang_Actions )
endfunction
function Trig_Abyssal_Fury_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0CE' ) ) then
return false
endif
if ( not ( UnitHasBuffBJ(GetSpellTargetUnit(), 'B02V') == true ) ) then
return false
endif
return true
endfunction
function Trig_Abyssal_Fury_Func007A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetUnitLoc(udg_ComboTarget) )
call IssueTargetOrderBJ( GetEnumUnit(), "frostnova", udg_ComboTarget )
endfunction
function Trig_Abyssal_Fury_Actions takes nothing returns nothing
set udg_ComboTarget = GetSpellTargetUnit()
call PolledWait( 0.10 )
call UnitRemoveBuffsBJ( bj_REMOVEBUFFS_ALL, GetSpellTargetUnit() )
call PolledWait( 0.50 )
call UnitRemoveBuffsBJ( bj_REMOVEBUFFS_ALL, GetSpellTargetUnit() )
call UnitDamageTargetBJ( udg_Elementalist, udg_ComboTarget, udg_ComboBonus, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call ForGroupBJ( GetUnitsOfTypeIdAll('u010'), function Trig_Abyssal_Fury_Func007A )
call DestroyTextTagBJ( udg_ComboFloater )
call CreateTextTagUnitBJ( "TRIGSTR_6561", udg_ComboTarget, 50.00, 8.00, 100.00, 100, 50.00, 1.00 )
set udg_ComboFloater = GetLastCreatedTextTag()
call PolledWait( 2.00 )
call DestroyTextTagBJ( udg_ComboFloater )
endfunction
//===========================================================================
function InitTrig_Abyssal_Fury takes nothing returns nothing
set gg_trg_Abyssal_Fury = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Abyssal_Fury, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Abyssal_Fury, Condition( function Trig_Abyssal_Fury_Conditions ) )
call TriggerAddAction( gg_trg_Abyssal_Fury, function Trig_Abyssal_Fury_Actions )
endfunction
function Trig_Burning_Blood_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0CF' ) ) then
return false
endif
if ( not ( UnitHasBuffBJ(GetSpellTargetUnit(), 'B02W') == true ) ) then
return false
endif
return true
endfunction
function Trig_Burning_Blood_Func007A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetUnitLoc(udg_ComboTarget) )
call IssueTargetOrderBJ( GetEnumUnit(), "faeriefire", udg_ComboTarget )
endfunction
function Trig_Burning_Blood_Actions takes nothing returns nothing
set udg_ComboTarget = GetSpellTargetUnit()
call PolledWait( 0.10 )
call UnitRemoveBuffsBJ( bj_REMOVEBUFFS_ALL, GetSpellTargetUnit() )
call PolledWait( 0.50 )
call UnitRemoveBuffsBJ( bj_REMOVEBUFFS_ALL, GetSpellTargetUnit() )
call UnitDamageTargetBJ( udg_Elementalist, udg_ComboTarget, udg_ComboBonus, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call ForGroupBJ( GetUnitsOfTypeIdAll('u010'), function Trig_Burning_Blood_Func007A )
call DestroyTextTagBJ( udg_ComboFloater )
call CreateTextTagUnitBJ( "TRIGSTR_6564", udg_ComboTarget, 50.00, 8.00, 100.00, 50.00, 100.00, 1.00 )
set udg_ComboFloater = GetLastCreatedTextTag()
call PolledWait( 2.00 )
call DestroyTextTagBJ( udg_ComboFloater )
endfunction
//===========================================================================
function InitTrig_Burning_Blood takes nothing returns nothing
set gg_trg_Burning_Blood = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Burning_Blood, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Burning_Blood, Condition( function Trig_Burning_Blood_Conditions ) )
call TriggerAddAction( gg_trg_Burning_Blood, function Trig_Burning_Blood_Actions )
endfunction
function Trig_Dark_Sphere_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0CE' ) ) then
return false
endif
if ( not ( UnitHasBuffBJ(GetSpellTargetUnit(), 'B02X') == true ) ) then
return false
endif
return true
endfunction
function Trig_Dark_Sphere_Func007A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetUnitLoc(udg_ComboTarget) )
call IssueTargetOrderBJ( GetEnumUnit(), "curse", udg_ComboTarget )
endfunction
function Trig_Dark_Sphere_Actions takes nothing returns nothing
set udg_ComboTarget = GetSpellTargetUnit()
call PolledWait( 0.10 )
call UnitRemoveBuffsBJ( bj_REMOVEBUFFS_ALL, GetSpellTargetUnit() )
call PolledWait( 0.50 )
call UnitRemoveBuffsBJ( bj_REMOVEBUFFS_ALL, GetSpellTargetUnit() )
call UnitDamageTargetBJ( udg_Elementalist, udg_ComboTarget, udg_ComboBonus, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call ForGroupBJ( GetUnitsOfTypeIdAll('u010'), function Trig_Dark_Sphere_Func007A )
call DestroyTextTagBJ( udg_ComboFloater )
call CreateTextTagUnitBJ( "TRIGSTR_6563", udg_ComboTarget, 50.00, 8.00, 100.00, 50.00, 100.00, 1.00 )
set udg_ComboFloater = GetLastCreatedTextTag()
call PolledWait( 2.00 )
call DestroyTextTagBJ( udg_ComboFloater )
endfunction
//===========================================================================
function InitTrig_Dark_Sphere takes nothing returns nothing
set gg_trg_Dark_Sphere = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Dark_Sphere, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Dark_Sphere, Condition( function Trig_Dark_Sphere_Conditions ) )
call TriggerAddAction( gg_trg_Dark_Sphere, function Trig_Dark_Sphere_Actions )
endfunction
function Trig_Aether_Flux_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0CF' ) ) then
return false
endif
if ( not ( UnitHasBuffBJ(GetSpellTargetUnit(), 'B02V') == true ) ) then
return false
endif
return true
endfunction
function Trig_Aether_Flux_Func007A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetUnitLoc(udg_ComboTarget) )
call IssueTargetOrderBJ( GetEnumUnit(), "slow", udg_ComboTarget )
endfunction
function Trig_Aether_Flux_Actions takes nothing returns nothing
set udg_ComboTarget = GetSpellTargetUnit()
call PolledWait( 0.10 )
call UnitRemoveBuffsBJ( bj_REMOVEBUFFS_ALL, GetSpellTargetUnit() )
call PolledWait( 0.50 )
call UnitRemoveBuffsBJ( bj_REMOVEBUFFS_ALL, GetSpellTargetUnit() )
call UnitDamageTargetBJ( udg_Elementalist, udg_ComboTarget, udg_ComboBonus, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call ForGroupBJ( GetUnitsOfTypeIdAll('u010'), function Trig_Aether_Flux_Func007A )
call DestroyTextTagBJ( udg_ComboFloater )
call CreateTextTagUnitBJ( "TRIGSTR_6566", udg_ComboTarget, 50.00, 8.00, 50.00, 100.00, 100.00, 1.00 )
set udg_ComboFloater = GetLastCreatedTextTag()
call PolledWait( 2.00 )
call DestroyTextTagBJ( udg_ComboFloater )
endfunction
//===========================================================================
function InitTrig_Aether_Flux takes nothing returns nothing
set gg_trg_Aether_Flux = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Aether_Flux, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Aether_Flux, Condition( function Trig_Aether_Flux_Conditions ) )
call TriggerAddAction( gg_trg_Aether_Flux, function Trig_Aether_Flux_Actions )
endfunction
function Trig_Freeze_Prism_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0CD' ) ) then
return false
endif
if ( not ( UnitHasBuffBJ(GetSpellTargetUnit(), 'B02X') == true ) ) then
return false
endif
return true
endfunction
function Trig_Freeze_Prism_Func007A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetUnitLoc(udg_ComboTarget) )
call IssueTargetOrderBJ( GetEnumUnit(), "thunderbolt", udg_ComboTarget )
endfunction
function Trig_Freeze_Prism_Actions takes nothing returns nothing
set udg_ComboTarget = GetSpellTargetUnit()
call PolledWait( 0.10 )
call UnitRemoveBuffsBJ( bj_REMOVEBUFFS_ALL, GetSpellTargetUnit() )
call PolledWait( 0.50 )
call UnitRemoveBuffsBJ( bj_REMOVEBUFFS_ALL, GetSpellTargetUnit() )
call UnitDamageTargetBJ( udg_Elementalist, udg_ComboTarget, udg_ComboBonus, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call ForGroupBJ( GetUnitsOfTypeIdAll('u010'), function Trig_Freeze_Prism_Func007A )
call DestroyTextTagBJ( udg_ComboFloater )
call CreateTextTagUnitBJ( "TRIGSTR_6565", udg_ComboTarget, 50.00, 8.00, 50.00, 100.00, 100.00, 1.00 )
set udg_ComboFloater = GetLastCreatedTextTag()
call PolledWait( 2.00 )
call DestroyTextTagBJ( udg_ComboFloater )
endfunction
//===========================================================================
function InitTrig_Freeze_Prism takes nothing returns nothing
set gg_trg_Freeze_Prism = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Freeze_Prism, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Freeze_Prism, Condition( function Trig_Freeze_Prism_Conditions ) )
call TriggerAddAction( gg_trg_Freeze_Prism, function Trig_Freeze_Prism_Actions )
endfunction
function Trig_Learning_Crushing_Blow_1_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A0BC' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0BC', GetLearningUnit()) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Learning_Crushing_Blow_1_Actions takes nothing returns nothing
set udg_Crusher = GetLearningUnit()
set udg_CrushCounter = 1
endfunction
//===========================================================================
function InitTrig_Learning_Crushing_Blow_1 takes nothing returns nothing
set gg_trg_Learning_Crushing_Blow_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Learning_Crushing_Blow_1, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Learning_Crushing_Blow_1, Condition( function Trig_Learning_Crushing_Blow_1_Conditions ) )
call TriggerAddAction( gg_trg_Learning_Crushing_Blow_1, function Trig_Learning_Crushing_Blow_1_Actions )
endfunction
function Trig_Learning_Crushing_Blow_2_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A0BC' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0BC', GetLearningUnit()) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Learning_Crushing_Blow_2_Actions takes nothing returns nothing
set udg_Crusher = GetLearningUnit()
set udg_CrushCounter = 2
endfunction
//===========================================================================
function InitTrig_Learning_Crushing_Blow_2 takes nothing returns nothing
set gg_trg_Learning_Crushing_Blow_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Learning_Crushing_Blow_2, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Learning_Crushing_Blow_2, Condition( function Trig_Learning_Crushing_Blow_2_Conditions ) )
call TriggerAddAction( gg_trg_Learning_Crushing_Blow_2, function Trig_Learning_Crushing_Blow_2_Actions )
endfunction
function Trig_Learning_Crushing_Blow_3_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A0BC' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0BC', GetLearningUnit()) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Learning_Crushing_Blow_3_Actions takes nothing returns nothing
set udg_Crusher = GetLearningUnit()
set udg_CrushCounter = 3
endfunction
//===========================================================================
function InitTrig_Learning_Crushing_Blow_3 takes nothing returns nothing
set gg_trg_Learning_Crushing_Blow_3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Learning_Crushing_Blow_3, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Learning_Crushing_Blow_3, Condition( function Trig_Learning_Crushing_Blow_3_Conditions ) )
call TriggerAddAction( gg_trg_Learning_Crushing_Blow_3, function Trig_Learning_Crushing_Blow_3_Actions )
endfunction
function Trig_The_Crusher_Conditions takes nothing returns boolean
if ( not ( GetAttacker() == udg_Crusher ) ) then
return false
endif
if ( not ( IsUnitType(GetAttackedUnitBJ(), UNIT_TYPE_HERO) == false ) ) then
return false
endif
return true
endfunction
function Trig_The_Crusher_Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 10) <= udg_CrushCounter ) ) then
return false
endif
return true
endfunction
function Trig_The_Crusher_Actions takes nothing returns nothing
if ( Trig_The_Crusher_Func001C() ) then
call SetUnitLifeBJ( GetAttackedUnitBJ(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetAttackedUnitBJ()) / 2.00 ) )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_The_Crusher takes nothing returns nothing
set gg_trg_The_Crusher = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_The_Crusher, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_The_Crusher, Condition( function Trig_The_Crusher_Conditions ) )
call TriggerAddAction( gg_trg_The_Crusher, function Trig_The_Crusher_Actions )
endfunction
function Trig_Learning_Icy_Coffin_1_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A0CP' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0CP', GetLearningUnit()) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Learning_Icy_Coffin_1_Actions takes nothing returns nothing
set udg_Freezer = GetLearningUnit()
set udg_FreezeCounter = 1
endfunction
//===========================================================================
function InitTrig_Learning_Icy_Coffin_1 takes nothing returns nothing
set gg_trg_Learning_Icy_Coffin_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Learning_Icy_Coffin_1, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Learning_Icy_Coffin_1, Condition( function Trig_Learning_Icy_Coffin_1_Conditions ) )
call TriggerAddAction( gg_trg_Learning_Icy_Coffin_1, function Trig_Learning_Icy_Coffin_1_Actions )
endfunction
function Trig_Learning_Icy_Coffin_2_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A0CP' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0CP', GetLearningUnit()) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Learning_Icy_Coffin_2_Actions takes nothing returns nothing
set udg_Freezer = GetLearningUnit()
set udg_FreezeCounter = 2
endfunction
//===========================================================================
function InitTrig_Learning_Icy_Coffin_2 takes nothing returns nothing
set gg_trg_Learning_Icy_Coffin_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Learning_Icy_Coffin_2, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Learning_Icy_Coffin_2, Condition( function Trig_Learning_Icy_Coffin_2_Conditions ) )
call TriggerAddAction( gg_trg_Learning_Icy_Coffin_2, function Trig_Learning_Icy_Coffin_2_Actions )
endfunction
function Trig_Learning_Icy_Coffin_3_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A0CP' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A0CP', GetLearningUnit()) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Learning_Icy_Coffin_3_Actions takes nothing returns nothing
set udg_Freezer = GetLearningUnit()
set udg_FreezeCounter = 3
endfunction
//===========================================================================
function InitTrig_Learning_Icy_Coffin_3 takes nothing returns nothing
set gg_trg_Learning_Icy_Coffin_3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Learning_Icy_Coffin_3, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Learning_Icy_Coffin_3, Condition( function Trig_Learning_Icy_Coffin_3_Conditions ) )
call TriggerAddAction( gg_trg_Learning_Icy_Coffin_3, function Trig_Learning_Icy_Coffin_3_Actions )
endfunction
function Trig_The_Freezer_Conditions takes nothing returns boolean
if ( not ( GetAttacker() == udg_Freezer ) ) then
return false
endif
return true
endfunction
function Trig_The_Freezer_Func001Func001A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetUnitLoc(GetAttackedUnitBJ()) )
call IssueTargetOrderBJ( GetEnumUnit(), "thunderbolt", GetAttackedUnitBJ() )
endfunction
function Trig_The_Freezer_Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 10) <= udg_FreezeCounter ) ) then
return false
endif
return true
endfunction
function Trig_The_Freezer_Actions takes nothing returns nothing
if ( Trig_The_Freezer_Func001C() ) then
call ForGroupBJ( GetUnitsOfTypeIdAll('u010'), function Trig_The_Freezer_Func001Func001A )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_The_Freezer takes nothing returns nothing
set gg_trg_The_Freezer = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_The_Freezer, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_The_Freezer, Condition( function Trig_The_Freezer_Conditions ) )
call TriggerAddAction( gg_trg_The_Freezer, function Trig_The_Freezer_Actions )
endfunction
function Trig_Thundrake_Revenge_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttackedUnitBJ()) == 'n00F' ) ) then
return false
endif
return true
endfunction
function Trig_Thundrake_Revenge_Actions takes nothing returns nothing
call PolledWait( 1.00 )
call IssueImmediateOrderBJ( GetAttackedUnitBJ(), "creepthunderclap" )
endfunction
//===========================================================================
function InitTrig_Thundrake_Revenge takes nothing returns nothing
set gg_trg_Thundrake_Revenge = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Thundrake_Revenge, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Thundrake_Revenge, Condition( function Trig_Thundrake_Revenge_Conditions ) )
call TriggerAddAction( gg_trg_Thundrake_Revenge, function Trig_Thundrake_Revenge_Actions )
endfunction
function Trig_Birth_of_Chaos_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A0EA' ) ) then
return false
endif
return true
endfunction
function Trig_Birth_of_Chaos_Actions takes nothing returns nothing
set udg_EyeOfTheStorm = GetLearningUnit()
set udg_ChaosRain = ( udg_ChaosRain + 150.00 )
endfunction
//===========================================================================
function InitTrig_Birth_of_Chaos takes nothing returns nothing
set gg_trg_Birth_of_Chaos = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Birth_of_Chaos, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Birth_of_Chaos, Condition( function Trig_Birth_of_Chaos_Conditions ) )
call TriggerAddAction( gg_trg_Birth_of_Chaos, function Trig_Birth_of_Chaos_Actions )
endfunction
function Trig_Sphere_of_Chaos_Func001001002003 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(udg_EyeOfTheStorm)) == true )
endfunction
function Trig_Sphere_of_Chaos_Func001Func003C takes nothing returns boolean
if ( not ( udg_RandomFate == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Sphere_of_Chaos_Func001Func004C takes nothing returns boolean
if ( not ( udg_RandomFate == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Sphere_of_Chaos_Func001Func005C takes nothing returns boolean
if ( not ( udg_RandomFate == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Sphere_of_Chaos_Func001Func006C takes nothing returns boolean
if ( not ( udg_RandomFate == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Sphere_of_Chaos_Func001A takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( gg_unit_u016_0611, GetUnitLoc(GetEnumUnit()), GetUnitLoc(GetEnumUnit()) )
set udg_RandomFate = GetRandomInt(1, 4)
if ( Trig_Sphere_of_Chaos_Func001Func003C() ) then
call IssueTargetOrderBJ( gg_unit_u016_0611, "slow", GetEnumUnit() )
else
call DoNothing( )
endif
if ( Trig_Sphere_of_Chaos_Func001Func004C() ) then
call IssueTargetOrderBJ( gg_unit_u016_0611, "curse", GetEnumUnit() )
else
call DoNothing( )
endif
if ( Trig_Sphere_of_Chaos_Func001Func005C() ) then
call IssueTargetOrderBJ( gg_unit_u016_0611, "thunderbolt", GetEnumUnit() )
else
call DoNothing( )
endif
if ( Trig_Sphere_of_Chaos_Func001Func006C() ) then
call IssueTargetOrderBJ( gg_unit_u016_0611, "hex", GetEnumUnit() )
else
call DoNothing( )
endif
endfunction
function Trig_Sphere_of_Chaos_Actions takes nothing returns nothing
call ForGroupBJ( GetRandomSubGroup(1, GetUnitsInRangeOfLocMatching(udg_ChaosRain, GetUnitLoc(udg_EyeOfTheStorm), Condition(function Trig_Sphere_of_Chaos_Func001001002003))), function Trig_Sphere_of_Chaos_Func001A )
endfunction
//===========================================================================
function InitTrig_Sphere_of_Chaos takes nothing returns nothing
set gg_trg_Sphere_of_Chaos = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Sphere_of_Chaos, 5.00 )
call TriggerAddAction( gg_trg_Sphere_of_Chaos, function Trig_Sphere_of_Chaos_Actions )
endfunction
function Trig_Animist_Retrains_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I00I' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'O00C' ) ) then
return false
endif
return true
endfunction
function Trig_Animist_Retrains_Func004002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Animist_Retrains_Actions takes nothing returns nothing
set udg_KindredSpirit1 = Player(11)
set udg_KindredSpirit2 = Player(11)
set udg_KindredSpirit3 = Player(11)
call ForGroupBJ( GetUnitsOfTypeIdAll('n00Y'), function Trig_Animist_Retrains_Func004002 )
endfunction
//===========================================================================
function InitTrig_Animist_Retrains takes nothing returns nothing
set gg_trg_Animist_Retrains = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Animist_Retrains, EVENT_PLAYER_UNIT_USE_ITEM )
call TriggerAddCondition( gg_trg_Animist_Retrains, Condition( function Trig_Animist_Retrains_Conditions ) )
call TriggerAddAction( gg_trg_Animist_Retrains, function Trig_Animist_Retrains_Actions )
endfunction
function Trig_Shaman_Retrains_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I00I' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'O00J' ) ) then
return false
endif
return true
endfunction
function Trig_Shaman_Retrains_Func004002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Shaman_Retrains_Actions takes nothing returns nothing
set udg_KindredSpirit1 = Player(11)
set udg_KindredSpirit2 = Player(11)
set udg_KindredSpirit3 = Player(11)
call ForGroupBJ( GetUnitsOfTypeIdAll('n00Y'), function Trig_Shaman_Retrains_Func004002 )
endfunction
//===========================================================================
function InitTrig_Shaman_Retrains takes nothing returns nothing
set gg_trg_Shaman_Retrains = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Shaman_Retrains, EVENT_PLAYER_UNIT_USE_ITEM )
call TriggerAddCondition( gg_trg_Shaman_Retrains, Condition( function Trig_Shaman_Retrains_Conditions ) )
call TriggerAddAction( gg_trg_Shaman_Retrains, function Trig_Shaman_Retrains_Actions )
endfunction
function Trig_Watchman_Retrains_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I00I' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'U00A' ) ) then
return false
endif
return true
endfunction
function Trig_Watchman_Retrains_Actions takes nothing returns nothing
set udg_CallingShooter1 = null
set udg_CallingShooter2 = null
set udg_CallingShooter3 = null
endfunction
//===========================================================================
function InitTrig_Watchman_Retrains takes nothing returns nothing
set gg_trg_Watchman_Retrains = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Watchman_Retrains, EVENT_PLAYER_UNIT_USE_ITEM )
call TriggerAddCondition( gg_trg_Watchman_Retrains, Condition( function Trig_Watchman_Retrains_Conditions ) )
call TriggerAddAction( gg_trg_Watchman_Retrains, function Trig_Watchman_Retrains_Actions )
endfunction
function Trig_Gladiator_Retrains_1_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I00I' ) ) then
return false
endif
if ( not ( GetManipulatingUnit() == udg_Hawk1 ) ) then
return false
endif
return true
endfunction
function Trig_Gladiator_Retrains_1_Actions takes nothing returns nothing
call SelectHeroSkill( udg_Gladiator, 'A05N' )
endfunction
//===========================================================================
function InitTrig_Gladiator_Retrains_1 takes nothing returns nothing
set gg_trg_Gladiator_Retrains_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Gladiator_Retrains_1, EVENT_PLAYER_UNIT_USE_ITEM )
call TriggerAddCondition( gg_trg_Gladiator_Retrains_1, Condition( function Trig_Gladiator_Retrains_1_Conditions ) )
call TriggerAddAction( gg_trg_Gladiator_Retrains_1, function Trig_Gladiator_Retrains_1_Actions )
endfunction
function Trig_Gladiator_Retrains_2_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I00I' ) ) then
return false
endif
if ( not ( GetManipulatingUnit() == udg_Hawk2 ) ) then
return false
endif
return true
endfunction
function Trig_Gladiator_Retrains_2_Actions takes nothing returns nothing
call SelectHeroSkill( udg_Gladiator, 'A05N' )
call SelectHeroSkill( udg_Gladiator, 'A05N' )
endfunction
//===========================================================================
function InitTrig_Gladiator_Retrains_2 takes nothing returns nothing
set gg_trg_Gladiator_Retrains_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Gladiator_Retrains_2, EVENT_PLAYER_UNIT_USE_ITEM )
call TriggerAddCondition( gg_trg_Gladiator_Retrains_2, Condition( function Trig_Gladiator_Retrains_2_Conditions ) )
call TriggerAddAction( gg_trg_Gladiator_Retrains_2, function Trig_Gladiator_Retrains_2_Actions )
endfunction
function Trig_Gladiator_Retrains_3_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I00I' ) ) then
return false
endif
if ( not ( GetManipulatingUnit() == udg_Hawk3 ) ) then
return false
endif
return true
endfunction
function Trig_Gladiator_Retrains_3_Actions takes nothing returns nothing
call SelectHeroSkill( udg_Gladiator, 'A05N' )
call SelectHeroSkill( udg_Gladiator, 'A05N' )
call SelectHeroSkill( udg_Gladiator, 'A05N' )
endfunction
//===========================================================================
function InitTrig_Gladiator_Retrains_3 takes nothing returns nothing
set gg_trg_Gladiator_Retrains_3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Gladiator_Retrains_3, EVENT_PLAYER_UNIT_USE_ITEM )
call TriggerAddCondition( gg_trg_Gladiator_Retrains_3, Condition( function Trig_Gladiator_Retrains_3_Conditions ) )
call TriggerAddAction( gg_trg_Gladiator_Retrains_3, function Trig_Gladiator_Retrains_3_Actions )
endfunction
function Trig_Assassin_Retrains_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I00I' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'E00D' ) ) then
return false
endif
return true
endfunction
function Trig_Assassin_Retrains_Actions takes nothing returns nothing
set udg_Slayer1 = null
set udg_Slayer2 = null
set udg_Slayer3 = null
endfunction
//===========================================================================
function InitTrig_Assassin_Retrains takes nothing returns nothing
set gg_trg_Assassin_Retrains = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Assassin_Retrains, EVENT_PLAYER_UNIT_USE_ITEM )
call TriggerAddCondition( gg_trg_Assassin_Retrains, Condition( function Trig_Assassin_Retrains_Conditions ) )
call TriggerAddAction( gg_trg_Assassin_Retrains, function Trig_Assassin_Retrains_Actions )
endfunction
function Trig_Rogue_Retrains_1_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I00I' ) ) then
return false
endif
if ( not ( GetManipulatingUnit() == udg_Death1 ) ) then
return false
endif
return true
endfunction
function Trig_Rogue_Retrains_1_Actions takes nothing returns nothing
call SelectHeroSkill( udg_Death1, 'A023' )
endfunction
//===========================================================================
function InitTrig_Rogue_Retrains_1 takes nothing returns nothing
set gg_trg_Rogue_Retrains_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Rogue_Retrains_1, EVENT_PLAYER_UNIT_USE_ITEM )
call TriggerAddCondition( gg_trg_Rogue_Retrains_1, Condition( function Trig_Rogue_Retrains_1_Conditions ) )
call TriggerAddAction( gg_trg_Rogue_Retrains_1, function Trig_Rogue_Retrains_1_Actions )
endfunction
function Trig_Rogue_Retrains_2_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I00I' ) ) then
return false
endif
if ( not ( GetManipulatingUnit() == udg_Death2 ) ) then
return false
endif
return true
endfunction
function Trig_Rogue_Retrains_2_Actions takes nothing returns nothing
call SelectHeroSkill( udg_Death2, 'A023' )
call SelectHeroSkill( udg_Death2, 'A023' )
endfunction
//===========================================================================
function InitTrig_Rogue_Retrains_2 takes nothing returns nothing
set gg_trg_Rogue_Retrains_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Rogue_Retrains_2, EVENT_PLAYER_UNIT_USE_ITEM )
call TriggerAddCondition( gg_trg_Rogue_Retrains_2, Condition( function Trig_Rogue_Retrains_2_Conditions ) )
call TriggerAddAction( gg_trg_Rogue_Retrains_2, function Trig_Rogue_Retrains_2_Actions )
endfunction
function Trig_Rogue_Retrains_3_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I00I' ) ) then
return false
endif
if ( not ( GetManipulatingUnit() == udg_Death3 ) ) then
return false
endif
return true
endfunction
function Trig_Rogue_Retrains_3_Actions takes nothing returns nothing
call SelectHeroSkill( udg_Death3, 'A023' )
call SelectHeroSkill( udg_Death3, 'A023' )
call SelectHeroSkill( udg_Death3, 'A023' )
endfunction
//===========================================================================
function InitTrig_Rogue_Retrains_3 takes nothing returns nothing
set gg_trg_Rogue_Retrains_3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Rogue_Retrains_3, EVENT_PLAYER_UNIT_USE_ITEM )
call TriggerAddCondition( gg_trg_Rogue_Retrains_3, Condition( function Trig_Rogue_Retrains_3_Conditions ) )
call TriggerAddAction( gg_trg_Rogue_Retrains_3, function Trig_Rogue_Retrains_3_Actions )
endfunction
function Trig_Rogue_Retrains_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I00I' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'E013' ) ) then
return false
endif
return true
endfunction
function Trig_Rogue_Retrains_Func001002 takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetEnumUnit() )
endfunction
function Trig_Rogue_Retrains_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsOfTypeIdAll('E013'), function Trig_Rogue_Retrains_Func001002 )
set udg_TheftLevel = 0
endfunction
//===========================================================================
function InitTrig_Rogue_Retrains takes nothing returns nothing
set gg_trg_Rogue_Retrains = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Rogue_Retrains, EVENT_PLAYER_UNIT_USE_ITEM )
call TriggerAddCondition( gg_trg_Rogue_Retrains, Condition( function Trig_Rogue_Retrains_Conditions ) )
call TriggerAddAction( gg_trg_Rogue_Retrains, function Trig_Rogue_Retrains_Actions )
endfunction
function Trig_Amazon_Retrains_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I00I' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'E014' ) ) then
return false
endif
return true
endfunction
function Trig_Amazon_Retrains_Func001002 takes nothing returns nothing
call UnitRemoveAbilityBJ( udg_StolenIdentity, GetEnumUnit() )
endfunction
function Trig_Amazon_Retrains_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsOfTypeIdAll('E014'), function Trig_Amazon_Retrains_Func001002 )
set udg_TheftLevel = 0
set udg_SilverSaturation = 100.00
endfunction
//===========================================================================
function InitTrig_Amazon_Retrains takes nothing returns nothing
set gg_trg_Amazon_Retrains = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Amazon_Retrains, EVENT_PLAYER_UNIT_USE_ITEM )
call TriggerAddCondition( gg_trg_Amazon_Retrains, Condition( function Trig_Amazon_Retrains_Conditions ) )
call TriggerAddAction( gg_trg_Amazon_Retrains, function Trig_Amazon_Retrains_Actions )
endfunction
function Trig_Gambler_Retrains_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I00I' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'E016' ) ) then
return false
endif
return true
endfunction
function Trig_Gambler_Retrains_Actions takes nothing returns nothing
set udg_Thief1 = null
set udg_Thief2 = null
set udg_Thief3 = null
endfunction
//===========================================================================
function InitTrig_Gambler_Retrains takes nothing returns nothing
set gg_trg_Gambler_Retrains = CreateTrigger( )
call DisableTrigger( gg_trg_Gambler_Retrains )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Gambler_Retrains, EVENT_PLAYER_UNIT_USE_ITEM )
call TriggerAddCondition( gg_trg_Gambler_Retrains, Condition( function Trig_Gambler_Retrains_Conditions ) )
call TriggerAddAction( gg_trg_Gambler_Retrains, function Trig_Gambler_Retrains_Actions )
endfunction
function Trig_Chemist_Retrains_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I00I' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'O00M' ) ) then
return false
endif
return true
endfunction
function Trig_Chemist_Retrains_Actions takes nothing returns nothing
set udg_Nitro = 0.00
set udg_Offspring = null
endfunction
//===========================================================================
function InitTrig_Chemist_Retrains takes nothing returns nothing
set gg_trg_Chemist_Retrains = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Chemist_Retrains, EVENT_PLAYER_UNIT_USE_ITEM )
call TriggerAddCondition( gg_trg_Chemist_Retrains, Condition( function Trig_Chemist_Retrains_Conditions ) )
call TriggerAddAction( gg_trg_Chemist_Retrains, function Trig_Chemist_Retrains_Actions )
endfunction
function Trig_Alchemist_Retrains_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I00I' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'N03E' ) ) then
return false
endif
return true
endfunction
function Trig_Alchemist_Retrains_Actions takes nothing returns nothing
set udg_Nitro = 0.00
set udg_Offspring = null
endfunction
//===========================================================================
function InitTrig_Alchemist_Retrains takes nothing returns nothing
set gg_trg_Alchemist_Retrains = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Alchemist_Retrains, EVENT_PLAYER_UNIT_USE_ITEM )
call TriggerAddCondition( gg_trg_Alchemist_Retrains, Condition( function Trig_Alchemist_Retrains_Conditions ) )
call TriggerAddAction( gg_trg_Alchemist_Retrains, function Trig_Alchemist_Retrains_Actions )
endfunction
function Trig_Elementalist_Retrains_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I00I' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'H01W' ) ) then
return false
endif
return true
endfunction
function Trig_Elementalist_Retrains_Actions takes nothing returns nothing
set udg_ComboBonus = 0.00
endfunction
//===========================================================================
function InitTrig_Elementalist_Retrains takes nothing returns nothing
set gg_trg_Elementalist_Retrains = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Elementalist_Retrains, EVENT_PLAYER_UNIT_USE_ITEM )
call TriggerAddCondition( gg_trg_Elementalist_Retrains, Condition( function Trig_Elementalist_Retrains_Conditions ) )
call TriggerAddAction( gg_trg_Elementalist_Retrains, function Trig_Elementalist_Retrains_Actions )
endfunction
function Trig_Manos_Retrains_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I00I' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'U011' ) ) then
return false
endif
return true
endfunction
function Trig_Manos_Retrains_Actions takes nothing returns nothing
set udg_Crusher = null
set udg_CrushCounter = 0
endfunction
//===========================================================================
function InitTrig_Manos_Retrains takes nothing returns nothing
set gg_trg_Manos_Retrains = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Manos_Retrains, EVENT_PLAYER_UNIT_USE_ITEM )
call TriggerAddCondition( gg_trg_Manos_Retrains, Condition( function Trig_Manos_Retrains_Conditions ) )
call TriggerAddAction( gg_trg_Manos_Retrains, function Trig_Manos_Retrains_Actions )
endfunction
function Trig_Kae_Retrains_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I00I' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'N03T' ) ) then
return false
endif
return true
endfunction
function Trig_Kae_Retrains_Actions takes nothing returns nothing
set udg_Freezer = null
set udg_FreezeCounter = 0
endfunction
//===========================================================================
function InitTrig_Kae_Retrains takes nothing returns nothing
set gg_trg_Kae_Retrains = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Kae_Retrains, EVENT_PLAYER_UNIT_USE_ITEM )
call TriggerAddCondition( gg_trg_Kae_Retrains, Condition( function Trig_Kae_Retrains_Conditions ) )
call TriggerAddAction( gg_trg_Kae_Retrains, function Trig_Kae_Retrains_Actions )
endfunction
function Trig_Sniper_Retrains_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I00I' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'E01I' ) ) then
return false
endif
return true
endfunction
function Trig_Sniper_Retrains_Func001C takes nothing returns boolean
if ( not ( GetPlayerTechCountSimple('R004', GetOwningPlayer(GetManipulatingUnit())) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Sniper_Retrains_Func002C takes nothing returns boolean
if ( not ( GetPlayerTechCountSimple('R004', GetOwningPlayer(GetManipulatingUnit())) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Sniper_Retrains_Func003C takes nothing returns boolean
if ( not ( GetPlayerTechCountSimple('R004', GetOwningPlayer(GetManipulatingUnit())) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Sniper_Retrains_Func004C takes nothing returns boolean
if ( not ( GetPlayerTechCountSimple('R004', GetOwningPlayer(GetManipulatingUnit())) == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Sniper_Retrains_Actions takes nothing returns nothing
if ( Trig_Sniper_Retrains_Func001C() ) then
call SelectHeroSkill( udg_Sniper, 'A0DO' )
else
call DoNothing( )
endif
if ( Trig_Sniper_Retrains_Func002C() ) then
call SelectHeroSkill( udg_Sniper, 'A0DO' )
call SelectHeroSkill( udg_Sniper, 'A0DO' )
else
call DoNothing( )
endif
if ( Trig_Sniper_Retrains_Func003C() ) then
call SelectHeroSkill( udg_Sniper, 'A0DO' )
call SelectHeroSkill( udg_Sniper, 'A0DO' )
call SelectHeroSkill( udg_Sniper, 'A0DO' )
else
call DoNothing( )
endif
if ( Trig_Sniper_Retrains_Func004C() ) then
call SelectHeroSkill( udg_Sniper, 'A0DO' )
call SelectHeroSkill( udg_Sniper, 'A0DO' )
call SelectHeroSkill( udg_Sniper, 'A0DO' )
call SelectHeroSkill( udg_Sniper, 'A0DO' )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Sniper_Retrains takes nothing returns nothing
set gg_trg_Sniper_Retrains = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Sniper_Retrains, EVENT_PLAYER_UNIT_USE_ITEM )
call TriggerAddCondition( gg_trg_Sniper_Retrains, Condition( function Trig_Sniper_Retrains_Conditions ) )
call TriggerAddAction( gg_trg_Sniper_Retrains, function Trig_Sniper_Retrains_Actions )
endfunction
function Trig_Wolf_Death_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'n00M' ) ) then
return false
endif
return true
endfunction
function Trig_Wolf_Death_Func001002 takes nothing returns nothing
call AdjustPlayerStateBJ( 1, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Wolf_Death_Actions takes nothing returns nothing
call ForForce( udg_PlayerGroup, function Trig_Wolf_Death_Func001002 )
endfunction
//===========================================================================
function InitTrig_Wolf_Death takes nothing returns nothing
set gg_trg_Wolf_Death = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Wolf_Death, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Wolf_Death, Condition( function Trig_Wolf_Death_Conditions ) )
call TriggerAddAction( gg_trg_Wolf_Death, function Trig_Wolf_Death_Actions )
endfunction
function Trig_Bear_Death_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'n00N' ) ) then
return false
endif
return true
endfunction
function Trig_Bear_Death_Func001002 takes nothing returns nothing
call AdjustPlayerStateBJ( 3, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Bear_Death_Actions takes nothing returns nothing
call ForForce( udg_PlayerGroup, function Trig_Bear_Death_Func001002 )
endfunction
//===========================================================================
function InitTrig_Bear_Death takes nothing returns nothing
set gg_trg_Bear_Death = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Bear_Death, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Bear_Death, Condition( function Trig_Bear_Death_Conditions ) )
call TriggerAddAction( gg_trg_Bear_Death, function Trig_Bear_Death_Actions )
endfunction
function Trig_Bandit_Death_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'n00Q' ) ) then
return false
endif
return true
endfunction
function Trig_Bandit_Death_Func001002 takes nothing returns nothing
call AdjustPlayerStateBJ( 2, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Bandit_Death_Actions takes nothing returns nothing
call ForForce( udg_PlayerGroup, function Trig_Bandit_Death_Func001002 )
endfunction
//===========================================================================
function InitTrig_Bandit_Death takes nothing returns nothing
set gg_trg_Bandit_Death = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Bandit_Death, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Bandit_Death, Condition( function Trig_Bandit_Death_Conditions ) )
call TriggerAddAction( gg_trg_Bandit_Death, function Trig_Bandit_Death_Actions )
endfunction
function Trig_Brigand_Death_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'n00R' ) ) then
return false
endif
return true
endfunction
function Trig_Brigand_Death_Func001002 takes nothing returns nothing
call AdjustPlayerStateBJ( 2, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Brigand_Death_Actions takes nothing returns nothing
call ForForce( udg_PlayerGroup, function Trig_Brigand_Death_Func001002 )
endfunction
//===========================================================================
function InitTrig_Brigand_Death takes nothing returns nothing
set gg_trg_Brigand_Death = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Brigand_Death, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Brigand_Death, Condition( function Trig_Brigand_Death_Conditions ) )
call TriggerAddAction( gg_trg_Brigand_Death, function Trig_Brigand_Death_Actions )
endfunction
function Trig_Highwayman_Death_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'n00T' ) ) then
return false
endif
return true
endfunction
function Trig_Highwayman_Death_Func001002 takes nothing returns nothing
call AdjustPlayerStateBJ( 5, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Highwayman_Death_Actions takes nothing returns nothing
call ForForce( udg_PlayerGroup, function Trig_Highwayman_Death_Func001002 )
endfunction
//===========================================================================
function InitTrig_Highwayman_Death takes nothing returns nothing
set gg_trg_Highwayman_Death = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Highwayman_Death, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Highwayman_Death, Condition( function Trig_Highwayman_Death_Conditions ) )
call TriggerAddAction( gg_trg_Highwayman_Death, function Trig_Highwayman_Death_Actions )
endfunction
function Trig_Guard_Dog_Death_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'n016' ) ) then
return false
endif
return true
endfunction
function Trig_Guard_Dog_Death_Func001002 takes nothing returns nothing
call AdjustPlayerStateBJ( 2, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Guard_Dog_Death_Actions takes nothing returns nothing
call ForForce( udg_PlayerGroup, function Trig_Guard_Dog_Death_Func001002 )
endfunction
//===========================================================================
function InitTrig_Guard_Dog_Death takes nothing returns nothing
set gg_trg_Guard_Dog_Death = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Guard_Dog_Death, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Guard_Dog_Death, Condition( function Trig_Guard_Dog_Death_Conditions ) )
call TriggerAddAction( gg_trg_Guard_Dog_Death, function Trig_Guard_Dog_Death_Actions )
endfunction
function Trig_Thundrake_Death_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'n00F' ) ) then
return false
endif
return true
endfunction
function Trig_Thundrake_Death_Func001002 takes nothing returns nothing
call AdjustPlayerStateBJ( 20, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Thundrake_Death_Actions takes nothing returns nothing
call ForForce( GetPlayersAll(), function Trig_Thundrake_Death_Func001002 )
endfunction
//===========================================================================
function InitTrig_Thundrake_Death takes nothing returns nothing
set gg_trg_Thundrake_Death = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Thundrake_Death, Player(8), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Thundrake_Death, Condition( function Trig_Thundrake_Death_Conditions ) )
call TriggerAddAction( gg_trg_Thundrake_Death, function Trig_Thundrake_Death_Actions )
endfunction
function Trig_Bandit_Guard_Death_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'n017' ) ) then
return false
endif
return true
endfunction
function Trig_Bandit_Guard_Death_Func001002 takes nothing returns nothing
call AdjustPlayerStateBJ( 3, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Bandit_Guard_Death_Actions takes nothing returns nothing
call ForForce( udg_PlayerGroup, function Trig_Bandit_Guard_Death_Func001002 )
endfunction
//===========================================================================
function InitTrig_Bandit_Guard_Death takes nothing returns nothing
set gg_trg_Bandit_Guard_Death = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Bandit_Guard_Death, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Bandit_Guard_Death, Condition( function Trig_Bandit_Guard_Death_Conditions ) )
call TriggerAddAction( gg_trg_Bandit_Guard_Death, function Trig_Bandit_Guard_Death_Actions )
endfunction
function Trig_Bandit_Enforcer_Death_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'n018' ) ) then
return false
endif
return true
endfunction
function Trig_Bandit_Enforcer_Death_Func001002 takes nothing returns nothing
call AdjustPlayerStateBJ( 3, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Bandit_Enforcer_Death_Actions takes nothing returns nothing
call ForForce( udg_PlayerGroup, function Trig_Bandit_Enforcer_Death_Func001002 )
endfunction
//===========================================================================
function InitTrig_Bandit_Enforcer_Death takes nothing returns nothing
set gg_trg_Bandit_Enforcer_Death = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Bandit_Enforcer_Death, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Bandit_Enforcer_Death, Condition( function Trig_Bandit_Enforcer_Death_Conditions ) )
call TriggerAddAction( gg_trg_Bandit_Enforcer_Death, function Trig_Bandit_Enforcer_Death_Actions )
endfunction
function Trig_Bandit_Wizard_Death_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'n019' ) ) then
return false
endif
return true
endfunction
function Trig_Bandit_Wizard_Death_Func001002 takes nothing returns nothing
call AdjustPlayerStateBJ( 4, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Bandit_Wizard_Death_Actions takes nothing returns nothing
call ForForce( udg_PlayerGroup, function Trig_Bandit_Wizard_Death_Func001002 )
endfunction
//===========================================================================
function InitTrig_Bandit_Wizard_Death takes nothing returns nothing
set gg_trg_Bandit_Wizard_Death = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Bandit_Wizard_Death, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Bandit_Wizard_Death, Condition( function Trig_Bandit_Wizard_Death_Conditions ) )
call TriggerAddAction( gg_trg_Bandit_Wizard_Death, function Trig_Bandit_Wizard_Death_Actions )
endfunction
function Trig_Golem_Death_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'n01S' ) ) then
return false
endif
return true
endfunction
function Trig_Golem_Death_Func001002 takes nothing returns nothing
call AdjustPlayerStateBJ( 3, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Golem_Death_Actions takes nothing returns nothing
call ForForce( udg_PlayerGroup, function Trig_Golem_Death_Func001002 )
endfunction
//===========================================================================
function InitTrig_Golem_Death takes nothing returns nothing
set gg_trg_Golem_Death = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Golem_Death, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Golem_Death, Condition( function Trig_Golem_Death_Conditions ) )
call TriggerAddAction( gg_trg_Golem_Death, function Trig_Golem_Death_Actions )
endfunction
function Trig_LE_Elemental_Death_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'h01C' ) ) then
return false
endif
return true
endfunction
function Trig_LE_Elemental_Death_Func001002 takes nothing returns nothing
call AdjustPlayerStateBJ( 4, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_LE_Elemental_Death_Actions takes nothing returns nothing
call ForForce( udg_PlayerGroup, function Trig_LE_Elemental_Death_Func001002 )
endfunction
//===========================================================================
function InitTrig_LE_Elemental_Death takes nothing returns nothing
set gg_trg_LE_Elemental_Death = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_LE_Elemental_Death, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_LE_Elemental_Death, Condition( function Trig_LE_Elemental_Death_Conditions ) )
call TriggerAddAction( gg_trg_LE_Elemental_Death, function Trig_LE_Elemental_Death_Actions )
endfunction
function Trig_LW_Elemental_Death_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'h01D' ) ) then
return false
endif
return true
endfunction
function Trig_LW_Elemental_Death_Func001002 takes nothing returns nothing
call AdjustPlayerStateBJ( 4, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_LW_Elemental_Death_Actions takes nothing returns nothing
call ForForce( udg_PlayerGroup, function Trig_LW_Elemental_Death_Func001002 )
endfunction
//===========================================================================
function InitTrig_LW_Elemental_Death takes nothing returns nothing
set gg_trg_LW_Elemental_Death = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_LW_Elemental_Death, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_LW_Elemental_Death, Condition( function Trig_LW_Elemental_Death_Conditions ) )
call TriggerAddAction( gg_trg_LW_Elemental_Death, function Trig_LW_Elemental_Death_Actions )
endfunction
function Trig_Ghost_Death_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'n01Z' ) ) then
return false
endif
return true
endfunction
function Trig_Ghost_Death_Func001002 takes nothing returns nothing
call AdjustPlayerStateBJ( 3, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Ghost_Death_Actions takes nothing returns nothing
call ForForce( udg_PlayerGroup, function Trig_Ghost_Death_Func001002 )
endfunction
//===========================================================================
function InitTrig_Ghost_Death takes nothing returns nothing
set gg_trg_Ghost_Death = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Ghost_Death, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Ghost_Death, Condition( function Trig_Ghost_Death_Conditions ) )
call TriggerAddAction( gg_trg_Ghost_Death, function Trig_Ghost_Death_Actions )
endfunction
function Trig_Spirit_Warrior_Death_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'n020' ) ) then
return false
endif
return true
endfunction
function Trig_Spirit_Warrior_Death_Func001002 takes nothing returns nothing
call AdjustPlayerStateBJ( 13, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Spirit_Warrior_Death_Actions takes nothing returns nothing
call ForForce( udg_PlayerGroup, function Trig_Spirit_Warrior_Death_Func001002 )
endfunction
//===========================================================================
function InitTrig_Spirit_Warrior_Death takes nothing returns nothing
set gg_trg_Spirit_Warrior_Death = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Spirit_Warrior_Death, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Spirit_Warrior_Death, Condition( function Trig_Spirit_Warrior_Death_Conditions ) )
call TriggerAddAction( gg_trg_Spirit_Warrior_Death, function Trig_Spirit_Warrior_Death_Actions )
endfunction
function Trig_Grizzly_Bear_Death_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'n02J' ) ) then
return false
endif
return true
endfunction
function Trig_Grizzly_Bear_Death_Func001002 takes nothing returns nothing
call AdjustPlayerStateBJ( 4, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Grizzly_Bear_Death_Actions takes nothing returns nothing
call ForForce( udg_PlayerGroup, function Trig_Grizzly_Bear_Death_Func001002 )
endfunction
//===========================================================================
function InitTrig_Grizzly_Bear_Death takes nothing returns nothing
set gg_trg_Grizzly_Bear_Death = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Grizzly_Bear_Death, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Grizzly_Bear_Death, Condition( function Trig_Grizzly_Bear_Death_Conditions ) )
call TriggerAddAction( gg_trg_Grizzly_Bear_Death, function Trig_Grizzly_Bear_Death_Actions )
endfunction
function Trig_Winter_Wolf_Death_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'n02K' ) ) then
return false
endif
return true
endfunction
function Trig_Winter_Wolf_Death_Func001002 takes nothing returns nothing
call AdjustPlayerStateBJ( 3, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Winter_Wolf_Death_Actions takes nothing returns nothing
call ForForce( udg_PlayerGroup, function Trig_Winter_Wolf_Death_Func001002 )
endfunction
//===========================================================================
function InitTrig_Winter_Wolf_Death takes nothing returns nothing
set gg_trg_Winter_Wolf_Death = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Winter_Wolf_Death, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Winter_Wolf_Death, Condition( function Trig_Winter_Wolf_Death_Conditions ) )
call TriggerAddAction( gg_trg_Winter_Wolf_Death, function Trig_Winter_Wolf_Death_Actions )
endfunction
function Trig_Wisp_Death_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'n02L' ) ) then
return false
endif
return true
endfunction
function Trig_Wisp_Death_Func001002 takes nothing returns nothing
call AdjustPlayerStateBJ( 3, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Wisp_Death_Actions takes nothing returns nothing
call ForForce( udg_PlayerGroup, function Trig_Wisp_Death_Func001002 )
endfunction
//===========================================================================
function InitTrig_Wisp_Death takes nothing returns nothing
set gg_trg_Wisp_Death = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Wisp_Death, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Wisp_Death, Condition( function Trig_Wisp_Death_Conditions ) )
call TriggerAddAction( gg_trg_Wisp_Death, function Trig_Wisp_Death_Actions )
endfunction
function Trig_Gargoyle_Death_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'u00M' ) ) then
return false
endif
return true
endfunction
function Trig_Gargoyle_Death_Func001002 takes nothing returns nothing
call AdjustPlayerStateBJ( 2, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Gargoyle_Death_Actions takes nothing returns nothing
call ForForce( udg_PlayerGroup, function Trig_Gargoyle_Death_Func001002 )
endfunction
//===========================================================================
function InitTrig_Gargoyle_Death takes nothing returns nothing
set gg_trg_Gargoyle_Death = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Gargoyle_Death, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Gargoyle_Death, Condition( function Trig_Gargoyle_Death_Conditions ) )
call TriggerAddAction( gg_trg_Gargoyle_Death, function Trig_Gargoyle_Death_Actions )
endfunction
function Trig_Imp_Death_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'n02M' ) ) then
return false
endif
return true
endfunction
function Trig_Imp_Death_Func001002 takes nothing returns nothing
call AdjustPlayerStateBJ( 4, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Imp_Death_Actions takes nothing returns nothing
call ForForce( udg_PlayerGroup, function Trig_Imp_Death_Func001002 )
endfunction
//===========================================================================
function InitTrig_Imp_Death takes nothing returns nothing
set gg_trg_Imp_Death = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Imp_Death, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Imp_Death, Condition( function Trig_Imp_Death_Conditions ) )
call TriggerAddAction( gg_trg_Imp_Death, function Trig_Imp_Death_Actions )
endfunction
function Trig_Sasquatch_Death_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'n02T' ) ) then
return false
endif
return true
endfunction
function Trig_Sasquatch_Death_Func001002 takes nothing returns nothing
call AdjustPlayerStateBJ( 8, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Sasquatch_Death_Actions takes nothing returns nothing
call ForForce( udg_PlayerGroup, function Trig_Sasquatch_Death_Func001002 )
endfunction
//===========================================================================
function InitTrig_Sasquatch_Death takes nothing returns nothing
set gg_trg_Sasquatch_Death = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Sasquatch_Death, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Sasquatch_Death, Condition( function Trig_Sasquatch_Death_Conditions ) )
call TriggerAddAction( gg_trg_Sasquatch_Death, function Trig_Sasquatch_Death_Actions )
endfunction
function Trig_Earth_Elemental_Death_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'h01K' ) ) then
return false
endif
return true
endfunction
function Trig_Earth_Elemental_Death_Func001002 takes nothing returns nothing
call AdjustPlayerStateBJ( 8, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Earth_Elemental_Death_Actions takes nothing returns nothing
call ForForce( udg_PlayerGroup, function Trig_Earth_Elemental_Death_Func001002 )
endfunction
//===========================================================================
function InitTrig_Earth_Elemental_Death takes nothing returns nothing
set gg_trg_Earth_Elemental_Death = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Earth_Elemental_Death, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Earth_Elemental_Death, Condition( function Trig_Earth_Elemental_Death_Conditions ) )
call TriggerAddAction( gg_trg_Earth_Elemental_Death, function Trig_Earth_Elemental_Death_Actions )
endfunction
function Trig_Water_Elemental_Death_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'h01L' ) ) then
return false
endif
return true
endfunction
function Trig_Water_Elemental_Death_Func001002 takes nothing returns nothing
call AdjustPlayerStateBJ( 8, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Water_Elemental_Death_Actions takes nothing returns nothing
call ForForce( udg_PlayerGroup, function Trig_Water_Elemental_Death_Func001002 )
endfunction
//===========================================================================
function InitTrig_Water_Elemental_Death takes nothing returns nothing
set gg_trg_Water_Elemental_Death = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Water_Elemental_Death, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Water_Elemental_Death, Condition( function Trig_Water_Elemental_Death_Conditions ) )
call TriggerAddAction( gg_trg_Water_Elemental_Death, function Trig_Water_Elemental_Death_Actions )
endfunction
function Trig_Mountain_Giant_Death_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'e010' ) ) then
return false
endif
return true
endfunction
function Trig_Mountain_Giant_Death_Func001002 takes nothing returns nothing
call AdjustPlayerStateBJ( 9, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Mountain_Giant_Death_Actions takes nothing returns nothing
call ForForce( udg_PlayerGroup, function Trig_Mountain_Giant_Death_Func001002 )
endfunction
//===========================================================================
function InitTrig_Mountain_Giant_Death takes nothing returns nothing
set gg_trg_Mountain_Giant_Death = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Mountain_Giant_Death, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Mountain_Giant_Death, Condition( function Trig_Mountain_Giant_Death_Conditions ) )
call TriggerAddAction( gg_trg_Mountain_Giant_Death, function Trig_Mountain_Giant_Death_Actions )
endfunction
function Trig_Sea_Giant_Death_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'n02V' ) ) then
return false
endif
return true
endfunction
function Trig_Sea_Giant_Death_Func001002 takes nothing returns nothing
call AdjustPlayerStateBJ( 9, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Sea_Giant_Death_Actions takes nothing returns nothing
call ForForce( udg_PlayerGroup, function Trig_Sea_Giant_Death_Func001002 )
endfunction
//===========================================================================
function InitTrig_Sea_Giant_Death takes nothing returns nothing
set gg_trg_Sea_Giant_Death = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Sea_Giant_Death, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Sea_Giant_Death, Condition( function Trig_Sea_Giant_Death_Conditions ) )
call TriggerAddAction( gg_trg_Sea_Giant_Death, function Trig_Sea_Giant_Death_Actions )
endfunction
function Trig_Prawnaga_Death_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'n02U' ) ) then
return false
endif
return true
endfunction
function Trig_Prawnaga_Death_Func001002 takes nothing returns nothing
call AdjustPlayerStateBJ( 42, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Prawnaga_Death_Actions takes nothing returns nothing
call ForForce( udg_PlayerGroup, function Trig_Prawnaga_Death_Func001002 )
endfunction
//===========================================================================
function InitTrig_Prawnaga_Death takes nothing returns nothing
set gg_trg_Prawnaga_Death = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Prawnaga_Death, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Prawnaga_Death, Condition( function Trig_Prawnaga_Death_Conditions ) )
call TriggerAddAction( gg_trg_Prawnaga_Death, function Trig_Prawnaga_Death_Actions )
endfunction
function Trig_Necrolyte_Death_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'n038' ) ) then
return false
endif
return true
endfunction
function Trig_Necrolyte_Death_Func001002 takes nothing returns nothing
call AdjustPlayerStateBJ( 3, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Necrolyte_Death_Actions takes nothing returns nothing
call ForForce( udg_PlayerGroup, function Trig_Necrolyte_Death_Func001002 )
endfunction
//===========================================================================
function InitTrig_Necrolyte_Death takes nothing returns nothing
set gg_trg_Necrolyte_Death = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Necrolyte_Death, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Necrolyte_Death, Condition( function Trig_Necrolyte_Death_Conditions ) )
call TriggerAddAction( gg_trg_Necrolyte_Death, function Trig_Necrolyte_Death_Actions )
endfunction
function Trig_Acolyte_Death_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'n037' ) ) then
return false
endif
return true
endfunction
function Trig_Acolyte_Death_Func001002 takes nothing returns nothing
call AdjustPlayerStateBJ( 3, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Acolyte_Death_Actions takes nothing returns nothing
call ForForce( udg_PlayerGroup, function Trig_Acolyte_Death_Func001002 )
endfunction
//===========================================================================
function InitTrig_Acolyte_Death takes nothing returns nothing
set gg_trg_Acolyte_Death = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Acolyte_Death, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Acolyte_Death, Condition( function Trig_Acolyte_Death_Conditions ) )
call TriggerAddAction( gg_trg_Acolyte_Death, function Trig_Acolyte_Death_Actions )
endfunction
function Trig_Meat_Thing_Death_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'u00R' ) ) then
return false
endif
return true
endfunction
function Trig_Meat_Thing_Death_Func001002 takes nothing returns nothing
call AdjustPlayerStateBJ( 3, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Meat_Thing_Death_Actions takes nothing returns nothing
call ForForce( udg_PlayerGroup, function Trig_Meat_Thing_Death_Func001002 )
endfunction
//===========================================================================
function InitTrig_Meat_Thing_Death takes nothing returns nothing
set gg_trg_Meat_Thing_Death = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Meat_Thing_Death, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Meat_Thing_Death, Condition( function Trig_Meat_Thing_Death_Conditions ) )
call TriggerAddAction( gg_trg_Meat_Thing_Death, function Trig_Meat_Thing_Death_Actions )
endfunction
function Trig_Sahuagin_Death_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'n03M' ) ) then
return false
endif
return true
endfunction
function Trig_Sahuagin_Death_Func001002 takes nothing returns nothing
call AdjustPlayerStateBJ( 3, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Sahuagin_Death_Actions takes nothing returns nothing
call ForForce( udg_PlayerGroup, function Trig_Sahuagin_Death_Func001002 )
endfunction
//===========================================================================
function InitTrig_Sahuagin_Death takes nothing returns nothing
set gg_trg_Sahuagin_Death = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Sahuagin_Death, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Sahuagin_Death, Condition( function Trig_Sahuagin_Death_Conditions ) )
call TriggerAddAction( gg_trg_Sahuagin_Death, function Trig_Sahuagin_Death_Actions )
endfunction
function Trig_UD_Guard_Death_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'u00X' ) ) then
return false
endif
return true
endfunction
function Trig_UD_Guard_Death_Func001002 takes nothing returns nothing
call AdjustPlayerStateBJ( 3, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_UD_Guard_Death_Actions takes nothing returns nothing
call ForForce( udg_PlayerGroup, function Trig_UD_Guard_Death_Func001002 )
endfunction
//===========================================================================
function InitTrig_UD_Guard_Death takes nothing returns nothing
set gg_trg_UD_Guard_Death = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_UD_Guard_Death, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_UD_Guard_Death, Condition( function Trig_UD_Guard_Death_Conditions ) )
call TriggerAddAction( gg_trg_UD_Guard_Death, function Trig_UD_Guard_Death_Actions )
endfunction
function Trig_UD_Archer_Death_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'n03N' ) ) then
return false
endif
return true
endfunction
function Trig_UD_Archer_Death_Func001002 takes nothing returns nothing
call AdjustPlayerStateBJ( 3, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_UD_Archer_Death_Actions takes nothing returns nothing
call ForForce( udg_PlayerGroup, function Trig_UD_Archer_Death_Func001002 )
endfunction
//===========================================================================
function InitTrig_UD_Archer_Death takes nothing returns nothing
set gg_trg_UD_Archer_Death = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_UD_Archer_Death, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_UD_Archer_Death, Condition( function Trig_UD_Archer_Death_Conditions ) )
call TriggerAddAction( gg_trg_UD_Archer_Death, function Trig_UD_Archer_Death_Actions )
endfunction
function Trig_UD_Mage_Death_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'u00Y' ) ) then
return false
endif
return true
endfunction
function Trig_UD_Mage_Death_Func001002 takes nothing returns nothing
call AdjustPlayerStateBJ( 3, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_UD_Mage_Death_Actions takes nothing returns nothing
call ForForce( udg_PlayerGroup, function Trig_UD_Mage_Death_Func001002 )
endfunction
//===========================================================================
function InitTrig_UD_Mage_Death takes nothing returns nothing
set gg_trg_UD_Mage_Death = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_UD_Mage_Death, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_UD_Mage_Death, Condition( function Trig_UD_Mage_Death_Conditions ) )
call TriggerAddAction( gg_trg_UD_Mage_Death, function Trig_UD_Mage_Death_Actions )
endfunction
function Trig_Fury_Death_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'z000' ) ) then
return false
endif
return true
endfunction
function Trig_Fury_Death_Func001002 takes nothing returns nothing
call AdjustPlayerStateBJ( 3, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Fury_Death_Actions takes nothing returns nothing
call ForForce( udg_PlayerGroup, function Trig_Fury_Death_Func001002 )
endfunction
//===========================================================================
function InitTrig_Fury_Death takes nothing returns nothing
set gg_trg_Fury_Death = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Fury_Death, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Fury_Death, Condition( function Trig_Fury_Death_Conditions ) )
call TriggerAddAction( gg_trg_Fury_Death, function Trig_Fury_Death_Actions )
endfunction
function Trig_Aether_Death_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'n03S' ) ) then
return false
endif
return true
endfunction
function Trig_Aether_Death_Func001002 takes nothing returns nothing
call AdjustPlayerStateBJ( 7, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Aether_Death_Actions takes nothing returns nothing
call ForForce( udg_PlayerGroup, function Trig_Aether_Death_Func001002 )
endfunction
//===========================================================================
function InitTrig_Aether_Death takes nothing returns nothing
set gg_trg_Aether_Death = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Aether_Death, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Aether_Death, Condition( function Trig_Aether_Death_Conditions ) )
call TriggerAddAction( gg_trg_Aether_Death, function Trig_Aether_Death_Actions )
endfunction
function Trig_Darskyre_Death_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'n03R' ) ) then
return false
endif
return true
endfunction
function Trig_Darskyre_Death_Func001002 takes nothing returns nothing
call AdjustPlayerStateBJ( 15, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Darskyre_Death_Actions takes nothing returns nothing
call ForForce( udg_PlayerGroup, function Trig_Darskyre_Death_Func001002 )
endfunction
//===========================================================================
function InitTrig_Darskyre_Death takes nothing returns nothing
set gg_trg_Darskyre_Death = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Darskyre_Death, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Darskyre_Death, Condition( function Trig_Darskyre_Death_Conditions ) )
call TriggerAddAction( gg_trg_Darskyre_Death, function Trig_Darskyre_Death_Actions )
endfunction
function Trig_Tiamat_Death_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'u012' ) ) then
return false
endif
return true
endfunction
function Trig_Tiamat_Death_Func001002 takes nothing returns nothing
call AdjustPlayerStateBJ( 100, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Tiamat_Death_Actions takes nothing returns nothing
call ForForce( udg_PlayerGroup, function Trig_Tiamat_Death_Func001002 )
endfunction
//===========================================================================
function InitTrig_Tiamat_Death takes nothing returns nothing
set gg_trg_Tiamat_Death = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Tiamat_Death, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Tiamat_Death, Condition( function Trig_Tiamat_Death_Conditions ) )
call TriggerAddAction( gg_trg_Tiamat_Death, function Trig_Tiamat_Death_Actions )
endfunction
function Trig_Towers_Func001002 takes nothing returns nothing
call SetUnitOwner( GetEnumUnit(), Player(7), false )
endfunction
function Trig_Towers_Func002002 takes nothing returns nothing
call SetUnitOwner( GetEnumUnit(), Player(7), false )
endfunction
function Trig_Towers_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsOfPlayerAndTypeId(Player(9), 'hgtw'), function Trig_Towers_Func001002 )
call ForGroupBJ( GetUnitsOfPlayerAndTypeId(Player(9), 'n00C'), function Trig_Towers_Func002002 )
endfunction
//===========================================================================
function InitTrig_Towers takes nothing returns nothing
set gg_trg_Towers = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Towers, 0.10 )
call TriggerAddAction( gg_trg_Towers, function Trig_Towers_Actions )
endfunction
function Trig_Villager_Female_Gossip_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00D' ) ) then
return false
endif
return true
endfunction
function Trig_Villager_Female_Gossip_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Villager_Female_Gossip_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Villager_Female_Gossip_Func001001001)), "TRIGSTR_007" )
endfunction
//===========================================================================
function InitTrig_Villager_Female_Gossip takes nothing returns nothing
set gg_trg_Villager_Female_Gossip = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Villager_Female_Gossip, Player(11), EVENT_PLAYER_UNIT_SPELL_FINISH )
call TriggerAddCondition( gg_trg_Villager_Female_Gossip, Condition( function Trig_Villager_Female_Gossip_Conditions ) )
call TriggerAddAction( gg_trg_Villager_Female_Gossip, function Trig_Villager_Female_Gossip_Actions )
endfunction
function Trig_Villager_Male_Gossip_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00E' ) ) then
return false
endif
return true
endfunction
function Trig_Villager_Male_Gossip_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Villager_Male_Gossip_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Villager_Male_Gossip_Func001001001)), "TRIGSTR_008" )
endfunction
//===========================================================================
function InitTrig_Villager_Male_Gossip takes nothing returns nothing
set gg_trg_Villager_Male_Gossip = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Villager_Male_Gossip, Player(11), EVENT_PLAYER_UNIT_SPELL_FINISH )
call TriggerAddCondition( gg_trg_Villager_Male_Gossip, Condition( function Trig_Villager_Male_Gossip_Conditions ) )
call TriggerAddAction( gg_trg_Villager_Male_Gossip, function Trig_Villager_Male_Gossip_Actions )
endfunction
function Trig_Farmer_Male_Gossip_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02R' ) ) then
return false
endif
return true
endfunction
function Trig_Farmer_Male_Gossip_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Farmer_Male_Gossip_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Farmer_Male_Gossip_Func001001001)), "TRIGSTR_1411" )
endfunction
//===========================================================================
function InitTrig_Farmer_Male_Gossip takes nothing returns nothing
set gg_trg_Farmer_Male_Gossip = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Farmer_Male_Gossip, Player(11), EVENT_PLAYER_UNIT_SPELL_FINISH )
call TriggerAddCondition( gg_trg_Farmer_Male_Gossip, Condition( function Trig_Farmer_Male_Gossip_Conditions ) )
call TriggerAddAction( gg_trg_Farmer_Male_Gossip, function Trig_Farmer_Male_Gossip_Actions )
endfunction
function Trig_Archer_Gossip_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00F' ) ) then
return false
endif
return true
endfunction
function Trig_Archer_Gossip_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Archer_Gossip_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Archer_Gossip_Func001001001)), "TRIGSTR_009" )
endfunction
//===========================================================================
function InitTrig_Archer_Gossip takes nothing returns nothing
set gg_trg_Archer_Gossip = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Archer_Gossip, Player(11), EVENT_PLAYER_UNIT_SPELL_FINISH )
call TriggerAddCondition( gg_trg_Archer_Gossip, Condition( function Trig_Archer_Gossip_Conditions ) )
call TriggerAddAction( gg_trg_Archer_Gossip, function Trig_Archer_Gossip_Actions )
endfunction
function Trig_Blacksmith_Gossip_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A008' ) ) then
return false
endif
return true
endfunction
function Trig_Blacksmith_Gossip_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Blacksmith_Gossip_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Blacksmith_Gossip_Func001001001)), "TRIGSTR_010" )
endfunction
//===========================================================================
function InitTrig_Blacksmith_Gossip takes nothing returns nothing
set gg_trg_Blacksmith_Gossip = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Blacksmith_Gossip, Player(11), EVENT_PLAYER_UNIT_SPELL_FINISH )
call TriggerAddCondition( gg_trg_Blacksmith_Gossip, Condition( function Trig_Blacksmith_Gossip_Conditions ) )
call TriggerAddAction( gg_trg_Blacksmith_Gossip, function Trig_Blacksmith_Gossip_Actions )
endfunction
function Trig_Fletcher_Gossip_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00H' ) ) then
return false
endif
return true
endfunction
function Trig_Fletcher_Gossip_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Fletcher_Gossip_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Fletcher_Gossip_Func001001001)), "TRIGSTR_011" )
endfunction
//===========================================================================
function InitTrig_Fletcher_Gossip takes nothing returns nothing
set gg_trg_Fletcher_Gossip = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Fletcher_Gossip, Player(11), EVENT_PLAYER_UNIT_SPELL_FINISH )
call TriggerAddCondition( gg_trg_Fletcher_Gossip, Condition( function Trig_Fletcher_Gossip_Conditions ) )
call TriggerAddAction( gg_trg_Fletcher_Gossip, function Trig_Fletcher_Gossip_Actions )
endfunction
function Trig_Innkeeper_Gossip_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00J' ) ) then
return false
endif
return true
endfunction
function Trig_Innkeeper_Gossip_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Innkeeper_Gossip_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Innkeeper_Gossip_Func001001001)), "TRIGSTR_012" )
endfunction
//===========================================================================
function InitTrig_Innkeeper_Gossip takes nothing returns nothing
set gg_trg_Innkeeper_Gossip = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Innkeeper_Gossip, Player(11), EVENT_PLAYER_UNIT_SPELL_FINISH )
call TriggerAddCondition( gg_trg_Innkeeper_Gossip, Condition( function Trig_Innkeeper_Gossip_Conditions ) )
call TriggerAddAction( gg_trg_Innkeeper_Gossip, function Trig_Innkeeper_Gossip_Actions )
endfunction
function Trig_Chemist_Gossip_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00S' ) ) then
return false
endif
return true
endfunction
function Trig_Chemist_Gossip_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Chemist_Gossip_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Chemist_Gossip_Func001001001)), "TRIGSTR_013" )
endfunction
//===========================================================================
function InitTrig_Chemist_Gossip takes nothing returns nothing
set gg_trg_Chemist_Gossip = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Chemist_Gossip, Player(11), EVENT_PLAYER_UNIT_SPELL_FINISH )
call TriggerAddCondition( gg_trg_Chemist_Gossip, Condition( function Trig_Chemist_Gossip_Conditions ) )
call TriggerAddAction( gg_trg_Chemist_Gossip, function Trig_Chemist_Gossip_Actions )
endfunction
function Trig_Bob_Gossip_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00C' ) ) then
return false
endif
return true
endfunction
function Trig_Bob_Gossip_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Bob_Gossip_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Bob_Gossip_Func001001001)), "TRIGSTR_014" )
endfunction
//===========================================================================
function InitTrig_Bob_Gossip takes nothing returns nothing
set gg_trg_Bob_Gossip = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Bob_Gossip, Player(11), EVENT_PLAYER_UNIT_SPELL_FINISH )
call TriggerAddCondition( gg_trg_Bob_Gossip, Condition( function Trig_Bob_Gossip_Conditions ) )
call TriggerAddAction( gg_trg_Bob_Gossip, function Trig_Bob_Gossip_Actions )
endfunction
function Trig_Mayor_Gossip_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00K' ) ) then
return false
endif
return true
endfunction
function Trig_Mayor_Gossip_1_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Mayor_Gossip_1_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Mayor_Gossip_1_Func001001001)), "TRIGSTR_016" )
endfunction
//===========================================================================
function InitTrig_Mayor_Gossip_1 takes nothing returns nothing
set gg_trg_Mayor_Gossip_1 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Mayor_Gossip_1, Player(11), EVENT_PLAYER_UNIT_SPELL_FINISH )
call TriggerAddCondition( gg_trg_Mayor_Gossip_1, Condition( function Trig_Mayor_Gossip_1_Conditions ) )
call TriggerAddAction( gg_trg_Mayor_Gossip_1, function Trig_Mayor_Gossip_1_Actions )
endfunction
function Trig_Mayor_Gossip_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00K' ) ) then
return false
endif
return true
endfunction
function Trig_Mayor_Gossip_2_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Mayor_Gossip_2_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Mayor_Gossip_2_Func001001001)), "TRIGSTR_2430" )
endfunction
//===========================================================================
function InitTrig_Mayor_Gossip_2 takes nothing returns nothing
set gg_trg_Mayor_Gossip_2 = CreateTrigger( )
call DisableTrigger( gg_trg_Mayor_Gossip_2 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Mayor_Gossip_2, Player(11), EVENT_PLAYER_UNIT_SPELL_FINISH )
call TriggerAddCondition( gg_trg_Mayor_Gossip_2, Condition( function Trig_Mayor_Gossip_2_Conditions ) )
call TriggerAddAction( gg_trg_Mayor_Gossip_2, function Trig_Mayor_Gossip_2_Actions )
endfunction
function Trig_Mayor_Gossip_3_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00K' ) ) then
return false
endif
return true
endfunction
function Trig_Mayor_Gossip_3_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Mayor_Gossip_3_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Mayor_Gossip_3_Func001001001)), "TRIGSTR_4330" )
endfunction
//===========================================================================
function InitTrig_Mayor_Gossip_3 takes nothing returns nothing
set gg_trg_Mayor_Gossip_3 = CreateTrigger( )
call DisableTrigger( gg_trg_Mayor_Gossip_3 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Mayor_Gossip_3, Player(11), EVENT_PLAYER_UNIT_SPELL_FINISH )
call TriggerAddCondition( gg_trg_Mayor_Gossip_3, Condition( function Trig_Mayor_Gossip_3_Conditions ) )
call TriggerAddAction( gg_trg_Mayor_Gossip_3, function Trig_Mayor_Gossip_3_Actions )
endfunction
function Trig_Guard_Gossip_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02C' ) ) then
return false
endif
return true
endfunction
function Trig_Guard_Gossip_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Guard_Gossip_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Guard_Gossip_Func001001001)), "TRIGSTR_1023" )
endfunction
//===========================================================================
function InitTrig_Guard_Gossip takes nothing returns nothing
set gg_trg_Guard_Gossip = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Guard_Gossip, Player(11), EVENT_PLAYER_UNIT_SPELL_FINISH )
call TriggerAddCondition( gg_trg_Guard_Gossip, Condition( function Trig_Guard_Gossip_Conditions ) )
call TriggerAddAction( gg_trg_Guard_Gossip, function Trig_Guard_Gossip_Actions )
endfunction
function Trig_Colonel_Gossip_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02U' ) ) then
return false
endif
return true
endfunction
function Trig_Colonel_Gossip_1_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Colonel_Gossip_1_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Colonel_Gossip_1_Func001001001)), "TRIGSTR_1471" )
endfunction
//===========================================================================
function InitTrig_Colonel_Gossip_1 takes nothing returns nothing
set gg_trg_Colonel_Gossip_1 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Colonel_Gossip_1, Player(11), EVENT_PLAYER_UNIT_SPELL_FINISH )
call TriggerAddCondition( gg_trg_Colonel_Gossip_1, Condition( function Trig_Colonel_Gossip_1_Conditions ) )
call TriggerAddAction( gg_trg_Colonel_Gossip_1, function Trig_Colonel_Gossip_1_Actions )
endfunction
function Trig_Colonel_Gossip_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A04A' ) ) then
return false
endif
return true
endfunction
function Trig_Colonel_Gossip_2_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Colonel_Gossip_2_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Colonel_Gossip_2_Func001001001)), "TRIGSTR_2260" )
endfunction
//===========================================================================
function InitTrig_Colonel_Gossip_2 takes nothing returns nothing
set gg_trg_Colonel_Gossip_2 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Colonel_Gossip_2, Player(11), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Colonel_Gossip_2, Condition( function Trig_Colonel_Gossip_2_Conditions ) )
call TriggerAddAction( gg_trg_Colonel_Gossip_2, function Trig_Colonel_Gossip_2_Actions )
endfunction
function Trig_Hunter_Gossip_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02Y' ) ) then
return false
endif
return true
endfunction
function Trig_Hunter_Gossip_1_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Hunter_Gossip_1_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Hunter_Gossip_1_Func001001001)), "TRIGSTR_1563" )
endfunction
//===========================================================================
function InitTrig_Hunter_Gossip_1 takes nothing returns nothing
set gg_trg_Hunter_Gossip_1 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Hunter_Gossip_1, Player(11), EVENT_PLAYER_UNIT_SPELL_FINISH )
call TriggerAddCondition( gg_trg_Hunter_Gossip_1, Condition( function Trig_Hunter_Gossip_1_Conditions ) )
call TriggerAddAction( gg_trg_Hunter_Gossip_1, function Trig_Hunter_Gossip_1_Actions )
endfunction
function Trig_Hunter_Gossip_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02Z' ) ) then
return false
endif
return true
endfunction
function Trig_Hunter_Gossip_2_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Hunter_Gossip_2_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Hunter_Gossip_2_Func001001001)), "TRIGSTR_1564" )
endfunction
//===========================================================================
function InitTrig_Hunter_Gossip_2 takes nothing returns nothing
set gg_trg_Hunter_Gossip_2 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Hunter_Gossip_2, Player(11), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Hunter_Gossip_2, Condition( function Trig_Hunter_Gossip_2_Conditions ) )
call TriggerAddAction( gg_trg_Hunter_Gossip_2, function Trig_Hunter_Gossip_2_Actions )
endfunction
function Trig_Hunter_Gossip_3_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A030' ) ) then
return false
endif
return true
endfunction
function Trig_Hunter_Gossip_3_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Hunter_Gossip_3_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Hunter_Gossip_3_Func001001001)), "TRIGSTR_1565" )
endfunction
//===========================================================================
function InitTrig_Hunter_Gossip_3 takes nothing returns nothing
set gg_trg_Hunter_Gossip_3 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Hunter_Gossip_3, Player(11), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Hunter_Gossip_3, Condition( function Trig_Hunter_Gossip_3_Conditions ) )
call TriggerAddAction( gg_trg_Hunter_Gossip_3, function Trig_Hunter_Gossip_3_Actions )
endfunction
function Trig_Graves_Gossip_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A033' ) ) then
return false
endif
return true
endfunction
function Trig_Graves_Gossip_1_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_2397" )
call UnitAddAbilityBJ( 'A04D', GetSpellAbilityUnit() )
call PolledWait( 2 )
call EnableTrigger( gg_trg_Graves_Gossip_2 )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_2403", "TRIGSTR_2404", "ReplaceableTextures\\CommandButtons\\BTNGhoul.blp" )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_2405" )
call PlaySoundBJ( gg_snd_QuestNew )
set udg_HireQuest1 = GetLastCreatedQuestBJ()
call KillDestructable( gg_dest_FTtw_0144 )
call KillDestructable( gg_dest_FTtw_2341 )
call SetUnitInvulnerable( gg_unit_h00I_0087, false )
call SetUnitOwner( gg_unit_h00I_0087, Player(PLAYER_NEUTRAL_AGGRESSIVE), false )
endfunction
//===========================================================================
function InitTrig_Graves_Gossip_1 takes nothing returns nothing
set gg_trg_Graves_Gossip_1 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Graves_Gossip_1, Player(11), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Graves_Gossip_1, Condition( function Trig_Graves_Gossip_1_Conditions ) )
call TriggerAddAction( gg_trg_Graves_Gossip_1, function Trig_Graves_Gossip_1_Actions )
endfunction
function Trig_Graves_Gossip_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A033' ) ) then
return false
endif
return true
endfunction
function Trig_Graves_Gossip_2_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Graves_Gossip_2_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Graves_Gossip_2_Func001001001)), "TRIGSTR_2401" )
endfunction
//===========================================================================
function InitTrig_Graves_Gossip_2 takes nothing returns nothing
set gg_trg_Graves_Gossip_2 = CreateTrigger( )
call DisableTrigger( gg_trg_Graves_Gossip_2 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Graves_Gossip_2, Player(11), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Graves_Gossip_2, Condition( function Trig_Graves_Gossip_2_Conditions ) )
call TriggerAddAction( gg_trg_Graves_Gossip_2, function Trig_Graves_Gossip_2_Actions )
endfunction
function Trig_Graves_Gossip_3_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A033' ) ) then
return false
endif
return true
endfunction
function Trig_Graves_Gossip_3_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Graves_Gossip_3_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Graves_Gossip_3_Func001001001)), "TRIGSTR_1662" )
endfunction
//===========================================================================
function InitTrig_Graves_Gossip_3 takes nothing returns nothing
set gg_trg_Graves_Gossip_3 = CreateTrigger( )
call DisableTrigger( gg_trg_Graves_Gossip_3 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Graves_Gossip_3, Player(11), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Graves_Gossip_3, Condition( function Trig_Graves_Gossip_3_Conditions ) )
call TriggerAddAction( gg_trg_Graves_Gossip_3, function Trig_Graves_Gossip_3_Actions )
endfunction
function Trig_Jessa_Gossip_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A03M' ) ) then
return false
endif
return true
endfunction
function Trig_Jessa_Gossip_1_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Jessa_Gossip_1_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Jessa_Gossip_1_Func001001001)), "TRIGSTR_1861" )
call UnitAddAbilityBJ( 'A03N', GetSpellAbilityUnit() )
call PolledWait( 2 )
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_Jessa_Gossip_2 )
endfunction
//===========================================================================
function InitTrig_Jessa_Gossip_1 takes nothing returns nothing
set gg_trg_Jessa_Gossip_1 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Jessa_Gossip_1, Player(11), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Jessa_Gossip_1, Condition( function Trig_Jessa_Gossip_1_Conditions ) )
call TriggerAddAction( gg_trg_Jessa_Gossip_1, function Trig_Jessa_Gossip_1_Actions )
endfunction
function Trig_Jessa_Gossip_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A03M' ) ) then
return false
endif
return true
endfunction
function Trig_Jessa_Gossip_2_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Jessa_Gossip_2_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Jessa_Gossip_2_Func001001001)), "TRIGSTR_1862" )
endfunction
//===========================================================================
function InitTrig_Jessa_Gossip_2 takes nothing returns nothing
set gg_trg_Jessa_Gossip_2 = CreateTrigger( )
call DisableTrigger( gg_trg_Jessa_Gossip_2 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Jessa_Gossip_2, Player(11), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Jessa_Gossip_2, Condition( function Trig_Jessa_Gossip_2_Conditions ) )
call TriggerAddAction( gg_trg_Jessa_Gossip_2, function Trig_Jessa_Gossip_2_Actions )
endfunction
function Trig_Jessa_Gossip_3_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A03M' ) ) then
return false
endif
return true
endfunction
function Trig_Jessa_Gossip_3_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Jessa_Gossip_3_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Jessa_Gossip_3_Func001001001)), "TRIGSTR_2248" )
endfunction
//===========================================================================
function InitTrig_Jessa_Gossip_3 takes nothing returns nothing
set gg_trg_Jessa_Gossip_3 = CreateTrigger( )
call DisableTrigger( gg_trg_Jessa_Gossip_3 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Jessa_Gossip_3, Player(11), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Jessa_Gossip_3, Condition( function Trig_Jessa_Gossip_3_Conditions ) )
call TriggerAddAction( gg_trg_Jessa_Gossip_3, function Trig_Jessa_Gossip_3_Actions )
endfunction
function Trig_Ciara_Gossip_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A048' ) ) then
return false
endif
return true
endfunction
function Trig_Ciara_Gossip_1_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Ciara_Gossip_1_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Ciara_Gossip_1_Func001001001)), "TRIGSTR_2257" )
call PolledWait( 2 )
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_Ciara_Gossip_2 )
endfunction
//===========================================================================
function InitTrig_Ciara_Gossip_1 takes nothing returns nothing
set gg_trg_Ciara_Gossip_1 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Ciara_Gossip_1, Player(11), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Ciara_Gossip_1, Condition( function Trig_Ciara_Gossip_1_Conditions ) )
call TriggerAddAction( gg_trg_Ciara_Gossip_1, function Trig_Ciara_Gossip_1_Actions )
endfunction
function Trig_Ciara_Gossip_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A048' ) ) then
return false
endif
return true
endfunction
function Trig_Ciara_Gossip_2_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Ciara_Gossip_2_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Ciara_Gossip_2_Func001001001)), "TRIGSTR_2259" )
endfunction
//===========================================================================
function InitTrig_Ciara_Gossip_2 takes nothing returns nothing
set gg_trg_Ciara_Gossip_2 = CreateTrigger( )
call DisableTrigger( gg_trg_Ciara_Gossip_2 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Ciara_Gossip_2, Player(11), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Ciara_Gossip_2, Condition( function Trig_Ciara_Gossip_2_Conditions ) )
call TriggerAddAction( gg_trg_Ciara_Gossip_2, function Trig_Ciara_Gossip_2_Actions )
endfunction
function Trig_Corbin_Gossip_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A049' ) ) then
return false
endif
return true
endfunction
function Trig_Corbin_Gossip_1_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Corbin_Gossip_1_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Corbin_Gossip_1_Func001001001)), "TRIGSTR_2258" )
endfunction
//===========================================================================
function InitTrig_Corbin_Gossip_1 takes nothing returns nothing
set gg_trg_Corbin_Gossip_1 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Corbin_Gossip_1, Player(11), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Corbin_Gossip_1, Condition( function Trig_Corbin_Gossip_1_Conditions ) )
call TriggerAddAction( gg_trg_Corbin_Gossip_1, function Trig_Corbin_Gossip_1_Actions )
endfunction
function Trig_Priest_Gossip_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01K' ) ) then
return false
endif
return true
endfunction
function Trig_Priest_Gossip_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Priest_Gossip_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Priest_Gossip_Func001001001)), "TRIGSTR_015" )
endfunction
//===========================================================================
function InitTrig_Priest_Gossip takes nothing returns nothing
set gg_trg_Priest_Gossip = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Priest_Gossip, Player(11), EVENT_PLAYER_UNIT_SPELL_FINISH )
call TriggerAddCondition( gg_trg_Priest_Gossip, Condition( function Trig_Priest_Gossip_Conditions ) )
call TriggerAddAction( gg_trg_Priest_Gossip, function Trig_Priest_Gossip_Actions )
endfunction
function Trig_Farmer_Female_Gossip_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02S' ) ) then
return false
endif
return true
endfunction
function Trig_Farmer_Female_Gossip_1_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_2544" )
call DisableTrigger( GetTriggeringTrigger() )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_2545", "TRIGSTR_2546", "ReplaceableTextures\\CommandButtons\\BTNManual3.blp" )
set udg_OpQuest2 = GetLastCreatedQuestBJ()
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_2547" )
set udg_SpokeToSue = true
call PlaySoundBJ( gg_snd_QuestNew )
call PolledWait( 0.20 )
call EnableTrigger( gg_trg_Farmer_Female_Gossip_2 )
endfunction
//===========================================================================
function InitTrig_Farmer_Female_Gossip_1 takes nothing returns nothing
set gg_trg_Farmer_Female_Gossip_1 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Farmer_Female_Gossip_1, Player(11), EVENT_PLAYER_UNIT_SPELL_FINISH )
call TriggerAddCondition( gg_trg_Farmer_Female_Gossip_1, Condition( function Trig_Farmer_Female_Gossip_1_Conditions ) )
call TriggerAddAction( gg_trg_Farmer_Female_Gossip_1, function Trig_Farmer_Female_Gossip_1_Actions )
endfunction
function Trig_Farmer_Female_Gossip_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02S' ) ) then
return false
endif
return true
endfunction
function Trig_Farmer_Female_Gossip_2_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Farmer_Female_Gossip_2_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Farmer_Female_Gossip_2_Func001001001)), "TRIGSTR_1410" )
endfunction
//===========================================================================
function InitTrig_Farmer_Female_Gossip_2 takes nothing returns nothing
set gg_trg_Farmer_Female_Gossip_2 = CreateTrigger( )
call DisableTrigger( gg_trg_Farmer_Female_Gossip_2 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Farmer_Female_Gossip_2, Player(11), EVENT_PLAYER_UNIT_SPELL_FINISH )
call TriggerAddCondition( gg_trg_Farmer_Female_Gossip_2, Condition( function Trig_Farmer_Female_Gossip_2_Conditions ) )
call TriggerAddAction( gg_trg_Farmer_Female_Gossip_2, function Trig_Farmer_Female_Gossip_2_Actions )
endfunction
function Trig_Atrox_Gossip_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0BS' ) ) then
return false
endif
return true
endfunction
function Trig_Atrox_Gossip_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Atrox_Gossip_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Atrox_Gossip_Func001001001)), "TRIGSTR_6161" )
endfunction
//===========================================================================
function InitTrig_Atrox_Gossip takes nothing returns nothing
set gg_trg_Atrox_Gossip = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Atrox_Gossip, Player(11), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Atrox_Gossip, Condition( function Trig_Atrox_Gossip_Conditions ) )
call TriggerAddAction( gg_trg_Atrox_Gossip, function Trig_Atrox_Gossip_Actions )
endfunction
function Trig_Loki_Gossip_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A05Q' ) ) then
return false
endif
return true
endfunction
function Trig_Loki_Gossip_1_Func005001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Loki_Gossip_1_Func005A takes nothing returns nothing
call SetUnitPositionLocFacingBJ( GetEnumUnit(), GetRectCenter(gg_rct_Talk_to_Loki), 90.00 )
endfunction
function Trig_Loki_Gossip_1_Func006001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_The_Arena, GroupPickRandomUnit(GetUnitsInRectOfPlayer(gg_rct_The_Arena, GetEnumPlayer()))) == true )
endfunction
function Trig_Loki_Gossip_1_Func006A takes nothing returns nothing
call SelectUnitForPlayerSingle( GetLastReplacedUnitBJ(), GetEnumPlayer() )
call PanCameraToTimedLocForPlayer( GetEnumPlayer(), GetRectCenter(gg_rct_Talk_to_Loki), 1.00 )
endfunction
function Trig_Loki_Gossip_1_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_3182" )
call ReplaceUnitBJ( GetSpellAbilityUnit(), 'h011', bj_UNIT_STATE_METHOD_RELATIVE )
call SetUnitColor( GetLastReplacedUnitBJ(), PLAYER_COLOR_LIGHT_GRAY )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_The_Arena, Condition(function Trig_Loki_Gossip_1_Func005001002)), function Trig_Loki_Gossip_1_Func005A )
call ForForce( GetPlayersMatching(Condition(function Trig_Loki_Gossip_1_Func006001001)), function Trig_Loki_Gossip_1_Func006A )
call PolledWait( 0.05 )
call EnableTrigger( gg_trg_Loki_Gossip_2 )
call PolledWait( 2 )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_3183", "TRIGSTR_3184", "ReplaceableTextures\\CommandButtons\\BTNSteelRanged.blp" )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_3185" )
call PlaySoundBJ( gg_snd_QuestNew )
set udg_HireQuest2 = GetLastCreatedQuestBJ()
endfunction
//===========================================================================
function InitTrig_Loki_Gossip_1 takes nothing returns nothing
set gg_trg_Loki_Gossip_1 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Loki_Gossip_1, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Loki_Gossip_1, Condition( function Trig_Loki_Gossip_1_Conditions ) )
call TriggerAddAction( gg_trg_Loki_Gossip_1, function Trig_Loki_Gossip_1_Actions )
endfunction
function Trig_Loki_Gossip_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A05Q' ) ) then
return false
endif
return true
endfunction
function Trig_Loki_Gossip_2_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Loki_Gossip_2_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Loki_Gossip_2_Func001001001)), "TRIGSTR_3186" )
endfunction
//===========================================================================
function InitTrig_Loki_Gossip_2 takes nothing returns nothing
set gg_trg_Loki_Gossip_2 = CreateTrigger( )
call DisableTrigger( gg_trg_Loki_Gossip_2 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Loki_Gossip_2, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Loki_Gossip_2, Condition( function Trig_Loki_Gossip_2_Conditions ) )
call TriggerAddAction( gg_trg_Loki_Gossip_2, function Trig_Loki_Gossip_2_Actions )
endfunction
function Trig_Loki_Gossip_3_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A05Q' ) ) then
return false
endif
return true
endfunction
function Trig_Loki_Gossip_3_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Loki_Gossip_3_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Loki_Gossip_3_Func001001001)), "TRIGSTR_3353" )
endfunction
//===========================================================================
function InitTrig_Loki_Gossip_3 takes nothing returns nothing
set gg_trg_Loki_Gossip_3 = CreateTrigger( )
call DisableTrigger( gg_trg_Loki_Gossip_3 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Loki_Gossip_3, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Loki_Gossip_3, Condition( function Trig_Loki_Gossip_3_Conditions ) )
call TriggerAddAction( gg_trg_Loki_Gossip_3, function Trig_Loki_Gossip_3_Actions )
endfunction
function Trig_Arena_Master_Gossip_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A063' ) ) then
return false
endif
return true
endfunction
function Trig_Arena_Master_Gossip_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Arena_Master_Gossip_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Arena_Master_Gossip_Func001001001)), "TRIGSTR_3354" )
endfunction
//===========================================================================
function InitTrig_Arena_Master_Gossip takes nothing returns nothing
set gg_trg_Arena_Master_Gossip = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Arena_Master_Gossip, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Arena_Master_Gossip, Condition( function Trig_Arena_Master_Gossip_Conditions ) )
call TriggerAddAction( gg_trg_Arena_Master_Gossip, function Trig_Arena_Master_Gossip_Actions )
endfunction
function Trig_Weaponsmith_Gossip_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A008' ) ) then
return false
endif
return true
endfunction
function Trig_Weaponsmith_Gossip_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Weaponsmith_Gossip_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Weaponsmith_Gossip_Func001001001)), "TRIGSTR_3469" )
endfunction
//===========================================================================
function InitTrig_Weaponsmith_Gossip takes nothing returns nothing
set gg_trg_Weaponsmith_Gossip = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Weaponsmith_Gossip, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Weaponsmith_Gossip, Condition( function Trig_Weaponsmith_Gossip_Conditions ) )
call TriggerAddAction( gg_trg_Weaponsmith_Gossip, function Trig_Weaponsmith_Gossip_Actions )
endfunction
function Trig_Armoursmith_Gossip_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A069' ) ) then
return false
endif
return true
endfunction
function Trig_Armoursmith_Gossip_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Armoursmith_Gossip_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Armoursmith_Gossip_Func001001001)), "TRIGSTR_3470" )
endfunction
//===========================================================================
function InitTrig_Armoursmith_Gossip takes nothing returns nothing
set gg_trg_Armoursmith_Gossip = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Armoursmith_Gossip, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Armoursmith_Gossip, Condition( function Trig_Armoursmith_Gossip_Conditions ) )
call TriggerAddAction( gg_trg_Armoursmith_Gossip, function Trig_Armoursmith_Gossip_Actions )
endfunction
function Trig_Tailor_Gossip_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A06B' ) ) then
return false
endif
return true
endfunction
function Trig_Tailor_Gossip_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Tailor_Gossip_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Tailor_Gossip_Func001001001)), "TRIGSTR_3472" )
endfunction
//===========================================================================
function InitTrig_Tailor_Gossip takes nothing returns nothing
set gg_trg_Tailor_Gossip = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Tailor_Gossip, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Tailor_Gossip, Condition( function Trig_Tailor_Gossip_Conditions ) )
call TriggerAddAction( gg_trg_Tailor_Gossip, function Trig_Tailor_Gossip_Actions )
endfunction
function Trig_Merchant_Gossip_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A06A' ) ) then
return false
endif
return true
endfunction
function Trig_Merchant_Gossip_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Merchant_Gossip_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Merchant_Gossip_Func001001001)), "TRIGSTR_3473" )
endfunction
//===========================================================================
function InitTrig_Merchant_Gossip takes nothing returns nothing
set gg_trg_Merchant_Gossip = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Merchant_Gossip, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Merchant_Gossip, Condition( function Trig_Merchant_Gossip_Conditions ) )
call TriggerAddAction( gg_trg_Merchant_Gossip, function Trig_Merchant_Gossip_Actions )
endfunction
function Trig_Alchemist_Gossip_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00S' ) ) then
return false
endif
return true
endfunction
function Trig_Alchemist_Gossip_1_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_5616" )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_5617", "TRIGSTR_5618", "ReplaceableTextures\\CommandButtons\\BTNPotionOfRestoration.blp" )
set udg_ProQuestChemist = GetLastCreatedQuestBJ()
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_5619" )
call PlaySoundBJ( gg_snd_QuestNew )
call PolledWait( 0.20 )
call EnableTrigger( gg_trg_Alchemist_Gossip_2 )
call EnableTrigger( gg_trg_Lava_Rock )
call EnableTrigger( gg_trg_Diamond_Dust )
call EnableTrigger( gg_trg_Gold_Medallion )
call EnableTrigger( gg_trg_Rouge_Water )
endfunction
//===========================================================================
function InitTrig_Alchemist_Gossip_1 takes nothing returns nothing
set gg_trg_Alchemist_Gossip_1 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Alchemist_Gossip_1, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Alchemist_Gossip_1, Condition( function Trig_Alchemist_Gossip_1_Conditions ) )
call TriggerAddAction( gg_trg_Alchemist_Gossip_1, function Trig_Alchemist_Gossip_1_Actions )
endfunction
function Trig_Alchemist_Gossip_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00S' ) ) then
return false
endif
return true
endfunction
function Trig_Alchemist_Gossip_2_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Alchemist_Gossip_2_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Alchemist_Gossip_2_Func001001001)), "TRIGSTR_3474" )
endfunction
//===========================================================================
function InitTrig_Alchemist_Gossip_2 takes nothing returns nothing
set gg_trg_Alchemist_Gossip_2 = CreateTrigger( )
call DisableTrigger( gg_trg_Alchemist_Gossip_2 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Alchemist_Gossip_2, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Alchemist_Gossip_2, Condition( function Trig_Alchemist_Gossip_2_Conditions ) )
call TriggerAddAction( gg_trg_Alchemist_Gossip_2, function Trig_Alchemist_Gossip_2_Actions )
endfunction
function Trig_Whore_Gossip_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A06D' ) ) then
return false
endif
return true
endfunction
function Trig_Whore_Gossip_1_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Whore_Gossip_1_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Whore_Gossip_1_Func001001001)), "TRIGSTR_3489" )
endfunction
//===========================================================================
function InitTrig_Whore_Gossip_1 takes nothing returns nothing
set gg_trg_Whore_Gossip_1 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Whore_Gossip_1, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Whore_Gossip_1, Condition( function Trig_Whore_Gossip_1_Conditions ) )
call TriggerAddAction( gg_trg_Whore_Gossip_1, function Trig_Whore_Gossip_1_Actions )
endfunction
function Trig_Whore_Gossip_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A06E' ) ) then
return false
endif
return true
endfunction
function Trig_Whore_Gossip_2_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Whore_Gossip_2_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Whore_Gossip_2_Func001001001)), "TRIGSTR_3490" )
endfunction
//===========================================================================
function InitTrig_Whore_Gossip_2 takes nothing returns nothing
set gg_trg_Whore_Gossip_2 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Whore_Gossip_2, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Whore_Gossip_2, Condition( function Trig_Whore_Gossip_2_Conditions ) )
call TriggerAddAction( gg_trg_Whore_Gossip_2, function Trig_Whore_Gossip_2_Actions )
endfunction
function Trig_Whore_Gossip_3_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A06F' ) ) then
return false
endif
return true
endfunction
function Trig_Whore_Gossip_3_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Whore_Gossip_3_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Whore_Gossip_3_Func001001001)), "TRIGSTR_3491" )
endfunction
//===========================================================================
function InitTrig_Whore_Gossip_3 takes nothing returns nothing
set gg_trg_Whore_Gossip_3 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Whore_Gossip_3, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Whore_Gossip_3, Condition( function Trig_Whore_Gossip_3_Conditions ) )
call TriggerAddAction( gg_trg_Whore_Gossip_3, function Trig_Whore_Gossip_3_Actions )
endfunction
function Trig_Madame_Gossip_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A07V' ) ) then
return false
endif
return true
endfunction
function Trig_Madame_Gossip_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Madame_Gossip_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Madame_Gossip_Func001001001)), "TRIGSTR_4112" )
endfunction
//===========================================================================
function InitTrig_Madame_Gossip takes nothing returns nothing
set gg_trg_Madame_Gossip = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Madame_Gossip, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Madame_Gossip, Condition( function Trig_Madame_Gossip_Conditions ) )
call TriggerAddAction( gg_trg_Madame_Gossip, function Trig_Madame_Gossip_Actions )
endfunction
function Trig_Barmaid_Gossip_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00J' ) ) then
return false
endif
return true
endfunction
function Trig_Barmaid_Gossip_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Barmaid_Gossip_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Barmaid_Gossip_Func001001001)), "TRIGSTR_3521" )
endfunction
//===========================================================================
function InitTrig_Barmaid_Gossip takes nothing returns nothing
set gg_trg_Barmaid_Gossip = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Barmaid_Gossip, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Barmaid_Gossip, Condition( function Trig_Barmaid_Gossip_Conditions ) )
call TriggerAddAction( gg_trg_Barmaid_Gossip, function Trig_Barmaid_Gossip_Actions )
endfunction
function Trig_Summoner_Gossip_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02R' ) ) then
return false
endif
return true
endfunction
function Trig_Summoner_Gossip_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Summoner_Gossip_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Summoner_Gossip_Func001001001)), "TRIGSTR_3542" )
endfunction
//===========================================================================
function InitTrig_Summoner_Gossip takes nothing returns nothing
set gg_trg_Summoner_Gossip = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Summoner_Gossip, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Summoner_Gossip, Condition( function Trig_Summoner_Gossip_Conditions ) )
call TriggerAddAction( gg_trg_Summoner_Gossip, function Trig_Summoner_Gossip_Actions )
endfunction
function Trig_Guildmistress_Gossip_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02S' ) ) then
return false
endif
return true
endfunction
function Trig_Guildmistress_Gossip_1_Actions takes nothing returns nothing
call UnitAddAbilityBJ( 'A06Q', GetSpellAbilityUnit() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_3568" )
call DisableTrigger( GetTriggeringTrigger() )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_3569", "TRIGSTR_3570", "ReplaceableTextures\\CommandButtons\\BTNJaina.blp" )
set udg_ProQuestSorc = GetLastCreatedQuestBJ()
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_3571" )
call PlaySoundBJ( gg_snd_QuestNew )
call PolledWait( 0.20 )
call EnableTrigger( gg_trg_Guildmistress_Gossip_2 )
endfunction
//===========================================================================
function InitTrig_Guildmistress_Gossip_1 takes nothing returns nothing
set gg_trg_Guildmistress_Gossip_1 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Guildmistress_Gossip_1, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Guildmistress_Gossip_1, Condition( function Trig_Guildmistress_Gossip_1_Conditions ) )
call TriggerAddAction( gg_trg_Guildmistress_Gossip_1, function Trig_Guildmistress_Gossip_1_Actions )
endfunction
function Trig_Guildmistress_Gossip_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02S' ) ) then
return false
endif
return true
endfunction
function Trig_Guildmistress_Gossip_2_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Guildmistress_Gossip_2_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Guildmistress_Gossip_2_Func001001001)), "TRIGSTR_3572" )
endfunction
//===========================================================================
function InitTrig_Guildmistress_Gossip_2 takes nothing returns nothing
set gg_trg_Guildmistress_Gossip_2 = CreateTrigger( )
call DisableTrigger( gg_trg_Guildmistress_Gossip_2 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Guildmistress_Gossip_2, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Guildmistress_Gossip_2, Condition( function Trig_Guildmistress_Gossip_2_Conditions ) )
call TriggerAddAction( gg_trg_Guildmistress_Gossip_2, function Trig_Guildmistress_Gossip_2_Actions )
endfunction
function Trig_Guildmistress_Gossip_3_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02S' ) ) then
return false
endif
return true
endfunction
function Trig_Guildmistress_Gossip_3_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Guildmistress_Gossip_3_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Guildmistress_Gossip_3_Func001001001)), "TRIGSTR_3623" )
endfunction
//===========================================================================
function InitTrig_Guildmistress_Gossip_3 takes nothing returns nothing
set gg_trg_Guildmistress_Gossip_3 = CreateTrigger( )
call DisableTrigger( gg_trg_Guildmistress_Gossip_3 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Guildmistress_Gossip_3, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Guildmistress_Gossip_3, Condition( function Trig_Guildmistress_Gossip_3_Conditions ) )
call TriggerAddAction( gg_trg_Guildmistress_Gossip_3, function Trig_Guildmistress_Gossip_3_Actions )
endfunction
function Trig_Guardian_Gossip_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A03M' ) ) then
return false
endif
return true
endfunction
function Trig_Guardian_Gossip_1_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_3659" )
call DisableTrigger( GetTriggeringTrigger() )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_3660", "TRIGSTR_3661", "ReplaceableTextures\\CommandButtons\\BTNMonsoon.blp" )
set udg_ProQuestDruid = GetLastCreatedQuestBJ()
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_3662" )
call PlaySoundBJ( gg_snd_QuestNew )
call SetDestructableInvulnerableBJ( gg_dest_ITg1_3416, false )
call SetDestructableInvulnerableBJ( gg_dest_ITg1_3417, false )
call SetDestructableInvulnerableBJ( gg_dest_ITg3_3418, false )
call PolledWait( 0.20 )
call EnableTrigger( gg_trg_Guardian_Gossip_2 )
endfunction
//===========================================================================
function InitTrig_Guardian_Gossip_1 takes nothing returns nothing
set gg_trg_Guardian_Gossip_1 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Guardian_Gossip_1, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Guardian_Gossip_1, Condition( function Trig_Guardian_Gossip_1_Conditions ) )
call TriggerAddAction( gg_trg_Guardian_Gossip_1, function Trig_Guardian_Gossip_1_Actions )
endfunction
function Trig_Guardian_Gossip_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A03M' ) ) then
return false
endif
return true
endfunction
function Trig_Guardian_Gossip_2_Func002001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Guardian_Gossip_2_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Guardian_Gossip_2_Func002001001)), "TRIGSTR_3663" )
endfunction
//===========================================================================
function InitTrig_Guardian_Gossip_2 takes nothing returns nothing
set gg_trg_Guardian_Gossip_2 = CreateTrigger( )
call DisableTrigger( gg_trg_Guardian_Gossip_2 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Guardian_Gossip_2, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Guardian_Gossip_2, Condition( function Trig_Guardian_Gossip_2_Conditions ) )
call TriggerAddAction( gg_trg_Guardian_Gossip_2, function Trig_Guardian_Gossip_2_Actions )
endfunction
function Trig_Guardian_Gossip_3_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A03M' ) ) then
return false
endif
return true
endfunction
function Trig_Guardian_Gossip_3_Func002001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Guardian_Gossip_3_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Guardian_Gossip_3_Func002001001)), "TRIGSTR_3747" )
endfunction
//===========================================================================
function InitTrig_Guardian_Gossip_3 takes nothing returns nothing
set gg_trg_Guardian_Gossip_3 = CreateTrigger( )
call DisableTrigger( gg_trg_Guardian_Gossip_3 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Guardian_Gossip_3, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Guardian_Gossip_3, Condition( function Trig_Guardian_Gossip_3_Conditions ) )
call TriggerAddAction( gg_trg_Guardian_Gossip_3, function Trig_Guardian_Gossip_3_Actions )
endfunction
function Trig_Temple_Priest_Gossip_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01K' ) ) then
return false
endif
return true
endfunction
function Trig_Temple_Priest_Gossip_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Temple_Priest_Gossip_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Temple_Priest_Gossip_Func001001001)), "TRIGSTR_3759" )
endfunction
//===========================================================================
function InitTrig_Temple_Priest_Gossip takes nothing returns nothing
set gg_trg_Temple_Priest_Gossip = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Temple_Priest_Gossip, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Temple_Priest_Gossip, Condition( function Trig_Temple_Priest_Gossip_Conditions ) )
call TriggerAddAction( gg_trg_Temple_Priest_Gossip, function Trig_Temple_Priest_Gossip_Actions )
endfunction
function Trig_Councillor_Gossip_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A07A' ) ) then
return false
endif
return true
endfunction
function Trig_Councillor_Gossip_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Councillor_Gossip_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Councillor_Gossip_Func001001001)), "TRIGSTR_3760" )
endfunction
//===========================================================================
function InitTrig_Councillor_Gossip takes nothing returns nothing
set gg_trg_Councillor_Gossip = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Councillor_Gossip, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Councillor_Gossip, Condition( function Trig_Councillor_Gossip_Conditions ) )
call TriggerAddAction( gg_trg_Councillor_Gossip, function Trig_Councillor_Gossip_Actions )
endfunction
function Trig_Stable_Master_Gossip_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A07K' ) ) then
return false
endif
return true
endfunction
function Trig_Stable_Master_Gossip_1_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_3909" )
call DisableTrigger( GetTriggeringTrigger() )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_3910", "TRIGSTR_3911", "ReplaceableTextures\\CommandButtons\\BTNRiderlessHorse.blp" )
set udg_ProQuestSwordsman = GetLastCreatedQuestBJ()
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_3912" )
call PlaySoundBJ( gg_snd_QuestNew )
call KillDestructable( gg_dest_FTtw_4256 )
call PolledWait( 0.20 )
call EnableTrigger( gg_trg_Stable_Master_Gossip_2 )
endfunction
//===========================================================================
function InitTrig_Stable_Master_Gossip_1 takes nothing returns nothing
set gg_trg_Stable_Master_Gossip_1 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Stable_Master_Gossip_1, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stable_Master_Gossip_1, Condition( function Trig_Stable_Master_Gossip_1_Conditions ) )
call TriggerAddAction( gg_trg_Stable_Master_Gossip_1, function Trig_Stable_Master_Gossip_1_Actions )
endfunction
function Trig_Stable_Master_Gossip_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A07K' ) ) then
return false
endif
return true
endfunction
function Trig_Stable_Master_Gossip_2_Func002001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Stable_Master_Gossip_2_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Stable_Master_Gossip_2_Func002001001)), "TRIGSTR_3913" )
endfunction
//===========================================================================
function InitTrig_Stable_Master_Gossip_2 takes nothing returns nothing
set gg_trg_Stable_Master_Gossip_2 = CreateTrigger( )
call DisableTrigger( gg_trg_Stable_Master_Gossip_2 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Stable_Master_Gossip_2, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Stable_Master_Gossip_2, Condition( function Trig_Stable_Master_Gossip_2_Conditions ) )
call TriggerAddAction( gg_trg_Stable_Master_Gossip_2, function Trig_Stable_Master_Gossip_2_Actions )
endfunction
function Trig_City_Female_Gossip_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00D' ) ) then
return false
endif
return true
endfunction
function Trig_City_Female_Gossip_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_City_Female_Gossip_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_City_Female_Gossip_Func001001001)), "TRIGSTR_4113" )
endfunction
//===========================================================================
function InitTrig_City_Female_Gossip takes nothing returns nothing
set gg_trg_City_Female_Gossip = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_City_Female_Gossip, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_City_Female_Gossip, Condition( function Trig_City_Female_Gossip_Conditions ) )
call TriggerAddAction( gg_trg_City_Female_Gossip, function Trig_City_Female_Gossip_Actions )
endfunction
function Trig_City_Male_Gossip_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00E' ) ) then
return false
endif
return true
endfunction
function Trig_City_Male_Gossip_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_City_Male_Gossip_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_City_Male_Gossip_Func001001001)), "TRIGSTR_4114" )
endfunction
//===========================================================================
function InitTrig_City_Male_Gossip takes nothing returns nothing
set gg_trg_City_Male_Gossip = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_City_Male_Gossip, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_City_Male_Gossip, Condition( function Trig_City_Male_Gossip_Conditions ) )
call TriggerAddAction( gg_trg_City_Male_Gossip, function Trig_City_Male_Gossip_Actions )
endfunction
function Trig_Arena_Male_Gossip_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A07W' ) ) then
return false
endif
return true
endfunction
function Trig_Arena_Male_Gossip_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Arena_Male_Gossip_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Arena_Male_Gossip_Func001001001)), "TRIGSTR_4115" )
endfunction
//===========================================================================
function InitTrig_Arena_Male_Gossip takes nothing returns nothing
set gg_trg_Arena_Male_Gossip = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Arena_Male_Gossip, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Arena_Male_Gossip, Condition( function Trig_Arena_Male_Gossip_Conditions ) )
call TriggerAddAction( gg_trg_Arena_Male_Gossip, function Trig_Arena_Male_Gossip_Actions )
endfunction
function Trig_Arena_Female_Gossip_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A07X' ) ) then
return false
endif
return true
endfunction
function Trig_Arena_Female_Gossip_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Arena_Female_Gossip_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Arena_Female_Gossip_Func001001001)), "TRIGSTR_4116" )
endfunction
//===========================================================================
function InitTrig_Arena_Female_Gossip takes nothing returns nothing
set gg_trg_Arena_Female_Gossip = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Arena_Female_Gossip, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Arena_Female_Gossip, Condition( function Trig_Arena_Female_Gossip_Conditions ) )
call TriggerAddAction( gg_trg_Arena_Female_Gossip, function Trig_Arena_Female_Gossip_Actions )
endfunction
function Trig_Librarian_Gossip_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A07Y' ) ) then
return false
endif
return true
endfunction
function Trig_Librarian_Gossip_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Librarian_Gossip_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Librarian_Gossip_Func001001001)), "TRIGSTR_4139" )
endfunction
//===========================================================================
function InitTrig_Librarian_Gossip takes nothing returns nothing
set gg_trg_Librarian_Gossip = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Librarian_Gossip, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Librarian_Gossip, Condition( function Trig_Librarian_Gossip_Conditions ) )
call TriggerAddAction( gg_trg_Librarian_Gossip, function Trig_Librarian_Gossip_Actions )
endfunction
function Trig_Belganon_Gossip_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02U' ) ) then
return false
endif
return true
endfunction
function Trig_Belganon_Gossip_1_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_4257" )
call DisableTrigger( GetTriggeringTrigger() )
call UnitAddAbilityBJ( 'A08B', GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A08C', GetSpellAbilityUnit() )
call PolledWait( 0.20 )
call EnableTrigger( gg_trg_Belganon_Gossip_2 )
call EnableTrigger( gg_trg_West_Gate )
call QuestSetDescriptionBJ( udg_ChapterQuest, "TRIGSTR_4267" )
call PlaySoundBJ( gg_snd_QuestLog )
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_ITg3_5313 )
endfunction
//===========================================================================
function InitTrig_Belganon_Gossip_1 takes nothing returns nothing
set gg_trg_Belganon_Gossip_1 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Belganon_Gossip_1, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Belganon_Gossip_1, Condition( function Trig_Belganon_Gossip_1_Conditions ) )
call TriggerAddAction( gg_trg_Belganon_Gossip_1, function Trig_Belganon_Gossip_1_Actions )
endfunction
function Trig_Belganon_Gossip_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02U' ) ) then
return false
endif
return true
endfunction
function Trig_Belganon_Gossip_2_Func002001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Belganon_Gossip_2_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Belganon_Gossip_2_Func002001001)), "TRIGSTR_4261" )
endfunction
//===========================================================================
function InitTrig_Belganon_Gossip_2 takes nothing returns nothing
set gg_trg_Belganon_Gossip_2 = CreateTrigger( )
call DisableTrigger( gg_trg_Belganon_Gossip_2 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Belganon_Gossip_2, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Belganon_Gossip_2, Condition( function Trig_Belganon_Gossip_2_Conditions ) )
call TriggerAddAction( gg_trg_Belganon_Gossip_2, function Trig_Belganon_Gossip_2_Actions )
endfunction
function Trig_Belganon_Gossip_3_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A08B' ) ) then
return false
endif
return true
endfunction
function Trig_Belganon_Gossip_3_Func002001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Belganon_Gossip_3_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Belganon_Gossip_3_Func002001001)), "TRIGSTR_4262" )
endfunction
//===========================================================================
function InitTrig_Belganon_Gossip_3 takes nothing returns nothing
set gg_trg_Belganon_Gossip_3 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Belganon_Gossip_3, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Belganon_Gossip_3, Condition( function Trig_Belganon_Gossip_3_Conditions ) )
call TriggerAddAction( gg_trg_Belganon_Gossip_3, function Trig_Belganon_Gossip_3_Actions )
endfunction
function Trig_Belganon_Gossip_4_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A08C' ) ) then
return false
endif
return true
endfunction
function Trig_Belganon_Gossip_4_Func002001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Belganon_Gossip_4_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Belganon_Gossip_4_Func002001001)), "TRIGSTR_4263" )
endfunction
//===========================================================================
function InitTrig_Belganon_Gossip_4 takes nothing returns nothing
set gg_trg_Belganon_Gossip_4 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Belganon_Gossip_4, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Belganon_Gossip_4, Condition( function Trig_Belganon_Gossip_4_Conditions ) )
call TriggerAddAction( gg_trg_Belganon_Gossip_4, function Trig_Belganon_Gossip_4_Actions )
endfunction
function Trig_Belganon_Gossip_5_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02U' ) ) then
return false
endif
return true
endfunction
function Trig_Belganon_Gossip_5_Func002001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Belganon_Gossip_5_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Belganon_Gossip_5_Func002001001)), "TRIGSTR_5979" )
endfunction
//===========================================================================
function InitTrig_Belganon_Gossip_5 takes nothing returns nothing
set gg_trg_Belganon_Gossip_5 = CreateTrigger( )
call DisableTrigger( gg_trg_Belganon_Gossip_5 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Belganon_Gossip_5, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Belganon_Gossip_5, Condition( function Trig_Belganon_Gossip_5_Conditions ) )
call TriggerAddAction( gg_trg_Belganon_Gossip_5, function Trig_Belganon_Gossip_5_Actions )
endfunction
function Trig_Soldier_Gossip_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02C' ) ) then
return false
endif
return true
endfunction
function Trig_Soldier_Gossip_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Soldier_Gossip_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Soldier_Gossip_Func001001001)), "TRIGSTR_4302" )
endfunction
//===========================================================================
function InitTrig_Soldier_Gossip takes nothing returns nothing
set gg_trg_Soldier_Gossip = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Soldier_Gossip, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Soldier_Gossip, Condition( function Trig_Soldier_Gossip_Conditions ) )
call TriggerAddAction( gg_trg_Soldier_Gossip, function Trig_Soldier_Gossip_Actions )
endfunction
function Trig_Verath_Gossip_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00K' ) ) then
return false
endif
return true
endfunction
function Trig_Verath_Gossip_1_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Verath_Gossip_1_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Verath_Gossip_1_Func001001001)), "TRIGSTR_4314" )
endfunction
//===========================================================================
function InitTrig_Verath_Gossip_1 takes nothing returns nothing
set gg_trg_Verath_Gossip_1 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Verath_Gossip_1, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Verath_Gossip_1, Condition( function Trig_Verath_Gossip_1_Conditions ) )
call TriggerAddAction( gg_trg_Verath_Gossip_1, function Trig_Verath_Gossip_1_Actions )
endfunction
function Trig_Verath_Gossip_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00K' ) ) then
return false
endif
return true
endfunction
function Trig_Verath_Gossip_2_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Verath_Gossip_2_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Verath_Gossip_2_Func001001001)), "TRIGSTR_4315" )
endfunction
//===========================================================================
function InitTrig_Verath_Gossip_2 takes nothing returns nothing
set gg_trg_Verath_Gossip_2 = CreateTrigger( )
call DisableTrigger( gg_trg_Verath_Gossip_2 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Verath_Gossip_2, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Verath_Gossip_2, Condition( function Trig_Verath_Gossip_2_Conditions ) )
call TriggerAddAction( gg_trg_Verath_Gossip_2, function Trig_Verath_Gossip_2_Actions )
endfunction
function Trig_Calis_Gossip_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02Y' ) ) then
return false
endif
return true
endfunction
function Trig_Calis_Gossip_1_Func008002 takes nothing returns nothing
call SetDestructableInvulnerableBJ( GetEnumDestructable(), false )
endfunction
function Trig_Calis_Gossip_1_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_4421" )
call DisableTrigger( GetTriggeringTrigger() )
call PlaySoundBJ( gg_snd_QuestNew )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_4423", "TRIGSTR_4424", "ReplaceableTextures\\CommandButtons\\BTNAcidBomb.blp" )
set udg_HireQuest3 = GetLastCreatedQuestBJ()
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_4425" )
call EnumDestructablesInRectAll( gg_rct_Cave_Blockade, function Trig_Calis_Gossip_1_Func008002 )
call PolledWait( 0.20 )
call EnableTrigger( gg_trg_Calis_Gossip_2 )
endfunction
//===========================================================================
function InitTrig_Calis_Gossip_1 takes nothing returns nothing
set gg_trg_Calis_Gossip_1 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Calis_Gossip_1, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Calis_Gossip_1, Condition( function Trig_Calis_Gossip_1_Conditions ) )
call TriggerAddAction( gg_trg_Calis_Gossip_1, function Trig_Calis_Gossip_1_Actions )
endfunction
function Trig_Calis_Gossip_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02Y' ) ) then
return false
endif
return true
endfunction
function Trig_Calis_Gossip_2_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Calis_Gossip_2_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Calis_Gossip_2_Func001001001)), "TRIGSTR_4422" )
endfunction
//===========================================================================
function InitTrig_Calis_Gossip_2 takes nothing returns nothing
set gg_trg_Calis_Gossip_2 = CreateTrigger( )
call DisableTrigger( gg_trg_Calis_Gossip_2 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Calis_Gossip_2, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Calis_Gossip_2, Condition( function Trig_Calis_Gossip_2_Conditions ) )
call TriggerAddAction( gg_trg_Calis_Gossip_2, function Trig_Calis_Gossip_2_Actions )
endfunction
function Trig_Freya_Gossip_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A08R' ) ) then
return false
endif
return true
endfunction
function Trig_Freya_Gossip_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Freya_Gossip_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Freya_Gossip_Func001001001)), "TRIGSTR_4488" )
endfunction
//===========================================================================
function InitTrig_Freya_Gossip takes nothing returns nothing
set gg_trg_Freya_Gossip = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Freya_Gossip, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Freya_Gossip, Condition( function Trig_Freya_Gossip_Conditions ) )
call TriggerAddAction( gg_trg_Freya_Gossip, function Trig_Freya_Gossip_Actions )
endfunction
function Trig_Corbin_Gossip_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A049' ) ) then
return false
endif
return true
endfunction
function Trig_Corbin_Gossip_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Corbin_Gossip_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Corbin_Gossip_Func001001001)), "TRIGSTR_4534" )
endfunction
//===========================================================================
function InitTrig_Corbin_Gossip takes nothing returns nothing
set gg_trg_Corbin_Gossip = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Corbin_Gossip, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Corbin_Gossip, Condition( function Trig_Corbin_Gossip_Conditions ) )
call TriggerAddAction( gg_trg_Corbin_Gossip, function Trig_Corbin_Gossip_Actions )
endfunction
function Trig_Ciara_Gossip_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A048' ) ) then
return false
endif
return true
endfunction
function Trig_Ciara_Gossip_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Ciara_Gossip_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Ciara_Gossip_Func001001001)), "TRIGSTR_4535" )
endfunction
//===========================================================================
function InitTrig_Ciara_Gossip takes nothing returns nothing
set gg_trg_Ciara_Gossip = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Ciara_Gossip, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Ciara_Gossip, Condition( function Trig_Ciara_Gossip_Conditions ) )
call TriggerAddAction( gg_trg_Ciara_Gossip, function Trig_Ciara_Gossip_Actions )
endfunction
function Trig_Leon_Gossip_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A08T' ) ) then
return false
endif
return true
endfunction
function Trig_Leon_Gossip_1_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Leon_Gossip_1_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Leon_Gossip_1_Func001001001)), "TRIGSTR_4536" )
endfunction
//===========================================================================
function InitTrig_Leon_Gossip_1 takes nothing returns nothing
set gg_trg_Leon_Gossip_1 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Leon_Gossip_1, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Leon_Gossip_1, Condition( function Trig_Leon_Gossip_1_Conditions ) )
call TriggerAddAction( gg_trg_Leon_Gossip_1, function Trig_Leon_Gossip_1_Actions )
endfunction
function Trig_Leon_Gossip_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A08T' ) ) then
return false
endif
return true
endfunction
function Trig_Leon_Gossip_2_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Leon_Gossip_2_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Leon_Gossip_2_Func001001001)), "TRIGSTR_6166" )
endfunction
//===========================================================================
function InitTrig_Leon_Gossip_2 takes nothing returns nothing
set gg_trg_Leon_Gossip_2 = CreateTrigger( )
call DisableTrigger( gg_trg_Leon_Gossip_2 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Leon_Gossip_2, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Leon_Gossip_2, Condition( function Trig_Leon_Gossip_2_Conditions ) )
call TriggerAddAction( gg_trg_Leon_Gossip_2, function Trig_Leon_Gossip_2_Actions )
endfunction
function Trig_Raine_Gossip_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A08U' ) ) then
return false
endif
return true
endfunction
function Trig_Raine_Gossip_1_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_4537" )
call QuestSetDescriptionBJ( udg_ChapterQuest, "TRIGSTR_4605" )
call QuestSetDescriptionBJ( udg_Quest2, "TRIGSTR_4606" )
call PlaySoundBJ( gg_snd_QuestLog )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_4607" )
call SetDestructableInvulnerableBJ( gg_dest_ITg1_4743, false )
call PolledWait( 0.20 )
call EnableTrigger( gg_trg_Raine_Gossip_2 )
endfunction
//===========================================================================
function InitTrig_Raine_Gossip_1 takes nothing returns nothing
set gg_trg_Raine_Gossip_1 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Raine_Gossip_1, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Raine_Gossip_1, Condition( function Trig_Raine_Gossip_1_Conditions ) )
call TriggerAddAction( gg_trg_Raine_Gossip_1, function Trig_Raine_Gossip_1_Actions )
endfunction
function Trig_Raine_Gossip_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A08U' ) ) then
return false
endif
return true
endfunction
function Trig_Raine_Gossip_2_Func002001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Raine_Gossip_2_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Raine_Gossip_2_Func002001001)), "TRIGSTR_4538" )
endfunction
//===========================================================================
function InitTrig_Raine_Gossip_2 takes nothing returns nothing
set gg_trg_Raine_Gossip_2 = CreateTrigger( )
call DisableTrigger( gg_trg_Raine_Gossip_2 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Raine_Gossip_2, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Raine_Gossip_2, Condition( function Trig_Raine_Gossip_2_Conditions ) )
call TriggerAddAction( gg_trg_Raine_Gossip_2, function Trig_Raine_Gossip_2_Actions )
endfunction
function Trig_Seer_Gossip_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A091' ) ) then
return false
endif
return true
endfunction
function Trig_Seer_Gossip_1_Func010001001 takes nothing returns boolean
return ( IsUnitSelected(GetSpellAbilityUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Seer_Gossip_1_Func010002 takes nothing returns nothing
call SelectUnitAdd( GetLastReplacedUnitBJ() )
endfunction
function Trig_Seer_Gossip_1_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_4678" )
call DisableTrigger( GetTriggeringTrigger() )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_4679", "TRIGSTR_4680", "ReplaceableTextures\\CommandButtons\\BTNFarSight.blp" )
set udg_ProQuestAnimist = GetLastCreatedQuestBJ()
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_4681" )
call PlaySoundBJ( gg_snd_QuestNew )
call ReplaceUnitBJ( gg_unit_n030_0178, 'n031', bj_UNIT_STATE_METHOD_RELATIVE )
set udg_Cindescrae = GetLastReplacedUnitBJ()
call ForForce( GetPlayersMatching(Condition(function Trig_Seer_Gossip_1_Func010001001)), function Trig_Seer_Gossip_1_Func010002 )
set udg_SeerActive = true
call PolledWait( 0.20 )
call EnableTrigger( gg_trg_Seer_Gossip_2 )
endfunction
//===========================================================================
function InitTrig_Seer_Gossip_1 takes nothing returns nothing
set gg_trg_Seer_Gossip_1 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Seer_Gossip_1, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Seer_Gossip_1, Condition( function Trig_Seer_Gossip_1_Conditions ) )
call TriggerAddAction( gg_trg_Seer_Gossip_1, function Trig_Seer_Gossip_1_Actions )
endfunction
function Trig_Seer_Gossip_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A091' ) ) then
return false
endif
return true
endfunction
function Trig_Seer_Gossip_2_Func002001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Seer_Gossip_2_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Seer_Gossip_2_Func002001001)), "TRIGSTR_4682" )
endfunction
//===========================================================================
function InitTrig_Seer_Gossip_2 takes nothing returns nothing
set gg_trg_Seer_Gossip_2 = CreateTrigger( )
call DisableTrigger( gg_trg_Seer_Gossip_2 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Seer_Gossip_2, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Seer_Gossip_2, Condition( function Trig_Seer_Gossip_2_Conditions ) )
call TriggerAddAction( gg_trg_Seer_Gossip_2, function Trig_Seer_Gossip_2_Actions )
endfunction
function Trig_Irwin_Fletcher_Gossip_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00H' ) ) then
return false
endif
return true
endfunction
function Trig_Irwin_Fletcher_Gossip_1_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_4721" )
call DisableTrigger( GetTriggeringTrigger() )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_4722", "TRIGSTR_4723", "ReplaceableTextures\\CommandButtons\\BTNLobstrokkRed.blp" )
set udg_ProQuestArcher = GetLastCreatedQuestBJ()
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_4724" )
call PlaySoundBJ( gg_snd_QuestNew )
set udg_FletchLives = true
call PolledWait( 0.20 )
call EnableTrigger( gg_trg_Irwin_Fletcher_Gossip_2 )
endfunction
//===========================================================================
function InitTrig_Irwin_Fletcher_Gossip_1 takes nothing returns nothing
set gg_trg_Irwin_Fletcher_Gossip_1 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Irwin_Fletcher_Gossip_1, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Irwin_Fletcher_Gossip_1, Condition( function Trig_Irwin_Fletcher_Gossip_1_Conditions ) )
call TriggerAddAction( gg_trg_Irwin_Fletcher_Gossip_1, function Trig_Irwin_Fletcher_Gossip_1_Actions )
endfunction
function Trig_Irwin_Fletcher_Gossip_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00H' ) ) then
return false
endif
return true
endfunction
function Trig_Irwin_Fletcher_Gossip_2_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Irwin_Fletcher_Gossip_2_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Irwin_Fletcher_Gossip_2_Func001001001)), "TRIGSTR_3471" )
endfunction
//===========================================================================
function InitTrig_Irwin_Fletcher_Gossip_2 takes nothing returns nothing
set gg_trg_Irwin_Fletcher_Gossip_2 = CreateTrigger( )
call DisableTrigger( gg_trg_Irwin_Fletcher_Gossip_2 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Irwin_Fletcher_Gossip_2, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Irwin_Fletcher_Gossip_2, Condition( function Trig_Irwin_Fletcher_Gossip_2_Conditions ) )
call TriggerAddAction( gg_trg_Irwin_Fletcher_Gossip_2, function Trig_Irwin_Fletcher_Gossip_2_Actions )
endfunction
function Trig_Plague_Male_Gossip_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A096' ) ) then
return false
endif
return true
endfunction
function Trig_Plague_Male_Gossip_1_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Plague_Male_Gossip_1_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Plague_Male_Gossip_1_Func001001001)), "TRIGSTR_4806" )
endfunction
//===========================================================================
function InitTrig_Plague_Male_Gossip_1 takes nothing returns nothing
set gg_trg_Plague_Male_Gossip_1 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Plague_Male_Gossip_1, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Plague_Male_Gossip_1, Condition( function Trig_Plague_Male_Gossip_1_Conditions ) )
call TriggerAddAction( gg_trg_Plague_Male_Gossip_1, function Trig_Plague_Male_Gossip_1_Actions )
endfunction
function Trig_Plague_Male_Gossip_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A09A' ) ) then
return false
endif
return true
endfunction
function Trig_Plague_Male_Gossip_2_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Plague_Male_Gossip_2_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Plague_Male_Gossip_2_Func001001001)), "TRIGSTR_4846" )
endfunction
//===========================================================================
function InitTrig_Plague_Male_Gossip_2 takes nothing returns nothing
set gg_trg_Plague_Male_Gossip_2 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Plague_Male_Gossip_2, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Plague_Male_Gossip_2, Condition( function Trig_Plague_Male_Gossip_2_Conditions ) )
call TriggerAddAction( gg_trg_Plague_Male_Gossip_2, function Trig_Plague_Male_Gossip_2_Actions )
endfunction
function Trig_Plague_Female_Gossip_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A097' ) ) then
return false
endif
return true
endfunction
function Trig_Plague_Female_Gossip_1_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Plague_Female_Gossip_1_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Plague_Female_Gossip_1_Func001001001)), "TRIGSTR_4807" )
endfunction
//===========================================================================
function InitTrig_Plague_Female_Gossip_1 takes nothing returns nothing
set gg_trg_Plague_Female_Gossip_1 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Plague_Female_Gossip_1, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Plague_Female_Gossip_1, Condition( function Trig_Plague_Female_Gossip_1_Conditions ) )
call TriggerAddAction( gg_trg_Plague_Female_Gossip_1, function Trig_Plague_Female_Gossip_1_Actions )
endfunction
function Trig_Plague_Female_Gossip_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A098' ) ) then
return false
endif
return true
endfunction
function Trig_Plague_Female_Gossip_2_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Plague_Female_Gossip_2_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Plague_Female_Gossip_2_Func001001001)), "TRIGSTR_4808" )
endfunction
//===========================================================================
function InitTrig_Plague_Female_Gossip_2 takes nothing returns nothing
set gg_trg_Plague_Female_Gossip_2 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Plague_Female_Gossip_2, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Plague_Female_Gossip_2, Condition( function Trig_Plague_Female_Gossip_2_Conditions ) )
call TriggerAddAction( gg_trg_Plague_Female_Gossip_2, function Trig_Plague_Female_Gossip_2_Actions )
endfunction
function Trig_Balthier_Gossip_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A09B' ) ) then
return false
endif
return true
endfunction
function Trig_Balthier_Gossip_1_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_4856" )
call UnitRemoveAbilityBJ( 'A09B', gg_unit_n036_0437 )
call UnitAddAbilityBJ( 'A09C', gg_unit_n036_0437 )
endfunction
//===========================================================================
function InitTrig_Balthier_Gossip_1 takes nothing returns nothing
set gg_trg_Balthier_Gossip_1 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Balthier_Gossip_1, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Balthier_Gossip_1, Condition( function Trig_Balthier_Gossip_1_Conditions ) )
call TriggerAddAction( gg_trg_Balthier_Gossip_1, function Trig_Balthier_Gossip_1_Actions )
endfunction
function Trig_Balthier_Gossip_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A09C' ) ) then
return false
endif
return true
endfunction
function Trig_Balthier_Gossip_2_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_4857" )
call UnitRemoveAbilityBJ( 'A09C', gg_unit_n036_0437 )
call UnitAddAbilityBJ( 'A09D', gg_unit_n036_0437 )
endfunction
//===========================================================================
function InitTrig_Balthier_Gossip_2 takes nothing returns nothing
set gg_trg_Balthier_Gossip_2 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Balthier_Gossip_2, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Balthier_Gossip_2, Condition( function Trig_Balthier_Gossip_2_Conditions ) )
call TriggerAddAction( gg_trg_Balthier_Gossip_2, function Trig_Balthier_Gossip_2_Actions )
endfunction
function Trig_Balthier_Gossip_3_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A09D' ) ) then
return false
endif
return true
endfunction
function Trig_Balthier_Gossip_3_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_4858" )
call UnitRemoveAbilityBJ( 'A09D', gg_unit_n036_0437 )
call UnitAddAbilityBJ( 'A09E', gg_unit_n036_0437 )
endfunction
//===========================================================================
function InitTrig_Balthier_Gossip_3 takes nothing returns nothing
set gg_trg_Balthier_Gossip_3 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Balthier_Gossip_3, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Balthier_Gossip_3, Condition( function Trig_Balthier_Gossip_3_Conditions ) )
call TriggerAddAction( gg_trg_Balthier_Gossip_3, function Trig_Balthier_Gossip_3_Actions )
endfunction
function Trig_Balthier_Gossip_4_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A09E' ) ) then
return false
endif
return true
endfunction
function Trig_Balthier_Gossip_4_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_4859" )
call UnitRemoveAbilityBJ( 'A09E', gg_unit_n036_0437 )
call UnitAddAbilityBJ( 'A09F', gg_unit_n036_0437 )
endfunction
//===========================================================================
function InitTrig_Balthier_Gossip_4 takes nothing returns nothing
set gg_trg_Balthier_Gossip_4 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Balthier_Gossip_4, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Balthier_Gossip_4, Condition( function Trig_Balthier_Gossip_4_Conditions ) )
call TriggerAddAction( gg_trg_Balthier_Gossip_4, function Trig_Balthier_Gossip_4_Actions )
endfunction
function Trig_Balthier_Gossip_5_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A09F' ) ) then
return false
endif
return true
endfunction
function Trig_Balthier_Gossip_5_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_4860" )
call UnitRemoveAbilityBJ( 'A09F', gg_unit_n036_0437 )
call UnitAddAbilityBJ( 'A09B', gg_unit_n036_0437 )
call UnitAddAbilityBJ( 'A09G', gg_unit_U00Q_0424 )
call EnableTrigger( gg_trg_Balthier_Gossip_6 )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_4862", "TRIGSTR_4863", "ReplaceableTextures\\CommandButtons\\BTNPlagueCloud.blp" )
set udg_ProQuestCleric = GetLastCreatedQuestBJ()
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_4864" )
call PlaySoundBJ( gg_snd_QuestNew )
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_ITg3_5313 )
endfunction
//===========================================================================
function InitTrig_Balthier_Gossip_5 takes nothing returns nothing
set gg_trg_Balthier_Gossip_5 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Balthier_Gossip_5, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Balthier_Gossip_5, Condition( function Trig_Balthier_Gossip_5_Conditions ) )
call TriggerAddAction( gg_trg_Balthier_Gossip_5, function Trig_Balthier_Gossip_5_Actions )
endfunction
function Trig_Balthier_Gossip_6_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A09B' ) ) then
return false
endif
return true
endfunction
function Trig_Balthier_Gossip_6_Func002001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Balthier_Gossip_6_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Balthier_Gossip_6_Func002001001)), "TRIGSTR_4861" )
endfunction
//===========================================================================
function InitTrig_Balthier_Gossip_6 takes nothing returns nothing
set gg_trg_Balthier_Gossip_6 = CreateTrigger( )
call DisableTrigger( gg_trg_Balthier_Gossip_6 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Balthier_Gossip_6, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Balthier_Gossip_6, Condition( function Trig_Balthier_Gossip_6_Conditions ) )
call TriggerAddAction( gg_trg_Balthier_Gossip_6, function Trig_Balthier_Gossip_6_Actions )
endfunction
function Trig_Drake_Gossip_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A095' ) ) then
return false
endif
return true
endfunction
function Trig_Drake_Gossip_Func002001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Drake_Gossip_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Drake_Gossip_Func002001001)), "TRIGSTR_4865" )
endfunction
//===========================================================================
function InitTrig_Drake_Gossip takes nothing returns nothing
set gg_trg_Drake_Gossip = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Drake_Gossip, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Drake_Gossip, Condition( function Trig_Drake_Gossip_Conditions ) )
call TriggerAddAction( gg_trg_Drake_Gossip, function Trig_Drake_Gossip_Actions )
endfunction
function Trig_Oswald_Gossip_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AA' ) ) then
return false
endif
return true
endfunction
function Trig_Oswald_Gossip_1_Func002001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Oswald_Gossip_1_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Oswald_Gossip_1_Func002001001)), "TRIGSTR_5257" )
endfunction
//===========================================================================
function InitTrig_Oswald_Gossip_1 takes nothing returns nothing
set gg_trg_Oswald_Gossip_1 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Oswald_Gossip_1, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Oswald_Gossip_1, Condition( function Trig_Oswald_Gossip_1_Conditions ) )
call TriggerAddAction( gg_trg_Oswald_Gossip_1, function Trig_Oswald_Gossip_1_Actions )
endfunction
function Trig_Oswald_Gossip_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0BA' ) ) then
return false
endif
return true
endfunction
function Trig_Oswald_Gossip_2_Func002001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Oswald_Gossip_2_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Oswald_Gossip_2_Func002001001)), "TRIGSTR_5916" )
endfunction
//===========================================================================
function InitTrig_Oswald_Gossip_2 takes nothing returns nothing
set gg_trg_Oswald_Gossip_2 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Oswald_Gossip_2, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Oswald_Gossip_2, Condition( function Trig_Oswald_Gossip_2_Conditions ) )
call TriggerAddAction( gg_trg_Oswald_Gossip_2, function Trig_Oswald_Gossip_2_Actions )
endfunction
function Trig_Pocket_Shop_Gossip_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AM' ) ) then
return false
endif
return true
endfunction
function Trig_Pocket_Shop_Gossip_Func002001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Pocket_Shop_Gossip_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Pocket_Shop_Gossip_Func002001001)), "TRIGSTR_5429" )
endfunction
//===========================================================================
function InitTrig_Pocket_Shop_Gossip takes nothing returns nothing
set gg_trg_Pocket_Shop_Gossip = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Pocket_Shop_Gossip, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Pocket_Shop_Gossip, Condition( function Trig_Pocket_Shop_Gossip_Conditions ) )
call TriggerAddAction( gg_trg_Pocket_Shop_Gossip, function Trig_Pocket_Shop_Gossip_Actions )
endfunction
function Trig_Dark_Archer_Gossip_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A048' ) ) then
return false
endif
return true
endfunction
function Trig_Dark_Archer_Gossip_1_Func002001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Dark_Archer_Gossip_1_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Dark_Archer_Gossip_1_Func002001001)), "TRIGSTR_6395" )
call UnitAddAbilityBJ( 'A0C1', GetSpellAbilityUnit() )
call PolledWait( 0.10 )
call EnableTrigger( gg_trg_Dark_Archer_Gossip_2 )
endfunction
//===========================================================================
function InitTrig_Dark_Archer_Gossip_1 takes nothing returns nothing
set gg_trg_Dark_Archer_Gossip_1 = CreateTrigger( )
call DisableTrigger( gg_trg_Dark_Archer_Gossip_1 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Dark_Archer_Gossip_1, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Dark_Archer_Gossip_1, Condition( function Trig_Dark_Archer_Gossip_1_Conditions ) )
call TriggerAddAction( gg_trg_Dark_Archer_Gossip_1, function Trig_Dark_Archer_Gossip_1_Actions )
endfunction
function Trig_Dark_Archer_Gossip_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A048' ) ) then
return false
endif
return true
endfunction
function Trig_Dark_Archer_Gossip_2_Func003001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Dark_Archer_Gossip_2_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Dark_Archer_Gossip_2_Func003001001)), "TRIGSTR_6396" )
endfunction
//===========================================================================
function InitTrig_Dark_Archer_Gossip_2 takes nothing returns nothing
set gg_trg_Dark_Archer_Gossip_2 = CreateTrigger( )
call DisableTrigger( gg_trg_Dark_Archer_Gossip_2 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Dark_Archer_Gossip_2, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Dark_Archer_Gossip_2, Condition( function Trig_Dark_Archer_Gossip_2_Conditions ) )
call TriggerAddAction( gg_trg_Dark_Archer_Gossip_2, function Trig_Dark_Archer_Gossip_2_Actions )
endfunction
function Trig_Lethe_Gossip_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0D6' ) ) then
return false
endif
return true
endfunction
function Trig_Lethe_Gossip_Func002001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Lethe_Gossip_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Lethe_Gossip_Func002001001)), "TRIGSTR_7028" )
endfunction
//===========================================================================
function InitTrig_Lethe_Gossip takes nothing returns nothing
set gg_trg_Lethe_Gossip = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Lethe_Gossip, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Lethe_Gossip, Condition( function Trig_Lethe_Gossip_Conditions ) )
call TriggerAddAction( gg_trg_Lethe_Gossip, function Trig_Lethe_Gossip_Actions )
endfunction
function Trig_Clara_Gossip_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0D7' ) ) then
return false
endif
return true
endfunction
function Trig_Clara_Gossip_Func002001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Clara_Gossip_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Clara_Gossip_Func002001001)), "TRIGSTR_7029" )
endfunction
//===========================================================================
function InitTrig_Clara_Gossip takes nothing returns nothing
set gg_trg_Clara_Gossip = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Clara_Gossip, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Clara_Gossip, Condition( function Trig_Clara_Gossip_Conditions ) )
call TriggerAddAction( gg_trg_Clara_Gossip, function Trig_Clara_Gossip_Actions )
endfunction
function Trig_Challenger_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I020' ) ) then
return false
endif
return true
endfunction
function Trig_Challenger_Func010C takes nothing returns boolean
if ( not ( udg_Acceptance == false ) ) then
return false
endif
return true
endfunction
function Trig_Challenger_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Loki_Syrdon )
set udg_RedChallenger = GetManipulatingUnit()
call DisplayTextToForce( GetPlayersAll(), ( ( "|cffffcc00" + GetPlayerName(GetOwningPlayer(udg_RedChallenger)) ) + "|r has issued a challenge!" ) )
call SetUnitPositionLocFacingBJ( udg_RedChallenger, GetRectCenter(gg_rct_The_Red_Corner), 0.00 )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(udg_RedChallenger), GetRectCenter(gg_rct_The_Red_Corner), 0.50 )
call PolledWait( 1.00 )
call EnableTrigger( gg_trg_Acceptance )
call PolledWait( 10.00 )
call DisableTrigger( gg_trg_Acceptance )
if ( Trig_Challenger_Func010C() ) then
call SetUnitPositionLocFacingBJ( udg_RedChallenger, GetRectCenter(gg_rct_Red_Challenger), 270.00 )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(udg_RedChallenger), GetRectCenter(gg_rct_Red_Challenger), 0.50 )
call DisplayTextToForce( GetPlayersAll(), ( ( "|cffffcc00" + GetPlayerName(GetOwningPlayer(udg_RedChallenger)) ) + "|r was denied!" ) )
set udg_RedChallenger = null
call EnableTrigger( gg_trg_Loki_Syrdon )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Challenger takes nothing returns nothing
set gg_trg_Challenger = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Challenger, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Challenger, Condition( function Trig_Challenger_Conditions ) )
call TriggerAddAction( gg_trg_Challenger, function Trig_Challenger_Actions )
endfunction
function Trig_Acceptance_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I021' ) ) then
return false
endif
return true
endfunction
function Trig_Acceptance_Func005002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetEnumPlayer(), GetRectCenter(gg_rct_The_Arena), 0.50 )
endfunction
function Trig_Acceptance_Func010002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Non_Combatants) )
endfunction
function Trig_Acceptance_Func011002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Non_Combatants) )
endfunction
function Trig_Acceptance_Func012002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Non_Combatants) )
endfunction
function Trig_Acceptance_Func013002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Non_Combatants) )
endfunction
function Trig_Acceptance_Func014002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Non_Combatants) )
endfunction
function Trig_Acceptance_Func015002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Non_Combatants) )
endfunction
function Trig_Acceptance_Func016002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Non_Combatants) )
endfunction
function Trig_Acceptance_Func019002 takes nothing returns nothing
call SetUnitInvulnerable( GetEnumUnit(), true )
endfunction
function Trig_Acceptance_Actions takes nothing returns nothing
set udg_Acceptance = true
call DisableTrigger( gg_trg_Challenger )
set udg_BlueChallenger = GetManipulatingUnit()
call DisplayTextToForce( GetPlayersAll(), ( ( "|cffffcc00" + GetPlayerName(GetOwningPlayer(udg_BlueChallenger)) ) + "|r has accepted the challenge!" ) )
call ForForce( GetPlayersAll(), function Trig_Acceptance_Func005002 )
call SetPlayerAllianceStateBJ( GetOwningPlayer(udg_RedChallenger), GetOwningPlayer(udg_BlueChallenger), bj_ALLIANCE_UNALLIED_VISION )
call SetPlayerAllianceStateBJ( GetOwningPlayer(udg_BlueChallenger), GetOwningPlayer(udg_RedChallenger), bj_ALLIANCE_UNALLIED_VISION )
call SuspendHeroXPBJ( false, udg_RedChallenger )
call SuspendHeroXPBJ( false, udg_BlueChallenger )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(0)), function Trig_Acceptance_Func010002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(1)), function Trig_Acceptance_Func011002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(3)), function Trig_Acceptance_Func012002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(4)), function Trig_Acceptance_Func013002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(5)), function Trig_Acceptance_Func014002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(6)), function Trig_Acceptance_Func015002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(8)), function Trig_Acceptance_Func016002 )
call SetUnitPositionLocFacingBJ( udg_RedChallenger, GetRectCenter(gg_rct_The_Red_Corner), 0.00 )
call SetUnitPositionLocFacingBJ( udg_BlueChallenger, GetRectCenter(gg_rct_The_Blue_Corner), 180.00 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Non_Combatants), function Trig_Acceptance_Func019002 )
call DisableTrigger( gg_trg_Watchman_Dies )
call DisableTrigger( gg_trg_Watchman_Leaves )
call DisableTrigger( gg_trg_Gladiator_Dies )
call DisableTrigger( gg_trg_Gladiator_Leaves )
call DisableTrigger( gg_trg_Succubus_Dies )
call DisableTrigger( gg_trg_Succubus_Leaves )
call DisableTrigger( gg_trg_Conjurer_Dies )
call DisableTrigger( gg_trg_Conjurer_Leaves )
call DisableTrigger( gg_trg_Ravager_Dies )
call DisableTrigger( gg_trg_Ravager_Leaves )
call DisableTrigger( gg_trg_Dark_Archer_Dies )
call DisableTrigger( gg_trg_Dark_Archer_Leaves )
endfunction
//===========================================================================
function InitTrig_Acceptance takes nothing returns nothing
set gg_trg_Acceptance = CreateTrigger( )
call DisableTrigger( gg_trg_Acceptance )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Acceptance, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Acceptance, Condition( function Trig_Acceptance_Conditions ) )
call TriggerAddAction( gg_trg_Acceptance, function Trig_Acceptance_Actions )
endfunction
function Trig_Red_Wins_Conditions takes nothing returns boolean
if ( not ( GetDyingUnit() == udg_BlueChallenger ) ) then
return false
endif
return true
endfunction
function Trig_Red_Wins_Func007002 takes nothing returns nothing
call SetUnitInvulnerable( GetEnumUnit(), false )
endfunction
function Trig_Red_Wins_Func008002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Talk_to_Loki) )
endfunction
function Trig_Red_Wins_Func009002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Talk_to_Loki) )
endfunction
function Trig_Red_Wins_Func010002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Talk_to_Loki) )
endfunction
function Trig_Red_Wins_Func011002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Talk_to_Loki) )
endfunction
function Trig_Red_Wins_Func012002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Talk_to_Loki) )
endfunction
function Trig_Red_Wins_Func013002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Talk_to_Loki) )
endfunction
function Trig_Red_Wins_Func014002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Talk_to_Loki) )
endfunction
function Trig_Red_Wins_Func015002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetEnumPlayer(), GetRectCenter(gg_rct_Talk_to_Loki), 0.10 )
endfunction
function Trig_Red_Wins_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ( GetOwningPlayer(udg_RedChallenger), GetOwningPlayer(udg_BlueChallenger), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( GetOwningPlayer(udg_BlueChallenger), GetOwningPlayer(udg_RedChallenger), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(8), GetOwningPlayer(udg_RedChallenger), bj_ALLIANCE_ALLIED_ADVUNITS )
call SetPlayerAllianceStateBJ( Player(8), GetOwningPlayer(udg_BlueChallenger), bj_ALLIANCE_ALLIED_ADVUNITS )
call SuspendHeroXPBJ( true, udg_RedChallenger )
call SuspendHeroXPBJ( true, udg_BlueChallenger )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Non_Combatants), function Trig_Red_Wins_Func007002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(0)), function Trig_Red_Wins_Func008002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(1)), function Trig_Red_Wins_Func009002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(3)), function Trig_Red_Wins_Func010002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(4)), function Trig_Red_Wins_Func011002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(5)), function Trig_Red_Wins_Func012002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(6)), function Trig_Red_Wins_Func013002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(8)), function Trig_Red_Wins_Func014002 )
call ForForce( GetPlayersAll(), function Trig_Red_Wins_Func015002 )
call DisplayTextToForce( GetPlayersAll(), ( ( "|cffffcc00" + GetPlayerName(GetOwningPlayer(udg_RedChallenger)) ) + "|r was victorious!" ) )
call SetUnitLifePercentBJ( udg_RedChallenger, 100 )
call SetUnitManaPercentBJ( udg_RedChallenger, 100 )
call SetUnitPositionLocFacingBJ( udg_RedChallenger, GetRectCenter(gg_rct_Red_Challenger), 270.00 )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(udg_RedChallenger), GetRectCenter(gg_rct_Red_Challenger), 0.50 )
call ReviveHeroLoc( udg_BlueChallenger, GetRectCenter(gg_rct_Blue_Challenger), true )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(udg_BlueChallenger), GetRectCenter(gg_rct_Blue_Challenger), 0.50 )
call PolledWait( 1.00 )
call EnableTrigger( gg_trg_Challenger )
set udg_RedChallenger = null
set udg_BlueChallenger = null
set udg_Acceptance = false
call EnableTrigger( gg_trg_Loki_Syrdon )
call EnableTrigger( gg_trg_Watchman_Dies )
call EnableTrigger( gg_trg_Watchman_Leaves )
call EnableTrigger( gg_trg_Gladiator_Dies )
call EnableTrigger( gg_trg_Gladiator_Leaves )
call EnableTrigger( gg_trg_Succubus_Dies )
call EnableTrigger( gg_trg_Succubus_Leaves )
call EnableTrigger( gg_trg_Conjurer_Dies )
call EnableTrigger( gg_trg_Conjurer_Leaves )
call EnableTrigger( gg_trg_Ravager_Dies )
call EnableTrigger( gg_trg_Ravager_Leaves )
call EnableTrigger( gg_trg_Dark_Archer_Dies )
call EnableTrigger( gg_trg_Dark_Archer_Leaves )
endfunction
//===========================================================================
function InitTrig_Red_Wins takes nothing returns nothing
set gg_trg_Red_Wins = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Red_Wins, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Red_Wins, Condition( function Trig_Red_Wins_Conditions ) )
call TriggerAddAction( gg_trg_Red_Wins, function Trig_Red_Wins_Actions )
endfunction
function Trig_Blue_Wins_Conditions takes nothing returns boolean
if ( not ( GetDyingUnit() == udg_RedChallenger ) ) then
return false
endif
return true
endfunction
function Trig_Blue_Wins_Func007002 takes nothing returns nothing
call SetUnitInvulnerable( GetEnumUnit(), false )
endfunction
function Trig_Blue_Wins_Func008002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Talk_to_Loki) )
endfunction
function Trig_Blue_Wins_Func009002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Talk_to_Loki) )
endfunction
function Trig_Blue_Wins_Func010002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Talk_to_Loki) )
endfunction
function Trig_Blue_Wins_Func011002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Talk_to_Loki) )
endfunction
function Trig_Blue_Wins_Func012002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Talk_to_Loki) )
endfunction
function Trig_Blue_Wins_Func013002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Talk_to_Loki) )
endfunction
function Trig_Blue_Wins_Func014002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Talk_to_Loki) )
endfunction
function Trig_Blue_Wins_Func015002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetEnumPlayer(), GetRectCenter(gg_rct_Talk_to_Loki), 0.10 )
endfunction
function Trig_Blue_Wins_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ( GetOwningPlayer(udg_BlueChallenger), GetOwningPlayer(udg_RedChallenger), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( GetOwningPlayer(udg_RedChallenger), GetOwningPlayer(udg_BlueChallenger), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(8), GetOwningPlayer(udg_BlueChallenger), bj_ALLIANCE_ALLIED_ADVUNITS )
call SetPlayerAllianceStateBJ( Player(8), GetOwningPlayer(udg_RedChallenger), bj_ALLIANCE_ALLIED_ADVUNITS )
call SuspendHeroXPBJ( true, udg_BlueChallenger )
call SuspendHeroXPBJ( true, udg_RedChallenger )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Non_Combatants), function Trig_Blue_Wins_Func007002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(0)), function Trig_Blue_Wins_Func008002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(1)), function Trig_Blue_Wins_Func009002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(3)), function Trig_Blue_Wins_Func010002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(4)), function Trig_Blue_Wins_Func011002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(5)), function Trig_Blue_Wins_Func012002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(6)), function Trig_Blue_Wins_Func013002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(8)), function Trig_Blue_Wins_Func014002 )
call ForForce( GetPlayersAll(), function Trig_Blue_Wins_Func015002 )
call DisplayTextToForce( GetPlayersAll(), ( ( "|cffffcc00" + GetPlayerName(GetOwningPlayer(udg_BlueChallenger)) ) + "|r was victorious!" ) )
call SetUnitLifePercentBJ( udg_BlueChallenger, 100 )
call SetUnitManaPercentBJ( udg_BlueChallenger, 100 )
call SetUnitPositionLocFacingBJ( udg_BlueChallenger, GetRectCenter(gg_rct_Blue_Challenger), 270.00 )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(udg_BlueChallenger), GetRectCenter(gg_rct_Blue_Challenger), 0.50 )
call ReviveHeroLoc( udg_RedChallenger, GetRectCenter(gg_rct_Red_Challenger), true )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(udg_RedChallenger), GetRectCenter(gg_rct_Red_Challenger), 0.50 )
call PolledWait( 1.00 )
call EnableTrigger( gg_trg_Challenger )
set udg_BlueChallenger = null
set udg_RedChallenger = null
set udg_Acceptance = false
call EnableTrigger( gg_trg_Loki_Syrdon )
call EnableTrigger( gg_trg_Watchman_Dies )
call EnableTrigger( gg_trg_Watchman_Leaves )
call EnableTrigger( gg_trg_Gladiator_Dies )
call EnableTrigger( gg_trg_Gladiator_Leaves )
call EnableTrigger( gg_trg_Succubus_Dies )
call EnableTrigger( gg_trg_Succubus_Leaves )
call EnableTrigger( gg_trg_Conjurer_Dies )
call EnableTrigger( gg_trg_Conjurer_Leaves )
call EnableTrigger( gg_trg_Ravager_Dies )
call EnableTrigger( gg_trg_Ravager_Leaves )
call EnableTrigger( gg_trg_Dark_Archer_Dies )
call EnableTrigger( gg_trg_Dark_Archer_Leaves )
endfunction
//===========================================================================
function InitTrig_Blue_Wins takes nothing returns nothing
set gg_trg_Blue_Wins = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Blue_Wins, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Blue_Wins, Condition( function Trig_Blue_Wins_Conditions ) )
call TriggerAddAction( gg_trg_Blue_Wins, function Trig_Blue_Wins_Actions )
endfunction
function Trig_Loki_Kills_Red_Conditions takes nothing returns boolean
if ( not ( GetDyingUnit() == udg_RedChallenger ) ) then
return false
endif
if ( not ( GetKillingUnitBJ() == udg_Gladiator ) ) then
return false
endif
return true
endfunction
function Trig_Loki_Kills_Red_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6430" )
endfunction
//===========================================================================
function InitTrig_Loki_Kills_Red takes nothing returns nothing
set gg_trg_Loki_Kills_Red = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Loki_Kills_Red, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Loki_Kills_Red, Condition( function Trig_Loki_Kills_Red_Conditions ) )
call TriggerAddAction( gg_trg_Loki_Kills_Red, function Trig_Loki_Kills_Red_Actions )
endfunction
function Trig_Loki_Kills_Blue_Conditions takes nothing returns boolean
if ( not ( GetDyingUnit() == udg_BlueChallenger ) ) then
return false
endif
if ( not ( GetKillingUnitBJ() == udg_Gladiator ) ) then
return false
endif
return true
endfunction
function Trig_Loki_Kills_Blue_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6431" )
endfunction
//===========================================================================
function InitTrig_Loki_Kills_Blue takes nothing returns nothing
set gg_trg_Loki_Kills_Blue = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Loki_Kills_Blue, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Loki_Kills_Blue, Condition( function Trig_Loki_Kills_Blue_Conditions ) )
call TriggerAddAction( gg_trg_Loki_Kills_Blue, function Trig_Loki_Kills_Blue_Actions )
endfunction
function Trig_Sam_Kills_Red_Conditions takes nothing returns boolean
if ( not ( GetDyingUnit() == udg_RedChallenger ) ) then
return false
endif
if ( not ( GetKillingUnitBJ() == udg_Watchman ) ) then
return false
endif
return true
endfunction
function Trig_Sam_Kills_Red_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6432" )
endfunction
//===========================================================================
function InitTrig_Sam_Kills_Red takes nothing returns nothing
set gg_trg_Sam_Kills_Red = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Sam_Kills_Red, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Sam_Kills_Red, Condition( function Trig_Sam_Kills_Red_Conditions ) )
call TriggerAddAction( gg_trg_Sam_Kills_Red, function Trig_Sam_Kills_Red_Actions )
endfunction
function Trig_Sam_Kills_Blue_Conditions takes nothing returns boolean
if ( not ( GetDyingUnit() == udg_BlueChallenger ) ) then
return false
endif
if ( not ( GetKillingUnitBJ() == udg_Watchman ) ) then
return false
endif
return true
endfunction
function Trig_Sam_Kills_Blue_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6433" )
endfunction
//===========================================================================
function InitTrig_Sam_Kills_Blue takes nothing returns nothing
set gg_trg_Sam_Kills_Blue = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Sam_Kills_Blue, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Sam_Kills_Blue, Condition( function Trig_Sam_Kills_Blue_Conditions ) )
call TriggerAddAction( gg_trg_Sam_Kills_Blue, function Trig_Sam_Kills_Blue_Actions )
endfunction
function Trig_Freya_Kills_Red_Conditions takes nothing returns boolean
if ( not ( GetDyingUnit() == udg_RedChallenger ) ) then
return false
endif
if ( not ( GetKillingUnitBJ() == udg_Succubus ) ) then
return false
endif
return true
endfunction
function Trig_Freya_Kills_Red_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6434" )
endfunction
//===========================================================================
function InitTrig_Freya_Kills_Red takes nothing returns nothing
set gg_trg_Freya_Kills_Red = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Freya_Kills_Red, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Freya_Kills_Red, Condition( function Trig_Freya_Kills_Red_Conditions ) )
call TriggerAddAction( gg_trg_Freya_Kills_Red, function Trig_Freya_Kills_Red_Actions )
endfunction
function Trig_Freya_Kills_Blue_Conditions takes nothing returns boolean
if ( not ( GetDyingUnit() == udg_BlueChallenger ) ) then
return false
endif
if ( not ( GetKillingUnitBJ() == udg_Succubus ) ) then
return false
endif
return true
endfunction
function Trig_Freya_Kills_Blue_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6435" )
endfunction
//===========================================================================
function InitTrig_Freya_Kills_Blue takes nothing returns nothing
set gg_trg_Freya_Kills_Blue = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Freya_Kills_Blue, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Freya_Kills_Blue, Condition( function Trig_Freya_Kills_Blue_Conditions ) )
call TriggerAddAction( gg_trg_Freya_Kills_Blue, function Trig_Freya_Kills_Blue_Actions )
endfunction
function Trig_Drake_Kills_Red_Conditions takes nothing returns boolean
if ( not ( GetDyingUnit() == udg_RedChallenger ) ) then
return false
endif
if ( not ( GetKillingUnitBJ() == udg_Conjurer ) ) then
return false
endif
return true
endfunction
function Trig_Drake_Kills_Red_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6436" )
endfunction
//===========================================================================
function InitTrig_Drake_Kills_Red takes nothing returns nothing
set gg_trg_Drake_Kills_Red = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Drake_Kills_Red, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Drake_Kills_Red, Condition( function Trig_Drake_Kills_Red_Conditions ) )
call TriggerAddAction( gg_trg_Drake_Kills_Red, function Trig_Drake_Kills_Red_Actions )
endfunction
function Trig_Drake_Kills_Blue_Conditions takes nothing returns boolean
if ( not ( GetDyingUnit() == udg_BlueChallenger ) ) then
return false
endif
if ( not ( GetKillingUnitBJ() == udg_Conjurer ) ) then
return false
endif
return true
endfunction
function Trig_Drake_Kills_Blue_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6437" )
endfunction
//===========================================================================
function InitTrig_Drake_Kills_Blue takes nothing returns nothing
set gg_trg_Drake_Kills_Blue = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Drake_Kills_Blue, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Drake_Kills_Blue, Condition( function Trig_Drake_Kills_Blue_Conditions ) )
call TriggerAddAction( gg_trg_Drake_Kills_Blue, function Trig_Drake_Kills_Blue_Actions )
endfunction
function Trig_Atrox_Kills_Red_Conditions takes nothing returns boolean
if ( not ( GetDyingUnit() == udg_RedChallenger ) ) then
return false
endif
if ( not ( GetKillingUnitBJ() == udg_Ravager ) ) then
return false
endif
return true
endfunction
function Trig_Atrox_Kills_Red_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6438" )
endfunction
//===========================================================================
function InitTrig_Atrox_Kills_Red takes nothing returns nothing
set gg_trg_Atrox_Kills_Red = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Atrox_Kills_Red, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Atrox_Kills_Red, Condition( function Trig_Atrox_Kills_Red_Conditions ) )
call TriggerAddAction( gg_trg_Atrox_Kills_Red, function Trig_Atrox_Kills_Red_Actions )
endfunction
function Trig_Atrox_Kills_Blue_Conditions takes nothing returns boolean
if ( not ( GetDyingUnit() == udg_BlueChallenger ) ) then
return false
endif
if ( not ( GetKillingUnitBJ() == udg_Ravager ) ) then
return false
endif
return true
endfunction
function Trig_Atrox_Kills_Blue_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6439" )
endfunction
//===========================================================================
function InitTrig_Atrox_Kills_Blue takes nothing returns nothing
set gg_trg_Atrox_Kills_Blue = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Atrox_Kills_Blue, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Atrox_Kills_Blue, Condition( function Trig_Atrox_Kills_Blue_Conditions ) )
call TriggerAddAction( gg_trg_Atrox_Kills_Blue, function Trig_Atrox_Kills_Blue_Actions )
endfunction
function Trig_Ciara_Kills_Red_Conditions takes nothing returns boolean
if ( not ( GetDyingUnit() == udg_RedChallenger ) ) then
return false
endif
if ( not ( GetKillingUnitBJ() == udg_DarkArcher ) ) then
return false
endif
return true
endfunction
function Trig_Ciara_Kills_Red_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6440" )
endfunction
//===========================================================================
function InitTrig_Ciara_Kills_Red takes nothing returns nothing
set gg_trg_Ciara_Kills_Red = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Ciara_Kills_Red, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Ciara_Kills_Red, Condition( function Trig_Ciara_Kills_Red_Conditions ) )
call TriggerAddAction( gg_trg_Ciara_Kills_Red, function Trig_Ciara_Kills_Red_Actions )
endfunction
function Trig_Ciara_Kills_Blue_Conditions takes nothing returns boolean
if ( not ( GetDyingUnit() == udg_BlueChallenger ) ) then
return false
endif
if ( not ( GetKillingUnitBJ() == udg_DarkArcher ) ) then
return false
endif
return true
endfunction
function Trig_Ciara_Kills_Blue_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6441" )
endfunction
//===========================================================================
function InitTrig_Ciara_Kills_Blue takes nothing returns nothing
set gg_trg_Ciara_Kills_Blue = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Ciara_Kills_Blue, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Ciara_Kills_Blue, Condition( function Trig_Ciara_Kills_Blue_Conditions ) )
call TriggerAddAction( gg_trg_Ciara_Kills_Blue, function Trig_Ciara_Kills_Blue_Actions )
endfunction
function Trig_Whores_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I025' ) ) then
return false
endif
return true
endfunction
function Trig_Whores_Func006C takes nothing returns boolean
if ( not ( GetRandomInt(1, 10) <= 2 ) ) then
return false
endif
return true
endfunction
function Trig_Whores_Actions takes nothing returns nothing
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUTIN, 2.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call DisplayTextToForce( GetPlayersAll(), ( "|cffffcc00Prostitute|r : I'll show you a good time, " + ( GetPlayerName(GetOwningPlayer(GetManipulatingUnit())) + "." ) ) )
call PolledWait( 0.50 )
call PolledWait( 0.50 )
if ( Trig_Whores_Func006C() ) then
call IssueTargetOrderBJ( gg_unit_u00K_0226, "slow", GetManipulatingUnit() )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Whores takes nothing returns nothing
set gg_trg_Whores = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Whores, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Whores, Condition( function Trig_Whores_Conditions ) )
call TriggerAddAction( gg_trg_Whores, function Trig_Whores_Actions )
endfunction
function Trig_Rename_1_Actions takes nothing returns nothing
call SetPlayerName( Player(0), SubStringBJ(GetEventPlayerChatString(), 9, StringLength(GetEventPlayerChatString())) )
endfunction
//===========================================================================
function InitTrig_Rename_1 takes nothing returns nothing
set gg_trg_Rename_1 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Rename_1, Player(0), "-rename ", false )
call TriggerAddAction( gg_trg_Rename_1, function Trig_Rename_1_Actions )
endfunction
function Trig_Rename_2_Actions takes nothing returns nothing
call SetPlayerName( Player(1), SubStringBJ(GetEventPlayerChatString(), 9, StringLength(GetEventPlayerChatString())) )
endfunction
//===========================================================================
function InitTrig_Rename_2 takes nothing returns nothing
set gg_trg_Rename_2 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Rename_2, Player(1), "-rename ", false )
call TriggerAddAction( gg_trg_Rename_2, function Trig_Rename_2_Actions )
endfunction
function Trig_Rename_4_Actions takes nothing returns nothing
call SetPlayerName( Player(3), SubStringBJ(GetEventPlayerChatString(), 9, StringLength(GetEventPlayerChatString())) )
endfunction
//===========================================================================
function InitTrig_Rename_4 takes nothing returns nothing
set gg_trg_Rename_4 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Rename_4, Player(3), "-rename ", false )
call TriggerAddAction( gg_trg_Rename_4, function Trig_Rename_4_Actions )
endfunction
function Trig_Rename_5_Actions takes nothing returns nothing
call SetPlayerName( Player(4), SubStringBJ(GetEventPlayerChatString(), 9, StringLength(GetEventPlayerChatString())) )
endfunction
//===========================================================================
function InitTrig_Rename_5 takes nothing returns nothing
set gg_trg_Rename_5 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Rename_5, Player(4), "-rename ", false )
call TriggerAddAction( gg_trg_Rename_5, function Trig_Rename_5_Actions )
endfunction
function Trig_Rename_6_Actions takes nothing returns nothing
call SetPlayerName( Player(5), SubStringBJ(GetEventPlayerChatString(), 9, StringLength(GetEventPlayerChatString())) )
endfunction
//===========================================================================
function InitTrig_Rename_6 takes nothing returns nothing
set gg_trg_Rename_6 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Rename_6, Player(5), "-rename ", false )
call TriggerAddAction( gg_trg_Rename_6, function Trig_Rename_6_Actions )
endfunction
function Trig_Rename_7_Actions takes nothing returns nothing
call SetPlayerName( Player(6), SubStringBJ(GetEventPlayerChatString(), 9, StringLength(GetEventPlayerChatString())) )
endfunction
//===========================================================================
function InitTrig_Rename_7 takes nothing returns nothing
set gg_trg_Rename_7 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Rename_7, Player(6), "-rename ", false )
call TriggerAddAction( gg_trg_Rename_7, function Trig_Rename_7_Actions )
endfunction
function Trig_Revert_Actions takes nothing returns nothing
call SetPlayerName( Player(0), udg_P1name )
call SetPlayerName( Player(1), udg_P2name )
call SetPlayerName( Player(3), udg_P4name )
call SetPlayerName( Player(4), udg_P5name )
call SetPlayerName( Player(5), udg_P6name )
call SetPlayerName( Player(6), udg_P7name )
endfunction
//===========================================================================
function InitTrig_Revert takes nothing returns nothing
set gg_trg_Revert = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Revert, Player(0), "-revert", true )
call TriggerAddAction( gg_trg_Revert, function Trig_Revert_Actions )
endfunction
function Trig_Namelock_Actions takes nothing returns nothing
call SetPlayerName( Player(0), udg_P1name )
call SetPlayerName( Player(1), udg_P2name )
call SetPlayerName( Player(3), udg_P4name )
call SetPlayerName( Player(4), udg_P5name )
call SetPlayerName( Player(5), udg_P6name )
call SetPlayerName( Player(6), udg_P7name )
call DisableTrigger( gg_trg_Rename_1 )
call DisableTrigger( gg_trg_Rename_2 )
call DisableTrigger( gg_trg_Rename_4 )
call DisableTrigger( gg_trg_Rename_5 )
call DisableTrigger( gg_trg_Rename_6 )
call DisableTrigger( gg_trg_Rename_7 )
endfunction
//===========================================================================
function InitTrig_Namelock takes nothing returns nothing
set gg_trg_Namelock = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Namelock, Player(0), "-nameless", true )
call TriggerAddAction( gg_trg_Namelock, function Trig_Namelock_Actions )
endfunction
function Trig_Auto_1_Conditions takes nothing returns boolean
if ( not ( CountPlayersInForceBJ(udg_PlayerGroup) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Auto_1_Func004002 takes nothing returns nothing
call SetPlayerHandicapXPBJ( GetEnumPlayer(), 100 )
endfunction
function Trig_Auto_1_Actions takes nothing returns nothing
call TriggerSleepAction( 1.00 )
call SetPlayerHandicapBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), 100.00 )
call ForForce( GetPlayersAll(), function Trig_Auto_1_Func004002 )
call SetPlayerHandicapXPBJ( Player(8), 100 )
set udg_AutoDifficultyModifier = 1.00
set udg_PartyTotal = 1.00
endfunction
//===========================================================================
function InitTrig_Auto_1 takes nothing returns nothing
set gg_trg_Auto_1 = CreateTrigger( )
call TriggerAddCondition( gg_trg_Auto_1, Condition( function Trig_Auto_1_Conditions ) )
call TriggerAddAction( gg_trg_Auto_1, function Trig_Auto_1_Actions )
endfunction
function Trig_Auto_2_Conditions takes nothing returns boolean
if ( not ( CountPlayersInForceBJ(udg_PlayerGroup) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Auto_2_Func005002 takes nothing returns nothing
call SetPlayerHandicapXPBJ( GetEnumPlayer(), 200.00 )
endfunction
function Trig_Auto_2_Actions takes nothing returns nothing
call TriggerSleepAction( 1.00 )
call SetPlayerHandicapBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), 200.00 )
call ForForce( GetPlayersAll(), function Trig_Auto_2_Func005002 )
call SetPlayerHandicapXPBJ( Player(8), 200.00 )
set udg_AutoDifficultyModifier = 2.00
set udg_PartyTotal = 2.00
endfunction
//===========================================================================
function InitTrig_Auto_2 takes nothing returns nothing
set gg_trg_Auto_2 = CreateTrigger( )
call TriggerAddCondition( gg_trg_Auto_2, Condition( function Trig_Auto_2_Conditions ) )
call TriggerAddAction( gg_trg_Auto_2, function Trig_Auto_2_Actions )
endfunction
function Trig_Auto_3_Conditions takes nothing returns boolean
if ( not ( CountPlayersInForceBJ(udg_PlayerGroup) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Auto_3_Func005002 takes nothing returns nothing
call SetPlayerHandicapXPBJ( GetEnumPlayer(), 300.00 )
endfunction
function Trig_Auto_3_Actions takes nothing returns nothing
call TriggerSleepAction( 1.00 )
call SetPlayerHandicapBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), 300.00 )
call ForForce( GetPlayersAll(), function Trig_Auto_3_Func005002 )
call SetPlayerHandicapXPBJ( Player(8), 300.00 )
set udg_AutoDifficultyModifier = 3.00
set udg_PartyTotal = 3.00
endfunction
//===========================================================================
function InitTrig_Auto_3 takes nothing returns nothing
set gg_trg_Auto_3 = CreateTrigger( )
call TriggerAddCondition( gg_trg_Auto_3, Condition( function Trig_Auto_3_Conditions ) )
call TriggerAddAction( gg_trg_Auto_3, function Trig_Auto_3_Actions )
endfunction
function Trig_Auto_4_Conditions takes nothing returns boolean
if ( not ( CountPlayersInForceBJ(udg_PlayerGroup) == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Auto_4_Func005002 takes nothing returns nothing
call SetPlayerHandicapXPBJ( GetEnumPlayer(), 400.00 )
endfunction
function Trig_Auto_4_Actions takes nothing returns nothing
call TriggerSleepAction( 1.00 )
call SetPlayerHandicapBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), 400.00 )
call ForForce( GetPlayersAll(), function Trig_Auto_4_Func005002 )
call SetPlayerHandicapXPBJ( Player(8), 400.00 )
set udg_AutoDifficultyModifier = 4.00
set udg_PartyTotal = 4.00
endfunction
//===========================================================================
function InitTrig_Auto_4 takes nothing returns nothing
set gg_trg_Auto_4 = CreateTrigger( )
call TriggerAddCondition( gg_trg_Auto_4, Condition( function Trig_Auto_4_Conditions ) )
call TriggerAddAction( gg_trg_Auto_4, function Trig_Auto_4_Actions )
endfunction
function Trig_Auto_5_Conditions takes nothing returns boolean
if ( not ( CountPlayersInForceBJ(udg_PlayerGroup) == 5 ) ) then
return false
endif
return true
endfunction
function Trig_Auto_5_Func005002 takes nothing returns nothing
call SetPlayerHandicapXPBJ( GetEnumPlayer(), 500.00 )
endfunction
function Trig_Auto_5_Actions takes nothing returns nothing
call TriggerSleepAction( 1.00 )
call SetPlayerHandicapBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), 500.00 )
call ForForce( GetPlayersAll(), function Trig_Auto_5_Func005002 )
call SetPlayerHandicapXPBJ( Player(8), 500.00 )
set udg_AutoDifficultyModifier = 5.00
set udg_PartyTotal = 5.00
endfunction
//===========================================================================
function InitTrig_Auto_5 takes nothing returns nothing
set gg_trg_Auto_5 = CreateTrigger( )
call TriggerAddCondition( gg_trg_Auto_5, Condition( function Trig_Auto_5_Conditions ) )
call TriggerAddAction( gg_trg_Auto_5, function Trig_Auto_5_Actions )
endfunction
function Trig_Auto_6_Conditions takes nothing returns boolean
if ( not ( CountPlayersInForceBJ(udg_PlayerGroup) == 6 ) ) then
return false
endif
return true
endfunction
function Trig_Auto_6_Func005002 takes nothing returns nothing
call SetPlayerHandicapXPBJ( GetEnumPlayer(), 600.00 )
endfunction
function Trig_Auto_6_Actions takes nothing returns nothing
call TriggerSleepAction( 1.00 )
call SetPlayerHandicapBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), 600.00 )
call ForForce( GetPlayersAll(), function Trig_Auto_6_Func005002 )
call SetPlayerHandicapXPBJ( Player(8), 600.00 )
set udg_AutoDifficultyModifier = 6.00
set udg_PartyTotal = 6.00
endfunction
//===========================================================================
function InitTrig_Auto_6 takes nothing returns nothing
set gg_trg_Auto_6 = CreateTrigger( )
call TriggerAddCondition( gg_trg_Auto_6, Condition( function Trig_Auto_6_Conditions ) )
call TriggerAddAction( gg_trg_Auto_6, function Trig_Auto_6_Actions )
endfunction
function Trig_Difficulty_Very_Easy_Conditions takes nothing returns boolean
if ( not ( udg_DifficultyLocker == 0.00 ) ) then
return false
endif
return true
endfunction
function Trig_Difficulty_Very_Easy_Func004002 takes nothing returns nothing
call SetPlayerHandicapXPBJ( GetEnumPlayer(), 100 )
endfunction
function Trig_Difficulty_Very_Easy_Actions takes nothing returns nothing
call SetPlayerHandicapBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), 100.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1568" )
call ForForce( GetPlayersAll(), function Trig_Difficulty_Very_Easy_Func004002 )
call SetPlayerHandicapXPBJ( Player(8), 100 )
set udg_DifficultyLocker = 1.00
set udg_AutoDifficultyModifier = 1.00
endfunction
//===========================================================================
function InitTrig_Difficulty_Very_Easy takes nothing returns nothing
set gg_trg_Difficulty_Very_Easy = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Difficulty_Very_Easy, Player(0), "-very easy", true )
call TriggerAddCondition( gg_trg_Difficulty_Very_Easy, Condition( function Trig_Difficulty_Very_Easy_Conditions ) )
call TriggerAddAction( gg_trg_Difficulty_Very_Easy, function Trig_Difficulty_Very_Easy_Actions )
endfunction
function Trig_Difficulty_Easy_Conditions takes nothing returns boolean
if ( not ( udg_DifficultyLocker == 0.00 ) ) then
return false
endif
return true
endfunction
function Trig_Difficulty_Easy_Func004002 takes nothing returns nothing
call SetPlayerHandicapXPBJ( GetEnumPlayer(), 200.00 )
endfunction
function Trig_Difficulty_Easy_Actions takes nothing returns nothing
call SetPlayerHandicapBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), 200.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_041" )
call ForForce( GetPlayersAll(), function Trig_Difficulty_Easy_Func004002 )
call SetPlayerHandicapXPBJ( Player(8), 200.00 )
set udg_DifficultyLocker = 1.00
set udg_AutoDifficultyModifier = 2.00
endfunction
//===========================================================================
function InitTrig_Difficulty_Easy takes nothing returns nothing
set gg_trg_Difficulty_Easy = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Difficulty_Easy, Player(0), "-easy", true )
call TriggerAddCondition( gg_trg_Difficulty_Easy, Condition( function Trig_Difficulty_Easy_Conditions ) )
call TriggerAddAction( gg_trg_Difficulty_Easy, function Trig_Difficulty_Easy_Actions )
endfunction
function Trig_Difficulty_Medium_Conditions takes nothing returns boolean
if ( not ( udg_DifficultyLocker == 0.00 ) ) then
return false
endif
return true
endfunction
function Trig_Difficulty_Medium_Func004002 takes nothing returns nothing
call SetPlayerHandicapXPBJ( GetEnumPlayer(), 300.00 )
endfunction
function Trig_Difficulty_Medium_Actions takes nothing returns nothing
call SetPlayerHandicapBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), 300.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_042" )
call ForForce( GetPlayersAll(), function Trig_Difficulty_Medium_Func004002 )
call SetPlayerHandicapXPBJ( Player(8), 300.00 )
set udg_DifficultyLocker = 1.00
set udg_AutoDifficultyModifier = 3.00
endfunction
//===========================================================================
function InitTrig_Difficulty_Medium takes nothing returns nothing
set gg_trg_Difficulty_Medium = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Difficulty_Medium, Player(0), "-medium", true )
call TriggerAddCondition( gg_trg_Difficulty_Medium, Condition( function Trig_Difficulty_Medium_Conditions ) )
call TriggerAddAction( gg_trg_Difficulty_Medium, function Trig_Difficulty_Medium_Actions )
endfunction
function Trig_Difficulty_Hard_Conditions takes nothing returns boolean
if ( not ( udg_DifficultyLocker == 0.00 ) ) then
return false
endif
return true
endfunction
function Trig_Difficulty_Hard_Func004002 takes nothing returns nothing
call SetPlayerHandicapXPBJ( GetEnumPlayer(), 400.00 )
endfunction
function Trig_Difficulty_Hard_Actions takes nothing returns nothing
call SetPlayerHandicapBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), 400.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_043" )
call ForForce( GetPlayersAll(), function Trig_Difficulty_Hard_Func004002 )
call SetPlayerHandicapXPBJ( Player(8), 400.00 )
set udg_DifficultyLocker = 1.00
set udg_AutoDifficultyModifier = 4.00
endfunction
//===========================================================================
function InitTrig_Difficulty_Hard takes nothing returns nothing
set gg_trg_Difficulty_Hard = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Difficulty_Hard, Player(0), "-hard", true )
call TriggerAddCondition( gg_trg_Difficulty_Hard, Condition( function Trig_Difficulty_Hard_Conditions ) )
call TriggerAddAction( gg_trg_Difficulty_Hard, function Trig_Difficulty_Hard_Actions )
endfunction
function Trig_Difficulty_Very_Hard_Conditions takes nothing returns boolean
if ( not ( udg_DifficultyLocker == 0.00 ) ) then
return false
endif
return true
endfunction
function Trig_Difficulty_Very_Hard_Func004002 takes nothing returns nothing
call SetPlayerHandicapXPBJ( GetEnumPlayer(), 500.00 )
endfunction
function Trig_Difficulty_Very_Hard_Actions takes nothing returns nothing
call SetPlayerHandicapBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), 500.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1569" )
call ForForce( GetPlayersAll(), function Trig_Difficulty_Very_Hard_Func004002 )
call SetPlayerHandicapXPBJ( Player(8), 500.00 )
set udg_DifficultyLocker = 1.00
set udg_AutoDifficultyModifier = 5.00
endfunction
//===========================================================================
function InitTrig_Difficulty_Very_Hard takes nothing returns nothing
set gg_trg_Difficulty_Very_Hard = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Difficulty_Very_Hard, Player(0), "-very hard", true )
call TriggerAddCondition( gg_trg_Difficulty_Very_Hard, Condition( function Trig_Difficulty_Very_Hard_Conditions ) )
call TriggerAddAction( gg_trg_Difficulty_Very_Hard, function Trig_Difficulty_Very_Hard_Actions )
endfunction
function Trig_Difficulty_Ultra_Hard_Conditions takes nothing returns boolean
if ( not ( udg_DifficultyLocker == 0.00 ) ) then
return false
endif
return true
endfunction
function Trig_Difficulty_Ultra_Hard_Func004002 takes nothing returns nothing
call SetPlayerHandicapXPBJ( GetEnumPlayer(), 600.00 )
endfunction
function Trig_Difficulty_Ultra_Hard_Actions takes nothing returns nothing
call SetPlayerHandicapBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), 600.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_044" )
call ForForce( GetPlayersAll(), function Trig_Difficulty_Ultra_Hard_Func004002 )
call SetPlayerHandicapXPBJ( Player(8), 600.00 )
set udg_DifficultyLocker = 1.00
set udg_AutoDifficultyModifier = 6.00
endfunction
//===========================================================================
function InitTrig_Difficulty_Ultra_Hard takes nothing returns nothing
set gg_trg_Difficulty_Ultra_Hard = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Difficulty_Ultra_Hard, Player(0), "-ultra hard", true )
call TriggerAddCondition( gg_trg_Difficulty_Ultra_Hard, Condition( function Trig_Difficulty_Ultra_Hard_Conditions ) )
call TriggerAddAction( gg_trg_Difficulty_Ultra_Hard, function Trig_Difficulty_Ultra_Hard_Actions )
endfunction
function Trig_Difficulty_Nightmare_Conditions takes nothing returns boolean
if ( not ( udg_DifficultyLocker == 0.00 ) ) then
return false
endif
return true
endfunction
function Trig_Difficulty_Nightmare_Func004002 takes nothing returns nothing
call SetPlayerHandicapXPBJ( GetEnumPlayer(), 700.00 )
endfunction
function Trig_Difficulty_Nightmare_Actions takes nothing returns nothing
call SetPlayerHandicapBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), 700.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1570" )
call ForForce( GetPlayersAll(), function Trig_Difficulty_Nightmare_Func004002 )
call SetPlayerHandicapXPBJ( Player(8), 700.00 )
set udg_DifficultyLocker = 1.00
set udg_AutoDifficultyModifier = 7.00
endfunction
//===========================================================================
function InitTrig_Difficulty_Nightmare takes nothing returns nothing
set gg_trg_Difficulty_Nightmare = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Difficulty_Nightmare, Player(0), "-nightmare", true )
call TriggerAddCondition( gg_trg_Difficulty_Nightmare, Condition( function Trig_Difficulty_Nightmare_Conditions ) )
call TriggerAddAction( gg_trg_Difficulty_Nightmare, function Trig_Difficulty_Nightmare_Actions )
endfunction
function Trig_Difficulty_Hell_Conditions takes nothing returns boolean
if ( not ( udg_DifficultyLocker == 0.00 ) ) then
return false
endif
return true
endfunction
function Trig_Difficulty_Hell_Func004002 takes nothing returns nothing
call SetPlayerHandicapXPBJ( GetEnumPlayer(), 800.00 )
endfunction
function Trig_Difficulty_Hell_Actions takes nothing returns nothing
call SetPlayerHandicapBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), 800.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_4319" )
call ForForce( GetPlayersAll(), function Trig_Difficulty_Hell_Func004002 )
call SetPlayerHandicapXPBJ( Player(8), 800.00 )
set udg_DifficultyLocker = 1.00
set udg_AutoDifficultyModifier = 8.00
endfunction
//===========================================================================
function InitTrig_Difficulty_Hell takes nothing returns nothing
set gg_trg_Difficulty_Hell = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Difficulty_Hell, Player(0), "-hell", true )
call TriggerAddCondition( gg_trg_Difficulty_Hell, Condition( function Trig_Difficulty_Hell_Conditions ) )
call TriggerAddAction( gg_trg_Difficulty_Hell, function Trig_Difficulty_Hell_Actions )
endfunction
function Trig_Difficulty_Ragnarok_Conditions takes nothing returns boolean
if ( not ( udg_DifficultyLocker == 0.00 ) ) then
return false
endif
return true
endfunction
function Trig_Difficulty_Ragnarok_Func004002 takes nothing returns nothing
call SetPlayerHandicapXPBJ( GetEnumPlayer(), 900.00 )
endfunction
function Trig_Difficulty_Ragnarok_Actions takes nothing returns nothing
call SetPlayerHandicapBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), 900.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_4320" )
call ForForce( GetPlayersAll(), function Trig_Difficulty_Ragnarok_Func004002 )
call SetPlayerHandicapXPBJ( Player(8), 900.00 )
set udg_DifficultyLocker = 1.00
set udg_AutoDifficultyModifier = 9.00
endfunction
//===========================================================================
function InitTrig_Difficulty_Ragnarok takes nothing returns nothing
set gg_trg_Difficulty_Ragnarok = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Difficulty_Ragnarok, Player(0), "-ragnarok", true )
call TriggerAddCondition( gg_trg_Difficulty_Ragnarok, Condition( function Trig_Difficulty_Ragnarok_Conditions ) )
call TriggerAddAction( gg_trg_Difficulty_Ragnarok, function Trig_Difficulty_Ragnarok_Actions )
endfunction
function Trig_Difficulty_Impossible_Conditions takes nothing returns boolean
if ( not ( udg_DifficultyLocker == 0.00 ) ) then
return false
endif
return true
endfunction
function Trig_Difficulty_Impossible_Func004002 takes nothing returns nothing
call SetPlayerHandicapXPBJ( GetEnumPlayer(), 1000.00 )
endfunction
function Trig_Difficulty_Impossible_Actions takes nothing returns nothing
call SetPlayerHandicapBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), 1000.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_4321" )
call ForForce( GetPlayersAll(), function Trig_Difficulty_Impossible_Func004002 )
call SetPlayerHandicapXPBJ( Player(8), 1000.00 )
set udg_DifficultyLocker = 1.00
set udg_AutoDifficultyModifier = 10.00
endfunction
//===========================================================================
function InitTrig_Difficulty_Impossible takes nothing returns nothing
set gg_trg_Difficulty_Impossible = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Difficulty_Impossible, Player(0), "-impossible", true )
call TriggerAddCondition( gg_trg_Difficulty_Impossible, Condition( function Trig_Difficulty_Impossible_Conditions ) )
call TriggerAddAction( gg_trg_Difficulty_Impossible, function Trig_Difficulty_Impossible_Actions )
endfunction
function Trig_Delay_Time_Actions takes nothing returns nothing
call PolledWait( 300.00 )
set udg_DifficultyLocker = 0.00
endfunction
//===========================================================================
function InitTrig_Delay_Time takes nothing returns nothing
set gg_trg_Delay_Time = CreateTrigger( )
call TriggerRegisterVariableEvent( gg_trg_Delay_Time, "udg_DifficultyLocker", EQUAL, 1.00 )
call TriggerAddAction( gg_trg_Delay_Time, function Trig_Delay_Time_Actions )
endfunction
function Trig_Difficulty_1_Func002002 takes nothing returns nothing
call SetPlayerHandicapXPBJ( GetEnumPlayer(), 100 )
endfunction
function Trig_Difficulty_1_Actions takes nothing returns nothing
call SetPlayerHandicapBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), 100.00 )
call ForForce( GetPlayersAll(), function Trig_Difficulty_1_Func002002 )
call SetPlayerHandicapXPBJ( Player(8), 100 )
endfunction
//===========================================================================
function InitTrig_Difficulty_1 takes nothing returns nothing
set gg_trg_Difficulty_1 = CreateTrigger( )
call TriggerRegisterVariableEvent( gg_trg_Difficulty_1, "udg_AutoDifficultyModifier", EQUAL, 1.00 )
call TriggerAddAction( gg_trg_Difficulty_1, function Trig_Difficulty_1_Actions )
endfunction
function Trig_Difficulty_2_Func002002 takes nothing returns nothing
call SetPlayerHandicapXPBJ( GetEnumPlayer(), 200.00 )
endfunction
function Trig_Difficulty_2_Actions takes nothing returns nothing
call SetPlayerHandicapBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), 200.00 )
call ForForce( GetPlayersAll(), function Trig_Difficulty_2_Func002002 )
call SetPlayerHandicapXPBJ( Player(8), 200.00 )
endfunction
//===========================================================================
function InitTrig_Difficulty_2 takes nothing returns nothing
set gg_trg_Difficulty_2 = CreateTrigger( )
call TriggerRegisterVariableEvent( gg_trg_Difficulty_2, "udg_AutoDifficultyModifier", EQUAL, 2.00 )
call TriggerAddAction( gg_trg_Difficulty_2, function Trig_Difficulty_2_Actions )
endfunction
function Trig_Difficulty_3_Func002002 takes nothing returns nothing
call SetPlayerHandicapXPBJ( GetEnumPlayer(), 300.00 )
endfunction
function Trig_Difficulty_3_Actions takes nothing returns nothing
call SetPlayerHandicapBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), 300.00 )
call ForForce( GetPlayersAll(), function Trig_Difficulty_3_Func002002 )
call SetPlayerHandicapXPBJ( Player(8), 300.00 )
endfunction
//===========================================================================
function InitTrig_Difficulty_3 takes nothing returns nothing
set gg_trg_Difficulty_3 = CreateTrigger( )
call TriggerRegisterVariableEvent( gg_trg_Difficulty_3, "udg_AutoDifficultyModifier", EQUAL, 3.00 )
call TriggerAddAction( gg_trg_Difficulty_3, function Trig_Difficulty_3_Actions )
endfunction
function Trig_Difficulty_4_Func002002 takes nothing returns nothing
call SetPlayerHandicapXPBJ( GetEnumPlayer(), 400.00 )
endfunction
function Trig_Difficulty_4_Actions takes nothing returns nothing
call SetPlayerHandicapBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), 400.00 )
call ForForce( GetPlayersAll(), function Trig_Difficulty_4_Func002002 )
call SetPlayerHandicapXPBJ( Player(8), 400.00 )
endfunction
//===========================================================================
function InitTrig_Difficulty_4 takes nothing returns nothing
set gg_trg_Difficulty_4 = CreateTrigger( )
call TriggerRegisterVariableEvent( gg_trg_Difficulty_4, "udg_AutoDifficultyModifier", EQUAL, 4.00 )
call TriggerAddAction( gg_trg_Difficulty_4, function Trig_Difficulty_4_Actions )
endfunction
function Trig_Difficulty_5_Func002002 takes nothing returns nothing
call SetPlayerHandicapXPBJ( GetEnumPlayer(), 500.00 )
endfunction
function Trig_Difficulty_5_Actions takes nothing returns nothing
call SetPlayerHandicapBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), 500.00 )
call ForForce( GetPlayersAll(), function Trig_Difficulty_5_Func002002 )
call SetPlayerHandicapXPBJ( Player(8), 500.00 )
endfunction
//===========================================================================
function InitTrig_Difficulty_5 takes nothing returns nothing
set gg_trg_Difficulty_5 = CreateTrigger( )
call TriggerRegisterVariableEvent( gg_trg_Difficulty_5, "udg_AutoDifficultyModifier", EQUAL, 5.00 )
call TriggerAddAction( gg_trg_Difficulty_5, function Trig_Difficulty_5_Actions )
endfunction
function Trig_Difficulty_6_Func002002 takes nothing returns nothing
call SetPlayerHandicapXPBJ( GetEnumPlayer(), 600.00 )
endfunction
function Trig_Difficulty_6_Actions takes nothing returns nothing
call SetPlayerHandicapBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), 600.00 )
call ForForce( GetPlayersAll(), function Trig_Difficulty_6_Func002002 )
call SetPlayerHandicapXPBJ( Player(8), 600.00 )
endfunction
//===========================================================================
function InitTrig_Difficulty_6 takes nothing returns nothing
set gg_trg_Difficulty_6 = CreateTrigger( )
call TriggerRegisterVariableEvent( gg_trg_Difficulty_6, "udg_AutoDifficultyModifier", EQUAL, 6.00 )
call TriggerAddAction( gg_trg_Difficulty_6, function Trig_Difficulty_6_Actions )
endfunction
function Trig_Difficulty_7_Func002002 takes nothing returns nothing
call SetPlayerHandicapXPBJ( GetEnumPlayer(), 700.00 )
endfunction
function Trig_Difficulty_7_Actions takes nothing returns nothing
call SetPlayerHandicapBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), 700.00 )
call ForForce( GetPlayersAll(), function Trig_Difficulty_7_Func002002 )
call SetPlayerHandicapXPBJ( Player(8), 700.00 )
endfunction
//===========================================================================
function InitTrig_Difficulty_7 takes nothing returns nothing
set gg_trg_Difficulty_7 = CreateTrigger( )
call TriggerRegisterVariableEvent( gg_trg_Difficulty_7, "udg_AutoDifficultyModifier", EQUAL, 7.00 )
call TriggerAddAction( gg_trg_Difficulty_7, function Trig_Difficulty_7_Actions )
endfunction
function Trig_Difficulty_8_Func002002 takes nothing returns nothing
call SetPlayerHandicapXPBJ( GetEnumPlayer(), 800.00 )
endfunction
function Trig_Difficulty_8_Actions takes nothing returns nothing
call SetPlayerHandicapBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), 800.00 )
call ForForce( GetPlayersAll(), function Trig_Difficulty_8_Func002002 )
call SetPlayerHandicapXPBJ( Player(8), 800.00 )
endfunction
//===========================================================================
function InitTrig_Difficulty_8 takes nothing returns nothing
set gg_trg_Difficulty_8 = CreateTrigger( )
call TriggerRegisterVariableEvent( gg_trg_Difficulty_8, "udg_AutoDifficultyModifier", EQUAL, 8.00 )
call TriggerAddAction( gg_trg_Difficulty_8, function Trig_Difficulty_8_Actions )
endfunction
function Trig_Difficulty_9_Func002002 takes nothing returns nothing
call SetPlayerHandicapXPBJ( GetEnumPlayer(), 900.00 )
endfunction
function Trig_Difficulty_9_Actions takes nothing returns nothing
call SetPlayerHandicapBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), 900.00 )
call ForForce( GetPlayersAll(), function Trig_Difficulty_9_Func002002 )
call SetPlayerHandicapXPBJ( Player(8), 900.00 )
endfunction
//===========================================================================
function InitTrig_Difficulty_9 takes nothing returns nothing
set gg_trg_Difficulty_9 = CreateTrigger( )
call TriggerRegisterVariableEvent( gg_trg_Difficulty_9, "udg_AutoDifficultyModifier", EQUAL, 9.00 )
call TriggerAddAction( gg_trg_Difficulty_9, function Trig_Difficulty_9_Actions )
endfunction
function Trig_Difficulty_10_Func002002 takes nothing returns nothing
call SetPlayerHandicapXPBJ( GetEnumPlayer(), 1000.00 )
endfunction
function Trig_Difficulty_10_Actions takes nothing returns nothing
call SetPlayerHandicapBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), 1000.00 )
call ForForce( GetPlayersAll(), function Trig_Difficulty_10_Func002002 )
call SetPlayerHandicapXPBJ( Player(8), 1000.00 )
endfunction
//===========================================================================
function InitTrig_Difficulty_10 takes nothing returns nothing
set gg_trg_Difficulty_10 = CreateTrigger( )
call TriggerRegisterVariableEvent( gg_trg_Difficulty_10, "udg_AutoDifficultyModifier", EQUAL, 10.00 )
call TriggerAddAction( gg_trg_Difficulty_10, function Trig_Difficulty_10_Actions )
endfunction
function Trig_Suicide_Func001001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Suicide_Func001A takes nothing returns nothing
call KillUnit( GetEnumUnit() )
call DisplayTextToForce( GetPlayersAll(), ( ( "|cffffCC00" + GetPlayerName(GetTriggerPlayer()) ) + "|r has committed suicide.|r" ) )
endfunction
function Trig_Suicide_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsOfPlayerMatching(GetTriggerPlayer(), Condition(function Trig_Suicide_Func001001002)), function Trig_Suicide_Func001A )
endfunction
//===========================================================================
function InitTrig_Suicide takes nothing returns nothing
set gg_trg_Suicide = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Suicide, Player(0), "-suicide", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Suicide, Player(1), "-suicide", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Suicide, Player(3), "-suicide", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Suicide, Player(4), "-suicide", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Suicide, Player(5), "-suicide", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Suicide, Player(6), "-suicide", true )
call TriggerAddAction( gg_trg_Suicide, function Trig_Suicide_Actions )
endfunction
function Trig_Player_1_Leaves_Func005001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Player_1_Leaves_Func005A takes nothing returns nothing
call UnitRemoveItemFromSlotSwapped( 1, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 2, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 3, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 4, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 5, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 6, GetEnumUnit() )
endfunction
function Trig_Player_1_Leaves_Func007002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Player_1_Leaves_Actions takes nothing returns nothing
call ForceRemovePlayerSimple( Player(0), udg_PlayerGroup )
set udg_AutoDifficultyModifier = ( udg_AutoDifficultyModifier - 1 )
call DisplayTextToForce( GetPlayersAll(), ( ( "|cffffCC00" + GetPlayerName(Player(0)) ) + "|r has left the game.|r" ) )
call PlaySoundBJ( gg_snd_QuestFailed )
call ForGroupBJ( GetUnitsOfPlayerMatching(Player(0), Condition(function Trig_Player_1_Leaves_Func005001002)), function Trig_Player_1_Leaves_Func005A )
call TriggerSleepAction( 0.20 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(0)), function Trig_Player_1_Leaves_Func007002 )
endfunction
//===========================================================================
function InitTrig_Player_1_Leaves takes nothing returns nothing
set gg_trg_Player_1_Leaves = CreateTrigger( )
call TriggerRegisterPlayerEventLeave( gg_trg_Player_1_Leaves, Player(0) )
call TriggerAddAction( gg_trg_Player_1_Leaves, function Trig_Player_1_Leaves_Actions )
endfunction
function Trig_Player_2_Leaves_Func005001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Player_2_Leaves_Func005A takes nothing returns nothing
call UnitRemoveItemFromSlotSwapped( 1, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 2, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 3, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 4, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 5, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 6, GetEnumUnit() )
endfunction
function Trig_Player_2_Leaves_Func007002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Player_2_Leaves_Actions takes nothing returns nothing
call ForceRemovePlayerSimple( Player(1), udg_PlayerGroup )
set udg_AutoDifficultyModifier = ( udg_AutoDifficultyModifier - 1 )
call DisplayTextToForce( GetPlayersAll(), ( ( "|cffffCC00" + GetPlayerName(Player(1)) ) + "|r has left the game.|r" ) )
call PlaySoundBJ( gg_snd_QuestFailed )
call ForGroupBJ( GetUnitsOfPlayerMatching(Player(1), Condition(function Trig_Player_2_Leaves_Func005001002)), function Trig_Player_2_Leaves_Func005A )
call TriggerSleepAction( 0.20 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(1)), function Trig_Player_2_Leaves_Func007002 )
endfunction
//===========================================================================
function InitTrig_Player_2_Leaves takes nothing returns nothing
set gg_trg_Player_2_Leaves = CreateTrigger( )
call TriggerRegisterPlayerEventLeave( gg_trg_Player_2_Leaves, Player(1) )
call TriggerAddAction( gg_trg_Player_2_Leaves, function Trig_Player_2_Leaves_Actions )
endfunction
function Trig_Player_4_Leaves_Func005001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Player_4_Leaves_Func005A takes nothing returns nothing
call UnitRemoveItemFromSlotSwapped( 1, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 2, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 3, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 4, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 5, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 6, GetEnumUnit() )
endfunction
function Trig_Player_4_Leaves_Func007002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Player_4_Leaves_Actions takes nothing returns nothing
call ForceRemovePlayerSimple( Player(3), udg_PlayerGroup )
set udg_AutoDifficultyModifier = ( udg_AutoDifficultyModifier - 1 )
call DisplayTextToForce( GetPlayersAll(), ( ( "|cffffCC00" + GetPlayerName(Player(3)) ) + "|r has left the game.|r" ) )
call PlaySoundBJ( gg_snd_QuestFailed )
call ForGroupBJ( GetUnitsOfPlayerMatching(Player(3), Condition(function Trig_Player_4_Leaves_Func005001002)), function Trig_Player_4_Leaves_Func005A )
call TriggerSleepAction( 0.20 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(3)), function Trig_Player_4_Leaves_Func007002 )
endfunction
//===========================================================================
function InitTrig_Player_4_Leaves takes nothing returns nothing
set gg_trg_Player_4_Leaves = CreateTrigger( )
call TriggerRegisterPlayerEventLeave( gg_trg_Player_4_Leaves, Player(3) )
call TriggerAddAction( gg_trg_Player_4_Leaves, function Trig_Player_4_Leaves_Actions )
endfunction
function Trig_Player_5_Leaves_Func005001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Player_5_Leaves_Func005A takes nothing returns nothing
call UnitRemoveItemFromSlotSwapped( 1, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 2, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 3, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 4, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 5, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 6, GetEnumUnit() )
endfunction
function Trig_Player_5_Leaves_Func007002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Player_5_Leaves_Actions takes nothing returns nothing
call ForceRemovePlayerSimple( Player(4), udg_PlayerGroup )
set udg_AutoDifficultyModifier = ( udg_AutoDifficultyModifier - 1 )
call DisplayTextToForce( GetPlayersAll(), ( ( "|cffffCC00" + GetPlayerName(Player(4)) ) + "|r has left the game.|r" ) )
call PlaySoundBJ( gg_snd_QuestFailed )
call ForGroupBJ( GetUnitsOfPlayerMatching(Player(4), Condition(function Trig_Player_5_Leaves_Func005001002)), function Trig_Player_5_Leaves_Func005A )
call TriggerSleepAction( 0.20 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(4)), function Trig_Player_5_Leaves_Func007002 )
endfunction
//===========================================================================
function InitTrig_Player_5_Leaves takes nothing returns nothing
set gg_trg_Player_5_Leaves = CreateTrigger( )
call TriggerRegisterPlayerEventLeave( gg_trg_Player_5_Leaves, Player(4) )
call TriggerAddAction( gg_trg_Player_5_Leaves, function Trig_Player_5_Leaves_Actions )
endfunction
function Trig_Player_6_Leaves_Func005001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Player_6_Leaves_Func005A takes nothing returns nothing
call UnitRemoveItemFromSlotSwapped( 1, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 2, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 3, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 4, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 5, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 6, GetEnumUnit() )
endfunction
function Trig_Player_6_Leaves_Func007002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Player_6_Leaves_Actions takes nothing returns nothing
call ForceRemovePlayerSimple( Player(5), udg_PlayerGroup )
set udg_AutoDifficultyModifier = ( udg_AutoDifficultyModifier - 1 )
call DisplayTextToForce( GetPlayersAll(), ( ( "|cffffCC00" + GetPlayerName(Player(5)) ) + "|r has left the game.|r" ) )
call PlaySoundBJ( gg_snd_QuestFailed )
call ForGroupBJ( GetUnitsOfPlayerMatching(Player(5), Condition(function Trig_Player_6_Leaves_Func005001002)), function Trig_Player_6_Leaves_Func005A )
call TriggerSleepAction( 0.20 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(5)), function Trig_Player_6_Leaves_Func007002 )
endfunction
//===========================================================================
function InitTrig_Player_6_Leaves takes nothing returns nothing
set gg_trg_Player_6_Leaves = CreateTrigger( )
call TriggerRegisterPlayerEventLeave( gg_trg_Player_6_Leaves, Player(5) )
call TriggerAddAction( gg_trg_Player_6_Leaves, function Trig_Player_6_Leaves_Actions )
endfunction
function Trig_Player_7_Leaves_Func005001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Player_7_Leaves_Func005A takes nothing returns nothing
call UnitRemoveItemFromSlotSwapped( 1, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 2, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 3, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 4, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 5, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 6, GetEnumUnit() )
endfunction
function Trig_Player_7_Leaves_Func007002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Player_7_Leaves_Actions takes nothing returns nothing
call ForceRemovePlayerSimple( Player(6), udg_PlayerGroup )
set udg_AutoDifficultyModifier = ( udg_AutoDifficultyModifier - 1 )
call DisplayTextToForce( GetPlayersAll(), ( ( "|cffffCC00" + GetPlayerName(Player(6)) ) + "|r has left the game.|r" ) )
call PlaySoundBJ( gg_snd_QuestFailed )
call ForGroupBJ( GetUnitsOfPlayerMatching(Player(6), Condition(function Trig_Player_7_Leaves_Func005001002)), function Trig_Player_7_Leaves_Func005A )
call TriggerSleepAction( 0.20 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(6)), function Trig_Player_7_Leaves_Func007002 )
endfunction
//===========================================================================
function InitTrig_Player_7_Leaves takes nothing returns nothing
set gg_trg_Player_7_Leaves = CreateTrigger( )
call TriggerRegisterPlayerEventLeave( gg_trg_Player_7_Leaves, Player(6) )
call TriggerAddAction( gg_trg_Player_7_Leaves, function Trig_Player_7_Leaves_Actions )
endfunction
function Trig_Kick_Player_2_Func006001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Kick_Player_2_Func006A takes nothing returns nothing
call UnitRemoveItemFromSlotSwapped( 1, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 2, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 3, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 4, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 5, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 6, GetEnumUnit() )
endfunction
function Trig_Kick_Player_2_Func008002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Kick_Player_2_Actions takes nothing returns nothing
call CustomDefeatBJ( Player(1), "TRIGSTR_3388" )
call ForceRemovePlayerSimple( Player(1), udg_PlayerGroup )
set udg_AutoDifficultyModifier = ( udg_AutoDifficultyModifier - 1 )
call DisplayTextToForce( GetPlayersAll(), ( ( "|cffffCC00" + GetPlayerName(Player(1)) ) + "|r was kicked from the game.|r" ) )
call PlaySoundBJ( gg_snd_QuestFailed )
call ForGroupBJ( GetUnitsOfPlayerMatching(Player(1), Condition(function Trig_Kick_Player_2_Func006001002)), function Trig_Kick_Player_2_Func006A )
call TriggerSleepAction( 0.20 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(1)), function Trig_Kick_Player_2_Func008002 )
endfunction
//===========================================================================
function InitTrig_Kick_Player_2 takes nothing returns nothing
set gg_trg_Kick_Player_2 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Kick_Player_2, Player(0), "-kick blue", false )
call TriggerAddAction( gg_trg_Kick_Player_2, function Trig_Kick_Player_2_Actions )
endfunction
function Trig_Kick_Player_4_Func007001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Kick_Player_4_Func007A takes nothing returns nothing
call UnitRemoveItemFromSlotSwapped( 1, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 2, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 3, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 4, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 5, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 6, GetEnumUnit() )
endfunction
function Trig_Kick_Player_4_Func009002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Kick_Player_4_Actions takes nothing returns nothing
call CustomDefeatBJ( Player(3), "TRIGSTR_3389" )
call ForceRemovePlayerSimple( Player(3), udg_PlayerGroup )
set udg_AutoDifficultyModifier = ( udg_AutoDifficultyModifier - 1 )
call DisplayTextToForce( GetPlayersAll(), ( ( "|cffffCC00" + GetPlayerName(Player(3)) ) + "|r was kicked from the game.|r" ) )
call PlaySoundBJ( gg_snd_QuestFailed )
call ForGroupBJ( GetUnitsOfPlayerMatching(Player(3), Condition(function Trig_Kick_Player_4_Func007001002)), function Trig_Kick_Player_4_Func007A )
call TriggerSleepAction( 0.20 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(3)), function Trig_Kick_Player_4_Func009002 )
endfunction
//===========================================================================
function InitTrig_Kick_Player_4 takes nothing returns nothing
set gg_trg_Kick_Player_4 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Kick_Player_4, Player(0), "-kick purple", false )
call TriggerAddAction( gg_trg_Kick_Player_4, function Trig_Kick_Player_4_Actions )
endfunction
function Trig_Kick_Player_5_Func007001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Kick_Player_5_Func007A takes nothing returns nothing
call UnitRemoveItemFromSlotSwapped( 1, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 2, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 3, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 4, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 5, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 6, GetEnumUnit() )
endfunction
function Trig_Kick_Player_5_Func009002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Kick_Player_5_Actions takes nothing returns nothing
call CustomDefeatBJ( Player(4), "TRIGSTR_3390" )
call ForceRemovePlayerSimple( Player(4), udg_PlayerGroup )
set udg_AutoDifficultyModifier = ( udg_AutoDifficultyModifier - 1 )
call DisplayTextToForce( GetPlayersAll(), ( ( "|cffffCC00" + GetPlayerName(Player(4)) ) + "|r was kicked from the game.|r" ) )
call PlaySoundBJ( gg_snd_QuestFailed )
call ForGroupBJ( GetUnitsOfPlayerMatching(Player(4), Condition(function Trig_Kick_Player_5_Func007001002)), function Trig_Kick_Player_5_Func007A )
call TriggerSleepAction( 0.20 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(4)), function Trig_Kick_Player_5_Func009002 )
endfunction
//===========================================================================
function InitTrig_Kick_Player_5 takes nothing returns nothing
set gg_trg_Kick_Player_5 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Kick_Player_5, Player(0), "-kick yellow", false )
call TriggerAddAction( gg_trg_Kick_Player_5, function Trig_Kick_Player_5_Actions )
endfunction
function Trig_Kick_Player_6_Func007001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Kick_Player_6_Func007A takes nothing returns nothing
call UnitRemoveItemFromSlotSwapped( 1, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 2, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 3, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 4, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 5, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 6, GetEnumUnit() )
endfunction
function Trig_Kick_Player_6_Func009002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Kick_Player_6_Actions takes nothing returns nothing
call CustomDefeatBJ( Player(5), "TRIGSTR_3391" )
call ForceRemovePlayerSimple( Player(5), udg_PlayerGroup )
set udg_AutoDifficultyModifier = ( udg_AutoDifficultyModifier - 1 )
call DisplayTextToForce( GetPlayersAll(), ( ( "|cffffCC00" + GetPlayerName(Player(5)) ) + "|r was kicked from the game.|r" ) )
call PlaySoundBJ( gg_snd_QuestFailed )
call ForGroupBJ( GetUnitsOfPlayerMatching(Player(5), Condition(function Trig_Kick_Player_6_Func007001002)), function Trig_Kick_Player_6_Func007A )
call TriggerSleepAction( 0.20 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(5)), function Trig_Kick_Player_6_Func009002 )
endfunction
//===========================================================================
function InitTrig_Kick_Player_6 takes nothing returns nothing
set gg_trg_Kick_Player_6 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Kick_Player_6, Player(0), "-kick orange", false )
call TriggerAddAction( gg_trg_Kick_Player_6, function Trig_Kick_Player_6_Actions )
endfunction
function Trig_Kick_Player_7_Func007001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Kick_Player_7_Func007A takes nothing returns nothing
call UnitRemoveItemFromSlotSwapped( 1, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 2, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 3, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 4, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 5, GetEnumUnit() )
call UnitRemoveItemFromSlotSwapped( 6, GetEnumUnit() )
endfunction
function Trig_Kick_Player_7_Func009002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Kick_Player_7_Actions takes nothing returns nothing
call CustomDefeatBJ( Player(6), "TRIGSTR_3392" )
call ForceRemovePlayerSimple( Player(6), udg_PlayerGroup )
set udg_AutoDifficultyModifier = ( udg_AutoDifficultyModifier - 1 )
call DisplayTextToForce( GetPlayersAll(), ( ( "|cffffCC00" + GetPlayerName(Player(6)) ) + "|r was kicked from the game.|r" ) )
call PlaySoundBJ( gg_snd_QuestFailed )
call ForGroupBJ( GetUnitsOfPlayerMatching(Player(6), Condition(function Trig_Kick_Player_7_Func007001002)), function Trig_Kick_Player_7_Func007A )
call TriggerSleepAction( 0.20 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(6)), function Trig_Kick_Player_7_Func009002 )
endfunction
//===========================================================================
function InitTrig_Kick_Player_7 takes nothing returns nothing
set gg_trg_Kick_Player_7 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Kick_Player_7, Player(0), "-kick green", false )
call TriggerAddAction( gg_trg_Kick_Player_7, function Trig_Kick_Player_7_Actions )
endfunction
function Trig_The_Hireling_Counter_Func002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_The_Hireling_Counter_Func002A takes nothing returns nothing
set udg_HirelingCounter = ( udg_HirelingCounter + 1 )
endfunction
function Trig_The_Hireling_Counter_Actions takes nothing returns nothing
set udg_HirelingCounter = 0.00
call ForGroupBJ( GetUnitsOfPlayerMatching(Player(8), Condition(function Trig_The_Hireling_Counter_Func002001002)), function Trig_The_Hireling_Counter_Func002A )
endfunction
//===========================================================================
function InitTrig_The_Hireling_Counter takes nothing returns nothing
set gg_trg_The_Hireling_Counter = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_The_Hireling_Counter, 2.00 )
call TriggerAddAction( gg_trg_The_Hireling_Counter, function Trig_The_Hireling_Counter_Actions )
endfunction
function Trig_Watchman_Joins_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A034' ) ) then
return false
endif
if ( not ( udg_HirelingCounter <= 1.00 ) ) then
return false
endif
return true
endfunction
function Trig_Watchman_Joins_Func002001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'U00A' )
endfunction
function Trig_Watchman_Joins_Func002Func003001001 takes nothing returns boolean
return ( IsUnitSelected(GetSpellAbilityUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Watchman_Joins_Func002Func003002 takes nothing returns nothing
call SelectUnitAdd( GetEnumUnit() )
endfunction
function Trig_Watchman_Joins_Func002A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Watchman_Default) )
call SetUnitOwner( GetEnumUnit(), Player(8), false )
call ForForce( GetPlayersMatching(Condition(function Trig_Watchman_Joins_Func002Func003001001)), function Trig_Watchman_Joins_Func002Func003002 )
endfunction
function Trig_Watchman_Joins_Func003001001 takes nothing returns boolean
return ( IsUnitSelected(GetSpellAbilityUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Watchman_Joins_Func003002 takes nothing returns nothing
call SelectUnitRemove( GetSpellAbilityUnit() )
endfunction
function Trig_Watchman_Joins_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetSpellAbilityUnit(), GetRectCenter(gg_rct_Watchman_Storage) )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Watchman_Joins_Func002001002)), function Trig_Watchman_Joins_Func002A )
call ForForce( GetPlayersMatching(Condition(function Trig_Watchman_Joins_Func003001001)), function Trig_Watchman_Joins_Func003002 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1663" )
set udg_AutoDifficultyModifier = ( udg_AutoDifficultyModifier + 1 )
set udg_SamJoined = true
call PolledWait( 0.10 )
set udg_HirelingCounter = ( udg_HirelingCounter + 1 )
call EnableTrigger( gg_trg_Watchman_Leaves )
endfunction
//===========================================================================
function InitTrig_Watchman_Joins takes nothing returns nothing
set gg_trg_Watchman_Joins = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Watchman_Joins, Player(11), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Watchman_Joins, Condition( function Trig_Watchman_Joins_Conditions ) )
call TriggerAddAction( gg_trg_Watchman_Joins, function Trig_Watchman_Joins_Actions )
endfunction
function Trig_Party_Full_Watchman_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A034' ) ) then
return false
endif
if ( not ( udg_HirelingCounter >= 2.00 ) ) then
return false
endif
return true
endfunction
function Trig_Party_Full_Watchman_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6011" )
endfunction
//===========================================================================
function InitTrig_Party_Full_Watchman takes nothing returns nothing
set gg_trg_Party_Full_Watchman = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Party_Full_Watchman, Player(11), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Party_Full_Watchman, Condition( function Trig_Party_Full_Watchman_Conditions ) )
call TriggerAddAction( gg_trg_Party_Full_Watchman, function Trig_Party_Full_Watchman_Actions )
endfunction
function Trig_Watchman_Leaves_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A03B' ) ) then
return false
endif
return true
endfunction
function Trig_Watchman_Leaves_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1725" )
call SetUnitOwner( udg_Watchman, Player(7), false )
call IssuePointOrderLocBJ( udg_Watchman, "move", GetRectCenter(gg_rct_Watchman_Default) )
call EnableTrigger( gg_trg_Watchman_Runs )
set udg_HirelingExpGraves = GetHeroXP(udg_Watchman)
set udg_HirelingHPGraves = GetUnitLifePercent(udg_Watchman)
set udg_HirelingMPGraves = GetUnitManaPercent(udg_Watchman)
set udg_SamJoined = false
endfunction
//===========================================================================
function InitTrig_Watchman_Leaves takes nothing returns nothing
set gg_trg_Watchman_Leaves = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Watchman_Leaves, Player(8), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Watchman_Leaves, Condition( function Trig_Watchman_Leaves_Conditions ) )
call TriggerAddAction( gg_trg_Watchman_Leaves, function Trig_Watchman_Leaves_Actions )
endfunction
function Trig_Watchman_Dies_Conditions takes nothing returns boolean
if ( not ( GetDyingUnit() == udg_Watchman ) ) then
return false
endif
return true
endfunction
function Trig_Watchman_Dies_Actions takes nothing returns nothing
set udg_SamJoined = false
call TriggerSleepAction( 2.00 )
call ReviveHeroLoc( udg_Watchman, GetRectCenter(gg_rct_Revival), true )
call SetUnitOwner( udg_Watchman, Player(7), false )
call IssuePointOrderLocBJ( udg_Watchman, "move", GetRectCenter(gg_rct_Watchman_Rallypoint) )
call EnableTrigger( gg_trg_Watchman_Runs )
set udg_HirelingExpGraves = GetHeroXP(udg_Watchman)
set udg_HirelingHPGraves = GetUnitLifePercent(udg_Watchman)
set udg_HirelingMPGraves = GetUnitManaPercent(udg_Watchman)
call EnableTrigger( gg_trg_Watchman_Leaves )
endfunction
//===========================================================================
function InitTrig_Watchman_Dies takes nothing returns nothing
set gg_trg_Watchman_Dies = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Watchman_Dies, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Watchman_Dies, Condition( function Trig_Watchman_Dies_Conditions ) )
call TriggerAddAction( gg_trg_Watchman_Dies, function Trig_Watchman_Dies_Actions )
endfunction
function Trig_Watchman_Lives_Conditions takes nothing returns boolean
if ( not ( GetEnteringUnit() == udg_Watchman ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(7) ) ) then
return false
endif
return true
endfunction
function Trig_Watchman_Lives_Func006001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'U00B' )
endfunction
function Trig_Watchman_Lives_Func006A takes nothing returns nothing
call SetHeroXP( GetEnumUnit(), udg_HirelingExpGraves, false )
call SetUnitLifePercentBJ( GetEnumUnit(), udg_HirelingHPGraves )
call SetUnitManaPercentBJ( GetEnumUnit(), udg_HirelingMPGraves )
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Watchman_Default) )
endfunction
function Trig_Watchman_Lives_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Watchman_Runs )
call DisableTrigger( gg_trg_Watchman_Walks )
set udg_AutoDifficultyModifier = ( udg_AutoDifficultyModifier - 1 )
set udg_HirelingCounter = ( udg_HirelingCounter - 1 )
call SetUnitPositionLocFacingBJ( GetEnteringUnit(), GetRectCenter(gg_rct_Watchman_Hiding), 300.00 )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Watchman_Lives_Func006001002)), function Trig_Watchman_Lives_Func006A )
endfunction
//===========================================================================
function InitTrig_Watchman_Lives takes nothing returns nothing
set gg_trg_Watchman_Lives = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Watchman_Lives, gg_rct_Watchman_Default )
call TriggerAddCondition( gg_trg_Watchman_Lives, Condition( function Trig_Watchman_Lives_Conditions ) )
call TriggerAddAction( gg_trg_Watchman_Lives, function Trig_Watchman_Lives_Actions )
endfunction
function Trig_Watchman_Rally_Conditions takes nothing returns boolean
if ( not ( GetEnteringUnit() == udg_Watchman ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(7) ) ) then
return false
endif
return true
endfunction
function Trig_Watchman_Rally_Actions takes nothing returns nothing
call IssuePointOrderLocBJ( udg_Watchman, "move", GetRectCenter(gg_rct_Watchman_Default) )
call DisableTrigger( gg_trg_Watchman_Runs )
call EnableTrigger( gg_trg_Watchman_Walks )
endfunction
//===========================================================================
function InitTrig_Watchman_Rally takes nothing returns nothing
set gg_trg_Watchman_Rally = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Watchman_Rally, gg_rct_Watchman_Rallypoint )
call TriggerAddCondition( gg_trg_Watchman_Rally, Condition( function Trig_Watchman_Rally_Conditions ) )
call TriggerAddAction( gg_trg_Watchman_Rally, function Trig_Watchman_Rally_Actions )
endfunction
function Trig_Watchman_Runs_Actions takes nothing returns nothing
call IssuePointOrderLocBJ( udg_Watchman, "move", GetRectCenter(gg_rct_Watchman_Rallypoint) )
endfunction
//===========================================================================
function InitTrig_Watchman_Runs takes nothing returns nothing
set gg_trg_Watchman_Runs = CreateTrigger( )
call DisableTrigger( gg_trg_Watchman_Runs )
call TriggerRegisterTimerEventPeriodic( gg_trg_Watchman_Runs, 5.00 )
call TriggerAddAction( gg_trg_Watchman_Runs, function Trig_Watchman_Runs_Actions )
endfunction
function Trig_Watchman_Walks_Actions takes nothing returns nothing
call IssuePointOrderLocBJ( udg_Watchman, "move", GetRectCenter(gg_rct_Watchman_Default) )
endfunction
//===========================================================================
function InitTrig_Watchman_Walks takes nothing returns nothing
set gg_trg_Watchman_Walks = CreateTrigger( )
call DisableTrigger( gg_trg_Watchman_Walks )
call TriggerRegisterTimerEventPeriodic( gg_trg_Watchman_Walks, 5.00 )
call TriggerAddAction( gg_trg_Watchman_Walks, function Trig_Watchman_Walks_Actions )
endfunction
function Trig_Dividing_the_Loot_Actions takes nothing returns nothing
call SetPlayerTaxRateBJ( 100, PLAYER_STATE_RESOURCE_GOLD, Player(8), udg_Beggar )
endfunction
//===========================================================================
function InitTrig_Dividing_the_Loot takes nothing returns nothing
set gg_trg_Dividing_the_Loot = CreateTrigger( )
call TriggerAddAction( gg_trg_Dividing_the_Loot, function Trig_Dividing_the_Loot_Actions )
endfunction
function Trig_Ravager_Joins_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0BP' ) ) then
return false
endif
if ( not ( udg_HirelingCounter <= 1.00 ) ) then
return false
endif
return true
endfunction
function Trig_Ravager_Joins_Func002001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'O00O' )
endfunction
function Trig_Ravager_Joins_Func002Func003001001 takes nothing returns boolean
return ( IsUnitSelected(GetSpellAbilityUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Ravager_Joins_Func002Func003002 takes nothing returns nothing
call SelectUnitAdd( GetEnumUnit() )
endfunction
function Trig_Ravager_Joins_Func002A takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Colonel_Belganon), GetRectCenter(gg_rct_Ravager_Rally) )
call SetUnitOwner( GetEnumUnit(), Player(8), false )
call ForForce( GetPlayersMatching(Condition(function Trig_Ravager_Joins_Func002Func003001001)), function Trig_Ravager_Joins_Func002Func003002 )
endfunction
function Trig_Ravager_Joins_Func003001001 takes nothing returns boolean
return ( IsUnitSelected(GetSpellAbilityUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Ravager_Joins_Func003002 takes nothing returns nothing
call SelectUnitRemove( GetSpellAbilityUnit() )
endfunction
function Trig_Ravager_Joins_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetSpellAbilityUnit(), GetRectCenter(gg_rct_Ravager_Storage) )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Ravager_Joins_Func002001002)), function Trig_Ravager_Joins_Func002A )
call ForForce( GetPlayersMatching(Condition(function Trig_Ravager_Joins_Func003001001)), function Trig_Ravager_Joins_Func003002 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6114" )
set udg_AutoDifficultyModifier = ( udg_AutoDifficultyModifier + 1 )
call PolledWait( 0.10 )
set udg_HirelingCounter = ( udg_HirelingCounter + 1 )
call EnableTrigger( gg_trg_Ravager_Leaves )
endfunction
//===========================================================================
function InitTrig_Ravager_Joins takes nothing returns nothing
set gg_trg_Ravager_Joins = CreateTrigger( )
call DisableTrigger( gg_trg_Ravager_Joins )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Ravager_Joins, Player(11), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Ravager_Joins, Condition( function Trig_Ravager_Joins_Conditions ) )
call TriggerAddAction( gg_trg_Ravager_Joins, function Trig_Ravager_Joins_Actions )
endfunction
function Trig_Party_Full_Ravager_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0BP' ) ) then
return false
endif
if ( not ( udg_HirelingCounter >= 2.00 ) ) then
return false
endif
return true
endfunction
function Trig_Party_Full_Ravager_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6115" )
endfunction
//===========================================================================
function InitTrig_Party_Full_Ravager takes nothing returns nothing
set gg_trg_Party_Full_Ravager = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Party_Full_Ravager, Player(11), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Party_Full_Ravager, Condition( function Trig_Party_Full_Ravager_Conditions ) )
call TriggerAddAction( gg_trg_Party_Full_Ravager, function Trig_Party_Full_Ravager_Actions )
endfunction
function Trig_Ravager_Leaves_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0BQ' ) ) then
return false
endif
return true
endfunction
function Trig_Ravager_Leaves_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6116" )
call SetUnitOwner( udg_Ravager, Player(7), false )
call IssuePointOrderLocBJ( udg_Ravager, "move", GetRectCenter(gg_rct_Colonel_Belganon) )
call EnableTrigger( gg_trg_Ravager_Runs )
set udg_HirelingExpAtrox = GetHeroXP(udg_Ravager)
set udg_HirelingHPAtrox = GetUnitLifePercent(udg_Ravager)
set udg_HirelingMPAtrox = GetUnitManaPercent(udg_Ravager)
endfunction
//===========================================================================
function InitTrig_Ravager_Leaves takes nothing returns nothing
set gg_trg_Ravager_Leaves = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Ravager_Leaves, Player(8), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Ravager_Leaves, Condition( function Trig_Ravager_Leaves_Conditions ) )
call TriggerAddAction( gg_trg_Ravager_Leaves, function Trig_Ravager_Leaves_Actions )
endfunction
function Trig_Ravager_Dies_Conditions takes nothing returns boolean
if ( not ( GetDyingUnit() == udg_Ravager ) ) then
return false
endif
return true
endfunction
function Trig_Ravager_Dies_Actions takes nothing returns nothing
call TriggerSleepAction( 2.00 )
call ReviveHeroLoc( udg_Ravager, GetRectCenter(gg_rct_Revival), true )
call SetUnitOwner( udg_Ravager, Player(7), false )
call IssuePointOrderLocBJ( udg_Ravager, "move", GetRectCenter(gg_rct_Watchman_Rallypoint) )
call EnableTrigger( gg_trg_Ravager_Runs )
set udg_HirelingExpAtrox = GetHeroXP(udg_Ravager)
set udg_HirelingHPAtrox = GetUnitLifePercent(udg_Ravager)
set udg_HirelingMPAtrox = GetUnitManaPercent(udg_Ravager)
call EnableTrigger( gg_trg_Ravager_Leaves )
endfunction
//===========================================================================
function InitTrig_Ravager_Dies takes nothing returns nothing
set gg_trg_Ravager_Dies = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Ravager_Dies, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Ravager_Dies, Condition( function Trig_Ravager_Dies_Conditions ) )
call TriggerAddAction( gg_trg_Ravager_Dies, function Trig_Ravager_Dies_Actions )
endfunction
function Trig_Ravager_Lives_Conditions takes nothing returns boolean
if ( not ( GetEnteringUnit() == udg_Ravager ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(7) ) ) then
return false
endif
return true
endfunction
function Trig_Ravager_Lives_Func006001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'O00P' )
endfunction
function Trig_Ravager_Lives_Func006A takes nothing returns nothing
call SetHeroXP( GetEnumUnit(), udg_HirelingExpAtrox, false )
call SetUnitLifePercentBJ( GetEnumUnit(), udg_HirelingHPAtrox )
call SetUnitManaPercentBJ( GetEnumUnit(), udg_HirelingMPAtrox )
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Colonel_Belganon), GetRectCenter(gg_rct_Ravager_Rally) )
endfunction
function Trig_Ravager_Lives_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Ravager_Runs )
call DisableTrigger( gg_trg_Ravager_Walks )
set udg_AutoDifficultyModifier = ( udg_AutoDifficultyModifier - 1 )
set udg_HirelingCounter = ( udg_HirelingCounter - 1 )
call SetUnitPositionLocFacingBJ( GetEnteringUnit(), GetRectCenter(gg_rct_Ravager_Hiding), 300.00 )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Ravager_Lives_Func006001002)), function Trig_Ravager_Lives_Func006A )
endfunction
//===========================================================================
function InitTrig_Ravager_Lives takes nothing returns nothing
set gg_trg_Ravager_Lives = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Ravager_Lives, gg_rct_Colonel_Belganon )
call TriggerAddCondition( gg_trg_Ravager_Lives, Condition( function Trig_Ravager_Lives_Conditions ) )
call TriggerAddAction( gg_trg_Ravager_Lives, function Trig_Ravager_Lives_Actions )
endfunction
function Trig_Ravager_Rally_Conditions takes nothing returns boolean
if ( not ( GetEnteringUnit() == udg_Ravager ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(7) ) ) then
return false
endif
return true
endfunction
function Trig_Ravager_Rally_Actions takes nothing returns nothing
call IssuePointOrderLocBJ( udg_Ravager, "move", GetRectCenter(gg_rct_Colonel_Belganon) )
call DisableTrigger( gg_trg_Ravager_Runs )
call EnableTrigger( gg_trg_Ravager_Walks )
endfunction
//===========================================================================
function InitTrig_Ravager_Rally takes nothing returns nothing
set gg_trg_Ravager_Rally = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Ravager_Rally, gg_rct_Ravager_Rally )
call TriggerAddCondition( gg_trg_Ravager_Rally, Condition( function Trig_Ravager_Rally_Conditions ) )
call TriggerAddAction( gg_trg_Ravager_Rally, function Trig_Ravager_Rally_Actions )
endfunction
function Trig_Ravager_Runs_Actions takes nothing returns nothing
call IssuePointOrderLocBJ( udg_Ravager, "move", GetRectCenter(gg_rct_Ravager_Rally) )
endfunction
//===========================================================================
function InitTrig_Ravager_Runs takes nothing returns nothing
set gg_trg_Ravager_Runs = CreateTrigger( )
call DisableTrigger( gg_trg_Ravager_Runs )
call TriggerRegisterTimerEventPeriodic( gg_trg_Ravager_Runs, 5.00 )
call TriggerAddAction( gg_trg_Ravager_Runs, function Trig_Ravager_Runs_Actions )
endfunction
function Trig_Ravager_Walks_Actions takes nothing returns nothing
call IssuePointOrderLocBJ( udg_Ravager, "move", GetRectCenter(gg_rct_Colonel_Belganon) )
endfunction
//===========================================================================
function InitTrig_Ravager_Walks takes nothing returns nothing
set gg_trg_Ravager_Walks = CreateTrigger( )
call DisableTrigger( gg_trg_Ravager_Walks )
call TriggerRegisterTimerEventPeriodic( gg_trg_Ravager_Walks, 5.00 )
call TriggerAddAction( gg_trg_Ravager_Walks, function Trig_Ravager_Walks_Actions )
endfunction
function Trig_Gladiator_Joins_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A05S' ) ) then
return false
endif
if ( not ( udg_HirelingCounter <= 1.00 ) ) then
return false
endif
return true
endfunction
function Trig_Gladiator_Joins_Func002001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'H00K' )
endfunction
function Trig_Gladiator_Joins_Func002Func003001001 takes nothing returns boolean
return ( IsUnitSelected(GetSpellAbilityUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Gladiator_Joins_Func002Func003002 takes nothing returns nothing
call SelectUnitAdd( GetEnumUnit() )
endfunction
function Trig_Gladiator_Joins_Func002A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Loki_Default) )
call SetUnitOwner( GetEnumUnit(), Player(8), false )
call ForForce( GetPlayersMatching(Condition(function Trig_Gladiator_Joins_Func002Func003001001)), function Trig_Gladiator_Joins_Func002Func003002 )
endfunction
function Trig_Gladiator_Joins_Func003001001 takes nothing returns boolean
return ( IsUnitSelected(GetSpellAbilityUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Gladiator_Joins_Func003002 takes nothing returns nothing
call SelectUnitRemove( GetSpellAbilityUnit() )
endfunction
function Trig_Gladiator_Joins_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetSpellAbilityUnit(), GetRectCenter(gg_rct_Gladiator_Storage) )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Gladiator_Joins_Func002001002)), function Trig_Gladiator_Joins_Func002A )
call ForForce( GetPlayersMatching(Condition(function Trig_Gladiator_Joins_Func003001001)), function Trig_Gladiator_Joins_Func003002 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_3244" )
set udg_AutoDifficultyModifier = ( udg_AutoDifficultyModifier + 1 )
call PolledWait( 0.10 )
set udg_HirelingCounter = ( udg_HirelingCounter + 1 )
call EnableTrigger( gg_trg_Gladiator_Leaves )
endfunction
//===========================================================================
function InitTrig_Gladiator_Joins takes nothing returns nothing
set gg_trg_Gladiator_Joins = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Gladiator_Joins, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Gladiator_Joins, Condition( function Trig_Gladiator_Joins_Conditions ) )
call TriggerAddAction( gg_trg_Gladiator_Joins, function Trig_Gladiator_Joins_Actions )
endfunction
function Trig_Party_Full_Gladiator_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A05S' ) ) then
return false
endif
if ( not ( udg_HirelingCounter >= 2.00 ) ) then
return false
endif
return true
endfunction
function Trig_Party_Full_Gladiator_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6012" )
endfunction
//===========================================================================
function InitTrig_Party_Full_Gladiator takes nothing returns nothing
set gg_trg_Party_Full_Gladiator = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Party_Full_Gladiator, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Party_Full_Gladiator, Condition( function Trig_Party_Full_Gladiator_Conditions ) )
call TriggerAddAction( gg_trg_Party_Full_Gladiator, function Trig_Party_Full_Gladiator_Actions )
endfunction
function Trig_Gladiator_Leaves_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A05T' ) ) then
return false
endif
return true
endfunction
function Trig_Gladiator_Leaves_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_3245" )
call SetUnitOwner( udg_Gladiator, Player(7), false )
call IssuePointOrderLocBJ( udg_Gladiator, "move", GetRectCenter(gg_rct_Loki_Default) )
call EnableTrigger( gg_trg_Gladiator_Runs )
set udg_HirelingExpLoki = GetHeroXP(udg_Gladiator)
set udg_HirelingHPLoki = GetUnitLifePercent(udg_Gladiator)
set udg_HirelingMPLoki = GetUnitManaPercent(udg_Gladiator)
endfunction
//===========================================================================
function InitTrig_Gladiator_Leaves takes nothing returns nothing
set gg_trg_Gladiator_Leaves = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Gladiator_Leaves, Player(8), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Gladiator_Leaves, Condition( function Trig_Gladiator_Leaves_Conditions ) )
call TriggerAddAction( gg_trg_Gladiator_Leaves, function Trig_Gladiator_Leaves_Actions )
endfunction
function Trig_Gladiator_Dies_Conditions takes nothing returns boolean
if ( not ( GetDyingUnit() == udg_Gladiator ) ) then
return false
endif
return true
endfunction
function Trig_Gladiator_Dies_Actions takes nothing returns nothing
call TriggerSleepAction( 2.00 )
call ReviveHeroLoc( udg_Gladiator, GetRectCenter(gg_rct_Revival_City), true )
call SetUnitOwner( udg_Gladiator, Player(7), false )
call IssuePointOrderLocBJ( udg_Gladiator, "move", GetRectCenter(gg_rct_Talk_to_Loki) )
call EnableTrigger( gg_trg_Gladiator_Runs )
set udg_HirelingExpLoki = GetHeroXP(udg_Gladiator)
set udg_HirelingHPLoki = GetUnitLifePercent(udg_Gladiator)
set udg_HirelingMPLoki = GetUnitManaPercent(udg_Gladiator)
call EnableTrigger( gg_trg_Gladiator_Leaves )
endfunction
//===========================================================================
function InitTrig_Gladiator_Dies takes nothing returns nothing
set gg_trg_Gladiator_Dies = CreateTrigger( )
call DisableTrigger( gg_trg_Gladiator_Dies )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Gladiator_Dies, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Gladiator_Dies, Condition( function Trig_Gladiator_Dies_Conditions ) )
call TriggerAddAction( gg_trg_Gladiator_Dies, function Trig_Gladiator_Dies_Actions )
endfunction
function Trig_Gladiator_Lives_Conditions takes nothing returns boolean
if ( not ( GetEnteringUnit() == udg_Gladiator ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(7) ) ) then
return false
endif
return true
endfunction
function Trig_Gladiator_Lives_Func006001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'H00Y' )
endfunction
function Trig_Gladiator_Lives_Func006A takes nothing returns nothing
call SetHeroXP( GetEnumUnit(), udg_HirelingExpLoki, false )
call SetUnitLifePercentBJ( GetEnumUnit(), udg_HirelingHPLoki )
call SetUnitManaPercentBJ( GetEnumUnit(), udg_HirelingMPLoki )
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Loki_Default) )
endfunction
function Trig_Gladiator_Lives_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Gladiator_Runs )
call DisableTrigger( gg_trg_Gladiator_Walks )
set udg_AutoDifficultyModifier = ( udg_AutoDifficultyModifier - 1 )
set udg_HirelingCounter = ( udg_HirelingCounter - 1 )
call SetUnitPositionLocFacingBJ( GetEnteringUnit(), GetRectCenter(gg_rct_Gladiator_Hiding), 270.00 )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Gladiator_Lives_Func006001002)), function Trig_Gladiator_Lives_Func006A )
endfunction
//===========================================================================
function InitTrig_Gladiator_Lives takes nothing returns nothing
set gg_trg_Gladiator_Lives = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Gladiator_Lives, gg_rct_Loki_Default )
call TriggerAddCondition( gg_trg_Gladiator_Lives, Condition( function Trig_Gladiator_Lives_Conditions ) )
call TriggerAddAction( gg_trg_Gladiator_Lives, function Trig_Gladiator_Lives_Actions )
endfunction
function Trig_Gladiator_Rally_Conditions takes nothing returns boolean
if ( not ( GetEnteringUnit() == udg_Gladiator ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(7) ) ) then
return false
endif
return true
endfunction
function Trig_Gladiator_Rally_Actions takes nothing returns nothing
call IssuePointOrderLocBJ( udg_Gladiator, "move", GetRectCenter(gg_rct_Loki_Default) )
call DisableTrigger( gg_trg_Gladiator_Runs )
call EnableTrigger( gg_trg_Gladiator_Walks )
endfunction
//===========================================================================
function InitTrig_Gladiator_Rally takes nothing returns nothing
set gg_trg_Gladiator_Rally = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Gladiator_Rally, gg_rct_Talk_to_Loki )
call TriggerAddCondition( gg_trg_Gladiator_Rally, Condition( function Trig_Gladiator_Rally_Conditions ) )
call TriggerAddAction( gg_trg_Gladiator_Rally, function Trig_Gladiator_Rally_Actions )
endfunction
function Trig_Gladiator_Runs_Actions takes nothing returns nothing
call IssuePointOrderLocBJ( udg_Gladiator, "move", GetRectCenter(gg_rct_Talk_to_Loki) )
endfunction
//===========================================================================
function InitTrig_Gladiator_Runs takes nothing returns nothing
set gg_trg_Gladiator_Runs = CreateTrigger( )
call DisableTrigger( gg_trg_Gladiator_Runs )
call TriggerRegisterTimerEventPeriodic( gg_trg_Gladiator_Runs, 5.00 )
call TriggerAddAction( gg_trg_Gladiator_Runs, function Trig_Gladiator_Runs_Actions )
endfunction
function Trig_Gladiator_Walks_Actions takes nothing returns nothing
call IssuePointOrderLocBJ( udg_Gladiator, "move", GetRectCenter(gg_rct_Loki_Default) )
endfunction
//===========================================================================
function InitTrig_Gladiator_Walks takes nothing returns nothing
set gg_trg_Gladiator_Walks = CreateTrigger( )
call DisableTrigger( gg_trg_Gladiator_Walks )
call TriggerRegisterTimerEventPeriodic( gg_trg_Gladiator_Walks, 5.00 )
call TriggerAddAction( gg_trg_Gladiator_Walks, function Trig_Gladiator_Walks_Actions )
endfunction
function Trig_Succubus_Joins_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A08P' ) ) then
return false
endif
if ( not ( udg_HirelingCounter <= 1.00 ) ) then
return false
endif
return true
endfunction
function Trig_Succubus_Joins_Func002001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'E00J' )
endfunction
function Trig_Succubus_Joins_Func002Func003001001 takes nothing returns boolean
return ( IsUnitSelected(GetSpellAbilityUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Succubus_Joins_Func002Func003002 takes nothing returns nothing
call SelectUnitAdd( GetEnumUnit() )
endfunction
function Trig_Succubus_Joins_Func002A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Freya_Default) )
call SetUnitOwner( GetEnumUnit(), Player(8), false )
call ForForce( GetPlayersMatching(Condition(function Trig_Succubus_Joins_Func002Func003001001)), function Trig_Succubus_Joins_Func002Func003002 )
endfunction
function Trig_Succubus_Joins_Func003001001 takes nothing returns boolean
return ( IsUnitSelected(GetSpellAbilityUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Succubus_Joins_Func003002 takes nothing returns nothing
call SelectUnitRemove( GetSpellAbilityUnit() )
endfunction
function Trig_Succubus_Joins_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetSpellAbilityUnit(), GetRectCenter(gg_rct_Succubus_Storage) )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Succubus_Joins_Func002001002)), function Trig_Succubus_Joins_Func002A )
call ForForce( GetPlayersMatching(Condition(function Trig_Succubus_Joins_Func003001001)), function Trig_Succubus_Joins_Func003002 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_4486" )
set udg_AutoDifficultyModifier = ( udg_AutoDifficultyModifier + 1 )
call PolledWait( 0.10 )
set udg_HirelingCounter = ( udg_HirelingCounter + 1 )
call EnableTrigger( gg_trg_Succubus_Leaves )
endfunction
//===========================================================================
function InitTrig_Succubus_Joins takes nothing returns nothing
set gg_trg_Succubus_Joins = CreateTrigger( )
call DisableTrigger( gg_trg_Succubus_Joins )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Succubus_Joins, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Succubus_Joins, Condition( function Trig_Succubus_Joins_Conditions ) )
call TriggerAddAction( gg_trg_Succubus_Joins, function Trig_Succubus_Joins_Actions )
endfunction
function Trig_Party_Full_Succubus_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A08P' ) ) then
return false
endif
if ( not ( udg_HirelingCounter >= 2.00 ) ) then
return false
endif
return true
endfunction
function Trig_Party_Full_Succubus_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6013" )
endfunction
//===========================================================================
function InitTrig_Party_Full_Succubus takes nothing returns nothing
set gg_trg_Party_Full_Succubus = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Party_Full_Succubus, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Party_Full_Succubus, Condition( function Trig_Party_Full_Succubus_Conditions ) )
call TriggerAddAction( gg_trg_Party_Full_Succubus, function Trig_Party_Full_Succubus_Actions )
endfunction
function Trig_Succubus_Leaves_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A08Q' ) ) then
return false
endif
return true
endfunction
function Trig_Succubus_Leaves_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_4487" )
call SetUnitOwner( udg_Succubus, Player(7), false )
call IssuePointOrderLocBJ( udg_Succubus, "move", GetRectCenter(gg_rct_Freya_Default) )
call EnableTrigger( gg_trg_Succubus_Runs )
set udg_HirelingExpFreya = GetHeroXP(udg_Succubus)
set udg_HirelingHPFreya = GetUnitLifePercent(udg_Succubus)
set udg_HirelingMPFreya = GetUnitManaPercent(udg_Succubus)
endfunction
//===========================================================================
function InitTrig_Succubus_Leaves takes nothing returns nothing
set gg_trg_Succubus_Leaves = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Succubus_Leaves, Player(8), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Succubus_Leaves, Condition( function Trig_Succubus_Leaves_Conditions ) )
call TriggerAddAction( gg_trg_Succubus_Leaves, function Trig_Succubus_Leaves_Actions )
endfunction
function Trig_Succubus_Dies_Conditions takes nothing returns boolean
if ( not ( GetDyingUnit() == udg_Succubus ) ) then
return false
endif
return true
endfunction
function Trig_Succubus_Dies_Actions takes nothing returns nothing
call TriggerSleepAction( 2.00 )
call ReviveHeroLoc( udg_Succubus, GetRectCenter(gg_rct_Revival_City), true )
call SetUnitOwner( udg_Succubus, Player(7), false )
call IssuePointOrderLocBJ( udg_Succubus, "move", GetRectCenter(gg_rct_Freya_Rally) )
call EnableTrigger( gg_trg_Succubus_Runs )
set udg_HirelingExpFreya = GetHeroXP(udg_Succubus)
set udg_HirelingHPFreya = GetUnitLifePercent(udg_Succubus)
set udg_HirelingMPFreya = GetUnitManaPercent(udg_Succubus)
call EnableTrigger( gg_trg_Succubus_Leaves )
endfunction
//===========================================================================
function InitTrig_Succubus_Dies takes nothing returns nothing
set gg_trg_Succubus_Dies = CreateTrigger( )
call DisableTrigger( gg_trg_Succubus_Dies )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Succubus_Dies, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Succubus_Dies, Condition( function Trig_Succubus_Dies_Conditions ) )
call TriggerAddAction( gg_trg_Succubus_Dies, function Trig_Succubus_Dies_Actions )
endfunction
function Trig_Succubus_Lives_Conditions takes nothing returns boolean
if ( not ( GetEnteringUnit() == udg_Succubus ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(7) ) ) then
return false
endif
return true
endfunction
function Trig_Succubus_Lives_Func006001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'E00Y' )
endfunction
function Trig_Succubus_Lives_Func006A takes nothing returns nothing
call SetHeroXP( GetEnumUnit(), udg_HirelingExpFreya, false )
call SetUnitLifePercentBJ( GetEnumUnit(), udg_HirelingHPFreya )
call SetUnitManaPercentBJ( GetEnumUnit(), udg_HirelingMPFreya )
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Freya_Default) )
endfunction
function Trig_Succubus_Lives_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Succubus_Runs )
call DisableTrigger( gg_trg_Succubus_Walks )
set udg_AutoDifficultyModifier = ( udg_AutoDifficultyModifier - 1 )
set udg_HirelingCounter = ( udg_HirelingCounter - 1 )
call SetUnitPositionLocFacingBJ( GetEnteringUnit(), GetRectCenter(gg_rct_Succubus_Hiding), 300.00 )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Succubus_Lives_Func006001002)), function Trig_Succubus_Lives_Func006A )
endfunction
//===========================================================================
function InitTrig_Succubus_Lives takes nothing returns nothing
set gg_trg_Succubus_Lives = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Succubus_Lives, gg_rct_Freya_Default )
call TriggerAddCondition( gg_trg_Succubus_Lives, Condition( function Trig_Succubus_Lives_Conditions ) )
call TriggerAddAction( gg_trg_Succubus_Lives, function Trig_Succubus_Lives_Actions )
endfunction
function Trig_Succubus_Rally_Conditions takes nothing returns boolean
if ( not ( GetEnteringUnit() == udg_Succubus ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(7) ) ) then
return false
endif
return true
endfunction
function Trig_Succubus_Rally_Actions takes nothing returns nothing
call IssuePointOrderLocBJ( udg_Succubus, "move", GetRectCenter(gg_rct_Freya_Default) )
call DisableTrigger( gg_trg_Succubus_Runs )
call EnableTrigger( gg_trg_Succubus_Walks )
endfunction
//===========================================================================
function InitTrig_Succubus_Rally takes nothing returns nothing
set gg_trg_Succubus_Rally = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Succubus_Rally, gg_rct_Freya_Rally )
call TriggerAddCondition( gg_trg_Succubus_Rally, Condition( function Trig_Succubus_Rally_Conditions ) )
call TriggerAddAction( gg_trg_Succubus_Rally, function Trig_Succubus_Rally_Actions )
endfunction
function Trig_Succubus_Runs_Actions takes nothing returns nothing
call IssuePointOrderLocBJ( udg_Succubus, "move", GetRectCenter(gg_rct_Freya_Rally) )
endfunction
//===========================================================================
function InitTrig_Succubus_Runs takes nothing returns nothing
set gg_trg_Succubus_Runs = CreateTrigger( )
call DisableTrigger( gg_trg_Succubus_Runs )
call TriggerRegisterTimerEventPeriodic( gg_trg_Succubus_Runs, 5.00 )
call TriggerAddAction( gg_trg_Succubus_Runs, function Trig_Succubus_Runs_Actions )
endfunction
function Trig_Succubus_Walks_Actions takes nothing returns nothing
call IssuePointOrderLocBJ( udg_Succubus, "move", GetRectCenter(gg_rct_Freya_Default) )
endfunction
//===========================================================================
function InitTrig_Succubus_Walks takes nothing returns nothing
set gg_trg_Succubus_Walks = CreateTrigger( )
call DisableTrigger( gg_trg_Succubus_Walks )
call TriggerRegisterTimerEventPeriodic( gg_trg_Succubus_Walks, 5.00 )
call TriggerAddAction( gg_trg_Succubus_Walks, function Trig_Succubus_Walks_Actions )
endfunction
function Trig_Conjurer_Joins_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A09I' ) ) then
return false
endif
if ( not ( udg_HirelingCounter <= 1.00 ) ) then
return false
endif
return true
endfunction
function Trig_Conjurer_Joins_Func002001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'U00H' )
endfunction
function Trig_Conjurer_Joins_Func002Func003001001 takes nothing returns boolean
return ( IsUnitSelected(GetSpellAbilityUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Conjurer_Joins_Func002Func003002 takes nothing returns nothing
call SelectUnitAdd( GetEnumUnit() )
endfunction
function Trig_Conjurer_Joins_Func002A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Drake_Default) )
call SetUnitOwner( GetEnumUnit(), Player(8), false )
call ForForce( GetPlayersMatching(Condition(function Trig_Conjurer_Joins_Func002Func003001001)), function Trig_Conjurer_Joins_Func002Func003002 )
endfunction
function Trig_Conjurer_Joins_Func003001001 takes nothing returns boolean
return ( IsUnitSelected(GetSpellAbilityUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Conjurer_Joins_Func003002 takes nothing returns nothing
call SelectUnitRemove( GetSpellAbilityUnit() )
endfunction
function Trig_Conjurer_Joins_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetSpellAbilityUnit(), GetRectCenter(gg_rct_Conjurer_Storage) )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Conjurer_Joins_Func002001002)), function Trig_Conjurer_Joins_Func002A )
call ForForce( GetPlayersMatching(Condition(function Trig_Conjurer_Joins_Func003001001)), function Trig_Conjurer_Joins_Func003002 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_4899" )
set udg_AutoDifficultyModifier = ( udg_AutoDifficultyModifier + 1 )
set udg_DrakeJoined = true
call PolledWait( 0.10 )
set udg_HirelingCounter = ( udg_HirelingCounter + 1 )
call EnableTrigger( gg_trg_Conjurer_Leaves )
endfunction
//===========================================================================
function InitTrig_Conjurer_Joins takes nothing returns nothing
set gg_trg_Conjurer_Joins = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Conjurer_Joins, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Conjurer_Joins, Condition( function Trig_Conjurer_Joins_Conditions ) )
call TriggerAddAction( gg_trg_Conjurer_Joins, function Trig_Conjurer_Joins_Actions )
endfunction
function Trig_Party_Full_Conjurer_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A09I' ) ) then
return false
endif
if ( not ( udg_HirelingCounter >= 2.00 ) ) then
return false
endif
return true
endfunction
function Trig_Party_Full_Conjurer_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6014" )
endfunction
//===========================================================================
function InitTrig_Party_Full_Conjurer takes nothing returns nothing
set gg_trg_Party_Full_Conjurer = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Party_Full_Conjurer, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Party_Full_Conjurer, Condition( function Trig_Party_Full_Conjurer_Conditions ) )
call TriggerAddAction( gg_trg_Party_Full_Conjurer, function Trig_Party_Full_Conjurer_Actions )
endfunction
function Trig_Conjurer_Leaves_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A09J' ) ) then
return false
endif
return true
endfunction
function Trig_Conjurer_Leaves_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_4900" )
call SetUnitOwner( udg_Conjurer, Player(7), false )
call IssuePointOrderLocBJ( udg_Conjurer, "move", GetRectCenter(gg_rct_Drake_Default) )
call EnableTrigger( gg_trg_Conjurer_Runs )
set udg_HirelingExpDrake = GetHeroXP(udg_Conjurer)
set udg_HirelingHPDrake = GetUnitLifePercent(udg_Conjurer)
set udg_HirelingMPDrake = GetUnitManaPercent(udg_Conjurer)
set udg_DrakeJoined = false
endfunction
//===========================================================================
function InitTrig_Conjurer_Leaves takes nothing returns nothing
set gg_trg_Conjurer_Leaves = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Conjurer_Leaves, Player(8), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Conjurer_Leaves, Condition( function Trig_Conjurer_Leaves_Conditions ) )
call TriggerAddAction( gg_trg_Conjurer_Leaves, function Trig_Conjurer_Leaves_Actions )
endfunction
function Trig_Conjurer_Dies_Conditions takes nothing returns boolean
if ( not ( GetDyingUnit() == udg_Conjurer ) ) then
return false
endif
return true
endfunction
function Trig_Conjurer_Dies_Actions takes nothing returns nothing
set udg_DrakeJoined = false
call TriggerSleepAction( 2.00 )
call ReviveHeroLoc( udg_Conjurer, GetRectCenter(gg_rct_Revival), true )
call SetUnitOwner( udg_Conjurer, Player(7), false )
call IssuePointOrderLocBJ( udg_Conjurer, "move", GetRectCenter(gg_rct_Drake_Rally) )
call EnableTrigger( gg_trg_Conjurer_Runs )
set udg_HirelingExpDrake = GetHeroXP(udg_Conjurer)
set udg_HirelingHPDrake = GetUnitLifePercent(udg_Conjurer)
set udg_HirelingMPDrake = GetUnitManaPercent(udg_Conjurer)
call EnableTrigger( gg_trg_Conjurer_Leaves )
endfunction
//===========================================================================
function InitTrig_Conjurer_Dies takes nothing returns nothing
set gg_trg_Conjurer_Dies = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Conjurer_Dies, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Conjurer_Dies, Condition( function Trig_Conjurer_Dies_Conditions ) )
call TriggerAddAction( gg_trg_Conjurer_Dies, function Trig_Conjurer_Dies_Actions )
endfunction
function Trig_Conjurer_Lives_Conditions takes nothing returns boolean
if ( not ( GetEnteringUnit() == udg_Conjurer ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(7) ) ) then
return false
endif
return true
endfunction
function Trig_Conjurer_Lives_Func006001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'U00Q' )
endfunction
function Trig_Conjurer_Lives_Func006A takes nothing returns nothing
call SetHeroXP( GetEnumUnit(), udg_HirelingExpDrake, false )
call SetUnitLifePercentBJ( GetEnumUnit(), udg_HirelingHPDrake )
call SetUnitManaPercentBJ( GetEnumUnit(), udg_HirelingMPDrake )
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Drake_Default) )
endfunction
function Trig_Conjurer_Lives_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Conjurer_Runs )
call DisableTrigger( gg_trg_Conjurer_Walks )
set udg_AutoDifficultyModifier = ( udg_AutoDifficultyModifier - 1 )
set udg_HirelingCounter = ( udg_HirelingCounter - 1 )
call SetUnitPositionLocFacingBJ( GetEnteringUnit(), GetRectCenter(gg_rct_Conjurer_Hiding), 0.00 )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Conjurer_Lives_Func006001002)), function Trig_Conjurer_Lives_Func006A )
endfunction
//===========================================================================
function InitTrig_Conjurer_Lives takes nothing returns nothing
set gg_trg_Conjurer_Lives = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Conjurer_Lives, gg_rct_Drake_Default )
call TriggerAddCondition( gg_trg_Conjurer_Lives, Condition( function Trig_Conjurer_Lives_Conditions ) )
call TriggerAddAction( gg_trg_Conjurer_Lives, function Trig_Conjurer_Lives_Actions )
endfunction
function Trig_Conjurer_Rally_Conditions takes nothing returns boolean
if ( not ( GetEnteringUnit() == udg_Conjurer ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(7) ) ) then
return false
endif
return true
endfunction
function Trig_Conjurer_Rally_Actions takes nothing returns nothing
call IssuePointOrderLocBJ( udg_Conjurer, "move", GetRectCenter(gg_rct_Drake_Default) )
call DisableTrigger( gg_trg_Conjurer_Runs )
call EnableTrigger( gg_trg_Conjurer_Walks )
endfunction
//===========================================================================
function InitTrig_Conjurer_Rally takes nothing returns nothing
set gg_trg_Conjurer_Rally = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Conjurer_Rally, gg_rct_Drake_Rally )
call TriggerAddCondition( gg_trg_Conjurer_Rally, Condition( function Trig_Conjurer_Rally_Conditions ) )
call TriggerAddAction( gg_trg_Conjurer_Rally, function Trig_Conjurer_Rally_Actions )
endfunction
function Trig_Conjurer_Runs_Actions takes nothing returns nothing
call IssuePointOrderLocBJ( udg_Conjurer, "move", GetRectCenter(gg_rct_Drake_Rally) )
endfunction
//===========================================================================
function InitTrig_Conjurer_Runs takes nothing returns nothing
set gg_trg_Conjurer_Runs = CreateTrigger( )
call DisableTrigger( gg_trg_Conjurer_Runs )
call TriggerRegisterTimerEventPeriodic( gg_trg_Conjurer_Runs, 5.00 )
call TriggerAddAction( gg_trg_Conjurer_Runs, function Trig_Conjurer_Runs_Actions )
endfunction
function Trig_Conjurer_Walks_Actions takes nothing returns nothing
call IssuePointOrderLocBJ( udg_Conjurer, "move", GetRectCenter(gg_rct_Drake_Default) )
endfunction
//===========================================================================
function InitTrig_Conjurer_Walks takes nothing returns nothing
set gg_trg_Conjurer_Walks = CreateTrigger( )
call DisableTrigger( gg_trg_Conjurer_Walks )
call TriggerRegisterTimerEventPeriodic( gg_trg_Conjurer_Walks, 5.00 )
call TriggerAddAction( gg_trg_Conjurer_Walks, function Trig_Conjurer_Walks_Actions )
endfunction
function Trig_Dark_Archer_Joins_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0C1' ) ) then
return false
endif
if ( not ( udg_HirelingCounter <= 1.00 ) ) then
return false
endif
return true
endfunction
function Trig_Dark_Archer_Joins_Func002001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'E01D' )
endfunction
function Trig_Dark_Archer_Joins_Func002Func003001001 takes nothing returns boolean
return ( IsUnitSelected(GetSpellAbilityUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Dark_Archer_Joins_Func002Func003002 takes nothing returns nothing
call SelectUnitAdd( GetEnumUnit() )
endfunction
function Trig_Dark_Archer_Joins_Func002A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Ciara_Default) )
call SetUnitOwner( GetEnumUnit(), Player(8), false )
call ForForce( GetPlayersMatching(Condition(function Trig_Dark_Archer_Joins_Func002Func003001001)), function Trig_Dark_Archer_Joins_Func002Func003002 )
endfunction
function Trig_Dark_Archer_Joins_Func003001001 takes nothing returns boolean
return ( IsUnitSelected(GetSpellAbilityUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Dark_Archer_Joins_Func003002 takes nothing returns nothing
call SelectUnitRemove( GetSpellAbilityUnit() )
endfunction
function Trig_Dark_Archer_Joins_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetSpellAbilityUnit(), GetRectCenter(gg_rct_Dark_Archer_Storage) )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Dark_Archer_Joins_Func002001002)), function Trig_Dark_Archer_Joins_Func002A )
call ForForce( GetPlayersMatching(Condition(function Trig_Dark_Archer_Joins_Func003001001)), function Trig_Dark_Archer_Joins_Func003002 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6397" )
set udg_AutoDifficultyModifier = ( udg_AutoDifficultyModifier + 1 )
set udg_CiaraJoined = true
call PolledWait( 0.10 )
set udg_HirelingCounter = ( udg_HirelingCounter + 1 )
call EnableTrigger( gg_trg_Dark_Archer_Leaves )
endfunction
//===========================================================================
function InitTrig_Dark_Archer_Joins takes nothing returns nothing
set gg_trg_Dark_Archer_Joins = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Dark_Archer_Joins, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Dark_Archer_Joins, Condition( function Trig_Dark_Archer_Joins_Conditions ) )
call TriggerAddAction( gg_trg_Dark_Archer_Joins, function Trig_Dark_Archer_Joins_Actions )
endfunction
function Trig_Party_Full_Dark_Archer_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0C1' ) ) then
return false
endif
if ( not ( udg_HirelingCounter >= 2.00 ) ) then
return false
endif
return true
endfunction
function Trig_Party_Full_Dark_Archer_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6398" )
endfunction
//===========================================================================
function InitTrig_Party_Full_Dark_Archer takes nothing returns nothing
set gg_trg_Party_Full_Dark_Archer = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Party_Full_Dark_Archer, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Party_Full_Dark_Archer, Condition( function Trig_Party_Full_Dark_Archer_Conditions ) )
call TriggerAddAction( gg_trg_Party_Full_Dark_Archer, function Trig_Party_Full_Dark_Archer_Actions )
endfunction
function Trig_Dark_Archer_Leaves_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0C2' ) ) then
return false
endif
return true
endfunction
function Trig_Dark_Archer_Leaves_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6399" )
call SetUnitOwner( udg_DarkArcher, Player(7), false )
call IssuePointOrderLocBJ( udg_DarkArcher, "move", GetRectCenter(gg_rct_Ciara_Default) )
call EnableTrigger( gg_trg_Dark_Archer_Runs )
set udg_HirelingExpCiara = GetHeroXP(udg_DarkArcher)
set udg_HirelingHPCiara = GetUnitLifePercent(udg_DarkArcher)
set udg_HirelingMPCiara = GetUnitManaPercent(udg_DarkArcher)
set udg_CiaraJoined = false
endfunction
//===========================================================================
function InitTrig_Dark_Archer_Leaves takes nothing returns nothing
set gg_trg_Dark_Archer_Leaves = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Dark_Archer_Leaves, Player(8), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Dark_Archer_Leaves, Condition( function Trig_Dark_Archer_Leaves_Conditions ) )
call TriggerAddAction( gg_trg_Dark_Archer_Leaves, function Trig_Dark_Archer_Leaves_Actions )
endfunction
function Trig_Dark_Archer_Dies_Conditions takes nothing returns boolean
if ( not ( GetDyingUnit() == udg_DarkArcher ) ) then
return false
endif
return true
endfunction
function Trig_Dark_Archer_Dies_Actions takes nothing returns nothing
set udg_CiaraJoined = false
call TriggerSleepAction( 2.00 )
call ReviveHeroLoc( udg_DarkArcher, GetRectCenter(gg_rct_Revival), true )
call SetUnitOwner( udg_DarkArcher, Player(7), false )
call IssuePointOrderLocBJ( udg_DarkArcher, "move", GetRectCenter(gg_rct_Ciara_Rally) )
call EnableTrigger( gg_trg_Dark_Archer_Runs )
set udg_HirelingExpCiara = GetHeroXP(udg_DarkArcher)
set udg_HirelingHPCiara = GetUnitLifePercent(udg_DarkArcher)
set udg_HirelingMPCiara = GetUnitManaPercent(udg_DarkArcher)
call EnableTrigger( gg_trg_Dark_Archer_Leaves )
endfunction
//===========================================================================
function InitTrig_Dark_Archer_Dies takes nothing returns nothing
set gg_trg_Dark_Archer_Dies = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Dark_Archer_Dies, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Dark_Archer_Dies, Condition( function Trig_Dark_Archer_Dies_Conditions ) )
call TriggerAddAction( gg_trg_Dark_Archer_Dies, function Trig_Dark_Archer_Dies_Actions )
endfunction
function Trig_Dark_Archer_Lives_Conditions takes nothing returns boolean
if ( not ( GetEnteringUnit() == udg_DarkArcher ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(7) ) ) then
return false
endif
return true
endfunction
function Trig_Dark_Archer_Lives_Func006001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'E01E' )
endfunction
function Trig_Dark_Archer_Lives_Func006A takes nothing returns nothing
call SetHeroXP( GetEnumUnit(), udg_HirelingExpCiara, false )
call SetUnitLifePercentBJ( GetEnumUnit(), udg_HirelingHPCiara )
call SetUnitManaPercentBJ( GetEnumUnit(), udg_HirelingMPCiara )
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Ciara_Default) )
endfunction
function Trig_Dark_Archer_Lives_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Dark_Archer_Runs )
call DisableTrigger( gg_trg_Dark_Archer_Walks )
set udg_AutoDifficultyModifier = ( udg_AutoDifficultyModifier - 1 )
set udg_HirelingCounter = ( udg_HirelingCounter - 1 )
call SetUnitPositionLocFacingBJ( GetEnteringUnit(), GetRectCenter(gg_rct_Ciara_Hiding), 135.00 )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Dark_Archer_Lives_Func006001002)), function Trig_Dark_Archer_Lives_Func006A )
endfunction
//===========================================================================
function InitTrig_Dark_Archer_Lives takes nothing returns nothing
set gg_trg_Dark_Archer_Lives = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Dark_Archer_Lives, gg_rct_Ciara_Default )
call TriggerAddCondition( gg_trg_Dark_Archer_Lives, Condition( function Trig_Dark_Archer_Lives_Conditions ) )
call TriggerAddAction( gg_trg_Dark_Archer_Lives, function Trig_Dark_Archer_Lives_Actions )
endfunction
function Trig_Dark_Archer_Rally_Conditions takes nothing returns boolean
if ( not ( GetEnteringUnit() == udg_DarkArcher ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(7) ) ) then
return false
endif
return true
endfunction
function Trig_Dark_Archer_Rally_Actions takes nothing returns nothing
call IssuePointOrderLocBJ( udg_Conjurer, "move", GetRectCenter(gg_rct_Ciara_Default) )
call DisableTrigger( gg_trg_Dark_Archer_Runs )
call EnableTrigger( gg_trg_Dark_Archer_Walks )
endfunction
//===========================================================================
function InitTrig_Dark_Archer_Rally takes nothing returns nothing
set gg_trg_Dark_Archer_Rally = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Dark_Archer_Rally, gg_rct_Ciara_Rally )
call TriggerAddCondition( gg_trg_Dark_Archer_Rally, Condition( function Trig_Dark_Archer_Rally_Conditions ) )
call TriggerAddAction( gg_trg_Dark_Archer_Rally, function Trig_Dark_Archer_Rally_Actions )
endfunction
function Trig_Dark_Archer_Runs_Actions takes nothing returns nothing
call IssuePointOrderLocBJ( udg_DarkArcher, "move", GetRectCenter(gg_rct_Ciara_Rally) )
endfunction
//===========================================================================
function InitTrig_Dark_Archer_Runs takes nothing returns nothing
set gg_trg_Dark_Archer_Runs = CreateTrigger( )
call DisableTrigger( gg_trg_Dark_Archer_Runs )
call TriggerRegisterTimerEventPeriodic( gg_trg_Dark_Archer_Runs, 5.00 )
call TriggerAddAction( gg_trg_Dark_Archer_Runs, function Trig_Dark_Archer_Runs_Actions )
endfunction
function Trig_Dark_Archer_Walks_Actions takes nothing returns nothing
call IssuePointOrderLocBJ( udg_DarkArcher, "move", GetRectCenter(gg_rct_Ciara_Default) )
endfunction
//===========================================================================
function InitTrig_Dark_Archer_Walks takes nothing returns nothing
set gg_trg_Dark_Archer_Walks = CreateTrigger( )
call DisableTrigger( gg_trg_Dark_Archer_Walks )
call TriggerRegisterTimerEventPeriodic( gg_trg_Dark_Archer_Walks, 5.00 )
call TriggerAddAction( gg_trg_Dark_Archer_Walks, function Trig_Dark_Archer_Walks_Actions )
endfunction
function Trig_Assassin_to_Sniper_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'n03G' ) ) then
return false
endif
return true
endfunction
function Trig_Assassin_to_Sniper_Func003A takes nothing returns nothing
set udg_BonusExperience = GetHeroXP(GetEnumUnit())
set udg_PromoItem1 = UnitItemInSlotBJ(GetEnumUnit(), 1)
set udg_PromoItem2 = UnitItemInSlotBJ(GetEnumUnit(), 2)
set udg_PromoItem3 = UnitItemInSlotBJ(GetEnumUnit(), 3)
set udg_PromoItem4 = UnitItemInSlotBJ(GetEnumUnit(), 4)
set udg_PromoItem5 = UnitItemInSlotBJ(GetEnumUnit(), 5)
set udg_PromoItem6 = UnitItemInSlotBJ(GetEnumUnit(), 6)
call ReplaceUnitBJ( GetEnumUnit(), 'N03F', bj_UNIT_STATE_METHOD_RELATIVE )
endfunction
function Trig_Assassin_to_Sniper_Func004A takes nothing returns nothing
call SetHeroXP( GetEnumUnit(), udg_BonusExperience, false )
call UnitAddItemSwapped( udg_PromoItem1, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem2, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem3, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem4, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem5, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem6, GetEnumUnit() )
call AddSpecialEffectLocBJ( GetUnitLoc(GetEnumUnit()), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
endfunction
function Trig_Assassin_to_Sniper_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call PolledWait( 2.00 )
call ForGroupBJ( GetUnitsOfTypeIdAll('E00D'), function Trig_Assassin_to_Sniper_Func003A )
call ForGroupBJ( GetUnitsOfTypeIdAll('N03F'), function Trig_Assassin_to_Sniper_Func004A )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_5894", "TRIGSTR_5895", "ReplaceableTextures\\CommandButtons\\BTNCorpseExplode.blp" )
call QuestSetCompletedBJ( GetLastCreatedQuestBJ(), true )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_5896" )
call PlaySoundBJ( gg_snd_QuestCompleted )
set udg_Slayer1 = null
set udg_Slayer2 = null
set udg_Slayer3 = null
call PolledWait( 2.00 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endfunction
//===========================================================================
function InitTrig_Assassin_to_Sniper takes nothing returns nothing
set gg_trg_Assassin_to_Sniper = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Assassin_to_Sniper, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Assassin_to_Sniper, Condition( function Trig_Assassin_to_Sniper_Conditions ) )
call TriggerAddAction( gg_trg_Assassin_to_Sniper, function Trig_Assassin_to_Sniper_Actions )
endfunction
function Trig_Dead_Man_Walking_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetEnteringUnit()) == 'U008' ) ) then
return false
endif
return true
endfunction
function Trig_Dead_Man_Walking_Func002001001 takes nothing returns boolean
return ( IsUnitInGroup(GetEnteringUnit(), GetUnitsOfPlayerAll(GetFilterPlayer())) == true )
endfunction
function Trig_Dead_Man_Walking_Func003A takes nothing returns nothing
set udg_BonusExperience = GetHeroXP(GetEnumUnit())
set udg_PromoItem1 = UnitItemInSlotBJ(GetEnumUnit(), 1)
set udg_PromoItem2 = UnitItemInSlotBJ(GetEnumUnit(), 2)
set udg_PromoItem3 = UnitItemInSlotBJ(GetEnumUnit(), 3)
set udg_PromoItem4 = UnitItemInSlotBJ(GetEnumUnit(), 4)
set udg_PromoItem5 = UnitItemInSlotBJ(GetEnumUnit(), 5)
set udg_PromoItem6 = UnitItemInSlotBJ(GetEnumUnit(), 6)
call ReplaceUnitBJ( GetEnumUnit(), 'U00U', bj_UNIT_STATE_METHOD_RELATIVE )
endfunction
function Trig_Dead_Man_Walking_Func004A takes nothing returns nothing
call SetHeroXP( GetEnumUnit(), udg_BonusExperience, false )
call UnitAddItemSwapped( udg_PromoItem1, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem2, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem3, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem4, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem5, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem6, GetEnumUnit() )
call AddSpecialEffectLocBJ( GetUnitLoc(GetEnumUnit()), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
endfunction
function Trig_Dead_Man_Walking_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Dead_Man_Walking_Func002001001)), "TRIGSTR_6618" )
call ForGroupBJ( GetUnitsOfTypeIdAll('U008'), function Trig_Dead_Man_Walking_Func003A )
call ForGroupBJ( GetUnitsOfTypeIdAll('U00U'), function Trig_Dead_Man_Walking_Func004A )
call KillDestructable( gg_dest_OTsp_5580 )
call PolledWait( 2 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endfunction
//===========================================================================
function InitTrig_Dead_Man_Walking takes nothing returns nothing
set gg_trg_Dead_Man_Walking = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Dead_Man_Walking, gg_rct_Lich_Chamber )
call TriggerAddCondition( gg_trg_Dead_Man_Walking, Condition( function Trig_Dead_Man_Walking_Conditions ) )
call TriggerAddAction( gg_trg_Dead_Man_Walking, function Trig_Dead_Man_Walking_Actions )
endfunction
function Trig_Rainmaker_Func001Func003C takes nothing returns boolean
if ( not ( GetRandomInt(1, 3) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Rainmaker_Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 3) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Rainmaker_Actions takes nothing returns nothing
if ( Trig_Rainmaker_Func001C() ) then
if ( Trig_Rainmaker_Func001Func003C() ) then
call EnableWeatherEffect( udg_WeatherRain, false )
call EnableWeatherEffect( udg_WeatherSnow, true )
else
call EnableWeatherEffect( udg_WeatherSnow, false )
call EnableWeatherEffect( udg_WeatherRain, true )
endif
else
call EnableWeatherEffect( udg_WeatherRain, false )
call EnableWeatherEffect( udg_WeatherSnow, false )
endif
endfunction
//===========================================================================
function InitTrig_Rainmaker takes nothing returns nothing
set gg_trg_Rainmaker = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Rainmaker, 300.00 )
call TriggerAddAction( gg_trg_Rainmaker, function Trig_Rainmaker_Actions )
endfunction
function Trig_Cheesy_Retro_Ambience_Actions takes nothing returns nothing
call SetAmbientDaySound( "LordaeronWinterDay" )
call SetAmbientNightSound( "LordaeronWinterNight" )
endfunction
//===========================================================================
function InitTrig_Cheesy_Retro_Ambience takes nothing returns nothing
set gg_trg_Cheesy_Retro_Ambience = CreateTrigger( )
call TriggerAddAction( gg_trg_Cheesy_Retro_Ambience, function Trig_Cheesy_Retro_Ambience_Actions )
endfunction
function Trig_Turn_the_machine_Off_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A05X' ) ) then
return false
endif
return true
endfunction
function Trig_Turn_the_machine_Off_Actions takes nothing returns nothing
call EnableWeatherEffect( udg_WeatherRain, false )
call EnableWeatherEffect( udg_WeatherSnow, false )
call EnableWeatherEffect( udg_WeatherStorm, false )
call UnitRemoveAbilityBJ( 'A05X', gg_unit_hars_0213 )
call UnitRemoveAbilityBJ( 'A05Z', gg_unit_hars_0213 )
call UnitRemoveAbilityBJ( 'A060', gg_unit_hars_0213 )
call UnitRemoveAbilityBJ( 'A061', gg_unit_hars_0213 )
call UnitRemoveAbilityBJ( 'A062', gg_unit_hars_0213 )
call UnitAddAbilityBJ( 'A05Y', gg_unit_hars_0213 )
call EnableTrigger( gg_trg_Rainmaker )
endfunction
//===========================================================================
function InitTrig_Turn_the_machine_Off takes nothing returns nothing
set gg_trg_Turn_the_machine_Off = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Turn_the_machine_Off, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Turn_the_machine_Off, Condition( function Trig_Turn_the_machine_Off_Conditions ) )
call TriggerAddAction( gg_trg_Turn_the_machine_Off, function Trig_Turn_the_machine_Off_Actions )
endfunction
function Trig_Turn_the_machine_On_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A05Y' ) ) then
return false
endif
return true
endfunction
function Trig_Turn_the_machine_On_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( 'A05Y', gg_unit_hars_0213 )
call UnitAddAbilityBJ( 'A05Z', gg_unit_hars_0213 )
call UnitAddAbilityBJ( 'A060', gg_unit_hars_0213 )
call UnitAddAbilityBJ( 'A061', gg_unit_hars_0213 )
call UnitAddAbilityBJ( 'A062', gg_unit_hars_0213 )
call UnitAddAbilityBJ( 'A05X', gg_unit_hars_0213 )
call DisableTrigger( gg_trg_Rainmaker )
endfunction
//===========================================================================
function InitTrig_Turn_the_machine_On takes nothing returns nothing
set gg_trg_Turn_the_machine_On = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Turn_the_machine_On, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Turn_the_machine_On, Condition( function Trig_Turn_the_machine_On_Conditions ) )
call TriggerAddAction( gg_trg_Turn_the_machine_On, function Trig_Turn_the_machine_On_Actions )
endfunction
function Trig_Change_weather_to_Sunny_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A05Z' ) ) then
return false
endif
return true
endfunction
function Trig_Change_weather_to_Sunny_Actions takes nothing returns nothing
call EnableWeatherEffect( udg_WeatherRain, false )
call EnableWeatherEffect( udg_WeatherSnow, false )
call EnableWeatherEffect( udg_WeatherStorm, false )
endfunction
//===========================================================================
function InitTrig_Change_weather_to_Sunny takes nothing returns nothing
set gg_trg_Change_weather_to_Sunny = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Change_weather_to_Sunny, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Change_weather_to_Sunny, Condition( function Trig_Change_weather_to_Sunny_Conditions ) )
call TriggerAddAction( gg_trg_Change_weather_to_Sunny, function Trig_Change_weather_to_Sunny_Actions )
endfunction
function Trig_Change_weather_to_Rainy_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A060' ) ) then
return false
endif
return true
endfunction
function Trig_Change_weather_to_Rainy_Actions takes nothing returns nothing
call EnableWeatherEffect( udg_WeatherRain, true )
call EnableWeatherEffect( udg_WeatherSnow, false )
call EnableWeatherEffect( udg_WeatherStorm, false )
endfunction
//===========================================================================
function InitTrig_Change_weather_to_Rainy takes nothing returns nothing
set gg_trg_Change_weather_to_Rainy = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Change_weather_to_Rainy, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Change_weather_to_Rainy, Condition( function Trig_Change_weather_to_Rainy_Conditions ) )
call TriggerAddAction( gg_trg_Change_weather_to_Rainy, function Trig_Change_weather_to_Rainy_Actions )
endfunction
function Trig_Change_weather_to_Stormy_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A061' ) ) then
return false
endif
return true
endfunction
function Trig_Change_weather_to_Stormy_Actions takes nothing returns nothing
call EnableWeatherEffect( udg_WeatherRain, true )
call EnableWeatherEffect( udg_WeatherSnow, false )
call EnableWeatherEffect( udg_WeatherStorm, true )
endfunction
//===========================================================================
function InitTrig_Change_weather_to_Stormy takes nothing returns nothing
set gg_trg_Change_weather_to_Stormy = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Change_weather_to_Stormy, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Change_weather_to_Stormy, Condition( function Trig_Change_weather_to_Stormy_Conditions ) )
call TriggerAddAction( gg_trg_Change_weather_to_Stormy, function Trig_Change_weather_to_Stormy_Actions )
endfunction
function Trig_Change_weather_to_Snowy_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A062' ) ) then
return false
endif
return true
endfunction
function Trig_Change_weather_to_Snowy_Actions takes nothing returns nothing
call EnableWeatherEffect( udg_WeatherRain, false )
call EnableWeatherEffect( udg_WeatherSnow, true )
call EnableWeatherEffect( udg_WeatherStorm, false )
endfunction
//===========================================================================
function InitTrig_Change_weather_to_Snowy takes nothing returns nothing
set gg_trg_Change_weather_to_Snowy = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Change_weather_to_Snowy, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Change_weather_to_Snowy, Condition( function Trig_Change_weather_to_Snowy_Conditions ) )
call TriggerAddAction( gg_trg_Change_weather_to_Snowy, function Trig_Change_weather_to_Snowy_Actions )
endfunction
function Trig_Default_Leaders_Func006Func001C takes nothing returns boolean
if ( not ( GetPlayerScore(GetEnumPlayer(), PLAYER_SCORE_UNITS_KILLED) >= GetPlayerScore(udg_LeaderInKilling, PLAYER_SCORE_UNITS_KILLED) ) ) then
return false
endif
return true
endfunction
function Trig_Default_Leaders_Func006A takes nothing returns nothing
if ( Trig_Default_Leaders_Func006Func001C() ) then
set udg_LeaderInKilling = GetEnumPlayer()
else
call DoNothing( )
endif
endfunction
function Trig_Default_Leaders_Func007Func001C takes nothing returns boolean
if ( not ( GetPlayerScore(GetEnumPlayer(), PLAYER_SCORE_UNITS_KILLED) <= GetPlayerScore(udg_LoserInKilling, PLAYER_SCORE_UNITS_KILLED) ) ) then
return false
endif
return true
endfunction
function Trig_Default_Leaders_Func007A takes nothing returns nothing
if ( Trig_Default_Leaders_Func007Func001C() ) then
set udg_LoserInKilling = GetEnumPlayer()
else
call DoNothing( )
endif
endfunction
function Trig_Default_Leaders_Func008Func001C takes nothing returns boolean
if ( not ( GetPlayerState(GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD) >= GetPlayerState(udg_Merchant, PLAYER_STATE_RESOURCE_GOLD) ) ) then
return false
endif
return true
endfunction
function Trig_Default_Leaders_Func008A takes nothing returns nothing
if ( Trig_Default_Leaders_Func008Func001C() ) then
set udg_Merchant = GetEnumPlayer()
else
call DoNothing( )
endif
endfunction
function Trig_Default_Leaders_Func009Func001C takes nothing returns boolean
if ( not ( GetPlayerState(GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD) <= GetPlayerState(udg_Beggar, PLAYER_STATE_RESOURCE_GOLD) ) ) then
return false
endif
return true
endfunction
function Trig_Default_Leaders_Func009A takes nothing returns nothing
if ( Trig_Default_Leaders_Func009Func001C() ) then
set udg_Beggar = GetEnumPlayer()
else
call DoNothing( )
endif
endfunction
function Trig_Default_Leaders_Actions takes nothing returns nothing
set udg_LeaderInKilling = Player(0)
set udg_LoserInKilling = Player(0)
set udg_Merchant = Player(0)
set udg_Beggar = Player(0)
call ForForce( udg_PlayerGroup, function Trig_Default_Leaders_Func006A )
call ForForce( udg_PlayerGroup, function Trig_Default_Leaders_Func007A )
call ForForce( udg_PlayerGroup, function Trig_Default_Leaders_Func008A )
call ForForce( udg_PlayerGroup, function Trig_Default_Leaders_Func009A )
endfunction
//===========================================================================
function InitTrig_Default_Leaders takes nothing returns nothing
set gg_trg_Default_Leaders = CreateTrigger( )
call TriggerAddAction( gg_trg_Default_Leaders, function Trig_Default_Leaders_Actions )
endfunction
function Trig_Leader_In_Killing_Func001Func001C takes nothing returns boolean
if ( not ( GetPlayerScore(GetEnumPlayer(), PLAYER_SCORE_UNITS_KILLED) > GetPlayerScore(udg_LeaderInKilling, PLAYER_SCORE_UNITS_KILLED) ) ) then
return false
endif
return true
endfunction
function Trig_Leader_In_Killing_Func001A takes nothing returns nothing
if ( Trig_Leader_In_Killing_Func001Func001C() ) then
set udg_LeaderInKilling = GetEnumPlayer()
else
call DoNothing( )
endif
endfunction
function Trig_Leader_In_Killing_Actions takes nothing returns nothing
call ForForce( udg_PlayerGroup, function Trig_Leader_In_Killing_Func001A )
endfunction
//===========================================================================
function InitTrig_Leader_In_Killing takes nothing returns nothing
set gg_trg_Leader_In_Killing = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Leader_In_Killing, 2.00 )
call TriggerAddAction( gg_trg_Leader_In_Killing, function Trig_Leader_In_Killing_Actions )
endfunction
function Trig_Loser_In_Killing_Func001Func001C takes nothing returns boolean
if ( not ( GetPlayerScore(GetEnumPlayer(), PLAYER_SCORE_UNITS_KILLED) < GetPlayerScore(udg_LoserInKilling, PLAYER_SCORE_UNITS_KILLED) ) ) then
return false
endif
return true
endfunction
function Trig_Loser_In_Killing_Func001A takes nothing returns nothing
if ( Trig_Loser_In_Killing_Func001Func001C() ) then
set udg_LoserInKilling = GetEnumPlayer()
else
call DoNothing( )
endif
endfunction
function Trig_Loser_In_Killing_Actions takes nothing returns nothing
call ForForce( udg_PlayerGroup, function Trig_Loser_In_Killing_Func001A )
endfunction
//===========================================================================
function InitTrig_Loser_In_Killing takes nothing returns nothing
set gg_trg_Loser_In_Killing = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Loser_In_Killing, 2.00 )
call TriggerAddAction( gg_trg_Loser_In_Killing, function Trig_Loser_In_Killing_Actions )
endfunction
function Trig_Merchant_Func001Func001C takes nothing returns boolean
if ( not ( GetPlayerState(GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD) > GetPlayerState(udg_Merchant, PLAYER_STATE_RESOURCE_GOLD) ) ) then
return false
endif
return true
endfunction
function Trig_Merchant_Func001A takes nothing returns nothing
if ( Trig_Merchant_Func001Func001C() ) then
set udg_Merchant = GetEnumPlayer()
else
call DoNothing( )
endif
endfunction
function Trig_Merchant_Actions takes nothing returns nothing
call ForForce( udg_PlayerGroup, function Trig_Merchant_Func001A )
endfunction
//===========================================================================
function InitTrig_Merchant takes nothing returns nothing
set gg_trg_Merchant = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Merchant, 2.00 )
call TriggerAddAction( gg_trg_Merchant, function Trig_Merchant_Actions )
endfunction
function Trig_Beggar_Func001Func001C takes nothing returns boolean
if ( not ( GetPlayerState(GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD) < GetPlayerState(udg_Beggar, PLAYER_STATE_RESOURCE_GOLD) ) ) then
return false
endif
return true
endfunction
function Trig_Beggar_Func001A takes nothing returns nothing
if ( Trig_Beggar_Func001Func001C() ) then
set udg_Beggar = GetEnumPlayer()
else
call DoNothing( )
endif
endfunction
function Trig_Beggar_Actions takes nothing returns nothing
call ForForce( udg_PlayerGroup, function Trig_Beggar_Func001A )
endfunction
//===========================================================================
function InitTrig_Beggar takes nothing returns nothing
set gg_trg_Beggar = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Beggar, 2.00 )
call TriggerAddAction( gg_trg_Beggar, function Trig_Beggar_Actions )
endfunction
function Trig_Leader_Leaves_Conditions takes nothing returns boolean
if ( not ( GetTriggerPlayer() == udg_LeaderInKilling ) ) then
return false
endif
return true
endfunction
function Trig_Leader_Leaves_Actions takes nothing returns nothing
set udg_LeaderInKilling = udg_LoserInKilling
endfunction
//===========================================================================
function InitTrig_Leader_Leaves takes nothing returns nothing
set gg_trg_Leader_Leaves = CreateTrigger( )
call TriggerRegisterPlayerEventLeave( gg_trg_Leader_Leaves, Player(0) )
call TriggerRegisterPlayerEventLeave( gg_trg_Leader_Leaves, Player(1) )
call TriggerRegisterPlayerEventLeave( gg_trg_Leader_Leaves, Player(3) )
call TriggerRegisterPlayerEventLeave( gg_trg_Leader_Leaves, Player(4) )
call TriggerRegisterPlayerEventLeave( gg_trg_Leader_Leaves, Player(5) )
call TriggerRegisterPlayerEventLeave( gg_trg_Leader_Leaves, Player(6) )
call TriggerAddCondition( gg_trg_Leader_Leaves, Condition( function Trig_Leader_Leaves_Conditions ) )
call TriggerAddAction( gg_trg_Leader_Leaves, function Trig_Leader_Leaves_Actions )
endfunction
function Trig_Loser_Leaves_Conditions takes nothing returns boolean
if ( not ( GetTriggerPlayer() == udg_LoserInKilling ) ) then
return false
endif
return true
endfunction
function Trig_Loser_Leaves_Actions takes nothing returns nothing
set udg_LoserInKilling = udg_LeaderInKilling
endfunction
//===========================================================================
function InitTrig_Loser_Leaves takes nothing returns nothing
set gg_trg_Loser_Leaves = CreateTrigger( )
call TriggerRegisterPlayerEventLeave( gg_trg_Loser_Leaves, Player(0) )
call TriggerRegisterPlayerEventLeave( gg_trg_Loser_Leaves, Player(1) )
call TriggerRegisterPlayerEventLeave( gg_trg_Loser_Leaves, Player(3) )
call TriggerRegisterPlayerEventLeave( gg_trg_Loser_Leaves, Player(4) )
call TriggerRegisterPlayerEventLeave( gg_trg_Loser_Leaves, Player(5) )
call TriggerRegisterPlayerEventLeave( gg_trg_Loser_Leaves, Player(6) )
call TriggerAddCondition( gg_trg_Loser_Leaves, Condition( function Trig_Loser_Leaves_Conditions ) )
call TriggerAddAction( gg_trg_Loser_Leaves, function Trig_Loser_Leaves_Actions )
endfunction
function Trig_Merchant_Leaves_Conditions takes nothing returns boolean
if ( not ( GetTriggerPlayer() == udg_Merchant ) ) then
return false
endif
return true
endfunction
function Trig_Merchant_Leaves_Actions takes nothing returns nothing
set udg_Merchant = udg_Beggar
endfunction
//===========================================================================
function InitTrig_Merchant_Leaves takes nothing returns nothing
set gg_trg_Merchant_Leaves = CreateTrigger( )
call TriggerRegisterPlayerEventLeave( gg_trg_Merchant_Leaves, Player(0) )
call TriggerRegisterPlayerEventLeave( gg_trg_Merchant_Leaves, Player(1) )
call TriggerRegisterPlayerEventLeave( gg_trg_Merchant_Leaves, Player(3) )
call TriggerRegisterPlayerEventLeave( gg_trg_Merchant_Leaves, Player(4) )
call TriggerRegisterPlayerEventLeave( gg_trg_Merchant_Leaves, Player(5) )
call TriggerRegisterPlayerEventLeave( gg_trg_Merchant_Leaves, Player(6) )
call TriggerAddCondition( gg_trg_Merchant_Leaves, Condition( function Trig_Merchant_Leaves_Conditions ) )
call TriggerAddAction( gg_trg_Merchant_Leaves, function Trig_Merchant_Leaves_Actions )
endfunction
function Trig_Beggar_Leaves_Conditions takes nothing returns boolean
if ( not ( GetTriggerPlayer() == udg_Beggar ) ) then
return false
endif
return true
endfunction
function Trig_Beggar_Leaves_Actions takes nothing returns nothing
set udg_Beggar = udg_Merchant
endfunction
//===========================================================================
function InitTrig_Beggar_Leaves takes nothing returns nothing
set gg_trg_Beggar_Leaves = CreateTrigger( )
call TriggerRegisterPlayerEventLeave( gg_trg_Beggar_Leaves, Player(0) )
call TriggerRegisterPlayerEventLeave( gg_trg_Beggar_Leaves, Player(1) )
call TriggerRegisterPlayerEventLeave( gg_trg_Beggar_Leaves, Player(3) )
call TriggerRegisterPlayerEventLeave( gg_trg_Beggar_Leaves, Player(4) )
call TriggerRegisterPlayerEventLeave( gg_trg_Beggar_Leaves, Player(5) )
call TriggerRegisterPlayerEventLeave( gg_trg_Beggar_Leaves, Player(6) )
call TriggerAddCondition( gg_trg_Beggar_Leaves, Condition( function Trig_Beggar_Leaves_Conditions ) )
call TriggerAddAction( gg_trg_Beggar_Leaves, function Trig_Beggar_Leaves_Actions )
endfunction
function Trig_No_Cutscene_Mode_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_7642" )
call DisableTrigger( GetTriggeringTrigger() )
call DisableTrigger( gg_trg_Colonel_Belganon )
call EnableTrigger( gg_trg_Colonel_Belganon_Short )
call DisableTrigger( gg_trg_Mayor_Canard )
call EnableTrigger( gg_trg_Mayor_Canard_Short )
call DisableTrigger( gg_trg_The_Throne_Room )
call EnableTrigger( gg_trg_The_Throne_Room_Short )
call DisableTrigger( gg_trg_Killing_the_Head )
call EnableTrigger( gg_trg_Killing_the_Head_Short )
call DisableTrigger( gg_trg_Reporting_Success )
call EnableTrigger( gg_trg_Reporting_Success_Short )
call DisableTrigger( gg_trg_Jessa_Montgomery )
call EnableTrigger( gg_trg_Jessa_Montgomery_Short )
call DisableTrigger( gg_trg_Returning_the_Ring_Gently )
call EnableTrigger( gg_trg_Returning_the_Ring_Gently_Short )
call DisableTrigger( gg_trg_Returning_the_Ring_Harshly )
call EnableTrigger( gg_trg_Returning_the_Ring_Harshly_Short )
call DisableTrigger( gg_trg_Verath_de_Siglia )
call EnableTrigger( gg_trg_Verath_de_Siglia_Short )
call DisableTrigger( gg_trg_Fire_and_Ice )
call EnableTrigger( gg_trg_Fire_and_Ice_Short )
call DisableTrigger( gg_trg_General_Belganon )
call EnableTrigger( gg_trg_General_Belganon_Short )
call DisableTrigger( gg_trg_The_Island_Throne )
call EnableTrigger( gg_trg_The_Island_Throne_Short )
call DisableTrigger( gg_trg_Ocean_and_Earth )
call EnableTrigger( gg_trg_Ocean_and_Earth_Short )
call DisableTrigger( gg_trg_Castle_Roof )
call EnableTrigger( gg_trg_Castle_Roof_Short )
call DisableTrigger( gg_trg_Fall_into_Darkness )
call EnableTrigger( gg_trg_Fall_into_Darkness_Short )
endfunction
//===========================================================================
function InitTrig_No_Cutscene_Mode takes nothing returns nothing
set gg_trg_No_Cutscene_Mode = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_No_Cutscene_Mode, Player(0), "-nocut", true )
call TriggerAddAction( gg_trg_No_Cutscene_Mode, function Trig_No_Cutscene_Mode_Actions )
endfunction
function Trig_Colonel_Belganon_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(7) ) ) then
return false
endif
if ( not ( udg_JezrelIntro == false ) ) then
return false
endif
return true
endfunction
function Trig_Colonel_Belganon_Func011002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Jezrel_Intro, GetEnumPlayer(), 2.00 )
endfunction
function Trig_Colonel_Belganon_Func012002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_JezInt_1), GetUnitLoc(gg_unit_H00G_0068) )
endfunction
function Trig_Colonel_Belganon_Func013002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_JezInt_2), GetUnitLoc(gg_unit_H00G_0068) )
endfunction
function Trig_Colonel_Belganon_Func014002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_JezInt_4), GetUnitLoc(gg_unit_H00G_0068) )
endfunction
function Trig_Colonel_Belganon_Func015002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_JezInt_5), GetUnitLoc(gg_unit_H00G_0068) )
endfunction
function Trig_Colonel_Belganon_Func016002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_JezInt_6), GetUnitLoc(gg_unit_H00G_0068) )
endfunction
function Trig_Colonel_Belganon_Func017002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_JezInt_7), GetUnitLoc(gg_unit_H00G_0068) )
endfunction
function Trig_Colonel_Belganon_Func018002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_JezInt_Leader), GetUnitLoc(gg_unit_H00G_0068) )
endfunction
function Trig_Colonel_Belganon_Func023002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Colonel_Belganon_Func029002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Colonel_Belganon_Func032002 takes nothing returns nothing
call ResetToGameCameraForPlayer( GetEnumPlayer(), 2.00 )
endfunction
function Trig_Colonel_Belganon_Func033002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetEnumPlayer(), GetRectCenter(gg_rct_Jezrel_Intro), 2.00 )
endfunction
function Trig_Colonel_Belganon_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_No_Cutscene_Mode )
call CreateNUnitsAtLoc( 1, 'U00B', Player(11), GetRectCenter(gg_rct_Watchman_Default), 300.00 )
set udg_WatchmanDummy = GetLastCreatedUnit()
call SetUnitColor( udg_WatchmanDummy, PLAYER_COLOR_LIGHT_GRAY )
call SetHeroXP( udg_WatchmanDummy, 200, false )
set udg_JezrelIntro = true
call SetUserControlForceOff( GetPlayersAll() )
call ClearTextMessagesBJ( GetPlayersAll() )
call ShowInterfaceForceOff( GetPlayersAll(), 2 )
call CinematicModeExBJ( true, GetPlayersAll(), 2.00 )
call ForForce( GetPlayersAll(), function Trig_Colonel_Belganon_Func011002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(0)), function Trig_Colonel_Belganon_Func012002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(1)), function Trig_Colonel_Belganon_Func013002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(3)), function Trig_Colonel_Belganon_Func014002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(4)), function Trig_Colonel_Belganon_Func015002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(5)), function Trig_Colonel_Belganon_Func016002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(6)), function Trig_Colonel_Belganon_Func017002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), udg_LeaderInKilling), function Trig_Colonel_Belganon_Func018002 )
call SetUnitOwner( gg_unit_n00C_0049, Player(11), true )
call PolledWait( 2.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_H00G_0068, "TRIGSTR_1460", null, "TRIGSTR_1461", bj_TIMETYPE_ADD, 3.00, true )
call PolledWait( 3.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_LeaderInKilling, Condition(function Trig_Colonel_Belganon_Func023002001002))), GetPlayerName(udg_LeaderInKilling), null, "TRIGSTR_1481", bj_TIMETYPE_ADD, 1.00, true )
call PolledWait( 1.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_H00G_0068, "TRIGSTR_1478", null, "TRIGSTR_1479", bj_TIMETYPE_ADD, 7.00, true )
call PolledWait( 5.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_H00G_0068, "TRIGSTR_1482", null, "TRIGSTR_1483", bj_TIMETYPE_ADD, 5.00, true )
call PolledWait( 3.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_LeaderInKilling, Condition(function Trig_Colonel_Belganon_Func029002001002))), GetPlayerName(udg_LeaderInKilling), null, "TRIGSTR_1486", bj_TIMETYPE_ADD, 0.00, true )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_H00G_0068, "TRIGSTR_1484", null, "TRIGSTR_1485", bj_TIMETYPE_ADD, 5.00, true )
call PolledWait( 5.00 )
call ForForce( GetPlayersAll(), function Trig_Colonel_Belganon_Func032002 )
call ForForce( GetPlayersAll(), function Trig_Colonel_Belganon_Func033002 )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1462", "TRIGSTR_1463", "ReplaceableTextures\\CommandButtons\\BTNTomeBrown.blp" )
call SetUserControlForceOn( GetPlayersAll() )
call CinematicModeExBJ( false, GetPlayersAll(), 2.00 )
call ShowInterfaceForceOn( GetPlayersAll(), 2 )
call IssuePointOrderLocBJ( gg_unit_H00G_0068, "move", GetRectCenter(gg_rct_Colonel_Belganon) )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_1464" )
call PlaySoundBJ( gg_snd_QuestNew )
set udg_ChapterQuest = GetLastCreatedQuestBJ()
endfunction
//===========================================================================
function InitTrig_Colonel_Belganon takes nothing returns nothing
set gg_trg_Colonel_Belganon = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Colonel_Belganon, gg_rct_Jezrel_Intro )
call TriggerAddCondition( gg_trg_Colonel_Belganon, Condition( function Trig_Colonel_Belganon_Conditions ) )
call TriggerAddAction( gg_trg_Colonel_Belganon, function Trig_Colonel_Belganon_Actions )
endfunction
function Trig_Colonel_Belganon_Short_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(7) ) ) then
return false
endif
if ( not ( udg_JezrelIntro == false ) ) then
return false
endif
return true
endfunction
function Trig_Colonel_Belganon_Short_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'U00B', Player(11), GetRectCenter(gg_rct_Watchman_Default), 300.00 )
set udg_WatchmanDummy = GetLastCreatedUnit()
call SetUnitColor( udg_WatchmanDummy, PLAYER_COLOR_LIGHT_GRAY )
call SetHeroXP( udg_WatchmanDummy, 200, false )
set udg_JezrelIntro = true
call SetUnitOwner( gg_unit_n00C_0049, Player(11), true )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_7435", "TRIGSTR_7436", "ReplaceableTextures\\CommandButtons\\BTNTomeBrown.blp" )
call IssuePointOrderLocBJ( gg_unit_H00G_0068, "move", GetRectCenter(gg_rct_Colonel_Belganon) )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_7437" )
call PlaySoundBJ( gg_snd_QuestNew )
set udg_ChapterQuest = GetLastCreatedQuestBJ()
endfunction
//===========================================================================
function InitTrig_Colonel_Belganon_Short takes nothing returns nothing
set gg_trg_Colonel_Belganon_Short = CreateTrigger( )
call DisableTrigger( gg_trg_Colonel_Belganon_Short )
call TriggerRegisterEnterRectSimple( gg_trg_Colonel_Belganon_Short, gg_rct_Jezrel_Intro )
call TriggerAddCondition( gg_trg_Colonel_Belganon_Short, Condition( function Trig_Colonel_Belganon_Short_Conditions ) )
call TriggerAddAction( gg_trg_Colonel_Belganon_Short, function Trig_Colonel_Belganon_Short_Actions )
endfunction
function Trig_Colonel_Movement_Conditions takes nothing returns boolean
if ( not ( GetEnteringUnit() == gg_unit_H00G_0068 ) ) then
return false
endif
return true
endfunction
function Trig_Colonel_Movement_Func003A takes nothing returns nothing
call SetUnitColor( GetEnumUnit(), PLAYER_COLOR_AQUA )
call SetHeroXP( GetEnumUnit(), 900, false )
endfunction
function Trig_Colonel_Movement_Actions takes nothing returns nothing
call RemoveUnit( GetEnteringUnit() )
call CreateNUnitsAtLocFacingLocBJ( 1, 'H00F', Player(11), GetRectCenter(gg_rct_Colonel_Belganon), GetRectCenter(gg_rct_Jezrel_Intro) )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Colonel_Belganon, Player(11)), function Trig_Colonel_Movement_Func003A )
endfunction
//===========================================================================
function InitTrig_Colonel_Movement takes nothing returns nothing
set gg_trg_Colonel_Movement = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Colonel_Movement, gg_rct_Colonel_Belganon )
call TriggerAddCondition( gg_trg_Colonel_Movement, Condition( function Trig_Colonel_Movement_Conditions ) )
call TriggerAddAction( gg_trg_Colonel_Movement, function Trig_Colonel_Movement_Actions )
endfunction
function Trig_Mayor_Canard_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02V' ) ) then
return false
endif
return true
endfunction
function Trig_Mayor_Canard_Func008002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Quest_1_Mayor, GetEnumPlayer(), 2.00 )
endfunction
function Trig_Mayor_Canard_Func009002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Quest_1_P1), GetUnitLoc(gg_unit_H006_0010) )
endfunction
function Trig_Mayor_Canard_Func010002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Quest_1_P2), GetUnitLoc(gg_unit_H006_0010) )
endfunction
function Trig_Mayor_Canard_Func011002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Quest_1_P4), GetUnitLoc(gg_unit_H006_0010) )
endfunction
function Trig_Mayor_Canard_Func012002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Quest_1_P5), GetUnitLoc(gg_unit_H006_0010) )
endfunction
function Trig_Mayor_Canard_Func013002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Quest_1_P6), GetUnitLoc(gg_unit_H006_0010) )
endfunction
function Trig_Mayor_Canard_Func014002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Quest_1_P7), GetUnitLoc(gg_unit_H006_0010) )
endfunction
function Trig_Mayor_Canard_Func015002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Quest_1_PLeader), GetUnitLoc(gg_unit_H006_0010) )
endfunction
function Trig_Mayor_Canard_Func016002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Quest_1_P7), GetUnitLoc(gg_unit_H006_0010) )
endfunction
function Trig_Mayor_Canard_Func017001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'hfoo' )
endfunction
function Trig_Mayor_Canard_Func017002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Mayor_Canard_Func023002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Mayor_Canard_Func028002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Mayor_Canard_Func038002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Mayor_Canard_Func044002 takes nothing returns nothing
call ResetToGameCameraForPlayer( GetEnumPlayer(), 2.00 )
endfunction
function Trig_Mayor_Canard_Func045002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetEnumPlayer(), GetUnitLoc(gg_unit_H006_0010), 2.00 )
endfunction
function Trig_Mayor_Canard_Actions takes nothing returns nothing
call SetUserControlForceOff( GetPlayersAll() )
call UnitRemoveAbilityBJ( 'A02V', GetSpellAbilityUnit() )
call ClearTextMessagesBJ( GetPlayersAll() )
call ShowInterfaceForceOff( GetPlayersAll(), 2 )
call CinematicModeExBJ( true, GetPlayersAll(), 2.00 )
call ForForce( GetPlayersAll(), function Trig_Mayor_Canard_Func008002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(0)), function Trig_Mayor_Canard_Func009002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(1)), function Trig_Mayor_Canard_Func010002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(3)), function Trig_Mayor_Canard_Func011002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(4)), function Trig_Mayor_Canard_Func012002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(5)), function Trig_Mayor_Canard_Func013002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(6)), function Trig_Mayor_Canard_Func014002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), udg_LeaderInKilling), function Trig_Mayor_Canard_Func015002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(8)), function Trig_Mayor_Canard_Func016002 )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Jezrel_Guards_1, Condition(function Trig_Mayor_Canard_Func017001002)), function Trig_Mayor_Canard_Func017002 )
call PolledWait( 2 )
call DisableTrigger( gg_trg_Mayor_Gossip_1 )
call EnableTrigger( gg_trg_Mayor_Gossip_2 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_H006_0010, "TRIGSTR_1492", null, "TRIGSTR_1493", bj_TIMETYPE_ADD, 3.00, true )
call PolledWait( 3.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_LeaderInKilling, Condition(function Trig_Mayor_Canard_Func023002001002))), GetPlayerName(udg_LeaderInKilling), null, "TRIGSTR_1494", bj_TIMETYPE_ADD, 0.00, true )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_H006_0010, "TRIGSTR_1495", null, "TRIGSTR_1496", bj_TIMETYPE_ADD, 3.00, true )
call PolledWait( 3.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_H006_0010, "TRIGSTR_1497", null, "TRIGSTR_1498", bj_TIMETYPE_ADD, 2.00, true )
call PolledWait( 2.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_LeaderInKilling, Condition(function Trig_Mayor_Canard_Func028002001002))), GetPlayerName(udg_LeaderInKilling), null, "TRIGSTR_1499", bj_TIMETYPE_ADD, 1.00, true )
call PolledWait( 1.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_H006_0010, "TRIGSTR_1500", null, "TRIGSTR_1501", bj_TIMETYPE_ADD, 7.00, true )
call PolledWait( 7.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_H006_0010, "TRIGSTR_1502", null, "TRIGSTR_1503", bj_TIMETYPE_ADD, 9.00, true )
call PolledWait( 9.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_H006_0010, "TRIGSTR_1504", null, "TRIGSTR_1505", bj_TIMETYPE_ADD, 3.00, true )
call PolledWait( 3.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_H006_0010, "TRIGSTR_1506", null, "TRIGSTR_1507", bj_TIMETYPE_ADD, 3.00, true )
call PolledWait( 3.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_LeaderInKilling, Condition(function Trig_Mayor_Canard_Func038002001002))), GetPlayerName(udg_LeaderInKilling), null, "TRIGSTR_1508", bj_TIMETYPE_ADD, 1.00, true )
call PolledWait( 1.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_H006_0010, "TRIGSTR_1509", null, "TRIGSTR_1510", bj_TIMETYPE_ADD, 15.00, true )
call PolledWait( 15.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_H006_0010, "TRIGSTR_1511", null, "TRIGSTR_1512", bj_TIMETYPE_ADD, 3.00, true )
call PolledWait( 3.00 )
call ForForce( GetPlayersAll(), function Trig_Mayor_Canard_Func044002 )
call ForForce( GetPlayersAll(), function Trig_Mayor_Canard_Func045002 )
call QuestSetDescriptionBJ( udg_ChapterQuest, "TRIGSTR_1491" )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1513", "TRIGSTR_1514", "ReplaceableTextures\\CommandButtons\\BTNAmbush.blp" )
set udg_Quest1 = GetLastCreatedQuestBJ()
call SetUserControlForceOn( GetPlayersAll() )
call CinematicModeExBJ( false, GetPlayersAll(), 2.00 )
call ShowInterfaceForceOn( GetPlayersAll(), 2 )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_1515" )
call PlaySoundBJ( gg_snd_QuestNew )
endfunction
//===========================================================================
function InitTrig_Mayor_Canard takes nothing returns nothing
set gg_trg_Mayor_Canard = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Mayor_Canard, Player(11), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Mayor_Canard, Condition( function Trig_Mayor_Canard_Conditions ) )
call TriggerAddAction( gg_trg_Mayor_Canard, function Trig_Mayor_Canard_Actions )
endfunction
function Trig_Mayor_Canard_Short_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02V' ) ) then
return false
endif
return true
endfunction
function Trig_Mayor_Canard_Short_Func004001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'hfoo' )
endfunction
function Trig_Mayor_Canard_Short_Func004002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Mayor_Canard_Short_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( 'A02V', GetSpellAbilityUnit() )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Jezrel_Guards_1, Condition(function Trig_Mayor_Canard_Short_Func004001002)), function Trig_Mayor_Canard_Short_Func004002 )
call PolledWait( 2 )
call DisableTrigger( gg_trg_Mayor_Gossip_1 )
call EnableTrigger( gg_trg_Mayor_Gossip_2 )
call QuestSetDescriptionBJ( udg_ChapterQuest, "TRIGSTR_7459" )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_7460", "TRIGSTR_7461", "ReplaceableTextures\\CommandButtons\\BTNAmbush.blp" )
set udg_Quest1 = GetLastCreatedQuestBJ()
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_7462" )
call PlaySoundBJ( gg_snd_QuestNew )
endfunction
//===========================================================================
function InitTrig_Mayor_Canard_Short takes nothing returns nothing
set gg_trg_Mayor_Canard_Short = CreateTrigger( )
call DisableTrigger( gg_trg_Mayor_Canard_Short )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Mayor_Canard_Short, Player(11), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Mayor_Canard_Short, Condition( function Trig_Mayor_Canard_Short_Conditions ) )
call TriggerAddAction( gg_trg_Mayor_Canard_Short, function Trig_Mayor_Canard_Short_Actions )
endfunction
function Trig_The_Barrel_of_Explosives_Actions takes nothing returns nothing
call KillDestructable( gg_dest_FTtw_2039 )
call KillDestructable( gg_dest_FTtw_2042 )
call KillDestructable( gg_dest_FTtw_2040 )
call KillDestructable( gg_dest_FTtw_2041 )
call KillDestructable( gg_dest_FTtw_2043 )
call KillDestructable( gg_dest_FTtw_1015 )
call KillDestructable( gg_dest_FTtw_1013 )
call KillDestructable( gg_dest_FTtw_2044 )
call KillDestructable( gg_dest_FTtw_2034 )
call KillDestructable( gg_dest_FTtw_1777 )
call KillDestructable( gg_dest_FTtw_2111 )
call KillDestructable( gg_dest_FTtw_2045 )
call KillDestructable( gg_dest_FTtw_2194 )
endfunction
//===========================================================================
function InitTrig_The_Barrel_of_Explosives takes nothing returns nothing
set gg_trg_The_Barrel_of_Explosives = CreateTrigger( )
call TriggerRegisterDeathEvent( gg_trg_The_Barrel_of_Explosives, gg_dest_LTex_1251 )
call TriggerAddAction( gg_trg_The_Barrel_of_Explosives, function Trig_The_Barrel_of_Explosives_Actions )
endfunction
function Trig_Hint_Explosive_Barrel_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_Hint_Explosive_Barrel_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_2110" )
call PlaySoundBJ( gg_snd_QuestLog )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Hint_Explosive_Barrel takes nothing returns nothing
set gg_trg_Hint_Explosive_Barrel = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Hint_Explosive_Barrel, gg_rct_Hint_1_Explosive_Barrel )
call TriggerAddCondition( gg_trg_Hint_Explosive_Barrel, Condition( function Trig_Hint_Explosive_Barrel_Conditions ) )
call TriggerAddAction( gg_trg_Hint_Explosive_Barrel, function Trig_Hint_Explosive_Barrel_Actions )
endfunction
function Trig_Hint_Secret_Entrance_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_Hint_Secret_Entrance_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_2111" )
call PlaySoundBJ( gg_snd_QuestLog )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Hint_Secret_Entrance takes nothing returns nothing
set gg_trg_Hint_Secret_Entrance = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Hint_Secret_Entrance, gg_rct_Hint_2_Secret_Entrance )
call TriggerAddCondition( gg_trg_Hint_Secret_Entrance, Condition( function Trig_Hint_Secret_Entrance_Conditions ) )
call TriggerAddAction( gg_trg_Hint_Secret_Entrance, function Trig_Hint_Secret_Entrance_Actions )
endfunction
function Trig_The_Throne_Room_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(7) ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(9) ) ) then
return false
endif
return true
endfunction
function Trig_The_Throne_Room_Func007002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Keep_Quest, GetEnumPlayer(), 2.00 )
endfunction
function Trig_The_Throne_Room_Func008002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Keep_Quest_P1), GetUnitLoc(gg_unit_H00M_0159) )
endfunction
function Trig_The_Throne_Room_Func009002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Keep_Quest_P2), GetUnitLoc(gg_unit_H00M_0159) )
endfunction
function Trig_The_Throne_Room_Func010002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Keep_Quest_P4), GetUnitLoc(gg_unit_H00M_0159) )
endfunction
function Trig_The_Throne_Room_Func011002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Keep_Quest_P5), GetUnitLoc(gg_unit_H00M_0159) )
endfunction
function Trig_The_Throne_Room_Func012002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Keep_Quest_P6), GetUnitLoc(gg_unit_H00M_0159) )
endfunction
function Trig_The_Throne_Room_Func013002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Keep_Quest_P7), GetUnitLoc(gg_unit_H00M_0159) )
endfunction
function Trig_The_Throne_Room_Func014002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Keep_Quest_P7), GetUnitLoc(gg_unit_H00M_0159) )
endfunction
function Trig_The_Throne_Room_Func024002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_The_Throne_Room_Func033002 takes nothing returns nothing
call ResetToGameCameraForPlayer( GetEnumPlayer(), 2.00 )
endfunction
function Trig_The_Throne_Room_Func034002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetEnumPlayer(), GetRectCenter(gg_rct_The_Keep_Throne), 2.00 )
endfunction
function Trig_The_Throne_Room_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call PlaySoundBJ( gg_snd_IllidansTheme )
call SetUserControlForceOff( GetPlayersAll() )
call ClearTextMessagesBJ( GetPlayersAll() )
call ShowInterfaceForceOff( GetPlayersAll(), 2 )
call CinematicModeExBJ( true, GetPlayersAll(), 2.00 )
call ForForce( GetPlayersAll(), function Trig_The_Throne_Room_Func007002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(0)), function Trig_The_Throne_Room_Func008002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(1)), function Trig_The_Throne_Room_Func009002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(3)), function Trig_The_Throne_Room_Func010002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(4)), function Trig_The_Throne_Room_Func011002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(5)), function Trig_The_Throne_Room_Func012002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(6)), function Trig_The_Throne_Room_Func013002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(8)), function Trig_The_Throne_Room_Func014002 )
call PolledWait( 2.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_E00K_0161, "TRIGSTR_2279", null, "TRIGSTR_2280", bj_TIMETYPE_ADD, 1.00, true )
call PolledWait( 1.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_H00M_0159, "TRIGSTR_2281", null, "TRIGSTR_2282", bj_TIMETYPE_ADD, 3.00, true )
call PolledWait( 2.00 )
call IssuePointOrderLocBJ( gg_unit_U00D_0160, "move", GetRectCenter(gg_rct_Keep_Quest_PLeon) )
call PolledWait( 1.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_U00D_0160, "TRIGSTR_2283", null, "TRIGSTR_2284", bj_TIMETYPE_ADD, 3.00, true )
call PolledWait( 3.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_LeaderInKilling, Condition(function Trig_The_Throne_Room_Func024002001002))), GetPlayerName(udg_LeaderInKilling), null, "TRIGSTR_2285", bj_TIMETYPE_ADD, 0.00, true )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_U00D_0160, "TRIGSTR_2286", null, "TRIGSTR_2287", bj_TIMETYPE_ADD, 3.00, true )
call PolledWait( 3.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_H00M_0159, "TRIGSTR_2288", null, "TRIGSTR_2289", bj_TIMETYPE_ADD, 2.00, true )
call IssuePointOrderLocBJ( gg_unit_H00M_0159, "move", GetRectCenter(gg_rct_Keep_Quest_PVyrm) )
call PolledWait( 0.50 )
call SetUnitAnimation( gg_unit_H00M_0159, "ready" )
call PolledWait( 1.50 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_E00K_0161, "TRIGSTR_2290", null, "TRIGSTR_2291", bj_TIMETYPE_ADD, 0.00, true )
call ForForce( GetPlayersAll(), function Trig_The_Throne_Room_Func033002 )
call ForForce( GetPlayersAll(), function Trig_The_Throne_Room_Func034002 )
call QuestSetDescriptionBJ( udg_ChapterQuest, "TRIGSTR_2277" )
call SetUserControlForceOn( GetPlayersAll() )
call CinematicModeExBJ( false, GetPlayersAll(), 2.00 )
call ShowInterfaceForceOn( GetPlayersAll(), 2 )
call SetUnitInvulnerable( gg_unit_H00M_0159, false )
call SetUnitInvulnerable( gg_unit_n019_0208, false )
call SetUnitInvulnerable( gg_unit_n019_0207, false )
call ResetUnitAnimation( gg_unit_H00M_0159 )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_2276" )
call PlaySoundBJ( gg_snd_QuestLog )
call IssuePointOrderLocBJ( gg_unit_H00M_0159, "move", GetRectCenter(gg_rct_Keep_Quest_PLeon) )
call IssuePointOrderLocBJ( gg_unit_E00K_0161, "move", GetRectCenter(gg_rct_Keep_Quest_PRaine) )
call IssuePointOrderLocBJ( gg_unit_U00D_0160, "move", GetRectCenter(gg_rct_Keep_Quest_PMirach) )
call PolledWait( 2.00 )
call IssueTargetOrderBJ( gg_unit_U00D_0160, "frostnova", gg_unit_H00M_0159 )
call PolledWait( 0.50 )
call SetUnitInvulnerable( gg_unit_E00K_0161, false )
call SetUnitInvulnerable( gg_unit_U00D_0160, false )
endfunction
//===========================================================================
function InitTrig_The_Throne_Room takes nothing returns nothing
set gg_trg_The_Throne_Room = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_The_Throne_Room, gg_rct_The_Keep_Throne )
call TriggerAddCondition( gg_trg_The_Throne_Room, Condition( function Trig_The_Throne_Room_Conditions ) )
call TriggerAddAction( gg_trg_The_Throne_Room, function Trig_The_Throne_Room_Actions )
endfunction
function Trig_The_Throne_Room_Short_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(7) ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(9) ) ) then
return false
endif
return true
endfunction
function Trig_The_Throne_Room_Short_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call PlaySoundBJ( gg_snd_IllidansTheme )
call QuestSetDescriptionBJ( udg_ChapterQuest, "TRIGSTR_7476" )
call SetUnitInvulnerable( gg_unit_H00M_0159, false )
call SetUnitInvulnerable( gg_unit_n019_0208, false )
call SetUnitInvulnerable( gg_unit_n019_0207, false )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_7477" )
call PlaySoundBJ( gg_snd_QuestLog )
call IssuePointOrderLocBJ( gg_unit_H00M_0159, "move", GetRectCenter(gg_rct_Keep_Quest_PLeon) )
call IssuePointOrderLocBJ( gg_unit_E00K_0161, "move", GetRectCenter(gg_rct_Keep_Quest_PRaine) )
call IssuePointOrderLocBJ( gg_unit_U00D_0160, "move", GetRectCenter(gg_rct_Keep_Quest_PMirach) )
call PolledWait( 2.00 )
call IssueTargetOrderBJ( gg_unit_U00D_0160, "frostnova", gg_unit_H00M_0159 )
call PolledWait( 0.50 )
call SetUnitInvulnerable( gg_unit_E00K_0161, false )
call SetUnitInvulnerable( gg_unit_U00D_0160, false )
endfunction
//===========================================================================
function InitTrig_The_Throne_Room_Short takes nothing returns nothing
set gg_trg_The_Throne_Room_Short = CreateTrigger( )
call DisableTrigger( gg_trg_The_Throne_Room_Short )
call TriggerRegisterEnterRectSimple( gg_trg_The_Throne_Room_Short, gg_rct_The_Keep_Throne )
call TriggerAddCondition( gg_trg_The_Throne_Room_Short, Condition( function Trig_The_Throne_Room_Short_Conditions ) )
call TriggerAddAction( gg_trg_The_Throne_Room_Short, function Trig_The_Throne_Room_Short_Actions )
endfunction
function Trig_Saving_Raine_Actions takes nothing returns nothing
call SetUnitInvulnerable( gg_unit_E00K_0161, true )
call AddSpecialEffectLocBJ( GetUnitLoc(gg_unit_E00K_0161), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
call PolledWait( 1.50 )
call SetUnitPositionLoc( gg_unit_E00K_0161, GetRectCenter(gg_rct_Hiding_Raine) )
endfunction
//===========================================================================
function InitTrig_Saving_Raine takes nothing returns nothing
set gg_trg_Saving_Raine = CreateTrigger( )
call TriggerRegisterUnitLifeEvent( gg_trg_Saving_Raine, gg_unit_E00K_0161, LESS_THAN, 110.00 )
call TriggerAddAction( gg_trg_Saving_Raine, function Trig_Saving_Raine_Actions )
endfunction
function Trig_Saving_Leon_Actions takes nothing returns nothing
call SetUnitInvulnerable( gg_unit_U00D_0160, true )
call AddSpecialEffectLocBJ( GetUnitLoc(gg_unit_U00D_0160), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
call PolledWait( 1.50 )
call SetUnitPositionLoc( gg_unit_U00D_0160, GetRectCenter(gg_rct_Hiding_Leon) )
endfunction
//===========================================================================
function InitTrig_Saving_Leon takes nothing returns nothing
set gg_trg_Saving_Leon = CreateTrigger( )
call TriggerRegisterUnitLifeEvent( gg_trg_Saving_Leon, gg_unit_U00D_0160, LESS_THAN, 110.00 )
call TriggerAddAction( gg_trg_Saving_Leon, function Trig_Saving_Leon_Actions )
endfunction
function Trig_Killing_the_Head_Func001002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Killing_the_Head_Func011002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Keep_Quest, GetEnumPlayer(), 2.00 )
endfunction
function Trig_Killing_the_Head_Func013002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Keep_Quest_P1), GetUnitLoc(gg_unit_E00K_0161) )
endfunction
function Trig_Killing_the_Head_Func014002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Keep_Quest_P2), GetUnitLoc(gg_unit_E00K_0161) )
endfunction
function Trig_Killing_the_Head_Func015002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Keep_Quest_P4), GetUnitLoc(gg_unit_E00K_0161) )
endfunction
function Trig_Killing_the_Head_Func016002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Keep_Quest_P5), GetUnitLoc(gg_unit_E00K_0161) )
endfunction
function Trig_Killing_the_Head_Func017002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Keep_Quest_P6), GetUnitLoc(gg_unit_E00K_0161) )
endfunction
function Trig_Killing_the_Head_Func018002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Keep_Quest_P7), GetUnitLoc(gg_unit_E00K_0161) )
endfunction
function Trig_Killing_the_Head_Func019002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Keep_Quest_P7), GetUnitLoc(gg_unit_E00K_0161) )
endfunction
function Trig_Killing_the_Head_Func026002 takes nothing returns nothing
call ResetToGameCameraForPlayer( GetEnumPlayer(), 2.00 )
endfunction
function Trig_Killing_the_Head_Func027002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetEnumPlayer(), GetRectCenter(gg_rct_The_Keep_Throne), 2.00 )
endfunction
function Trig_Killing_the_Head_Func044002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Killing_the_Head_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_The_Keep_Throne, Player(PLAYER_NEUTRAL_AGGRESSIVE)), function Trig_Killing_the_Head_Func001002 )
call SetUnitInvulnerable( gg_unit_E00K_0161, true )
call SetUnitInvulnerable( gg_unit_U00D_0160, true )
call PolledWait( 0.20 )
call UnitAddAbilityBJ( 'A09P', gg_unit_H006_0010 )
call PolledWait( 2.00 )
call SetUserControlForceOff( GetPlayersAll() )
call ClearTextMessagesBJ( GetPlayersAll() )
call ShowInterfaceForceOff( GetPlayersAll(), 2 )
call CinematicModeExBJ( true, GetPlayersAll(), 2.00 )
call ForForce( GetPlayersAll(), function Trig_Killing_the_Head_Func011002 )
call SetUnitPositionLocFacingBJ( gg_unit_E00K_0161, GetRectCenter(gg_rct_Keep_Quest_PLeon), 250.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(0)), function Trig_Killing_the_Head_Func013002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(1)), function Trig_Killing_the_Head_Func014002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(3)), function Trig_Killing_the_Head_Func015002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(4)), function Trig_Killing_the_Head_Func016002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(5)), function Trig_Killing_the_Head_Func017002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(6)), function Trig_Killing_the_Head_Func018002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(8)), function Trig_Killing_the_Head_Func019002 )
call SetUnitPositionLocFacingBJ( gg_unit_U00D_0160, GetRectCenter(gg_rct_Keep_Quest_PMirach), 100.00 )
call PolledWait( 2.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_E00K_0161, "TRIGSTR_4322", null, "TRIGSTR_4323", bj_TIMETYPE_ADD, 4.00, true )
call PolledWait( 4.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_U00D_0160, "TRIGSTR_4324", null, "TRIGSTR_4325", bj_TIMETYPE_ADD, 5.00, true )
call PolledWait( 5.00 )
call ForForce( GetPlayersAll(), function Trig_Killing_the_Head_Func026002 )
call ForForce( GetPlayersAll(), function Trig_Killing_the_Head_Func027002 )
call SetUserControlForceOn( GetPlayersAll() )
call CinematicModeExBJ( false, GetPlayersAll(), 2.00 )
call ShowInterfaceForceOn( GetPlayersAll(), 2 )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_4326" )
call PlaySoundBJ( gg_snd_QuestLog )
call QuestSetDescriptionBJ( udg_ChapterQuest, "TRIGSTR_4327" )
call QuestSetDescriptionBJ( udg_Quest1, "TRIGSTR_4328" )
call AddSpecialEffectLocBJ( GetUnitLoc(gg_unit_E00K_0161), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
call AddSpecialEffectLocBJ( GetUnitLoc(gg_unit_U00D_0160), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
call PolledWait( 1.50 )
call SetUnitPositionLoc( gg_unit_E00K_0161, GetRectCenter(gg_rct_Hiding_Raine) )
call SetUnitPositionLoc( gg_unit_U00D_0160, GetRectCenter(gg_rct_Hiding_Leon) )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PolledWait( 5.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_The_Keep, Player(PLAYER_NEUTRAL_AGGRESSIVE)), function Trig_Killing_the_Head_Func044002 )
endfunction
//===========================================================================
function InitTrig_Killing_the_Head takes nothing returns nothing
set gg_trg_Killing_the_Head = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Killing_the_Head, gg_unit_H00M_0159, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Killing_the_Head, function Trig_Killing_the_Head_Actions )
endfunction
function Trig_Killing_the_Head_Short_Func001002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Killing_the_Head_Short_Func021002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Killing_the_Head_Short_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_The_Keep_Throne, Player(PLAYER_NEUTRAL_AGGRESSIVE)), function Trig_Killing_the_Head_Short_Func001002 )
call SetUnitInvulnerable( gg_unit_E00K_0161, true )
call SetUnitInvulnerable( gg_unit_U00D_0160, true )
call PolledWait( 0.20 )
call UnitAddAbilityBJ( 'A09P', gg_unit_H006_0010 )
call SetUnitPositionLocFacingBJ( gg_unit_E00K_0161, GetRectCenter(gg_rct_Keep_Quest_PLeon), 250.00 )
call SetUnitPositionLocFacingBJ( gg_unit_U00D_0160, GetRectCenter(gg_rct_Keep_Quest_PMirach), 100.00 )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_7482" )
call PlaySoundBJ( gg_snd_QuestLog )
call QuestSetDescriptionBJ( udg_ChapterQuest, "TRIGSTR_7483" )
call QuestSetDescriptionBJ( udg_Quest1, "TRIGSTR_7484" )
call AddSpecialEffectLocBJ( GetUnitLoc(gg_unit_E00K_0161), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
call AddSpecialEffectLocBJ( GetUnitLoc(gg_unit_U00D_0160), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
call PolledWait( 1.50 )
call SetUnitPositionLoc( gg_unit_E00K_0161, GetRectCenter(gg_rct_Hiding_Raine) )
call SetUnitPositionLoc( gg_unit_U00D_0160, GetRectCenter(gg_rct_Hiding_Leon) )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PolledWait( 5.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_The_Keep, Player(PLAYER_NEUTRAL_AGGRESSIVE)), function Trig_Killing_the_Head_Short_Func021002 )
endfunction
//===========================================================================
function InitTrig_Killing_the_Head_Short takes nothing returns nothing
set gg_trg_Killing_the_Head_Short = CreateTrigger( )
call DisableTrigger( gg_trg_Killing_the_Head_Short )
call TriggerRegisterUnitEvent( gg_trg_Killing_the_Head_Short, gg_unit_H00M_0159, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Killing_the_Head_Short, function Trig_Killing_the_Head_Short_Actions )
endfunction
function Trig_The_Chapter_2_Shops_Func003002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_The_Chapter_2_Shops_Actions takes nothing returns nothing
call RemoveUnit( gg_unit_E00C_0055 )
call RemoveUnit( gg_unit_H00B_0056 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Colonel_Belganon, Player(11)), function Trig_The_Chapter_2_Shops_Func003002 )
call UnitAddAbilityBJ( 'A0BL', gg_unit_n03K_0169 )
call UnitAddAbilityBJ( 'A0BM', gg_unit_n03K_0169 )
endfunction
//===========================================================================
function InitTrig_The_Chapter_2_Shops takes nothing returns nothing
set gg_trg_The_Chapter_2_Shops = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_The_Chapter_2_Shops, gg_unit_H00M_0159, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_The_Chapter_2_Shops, function Trig_The_Chapter_2_Shops_Actions )
endfunction
function Trig_Reporting_Success_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A09P' ) ) then
return false
endif
return true
endfunction
function Trig_Reporting_Success_Func003001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'hfoo' )
endfunction
function Trig_Reporting_Success_Func003002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Reporting_Success_Func008002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Quest_1_Mayor, GetEnumPlayer(), 2.00 )
endfunction
function Trig_Reporting_Success_Func009002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Quest_1_P1), GetUnitLoc(gg_unit_H006_0010) )
endfunction
function Trig_Reporting_Success_Func010002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Quest_1_P2), GetUnitLoc(gg_unit_H006_0010) )
endfunction
function Trig_Reporting_Success_Func011002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Quest_1_P4), GetUnitLoc(gg_unit_H006_0010) )
endfunction
function Trig_Reporting_Success_Func012002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Quest_1_P5), GetUnitLoc(gg_unit_H006_0010) )
endfunction
function Trig_Reporting_Success_Func013002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Quest_1_P6), GetUnitLoc(gg_unit_H006_0010) )
endfunction
function Trig_Reporting_Success_Func014002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Quest_1_P7), GetUnitLoc(gg_unit_H006_0010) )
endfunction
function Trig_Reporting_Success_Func015002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Quest_1_PLeader), GetUnitLoc(gg_unit_H006_0010) )
endfunction
function Trig_Reporting_Success_Func016002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Quest_1_P7), GetUnitLoc(gg_unit_H006_0010) )
endfunction
function Trig_Reporting_Success_Func020002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Reporting_Success_Func031002 takes nothing returns nothing
call ResetToGameCameraForPlayer( GetEnumPlayer(), 2.00 )
endfunction
function Trig_Reporting_Success_Func032002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetEnumPlayer(), GetUnitLoc(gg_unit_H006_0010), 2.00 )
endfunction
function Trig_Reporting_Success_Func041002 takes nothing returns nothing
call AdjustPlayerStateBJ( 150, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Reporting_Success_Func042002 takes nothing returns nothing
call AdjustPlayerStateBJ( 1, GetEnumPlayer(), PLAYER_STATE_RESOURCE_LUMBER )
endfunction
function Trig_Reporting_Success_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( 'A09P', GetSpellAbilityUnit() )
call SetUserControlForceOff( GetPlayersAll() )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Jezrel_Guards_2, Condition(function Trig_Reporting_Success_Func003001002)), function Trig_Reporting_Success_Func003002 )
call EnableTrigger( gg_trg_Wind_and_Dust )
call ClearTextMessagesBJ( GetPlayersAll() )
call ShowInterfaceForceOff( GetPlayersAll(), 2 )
call CinematicModeExBJ( true, GetPlayersAll(), 2.00 )
call ForForce( GetPlayersAll(), function Trig_Reporting_Success_Func008002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(0)), function Trig_Reporting_Success_Func009002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(1)), function Trig_Reporting_Success_Func010002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(3)), function Trig_Reporting_Success_Func011002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(4)), function Trig_Reporting_Success_Func012002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(5)), function Trig_Reporting_Success_Func013002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(6)), function Trig_Reporting_Success_Func014002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), udg_LeaderInKilling), function Trig_Reporting_Success_Func015002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(8)), function Trig_Reporting_Success_Func016002 )
call PolledWait( 2 )
call DisableTrigger( gg_trg_Mayor_Gossip_2 )
call EnableTrigger( gg_trg_Mayor_Gossip_3 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_LeaderInKilling, Condition(function Trig_Reporting_Success_Func020002001002))), GetPlayerName(udg_LeaderInKilling), null, "TRIGSTR_4333", bj_TIMETYPE_ADD, 2.00, true )
call PolledWait( 2 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_H006_0010, "TRIGSTR_4331", null, "TRIGSTR_4332", bj_TIMETYPE_ADD, 3.00, true )
call PolledWait( 3.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_H006_0010, "TRIGSTR_4334", null, "TRIGSTR_4335", bj_TIMETYPE_ADD, 3.00, true )
call PolledWait( 3.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_H006_0010, "TRIGSTR_4336", null, "TRIGSTR_4337", bj_TIMETYPE_ADD, 3.00, true )
call PolledWait( 3.00 )
call SetUserControlForceOn( GetPlayersAll() )
call CinematicModeExBJ( false, GetPlayersAll(), 2.00 )
call ShowInterfaceForceOn( GetPlayersAll(), 2 )
call ForForce( GetPlayersAll(), function Trig_Reporting_Success_Func031002 )
call ForForce( GetPlayersAll(), function Trig_Reporting_Success_Func032002 )
call QuestSetDescriptionBJ( udg_ChapterQuest, "TRIGSTR_4338" )
call QuestSetDescriptionBJ( udg_Quest1, "TRIGSTR_4340" )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_4339" )
call QuestSetCompletedBJ( udg_Quest1, true )
call PlaySoundBJ( gg_snd_QuestCompleted )
call FlashQuestDialogButtonBJ( )
call PolledWait( 2 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_4341" )
call ForForce( udg_PlayerGroup, function Trig_Reporting_Success_Func041002 )
call ForForce( udg_PlayerGroup, function Trig_Reporting_Success_Func042002 )
call AdjustPlayerStateBJ( 15, udg_KindredSpirit1, PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 15, udg_KindredSpirit2, PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 15, udg_KindredSpirit3, PLAYER_STATE_RESOURCE_GOLD )
endfunction
//===========================================================================
function InitTrig_Reporting_Success takes nothing returns nothing
set gg_trg_Reporting_Success = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Reporting_Success, Player(11), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Reporting_Success, Condition( function Trig_Reporting_Success_Conditions ) )
call TriggerAddAction( gg_trg_Reporting_Success, function Trig_Reporting_Success_Actions )
endfunction
function Trig_Reporting_Success_Short_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A09P' ) ) then
return false
endif
return true
endfunction
function Trig_Reporting_Success_Short_Func002001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'hfoo' )
endfunction
function Trig_Reporting_Success_Short_Func002002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Reporting_Success_Short_Func015002 takes nothing returns nothing
call AdjustPlayerStateBJ( 150, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Reporting_Success_Short_Func016002 takes nothing returns nothing
call AdjustPlayerStateBJ( 1, GetEnumPlayer(), PLAYER_STATE_RESOURCE_LUMBER )
endfunction
function Trig_Reporting_Success_Short_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( 'A09P', GetSpellAbilityUnit() )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Jezrel_Guards_2, Condition(function Trig_Reporting_Success_Short_Func002001002)), function Trig_Reporting_Success_Short_Func002002 )
call EnableTrigger( gg_trg_Wind_and_Dust_Short )
call PolledWait( 2 )
call DisableTrigger( gg_trg_Mayor_Gossip_2 )
call EnableTrigger( gg_trg_Mayor_Gossip_3 )
call QuestSetDescriptionBJ( udg_ChapterQuest, "TRIGSTR_7492" )
call QuestSetDescriptionBJ( udg_Quest1, "TRIGSTR_7493" )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_7494" )
call QuestSetCompletedBJ( udg_Quest1, true )
call PlaySoundBJ( gg_snd_QuestCompleted )
call FlashQuestDialogButtonBJ( )
call PolledWait( 2 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_7495" )
call ForForce( udg_PlayerGroup, function Trig_Reporting_Success_Short_Func015002 )
call ForForce( udg_PlayerGroup, function Trig_Reporting_Success_Short_Func016002 )
call AdjustPlayerStateBJ( 15, udg_KindredSpirit1, PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 15, udg_KindredSpirit2, PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 15, udg_KindredSpirit3, PLAYER_STATE_RESOURCE_GOLD )
endfunction
//===========================================================================
function InitTrig_Reporting_Success_Short takes nothing returns nothing
set gg_trg_Reporting_Success_Short = CreateTrigger( )
call DisableTrigger( gg_trg_Reporting_Success_Short )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Reporting_Success_Short, Player(11), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Reporting_Success_Short, Condition( function Trig_Reporting_Success_Short_Conditions ) )
call TriggerAddAction( gg_trg_Reporting_Success_Short, function Trig_Reporting_Success_Short_Actions )
endfunction
function Trig_Find_Dungeon_Key_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I03O' ) ) then
return false
endif
return true
endfunction
function Trig_Find_Dungeon_Key_Actions takes nothing returns nothing
call EnableTrigger( gg_trg_Dungeon_Door )
endfunction
//===========================================================================
function InitTrig_Find_Dungeon_Key takes nothing returns nothing
set gg_trg_Find_Dungeon_Key = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Find_Dungeon_Key, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Find_Dungeon_Key, Condition( function Trig_Find_Dungeon_Key_Conditions ) )
call TriggerAddAction( gg_trg_Find_Dungeon_Key, function Trig_Find_Dungeon_Key_Actions )
endfunction
function Trig_Lose_Dungeon_Key_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I03O' ) ) then
return false
endif
return true
endfunction
function Trig_Lose_Dungeon_Key_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Dungeon_Door )
endfunction
//===========================================================================
function InitTrig_Lose_Dungeon_Key takes nothing returns nothing
set gg_trg_Lose_Dungeon_Key = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Lose_Dungeon_Key, EVENT_PLAYER_UNIT_DROP_ITEM )
call TriggerAddCondition( gg_trg_Lose_Dungeon_Key, Condition( function Trig_Lose_Dungeon_Key_Conditions ) )
call TriggerAddAction( gg_trg_Lose_Dungeon_Key, function Trig_Lose_Dungeon_Key_Actions )
endfunction
function Trig_Dungeon_Door_Func004001001 takes nothing returns boolean
return ( GetOwningPlayer(GetEnteringUnit()) == GetFilterPlayer() )
endfunction
function Trig_Dungeon_Door_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisableTrigger( gg_trg_Find_Dungeon_Key )
call DisableTrigger( gg_trg_Lose_Dungeon_Key )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Dungeon_Door_Func004001001)), "TRIGSTR_6105" )
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_ITg1_0139 )
call PlaySoundBJ( gg_snd_CityGateOpen )
endfunction
//===========================================================================
function InitTrig_Dungeon_Door takes nothing returns nothing
set gg_trg_Dungeon_Door = CreateTrigger( )
call DisableTrigger( gg_trg_Dungeon_Door )
call TriggerRegisterEnterRectSimple( gg_trg_Dungeon_Door, gg_rct_Keep_Dungeon_Door )
call TriggerAddAction( gg_trg_Dungeon_Door, function Trig_Dungeon_Door_Actions )
endfunction
function Trig_The_Real_Shops_Actions takes nothing returns nothing
call PolledWait( 2 )
call ReplaceUnitBJ( gg_unit_h000_0037, 'h00O', bj_UNIT_STATE_METHOD_RELATIVE )
call ReplaceUnitBJ( gg_unit_h004_0038, 'h00P', bj_UNIT_STATE_METHOD_RELATIVE )
call ReplaceUnitBJ( gg_unit_h008_0040, 'h00Q', bj_UNIT_STATE_METHOD_RELATIVE )
call ReplaceUnitBJ( gg_unit_n00C_0049, 'n01C', bj_UNIT_STATE_METHOD_RELATIVE )
set udg_ResurrectionMan = GetLastReplacedUnitBJ()
set udg_Nathan = GetLastReplacedUnitBJ()
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6770" )
endfunction
//===========================================================================
function InitTrig_The_Real_Shops takes nothing returns nothing
set gg_trg_The_Real_Shops = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_The_Real_Shops, gg_unit_n00T_0149, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_The_Real_Shops, function Trig_The_Real_Shops_Actions )
endfunction
function Trig_Jessa_Montgomery_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A03N' ) ) then
return false
endif
return true
endfunction
function Trig_Jessa_Montgomery_Func006002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Optional_Quest_1_Jessa, GetEnumPlayer(), 2.00 )
endfunction
function Trig_Jessa_Montgomery_Func007002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Optional_Quest_1_P1), GetUnitLoc(gg_unit_n00U_0141) )
endfunction
function Trig_Jessa_Montgomery_Func008002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Optional_Quest_1_P2), GetUnitLoc(gg_unit_n00U_0141) )
endfunction
function Trig_Jessa_Montgomery_Func009002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Optional_Quest_1_P4), GetUnitLoc(gg_unit_n00U_0141) )
endfunction
function Trig_Jessa_Montgomery_Func010002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Optional_Quest_1_P5), GetUnitLoc(gg_unit_n00U_0141) )
endfunction
function Trig_Jessa_Montgomery_Func011002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Optional_Quest_1_P6), GetUnitLoc(gg_unit_n00U_0141) )
endfunction
function Trig_Jessa_Montgomery_Func012002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Optional_Quest_1_P7), GetUnitLoc(gg_unit_n00U_0141) )
endfunction
function Trig_Jessa_Montgomery_Func013002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Optional_Quest_1_PH), GetUnitLoc(gg_unit_n00U_0141) )
endfunction
function Trig_Jessa_Montgomery_Func022001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Jessa_Montgomery_Func022002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "move", GetRectCenter(gg_rct_Optional_Quest_1_PLoser) )
endfunction
function Trig_Jessa_Montgomery_Func023002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Jessa_Montgomery_Func027002 takes nothing returns nothing
call ResetToGameCameraForPlayer( GetEnumPlayer(), 2.00 )
endfunction
function Trig_Jessa_Montgomery_Func028002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetEnumPlayer(), GetUnitLoc(gg_unit_n00U_0141), 2.00 )
endfunction
function Trig_Jessa_Montgomery_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( 'A03N', GetSpellAbilityUnit() )
call SetUserControlForceOff( GetPlayersAll() )
call ClearTextMessagesBJ( GetPlayersAll() )
call ShowInterfaceForceOff( GetPlayersAll(), 2 )
call CinematicModeExBJ( true, GetPlayersAll(), 2.00 )
call ForForce( GetPlayersAll(), function Trig_Jessa_Montgomery_Func006002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(0)), function Trig_Jessa_Montgomery_Func007002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(1)), function Trig_Jessa_Montgomery_Func008002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(3)), function Trig_Jessa_Montgomery_Func009002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(4)), function Trig_Jessa_Montgomery_Func010002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(5)), function Trig_Jessa_Montgomery_Func011002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(6)), function Trig_Jessa_Montgomery_Func012002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(8)), function Trig_Jessa_Montgomery_Func013002 )
call EnableTrigger( gg_trg_Caring )
call PolledWait( 2.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_n00U_0141, "TRIGSTR_1867", null, "TRIGSTR_1868", bj_TIMETYPE_ADD, 3.00, true )
call PolledWait( 3.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_n00U_0141, "TRIGSTR_1870", null, "TRIGSTR_1871", bj_TIMETYPE_ADD, 5.00, true )
call PolledWait( 5.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_n00U_0141, "TRIGSTR_1872", null, "TRIGSTR_1873", bj_TIMETYPE_ADD, 4.00, true )
call PolledWait( 4.00 )
call ForGroupBJ( GetUnitsOfPlayerMatching(udg_LoserInKilling, Condition(function Trig_Jessa_Montgomery_Func022001002)), function Trig_Jessa_Montgomery_Func022002 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_LoserInKilling, Condition(function Trig_Jessa_Montgomery_Func023002001002))), GetPlayerName(udg_LoserInKilling), null, "TRIGSTR_1869", bj_TIMETYPE_ADD, 1.00, true )
call PolledWait( 1.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_n00U_0141, "TRIGSTR_1874", null, "TRIGSTR_1875", bj_TIMETYPE_ADD, 3.00, true )
call PolledWait( 3.00 )
call ForForce( GetPlayersAll(), function Trig_Jessa_Montgomery_Func027002 )
call ForForce( GetPlayersAll(), function Trig_Jessa_Montgomery_Func028002 )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1879", "TRIGSTR_1880", "ReplaceableTextures\\CommandButtons\\BTNVillagerMan.blp" )
call DisableTrigger( gg_trg_Caring )
call SetUserControlForceOn( GetPlayersAll() )
call CinematicModeExBJ( false, GetPlayersAll(), 2.00 )
call ShowInterfaceForceOn( GetPlayersAll(), 2 )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_1881" )
set udg_OpQuest1 = GetLastCreatedQuestBJ()
call PlaySoundBJ( gg_snd_QuestNew )
set udg_SpokeToJessa = true
endfunction
//===========================================================================
function InitTrig_Jessa_Montgomery takes nothing returns nothing
set gg_trg_Jessa_Montgomery = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Jessa_Montgomery, Player(11), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Jessa_Montgomery, Condition( function Trig_Jessa_Montgomery_Conditions ) )
call TriggerAddAction( gg_trg_Jessa_Montgomery, function Trig_Jessa_Montgomery_Actions )
endfunction
function Trig_Jessa_Montgomery_Short_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A03N' ) ) then
return false
endif
return true
endfunction
function Trig_Jessa_Montgomery_Short_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( 'A03N', GetSpellAbilityUnit() )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_7505", "TRIGSTR_7506", "ReplaceableTextures\\CommandButtons\\BTNVillagerMan.blp" )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_7507" )
set udg_OpQuest1 = GetLastCreatedQuestBJ()
call PlaySoundBJ( gg_snd_QuestNew )
set udg_SpokeToJessa = true
endfunction
//===========================================================================
function InitTrig_Jessa_Montgomery_Short takes nothing returns nothing
set gg_trg_Jessa_Montgomery_Short = CreateTrigger( )
call DisableTrigger( gg_trg_Jessa_Montgomery_Short )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Jessa_Montgomery_Short, Player(11), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Jessa_Montgomery_Short, Condition( function Trig_Jessa_Montgomery_Short_Conditions ) )
call TriggerAddAction( gg_trg_Jessa_Montgomery_Short, function Trig_Jessa_Montgomery_Short_Actions )
endfunction
function Trig_Caring_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == udg_LoserInKilling ) ) then
return false
endif
return true
endfunction
function Trig_Caring_Actions takes nothing returns nothing
call SetUnitFacingToFaceUnitTimed( GetEnteringUnit(), gg_unit_n00U_0141, 1.00 )
endfunction
//===========================================================================
function InitTrig_Caring takes nothing returns nothing
set gg_trg_Caring = CreateTrigger( )
call DisableTrigger( gg_trg_Caring )
call TriggerRegisterEnterRectSimple( gg_trg_Caring, gg_rct_Optional_Quest_1_PLoser )
call TriggerAddCondition( gg_trg_Caring, Condition( function Trig_Caring_Conditions ) )
call TriggerAddAction( gg_trg_Caring, function Trig_Caring_Actions )
endfunction
function Trig_Find_Ring_First_Time_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I00K' ) ) then
return false
endif
if ( not ( udg_SpokeToJessa == true ) ) then
return false
endif
return true
endfunction
function Trig_Find_Ring_First_Time_Actions takes nothing returns nothing
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_1886" )
call QuestSetDescriptionBJ( udg_OpQuest1, "TRIGSTR_1887" )
call DisableTrigger( GetTriggeringTrigger() )
call PlaySoundBJ( gg_snd_QuestLog )
endfunction
//===========================================================================
function InitTrig_Find_Ring_First_Time takes nothing returns nothing
set gg_trg_Find_Ring_First_Time = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Find_Ring_First_Time, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Find_Ring_First_Time, Condition( function Trig_Find_Ring_First_Time_Conditions ) )
call TriggerAddAction( gg_trg_Find_Ring_First_Time, function Trig_Find_Ring_First_Time_Actions )
endfunction
function Trig_Find_Ring_Before_Speaking_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I00K' ) ) then
return false
endif
if ( not ( udg_SpokeToJessa == false ) ) then
return false
endif
return true
endfunction
function Trig_Find_Ring_Before_Speaking_Actions takes nothing returns nothing
call FlashQuestDialogButtonBJ( )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_2108", "TRIGSTR_2109", "ReplaceableTextures\\CommandButtons\\BTNVillagerMan.blp" )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_2106" )
set udg_OpQuest1 = GetLastCreatedQuestBJ()
call DisableTrigger( GetTriggeringTrigger() )
call PlaySoundBJ( gg_snd_QuestNew )
endfunction
//===========================================================================
function InitTrig_Find_Ring_Before_Speaking takes nothing returns nothing
set gg_trg_Find_Ring_Before_Speaking = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Find_Ring_Before_Speaking, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Find_Ring_Before_Speaking, Condition( function Trig_Find_Ring_Before_Speaking_Conditions ) )
call TriggerAddAction( gg_trg_Find_Ring_Before_Speaking, function Trig_Find_Ring_Before_Speaking_Actions )
endfunction
function Trig_Find_Ring_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I00K' ) ) then
return false
endif
return true
endfunction
function Trig_Find_Ring_Actions takes nothing returns nothing
call UnitAddAbilityBJ( 'A03O', gg_unit_n00U_0141 )
call UnitAddAbilityBJ( 'A047', gg_unit_n00U_0141 )
call UnitRemoveAbilityBJ( 'A03N', gg_unit_n00U_0141 )
call DisableTrigger( gg_trg_Jessa_Gossip_1 )
call EnableTrigger( gg_trg_Jessa_Gossip_2 )
endfunction
//===========================================================================
function InitTrig_Find_Ring takes nothing returns nothing
set gg_trg_Find_Ring = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Find_Ring, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Find_Ring, Condition( function Trig_Find_Ring_Conditions ) )
call TriggerAddAction( gg_trg_Find_Ring, function Trig_Find_Ring_Actions )
endfunction
function Trig_Lose_Ring_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I00K' ) ) then
return false
endif
return true
endfunction
function Trig_Lose_Ring_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( 'A03O', gg_unit_n00U_0141 )
call UnitRemoveAbilityBJ( 'A047', gg_unit_n00U_0141 )
endfunction
//===========================================================================
function InitTrig_Lose_Ring takes nothing returns nothing
set gg_trg_Lose_Ring = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Lose_Ring, EVENT_PLAYER_UNIT_DROP_ITEM )
call TriggerAddCondition( gg_trg_Lose_Ring, Condition( function Trig_Lose_Ring_Conditions ) )
call TriggerAddAction( gg_trg_Lose_Ring, function Trig_Lose_Ring_Actions )
endfunction
function Trig_Returning_the_Ring_Gently_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A03O' ) ) then
return false
endif
return true
endfunction
function Trig_Returning_the_Ring_Gently_Func008002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Optional_Quest_1_Jessa, GetEnumPlayer(), 2.00 )
endfunction
function Trig_Returning_the_Ring_Gently_Func009002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Optional_Quest_1_P1), GetUnitLoc(gg_unit_n00U_0141) )
endfunction
function Trig_Returning_the_Ring_Gently_Func010002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Optional_Quest_1_P2), GetUnitLoc(gg_unit_n00U_0141) )
endfunction
function Trig_Returning_the_Ring_Gently_Func011002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Optional_Quest_1_P4), GetUnitLoc(gg_unit_n00U_0141) )
endfunction
function Trig_Returning_the_Ring_Gently_Func012002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Optional_Quest_1_P5), GetUnitLoc(gg_unit_n00U_0141) )
endfunction
function Trig_Returning_the_Ring_Gently_Func013002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Optional_Quest_1_P6), GetUnitLoc(gg_unit_n00U_0141) )
endfunction
function Trig_Returning_the_Ring_Gently_Func014002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Optional_Quest_1_P7), GetUnitLoc(gg_unit_n00U_0141) )
endfunction
function Trig_Returning_the_Ring_Gently_Func015002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Optional_Quest_1_PH), GetUnitLoc(gg_unit_n00U_0141) )
endfunction
function Trig_Returning_the_Ring_Gently_Func017002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Returning_the_Ring_Gently_Func019002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Returning_the_Ring_Gently_Func022002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Returning_the_Ring_Gently_Func025002 takes nothing returns nothing
call ResetToGameCameraForPlayer( GetEnumPlayer(), 2.00 )
endfunction
function Trig_Returning_the_Ring_Gently_Func026002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetEnumPlayer(), GetUnitLoc(gg_unit_n00U_0141), 2.00 )
endfunction
function Trig_Returning_the_Ring_Gently_Func035002 takes nothing returns nothing
call AdjustPlayerStateBJ( 50, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Returning_the_Ring_Gently_Func037002 takes nothing returns nothing
call AdjustPlayerStateBJ( 1, GetEnumPlayer(), PLAYER_STATE_RESOURCE_LUMBER )
endfunction
function Trig_Returning_the_Ring_Gently_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( 'A03O', GetSpellAbilityUnit() )
call UnitRemoveAbilityBJ( 'A047', GetSpellAbilityUnit() )
call RemoveItem( udg_WeddingRing )
call SetUserControlForceOff( GetPlayersAll() )
call ClearTextMessagesBJ( GetPlayersAll() )
call ShowInterfaceForceOff( GetPlayersAll(), 2 )
call CinematicModeExBJ( true, GetPlayersAll(), 2.00 )
call ForForce( GetPlayersAll(), function Trig_Returning_the_Ring_Gently_Func008002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(0)), function Trig_Returning_the_Ring_Gently_Func009002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(1)), function Trig_Returning_the_Ring_Gently_Func010002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(3)), function Trig_Returning_the_Ring_Gently_Func011002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(4)), function Trig_Returning_the_Ring_Gently_Func012002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(5)), function Trig_Returning_the_Ring_Gently_Func013002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(6)), function Trig_Returning_the_Ring_Gently_Func014002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(8)), function Trig_Returning_the_Ring_Gently_Func015002 )
call PolledWait( 2.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_LoserInKilling, Condition(function Trig_Returning_the_Ring_Gently_Func017002001002))), GetPlayerName(udg_LoserInKilling), null, "TRIGSTR_2222", bj_TIMETYPE_ADD, 0.00, true )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_n00U_0141, "TRIGSTR_2223", null, "TRIGSTR_2224", bj_TIMETYPE_ADD, 0.00, true )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_LoserInKilling, Condition(function Trig_Returning_the_Ring_Gently_Func019002001002))), GetPlayerName(udg_LoserInKilling), null, "TRIGSTR_2225", bj_TIMETYPE_ADD, 0.00, true )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_n00U_0141, "TRIGSTR_2226", null, "TRIGSTR_2227", bj_TIMETYPE_ADD, 3.00, true )
call PolledWait( 3.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_LoserInKilling, Condition(function Trig_Returning_the_Ring_Gently_Func022002001002))), GetPlayerName(udg_LoserInKilling), null, "TRIGSTR_2228", bj_TIMETYPE_ADD, 0.00, true )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_n00U_0141, "TRIGSTR_2229", null, "TRIGSTR_2230", bj_TIMETYPE_ADD, 6.00, true )
call PolledWait( 6.00 )
call ForForce( GetPlayersAll(), function Trig_Returning_the_Ring_Gently_Func025002 )
call ForForce( GetPlayersAll(), function Trig_Returning_the_Ring_Gently_Func026002 )
call QuestSetDescriptionBJ( udg_OpQuest1, "TRIGSTR_2231" )
call QuestSetCompletedBJ( udg_OpQuest1, true )
call SetUserControlForceOn( GetPlayersAll() )
call CinematicModeExBJ( false, GetPlayersAll(), 2.00 )
call ShowInterfaceForceOn( GetPlayersAll(), 2 )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_2232" )
call PlaySoundBJ( gg_snd_QuestCompleted )
call ForForce( udg_PlayerGroup, function Trig_Returning_the_Ring_Gently_Func035002 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_2233" )
call ForForce( udg_PlayerGroup, function Trig_Returning_the_Ring_Gently_Func037002 )
call AdjustPlayerStateBJ( 5, udg_KindredSpirit1, PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 5, udg_KindredSpirit2, PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 5, udg_KindredSpirit3, PLAYER_STATE_RESOURCE_GOLD )
call DisableTrigger( gg_trg_Jessa_Gossip_2 )
call EnableTrigger( gg_trg_Jessa_Gossip_3 )
endfunction
//===========================================================================
function InitTrig_Returning_the_Ring_Gently takes nothing returns nothing
set gg_trg_Returning_the_Ring_Gently = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Returning_the_Ring_Gently, Player(11), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Returning_the_Ring_Gently, Condition( function Trig_Returning_the_Ring_Gently_Conditions ) )
call TriggerAddAction( gg_trg_Returning_the_Ring_Gently, function Trig_Returning_the_Ring_Gently_Actions )
endfunction
function Trig_Returning_the_Ring_Gently_Short_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A03O' ) ) then
return false
endif
return true
endfunction
function Trig_Returning_the_Ring_Gently_Short_Func009002 takes nothing returns nothing
call AdjustPlayerStateBJ( 50, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Returning_the_Ring_Gently_Short_Func011002 takes nothing returns nothing
call AdjustPlayerStateBJ( 1, GetEnumPlayer(), PLAYER_STATE_RESOURCE_LUMBER )
endfunction
function Trig_Returning_the_Ring_Gently_Short_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( 'A03O', GetSpellAbilityUnit() )
call UnitRemoveAbilityBJ( 'A047', GetSpellAbilityUnit() )
call RemoveItem( udg_WeddingRing )
call QuestSetDescriptionBJ( udg_OpQuest1, "TRIGSTR_7517" )
call QuestSetCompletedBJ( udg_OpQuest1, true )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_7518" )
call PlaySoundBJ( gg_snd_QuestCompleted )
call ForForce( udg_PlayerGroup, function Trig_Returning_the_Ring_Gently_Short_Func009002 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_7519" )
call ForForce( udg_PlayerGroup, function Trig_Returning_the_Ring_Gently_Short_Func011002 )
call AdjustPlayerStateBJ( 5, udg_KindredSpirit1, PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 5, udg_KindredSpirit2, PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 5, udg_KindredSpirit3, PLAYER_STATE_RESOURCE_GOLD )
call DisableTrigger( gg_trg_Jessa_Gossip_2 )
call EnableTrigger( gg_trg_Jessa_Gossip_3 )
endfunction
//===========================================================================
function InitTrig_Returning_the_Ring_Gently_Short takes nothing returns nothing
set gg_trg_Returning_the_Ring_Gently_Short = CreateTrigger( )
call DisableTrigger( gg_trg_Returning_the_Ring_Gently_Short )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Returning_the_Ring_Gently_Short, Player(11), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Returning_the_Ring_Gently_Short, Condition( function Trig_Returning_the_Ring_Gently_Short_Conditions ) )
call TriggerAddAction( gg_trg_Returning_the_Ring_Gently_Short, function Trig_Returning_the_Ring_Gently_Short_Actions )
endfunction
function Trig_Returning_the_Ring_Harshly_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A047' ) ) then
return false
endif
return true
endfunction
function Trig_Returning_the_Ring_Harshly_Func008002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Optional_Quest_1_Jessa, GetEnumPlayer(), 2.00 )
endfunction
function Trig_Returning_the_Ring_Harshly_Func009002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Optional_Quest_1_P1), GetUnitLoc(gg_unit_n00U_0141) )
endfunction
function Trig_Returning_the_Ring_Harshly_Func010002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Optional_Quest_1_P2), GetUnitLoc(gg_unit_n00U_0141) )
endfunction
function Trig_Returning_the_Ring_Harshly_Func011002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Optional_Quest_1_P4), GetUnitLoc(gg_unit_n00U_0141) )
endfunction
function Trig_Returning_the_Ring_Harshly_Func012002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Optional_Quest_1_P5), GetUnitLoc(gg_unit_n00U_0141) )
endfunction
function Trig_Returning_the_Ring_Harshly_Func013002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Optional_Quest_1_P6), GetUnitLoc(gg_unit_n00U_0141) )
endfunction
function Trig_Returning_the_Ring_Harshly_Func014002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Optional_Quest_1_P7), GetUnitLoc(gg_unit_n00U_0141) )
endfunction
function Trig_Returning_the_Ring_Harshly_Func015002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Optional_Quest_1_PH), GetUnitLoc(gg_unit_n00U_0141) )
endfunction
function Trig_Returning_the_Ring_Harshly_Func017002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Returning_the_Ring_Harshly_Func019002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Returning_the_Ring_Harshly_Func021002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Returning_the_Ring_Harshly_Func023002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Returning_the_Ring_Harshly_Func024002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Returning_the_Ring_Harshly_Func025002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Returning_the_Ring_Harshly_Func027002 takes nothing returns nothing
call ResetToGameCameraForPlayer( GetEnumPlayer(), 2.00 )
endfunction
function Trig_Returning_the_Ring_Harshly_Func028002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetEnumPlayer(), GetUnitLoc(gg_unit_n00U_0141), 2.00 )
endfunction
function Trig_Returning_the_Ring_Harshly_Func038002 takes nothing returns nothing
call AdjustPlayerStateBJ( 1, GetEnumPlayer(), PLAYER_STATE_RESOURCE_LUMBER )
endfunction
function Trig_Returning_the_Ring_Harshly_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( 'A03O', GetSpellAbilityUnit() )
call UnitRemoveAbilityBJ( 'A047', GetSpellAbilityUnit() )
call SetItemPawnable( udg_WeddingRing, true )
call SetUserControlForceOff( GetPlayersAll() )
call ClearTextMessagesBJ( GetPlayersAll() )
call ShowInterfaceForceOff( GetPlayersAll(), 2 )
call CinematicModeExBJ( true, GetPlayersAll(), 2.00 )
call ForForce( GetPlayersAll(), function Trig_Returning_the_Ring_Harshly_Func008002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(0)), function Trig_Returning_the_Ring_Harshly_Func009002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(1)), function Trig_Returning_the_Ring_Harshly_Func010002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(3)), function Trig_Returning_the_Ring_Harshly_Func011002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(4)), function Trig_Returning_the_Ring_Harshly_Func012002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(5)), function Trig_Returning_the_Ring_Harshly_Func013002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(6)), function Trig_Returning_the_Ring_Harshly_Func014002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(8)), function Trig_Returning_the_Ring_Harshly_Func015002 )
call PolledWait( 2.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_LoserInKilling, Condition(function Trig_Returning_the_Ring_Harshly_Func017002001002))), GetPlayerName(udg_LoserInKilling), null, "TRIGSTR_2234", bj_TIMETYPE_ADD, 2.00, true )
call PolledWait( 2.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_Merchant, Condition(function Trig_Returning_the_Ring_Harshly_Func019002001002))), GetPlayerName(udg_Merchant), null, "TRIGSTR_2247", bj_TIMETYPE_ADD, 2.00, true )
call PolledWait( 2.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_LeaderInKilling, Condition(function Trig_Returning_the_Ring_Harshly_Func021002001002))), GetPlayerName(udg_LeaderInKilling), null, "TRIGSTR_2246", bj_TIMETYPE_ADD, 3.00, true )
call PolledWait( 3.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_LoserInKilling, Condition(function Trig_Returning_the_Ring_Harshly_Func023002001002))), GetPlayerName(udg_LoserInKilling), null, "TRIGSTR_2394", bj_TIMETYPE_ADD, 0.00, true )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_Merchant, Condition(function Trig_Returning_the_Ring_Harshly_Func024002001002))), GetPlayerName(udg_Merchant), null, "TRIGSTR_2395", bj_TIMETYPE_ADD, 0.00, true )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_LeaderInKilling, Condition(function Trig_Returning_the_Ring_Harshly_Func025002001002))), GetPlayerName(udg_LeaderInKilling), null, "TRIGSTR_2396", bj_TIMETYPE_ADD, 0.00, true )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_n00U_0141, "TRIGSTR_2241", null, "TRIGSTR_2242", bj_TIMETYPE_ADD, 0.00, true )
call ForForce( GetPlayersAll(), function Trig_Returning_the_Ring_Harshly_Func027002 )
call ForForce( GetPlayersAll(), function Trig_Returning_the_Ring_Harshly_Func028002 )
call QuestSetDescriptionBJ( udg_OpQuest1, "TRIGSTR_2243" )
call QuestSetCompletedBJ( udg_OpQuest1, true )
call SetUserControlForceOn( GetPlayersAll() )
call CinematicModeExBJ( false, GetPlayersAll(), 2.00 )
call ShowInterfaceForceOn( GetPlayersAll(), 2 )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_2244" )
call PlaySoundBJ( gg_snd_QuestCompleted )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_2245" )
call ForForce( udg_PlayerGroup, function Trig_Returning_the_Ring_Harshly_Func038002 )
endfunction
//===========================================================================
function InitTrig_Returning_the_Ring_Harshly takes nothing returns nothing
set gg_trg_Returning_the_Ring_Harshly = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Returning_the_Ring_Harshly, Player(11), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Returning_the_Ring_Harshly, Condition( function Trig_Returning_the_Ring_Harshly_Conditions ) )
call TriggerAddAction( gg_trg_Returning_the_Ring_Harshly, function Trig_Returning_the_Ring_Harshly_Actions )
endfunction
function Trig_Returning_the_Ring_Harshly_Short_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A047' ) ) then
return false
endif
return true
endfunction
function Trig_Returning_the_Ring_Harshly_Short_Func010002 takes nothing returns nothing
call AdjustPlayerStateBJ( 1, GetEnumPlayer(), PLAYER_STATE_RESOURCE_LUMBER )
endfunction
function Trig_Returning_the_Ring_Harshly_Short_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( 'A03O', GetSpellAbilityUnit() )
call UnitRemoveAbilityBJ( 'A047', GetSpellAbilityUnit() )
call SetItemPawnable( udg_WeddingRing, true )
call QuestSetDescriptionBJ( udg_OpQuest1, "TRIGSTR_7528" )
call QuestSetCompletedBJ( udg_OpQuest1, true )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_7529" )
call PlaySoundBJ( gg_snd_QuestCompleted )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_7530" )
call ForForce( udg_PlayerGroup, function Trig_Returning_the_Ring_Harshly_Short_Func010002 )
endfunction
//===========================================================================
function InitTrig_Returning_the_Ring_Harshly_Short takes nothing returns nothing
set gg_trg_Returning_the_Ring_Harshly_Short = CreateTrigger( )
call DisableTrigger( gg_trg_Returning_the_Ring_Harshly_Short )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Returning_the_Ring_Harshly_Short, Player(11), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Returning_the_Ring_Harshly_Short, Condition( function Trig_Returning_the_Ring_Harshly_Short_Conditions ) )
call TriggerAddAction( gg_trg_Returning_the_Ring_Harshly_Short, function Trig_Returning_the_Ring_Harshly_Short_Actions )
endfunction
function Trig_Find_Book_First_Time_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I013' ) ) then
return false
endif
if ( not ( udg_SpokeToSue == true ) ) then
return false
endif
return true
endfunction
function Trig_Find_Book_First_Time_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
set udg_HoW = GetManipulatedItem()
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_2548" )
call QuestSetDescriptionBJ( udg_OpQuest2, "TRIGSTR_2549" )
call PlaySoundBJ( gg_snd_QuestLog )
endfunction
//===========================================================================
function InitTrig_Find_Book_First_Time takes nothing returns nothing
set gg_trg_Find_Book_First_Time = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Find_Book_First_Time, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Find_Book_First_Time, Condition( function Trig_Find_Book_First_Time_Conditions ) )
call TriggerAddAction( gg_trg_Find_Book_First_Time, function Trig_Find_Book_First_Time_Actions )
endfunction
function Trig_Find_Book_Before_Speaking_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I013' ) ) then
return false
endif
if ( not ( udg_SpokeToSue == false ) ) then
return false
endif
return true
endfunction
function Trig_Find_Book_Before_Speaking_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
set udg_HoW = GetManipulatedItem()
call FlashQuestDialogButtonBJ( )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_2550", "TRIGSTR_2551", "ReplaceableTextures\\CommandButtons\\BTNManual3.blp" )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_2552" )
set udg_OpQuest2 = GetLastCreatedQuestBJ()
call PlaySoundBJ( gg_snd_QuestNew )
endfunction
//===========================================================================
function InitTrig_Find_Book_Before_Speaking takes nothing returns nothing
set gg_trg_Find_Book_Before_Speaking = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Find_Book_Before_Speaking, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Find_Book_Before_Speaking, Condition( function Trig_Find_Book_Before_Speaking_Conditions ) )
call TriggerAddAction( gg_trg_Find_Book_Before_Speaking, function Trig_Find_Book_Before_Speaking_Actions )
endfunction
function Trig_Find_Book_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I013' ) ) then
return false
endif
return true
endfunction
function Trig_Find_Book_Actions takes nothing returns nothing
call UnitAddAbilityBJ( 'A04N', gg_unit_n00J_0045 )
call DisableTrigger( gg_trg_Farmer_Female_Gossip_1 )
call EnableTrigger( gg_trg_Farmer_Female_Gossip_2 )
endfunction
//===========================================================================
function InitTrig_Find_Book takes nothing returns nothing
set gg_trg_Find_Book = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Find_Book, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Find_Book, Condition( function Trig_Find_Book_Conditions ) )
call TriggerAddAction( gg_trg_Find_Book, function Trig_Find_Book_Actions )
endfunction
function Trig_Lose_Book_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I013' ) ) then
return false
endif
return true
endfunction
function Trig_Lose_Book_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( 'A04N', gg_unit_n00J_0045 )
endfunction
//===========================================================================
function InitTrig_Lose_Book takes nothing returns nothing
set gg_trg_Lose_Book = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Lose_Book, EVENT_PLAYER_UNIT_DROP_ITEM )
call TriggerAddCondition( gg_trg_Lose_Book, Condition( function Trig_Lose_Book_Conditions ) )
call TriggerAddAction( gg_trg_Lose_Book, function Trig_Lose_Book_Actions )
endfunction
function Trig_Giving_the_Book_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A04N' ) ) then
return false
endif
return true
endfunction
function Trig_Giving_the_Book_Func011001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Giving_the_Book_Func011002 takes nothing returns nothing
call AddHeroXPSwapped( 50, GetEnumUnit(), true )
endfunction
function Trig_Giving_the_Book_Func012001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Giving_the_Book_Func012002 takes nothing returns nothing
call AddHeroXPSwapped( 50, GetEnumUnit(), true )
endfunction
function Trig_Giving_the_Book_Func013001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Giving_the_Book_Func013002 takes nothing returns nothing
call AddHeroXPSwapped( 50, GetEnumUnit(), true )
endfunction
function Trig_Giving_the_Book_Func014001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Giving_the_Book_Func014002 takes nothing returns nothing
call AddHeroXPSwapped( 50, GetEnumUnit(), true )
endfunction
function Trig_Giving_the_Book_Func015001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Giving_the_Book_Func015002 takes nothing returns nothing
call AddHeroXPSwapped( 50, GetEnumUnit(), true )
endfunction
function Trig_Giving_the_Book_Func016001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Giving_the_Book_Func016002 takes nothing returns nothing
call AddHeroXPSwapped( 50, GetEnumUnit(), true )
endfunction
function Trig_Giving_the_Book_Func017001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Giving_the_Book_Func017002 takes nothing returns nothing
call AddHeroXPSwapped( 50, GetEnumUnit(), true )
endfunction
function Trig_Giving_the_Book_Func018002 takes nothing returns nothing
call AdjustPlayerStateBJ( 1, GetEnumPlayer(), PLAYER_STATE_RESOURCE_LUMBER )
endfunction
function Trig_Giving_the_Book_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call UnitRemoveAbilityBJ( 'A04N', GetSpellAbilityUnit() )
call RemoveItem( udg_HoW )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_2556" )
call QuestSetDescriptionBJ( udg_OpQuest2, "TRIGSTR_2557" )
call QuestSetCompletedBJ( udg_OpQuest2, true )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_2558" )
call PlaySoundBJ( gg_snd_QuestCompleted )
call ReplaceUnitBJ( gg_unit_n00I_0064, 'n01G', bj_UNIT_STATE_METHOD_RELATIVE )
call ForGroupBJ( GetUnitsOfPlayerMatching(Player(0), Condition(function Trig_Giving_the_Book_Func011001002)), function Trig_Giving_the_Book_Func011002 )
call ForGroupBJ( GetUnitsOfPlayerMatching(Player(1), Condition(function Trig_Giving_the_Book_Func012001002)), function Trig_Giving_the_Book_Func012002 )
call ForGroupBJ( GetUnitsOfPlayerMatching(Player(3), Condition(function Trig_Giving_the_Book_Func013001002)), function Trig_Giving_the_Book_Func013002 )
call ForGroupBJ( GetUnitsOfPlayerMatching(Player(4), Condition(function Trig_Giving_the_Book_Func014001002)), function Trig_Giving_the_Book_Func014002 )
call ForGroupBJ( GetUnitsOfPlayerMatching(Player(5), Condition(function Trig_Giving_the_Book_Func015001002)), function Trig_Giving_the_Book_Func015002 )
call ForGroupBJ( GetUnitsOfPlayerMatching(Player(6), Condition(function Trig_Giving_the_Book_Func016001002)), function Trig_Giving_the_Book_Func016002 )
call ForGroupBJ( GetUnitsOfPlayerMatching(Player(8), Condition(function Trig_Giving_the_Book_Func017001002)), function Trig_Giving_the_Book_Func017002 )
call ForForce( udg_PlayerGroup, function Trig_Giving_the_Book_Func018002 )
call PolledWait( 2.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_2574" )
endfunction
//===========================================================================
function InitTrig_Giving_the_Book takes nothing returns nothing
set gg_trg_Giving_the_Book = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Giving_the_Book, Player(11), EVENT_PLAYER_UNIT_SPELL_FINISH )
call TriggerAddCondition( gg_trg_Giving_the_Book, Condition( function Trig_Giving_the_Book_Conditions ) )
call TriggerAddAction( gg_trg_Giving_the_Book, function Trig_Giving_the_Book_Actions )
endfunction
function Trig_Samuel_Graves_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A04D' ) ) then
return false
endif
return true
endfunction
function Trig_Samuel_Graves_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Samuel_Graves_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Samuel_Graves_Func001001001)), "TRIGSTR_2402" )
endfunction
//===========================================================================
function InitTrig_Samuel_Graves takes nothing returns nothing
set gg_trg_Samuel_Graves = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Samuel_Graves, Player(11), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Samuel_Graves, Condition( function Trig_Samuel_Graves_Conditions ) )
call TriggerAddAction( gg_trg_Samuel_Graves, function Trig_Samuel_Graves_Actions )
endfunction
function Trig_Lumberjack_Actions takes nothing returns nothing
call ReplaceUnitBJ( gg_unit_H00H_0051, 'H00J', bj_UNIT_STATE_METHOD_RELATIVE )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_2407" )
call PolledWait( 0.20 )
call SetUnitOwner( GetLastReplacedUnitBJ(), Player(PLAYER_NEUTRAL_AGGRESSIVE), false )
call SetHeroXP( GetLastReplacedUnitBJ(), 500, false )
call SelectHeroSkill( GetLastReplacedUnitBJ(), 'A01I' )
call SelectHeroSkill( GetLastReplacedUnitBJ(), 'A01H' )
call SelectHeroSkill( GetLastReplacedUnitBJ(), 'A01I' )
call UnitAddItemByIdSwapped( 'I00V', GetLastReplacedUnitBJ() )
set udg_SeveredHead = GetLastCreatedItem()
call SetItemDropOnDeathBJ( udg_SeveredHead, true )
endfunction
//===========================================================================
function InitTrig_Lumberjack takes nothing returns nothing
set gg_trg_Lumberjack = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Lumberjack, gg_unit_h00I_0087, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Lumberjack, function Trig_Lumberjack_Actions )
endfunction
function Trig_Manhunter_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'H00J' ) ) then
return false
endif
return true
endfunction
function Trig_Manhunter_Actions takes nothing returns nothing
call SetItemDropOnDeathBJ( udg_SeveredHead, false )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_2413" )
call QuestSetDescriptionBJ( udg_HireQuest1, "TRIGSTR_2414" )
call PlaySoundBJ( gg_snd_QuestLog )
call PolledWait( 0.20 )
call UnitRemoveAbilityBJ( 'A04D', udg_WatchmanDummy )
call UnitAddAbilityBJ( 'A04E', udg_WatchmanDummy )
endfunction
//===========================================================================
function InitTrig_Manhunter takes nothing returns nothing
set gg_trg_Manhunter = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Manhunter, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Manhunter, Condition( function Trig_Manhunter_Conditions ) )
call TriggerAddAction( gg_trg_Manhunter, function Trig_Manhunter_Actions )
endfunction
function Trig_Ready_to_Serve_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A04E' ) ) then
return false
endif
return true
endfunction
function Trig_Ready_to_Serve_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_2422" )
call PolledWait( 0.20 )
call UnitRemoveAbilityBJ( 'A04E', udg_WatchmanDummy )
call UnitAddAbilityBJ( 'A034', udg_WatchmanDummy )
call PolledWait( 0.80 )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_2423" )
call QuestSetDescriptionBJ( udg_HireQuest1, "TRIGSTR_2424" )
call PlaySoundBJ( gg_snd_QuestLog )
endfunction
//===========================================================================
function InitTrig_Ready_to_Serve takes nothing returns nothing
set gg_trg_Ready_to_Serve = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Ready_to_Serve, Player(11), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Ready_to_Serve, Condition( function Trig_Ready_to_Serve_Conditions ) )
call TriggerAddAction( gg_trg_Ready_to_Serve, function Trig_Ready_to_Serve_Actions )
endfunction
function Trig_Find_Head_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I00V' ) ) then
return false
endif
return true
endfunction
function Trig_Find_Head_Actions takes nothing returns nothing
call UnitAddAbilityBJ( 'A07B', gg_unit_n01V_0239 )
endfunction
//===========================================================================
function InitTrig_Find_Head takes nothing returns nothing
set gg_trg_Find_Head = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Find_Head, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Find_Head, Condition( function Trig_Find_Head_Conditions ) )
call TriggerAddAction( gg_trg_Find_Head, function Trig_Find_Head_Actions )
endfunction
function Trig_Lose_Head_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I00V' ) ) then
return false
endif
return true
endfunction
function Trig_Lose_Head_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( 'A07B', gg_unit_n01V_0239 )
endfunction
//===========================================================================
function InitTrig_Lose_Head takes nothing returns nothing
set gg_trg_Lose_Head = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Lose_Head, EVENT_PLAYER_UNIT_DROP_ITEM )
call TriggerAddCondition( gg_trg_Lose_Head, Condition( function Trig_Lose_Head_Conditions ) )
call TriggerAddAction( gg_trg_Lose_Head, function Trig_Lose_Head_Actions )
endfunction
function Trig_Returning_the_Head_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A07B' ) ) then
return false
endif
return true
endfunction
function Trig_Returning_the_Head_Func010002 takes nothing returns nothing
call AdjustPlayerStateBJ( 100, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Returning_the_Head_Func012002 takes nothing returns nothing
call AdjustPlayerStateBJ( 1, GetEnumPlayer(), PLAYER_STATE_RESOURCE_LUMBER )
endfunction
function Trig_Returning_the_Head_Actions takes nothing returns nothing
call RemoveItem( udg_SeveredHead )
call UnitRemoveAbilityBJ( 'A07B', gg_unit_n01V_0239 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_3761" )
call DisableTrigger( GetTriggeringTrigger() )
call QuestSetDescriptionBJ( udg_HireQuest1, "TRIGSTR_3765" )
call QuestSetCompletedBJ( udg_HireQuest1, true )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_3766" )
call PlaySoundBJ( gg_snd_QuestCompleted )
call ForForce( udg_PlayerGroup, function Trig_Returning_the_Head_Func010002 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_3767" )
call ForForce( udg_PlayerGroup, function Trig_Returning_the_Head_Func012002 )
call AdjustPlayerStateBJ( 10, udg_KindredSpirit1, PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 10, udg_KindredSpirit2, PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 10, udg_KindredSpirit3, PLAYER_STATE_RESOURCE_GOLD )
call PolledWait( 0.10 )
call UnitAddAbilityBJ( 'A07C', gg_unit_n01V_0239 )
endfunction
//===========================================================================
function InitTrig_Returning_the_Head takes nothing returns nothing
set gg_trg_Returning_the_Head = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Returning_the_Head, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Returning_the_Head, Condition( function Trig_Returning_the_Head_Conditions ) )
call TriggerAddAction( gg_trg_Returning_the_Head, function Trig_Returning_the_Head_Actions )
endfunction
function Trig_First_Join_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A034' ) ) then
return false
endif
if ( not ( udg_HirelingCounter <= 1.00 ) ) then
return false
endif
return true
endfunction
function Trig_First_Join_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call PolledWait( 4.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6732" )
call PlaySoundBJ( gg_snd_QuestLog )
endfunction
//===========================================================================
function InitTrig_First_Join takes nothing returns nothing
set gg_trg_First_Join = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_First_Join, Player(11), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_First_Join, Condition( function Trig_First_Join_Conditions ) )
call TriggerAddAction( gg_trg_First_Join, function Trig_First_Join_Actions )
endfunction
function Trig_Wind_and_Dust_Func007002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Megiddon_Entrance, GetEnumPlayer(), 2.00 )
endfunction
function Trig_Wind_and_Dust_Func008002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Treant_Ready), GetRectCenter(gg_rct_Treant_Boss) )
endfunction
function Trig_Wind_and_Dust_Func009002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Treant_Ready), GetRectCenter(gg_rct_Treant_Boss) )
endfunction
function Trig_Wind_and_Dust_Func010002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Treant_Ready), GetRectCenter(gg_rct_Treant_Boss) )
endfunction
function Trig_Wind_and_Dust_Func011002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Treant_Ready), GetRectCenter(gg_rct_Treant_Boss) )
endfunction
function Trig_Wind_and_Dust_Func012002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Treant_Ready), GetRectCenter(gg_rct_Treant_Boss) )
endfunction
function Trig_Wind_and_Dust_Func013002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Treant_Ready), GetRectCenter(gg_rct_Treant_Boss) )
endfunction
function Trig_Wind_and_Dust_Func014002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Treant_Ready), GetRectCenter(gg_rct_Treant_Boss) )
endfunction
function Trig_Wind_and_Dust_Func029002 takes nothing returns nothing
call ResetToGameCameraForPlayer( GetEnumPlayer(), 2.00 )
endfunction
function Trig_Wind_and_Dust_Func030002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetEnumPlayer(), GetRectCenter(gg_rct_Treant_Boss), 2.00 )
endfunction
function Trig_Wind_and_Dust_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call PlaySoundBJ( gg_snd_PursuitTheme )
call SetUserControlForceOff( GetPlayersAll() )
call ClearTextMessagesBJ( GetPlayersAll() )
call ShowInterfaceForceOff( GetPlayersAll(), 2 )
call CinematicModeExBJ( true, GetPlayersAll(), 2.00 )
call ForForce( GetPlayersAll(), function Trig_Wind_and_Dust_Func007002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(0)), function Trig_Wind_and_Dust_Func008002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(1)), function Trig_Wind_and_Dust_Func009002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(3)), function Trig_Wind_and_Dust_Func010002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(4)), function Trig_Wind_and_Dust_Func011002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(5)), function Trig_Wind_and_Dust_Func012002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(6)), function Trig_Wind_and_Dust_Func013002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(8)), function Trig_Wind_and_Dust_Func014002 )
call PolledWait( 2 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_E00X_0278, "TRIGSTR_4102", null, "TRIGSTR_4103", bj_TIMETYPE_ADD, 0.00, true )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_E00W_0277, "TRIGSTR_4104", null, "TRIGSTR_4105", bj_TIMETYPE_ADD, 1.00, true )
call PolledWait( 1.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_E00W_0277, "TRIGSTR_4106", null, "TRIGSTR_4107", bj_TIMETYPE_ADD, 2.00, true )
call PolledWait( 2 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_E00X_0278, "TRIGSTR_4108", null, "TRIGSTR_4109", bj_TIMETYPE_ADD, 0.00, true )
call AddSpecialEffectLocBJ( GetUnitLoc(gg_unit_E00W_0277), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
call AddSpecialEffectLocBJ( GetUnitLoc(gg_unit_E00X_0278), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Treant_Boss), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
call PolledWait( 1.50 )
call SetUnitPositionLoc( gg_unit_E00W_0277, GetRectCenter(gg_rct_Kae_Two) )
call SetUnitPositionLoc( gg_unit_E00X_0278, GetRectCenter(gg_rct_Manos_Two) )
call SetUnitPositionLoc( gg_unit_N01D_0276, GetRectCenter(gg_rct_Treant_Boss) )
call ForForce( GetPlayersAll(), function Trig_Wind_and_Dust_Func029002 )
call ForForce( GetPlayersAll(), function Trig_Wind_and_Dust_Func030002 )
call SetUserControlForceOn( GetPlayersAll() )
call CinematicModeExBJ( false, GetPlayersAll(), 2.00 )
call ShowInterfaceForceOn( GetPlayersAll(), 2 )
call PolledWait( 2.00 )
call SetUnitFacingTimed( gg_unit_E00W_0277, 185.00, 0.05 )
call SetUnitFacingTimed( gg_unit_E00X_0278, 175.00, 0.05 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PolledWait( 1.00 )
call IssuePointOrderLocBJ( gg_unit_N01D_0276, "attack", GetRectCenter(gg_rct_Treant_Ready) )
call PolledWait( 2.00 )
call IssueImmediateOrderBJ( gg_unit_N01D_0276, "roar" )
call PolledWait( 45.00 )
call IssueImmediateOrderBJ( gg_unit_N01D_0276, "roar" )
endfunction
//===========================================================================
function InitTrig_Wind_and_Dust takes nothing returns nothing
set gg_trg_Wind_and_Dust = CreateTrigger( )
call DisableTrigger( gg_trg_Wind_and_Dust )
call TriggerRegisterEnterRectSimple( gg_trg_Wind_and_Dust, gg_rct_Treant_Trigger )
call TriggerAddAction( gg_trg_Wind_and_Dust, function Trig_Wind_and_Dust_Actions )
endfunction
function Trig_Wind_and_Dust_Short_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call PlaySoundBJ( gg_snd_PursuitTheme )
call AddSpecialEffectLocBJ( GetUnitLoc(gg_unit_E00W_0277), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
call AddSpecialEffectLocBJ( GetUnitLoc(gg_unit_E00X_0278), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Treant_Boss), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
call PolledWait( 1.50 )
call SetUnitPositionLoc( gg_unit_E00W_0277, GetRectCenter(gg_rct_Kae_Two) )
call SetUnitPositionLoc( gg_unit_E00X_0278, GetRectCenter(gg_rct_Manos_Two) )
call SetUnitPositionLoc( gg_unit_N01D_0276, GetRectCenter(gg_rct_Treant_Boss) )
call PolledWait( 2.00 )
call SetUnitFacingTimed( gg_unit_E00W_0277, 185.00, 0.05 )
call SetUnitFacingTimed( gg_unit_E00X_0278, 175.00, 0.05 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PolledWait( 1.00 )
call IssuePointOrderLocBJ( gg_unit_N01D_0276, "attack", GetRectCenter(gg_rct_Treant_Ready) )
call PolledWait( 2.00 )
call IssueImmediateOrderBJ( gg_unit_N01D_0276, "roar" )
call PolledWait( 45.00 )
call IssueImmediateOrderBJ( gg_unit_N01D_0276, "roar" )
endfunction
//===========================================================================
function InitTrig_Wind_and_Dust_Short takes nothing returns nothing
set gg_trg_Wind_and_Dust_Short = CreateTrigger( )
call DisableTrigger( gg_trg_Wind_and_Dust_Short )
call TriggerRegisterEnterRectSimple( gg_trg_Wind_and_Dust_Short, gg_rct_Treant_Trigger )
call TriggerAddAction( gg_trg_Wind_and_Dust_Short, function Trig_Wind_and_Dust_Short_Actions )
endfunction
function Trig_Take_the_Axe_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0BL' ) ) then
return false
endif
return true
endfunction
function Trig_Take_the_Axe_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Take_the_Axe_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Take_the_Axe_Func001001001)), "TRIGSTR_6106" )
call KillUnit( gg_unit_n03K_0169 )
endfunction
//===========================================================================
function InitTrig_Take_the_Axe takes nothing returns nothing
set gg_trg_Take_the_Axe = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Take_the_Axe, Player(11), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Take_the_Axe, Condition( function Trig_Take_the_Axe_Conditions ) )
call TriggerAddAction( gg_trg_Take_the_Axe, function Trig_Take_the_Axe_Actions )
endfunction
function Trig_Examine_the_Skeleton_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0BM' ) ) then
return false
endif
return true
endfunction
function Trig_Examine_the_Skeleton_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Examine_the_Skeleton_Func005001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Examine_the_Skeleton_Func005A takes nothing returns nothing
call SelectUnitForPlayerSingle( GetLastReplacedUnitBJ(), GetEnumPlayer() )
endfunction
function Trig_Examine_the_Skeleton_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Examine_the_Skeleton_Func001001001)), "TRIGSTR_6107" )
call ReplaceUnitBJ( gg_unit_n03K_0169, 'O00P', bj_UNIT_STATE_METHOD_RELATIVE )
call SetHeroXP( GetLastReplacedUnitBJ(), 900, false )
set udg_AtroxDummy = GetLastReplacedUnitBJ()
call ForForce( GetPlayersMatching(Condition(function Trig_Examine_the_Skeleton_Func005001001)), function Trig_Examine_the_Skeleton_Func005A )
endfunction
//===========================================================================
function InitTrig_Examine_the_Skeleton takes nothing returns nothing
set gg_trg_Examine_the_Skeleton = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Examine_the_Skeleton, Player(11), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Examine_the_Skeleton, Condition( function Trig_Examine_the_Skeleton_Conditions ) )
call TriggerAddAction( gg_trg_Examine_the_Skeleton, function Trig_Examine_the_Skeleton_Actions )
endfunction
function Trig_Awaken_the_Skeleton_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0BN' ) ) then
return false
endif
return true
endfunction
function Trig_Awaken_the_Skeleton_Func001001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Awaken_the_Skeleton_Func005001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Awaken_the_Skeleton_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Awaken_the_Skeleton_Func001001001)), "TRIGSTR_6108" )
call UnitRemoveAbilityBJ( 'A0BN', GetSpellAbilityUnit() )
call PolledWait( 3.00 )
call UnitAddAbilityBJ( 'A0BR', udg_AtroxDummy )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Awaken_the_Skeleton_Func005001001)), "TRIGSTR_6111" )
endfunction
//===========================================================================
function InitTrig_Awaken_the_Skeleton takes nothing returns nothing
set gg_trg_Awaken_the_Skeleton = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Awaken_the_Skeleton, Player(11), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Awaken_the_Skeleton, Condition( function Trig_Awaken_the_Skeleton_Conditions ) )
call TriggerAddAction( gg_trg_Awaken_the_Skeleton, function Trig_Awaken_the_Skeleton_Actions )
endfunction
function Trig_Tell_Him_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0BR' ) ) then
return false
endif
return true
endfunction
function Trig_Tell_Him_1_Func002001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Tell_Him_1_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Tell_Him_1_Func002001001)), "TRIGSTR_6112" )
call PolledWait( 0.10 )
call EnableTrigger( gg_trg_Tell_Him_2 )
endfunction
//===========================================================================
function InitTrig_Tell_Him_1 takes nothing returns nothing
set gg_trg_Tell_Him_1 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Tell_Him_1, Player(11), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Tell_Him_1, Condition( function Trig_Tell_Him_1_Conditions ) )
call TriggerAddAction( gg_trg_Tell_Him_1, function Trig_Tell_Him_1_Actions )
endfunction
function Trig_Tell_Him_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0BR' ) ) then
return false
endif
return true
endfunction
function Trig_Tell_Him_2_Func002001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Tell_Him_2_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Tell_Him_2_Func002001001)), "TRIGSTR_6113" )
call UnitRemoveAbilityBJ( 'A0BR', GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A0BP', udg_AtroxDummy )
call UnitAddAbilityBJ( 'A0BS', udg_AtroxDummy )
endfunction
//===========================================================================
function InitTrig_Tell_Him_2 takes nothing returns nothing
set gg_trg_Tell_Him_2 = CreateTrigger( )
call DisableTrigger( gg_trg_Tell_Him_2 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Tell_Him_2, Player(11), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Tell_Him_2, Condition( function Trig_Tell_Him_2_Conditions ) )
call TriggerAddAction( gg_trg_Tell_Him_2, function Trig_Tell_Him_2_Actions )
endfunction
function Trig_Ravager_Joins_First_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0BP' ) ) then
return false
endif
if ( not ( udg_HirelingCounter <= 1.00 ) ) then
return false
endif
return true
endfunction
function Trig_Ravager_Joins_First_Func003001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'O00O' )
endfunction
function Trig_Ravager_Joins_First_Func003Func003001001 takes nothing returns boolean
return ( IsUnitSelected(GetSpellAbilityUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Ravager_Joins_First_Func003Func003002 takes nothing returns nothing
call SelectUnitAdd( GetEnumUnit() )
endfunction
function Trig_Ravager_Joins_First_Func003A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Ravager_Starting) )
call SetUnitOwner( GetEnumUnit(), Player(8), false )
call ForForce( GetPlayersMatching(Condition(function Trig_Ravager_Joins_First_Func003Func003001001)), function Trig_Ravager_Joins_First_Func003Func003002 )
endfunction
function Trig_Ravager_Joins_First_Func004001001 takes nothing returns boolean
return ( IsUnitSelected(GetSpellAbilityUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Ravager_Joins_First_Func004002 takes nothing returns nothing
call SelectUnitRemove( GetSpellAbilityUnit() )
endfunction
function Trig_Ravager_Joins_First_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call SetUnitPositionLoc( GetSpellAbilityUnit(), GetRectCenter(gg_rct_Ravager_Storage) )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Ravager_Joins_First_Func003001002)), function Trig_Ravager_Joins_First_Func003A )
call ForForce( GetPlayersMatching(Condition(function Trig_Ravager_Joins_First_Func004001001)), function Trig_Ravager_Joins_First_Func004002 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6149" )
set udg_AutoDifficultyModifier = ( udg_AutoDifficultyModifier + 1 )
call PolledWait( 0.10 )
set udg_HirelingCounter = ( udg_HirelingCounter + 1 )
call EnableTrigger( gg_trg_Ravager_Joins )
endfunction
//===========================================================================
function InitTrig_Ravager_Joins_First takes nothing returns nothing
set gg_trg_Ravager_Joins_First = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Ravager_Joins_First, Player(11), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Ravager_Joins_First, Condition( function Trig_Ravager_Joins_First_Conditions ) )
call TriggerAddAction( gg_trg_Ravager_Joins_First, function Trig_Ravager_Joins_First_Actions )
endfunction
function Trig_South_Gate_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTg1_3255 )
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTg1_3274 )
call PlaySoundBJ( gg_snd_CityGateOpen )
call SetUnitOwner( gg_unit_n01P_0230, Player(10), true )
set udg_ResurrectionMan = gg_unit_n01P_0230
call DisableTrigger( GetTriggeringTrigger() )
call DisableTrigger( gg_trg_Temple_Gate )
call PolledWait( 2 )
call QuestSetTitleBJ( udg_ChapterQuest, "TRIGSTR_4238" )
call QuestSetDescriptionBJ( udg_ChapterQuest, "TRIGSTR_4240" )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_4241" )
call PlaySoundBJ( gg_snd_QuestNew )
call PolledWait( 6.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6728" )
call PlaySoundBJ( gg_snd_QuestLog )
endfunction
//===========================================================================
function InitTrig_South_Gate takes nothing returns nothing
set gg_trg_South_Gate = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_South_Gate, gg_rct_MegiddonSouthGate )
call TriggerAddAction( gg_trg_South_Gate, function Trig_South_Gate_Actions )
endfunction
function Trig_Temple_Gate_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTg1_3274 )
call PlaySoundBJ( gg_snd_CityGateOpen )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Temple_Gate takes nothing returns nothing
set gg_trg_Temple_Gate = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Temple_Gate, gg_rct_MegiddonTempleGate )
call TriggerAddAction( gg_trg_Temple_Gate, function Trig_Temple_Gate_Actions )
endfunction
function Trig_Council_Gate_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTg1_3264 )
call PlaySoundBJ( gg_snd_CityGateOpen )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Council_Gate takes nothing returns nothing
set gg_trg_Council_Gate = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Council_Gate, gg_rct_MegiddonCouncilGate )
call TriggerAddAction( gg_trg_Council_Gate, function Trig_Council_Gate_Actions )
endfunction
function Trig_Tavern_Gate_1_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTg3_3260 )
call PlaySoundBJ( gg_snd_CityGateOpen )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Tavern_Gate_1 takes nothing returns nothing
set gg_trg_Tavern_Gate_1 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Tavern_Gate_1, gg_rct_MegiddonTavernGate1 )
call TriggerAddAction( gg_trg_Tavern_Gate_1, function Trig_Tavern_Gate_1_Actions )
endfunction
function Trig_Tavern_Gate_2_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTg1_3261 )
call PlaySoundBJ( gg_snd_CityGateOpen )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Tavern_Gate_2 takes nothing returns nothing
set gg_trg_Tavern_Gate_2 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Tavern_Gate_2, gg_rct_MegiddonTavernGate2 )
call TriggerAddAction( gg_trg_Tavern_Gate_2, function Trig_Tavern_Gate_2_Actions )
endfunction
function Trig_Smith_Gate_1_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTg3_3259 )
call PlaySoundBJ( gg_snd_CityGateOpen )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Smith_Gate_1 takes nothing returns nothing
set gg_trg_Smith_Gate_1 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Smith_Gate_1, gg_rct_MegiddonSmithGate1 )
call TriggerAddAction( gg_trg_Smith_Gate_1, function Trig_Smith_Gate_1_Actions )
endfunction
function Trig_Smith_Gate_2_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTg3_3267 )
call PlaySoundBJ( gg_snd_CityGateOpen )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Smith_Gate_2 takes nothing returns nothing
set gg_trg_Smith_Gate_2 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Smith_Gate_2, gg_rct_MegiddonSmithGate2 )
call TriggerAddAction( gg_trg_Smith_Gate_2, function Trig_Smith_Gate_2_Actions )
endfunction
function Trig_Brothel_Gate_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTg3_3258 )
call PlaySoundBJ( gg_snd_CityGateOpen )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Brothel_Gate takes nothing returns nothing
set gg_trg_Brothel_Gate = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Brothel_Gate, gg_rct_MegiddonBrothelGate )
call TriggerAddAction( gg_trg_Brothel_Gate, function Trig_Brothel_Gate_Actions )
endfunction
function Trig_Brothel_Door_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTg3_3256 )
call PlaySoundBJ( gg_snd_CityGateOpen )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Brothel_Door takes nothing returns nothing
set gg_trg_Brothel_Door = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Brothel_Door, gg_rct_MegiddonBrothelDoor )
call TriggerAddAction( gg_trg_Brothel_Door, function Trig_Brothel_Door_Actions )
endfunction
function Trig_Brothel_Locked_Door_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisableTrigger( gg_trg_Find_Key )
call DisableTrigger( gg_trg_Lose_Key )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_3791" )
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTg3_3257 )
call PlaySoundBJ( gg_snd_CityGateOpen )
call KillDestructable( gg_dest_YTlb_3889 )
call KillDestructable( gg_dest_YTlb_3890 )
call KillDestructable( gg_dest_YTlb_3891 )
call KillDestructable( gg_dest_YTlb_3892 )
call KillDestructable( gg_dest_YTlb_3893 )
call KillDestructable( gg_dest_YTlb_3894 )
call IssueTargetOrderBJ( gg_unit_N01W_0241, "attack", GetEnteringUnit() )
endfunction
//===========================================================================
function InitTrig_Brothel_Locked_Door takes nothing returns nothing
set gg_trg_Brothel_Locked_Door = CreateTrigger( )
call DisableTrigger( gg_trg_Brothel_Locked_Door )
call TriggerRegisterEnterRectSimple( gg_trg_Brothel_Locked_Door, gg_rct_Megiddon_Brothel_Locked_Door )
call TriggerAddAction( gg_trg_Brothel_Locked_Door, function Trig_Brothel_Locked_Door_Actions )
endfunction
function Trig_Fake_Store_Gate_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTg3_3273 )
call PlaySoundBJ( gg_snd_CityGateOpen )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Fake_Store_Gate takes nothing returns nothing
set gg_trg_Fake_Store_Gate = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Fake_Store_Gate, gg_rct_MegiddonFakeStoreGate )
call TriggerAddAction( gg_trg_Fake_Store_Gate, function Trig_Fake_Store_Gate_Actions )
endfunction
function Trig_Arena_Gate_1_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTg3_3268 )
call PlaySoundBJ( gg_snd_CityGateOpen )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Arena_Gate_1 takes nothing returns nothing
set gg_trg_Arena_Gate_1 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Arena_Gate_1, gg_rct_MegiddonArenaGate1 )
call TriggerAddAction( gg_trg_Arena_Gate_1, function Trig_Arena_Gate_1_Actions )
endfunction
function Trig_Arena_Gate_2_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTg1_3298 )
call PlaySoundBJ( gg_snd_CityGateOpen )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Arena_Gate_2 takes nothing returns nothing
set gg_trg_Arena_Gate_2 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Arena_Gate_2, gg_rct_MegiddonArenaGate2 )
call TriggerAddAction( gg_trg_Arena_Gate_2, function Trig_Arena_Gate_2_Actions )
endfunction
function Trig_Stable_Gate_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTg1_3272 )
call PlaySoundBJ( gg_snd_CityGateOpen )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Stable_Gate takes nothing returns nothing
set gg_trg_Stable_Gate = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Stable_Gate, gg_rct_MegiddonStableGate )
call TriggerAddAction( gg_trg_Stable_Gate, function Trig_Stable_Gate_Actions )
endfunction
function Trig_Guild_Gate_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTg3_3265 )
call PlaySoundBJ( gg_snd_CityGateOpen )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Guild_Gate takes nothing returns nothing
set gg_trg_Guild_Gate = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Guild_Gate, gg_rct_MegiddonGuildGate )
call TriggerAddAction( gg_trg_Guild_Gate, function Trig_Guild_Gate_Actions )
endfunction
function Trig_Guild_Door_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTg1_3266 )
call PlaySoundBJ( gg_snd_CityGateOpen )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Guild_Door takes nothing returns nothing
set gg_trg_Guild_Door = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Guild_Door, gg_rct_MegiddonGuildDoor )
call TriggerAddAction( gg_trg_Guild_Door, function Trig_Guild_Door_Actions )
endfunction
function Trig_West_Gate_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTg3_3287 )
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTg3_3260 )
call PlaySoundBJ( gg_snd_CityGateOpen )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_West_Gate takes nothing returns nothing
set gg_trg_West_Gate = CreateTrigger( )
call DisableTrigger( gg_trg_West_Gate )
call TriggerRegisterEnterRectSimple( gg_trg_West_Gate, gg_rct_MegiddonWestGate )
call TriggerAddAction( gg_trg_West_Gate, function Trig_West_Gate_Actions )
endfunction
function Trig_East_Gate_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTg3_3288 )
call PlaySoundBJ( gg_snd_CityGateOpen )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_East_Gate takes nothing returns nothing
set gg_trg_East_Gate = CreateTrigger( )
call DisableTrigger( gg_trg_East_Gate )
call TriggerRegisterEnterRectSimple( gg_trg_East_Gate, gg_rct_MegiddonEastGate )
call TriggerAddAction( gg_trg_East_Gate, function Trig_East_Gate_Actions )
endfunction
function Trig_North_Gate_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTg1_3290 )
call PlaySoundBJ( gg_snd_CityGateOpen )
endfunction
//===========================================================================
function InitTrig_North_Gate takes nothing returns nothing
set gg_trg_North_Gate = CreateTrigger( )
call DisableTrigger( gg_trg_North_Gate )
call TriggerRegisterEnterRectSimple( gg_trg_North_Gate, gg_rct_MegiddonNorthGate )
call TriggerAddAction( gg_trg_North_Gate, function Trig_North_Gate_Actions )
endfunction
function Trig_Fletcher_Gate_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTg3_3263 )
call PlaySoundBJ( gg_snd_CityGateOpen )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Fletcher_Gate takes nothing returns nothing
set gg_trg_Fletcher_Gate = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Fletcher_Gate, gg_rct_MegiddonFletcherGate )
call TriggerAddAction( gg_trg_Fletcher_Gate, function Trig_Fletcher_Gate_Actions )
endfunction
function Trig_Hovel_Gate_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTg3_3262 )
call PlaySoundBJ( gg_snd_CityGateOpen )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Hovel_Gate takes nothing returns nothing
set gg_trg_Hovel_Gate = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Hovel_Gate, gg_rct_MegiddonHovelGate )
call TriggerAddAction( gg_trg_Hovel_Gate, function Trig_Hovel_Gate_Actions )
endfunction
function Trig_Verath_de_Siglia_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A08F' ) ) then
return false
endif
return true
endfunction
function Trig_Verath_de_Siglia_Func008002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camp_Camera, GetEnumPlayer(), 2.00 )
endfunction
function Trig_Verath_de_Siglia_Func009002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Talking_to_the_General), GetUnitLoc(gg_unit_H01J_0311) )
endfunction
function Trig_Verath_de_Siglia_Func010002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Talking_to_the_General), GetUnitLoc(gg_unit_H01J_0311) )
endfunction
function Trig_Verath_de_Siglia_Func011002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Talking_to_the_General), GetUnitLoc(gg_unit_H01J_0311) )
endfunction
function Trig_Verath_de_Siglia_Func012002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Talking_to_the_General), GetUnitLoc(gg_unit_H01J_0311) )
endfunction
function Trig_Verath_de_Siglia_Func013002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Talking_to_the_General), GetUnitLoc(gg_unit_H01J_0311) )
endfunction
function Trig_Verath_de_Siglia_Func014002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Talking_to_the_General), GetUnitLoc(gg_unit_H01J_0311) )
endfunction
function Trig_Verath_de_Siglia_Func015002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Talking_to_the_General), GetUnitLoc(gg_unit_H01J_0311) )
endfunction
function Trig_Verath_de_Siglia_Func019002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Verath_de_Siglia_Func022002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Verath_de_Siglia_Func034002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Verath_de_Siglia_Func039002 takes nothing returns nothing
call ResetToGameCameraForPlayer( GetEnumPlayer(), 2.00 )
endfunction
function Trig_Verath_de_Siglia_Func040002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetEnumPlayer(), GetUnitLoc(gg_unit_H01J_0311), 2.00 )
endfunction
function Trig_Verath_de_Siglia_Actions takes nothing returns nothing
call SetUserControlForceOff( GetPlayersAll() )
call UnitRemoveAbilityBJ( 'A08F', GetSpellAbilityUnit() )
call ClearTextMessagesBJ( GetPlayersAll() )
call ShowInterfaceForceOff( GetPlayersAll(), 2 )
call CinematicModeExBJ( true, GetPlayersAll(), 2.00 )
call ForForce( GetPlayersAll(), function Trig_Verath_de_Siglia_Func008002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(0)), function Trig_Verath_de_Siglia_Func009002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(1)), function Trig_Verath_de_Siglia_Func010002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(3)), function Trig_Verath_de_Siglia_Func011002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(4)), function Trig_Verath_de_Siglia_Func012002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(5)), function Trig_Verath_de_Siglia_Func013002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(6)), function Trig_Verath_de_Siglia_Func014002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(8)), function Trig_Verath_de_Siglia_Func015002 )
call PolledWait( 2 )
call DisableTrigger( gg_trg_Verath_Gossip_1 )
call EnableTrigger( gg_trg_Verath_Gossip_2 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_LeaderInKilling, Condition(function Trig_Verath_de_Siglia_Func019002001002))), GetPlayerName(udg_LeaderInKilling), null, "TRIGSTR_4566", bj_TIMETYPE_ADD, 0.00, true )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_H01J_0311, "TRIGSTR_4567", null, "TRIGSTR_4568", bj_TIMETYPE_ADD, 6.00, true )
call PolledWait( 6.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_LoserInKilling, Condition(function Trig_Verath_de_Siglia_Func022002001002))), GetPlayerName(udg_LoserInKilling), null, "TRIGSTR_4569", bj_TIMETYPE_ADD, 1.00, true )
call PolledWait( 1.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_H01J_0311, "TRIGSTR_4570", null, "TRIGSTR_4571", bj_TIMETYPE_ADD, 5.00, true )
call PolledWait( 5.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_H01J_0311, "TRIGSTR_4572", null, "TRIGSTR_4573", bj_TIMETYPE_ADD, 8.00, true )
call PolledWait( 8.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_H01J_0311, "TRIGSTR_4574", null, "TRIGSTR_4575", bj_TIMETYPE_ADD, 8.00, true )
call PolledWait( 8.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_H01J_0311, "TRIGSTR_4576", null, "TRIGSTR_4577", bj_TIMETYPE_ADD, 12.00, true )
call PolledWait( 12.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_H01J_0311, "TRIGSTR_4580", null, "TRIGSTR_4581", bj_TIMETYPE_ADD, 8.00, true )
call PolledWait( 8.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_LeaderInKilling, Condition(function Trig_Verath_de_Siglia_Func034002001002))), GetPlayerName(udg_LeaderInKilling), null, "TRIGSTR_4582", bj_TIMETYPE_ADD, 0.00, true )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_H01J_0311, "TRIGSTR_4583", null, "TRIGSTR_4584", bj_TIMETYPE_ADD, 12.00, true )
call PolledWait( 12.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_H01J_0311, "TRIGSTR_4585", null, "TRIGSTR_4586", bj_TIMETYPE_ADD, 3.00, true )
call PolledWait( 3.00 )
call ForForce( GetPlayersAll(), function Trig_Verath_de_Siglia_Func039002 )
call ForForce( GetPlayersAll(), function Trig_Verath_de_Siglia_Func040002 )
call QuestSetDescriptionBJ( udg_ChapterQuest, "TRIGSTR_4587" )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_4588", "TRIGSTR_4589", "ReplaceableTextures\\CommandButtons\\BTNOrbOfFire.blp" )
set udg_Quest2 = GetLastCreatedQuestBJ()
call SetUserControlForceOn( GetPlayersAll() )
call CinematicModeExBJ( false, GetPlayersAll(), 2.00 )
call ShowInterfaceForceOn( GetPlayersAll(), 2 )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_4590" )
call PlaySoundBJ( gg_snd_QuestNew )
call SetDestructableInvulnerableBJ( gg_dest_ITx1_4696, false )
call UnitAddAbilityBJ( 'A08V', gg_unit_H00B_0358 )
endfunction
//===========================================================================
function InitTrig_Verath_de_Siglia takes nothing returns nothing
set gg_trg_Verath_de_Siglia = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Verath_de_Siglia, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Verath_de_Siglia, Condition( function Trig_Verath_de_Siglia_Conditions ) )
call TriggerAddAction( gg_trg_Verath_de_Siglia, function Trig_Verath_de_Siglia_Actions )
endfunction
function Trig_Verath_de_Siglia_Short_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A08F' ) ) then
return false
endif
return true
endfunction
function Trig_Verath_de_Siglia_Short_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( 'A08F', GetSpellAbilityUnit() )
call DisableTrigger( gg_trg_Verath_Gossip_1 )
call EnableTrigger( gg_trg_Verath_Gossip_2 )
call QuestSetDescriptionBJ( udg_ChapterQuest, "TRIGSTR_7558" )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_7559", "TRIGSTR_7560", "ReplaceableTextures\\CommandButtons\\BTNOrbOfFire.blp" )
set udg_Quest2 = GetLastCreatedQuestBJ()
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_7561" )
call PlaySoundBJ( gg_snd_QuestNew )
call SetDestructableInvulnerableBJ( gg_dest_ITx1_4696, false )
call UnitAddAbilityBJ( 'A08V', gg_unit_H00B_0358 )
endfunction
//===========================================================================
function InitTrig_Verath_de_Siglia_Short takes nothing returns nothing
set gg_trg_Verath_de_Siglia_Short = CreateTrigger( )
call DisableTrigger( gg_trg_Verath_de_Siglia_Short )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Verath_de_Siglia_Short, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Verath_de_Siglia_Short, Condition( function Trig_Verath_de_Siglia_Short_Conditions ) )
call TriggerAddAction( gg_trg_Verath_de_Siglia_Short, function Trig_Verath_de_Siglia_Short_Actions )
endfunction
function Trig_Fire_and_Ice_Func007002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Temple_Camera, GetEnumPlayer(), 2.00 )
endfunction
function Trig_Fire_and_Ice_Func008002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Kraken_Ready), GetRectCenter(gg_rct_Kraken_Boss) )
endfunction
function Trig_Fire_and_Ice_Func009002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Kraken_Ready), GetRectCenter(gg_rct_Kraken_Boss) )
endfunction
function Trig_Fire_and_Ice_Func010002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Kraken_Ready), GetRectCenter(gg_rct_Kraken_Boss) )
endfunction
function Trig_Fire_and_Ice_Func011002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Kraken_Ready), GetRectCenter(gg_rct_Kraken_Boss) )
endfunction
function Trig_Fire_and_Ice_Func012002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Kraken_Ready), GetRectCenter(gg_rct_Kraken_Boss) )
endfunction
function Trig_Fire_and_Ice_Func013002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Kraken_Ready), GetRectCenter(gg_rct_Kraken_Boss) )
endfunction
function Trig_Fire_and_Ice_Func014002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Kraken_Ready), GetRectCenter(gg_rct_Kraken_Boss) )
endfunction
function Trig_Fire_and_Ice_Func029002 takes nothing returns nothing
call ResetToGameCameraForPlayer( GetEnumPlayer(), 2.00 )
endfunction
function Trig_Fire_and_Ice_Func030002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetEnumPlayer(), GetRectCenter(gg_rct_Kraken_Boss), 2.00 )
endfunction
function Trig_Fire_and_Ice_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call PlaySoundBJ( gg_snd_PursuitTheme )
call SetUserControlForceOff( GetPlayersAll() )
call ClearTextMessagesBJ( GetPlayersAll() )
call ShowInterfaceForceOff( GetPlayersAll(), 2 )
call CinematicModeExBJ( true, GetPlayersAll(), 2.00 )
call ForForce( GetPlayersAll(), function Trig_Fire_and_Ice_Func007002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(0)), function Trig_Fire_and_Ice_Func008002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(1)), function Trig_Fire_and_Ice_Func009002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(3)), function Trig_Fire_and_Ice_Func010002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(4)), function Trig_Fire_and_Ice_Func011002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(5)), function Trig_Fire_and_Ice_Func012002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(6)), function Trig_Fire_and_Ice_Func013002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(8)), function Trig_Fire_and_Ice_Func014002 )
call PolledWait( 2 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_E00W_0277, "TRIGSTR_4593", null, "TRIGSTR_4594", bj_TIMETYPE_ADD, 0.00, true )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_E00X_0278, "TRIGSTR_4591", null, "TRIGSTR_4592", bj_TIMETYPE_ADD, 0.00, true )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_E00W_0277, "TRIGSTR_4599", null, "TRIGSTR_4600", bj_TIMETYPE_ADD, 2.00, true )
call PolledWait( 2 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_E00X_0278, "TRIGSTR_4601", null, "TRIGSTR_4602", bj_TIMETYPE_ADD, 0.00, true )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_E00W_0277, "TRIGSTR_4603", null, "TRIGSTR_4604", bj_TIMETYPE_ADD, 0.00, true )
call AddSpecialEffectLocBJ( GetUnitLoc(gg_unit_E00W_0277), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
call AddSpecialEffectLocBJ( GetUnitLoc(gg_unit_E00X_0278), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Kraken_Boss), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
call PolledWait( 1.50 )
call SetUnitPositionLoc( gg_unit_E00W_0277, GetRectCenter(gg_rct_Kae_Hiding) )
call SetUnitPositionLoc( gg_unit_E00X_0278, GetRectCenter(gg_rct_Manos_Hiding) )
call SetUnitPositionLoc( gg_unit_N02W_0402, GetRectCenter(gg_rct_Kraken_Boss) )
call ForForce( GetPlayersAll(), function Trig_Fire_and_Ice_Func029002 )
call ForForce( GetPlayersAll(), function Trig_Fire_and_Ice_Func030002 )
call SetUserControlForceOn( GetPlayersAll() )
call CinematicModeExBJ( false, GetPlayersAll(), 2.00 )
call ShowInterfaceForceOn( GetPlayersAll(), 2 )
call PolledWait( 2.00 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PolledWait( 1.00 )
call IssuePointOrderLocBJ( gg_unit_N02W_0402, "attack", GetRectCenter(gg_rct_Kraken_Ready) )
call PolledWait( 2.00 )
call IssueImmediateOrderBJ( gg_unit_N02W_0402, "roar" )
endfunction
//===========================================================================
function InitTrig_Fire_and_Ice takes nothing returns nothing
set gg_trg_Fire_and_Ice = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Fire_and_Ice, gg_rct_Kraken_Trigger )
call TriggerAddAction( gg_trg_Fire_and_Ice, function Trig_Fire_and_Ice_Actions )
endfunction
function Trig_Fire_and_Ice_Short_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call PlaySoundBJ( gg_snd_PursuitTheme )
call AddSpecialEffectLocBJ( GetUnitLoc(gg_unit_E00W_0277), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
call AddSpecialEffectLocBJ( GetUnitLoc(gg_unit_E00X_0278), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Kraken_Boss), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
call PolledWait( 1.50 )
call SetUnitPositionLoc( gg_unit_E00W_0277, GetRectCenter(gg_rct_Kae_Hiding) )
call SetUnitPositionLoc( gg_unit_E00X_0278, GetRectCenter(gg_rct_Manos_Hiding) )
call SetUnitPositionLoc( gg_unit_N02W_0402, GetRectCenter(gg_rct_Kraken_Boss) )
call PolledWait( 2.00 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PolledWait( 1.00 )
call IssuePointOrderLocBJ( gg_unit_N02W_0402, "attack", GetRectCenter(gg_rct_Kraken_Ready) )
call PolledWait( 2.00 )
call IssueImmediateOrderBJ( gg_unit_N02W_0402, "roar" )
endfunction
//===========================================================================
function InitTrig_Fire_and_Ice_Short takes nothing returns nothing
set gg_trg_Fire_and_Ice_Short = CreateTrigger( )
call DisableTrigger( gg_trg_Fire_and_Ice_Short )
call TriggerRegisterEnterRectSimple( gg_trg_Fire_and_Ice_Short, gg_rct_Kraken_Trigger )
call TriggerAddAction( gg_trg_Fire_and_Ice_Short, function Trig_Fire_and_Ice_Short_Actions )
endfunction
function Trig_Killing_the_Kraken_Actions takes nothing returns nothing
call SetDestructableInvulnerableBJ( gg_dest_ITg3_4722, false )
endfunction
//===========================================================================
function InitTrig_Killing_the_Kraken takes nothing returns nothing
set gg_trg_Killing_the_Kraken = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Killing_the_Kraken, gg_unit_N02W_0402, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Killing_the_Kraken, function Trig_Killing_the_Kraken_Actions )
endfunction
function Trig_Statue_Trap_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(10) ) ) then
return false
endif
return true
endfunction
function Trig_Statue_Trap_Func010002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Statue_Trap_Func011002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Statue_Trap_Func012002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Statue_Trap_Func013002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Statue_Trap_Func014002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Statue_Trap_Func015002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Statue_Trap_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call PlaySoundBJ( gg_snd_CityGateOpen )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Golem1), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Golem2), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Golem3), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Golem4), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Golem5), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Golem6), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
call PolledWait( 1.50 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Golem1, Player(10)), function Trig_Statue_Trap_Func010002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Golem2, Player(10)), function Trig_Statue_Trap_Func011002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Golem3, Player(10)), function Trig_Statue_Trap_Func012002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Golem4, Player(10)), function Trig_Statue_Trap_Func013002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Golem5, Player(10)), function Trig_Statue_Trap_Func014002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Golem6, Player(10)), function Trig_Statue_Trap_Func015002 )
call SetUnitPositionLoc( gg_unit_n02Z_0412, GetRectCenter(gg_rct_Golem1) )
call SetUnitPositionLoc( gg_unit_n02Z_0413, GetRectCenter(gg_rct_Golem2) )
call SetUnitPositionLoc( gg_unit_n02Z_0414, GetRectCenter(gg_rct_Golem3) )
call SetUnitPositionLoc( gg_unit_n02Z_0409, GetRectCenter(gg_rct_Golem4) )
call SetUnitPositionLoc( gg_unit_n02Z_0410, GetRectCenter(gg_rct_Golem5) )
call SetUnitPositionLoc( gg_unit_n02Z_0411, GetRectCenter(gg_rct_Golem6) )
call DisableTrigger( gg_trg_Statue_Trap_Sam )
endfunction
//===========================================================================
function InitTrig_Statue_Trap takes nothing returns nothing
set gg_trg_Statue_Trap = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Statue_Trap, gg_rct_Statue_Trigger )
call TriggerAddCondition( gg_trg_Statue_Trap, Condition( function Trig_Statue_Trap_Conditions ) )
call TriggerAddAction( gg_trg_Statue_Trap, function Trig_Statue_Trap_Actions )
endfunction
function Trig_Statue_Trap_Sam_Conditions takes nothing returns boolean
if ( not ( udg_SamJoined == true ) ) then
return false
endif
return true
endfunction
function Trig_Statue_Trap_Sam_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call PolledWait( 1.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6693" )
endfunction
//===========================================================================
function InitTrig_Statue_Trap_Sam takes nothing returns nothing
set gg_trg_Statue_Trap_Sam = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Statue_Trap_Sam, gg_rct_Statue_Trigger )
call TriggerAddCondition( gg_trg_Statue_Trap_Sam, Condition( function Trig_Statue_Trap_Sam_Conditions ) )
call TriggerAddAction( gg_trg_Statue_Trap_Sam, function Trig_Statue_Trap_Sam_Actions )
endfunction
function Trig_Guardian_Dies_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'n02Z' ) ) then
return false
endif
return true
endfunction
function Trig_Guardian_Dies_Actions takes nothing returns nothing
set udg_GuardianCounter = ( udg_GuardianCounter + 1 )
endfunction
//===========================================================================
function InitTrig_Guardian_Dies takes nothing returns nothing
set gg_trg_Guardian_Dies = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Guardian_Dies, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Guardian_Dies, Condition( function Trig_Guardian_Dies_Conditions ) )
call TriggerAddAction( gg_trg_Guardian_Dies, function Trig_Guardian_Dies_Actions )
endfunction
function Trig_Guardians_Dead_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_ITg1_4744 )
call PlaySoundBJ( gg_snd_CityGateOpen )
endfunction
//===========================================================================
function InitTrig_Guardians_Dead takes nothing returns nothing
set gg_trg_Guardians_Dead = CreateTrigger( )
call TriggerRegisterVariableEvent( gg_trg_Guardians_Dead, "udg_GuardianCounter", EQUAL, 6.00 )
call TriggerAddAction( gg_trg_Guardians_Dead, function Trig_Guardians_Dead_Actions )
endfunction
function Trig_Inner_Sanctum_Func013002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Sanctum_Camera, GetEnumPlayer(), 2.00 )
endfunction
function Trig_Inner_Sanctum_Func014002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Inner_Sanctum), GetRectCenter(gg_rct_Sanctum_Boss) )
endfunction
function Trig_Inner_Sanctum_Func015002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Inner_Sanctum), GetRectCenter(gg_rct_Sanctum_Boss) )
endfunction
function Trig_Inner_Sanctum_Func016002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Inner_Sanctum), GetRectCenter(gg_rct_Sanctum_Boss) )
endfunction
function Trig_Inner_Sanctum_Func017002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Inner_Sanctum), GetRectCenter(gg_rct_Sanctum_Boss) )
endfunction
function Trig_Inner_Sanctum_Func018002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Inner_Sanctum), GetRectCenter(gg_rct_Sanctum_Boss) )
endfunction
function Trig_Inner_Sanctum_Func019002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Inner_Sanctum), GetRectCenter(gg_rct_Sanctum_Boss) )
endfunction
function Trig_Inner_Sanctum_Func020002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Inner_Sanctum), GetRectCenter(gg_rct_Sanctum_Boss) )
endfunction
function Trig_Inner_Sanctum_Func025002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Inner_Sanctum_Func031002 takes nothing returns nothing
call ResetToGameCameraForPlayer( GetEnumPlayer(), 2.00 )
endfunction
function Trig_Inner_Sanctum_Func032002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetEnumPlayer(), GetRectCenter(gg_rct_Sanctum_Boss), 2.00 )
endfunction
function Trig_Inner_Sanctum_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call PlaySoundBJ( gg_snd_DarkAgents )
call DisableTrigger( gg_trg_Watchman_Leaves )
call DisableTrigger( gg_trg_Gladiator_Leaves )
call DisableTrigger( gg_trg_Succubus_Leaves )
call DisableTrigger( gg_trg_Conjurer_Leaves )
call DisableTrigger( gg_trg_Ravager_Leaves )
call DisableTrigger( gg_trg_Dark_Archer_Leaves )
call SetUserControlForceOff( GetPlayersAll() )
call ClearTextMessagesBJ( GetPlayersAll() )
call ShowInterfaceForceOff( GetPlayersAll(), 2 )
call CinematicModeExBJ( true, GetPlayersAll(), 2.00 )
call ForForce( GetPlayersAll(), function Trig_Inner_Sanctum_Func013002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(0)), function Trig_Inner_Sanctum_Func014002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(1)), function Trig_Inner_Sanctum_Func015002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(3)), function Trig_Inner_Sanctum_Func016002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(4)), function Trig_Inner_Sanctum_Func017002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(5)), function Trig_Inner_Sanctum_Func018002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(6)), function Trig_Inner_Sanctum_Func019002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(8)), function Trig_Inner_Sanctum_Func020002 )
call ModifyGateBJ( bj_GATEOPERATION_CLOSE, gg_dest_ITg1_4744 )
call PlaySoundBJ( gg_snd_CityGateOpen )
call PolledWait( 2 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_E011_0415, "TRIGSTR_4637", null, "TRIGSTR_4638", bj_TIMETYPE_ADD, 0.00, true )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_LeaderInKilling, Condition(function Trig_Inner_Sanctum_Func025002001002))), GetPlayerName(udg_LeaderInKilling), null, "TRIGSTR_4639", bj_TIMETYPE_ADD, 0.00, true )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_E011_0415, "TRIGSTR_4640", null, "TRIGSTR_4641", bj_TIMETYPE_ADD, 3.00, true )
call PolledWait( 3.00 )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Sanctum_Boss), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
call PolledWait( 1.50 )
call SetUnitPositionLoc( gg_unit_E011_0415, GetRectCenter(gg_rct_Sanctum_Boss) )
call ForForce( GetPlayersAll(), function Trig_Inner_Sanctum_Func031002 )
call ForForce( GetPlayersAll(), function Trig_Inner_Sanctum_Func032002 )
call SetUserControlForceOn( GetPlayersAll() )
call CinematicModeExBJ( false, GetPlayersAll(), 2.00 )
call ShowInterfaceForceOn( GetPlayersAll(), 2 )
call PolledWait( 2.00 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PolledWait( 2.00 )
call IssuePointOrderLocBJ( gg_unit_E011_0415, "stampede", GetRectCenter(gg_rct_Inner_Sanctum) )
call PolledWait( 60.00 )
call SetDestructableInvulnerableBJ( gg_dest_LTrc_4766, false )
call SetDestructableInvulnerableBJ( gg_dest_LTrc_4765, false )
call SetDestructableInvulnerableBJ( gg_dest_ITx3_4721, false )
call EnableTrigger( gg_trg_Watchman_Leaves )
call EnableTrigger( gg_trg_Gladiator_Leaves )
call EnableTrigger( gg_trg_Succubus_Leaves )
call EnableTrigger( gg_trg_Conjurer_Leaves )
call EnableTrigger( gg_trg_Ravager_Leaves )
call EnableTrigger( gg_trg_Dark_Archer_Leaves )
endfunction
//===========================================================================
function InitTrig_Inner_Sanctum takes nothing returns nothing
set gg_trg_Inner_Sanctum = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Inner_Sanctum, gg_rct_Inner_Sanctum )
call TriggerAddAction( gg_trg_Inner_Sanctum, function Trig_Inner_Sanctum_Actions )
endfunction
function Trig_The_Eternal_Flame_Func005002 takes nothing returns nothing
call CameraSetEQNoiseForPlayer( GetEnumPlayer(), 3 )
endfunction
function Trig_The_Eternal_Flame_Func008002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_The_Eternal_Flame_Func009002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_The_Eternal_Flame_Func011002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetEnumPlayer(), GetRectCenter(gg_rct_Saved_From_Sanctum), 0.20 )
endfunction
function Trig_The_Eternal_Flame_Func012002 takes nothing returns nothing
call CameraClearNoiseForPlayer( GetEnumPlayer() )
endfunction
function Trig_The_Eternal_Flame_Func013002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Saved_From_Sanctum), GetRectCenter(gg_rct_Sanctum_Boss) )
endfunction
function Trig_The_Eternal_Flame_Func014002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Saved_From_Sanctum), GetRectCenter(gg_rct_Sanctum_Boss) )
endfunction
function Trig_The_Eternal_Flame_Func015002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Saved_From_Sanctum), GetRectCenter(gg_rct_Sanctum_Boss) )
endfunction
function Trig_The_Eternal_Flame_Func016002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Saved_From_Sanctum), GetRectCenter(gg_rct_Sanctum_Boss) )
endfunction
function Trig_The_Eternal_Flame_Func017002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Saved_From_Sanctum), GetRectCenter(gg_rct_Sanctum_Boss) )
endfunction
function Trig_The_Eternal_Flame_Func018002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Saved_From_Sanctum), GetRectCenter(gg_rct_Sanctum_Boss) )
endfunction
function Trig_The_Eternal_Flame_Func019002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Saved_From_Sanctum), GetRectCenter(gg_rct_Sanctum_Boss) )
endfunction
function Trig_The_Eternal_Flame_Func022002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_The_Eternal_Flame_Func023002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_The_Eternal_Flame_Func026002 takes nothing returns nothing
call ResetToGameCameraForPlayer( GetEnumPlayer(), 2.00 )
endfunction
function Trig_The_Eternal_Flame_Func045002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_The_Eternal_Flame_Actions takes nothing returns nothing
call SetUserControlForceOff( GetPlayersAll() )
call ClearTextMessagesBJ( GetPlayersAll() )
call ShowInterfaceForceOff( GetPlayersAll(), 2 )
call CinematicModeExBJ( true, GetPlayersAll(), 2.00 )
call ForForce( GetPlayersAll(), function Trig_The_Eternal_Flame_Func005002 )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUT, 10.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call PolledWait( 2 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_LeaderInKilling, Condition(function Trig_The_Eternal_Flame_Func008002001002))), GetPlayerName(udg_LeaderInKilling), null, "TRIGSTR_4642", bj_TIMETYPE_ADD, 0.00, true )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_LoserInKilling, Condition(function Trig_The_Eternal_Flame_Func009002001002))), GetPlayerName(udg_LoserInKilling), null, "TRIGSTR_4643", bj_TIMETYPE_ADD, 1.00, true )
call PolledWait( 7.00 )
call ForForce( GetPlayersAll(), function Trig_The_Eternal_Flame_Func011002 )
call ForForce( GetPlayersAll(), function Trig_The_Eternal_Flame_Func012002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(0)), function Trig_The_Eternal_Flame_Func013002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(1)), function Trig_The_Eternal_Flame_Func014002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(3)), function Trig_The_Eternal_Flame_Func015002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(4)), function Trig_The_Eternal_Flame_Func016002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(5)), function Trig_The_Eternal_Flame_Func017002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(6)), function Trig_The_Eternal_Flame_Func018002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(8)), function Trig_The_Eternal_Flame_Func019002 )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEIN, 3.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call PolledWait( 3.00 )
call UnitRemoveItemFromSlotSwapped( 2, GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_LeaderInKilling, Condition(function Trig_The_Eternal_Flame_Func022002001002))) )
call UnitAddItemByIdSwapped( 'I02J', GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_LeaderInKilling, Condition(function Trig_The_Eternal_Flame_Func023002001002))) )
set udg_FireOrb = GetLastCreatedItem()
call SetItemInvulnerableBJ( udg_FireOrb, true )
call ForForce( GetPlayersAll(), function Trig_The_Eternal_Flame_Func026002 )
call SetUserControlForceOn( GetPlayersAll() )
call CinematicModeExBJ( false, GetPlayersAll(), 2.00 )
call ShowInterfaceForceOn( GetPlayersAll(), 2 )
call PolledWait( 7.00 )
call QuestSetTitleBJ( udg_ChapterQuest, "TRIGSTR_4644" )
call QuestSetDescriptionBJ( udg_ChapterQuest, "TRIGSTR_4645" )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_4646" )
call QuestSetDescriptionBJ( udg_Quest2, "TRIGSTR_4647" )
call PlaySoundBJ( gg_snd_QuestNew )
call PolledWait( 20.00 )
call KillUnit( gg_unit_H01J_0311 )
call RemoveUnit( gg_unit_H01I_0300 )
call CreateNUnitsAtLocFacingLocBJ( 1, 'H01R', Player(10), GetRectCenter(gg_rct_General_Lives_Here), GetRectCenter(gg_rct_Talking_to_the_General) )
set udg_Ferdinand = GetLastCreatedUnit()
call SetHeroXP( udg_Ferdinand, 2000, false )
call DisableTrigger( gg_trg_Belganon_Gossip_2 )
call EnableTrigger( gg_trg_Belganon_Gossip_5 )
call ForGroupBJ( GetUnitsInRectOfPlayer(gg_rct_Campfire, Player(10)), function Trig_The_Eternal_Flame_Func045002 )
call CreateNUnitsAtLocFacingLocBJ( 1, 'U00N', Player(10), GetRectCenter(gg_rct_Leon_Camp), GetRectCenter(gg_rct_Ciara_Default) )
call SetHeroXP( GetLastCreatedUnit(), 4400, false )
set udg_FakeLeon = GetLastCreatedUnit()
call SetUnitColor( udg_FakeLeon, PLAYER_COLOR_LIGHT_BLUE )
call CreateNUnitsAtLocFacingLocBJ( 1, 'E01E', Player(10), GetRectCenter(gg_rct_Ciara_Default), GetRectCenter(gg_rct_Ciara_Rally) )
call SetHeroXP( GetLastCreatedUnit(), 3500, false )
call SetUnitColor( GetLastCreatedUnit(), PLAYER_COLOR_LIGHT_GRAY )
call DisableTrigger( gg_trg_Ciara_Gossip )
call EnableTrigger( gg_trg_Dark_Archer_Gossip_1 )
call DisableTrigger( gg_trg_Leon_Gossip_1 )
call EnableTrigger( gg_trg_Leon_Gossip_2 )
endfunction
//===========================================================================
function InitTrig_The_Eternal_Flame takes nothing returns nothing
set gg_trg_The_Eternal_Flame = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_The_Eternal_Flame, gg_unit_E011_0415, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_The_Eternal_Flame, function Trig_The_Eternal_Flame_Actions )
endfunction
function Trig_Loki_Syrdon_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I01Y' ) ) then
return false
endif
return true
endfunction
function Trig_Loki_Syrdon_Func005002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetEnumPlayer(), GetRectCenter(gg_rct_The_Red_Corner), 0.50 )
endfunction
function Trig_Loki_Syrdon_Func007002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Non_Combatants) )
endfunction
function Trig_Loki_Syrdon_Func008002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Non_Combatants) )
endfunction
function Trig_Loki_Syrdon_Func009002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Non_Combatants) )
endfunction
function Trig_Loki_Syrdon_Func010002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Non_Combatants) )
endfunction
function Trig_Loki_Syrdon_Func011002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Non_Combatants) )
endfunction
function Trig_Loki_Syrdon_Func012002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Non_Combatants) )
endfunction
function Trig_Loki_Syrdon_Func013002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Non_Combatants) )
endfunction
function Trig_Loki_Syrdon_Func018002 takes nothing returns nothing
call SetUnitInvulnerable( GetEnumUnit(), true )
endfunction
function Trig_Loki_Syrdon_Func019002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Gladiator_Storage) )
endfunction
function Trig_Loki_Syrdon_Actions takes nothing returns nothing
set udg_Challenger = GetManipulatingUnit()
call RemoveItem( GetManipulatedItem() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_3195" )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUTIN, 2, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call ForForce( GetPlayersAll(), function Trig_Loki_Syrdon_Func005002 )
call PolledWait( 1.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(0)), function Trig_Loki_Syrdon_Func007002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(1)), function Trig_Loki_Syrdon_Func008002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(3)), function Trig_Loki_Syrdon_Func009002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(4)), function Trig_Loki_Syrdon_Func010002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(5)), function Trig_Loki_Syrdon_Func011002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(6)), function Trig_Loki_Syrdon_Func012002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(8)), function Trig_Loki_Syrdon_Func013002 )
call SetUnitPositionLoc( udg_Challenger, GetRectCenter(gg_rct_The_Red_Corner) )
call SetUnitPositionLoc( gg_unit_H00K_0206, GetRectCenter(gg_rct_The_Blue_Corner) )
call SetUnitOwner( gg_unit_H00K_0206, Player(9), false )
call PolledWait( 0.05 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Non_Combatants), function Trig_Loki_Syrdon_Func018002 )
call ForGroupBJ( GetUnitsOfTypeIdAll('h011'), function Trig_Loki_Syrdon_Func019002 )
call ClearSelection( )
call PolledWait( 1.00 )
call IssuePointOrderLocBJ( gg_unit_H00K_0206, "attack", GetRectCenter(gg_rct_The_Red_Corner) )
call PolledWait( 1.00 )
call IssueImmediateOrderBJ( gg_unit_H00K_0206, "stop" )
call PolledWait( 1.00 )
call IssueTargetOrderBJ( gg_unit_H00K_0206, "ensnare", udg_Challenger )
call PolledWait( 2.00 )
call IssueImmediateOrderBJ( gg_unit_H00K_0206, "chemicalrage" )
endfunction
//===========================================================================
function InitTrig_Loki_Syrdon takes nothing returns nothing
set gg_trg_Loki_Syrdon = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Loki_Syrdon, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Loki_Syrdon, Condition( function Trig_Loki_Syrdon_Conditions ) )
call TriggerAddAction( gg_trg_Loki_Syrdon, function Trig_Loki_Syrdon_Actions )
endfunction
function Trig_Defeat_Conditions takes nothing returns boolean
if ( not ( GetDyingUnit() == udg_Challenger ) ) then
return false
endif
return true
endfunction
function Trig_Defeat_Func004002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetEnumPlayer(), GetRectCenter(gg_rct_Talk_to_Loki), 0.50 )
endfunction
function Trig_Defeat_Func007002 takes nothing returns nothing
call SetUnitInvulnerable( GetEnumUnit(), false )
endfunction
function Trig_Defeat_Func008002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Loki_Default) )
endfunction
function Trig_Defeat_Func009002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Talk_to_Loki) )
endfunction
function Trig_Defeat_Func010002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Talk_to_Loki) )
endfunction
function Trig_Defeat_Func011002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Talk_to_Loki) )
endfunction
function Trig_Defeat_Func012002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Talk_to_Loki) )
endfunction
function Trig_Defeat_Func013002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Talk_to_Loki) )
endfunction
function Trig_Defeat_Func014002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Talk_to_Loki) )
endfunction
function Trig_Defeat_Func015002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Talk_to_Loki) )
endfunction
function Trig_Defeat_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_3234" )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUTIN, 2, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call PolledWait( 1.00 )
call ForForce( GetPlayersAll(), function Trig_Defeat_Func004002 )
call SetUnitPositionLoc( gg_unit_H00K_0206, GetRectCenter(gg_rct_Gladiator_Hiding) )
call PolledWait( 0.05 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Non_Combatants), function Trig_Defeat_Func007002 )
call ForGroupBJ( GetUnitsOfTypeIdAll('h011'), function Trig_Defeat_Func008002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(0)), function Trig_Defeat_Func009002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(1)), function Trig_Defeat_Func010002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(3)), function Trig_Defeat_Func011002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(4)), function Trig_Defeat_Func012002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(5)), function Trig_Defeat_Func013002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(6)), function Trig_Defeat_Func014002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(8)), function Trig_Defeat_Func015002 )
call PolledWait( 0.05 )
call ReviveHeroLoc( udg_Challenger, GetRectCenter(gg_rct_Talk_to_Loki), true )
call PolledWait( 2.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_3235" )
call SetUnitInvulnerable( gg_unit_H00K_0206, false )
call SetUnitLifePercentBJ( gg_unit_H00K_0206, 100 )
call SetUnitManaPercentBJ( gg_unit_H00K_0206, 100 )
set udg_Challenger = null
call SetUnitOwner( udg_Gladiator, Player(7), false )
endfunction
//===========================================================================
function InitTrig_Defeat takes nothing returns nothing
set gg_trg_Defeat = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Defeat, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Defeat, Condition( function Trig_Defeat_Conditions ) )
call TriggerAddAction( gg_trg_Defeat, function Trig_Defeat_Actions )
endfunction
function Trig_Victory_Func008002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetEnumPlayer(), GetRectCenter(gg_rct_Talk_to_Loki), 0.50 )
endfunction
function Trig_Victory_Func013002 takes nothing returns nothing
call SetUnitInvulnerable( GetEnumUnit(), false )
endfunction
function Trig_Victory_Func014002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Loki_Default) )
endfunction
function Trig_Victory_Func015002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Talk_to_Loki) )
endfunction
function Trig_Victory_Func016002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Talk_to_Loki) )
endfunction
function Trig_Victory_Func017002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Talk_to_Loki) )
endfunction
function Trig_Victory_Func018002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Talk_to_Loki) )
endfunction
function Trig_Victory_Func019002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Talk_to_Loki) )
endfunction
function Trig_Victory_Func020002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Talk_to_Loki) )
endfunction
function Trig_Victory_Func021002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Talk_to_Loki) )
endfunction
function Trig_Victory_Func023002 takes nothing returns nothing
call ReplaceUnitBJ( GetEnumUnit(), 'H00Y', bj_UNIT_STATE_METHOD_RELATIVE )
endfunction
function Trig_Victory_Func024A takes nothing returns nothing
call SetHeroXP( GetEnumUnit(), 1400, false )
call SetUnitColor( GetEnumUnit(), PLAYER_COLOR_LIGHT_GRAY )
endfunction
function Trig_Victory_Func033002 takes nothing returns nothing
call UnitAddAbilityBJ( 'A05S', GetEnumUnit() )
endfunction
function Trig_Victory_Func038002 takes nothing returns nothing
call AdjustPlayerStateBJ( 1, GetEnumPlayer(), PLAYER_STATE_RESOURCE_LUMBER )
endfunction
function Trig_Victory_Func041A takes nothing returns nothing
set udg_BruteExperience = GetHeroXP(GetEnumUnit())
set udg_PromoItem1 = UnitItemInSlotBJ(GetEnumUnit(), 1)
set udg_PromoItem2 = UnitItemInSlotBJ(GetEnumUnit(), 2)
set udg_PromoItem3 = UnitItemInSlotBJ(GetEnumUnit(), 3)
set udg_PromoItem4 = UnitItemInSlotBJ(GetEnumUnit(), 4)
set udg_PromoItem5 = UnitItemInSlotBJ(GetEnumUnit(), 5)
set udg_PromoItem6 = UnitItemInSlotBJ(GetEnumUnit(), 6)
call ReplaceUnitBJ( GetEnumUnit(), 'O00E', bj_UNIT_STATE_METHOD_RELATIVE )
endfunction
function Trig_Victory_Func042A takes nothing returns nothing
set udg_BruteExperience = GetHeroXP(GetEnumUnit())
set udg_PromoItem1 = UnitItemInSlotBJ(GetEnumUnit(), 1)
set udg_PromoItem2 = UnitItemInSlotBJ(GetEnumUnit(), 2)
set udg_PromoItem3 = UnitItemInSlotBJ(GetEnumUnit(), 3)
set udg_PromoItem4 = UnitItemInSlotBJ(GetEnumUnit(), 4)
set udg_PromoItem5 = UnitItemInSlotBJ(GetEnumUnit(), 5)
set udg_PromoItem6 = UnitItemInSlotBJ(GetEnumUnit(), 6)
call ReplaceUnitBJ( GetEnumUnit(), 'O00E', bj_UNIT_STATE_METHOD_RELATIVE )
endfunction
function Trig_Victory_Func043A takes nothing returns nothing
set udg_BruteExperience = GetHeroXP(GetEnumUnit())
set udg_PromoItem1 = UnitItemInSlotBJ(GetEnumUnit(), 1)
set udg_PromoItem2 = UnitItemInSlotBJ(GetEnumUnit(), 2)
set udg_PromoItem3 = UnitItemInSlotBJ(GetEnumUnit(), 3)
set udg_PromoItem4 = UnitItemInSlotBJ(GetEnumUnit(), 4)
set udg_PromoItem5 = UnitItemInSlotBJ(GetEnumUnit(), 5)
set udg_PromoItem6 = UnitItemInSlotBJ(GetEnumUnit(), 6)
call ReplaceUnitBJ( GetEnumUnit(), 'O00E', bj_UNIT_STATE_METHOD_RELATIVE )
endfunction
function Trig_Victory_Func044A takes nothing returns nothing
set udg_BruteExperience = GetHeroXP(GetEnumUnit())
set udg_PromoItem1 = UnitItemInSlotBJ(GetEnumUnit(), 1)
set udg_PromoItem2 = UnitItemInSlotBJ(GetEnumUnit(), 2)
set udg_PromoItem3 = UnitItemInSlotBJ(GetEnumUnit(), 3)
set udg_PromoItem4 = UnitItemInSlotBJ(GetEnumUnit(), 4)
set udg_PromoItem5 = UnitItemInSlotBJ(GetEnumUnit(), 5)
set udg_PromoItem6 = UnitItemInSlotBJ(GetEnumUnit(), 6)
call ReplaceUnitBJ( GetEnumUnit(), 'O00E', bj_UNIT_STATE_METHOD_RELATIVE )
endfunction
function Trig_Victory_Func045A takes nothing returns nothing
call SetHeroXP( GetEnumUnit(), udg_BruteExperience, false )
call UnitAddItemSwapped( udg_PromoItem1, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem2, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem3, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem4, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem5, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem6, GetEnumUnit() )
call AddSpecialEffectLocBJ( GetUnitLoc(GetEnumUnit()), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
endfunction
function Trig_Victory_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call SetUnitInvulnerable( gg_unit_H00K_0206, true )
call SetUnitInvulnerable( udg_Challenger, true )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_3229" )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUTIN, 2, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call PolledWait( 1.00 )
call DisableTrigger( gg_trg_Saving_Loki )
call ForForce( GetPlayersAll(), function Trig_Victory_Func008002 )
call SetUnitPositionLoc( gg_unit_H00K_0206, GetRectCenter(gg_rct_Gladiator_Hiding) )
call PolledWait( 0.05 )
call SetUnitOwner( udg_Gladiator, Player(7), false )
call SetUnitFacingTimed( udg_Gladiator, 270.00, 0.05 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Non_Combatants), function Trig_Victory_Func013002 )
call ForGroupBJ( GetUnitsOfTypeIdAll('h011'), function Trig_Victory_Func014002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(0)), function Trig_Victory_Func015002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(1)), function Trig_Victory_Func016002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(3)), function Trig_Victory_Func017002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(4)), function Trig_Victory_Func018002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(5)), function Trig_Victory_Func019002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(6)), function Trig_Victory_Func020002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(8)), function Trig_Victory_Func021002 )
call PolledWait( 0.05 )
call ForGroupBJ( GetUnitsOfTypeIdAll('h011'), function Trig_Victory_Func023002 )
call ForGroupBJ( GetUnitsOfTypeIdAll('H00Y'), function Trig_Victory_Func024A )
call PolledWait( 2.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_3230" )
call SetUnitInvulnerable( udg_Challenger, false )
call SetUnitLifePercentBJ( udg_Challenger, 100 )
call SetUnitManaPercentBJ( udg_Challenger, 100 )
call SetUnitInvulnerable( gg_unit_H00K_0206, false )
call SetUnitLifePercentBJ( gg_unit_H00K_0206, 100 )
call SetUnitManaPercentBJ( gg_unit_H00K_0206, 100 )
call ForGroupBJ( GetUnitsOfTypeIdAll('H00Y'), function Trig_Victory_Func033002 )
call QuestSetDescriptionBJ( udg_HireQuest2, "TRIGSTR_3236" )
call QuestSetCompletedBJ( udg_HireQuest2, true )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_3237" )
call ForForce( udg_PlayerGroup, function Trig_Victory_Func038002 )
call PlaySoundBJ( gg_snd_QuestCompleted )
set udg_Challenger = null
call ForGroupBJ( GetUnitsOfTypeIdAll('O003'), function Trig_Victory_Func041A )
call ForGroupBJ( GetUnitsOfTypeIdAll('O002'), function Trig_Victory_Func042A )
call ForGroupBJ( GetUnitsOfTypeIdAll('O001'), function Trig_Victory_Func043A )
call ForGroupBJ( GetUnitsOfTypeIdAll('O000'), function Trig_Victory_Func044A )
call ForGroupBJ( GetUnitsOfTypeIdAll('O00E'), function Trig_Victory_Func045A )
call PolledWait( 2.00 )
call DisableTrigger( gg_trg_Loki_Gossip_2 )
call EnableTrigger( gg_trg_Loki_Gossip_3 )
call EnableTrigger( gg_trg_Gladiator_Dies )
endfunction
//===========================================================================
function InitTrig_Victory takes nothing returns nothing
set gg_trg_Victory = CreateTrigger( )
call TriggerRegisterUnitLifeEvent( gg_trg_Victory, gg_unit_H00K_0206, LESS_THAN, 75.00 )
call TriggerAddAction( gg_trg_Victory, function Trig_Victory_Actions )
endfunction
function Trig_Saving_Loki_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call PolledWait( 1.00 )
call ReviveHeroLoc( gg_unit_H00K_0206, GetRectCenter(gg_rct_Gladiator_Hiding), false )
call SetUnitOwner( udg_Gladiator, Player(7), false )
call SetUnitFacingTimed( udg_Gladiator, 270.00, 0.05 )
endfunction
//===========================================================================
function InitTrig_Saving_Loki takes nothing returns nothing
set gg_trg_Saving_Loki = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Saving_Loki, gg_unit_H00K_0206, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Saving_Loki, function Trig_Saving_Loki_Actions )
endfunction
function Trig_Accepting_the_Challenge_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A06Q' ) ) then
return false
endif
return true
endfunction
function Trig_Accepting_the_Challenge_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call UnitAddAbilityBJ( 'A06N', GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A06O', GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A06P', GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A06R', GetSpellAbilityUnit() )
set udg_LastAddedAbility = 'A06R'
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_3573" )
call PolledWait( 0.20 )
call EnableTrigger( gg_trg_Wrong_Answer_A )
call EnableTrigger( gg_trg_Wrong_Answer_B )
call EnableTrigger( gg_trg_Question_2 )
endfunction
//===========================================================================
function InitTrig_Accepting_the_Challenge takes nothing returns nothing
set gg_trg_Accepting_the_Challenge = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Accepting_the_Challenge, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Accepting_the_Challenge, Condition( function Trig_Accepting_the_Challenge_Conditions ) )
call TriggerAddAction( gg_trg_Accepting_the_Challenge, function Trig_Accepting_the_Challenge_Actions )
endfunction
function Trig_Question_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A06P' ) ) then
return false
endif
return true
endfunction
function Trig_Question_2_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_3580" )
call PlaySoundBJ( gg_snd_QuestLog )
call UnitRemoveAbilityBJ( udg_LastAddedAbility, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A06S', GetSpellAbilityUnit() )
set udg_LastAddedAbility = 'A06S'
call PolledWait( 0.20 )
call EnableTrigger( gg_trg_Question_3 )
endfunction
//===========================================================================
function InitTrig_Question_2 takes nothing returns nothing
set gg_trg_Question_2 = CreateTrigger( )
call DisableTrigger( gg_trg_Question_2 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Question_2, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Question_2, Condition( function Trig_Question_2_Conditions ) )
call TriggerAddAction( gg_trg_Question_2, function Trig_Question_2_Actions )
endfunction
function Trig_Question_3_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A06P' ) ) then
return false
endif
return true
endfunction
function Trig_Question_3_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_3611" )
call PlaySoundBJ( gg_snd_QuestLog )
call UnitRemoveAbilityBJ( udg_LastAddedAbility, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A06T', GetSpellAbilityUnit() )
set udg_LastAddedAbility = 'A06T'
call PolledWait( 0.20 )
call DisableTrigger( gg_trg_Wrong_Answer_B )
call EnableTrigger( gg_trg_Wrong_Answer_C )
call EnableTrigger( gg_trg_Question_4 )
endfunction
//===========================================================================
function InitTrig_Question_3 takes nothing returns nothing
set gg_trg_Question_3 = CreateTrigger( )
call DisableTrigger( gg_trg_Question_3 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Question_3, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Question_3, Condition( function Trig_Question_3_Conditions ) )
call TriggerAddAction( gg_trg_Question_3, function Trig_Question_3_Actions )
endfunction
function Trig_Question_4_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A06O' ) ) then
return false
endif
return true
endfunction
function Trig_Question_4_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_3612" )
call PlaySoundBJ( gg_snd_QuestLog )
call UnitRemoveAbilityBJ( udg_LastAddedAbility, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A06U', GetSpellAbilityUnit() )
set udg_LastAddedAbility = 'A06U'
call PolledWait( 0.20 )
call EnableTrigger( gg_trg_Question_5 )
endfunction
//===========================================================================
function InitTrig_Question_4 takes nothing returns nothing
set gg_trg_Question_4 = CreateTrigger( )
call DisableTrigger( gg_trg_Question_4 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Question_4, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Question_4, Condition( function Trig_Question_4_Conditions ) )
call TriggerAddAction( gg_trg_Question_4, function Trig_Question_4_Actions )
endfunction
function Trig_Question_5_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A06O' ) ) then
return false
endif
return true
endfunction
function Trig_Question_5_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_3613" )
call PlaySoundBJ( gg_snd_QuestLog )
call UnitRemoveAbilityBJ( udg_LastAddedAbility, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A06V', GetSpellAbilityUnit() )
set udg_LastAddedAbility = 'A06V'
call PolledWait( 0.20 )
call EnableTrigger( gg_trg_Question_6 )
endfunction
//===========================================================================
function InitTrig_Question_5 takes nothing returns nothing
set gg_trg_Question_5 = CreateTrigger( )
call DisableTrigger( gg_trg_Question_5 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Question_5, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Question_5, Condition( function Trig_Question_5_Conditions ) )
call TriggerAddAction( gg_trg_Question_5, function Trig_Question_5_Actions )
endfunction
function Trig_Question_6_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A06O' ) ) then
return false
endif
return true
endfunction
function Trig_Question_6_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_3614" )
call PlaySoundBJ( gg_snd_QuestLog )
call UnitRemoveAbilityBJ( udg_LastAddedAbility, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A06W', GetSpellAbilityUnit() )
set udg_LastAddedAbility = 'A06W'
call PolledWait( 0.20 )
call DisableTrigger( gg_trg_Wrong_Answer_A )
call EnableTrigger( gg_trg_Wrong_Answer_B )
call EnableTrigger( gg_trg_Question_7 )
endfunction
//===========================================================================
function InitTrig_Question_6 takes nothing returns nothing
set gg_trg_Question_6 = CreateTrigger( )
call DisableTrigger( gg_trg_Question_6 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Question_6, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Question_6, Condition( function Trig_Question_6_Conditions ) )
call TriggerAddAction( gg_trg_Question_6, function Trig_Question_6_Actions )
endfunction
function Trig_Question_7_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A06N' ) ) then
return false
endif
return true
endfunction
function Trig_Question_7_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_3615" )
call PlaySoundBJ( gg_snd_QuestLog )
call UnitRemoveAbilityBJ( udg_LastAddedAbility, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A06X', GetSpellAbilityUnit() )
set udg_LastAddedAbility = 'A06X'
call PolledWait( 0.20 )
call EnableTrigger( gg_trg_Wrong_Answer_A )
call DisableTrigger( gg_trg_Wrong_Answer_C )
call EnableTrigger( gg_trg_Question_8 )
endfunction
//===========================================================================
function InitTrig_Question_7 takes nothing returns nothing
set gg_trg_Question_7 = CreateTrigger( )
call DisableTrigger( gg_trg_Question_7 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Question_7, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Question_7, Condition( function Trig_Question_7_Conditions ) )
call TriggerAddAction( gg_trg_Question_7, function Trig_Question_7_Actions )
endfunction
function Trig_Question_8_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A06P' ) ) then
return false
endif
return true
endfunction
function Trig_Question_8_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_3616" )
call PlaySoundBJ( gg_snd_QuestLog )
call UnitRemoveAbilityBJ( udg_LastAddedAbility, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A06Y', GetSpellAbilityUnit() )
set udg_LastAddedAbility = 'A06Y'
call PolledWait( 0.20 )
call DisableTrigger( gg_trg_Wrong_Answer_A )
call EnableTrigger( gg_trg_Wrong_Answer_C )
call EnableTrigger( gg_trg_Question_9 )
endfunction
//===========================================================================
function InitTrig_Question_8 takes nothing returns nothing
set gg_trg_Question_8 = CreateTrigger( )
call DisableTrigger( gg_trg_Question_8 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Question_8, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Question_8, Condition( function Trig_Question_8_Conditions ) )
call TriggerAddAction( gg_trg_Question_8, function Trig_Question_8_Actions )
endfunction
function Trig_Question_9_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A06N' ) ) then
return false
endif
return true
endfunction
function Trig_Question_9_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_3617" )
call PlaySoundBJ( gg_snd_QuestLog )
call UnitRemoveAbilityBJ( udg_LastAddedAbility, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A06Z', GetSpellAbilityUnit() )
set udg_LastAddedAbility = 'A06Z'
call PolledWait( 0.20 )
call EnableTrigger( gg_trg_Wrong_Answer_A )
call DisableTrigger( gg_trg_Wrong_Answer_C )
call EnableTrigger( gg_trg_Question_10 )
endfunction
//===========================================================================
function InitTrig_Question_9 takes nothing returns nothing
set gg_trg_Question_9 = CreateTrigger( )
call DisableTrigger( gg_trg_Question_9 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Question_9, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Question_9, Condition( function Trig_Question_9_Conditions ) )
call TriggerAddAction( gg_trg_Question_9, function Trig_Question_9_Actions )
endfunction
function Trig_Question_10_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A06P' ) ) then
return false
endif
return true
endfunction
function Trig_Question_10_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_3618" )
call PlaySoundBJ( gg_snd_QuestLog )
call UnitRemoveAbilityBJ( udg_LastAddedAbility, GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A070', GetSpellAbilityUnit() )
set udg_LastAddedAbility = 'A070'
call PolledWait( 0.20 )
call DisableTrigger( gg_trg_Wrong_Answer_B )
call EnableTrigger( gg_trg_Wrong_Answer_C )
call EnableTrigger( gg_trg_All_Questions_Correct )
endfunction
//===========================================================================
function InitTrig_Question_10 takes nothing returns nothing
set gg_trg_Question_10 = CreateTrigger( )
call DisableTrigger( gg_trg_Question_10 )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Question_10, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Question_10, Condition( function Trig_Question_10_Conditions ) )
call TriggerAddAction( gg_trg_Question_10, function Trig_Question_10_Actions )
endfunction
function Trig_All_Questions_Correct_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A06O' ) ) then
return false
endif
return true
endfunction
function Trig_All_Questions_Correct_Func014A takes nothing returns nothing
set udg_SorceressExperience = GetHeroXP(GetEnumUnit())
set udg_PromoItem1 = UnitItemInSlotBJ(GetEnumUnit(), 1)
set udg_PromoItem2 = UnitItemInSlotBJ(GetEnumUnit(), 2)
set udg_PromoItem3 = UnitItemInSlotBJ(GetEnumUnit(), 3)
set udg_PromoItem4 = UnitItemInSlotBJ(GetEnumUnit(), 4)
set udg_PromoItem5 = UnitItemInSlotBJ(GetEnumUnit(), 5)
set udg_PromoItem6 = UnitItemInSlotBJ(GetEnumUnit(), 6)
call ReplaceUnitBJ( GetEnumUnit(), 'U00F', bj_UNIT_STATE_METHOD_RELATIVE )
endfunction
function Trig_All_Questions_Correct_Func015A takes nothing returns nothing
call SetHeroXP( GetEnumUnit(), udg_SorceressExperience, false )
call UnitAddItemSwapped( udg_PromoItem1, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem2, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem3, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem4, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem5, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem6, GetEnumUnit() )
call AddSpecialEffectLocBJ( GetUnitLoc(GetEnumUnit()), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
endfunction
function Trig_All_Questions_Correct_Func018002 takes nothing returns nothing
call AdjustPlayerStateBJ( 1, GetEnumPlayer(), PLAYER_STATE_RESOURCE_LUMBER )
endfunction
function Trig_All_Questions_Correct_Func019001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_All_Questions_Correct_Func019002 takes nothing returns nothing
call AddHeroXPSwapped( 200, GetEnumUnit(), true )
endfunction
function Trig_All_Questions_Correct_Func020001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_All_Questions_Correct_Func020002 takes nothing returns nothing
call AddHeroXPSwapped( 200, GetEnumUnit(), true )
endfunction
function Trig_All_Questions_Correct_Func021001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_All_Questions_Correct_Func021002 takes nothing returns nothing
call AddHeroXPSwapped( 200, GetEnumUnit(), true )
endfunction
function Trig_All_Questions_Correct_Func022001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_All_Questions_Correct_Func022002 takes nothing returns nothing
call AddHeroXPSwapped( 200, GetEnumUnit(), true )
endfunction
function Trig_All_Questions_Correct_Func023001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_All_Questions_Correct_Func023002 takes nothing returns nothing
call AddHeroXPSwapped( 200, GetEnumUnit(), true )
endfunction
function Trig_All_Questions_Correct_Func024001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_All_Questions_Correct_Func024002 takes nothing returns nothing
call AddHeroXPSwapped( 200, GetEnumUnit(), true )
endfunction
function Trig_All_Questions_Correct_Func025001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_All_Questions_Correct_Func025002 takes nothing returns nothing
call AddHeroXPSwapped( 200, GetEnumUnit(), true )
endfunction
function Trig_All_Questions_Correct_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisableTrigger( gg_trg_Guildmistress_Gossip_2 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_3619" )
call PlaySoundBJ( gg_snd_QuestCompleted )
call UnitRemoveAbilityBJ( udg_LastAddedAbility, GetSpellAbilityUnit() )
call UnitRemoveAbilityBJ( 'A06Q', GetSpellAbilityUnit() )
call UnitRemoveAbilityBJ( 'A06N', GetSpellAbilityUnit() )
call UnitRemoveAbilityBJ( 'A06P', GetSpellAbilityUnit() )
call UnitRemoveAbilityBJ( 'A06O', GetSpellAbilityUnit() )
call QuestSetDescriptionBJ( udg_ProQuestSorc, "TRIGSTR_3620" )
call QuestSetCompletedBJ( udg_ProQuestSorc, true )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_3621" )
call ForGroupBJ( GetUnitsOfTypeIdAll('U006'), function Trig_All_Questions_Correct_Func014A )
call ForGroupBJ( GetUnitsOfTypeIdAll('U00F'), function Trig_All_Questions_Correct_Func015A )
call PolledWait( 2.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_3622" )
call ForForce( udg_PlayerGroup, function Trig_All_Questions_Correct_Func018002 )
call ForGroupBJ( GetUnitsOfPlayerMatching(Player(0), Condition(function Trig_All_Questions_Correct_Func019001002)), function Trig_All_Questions_Correct_Func019002 )
call ForGroupBJ( GetUnitsOfPlayerMatching(Player(1), Condition(function Trig_All_Questions_Correct_Func020001002)), function Trig_All_Questions_Correct_Func020002 )
call ForGroupBJ( GetUnitsOfPlayerMatching(Player(3), Condition(function Trig_All_Questions_Correct_Func021001002)), function Trig_All_Questions_Correct_Func021002 )
call ForGroupBJ( GetUnitsOfPlayerMatching(Player(4), Condition(function Trig_All_Questions_Correct_Func022001002)), function Trig_All_Questions_Correct_Func022002 )
call ForGroupBJ( GetUnitsOfPlayerMatching(Player(5), Condition(function Trig_All_Questions_Correct_Func023001002)), function Trig_All_Questions_Correct_Func023002 )
call ForGroupBJ( GetUnitsOfPlayerMatching(Player(6), Condition(function Trig_All_Questions_Correct_Func024001002)), function Trig_All_Questions_Correct_Func024002 )
call ForGroupBJ( GetUnitsOfPlayerMatching(Player(8), Condition(function Trig_All_Questions_Correct_Func025001002)), function Trig_All_Questions_Correct_Func025002 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call EnableTrigger( gg_trg_Guildmistress_Gossip_3 )
endfunction
//===========================================================================
function InitTrig_All_Questions_Correct takes nothing returns nothing
set gg_trg_All_Questions_Correct = CreateTrigger( )
call DisableTrigger( gg_trg_All_Questions_Correct )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_All_Questions_Correct, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_All_Questions_Correct, Condition( function Trig_All_Questions_Correct_Conditions ) )
call TriggerAddAction( gg_trg_All_Questions_Correct, function Trig_All_Questions_Correct_Actions )
endfunction
function Trig_Wrong_Answer_A_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A06N' ) ) then
return false
endif
return true
endfunction
function Trig_Wrong_Answer_A_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisableTrigger( gg_trg_Wrong_Answer_B )
call DisableTrigger( gg_trg_Wrong_Answer_C )
call DisableTrigger( gg_trg_Question_2 )
call DisableTrigger( gg_trg_Question_3 )
call DisableTrigger( gg_trg_Question_4 )
call DisableTrigger( gg_trg_Question_5 )
call DisableTrigger( gg_trg_Question_6 )
call DisableTrigger( gg_trg_Question_7 )
call DisableTrigger( gg_trg_Question_8 )
call DisableTrigger( gg_trg_Question_9 )
call DisableTrigger( gg_trg_Question_10 )
call DisableTrigger( gg_trg_All_Questions_Correct )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_3577" )
call PlaySoundBJ( gg_snd_QuestFailed )
call PolledWait( 0.20 )
call UnitRemoveAbilityBJ( udg_LastAddedAbility, GetSpellAbilityUnit() )
call UnitRemoveAbilityBJ( 'A06O', GetSpellAbilityUnit() )
call UnitRemoveAbilityBJ( 'A06P', GetSpellAbilityUnit() )
call UnitRemoveAbilityBJ( 'A06N', GetSpellAbilityUnit() )
call EnableTrigger( gg_trg_Accepting_the_Challenge )
endfunction
//===========================================================================
function InitTrig_Wrong_Answer_A takes nothing returns nothing
set gg_trg_Wrong_Answer_A = CreateTrigger( )
call DisableTrigger( gg_trg_Wrong_Answer_A )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Wrong_Answer_A, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Wrong_Answer_A, Condition( function Trig_Wrong_Answer_A_Conditions ) )
call TriggerAddAction( gg_trg_Wrong_Answer_A, function Trig_Wrong_Answer_A_Actions )
endfunction
function Trig_Wrong_Answer_B_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A06O' ) ) then
return false
endif
return true
endfunction
function Trig_Wrong_Answer_B_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisableTrigger( gg_trg_Wrong_Answer_A )
call DisableTrigger( gg_trg_Wrong_Answer_C )
call DisableTrigger( gg_trg_Question_2 )
call DisableTrigger( gg_trg_Question_3 )
call DisableTrigger( gg_trg_Question_4 )
call DisableTrigger( gg_trg_Question_5 )
call DisableTrigger( gg_trg_Question_6 )
call DisableTrigger( gg_trg_Question_7 )
call DisableTrigger( gg_trg_Question_8 )
call DisableTrigger( gg_trg_Question_9 )
call DisableTrigger( gg_trg_Question_10 )
call DisableTrigger( gg_trg_All_Questions_Correct )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_3578" )
call PlaySoundBJ( gg_snd_QuestFailed )
call PolledWait( 0.20 )
call UnitRemoveAbilityBJ( udg_LastAddedAbility, GetSpellAbilityUnit() )
call UnitRemoveAbilityBJ( 'A06N', GetSpellAbilityUnit() )
call UnitRemoveAbilityBJ( 'A06P', GetSpellAbilityUnit() )
call UnitRemoveAbilityBJ( 'A06O', GetSpellAbilityUnit() )
call EnableTrigger( gg_trg_Accepting_the_Challenge )
endfunction
//===========================================================================
function InitTrig_Wrong_Answer_B takes nothing returns nothing
set gg_trg_Wrong_Answer_B = CreateTrigger( )
call DisableTrigger( gg_trg_Wrong_Answer_B )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Wrong_Answer_B, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Wrong_Answer_B, Condition( function Trig_Wrong_Answer_B_Conditions ) )
call TriggerAddAction( gg_trg_Wrong_Answer_B, function Trig_Wrong_Answer_B_Actions )
endfunction
function Trig_Wrong_Answer_C_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A06P' ) ) then
return false
endif
return true
endfunction
function Trig_Wrong_Answer_C_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisableTrigger( gg_trg_Wrong_Answer_A )
call DisableTrigger( gg_trg_Wrong_Answer_B )
call DisableTrigger( gg_trg_Question_2 )
call DisableTrigger( gg_trg_Question_3 )
call DisableTrigger( gg_trg_Question_4 )
call DisableTrigger( gg_trg_Question_5 )
call DisableTrigger( gg_trg_Question_6 )
call DisableTrigger( gg_trg_Question_7 )
call DisableTrigger( gg_trg_Question_8 )
call DisableTrigger( gg_trg_Question_9 )
call DisableTrigger( gg_trg_Question_10 )
call DisableTrigger( gg_trg_All_Questions_Correct )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_3579" )
call PlaySoundBJ( gg_snd_QuestFailed )
call PolledWait( 0.20 )
call UnitRemoveAbilityBJ( udg_LastAddedAbility, GetSpellAbilityUnit() )
call UnitRemoveAbilityBJ( 'A06N', GetSpellAbilityUnit() )
call UnitRemoveAbilityBJ( 'A06O', GetSpellAbilityUnit() )
call UnitRemoveAbilityBJ( 'A06P', GetSpellAbilityUnit() )
call EnableTrigger( gg_trg_Accepting_the_Challenge )
endfunction
//===========================================================================
function InitTrig_Wrong_Answer_C takes nothing returns nothing
set gg_trg_Wrong_Answer_C = CreateTrigger( )
call DisableTrigger( gg_trg_Wrong_Answer_C )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Wrong_Answer_C, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Wrong_Answer_C, Condition( function Trig_Wrong_Answer_C_Conditions ) )
call TriggerAddAction( gg_trg_Wrong_Answer_C, function Trig_Wrong_Answer_C_Actions )
endfunction
function Trig_Enter_the_Storm_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisableTrigger( gg_trg_Rainmaker )
call EnableWeatherEffect( udg_WeatherRain, true )
call EnableWeatherEffect( udg_WeatherSnow, false )
call EnableWeatherEffect( udg_WeatherStorm, true )
endfunction
//===========================================================================
function InitTrig_Enter_the_Storm takes nothing returns nothing
set gg_trg_Enter_the_Storm = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Enter_the_Storm, gg_rct_Stormweaver )
call TriggerAddAction( gg_trg_Enter_the_Storm, function Trig_Enter_the_Storm_Actions )
endfunction
function Trig_Tower_Roof_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_Tower_Roof_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_3683" )
call IssueTargetOrderBJ( gg_unit_E00N_0238, "forkedlightning", GetEnteringUnit() )
endfunction
//===========================================================================
function InitTrig_Tower_Roof takes nothing returns nothing
set gg_trg_Tower_Roof = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Tower_Roof, gg_rct_TowerRoof )
call TriggerAddCondition( gg_trg_Tower_Roof, Condition( function Trig_Tower_Roof_Conditions ) )
call TriggerAddAction( gg_trg_Tower_Roof, function Trig_Tower_Roof_Actions )
endfunction
function Trig_Slaying_the_Storm_Func005002 takes nothing returns nothing
call AdjustPlayerStateBJ( 1, GetEnumPlayer(), PLAYER_STATE_RESOURCE_LUMBER )
endfunction
function Trig_Slaying_the_Storm_Func008A takes nothing returns nothing
set udg_DruidExperience = GetHeroXP(GetEnumUnit())
set udg_PromoItem1 = UnitItemInSlotBJ(GetEnumUnit(), 1)
set udg_PromoItem2 = UnitItemInSlotBJ(GetEnumUnit(), 2)
set udg_PromoItem3 = UnitItemInSlotBJ(GetEnumUnit(), 3)
set udg_PromoItem4 = UnitItemInSlotBJ(GetEnumUnit(), 4)
set udg_PromoItem5 = UnitItemInSlotBJ(GetEnumUnit(), 5)
set udg_PromoItem6 = UnitItemInSlotBJ(GetEnumUnit(), 6)
call ReplaceUnitBJ( GetEnumUnit(), 'E00P', bj_UNIT_STATE_METHOD_RELATIVE )
endfunction
function Trig_Slaying_the_Storm_Func009A takes nothing returns nothing
set udg_DruidExperience = GetHeroXP(GetEnumUnit())
set udg_PromoItem1 = UnitItemInSlotBJ(GetEnumUnit(), 1)
set udg_PromoItem2 = UnitItemInSlotBJ(GetEnumUnit(), 2)
set udg_PromoItem3 = UnitItemInSlotBJ(GetEnumUnit(), 3)
set udg_PromoItem4 = UnitItemInSlotBJ(GetEnumUnit(), 4)
set udg_PromoItem5 = UnitItemInSlotBJ(GetEnumUnit(), 5)
set udg_PromoItem6 = UnitItemInSlotBJ(GetEnumUnit(), 6)
call ReplaceUnitBJ( GetEnumUnit(), 'E00P', bj_UNIT_STATE_METHOD_RELATIVE )
endfunction
function Trig_Slaying_the_Storm_Func010A takes nothing returns nothing
set udg_DruidExperience = GetHeroXP(GetEnumUnit())
set udg_PromoItem1 = UnitItemInSlotBJ(GetEnumUnit(), 1)
set udg_PromoItem2 = UnitItemInSlotBJ(GetEnumUnit(), 2)
set udg_PromoItem3 = UnitItemInSlotBJ(GetEnumUnit(), 3)
set udg_PromoItem4 = UnitItemInSlotBJ(GetEnumUnit(), 4)
set udg_PromoItem5 = UnitItemInSlotBJ(GetEnumUnit(), 5)
set udg_PromoItem6 = UnitItemInSlotBJ(GetEnumUnit(), 6)
call ReplaceUnitBJ( GetEnumUnit(), 'E00P', bj_UNIT_STATE_METHOD_RELATIVE )
endfunction
function Trig_Slaying_the_Storm_Func011A takes nothing returns nothing
set udg_DruidExperience = GetHeroXP(GetEnumUnit())
set udg_PromoItem1 = UnitItemInSlotBJ(GetEnumUnit(), 1)
set udg_PromoItem2 = UnitItemInSlotBJ(GetEnumUnit(), 2)
set udg_PromoItem3 = UnitItemInSlotBJ(GetEnumUnit(), 3)
set udg_PromoItem4 = UnitItemInSlotBJ(GetEnumUnit(), 4)
set udg_PromoItem5 = UnitItemInSlotBJ(GetEnumUnit(), 5)
set udg_PromoItem6 = UnitItemInSlotBJ(GetEnumUnit(), 6)
call ReplaceUnitBJ( GetEnumUnit(), 'E00P', bj_UNIT_STATE_METHOD_RELATIVE )
endfunction
function Trig_Slaying_the_Storm_Func012A takes nothing returns nothing
call SetHeroXP( GetEnumUnit(), udg_DruidExperience, false )
call UnitAddItemSwapped( udg_PromoItem1, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem2, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem3, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem4, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem5, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem6, GetEnumUnit() )
call AddSpecialEffectLocBJ( GetUnitLoc(GetEnumUnit()), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
endfunction
function Trig_Slaying_the_Storm_Actions takes nothing returns nothing
call QuestSetDescriptionBJ( udg_ProQuestDruid, "TRIGSTR_3745" )
call QuestSetCompletedBJ( udg_ProQuestDruid, true )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_3746" )
call ForForce( udg_PlayerGroup, function Trig_Slaying_the_Storm_Func005002 )
call PlaySoundBJ( gg_snd_QuestCompleted )
call PolledWait( 0.80 )
call ForGroupBJ( GetUnitsOfTypeIdAll('E004'), function Trig_Slaying_the_Storm_Func008A )
call ForGroupBJ( GetUnitsOfTypeIdAll('E003'), function Trig_Slaying_the_Storm_Func009A )
call ForGroupBJ( GetUnitsOfTypeIdAll('E002'), function Trig_Slaying_the_Storm_Func010A )
call ForGroupBJ( GetUnitsOfTypeIdAll('E000'), function Trig_Slaying_the_Storm_Func011A )
call ForGroupBJ( GetUnitsOfTypeIdAll('E00P'), function Trig_Slaying_the_Storm_Func012A )
call DisableTrigger( gg_trg_Guardian_Gossip_2 )
call PolledWait( 0.20 )
call EnableTrigger( gg_trg_Guardian_Gossip_3 )
call PolledWait( 2 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endfunction
//===========================================================================
function InitTrig_Slaying_the_Storm takes nothing returns nothing
set gg_trg_Slaying_the_Storm = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Slaying_the_Storm, gg_unit_E00N_0238, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Slaying_the_Storm, function Trig_Slaying_the_Storm_Actions )
endfunction
function Trig_The_Thieves_Guild_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A07C' ) ) then
return false
endif
return true
endfunction
function Trig_The_Thieves_Guild_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( 'A07C', gg_unit_n01V_0239 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_3781" )
call DisableTrigger( GetTriggeringTrigger() )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_3782", "TRIGSTR_3783", "ReplaceableTextures\\CommandButtons\\BTNChestOfGold.blp" )
set udg_ProQuestHuntress = GetLastCreatedQuestBJ()
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_3784" )
call PlaySoundBJ( gg_snd_QuestNew )
call SetDestructableInvulnerableBJ( gg_dest_ITg1_3724, false )
endfunction
//===========================================================================
function InitTrig_The_Thieves_Guild takes nothing returns nothing
set gg_trg_The_Thieves_Guild = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_The_Thieves_Guild, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_The_Thieves_Guild, Condition( function Trig_The_Thieves_Guild_Conditions ) )
call TriggerAddAction( gg_trg_The_Thieves_Guild, function Trig_The_Thieves_Guild_Actions )
endfunction
function Trig_Thief_Guild_Sam_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A07C' ) ) then
return false
endif
if ( not ( udg_SamJoined == true ) ) then
return false
endif
return true
endfunction
function Trig_Thief_Guild_Sam_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call PolledWait( 10.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6697" )
endfunction
//===========================================================================
function InitTrig_Thief_Guild_Sam takes nothing returns nothing
set gg_trg_Thief_Guild_Sam = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Thief_Guild_Sam, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Thief_Guild_Sam, Condition( function Trig_Thief_Guild_Sam_Conditions ) )
call TriggerAddAction( gg_trg_Thief_Guild_Sam, function Trig_Thief_Guild_Sam_Actions )
endfunction
function Trig_Find_Key_First_Time_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I02C' ) ) then
return false
endif
return true
endfunction
function Trig_Find_Key_First_Time_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_3789" )
call QuestSetDescriptionBJ( udg_ProQuestHuntress, "TRIGSTR_3790" )
call PlaySoundBJ( gg_snd_QuestLog )
endfunction
//===========================================================================
function InitTrig_Find_Key_First_Time takes nothing returns nothing
set gg_trg_Find_Key_First_Time = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Find_Key_First_Time, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Find_Key_First_Time, Condition( function Trig_Find_Key_First_Time_Conditions ) )
call TriggerAddAction( gg_trg_Find_Key_First_Time, function Trig_Find_Key_First_Time_Actions )
endfunction
function Trig_Find_Key_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I02C' ) ) then
return false
endif
return true
endfunction
function Trig_Find_Key_Actions takes nothing returns nothing
call EnableTrigger( gg_trg_Brothel_Locked_Door )
endfunction
//===========================================================================
function InitTrig_Find_Key takes nothing returns nothing
set gg_trg_Find_Key = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Find_Key, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Find_Key, Condition( function Trig_Find_Key_Conditions ) )
call TriggerAddAction( gg_trg_Find_Key, function Trig_Find_Key_Actions )
endfunction
function Trig_Lose_Key_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I02C' ) ) then
return false
endif
return true
endfunction
function Trig_Lose_Key_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Brothel_Locked_Door )
endfunction
//===========================================================================
function InitTrig_Lose_Key takes nothing returns nothing
set gg_trg_Lose_Key = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Lose_Key, EVENT_PLAYER_UNIT_DROP_ITEM )
call TriggerAddCondition( gg_trg_Lose_Key, Condition( function Trig_Lose_Key_Conditions ) )
call TriggerAddAction( gg_trg_Lose_Key, function Trig_Lose_Key_Actions )
endfunction
function Trig_Killing_Bishop_Actions takes nothing returns nothing
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_3802" )
call QuestSetDescriptionBJ( udg_ProQuestHuntress, "TRIGSTR_3803" )
call PlaySoundBJ( gg_snd_QuestLog )
call SetUnitPositionLoc( gg_unit_E00T_0242, GetRectCenter(gg_rct_Keep_Quest_PVyrm) )
call EnableTrigger( gg_trg_Finding_Garde )
endfunction
//===========================================================================
function InitTrig_Killing_Bishop takes nothing returns nothing
set gg_trg_Killing_Bishop = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Killing_Bishop, gg_unit_N01W_0241, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Killing_Bishop, function Trig_Killing_Bishop_Actions )
endfunction
function Trig_Finding_Garde_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_Finding_Garde_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_3825" )
call IssuePointOrderLocBJ( gg_unit_E00T_0242, "evileye", GetRectCenter(gg_rct_Keep_Quest_PLeon) )
call PolledWait( 3.00 )
call IssueTargetOrderBJ( gg_unit_E00T_0242, "thunderbolt", GetEnteringUnit() )
call PolledWait( 7.00 )
call IssuePointOrderLocBJ( gg_unit_E00T_0242, "rainoffire", GetRectCenter(gg_rct_Keep_Quest_P1) )
endfunction
//===========================================================================
function InitTrig_Finding_Garde takes nothing returns nothing
set gg_trg_Finding_Garde = CreateTrigger( )
call DisableTrigger( gg_trg_Finding_Garde )
call TriggerRegisterEnterRectSimple( gg_trg_Finding_Garde, gg_rct_The_Keep_Throne )
call TriggerAddCondition( gg_trg_Finding_Garde, Condition( function Trig_Finding_Garde_Conditions ) )
call TriggerAddAction( gg_trg_Finding_Garde, function Trig_Finding_Garde_Actions )
endfunction
function Trig_Killing_Garde_Actions takes nothing returns nothing
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_3826" )
call QuestSetDescriptionBJ( udg_ProQuestHuntress, "TRIGSTR_3827" )
call PlaySoundBJ( gg_snd_QuestLog )
call UnitAddAbilityBJ( 'A09P', gg_unit_n01V_0239 )
endfunction
//===========================================================================
function InitTrig_Killing_Garde takes nothing returns nothing
set gg_trg_Killing_Garde = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Killing_Garde, gg_unit_E00T_0242, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Killing_Garde, function Trig_Killing_Garde_Actions )
endfunction
function Trig_Returning_with_the_News_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A09P' ) ) then
return false
endif
return true
endfunction
function Trig_Returning_with_the_News_Func009002 takes nothing returns nothing
call AdjustPlayerStateBJ( 200, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Returning_with_the_News_Func010002 takes nothing returns nothing
call AdjustPlayerStateBJ( 1, GetEnumPlayer(), PLAYER_STATE_RESOURCE_LUMBER )
endfunction
function Trig_Returning_with_the_News_Func015A takes nothing returns nothing
set udg_HuntressExperience = GetHeroXP(GetEnumUnit())
set udg_PromoItem1 = UnitItemInSlotBJ(GetEnumUnit(), 1)
set udg_PromoItem2 = UnitItemInSlotBJ(GetEnumUnit(), 2)
set udg_PromoItem3 = UnitItemInSlotBJ(GetEnumUnit(), 3)
set udg_PromoItem4 = UnitItemInSlotBJ(GetEnumUnit(), 4)
set udg_PromoItem5 = UnitItemInSlotBJ(GetEnumUnit(), 5)
set udg_PromoItem6 = UnitItemInSlotBJ(GetEnumUnit(), 6)
call ReplaceUnitBJ( GetEnumUnit(), 'E00U', bj_UNIT_STATE_METHOD_RELATIVE )
endfunction
function Trig_Returning_with_the_News_Func016A takes nothing returns nothing
call SetHeroXP( GetEnumUnit(), udg_HuntressExperience, false )
call UnitAddItemSwapped( udg_PromoItem1, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem2, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem3, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem4, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem5, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem6, GetEnumUnit() )
call AddSpecialEffectLocBJ( GetUnitLoc(GetEnumUnit()), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
endfunction
function Trig_Returning_with_the_News_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call UnitRemoveAbilityBJ( 'A09P', gg_unit_n01V_0239 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_3828" )
call QuestSetDescriptionBJ( udg_ProQuestHuntress, "TRIGSTR_3829" )
call QuestSetCompletedBJ( udg_ProQuestHuntress, true )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_3830" )
call PlaySoundBJ( gg_snd_QuestCompleted )
call ForForce( udg_PlayerGroup, function Trig_Returning_with_the_News_Func009002 )
call ForForce( udg_PlayerGroup, function Trig_Returning_with_the_News_Func010002 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_3831" )
call AdjustPlayerStateBJ( 20, udg_KindredSpirit1, PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 20, udg_KindredSpirit2, PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 20, udg_KindredSpirit3, PLAYER_STATE_RESOURCE_GOLD )
call ForGroupBJ( GetUnitsOfTypeIdAll('E005'), function Trig_Returning_with_the_News_Func015A )
call ForGroupBJ( GetUnitsOfTypeIdAll('E00U'), function Trig_Returning_with_the_News_Func016A )
call PolledWait( 2 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endfunction
//===========================================================================
function InitTrig_Returning_with_the_News takes nothing returns nothing
set gg_trg_Returning_with_the_News = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Returning_with_the_News, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Returning_with_the_News, Condition( function Trig_Returning_with_the_News_Conditions ) )
call TriggerAddAction( gg_trg_Returning_with_the_News, function Trig_Returning_with_the_News_Actions )
endfunction
function Trig_Taming_the_Horse_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I02F' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'H002' ) ) then
return false
endif
return true
endfunction
function Trig_Taming_the_Horse_Func003A takes nothing returns nothing
set udg_SwordsmanExperience = GetHeroXP(GetEnumUnit())
set udg_PromoItem1 = UnitItemInSlotBJ(GetEnumUnit(), 1)
set udg_PromoItem2 = UnitItemInSlotBJ(GetEnumUnit(), 2)
set udg_PromoItem3 = UnitItemInSlotBJ(GetEnumUnit(), 3)
set udg_PromoItem4 = UnitItemInSlotBJ(GetEnumUnit(), 4)
set udg_PromoItem5 = UnitItemInSlotBJ(GetEnumUnit(), 5)
set udg_PromoItem6 = UnitItemInSlotBJ(GetEnumUnit(), 6)
call ReplaceUnitBJ( GetEnumUnit(), 'H00T', bj_UNIT_STATE_METHOD_RELATIVE )
endfunction
function Trig_Taming_the_Horse_Func004A takes nothing returns nothing
call SetHeroXP( GetEnumUnit(), udg_SwordsmanExperience, false )
call UnitAddItemSwapped( udg_PromoItem1, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem2, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem3, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem4, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem5, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem6, GetEnumUnit() )
call AddSpecialEffectLocBJ( GetUnitLoc(GetEnumUnit()), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
endfunction
function Trig_Taming_the_Horse_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_3921" )
call PlaySoundBJ( gg_snd_QuestCompleted )
call ForGroupBJ( GetUnitsOfTypeIdAll('H002'), function Trig_Taming_the_Horse_Func003A )
call ForGroupBJ( GetUnitsOfTypeIdAll('H00T'), function Trig_Taming_the_Horse_Func004A )
call AddSpecialEffectLocBJ( GetUnitLoc(gg_unit_h01B_0253), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
call PolledWait( 1.00 )
call QuestSetDescriptionBJ( udg_ProQuestSwordsman, "TRIGSTR_3922" )
call QuestSetCompletedBJ( udg_ProQuestSwordsman, true )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_3923" )
call RemoveUnit( gg_unit_h01B_0253 )
call PolledWait( 2 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endfunction
//===========================================================================
function InitTrig_Taming_the_Horse takes nothing returns nothing
set gg_trg_Taming_the_Horse = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Taming_the_Horse, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Taming_the_Horse, Condition( function Trig_Taming_the_Horse_Conditions ) )
call TriggerAddAction( gg_trg_Taming_the_Horse, function Trig_Taming_the_Horse_Actions )
endfunction
function Trig_Failing_the_Horse_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I02F' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetManipulatingUnit()) != 'H002' ) ) then
return false
endif
return true
endfunction
function Trig_Failing_the_Horse_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_3920" )
call PlaySoundBJ( gg_snd_QuestFailed )
endfunction
//===========================================================================
function InitTrig_Failing_the_Horse takes nothing returns nothing
set gg_trg_Failing_the_Horse = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Failing_the_Horse, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Failing_the_Horse, Condition( function Trig_Failing_the_Horse_Conditions ) )
call TriggerAddAction( gg_trg_Failing_the_Horse, function Trig_Failing_the_Horse_Actions )
endfunction
function Trig_Bounty_of_Sion_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A08D' ) ) then
return false
endif
return true
endfunction
function Trig_Bounty_of_Sion_Func004001001 takes nothing returns boolean
return ( IsUnitSelected(GetTriggerUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Bounty_of_Sion_Actions takes nothing returns nothing
call SetPlayerTechResearchedSwap( 'Rhpm', 1, Player(10) )
call UnitRemoveAbilityBJ( 'A08D', GetSpellAbilityUnit() )
call UnitAddAbilityBJ( 'A08E', gg_unit_n02H_0305 )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Bounty_of_Sion_Func004001001)), "TRIGSTR_4301" )
call UnitAddItemByIdSwapped( 'I02G', gg_unit_n02H_0305 )
call PlaySoundBJ( gg_snd_CityGateOpen )
endfunction
//===========================================================================
function InitTrig_Bounty_of_Sion takes nothing returns nothing
set gg_trg_Bounty_of_Sion = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Bounty_of_Sion, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Bounty_of_Sion, Condition( function Trig_Bounty_of_Sion_Conditions ) )
call TriggerAddAction( gg_trg_Bounty_of_Sion, function Trig_Bounty_of_Sion_Actions )
endfunction
function Trig_Divining_Fate_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I02K' ) ) then
return false
endif
return true
endfunction
function Trig_Divining_Fate_Func002001001 takes nothing returns boolean
return ( IsUnitInGroup(GetManipulatingUnit(), GetUnitsOfPlayerAll(GetFilterPlayer())) == true )
endfunction
function Trig_Divining_Fate_Actions takes nothing returns nothing
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUTIN, 4.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Divining_Fate_Func002001001)), "TRIGSTR_4693" )
call AddHeroXPSwapped( 200, GetManipulatingUnit(), true )
call PolledWait( 2.00 )
call DisplayTextToForce( GetPlayersAll(), ( ( "|cffffcc00" + GetPlayerName(GetOwningPlayer(GetManipulatingUnit())) ) + " gained 200 experience.|r" ) )
endfunction
//===========================================================================
function InitTrig_Divining_Fate takes nothing returns nothing
set gg_trg_Divining_Fate = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Divining_Fate, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Divining_Fate, Condition( function Trig_Divining_Fate_Conditions ) )
call TriggerAddAction( gg_trg_Divining_Fate, function Trig_Divining_Fate_Actions )
endfunction
function Trig_The_Spirits_are_Restless_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I02K' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'O00C' ) ) then
return false
endif
return true
endfunction
function Trig_The_Spirits_are_Restless_Func005001001 takes nothing returns boolean
return ( IsUnitInGroup(udg_Animist, GetUnitsOfPlayerAll(GetFilterPlayer())) == true )
endfunction
function Trig_The_Spirits_are_Restless_Func006A takes nothing returns nothing
set udg_AnimistExperience = GetHeroXP(GetEnumUnit())
set udg_PromoItem1 = UnitItemInSlotBJ(GetEnumUnit(), 1)
set udg_PromoItem2 = UnitItemInSlotBJ(GetEnumUnit(), 2)
set udg_PromoItem3 = UnitItemInSlotBJ(GetEnumUnit(), 3)
set udg_PromoItem4 = UnitItemInSlotBJ(GetEnumUnit(), 4)
set udg_PromoItem5 = UnitItemInSlotBJ(GetEnumUnit(), 5)
set udg_PromoItem6 = UnitItemInSlotBJ(GetEnumUnit(), 6)
call ReplaceUnitBJ( GetEnumUnit(), 'O00J', bj_UNIT_STATE_METHOD_RELATIVE )
endfunction
function Trig_The_Spirits_are_Restless_Func007A takes nothing returns nothing
call SetHeroXP( GetEnumUnit(), udg_AnimistExperience, false )
call UnitAddItemSwapped( udg_PromoItem1, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem2, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem3, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem4, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem5, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem6, GetEnumUnit() )
call AddSpecialEffectLocBJ( GetUnitLoc(GetEnumUnit()), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
endfunction
function Trig_The_Spirits_are_Restless_Func011002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_The_Spirits_are_Restless_Actions takes nothing returns nothing
set udg_OwnerOfAnimist = GetOwningPlayer(GetManipulatingUnit())
set udg_Animist = GetManipulatingUnit()
call DisableTrigger( GetTriggeringTrigger() )
call PolledWait( 7.00 )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_The_Spirits_are_Restless_Func005001001)), "TRIGSTR_4692" )
call ForGroupBJ( GetUnitsOfTypeIdAll('O00C'), function Trig_The_Spirits_are_Restless_Func006A )
call ForGroupBJ( GetUnitsOfTypeIdAll('O00J'), function Trig_The_Spirits_are_Restless_Func007A )
set udg_KindredSpirit1 = Player(11)
set udg_KindredSpirit2 = Player(11)
set udg_KindredSpirit3 = Player(11)
call ForGroupBJ( GetUnitsOfTypeIdAll('n00Y'), function Trig_The_Spirits_are_Restless_Func011002 )
call QuestSetDescriptionBJ( udg_ProQuestAnimist, "TRIGSTR_4701" )
call QuestSetCompletedBJ( udg_ProQuestAnimist, true )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_4702" )
call PlaySoundBJ( gg_snd_QuestCompleted )
call PolledWait( 2 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endfunction
//===========================================================================
function InitTrig_The_Spirits_are_Restless takes nothing returns nothing
set gg_trg_The_Spirits_are_Restless = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_The_Spirits_are_Restless, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_The_Spirits_are_Restless, Condition( function Trig_The_Spirits_are_Restless_Conditions ) )
call TriggerAddAction( gg_trg_The_Spirits_are_Restless, function Trig_The_Spirits_are_Restless_Actions )
endfunction
function Trig_The_Angry_Prawn_Actions takes nothing returns nothing
call IssueTargetOrderBJ( gg_unit_n02U_0357, "drunkenhaze", GetAttacker() )
endfunction
//===========================================================================
function InitTrig_The_Angry_Prawn takes nothing returns nothing
set gg_trg_The_Angry_Prawn = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_The_Angry_Prawn, gg_unit_n02U_0357, EVENT_UNIT_ATTACKED )
call TriggerAddAction( gg_trg_The_Angry_Prawn, function Trig_The_Angry_Prawn_Actions )
endfunction
function Trig_Finding_Prawn_Head_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I02L' ) ) then
return false
endif
if ( not ( udg_FletchLives == true ) ) then
return false
endif
return true
endfunction
function Trig_Finding_Prawn_Head_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
set udg_PrawnHead = GetManipulatedItem()
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_4725" )
call QuestSetDescriptionBJ( udg_ProQuestArcher, "TRIGSTR_4726" )
call PlaySoundBJ( gg_snd_QuestLog )
endfunction
//===========================================================================
function InitTrig_Finding_Prawn_Head takes nothing returns nothing
set gg_trg_Finding_Prawn_Head = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Finding_Prawn_Head, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Finding_Prawn_Head, Condition( function Trig_Finding_Prawn_Head_Conditions ) )
call TriggerAddAction( gg_trg_Finding_Prawn_Head, function Trig_Finding_Prawn_Head_Actions )
endfunction
function Trig_Fletch_Does_Not_Live_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I02L' ) ) then
return false
endif
if ( not ( udg_FletchLives == false ) ) then
return false
endif
return true
endfunction
function Trig_Fletch_Does_Not_Live_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
set udg_PrawnHead = GetManipulatedItem()
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_4727" )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_4729", "TRIGSTR_4730", "ReplaceableTextures\\CommandButtons\\BTNLobstrokkRed.blp" )
set udg_ProQuestArcher = GetLastCreatedQuestBJ()
call PlaySoundBJ( gg_snd_QuestNew )
call DisableTrigger( gg_trg_Irwin_Fletcher_Gossip_1 )
call EnableTrigger( gg_trg_Irwin_Fletcher_Gossip_2 )
endfunction
//===========================================================================
function InitTrig_Fletch_Does_Not_Live takes nothing returns nothing
set gg_trg_Fletch_Does_Not_Live = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Fletch_Does_Not_Live, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Fletch_Does_Not_Live, Condition( function Trig_Fletch_Does_Not_Live_Conditions ) )
call TriggerAddAction( gg_trg_Fletch_Does_Not_Live, function Trig_Fletch_Does_Not_Live_Actions )
endfunction
function Trig_Find_Prawn_Head_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I02L' ) ) then
return false
endif
return true
endfunction
function Trig_Find_Prawn_Head_Actions takes nothing returns nothing
call UnitAddAbilityBJ( 'A093', gg_unit_h019_0224 )
endfunction
//===========================================================================
function InitTrig_Find_Prawn_Head takes nothing returns nothing
set gg_trg_Find_Prawn_Head = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Find_Prawn_Head, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Find_Prawn_Head, Condition( function Trig_Find_Prawn_Head_Conditions ) )
call TriggerAddAction( gg_trg_Find_Prawn_Head, function Trig_Find_Prawn_Head_Actions )
endfunction
function Trig_Lose_Prawn_Head_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I02L' ) ) then
return false
endif
return true
endfunction
function Trig_Lose_Prawn_Head_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( 'A093', gg_unit_h019_0224 )
endfunction
//===========================================================================
function InitTrig_Lose_Prawn_Head takes nothing returns nothing
set gg_trg_Lose_Prawn_Head = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Lose_Prawn_Head, EVENT_PLAYER_UNIT_DROP_ITEM )
call TriggerAddCondition( gg_trg_Lose_Prawn_Head, Condition( function Trig_Lose_Prawn_Head_Conditions ) )
call TriggerAddAction( gg_trg_Lose_Prawn_Head, function Trig_Lose_Prawn_Head_Actions )
endfunction
function Trig_Giving_Head_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A093' ) ) then
return false
endif
return true
endfunction
function Trig_Giving_Head_Func010001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Giving_Head_Func010002 takes nothing returns nothing
call AddHeroXPSwapped( 150, GetEnumUnit(), true )
endfunction
function Trig_Giving_Head_Func011001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Giving_Head_Func011002 takes nothing returns nothing
call AddHeroXPSwapped( 150, GetEnumUnit(), true )
endfunction
function Trig_Giving_Head_Func012001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Giving_Head_Func012002 takes nothing returns nothing
call AddHeroXPSwapped( 150, GetEnumUnit(), true )
endfunction
function Trig_Giving_Head_Func013001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Giving_Head_Func013002 takes nothing returns nothing
call AddHeroXPSwapped( 150, GetEnumUnit(), true )
endfunction
function Trig_Giving_Head_Func014001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Giving_Head_Func014002 takes nothing returns nothing
call AddHeroXPSwapped( 150, GetEnumUnit(), true )
endfunction
function Trig_Giving_Head_Func015001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Giving_Head_Func015002 takes nothing returns nothing
call AddHeroXPSwapped( 150, GetEnumUnit(), true )
endfunction
function Trig_Giving_Head_Func016001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Giving_Head_Func016002 takes nothing returns nothing
call AddHeroXPSwapped( 150, GetEnumUnit(), true )
endfunction
function Trig_Giving_Head_Func017002 takes nothing returns nothing
call AdjustPlayerStateBJ( 1, GetEnumPlayer(), PLAYER_STATE_RESOURCE_LUMBER )
endfunction
function Trig_Giving_Head_Func018A takes nothing returns nothing
set udg_ArcherExperience = GetHeroXP(GetEnumUnit())
set udg_PromoItem1 = UnitItemInSlotBJ(GetEnumUnit(), 1)
set udg_PromoItem2 = UnitItemInSlotBJ(GetEnumUnit(), 2)
set udg_PromoItem3 = UnitItemInSlotBJ(GetEnumUnit(), 3)
set udg_PromoItem4 = UnitItemInSlotBJ(GetEnumUnit(), 4)
set udg_PromoItem5 = UnitItemInSlotBJ(GetEnumUnit(), 5)
set udg_PromoItem6 = UnitItemInSlotBJ(GetEnumUnit(), 6)
call ReplaceUnitBJ( GetEnumUnit(), 'E012', bj_UNIT_STATE_METHOD_RELATIVE )
endfunction
function Trig_Giving_Head_Func019A takes nothing returns nothing
call SetHeroXP( GetEnumUnit(), udg_ArcherExperience, false )
call UnitAddItemSwapped( udg_PromoItem1, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem2, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem3, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem4, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem5, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem6, GetEnumUnit() )
call AddSpecialEffectLocBJ( GetUnitLoc(GetEnumUnit()), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
endfunction
function Trig_Giving_Head_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call UnitRemoveAbilityBJ( 'A093', gg_unit_h019_0224 )
call RemoveItem( udg_PrawnHead )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_4738" )
call QuestSetDescriptionBJ( udg_ProQuestArcher, "TRIGSTR_4739" )
call QuestSetCompletedBJ( udg_ProQuestArcher, true )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_4740" )
call PlaySoundBJ( gg_snd_QuestCompleted )
call ForGroupBJ( GetUnitsOfPlayerMatching(Player(0), Condition(function Trig_Giving_Head_Func010001002)), function Trig_Giving_Head_Func010002 )
call ForGroupBJ( GetUnitsOfPlayerMatching(Player(1), Condition(function Trig_Giving_Head_Func011001002)), function Trig_Giving_Head_Func011002 )
call ForGroupBJ( GetUnitsOfPlayerMatching(Player(3), Condition(function Trig_Giving_Head_Func012001002)), function Trig_Giving_Head_Func012002 )
call ForGroupBJ( GetUnitsOfPlayerMatching(Player(4), Condition(function Trig_Giving_Head_Func013001002)), function Trig_Giving_Head_Func013002 )
call ForGroupBJ( GetUnitsOfPlayerMatching(Player(5), Condition(function Trig_Giving_Head_Func014001002)), function Trig_Giving_Head_Func014002 )
call ForGroupBJ( GetUnitsOfPlayerMatching(Player(6), Condition(function Trig_Giving_Head_Func015001002)), function Trig_Giving_Head_Func015002 )
call ForGroupBJ( GetUnitsOfPlayerMatching(Player(8), Condition(function Trig_Giving_Head_Func016001002)), function Trig_Giving_Head_Func016002 )
call ForForce( udg_PlayerGroup, function Trig_Giving_Head_Func017002 )
call ForGroupBJ( GetUnitsOfTypeIdAll('E009'), function Trig_Giving_Head_Func018A )
call ForGroupBJ( GetUnitsOfTypeIdAll('E012'), function Trig_Giving_Head_Func019A )
call PolledWait( 2.00 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_4741" )
endfunction
//===========================================================================
function InitTrig_Giving_Head takes nothing returns nothing
set gg_trg_Giving_Head = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Giving_Head, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Giving_Head, Condition( function Trig_Giving_Head_Conditions ) )
call TriggerAddAction( gg_trg_Giving_Head, function Trig_Giving_Head_Actions )
endfunction
function Trig_Another_Barrel_of_Explosives_Actions takes nothing returns nothing
call KillDestructable( gg_dest_FTtw_3128 )
call KillDestructable( gg_dest_FTtw_3124 )
call KillDestructable( gg_dest_FTtw_0901 )
call KillDestructable( gg_dest_FTtw_3127 )
call KillDestructable( gg_dest_FTtw_0890 )
call KillDestructable( gg_dest_FTtw_0900 )
call KillDestructable( gg_dest_FTtw_0899 )
call KillDestructable( gg_dest_FTtw_0885 )
call KillDestructable( gg_dest_FTtw_0898 )
call KillDestructable( gg_dest_FTtw_0882 )
endfunction
//===========================================================================
function InitTrig_Another_Barrel_of_Explosives takes nothing returns nothing
set gg_trg_Another_Barrel_of_Explosives = CreateTrigger( )
call TriggerRegisterDeathEvent( gg_trg_Another_Barrel_of_Explosives, gg_dest_LTex_4363 )
call TriggerAddAction( gg_trg_Another_Barrel_of_Explosives, function Trig_Another_Barrel_of_Explosives_Actions )
endfunction
function Trig_Meeting_Drake_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A09G' ) ) then
return false
endif
return true
endfunction
function Trig_Meeting_Drake_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_4885" )
call UnitRemoveAbilityBJ( 'A09G', gg_unit_U00Q_0424 )
call UnitAddAbilityBJ( 'A09O', gg_unit_U00Q_0424 )
endfunction
//===========================================================================
function InitTrig_Meeting_Drake takes nothing returns nothing
set gg_trg_Meeting_Drake = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Meeting_Drake, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Meeting_Drake, Condition( function Trig_Meeting_Drake_Conditions ) )
call TriggerAddAction( gg_trg_Meeting_Drake, function Trig_Meeting_Drake_Actions )
endfunction
function Trig_Asking_What_He_Needs_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A09O' ) ) then
return false
endif
return true
endfunction
function Trig_Asking_What_He_Needs_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_4886" )
call UnitRemoveAbilityBJ( 'A09O', gg_unit_U00Q_0424 )
call UnitAddAbilityBJ( 'A09I', gg_unit_U00Q_0424 )
call PolledWait( 0.20 )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_4887" )
call QuestSetDescriptionBJ( udg_ProQuestCleric, "TRIGSTR_4888" )
call PlaySoundBJ( gg_snd_QuestLog )
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_ITg1_5314 )
endfunction
//===========================================================================
function InitTrig_Asking_What_He_Needs takes nothing returns nothing
set gg_trg_Asking_What_He_Needs = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Asking_What_He_Needs, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Asking_What_He_Needs, Condition( function Trig_Asking_What_He_Needs_Conditions ) )
call TriggerAddAction( gg_trg_Asking_What_He_Needs, function Trig_Asking_What_He_Needs_Actions )
endfunction
function Trig_The_Ritual_of_Lichdom_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetEnteringUnit()) == 'U000' ) ) then
return false
endif
return true
endfunction
function Trig_The_Ritual_of_Lichdom_Func002001001 takes nothing returns boolean
return ( IsUnitInGroup(GetEnteringUnit(), GetUnitsOfPlayerAll(GetFilterPlayer())) == true )
endfunction
function Trig_The_Ritual_of_Lichdom_Func003A takes nothing returns nothing
set udg_WarlockExperience = GetHeroXP(GetEnumUnit())
set udg_PromoItem1 = UnitItemInSlotBJ(GetEnumUnit(), 1)
set udg_PromoItem2 = UnitItemInSlotBJ(GetEnumUnit(), 2)
set udg_PromoItem3 = UnitItemInSlotBJ(GetEnumUnit(), 3)
set udg_PromoItem4 = UnitItemInSlotBJ(GetEnumUnit(), 4)
set udg_PromoItem5 = UnitItemInSlotBJ(GetEnumUnit(), 5)
set udg_PromoItem6 = UnitItemInSlotBJ(GetEnumUnit(), 6)
call ReplaceUnitBJ( GetEnumUnit(), 'U00O', bj_UNIT_STATE_METHOD_RELATIVE )
endfunction
function Trig_The_Ritual_of_Lichdom_Func004A takes nothing returns nothing
call SetHeroXP( GetEnumUnit(), udg_WarlockExperience, false )
call UnitAddItemSwapped( udg_PromoItem1, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem2, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem3, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem4, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem5, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem6, GetEnumUnit() )
call AddSpecialEffectLocBJ( GetUnitLoc(GetEnumUnit()), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
endfunction
function Trig_The_Ritual_of_Lichdom_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_The_Ritual_of_Lichdom_Func002001001)), "TRIGSTR_4950" )
call ForGroupBJ( GetUnitsOfTypeIdAll('U000'), function Trig_The_Ritual_of_Lichdom_Func003A )
call ForGroupBJ( GetUnitsOfTypeIdAll('U00O'), function Trig_The_Ritual_of_Lichdom_Func004A )
call KillDestructable( gg_dest_OTsp_5580 )
call PolledWait( 2 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endfunction
//===========================================================================
function InitTrig_The_Ritual_of_Lichdom takes nothing returns nothing
set gg_trg_The_Ritual_of_Lichdom = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_The_Ritual_of_Lichdom, gg_rct_Lich_Chamber )
call TriggerAddCondition( gg_trg_The_Ritual_of_Lichdom, Condition( function Trig_The_Ritual_of_Lichdom_Conditions ) )
call TriggerAddAction( gg_trg_The_Ritual_of_Lichdom, function Trig_The_Ritual_of_Lichdom_Actions )
endfunction
function Trig_Entering_Temple_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_4951" )
call IssueTargetOrderBJ( gg_unit_n037_0448, "attack", GetEnteringUnit() )
endfunction
//===========================================================================
function InitTrig_Entering_Temple takes nothing returns nothing
set gg_trg_Entering_Temple = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Entering_Temple, gg_rct_Enter_Temple )
call TriggerAddAction( gg_trg_Entering_Temple, function Trig_Entering_Temple_Actions )
endfunction
function Trig_Entering_Temple_Throne_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_4952" )
call IssueTargetOrderBJ( gg_unit_U00S_0462, "forkedlightning", GetEnteringUnit() )
call PolledWait( 2.00 )
call DisableTrigger( gg_trg_Throne_with_Drake )
endfunction
//===========================================================================
function InitTrig_Entering_Temple_Throne takes nothing returns nothing
set gg_trg_Entering_Temple_Throne = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Entering_Temple_Throne, gg_rct_Enter_Temple_Throne )
call TriggerAddAction( gg_trg_Entering_Temple_Throne, function Trig_Entering_Temple_Throne_Actions )
endfunction
function Trig_Throne_with_Drake_Conditions takes nothing returns boolean
if ( not ( udg_DrakeJoined == true ) ) then
return false
endif
return true
endfunction
function Trig_Throne_with_Drake_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call PolledWait( 6.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_4963" )
endfunction
//===========================================================================
function InitTrig_Throne_with_Drake takes nothing returns nothing
set gg_trg_Throne_with_Drake = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Throne_with_Drake, gg_rct_Enter_Temple_Throne )
call TriggerAddCondition( gg_trg_Throne_with_Drake, Condition( function Trig_Throne_with_Drake_Conditions ) )
call TriggerAddAction( gg_trg_Throne_with_Drake, function Trig_Throne_with_Drake_Actions )
endfunction
function Trig_Necromancer_Death_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_4964" )
call QuestSetDescriptionBJ( udg_ProQuestCleric, "TRIGSTR_4965" )
call PlaySoundBJ( gg_snd_QuestLog )
call PolledWait( 2.00 )
call DisableTrigger( gg_trg_Drake_Watches )
call UnitAddAbilityBJ( 'A09N', gg_unit_n036_0437 )
endfunction
//===========================================================================
function InitTrig_Necromancer_Death takes nothing returns nothing
set gg_trg_Necromancer_Death = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Necromancer_Death, gg_unit_U00S_0462, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Necromancer_Death, function Trig_Necromancer_Death_Actions )
endfunction
function Trig_Drake_Watches_Conditions takes nothing returns boolean
if ( not ( udg_DrakeJoined == true ) ) then
return false
endif
return true
endfunction
function Trig_Drake_Watches_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call PolledWait( 2.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_4968" )
endfunction
//===========================================================================
function InitTrig_Drake_Watches takes nothing returns nothing
set gg_trg_Drake_Watches = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Drake_Watches, gg_unit_U00S_0462, EVENT_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Drake_Watches, Condition( function Trig_Drake_Watches_Conditions ) )
call TriggerAddAction( gg_trg_Drake_Watches, function Trig_Drake_Watches_Actions )
endfunction
function Trig_Reporting_the_Demise_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A09N' ) ) then
return false
endif
return true
endfunction
function Trig_Reporting_the_Demise_Func009002 takes nothing returns nothing
call AdjustPlayerStateBJ( 300, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Reporting_the_Demise_Func010002 takes nothing returns nothing
call AdjustPlayerStateBJ( 1, GetEnumPlayer(), PLAYER_STATE_RESOURCE_LUMBER )
endfunction
function Trig_Reporting_the_Demise_Func015A takes nothing returns nothing
set udg_ClericExperience = GetHeroXP(GetEnumUnit())
set udg_PromoItem1 = UnitItemInSlotBJ(GetEnumUnit(), 1)
set udg_PromoItem2 = UnitItemInSlotBJ(GetEnumUnit(), 2)
set udg_PromoItem3 = UnitItemInSlotBJ(GetEnumUnit(), 3)
set udg_PromoItem4 = UnitItemInSlotBJ(GetEnumUnit(), 4)
set udg_PromoItem5 = UnitItemInSlotBJ(GetEnumUnit(), 5)
set udg_PromoItem6 = UnitItemInSlotBJ(GetEnumUnit(), 6)
call ReplaceUnitBJ( GetEnumUnit(), 'H01M', bj_UNIT_STATE_METHOD_RELATIVE )
endfunction
function Trig_Reporting_the_Demise_Func016A takes nothing returns nothing
call SetHeroXP( GetEnumUnit(), udg_ClericExperience, false )
call UnitAddItemSwapped( udg_PromoItem1, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem2, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem3, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem4, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem5, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem6, GetEnumUnit() )
call AddSpecialEffectLocBJ( GetUnitLoc(GetEnumUnit()), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
endfunction
function Trig_Reporting_the_Demise_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call UnitRemoveAbilityBJ( 'A09N', gg_unit_n036_0437 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_4969" )
call QuestSetDescriptionBJ( udg_ProQuestCleric, "TRIGSTR_4970" )
call QuestSetCompletedBJ( udg_ProQuestCleric, true )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_4971" )
call PlaySoundBJ( gg_snd_QuestCompleted )
call ForForce( udg_PlayerGroup, function Trig_Reporting_the_Demise_Func009002 )
call ForForce( udg_PlayerGroup, function Trig_Reporting_the_Demise_Func010002 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_4972" )
call AdjustPlayerStateBJ( 30, udg_KindredSpirit1, PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 30, udg_KindredSpirit2, PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 30, udg_KindredSpirit3, PLAYER_STATE_RESOURCE_GOLD )
call ForGroupBJ( GetUnitsOfTypeIdAll('E007'), function Trig_Reporting_the_Demise_Func015A )
call ForGroupBJ( GetUnitsOfTypeIdAll('H01M'), function Trig_Reporting_the_Demise_Func016A )
call PolledWait( 2 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endfunction
//===========================================================================
function InitTrig_Reporting_the_Demise takes nothing returns nothing
set gg_trg_Reporting_the_Demise = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Reporting_the_Demise, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Reporting_the_Demise, Condition( function Trig_Reporting_the_Demise_Conditions ) )
call TriggerAddAction( gg_trg_Reporting_the_Demise, function Trig_Reporting_the_Demise_Actions )
endfunction
function Trig_Teachings_of_the_Goddess_Actions takes nothing returns nothing
set udg_KillCounter = ( udg_KillCounter + 1 )
endfunction
//===========================================================================
function InitTrig_Teachings_of_the_Goddess takes nothing returns nothing
set gg_trg_Teachings_of_the_Goddess = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Teachings_of_the_Goddess, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddAction( gg_trg_Teachings_of_the_Goddess, function Trig_Teachings_of_the_Goddess_Actions )
endfunction
function Trig_Enlightenment_Func003A takes nothing returns nothing
set udg_RogueExperience = GetHeroXP(GetEnumUnit())
set udg_LevelXDeath = GetUnitAbilityLevelSwapped('A023', GetEnumUnit())
set udg_PromoItem1 = UnitItemInSlotBJ(GetEnumUnit(), 1)
set udg_PromoItem2 = UnitItemInSlotBJ(GetEnumUnit(), 2)
set udg_PromoItem3 = UnitItemInSlotBJ(GetEnumUnit(), 3)
set udg_PromoItem4 = UnitItemInSlotBJ(GetEnumUnit(), 4)
set udg_PromoItem5 = UnitItemInSlotBJ(GetEnumUnit(), 5)
set udg_PromoItem6 = UnitItemInSlotBJ(GetEnumUnit(), 6)
call ReplaceUnitBJ( GetEnumUnit(), 'E014', bj_UNIT_STATE_METHOD_RELATIVE )
endfunction
function Trig_Enlightenment_Func004A takes nothing returns nothing
call SetHeroXP( GetEnumUnit(), udg_RogueExperience, false )
call UnitAddItemSwapped( udg_PromoItem1, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem2, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem3, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem4, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem5, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem6, GetEnumUnit() )
call AddSpecialEffectLocBJ( GetUnitLoc(GetEnumUnit()), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
endfunction
function Trig_Enlightenment_Func010C takes nothing returns boolean
if ( not ( udg_LevelXDeath == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Enlightenment_Func011C takes nothing returns boolean
if ( not ( udg_LevelXDeath == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Enlightenment_Func012C takes nothing returns boolean
if ( not ( udg_LevelXDeath == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Enlightenment_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call PolledWait( 2.00 )
call ForGroupBJ( GetUnitsOfTypeIdAll('E013'), function Trig_Enlightenment_Func003A )
call ForGroupBJ( GetUnitsOfTypeIdAll('E014'), function Trig_Enlightenment_Func004A )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_5191", "TRIGSTR_5192", "ReplaceableTextures\\CommandButtons\\BTNResurrection.blp" )
call QuestSetCompletedBJ( GetLastCreatedQuestBJ(), true )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_5193" )
call PlaySoundBJ( gg_snd_QuestCompleted )
if ( Trig_Enlightenment_Func010C() ) then
set udg_Death1 = GetLastReplacedUnitBJ()
call SelectHeroSkill( udg_Death1, 'A023' )
else
call DoNothing( )
endif
if ( Trig_Enlightenment_Func011C() ) then
set udg_Death2 = GetLastReplacedUnitBJ()
call SelectHeroSkill( udg_Death2, 'A023' )
call SelectHeroSkill( udg_Death2, 'A023' )
else
call DoNothing( )
endif
if ( Trig_Enlightenment_Func012C() ) then
set udg_Death3 = GetLastReplacedUnitBJ()
call SelectHeroSkill( udg_Death3, 'A023' )
call SelectHeroSkill( udg_Death3, 'A023' )
call SelectHeroSkill( udg_Death3, 'A023' )
else
call DoNothing( )
endif
call PolledWait( 2.00 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
set udg_TheftLevel = 0
endfunction
//===========================================================================
function InitTrig_Enlightenment takes nothing returns nothing
set gg_trg_Enlightenment = CreateTrigger( )
call DisableTrigger( gg_trg_Enlightenment )
call TriggerRegisterVariableEvent( gg_trg_Enlightenment, "udg_KillCounter", GREATER_THAN_OR_EQUAL, 175.00 )
call TriggerAddAction( gg_trg_Enlightenment, function Trig_Enlightenment_Actions )
endfunction
function Trig_Lava_Rock_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I036' ) ) then
return false
endif
return true
endfunction
function Trig_Lava_Rock_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call RemoveItem( GetManipulatedItem() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_5622" )
set udg_IngredientCount = ( udg_IngredientCount + 1 )
call PlaySoundBJ( gg_snd_QuestLog )
endfunction
//===========================================================================
function InitTrig_Lava_Rock takes nothing returns nothing
set gg_trg_Lava_Rock = CreateTrigger( )
call DisableTrigger( gg_trg_Lava_Rock )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Lava_Rock, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Lava_Rock, Condition( function Trig_Lava_Rock_Conditions ) )
call TriggerAddAction( gg_trg_Lava_Rock, function Trig_Lava_Rock_Actions )
endfunction
function Trig_Diamond_Dust_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I037' ) ) then
return false
endif
return true
endfunction
function Trig_Diamond_Dust_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call RemoveItem( GetManipulatedItem() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_5623" )
set udg_IngredientCount = ( udg_IngredientCount + 1 )
call PlaySoundBJ( gg_snd_QuestLog )
endfunction
//===========================================================================
function InitTrig_Diamond_Dust takes nothing returns nothing
set gg_trg_Diamond_Dust = CreateTrigger( )
call DisableTrigger( gg_trg_Diamond_Dust )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Diamond_Dust, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Diamond_Dust, Condition( function Trig_Diamond_Dust_Conditions ) )
call TriggerAddAction( gg_trg_Diamond_Dust, function Trig_Diamond_Dust_Actions )
endfunction
function Trig_Gold_Medallion_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I039' ) ) then
return false
endif
return true
endfunction
function Trig_Gold_Medallion_Func006Func009001001 takes nothing returns boolean
return ( GetOwningPlayer(GetEnumUnit()) == GetFilterPlayer() )
endfunction
function Trig_Gold_Medallion_Func006A takes nothing returns nothing
set udg_BonusExperience = GetHeroXP(GetEnumUnit())
set udg_PromoItem1 = UnitItemInSlotBJ(GetEnumUnit(), 1)
set udg_PromoItem2 = UnitItemInSlotBJ(GetEnumUnit(), 2)
set udg_PromoItem3 = UnitItemInSlotBJ(GetEnumUnit(), 3)
set udg_PromoItem4 = UnitItemInSlotBJ(GetEnumUnit(), 4)
set udg_PromoItem5 = UnitItemInSlotBJ(GetEnumUnit(), 5)
set udg_PromoItem6 = UnitItemInSlotBJ(GetEnumUnit(), 6)
call ReplaceUnitBJ( GetEnumUnit(), 'U011', bj_UNIT_STATE_METHOD_RELATIVE )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Gold_Medallion_Func006Func009001001)), "TRIGSTR_6700" )
endfunction
function Trig_Gold_Medallion_Func007A takes nothing returns nothing
call SetHeroXP( GetEnumUnit(), udg_BonusExperience, false )
call UnitAddItemSwapped( udg_PromoItem1, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem2, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem3, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem4, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem5, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem6, GetEnumUnit() )
call AddSpecialEffectLocBJ( GetUnitLoc(GetEnumUnit()), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
endfunction
function Trig_Gold_Medallion_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call RemoveItem( GetManipulatedItem() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_5624" )
set udg_IngredientCount = ( udg_IngredientCount + 1 )
call PlaySoundBJ( gg_snd_QuestLog )
call ForGroupBJ( GetUnitsOfTypeIdAll('E00F'), function Trig_Gold_Medallion_Func006A )
call ForGroupBJ( GetUnitsOfTypeIdAll('U011'), function Trig_Gold_Medallion_Func007A )
call PolledWait( 2 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endfunction
//===========================================================================
function InitTrig_Gold_Medallion takes nothing returns nothing
set gg_trg_Gold_Medallion = CreateTrigger( )
call DisableTrigger( gg_trg_Gold_Medallion )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Gold_Medallion, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Gold_Medallion, Condition( function Trig_Gold_Medallion_Conditions ) )
call TriggerAddAction( gg_trg_Gold_Medallion, function Trig_Gold_Medallion_Actions )
endfunction
function Trig_Rouge_Water_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I038' ) ) then
return false
endif
return true
endfunction
function Trig_Rouge_Water_Func006Func009001001 takes nothing returns boolean
return ( GetOwningPlayer(GetEnumUnit()) == GetFilterPlayer() )
endfunction
function Trig_Rouge_Water_Func006A takes nothing returns nothing
set udg_BonusExperience = GetHeroXP(GetEnumUnit())
set udg_PromoItem1 = UnitItemInSlotBJ(GetEnumUnit(), 1)
set udg_PromoItem2 = UnitItemInSlotBJ(GetEnumUnit(), 2)
set udg_PromoItem3 = UnitItemInSlotBJ(GetEnumUnit(), 3)
set udg_PromoItem4 = UnitItemInSlotBJ(GetEnumUnit(), 4)
set udg_PromoItem5 = UnitItemInSlotBJ(GetEnumUnit(), 5)
set udg_PromoItem6 = UnitItemInSlotBJ(GetEnumUnit(), 6)
call ReplaceUnitBJ( GetEnumUnit(), 'N03T', bj_UNIT_STATE_METHOD_RELATIVE )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Rouge_Water_Func006Func009001001)), "TRIGSTR_6699" )
endfunction
function Trig_Rouge_Water_Func007A takes nothing returns nothing
call SetHeroXP( GetEnumUnit(), udg_BonusExperience, false )
call UnitAddItemSwapped( udg_PromoItem1, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem2, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem3, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem4, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem5, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem6, GetEnumUnit() )
call AddSpecialEffectLocBJ( GetUnitLoc(GetEnumUnit()), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
endfunction
function Trig_Rouge_Water_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call RemoveItem( GetManipulatedItem() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_5625" )
set udg_IngredientCount = ( udg_IngredientCount + 1 )
call PlaySoundBJ( gg_snd_QuestLog )
call ForGroupBJ( GetUnitsOfTypeIdAll('E00E'), function Trig_Rouge_Water_Func006A )
call ForGroupBJ( GetUnitsOfTypeIdAll('N03T'), function Trig_Rouge_Water_Func007A )
call PolledWait( 2 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endfunction
//===========================================================================
function InitTrig_Rouge_Water takes nothing returns nothing
set gg_trg_Rouge_Water = CreateTrigger( )
call DisableTrigger( gg_trg_Rouge_Water )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Rouge_Water, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Rouge_Water, Condition( function Trig_Rouge_Water_Conditions ) )
call TriggerAddAction( gg_trg_Rouge_Water, function Trig_Rouge_Water_Actions )
endfunction
function Trig_The_Components_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call PolledWait( 1.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_5626" )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_5627" )
call QuestSetDescriptionBJ( udg_ProQuestChemist, "TRIGSTR_5628" )
call PlaySoundBJ( gg_snd_QuestLog )
call UnitAddAbilityBJ( 'A0AU', gg_unit_h018_0220 )
endfunction
//===========================================================================
function InitTrig_The_Components takes nothing returns nothing
set gg_trg_The_Components = CreateTrigger( )
call TriggerRegisterVariableEvent( gg_trg_The_Components, "udg_IngredientCount", GREATER_THAN_OR_EQUAL, 4.00 )
call TriggerAddAction( gg_trg_The_Components, function Trig_The_Components_Actions )
endfunction
function Trig_Returning_the_Goods_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AU' ) ) then
return false
endif
return true
endfunction
function Trig_Returning_the_Goods_Func008002 takes nothing returns nothing
call AdjustPlayerStateBJ( 100, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Returning_the_Goods_Func009002 takes nothing returns nothing
call AdjustPlayerStateBJ( 1, GetEnumPlayer(), PLAYER_STATE_RESOURCE_LUMBER )
endfunction
function Trig_Returning_the_Goods_Func014A takes nothing returns nothing
set udg_ClericExperience = GetHeroXP(GetEnumUnit())
set udg_PromoItem1 = UnitItemInSlotBJ(GetEnumUnit(), 1)
set udg_PromoItem2 = UnitItemInSlotBJ(GetEnumUnit(), 2)
set udg_PromoItem3 = UnitItemInSlotBJ(GetEnumUnit(), 3)
set udg_PromoItem4 = UnitItemInSlotBJ(GetEnumUnit(), 4)
set udg_PromoItem5 = UnitItemInSlotBJ(GetEnumUnit(), 5)
set udg_PromoItem6 = UnitItemInSlotBJ(GetEnumUnit(), 6)
call ReplaceUnitBJ( GetEnumUnit(), 'N03E', bj_UNIT_STATE_METHOD_RELATIVE )
endfunction
function Trig_Returning_the_Goods_Func015A takes nothing returns nothing
call SetHeroXP( GetEnumUnit(), udg_ChemistExperience, false )
call UnitAddItemSwapped( udg_PromoItem1, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem2, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem3, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem4, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem5, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem6, GetEnumUnit() )
call AddSpecialEffectLocBJ( GetUnitLoc(GetEnumUnit()), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
endfunction
function Trig_Returning_the_Goods_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call UnitRemoveAbilityBJ( 'A0AU', gg_unit_h018_0220 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_5629" )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_5630" )
call QuestSetDescriptionBJ( udg_ProQuestChemist, "TRIGSTR_5631" )
call QuestSetCompletedBJ( udg_ProQuestChemist, true )
call ForForce( udg_PlayerGroup, function Trig_Returning_the_Goods_Func008002 )
call ForForce( udg_PlayerGroup, function Trig_Returning_the_Goods_Func009002 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_5632" )
call AdjustPlayerStateBJ( 10, udg_KindredSpirit1, PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 10, udg_KindredSpirit2, PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 10, udg_KindredSpirit3, PLAYER_STATE_RESOURCE_GOLD )
call ForGroupBJ( GetUnitsOfTypeIdAll('O00M'), function Trig_Returning_the_Goods_Func014A )
call ForGroupBJ( GetUnitsOfTypeIdAll('N03E'), function Trig_Returning_the_Goods_Func015A )
call PolledWait( 2 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
set udg_Offspring = null
endfunction
//===========================================================================
function InitTrig_Returning_the_Goods takes nothing returns nothing
set gg_trg_Returning_the_Goods = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Returning_the_Goods, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Returning_the_Goods, Condition( function Trig_Returning_the_Goods_Conditions ) )
call TriggerAddAction( gg_trg_Returning_the_Goods, function Trig_Returning_the_Goods_Actions )
endfunction
function Trig_Virginia_Gossip_X_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00J' ) ) then
return false
endif
return true
endfunction
function Trig_Virginia_Gossip_X_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
set udg_SpokeToVirginia = true
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_5639" )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_5640", "TRIGSTR_5641", "ReplaceableTextures\\CommandButtons\\BTNNecklace.blp" )
set udg_ProQuestGambler = GetLastCreatedQuestBJ()
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_5642" )
call PlaySoundBJ( gg_snd_QuestNew )
call PolledWait( 0.20 )
call EnableTrigger( gg_trg_Barmaid_Gossip )
call PolledWait( 5.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_5643" )
endfunction
//===========================================================================
function InitTrig_Virginia_Gossip_X takes nothing returns nothing
set gg_trg_Virginia_Gossip_X = CreateTrigger( )
call DisableTrigger( gg_trg_Virginia_Gossip_X )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Virginia_Gossip_X, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Virginia_Gossip_X, Condition( function Trig_Virginia_Gossip_X_Conditions ) )
call TriggerAddAction( gg_trg_Virginia_Gossip_X, function Trig_Virginia_Gossip_X_Actions )
endfunction
function Trig_Thievery_Sarah_Spoken_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AD' ) ) then
return false
endif
if ( not ( GetSpellTargetUnit() == gg_unit_n01J_0215 ) ) then
return false
endif
if ( not ( udg_SpokeToVirginia == true ) ) then
return false
endif
return true
endfunction
function Trig_Thievery_Sarah_Spoken_Func004001001 takes nothing returns boolean
return ( IsUnitInGroup(GetSpellAbilityUnit(), GetUnitsOfPlayerAll(GetFilterPlayer())) == true )
endfunction
function Trig_Thievery_Sarah_Spoken_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call UnitAddItemByIdSwapped( 'I03A', GetSpellAbilityUnit() )
set udg_PearlNecklace = GetLastCreatedItem()
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Thievery_Sarah_Spoken_Func004001001)), "TRIGSTR_5638" )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_5644" )
call QuestSetDescriptionBJ( udg_ProQuestGambler, "TRIGSTR_5645" )
call PlaySoundBJ( gg_snd_QuestLog )
call UnitAddAbilityBJ( 'A0AV', gg_unit_h01A_0225 )
call PolledWait( 2.00 )
call EnableTrigger( gg_trg_No_More_Stealing_Sarah )
endfunction
//===========================================================================
function InitTrig_Thievery_Sarah_Spoken takes nothing returns nothing
set gg_trg_Thievery_Sarah_Spoken = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Thievery_Sarah_Spoken, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Thievery_Sarah_Spoken, Condition( function Trig_Thievery_Sarah_Spoken_Conditions ) )
call TriggerAddAction( gg_trg_Thievery_Sarah_Spoken, function Trig_Thievery_Sarah_Spoken_Actions )
endfunction
function Trig_Thievery_Sarah_Unspoken_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AD' ) ) then
return false
endif
if ( not ( GetSpellTargetUnit() == gg_unit_n01J_0215 ) ) then
return false
endif
if ( not ( udg_SpokeToVirginia == false ) ) then
return false
endif
return true
endfunction
function Trig_Thievery_Sarah_Unspoken_Func004001001 takes nothing returns boolean
return ( IsUnitInGroup(GetSpellAbilityUnit(), GetUnitsOfPlayerAll(GetFilterPlayer())) == true )
endfunction
function Trig_Thievery_Sarah_Unspoken_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call UnitAddItemByIdSwapped( 'I03A', GetSpellAbilityUnit() )
set udg_PearlNecklace = GetLastCreatedItem()
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Thievery_Sarah_Unspoken_Func004001001)), "TRIGSTR_5646" )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_5647" )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_5649", "TRIGSTR_5650", "ReplaceableTextures\\CommandButtons\\BTNNecklace.blp" )
set udg_ProQuestGambler = GetLastCreatedQuestBJ()
call PlaySoundBJ( gg_snd_QuestLog )
call UnitAddAbilityBJ( 'A0AV', gg_unit_h01A_0225 )
call PolledWait( 2.00 )
call EnableTrigger( gg_trg_No_More_Stealing_Sarah )
endfunction
//===========================================================================
function InitTrig_Thievery_Sarah_Unspoken takes nothing returns nothing
set gg_trg_Thievery_Sarah_Unspoken = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Thievery_Sarah_Unspoken, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Thievery_Sarah_Unspoken, Condition( function Trig_Thievery_Sarah_Unspoken_Conditions ) )
call TriggerAddAction( gg_trg_Thievery_Sarah_Unspoken, function Trig_Thievery_Sarah_Unspoken_Actions )
endfunction
function Trig_Find_Necklace_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I03A' ) ) then
return false
endif
return true
endfunction
function Trig_Find_Necklace_Actions takes nothing returns nothing
call UnitAddAbilityBJ( 'A0AV', gg_unit_h01A_0225 )
endfunction
//===========================================================================
function InitTrig_Find_Necklace takes nothing returns nothing
set gg_trg_Find_Necklace = CreateTrigger( )
call DisableTrigger( gg_trg_Find_Necklace )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Find_Necklace, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Find_Necklace, Condition( function Trig_Find_Necklace_Conditions ) )
call TriggerAddAction( gg_trg_Find_Necklace, function Trig_Find_Necklace_Actions )
endfunction
function Trig_Lose_Necklace_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I03A' ) ) then
return false
endif
return true
endfunction
function Trig_Lose_Necklace_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( 'A0AV', gg_unit_h01A_0225 )
call EnableTrigger( gg_trg_Find_Necklace )
endfunction
//===========================================================================
function InitTrig_Lose_Necklace takes nothing returns nothing
set gg_trg_Lose_Necklace = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Lose_Necklace, EVENT_PLAYER_UNIT_DROP_ITEM )
call TriggerAddCondition( gg_trg_Lose_Necklace, Condition( function Trig_Lose_Necklace_Conditions ) )
call TriggerAddAction( gg_trg_Lose_Necklace, function Trig_Lose_Necklace_Actions )
endfunction
function Trig_No_More_Stealing_Sarah_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AD' ) ) then
return false
endif
if ( not ( GetSpellTargetUnit() == gg_unit_n01J_0215 ) ) then
return false
endif
return true
endfunction
function Trig_No_More_Stealing_Sarah_Func001001001 takes nothing returns boolean
return ( IsUnitInGroup(GetSpellAbilityUnit(), GetUnitsOfPlayerAll(GetFilterPlayer())) == true )
endfunction
function Trig_No_More_Stealing_Sarah_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_No_More_Stealing_Sarah_Func001001001)), "TRIGSTR_5651" )
endfunction
//===========================================================================
function InitTrig_No_More_Stealing_Sarah takes nothing returns nothing
set gg_trg_No_More_Stealing_Sarah = CreateTrigger( )
call DisableTrigger( gg_trg_No_More_Stealing_Sarah )
call TriggerRegisterAnyUnitEventBJ( gg_trg_No_More_Stealing_Sarah, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_No_More_Stealing_Sarah, Condition( function Trig_No_More_Stealing_Sarah_Conditions ) )
call TriggerAddAction( gg_trg_No_More_Stealing_Sarah, function Trig_No_More_Stealing_Sarah_Actions )
endfunction
function Trig_Returning_the_Necklace_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AV' ) ) then
return false
endif
return true
endfunction
function Trig_Returning_the_Necklace_Func009A takes nothing returns nothing
set udg_GamblerExperience = GetHeroXP(GetEnumUnit())
set udg_PromoItem1 = UnitItemInSlotBJ(GetEnumUnit(), 1)
set udg_PromoItem2 = UnitItemInSlotBJ(GetEnumUnit(), 2)
set udg_PromoItem3 = UnitItemInSlotBJ(GetEnumUnit(), 3)
set udg_PromoItem4 = UnitItemInSlotBJ(GetEnumUnit(), 4)
set udg_PromoItem5 = UnitItemInSlotBJ(GetEnumUnit(), 5)
set udg_PromoItem6 = UnitItemInSlotBJ(GetEnumUnit(), 6)
call ReplaceUnitBJ( GetEnumUnit(), 'E017', bj_UNIT_STATE_METHOD_RELATIVE )
endfunction
function Trig_Returning_the_Necklace_Func010A takes nothing returns nothing
call SetHeroXP( GetEnumUnit(), udg_GamblerExperience, false )
call UnitAddItemSwapped( udg_PromoItem1, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem2, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem3, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem4, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem5, GetEnumUnit() )
call UnitAddItemSwapped( udg_PromoItem6, GetEnumUnit() )
call AddSpecialEffectLocBJ( GetUnitLoc(GetEnumUnit()), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
endfunction
function Trig_Returning_the_Necklace_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call RemoveItem( udg_PearlNecklace )
call UnitRemoveAbilityBJ( 'A0AV', gg_unit_h01A_0225 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_5652" )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_5653" )
call QuestSetDescriptionBJ( udg_ProQuestGambler, "TRIGSTR_5654" )
call QuestSetCompletedBJ( udg_ProQuestGambler, true )
call ForGroupBJ( GetUnitsOfTypeIdAll('E016'), function Trig_Returning_the_Necklace_Func009A )
call ForGroupBJ( GetUnitsOfTypeIdAll('E017'), function Trig_Returning_the_Necklace_Func010A )
call PolledWait( 2 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endfunction
//===========================================================================
function InitTrig_Returning_the_Necklace takes nothing returns nothing
set gg_trg_Returning_the_Necklace = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Returning_the_Necklace, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Returning_the_Necklace, Condition( function Trig_Returning_the_Necklace_Conditions ) )
call TriggerAddAction( gg_trg_Returning_the_Necklace, function Trig_Returning_the_Necklace_Actions )
endfunction
function Trig_Pleading_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_4457" )
call UnitAddAbilityBJ( 'A08N', gg_unit_E00Y_0354 )
endfunction
//===========================================================================
function InitTrig_Pleading takes nothing returns nothing
set gg_trg_Pleading = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Pleading, gg_rct_Freya_Pleas )
call TriggerAddAction( gg_trg_Pleading, function Trig_Pleading_Actions )
endfunction
function Trig_Conversation_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A08N' ) ) then
return false
endif
return true
endfunction
function Trig_Conversation_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_4458" )
call UnitRemoveAbilityBJ( 'A08N', gg_unit_E00Y_0354 )
call UnitAddAbilityBJ( 'A08O', gg_unit_E00Y_0354 )
call UnitAddAbilityBJ( 'A08P', gg_unit_E00Y_0354 )
endfunction
//===========================================================================
function InitTrig_Conversation takes nothing returns nothing
set gg_trg_Conversation = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Conversation, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Conversation, Condition( function Trig_Conversation_Conditions ) )
call TriggerAddAction( gg_trg_Conversation, function Trig_Conversation_Actions )
endfunction
function Trig_Killing_Her_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A08O' ) ) then
return false
endif
return true
endfunction
function Trig_Killing_Her_Actions takes nothing returns nothing
call KillUnit( gg_unit_E00Y_0354 )
set udg_FreyaDead = true
call PlaySoundBJ( gg_snd_QuestLog )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_4461" )
call FlashQuestDialogButtonBJ( )
call QuestSetDescriptionBJ( udg_HireQuest3, "TRIGSTR_4463" )
call EnableTrigger( gg_trg_Reward )
call EnableTrigger( gg_trg_Witch_Dead )
endfunction
//===========================================================================
function InitTrig_Killing_Her takes nothing returns nothing
set gg_trg_Killing_Her = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Killing_Her, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Killing_Her, Condition( function Trig_Killing_Her_Conditions ) )
call TriggerAddAction( gg_trg_Killing_Her, function Trig_Killing_Her_Actions )
endfunction
function Trig_Joining_Her_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A08P' ) ) then
return false
endif
if ( not ( udg_HirelingCounter <= 1.00 ) ) then
return false
endif
return true
endfunction
function Trig_Joining_Her_Func009001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'E00J' )
endfunction
function Trig_Joining_Her_Func009Func003001001 takes nothing returns boolean
return ( IsUnitSelected(GetSpellAbilityUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Joining_Her_Func009Func003002 takes nothing returns nothing
call SelectUnitAdd( GetEnumUnit() )
endfunction
function Trig_Joining_Her_Func009A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Freya) )
call SetUnitOwner( GetEnumUnit(), Player(8), false )
call ForForce( GetPlayersMatching(Condition(function Trig_Joining_Her_Func009Func003001001)), function Trig_Joining_Her_Func009Func003002 )
endfunction
function Trig_Joining_Her_Func010001001 takes nothing returns boolean
return ( IsUnitSelected(GetSpellAbilityUnit(), GetFilterPlayer()) == true )
endfunction
function Trig_Joining_Her_Func010002 takes nothing returns nothing
call SelectUnitRemove( GetSpellAbilityUnit() )
endfunction
function Trig_Joining_Her_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call UnitRemoveAbilityBJ( 'A08O', gg_unit_E00Y_0354 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_4460" )
call PlaySoundBJ( gg_snd_QuestLog )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_4462" )
call FlashQuestDialogButtonBJ( )
call QuestSetDescriptionBJ( udg_HireQuest3, "TRIGSTR_4464" )
call SetUnitPositionLoc( GetSpellAbilityUnit(), GetRectCenter(gg_rct_Succubus_Storage) )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Joining_Her_Func009001002)), function Trig_Joining_Her_Func009A )
call ForForce( GetPlayersMatching(Condition(function Trig_Joining_Her_Func010001001)), function Trig_Joining_Her_Func010002 )
set udg_AutoDifficultyModifier = ( udg_AutoDifficultyModifier + 1 )
call EnableTrigger( gg_trg_Reward )
call EnableTrigger( gg_trg_Witch_Lives )
call PolledWait( 0.10 )
set udg_HirelingCounter = ( udg_HirelingCounter + 1 )
endfunction
//===========================================================================
function InitTrig_Joining_Her takes nothing returns nothing
set gg_trg_Joining_Her = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Joining_Her, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Joining_Her, Condition( function Trig_Joining_Her_Conditions ) )
call TriggerAddAction( gg_trg_Joining_Her, function Trig_Joining_Her_Actions )
endfunction
function Trig_Reward_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call RemoveUnit( gg_unit_n02Q_0348 )
call RemoveUnit( gg_unit_n02S_0350 )
call RemoveUnit( gg_unit_n02R_0349 )
call SetUnitPositionLoc( gg_unit_n02P_0351, GetRectCenter(gg_rct_Calis) )
call SetUnitPositionLoc( gg_unit_n02O_0352, GetRectCenter(gg_rct_Dirth) )
call SetUnitPositionLoc( gg_unit_n02N_0353, GetRectCenter(gg_rct_Garrick) )
call PolledWait( 1.00 )
call IssuePointOrderLocBJ( gg_unit_n02P_0351, "attack", GetRectCenter(gg_rct_Cave_Blockade) )
call IssuePointOrderLocBJ( gg_unit_n02O_0352, "attack", GetRectCenter(gg_rct_Cave_Blockade) )
call IssuePointOrderLocBJ( gg_unit_n02N_0353, "attack", GetRectCenter(gg_rct_Cave_Blockade) )
endfunction
//===========================================================================
function InitTrig_Reward takes nothing returns nothing
set gg_trg_Reward = CreateTrigger( )
call DisableTrigger( gg_trg_Reward )
call TriggerRegisterEnterRectSimple( gg_trg_Reward, gg_rct_Cave_Blockade )
call TriggerAddAction( gg_trg_Reward, function Trig_Reward_Actions )
endfunction
function Trig_Witch_Lives_Conditions takes nothing returns boolean
if ( not ( udg_FreyaDead == false ) ) then
return false
endif
return true
endfunction
function Trig_Witch_Lives_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_4475" )
call PolledWait( 5.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_4476" )
endfunction
//===========================================================================
function InitTrig_Witch_Lives takes nothing returns nothing
set gg_trg_Witch_Lives = CreateTrigger( )
call DisableTrigger( gg_trg_Witch_Lives )
call TriggerRegisterEnterRectSimple( gg_trg_Witch_Lives, gg_rct_Cave_Blockade )
call TriggerAddCondition( gg_trg_Witch_Lives, Condition( function Trig_Witch_Lives_Conditions ) )
call TriggerAddAction( gg_trg_Witch_Lives, function Trig_Witch_Lives_Actions )
endfunction
function Trig_Witch_Dead_Conditions takes nothing returns boolean
if ( not ( udg_FreyaDead == true ) ) then
return false
endif
return true
endfunction
function Trig_Witch_Dead_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_4474" )
endfunction
//===========================================================================
function InitTrig_Witch_Dead takes nothing returns nothing
set gg_trg_Witch_Dead = CreateTrigger( )
call DisableTrigger( gg_trg_Witch_Dead )
call TriggerRegisterEnterRectSimple( gg_trg_Witch_Dead, gg_rct_Cave_Blockade )
call TriggerAddCondition( gg_trg_Witch_Dead, Condition( function Trig_Witch_Dead_Conditions ) )
call TriggerAddAction( gg_trg_Witch_Dead, function Trig_Witch_Dead_Actions )
endfunction
function Trig_Calis_Dies_Actions takes nothing returns nothing
set udg_CalisBandCounter = ( udg_CalisBandCounter + 1 )
endfunction
//===========================================================================
function InitTrig_Calis_Dies takes nothing returns nothing
set gg_trg_Calis_Dies = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Calis_Dies, gg_unit_n02P_0351, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Calis_Dies, function Trig_Calis_Dies_Actions )
endfunction
function Trig_Garrick_Dies_Actions takes nothing returns nothing
set udg_CalisBandCounter = ( udg_CalisBandCounter + 1 )
endfunction
//===========================================================================
function InitTrig_Garrick_Dies takes nothing returns nothing
set gg_trg_Garrick_Dies = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Garrick_Dies, gg_unit_n02N_0353, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Garrick_Dies, function Trig_Garrick_Dies_Actions )
endfunction
function Trig_Dirth_Dies_Actions takes nothing returns nothing
set udg_CalisBandCounter = ( udg_CalisBandCounter + 1 )
endfunction
//===========================================================================
function InitTrig_Dirth_Dies takes nothing returns nothing
set gg_trg_Dirth_Dies = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Dirth_Dies, gg_unit_n02O_0352, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Dirth_Dies, function Trig_Dirth_Dies_Actions )
endfunction
function Trig_Helping_Freya_Along_Conditions takes nothing returns boolean
if ( not ( GetDyingUnit() == udg_Succubus ) ) then
return false
endif
return true
endfunction
function Trig_Helping_Freya_Along_Func006001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'E00Y' )
endfunction
function Trig_Helping_Freya_Along_Func006A takes nothing returns nothing
call SetHeroXP( GetEnumUnit(), udg_HirelingExpFreya, false )
call SetUnitLifePercentBJ( GetEnumUnit(), udg_HirelingHPFreya )
call SetUnitManaPercentBJ( GetEnumUnit(), udg_HirelingMPFreya )
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_Freya_Default) )
endfunction
function Trig_Helping_Freya_Along_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 1.00 )
call ReviveHeroLoc( udg_Succubus, GetRectCenter(gg_rct_Succubus_Hiding), true )
call SetUnitOwner( udg_Succubus, Player(7), false )
call SetUnitFacingTimed( udg_Succubus, 300.00, 0.05 )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Helping_Freya_Along_Func006001002)), function Trig_Helping_Freya_Along_Func006A )
set udg_AutoDifficultyModifier = ( udg_AutoDifficultyModifier - 1 )
endfunction
//===========================================================================
function InitTrig_Helping_Freya_Along takes nothing returns nothing
set gg_trg_Helping_Freya_Along = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Helping_Freya_Along, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Helping_Freya_Along, Condition( function Trig_Helping_Freya_Along_Conditions ) )
call TriggerAddAction( gg_trg_Helping_Freya_Along, function Trig_Helping_Freya_Along_Actions )
endfunction
function Trig_All_Dead_And_Buried_Conditions takes nothing returns boolean
if ( not ( udg_FreyaDead == true ) ) then
return false
endif
return true
endfunction
function Trig_All_Dead_And_Buried_Func008002 takes nothing returns nothing
call AdjustPlayerStateBJ( 1, GetEnumPlayer(), PLAYER_STATE_RESOURCE_LUMBER )
endfunction
function Trig_All_Dead_And_Buried_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call QuestSetDescriptionBJ( udg_HireQuest3, "TRIGSTR_4477" )
call QuestSetCompletedBJ( udg_HireQuest3, true )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_4478" )
call PlaySoundBJ( gg_snd_QuestCompleted )
call ForForce( udg_PlayerGroup, function Trig_All_Dead_And_Buried_Func008002 )
endfunction
//===========================================================================
function InitTrig_All_Dead_And_Buried takes nothing returns nothing
set gg_trg_All_Dead_And_Buried = CreateTrigger( )
call TriggerRegisterVariableEvent( gg_trg_All_Dead_And_Buried, "udg_CalisBandCounter", EQUAL, 3.00 )
call TriggerAddCondition( gg_trg_All_Dead_And_Buried, Condition( function Trig_All_Dead_And_Buried_Conditions ) )
call TriggerAddAction( gg_trg_All_Dead_And_Buried, function Trig_All_Dead_And_Buried_Actions )
endfunction
function Trig_Damsel_Saved_Conditions takes nothing returns boolean
if ( not ( udg_FreyaDead == false ) ) then
return false
endif
return true
endfunction
function Trig_Damsel_Saved_Func014002 takes nothing returns nothing
call AdjustPlayerStateBJ( 1, GetEnumPlayer(), PLAYER_STATE_RESOURCE_LUMBER )
endfunction
function Trig_Damsel_Saved_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisableTrigger( gg_trg_Helping_Freya_Along )
call EnableTrigger( gg_trg_Succubus_Dies )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_4485" )
call PolledWait( 2 )
call QuestSetDescriptionBJ( udg_HireQuest3, "TRIGSTR_4479" )
call QuestSetCompletedBJ( udg_HireQuest3, true )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_4480" )
call PlaySoundBJ( gg_snd_QuestCompleted )
call UnitAddAbilityBJ( 'A08Q', udg_Succubus )
call UnitAddAbilityBJ( 'A08R', gg_unit_E00Y_0354 )
call EnableTrigger( gg_trg_Succubus_Joins )
call ForForce( udg_PlayerGroup, function Trig_Damsel_Saved_Func014002 )
endfunction
//===========================================================================
function InitTrig_Damsel_Saved takes nothing returns nothing
set gg_trg_Damsel_Saved = CreateTrigger( )
call TriggerRegisterVariableEvent( gg_trg_Damsel_Saved, "udg_CalisBandCounter", EQUAL, 3.00 )
call TriggerAddCondition( gg_trg_Damsel_Saved, Condition( function Trig_Damsel_Saved_Conditions ) )
call TriggerAddAction( gg_trg_Damsel_Saved, function Trig_Damsel_Saved_Actions )
endfunction
function Trig_General_Belganon_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0BE' ) ) then
return false
endif
return true
endfunction
function Trig_General_Belganon_Func006002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camp_Camera, GetEnumPlayer(), 2.00 )
endfunction
function Trig_General_Belganon_Func007002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Talking_to_the_General), GetUnitLoc(gg_unit_H01J_0311) )
endfunction
function Trig_General_Belganon_Func008002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Talking_to_the_General), GetUnitLoc(gg_unit_H01J_0311) )
endfunction
function Trig_General_Belganon_Func009002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Talking_to_the_General), GetUnitLoc(gg_unit_H01J_0311) )
endfunction
function Trig_General_Belganon_Func010002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Talking_to_the_General), GetUnitLoc(gg_unit_H01J_0311) )
endfunction
function Trig_General_Belganon_Func011002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Talking_to_the_General), GetUnitLoc(gg_unit_H01J_0311) )
endfunction
function Trig_General_Belganon_Func012002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Talking_to_the_General), GetUnitLoc(gg_unit_H01J_0311) )
endfunction
function Trig_General_Belganon_Func013002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Talking_to_the_General), GetUnitLoc(gg_unit_H01J_0311) )
endfunction
function Trig_General_Belganon_Func017002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_General_Belganon_Func020002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_General_Belganon_Func026002 takes nothing returns nothing
call ResetToGameCameraForPlayer( GetEnumPlayer(), 2.00 )
endfunction
function Trig_General_Belganon_Func027002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetEnumPlayer(), GetRectCenter(gg_rct_General_Lives_Here), 2.00 )
endfunction
function Trig_General_Belganon_Func034002 takes nothing returns nothing
call AdjustPlayerStateBJ( 1, GetEnumPlayer(), PLAYER_STATE_RESOURCE_LUMBER )
endfunction
function Trig_General_Belganon_Func040C takes nothing returns boolean
if ( not ( udg_SeerActive == true ) ) then
return false
endif
return true
endfunction
function Trig_General_Belganon_Func043002 takes nothing returns nothing
call AdjustPlayerStateBJ( 150, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_General_Belganon_Actions takes nothing returns nothing
call SetUserControlForceOff( GetPlayersAll() )
call UnitRemoveAbilityBJ( 'A0BE', GetSpellAbilityUnit() )
call ClearTextMessagesBJ( GetPlayersAll() )
call ShowInterfaceForceOff( GetPlayersAll(), 2 )
call CinematicModeExBJ( true, GetPlayersAll(), 2.00 )
call ForForce( GetPlayersAll(), function Trig_General_Belganon_Func006002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(0)), function Trig_General_Belganon_Func007002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(1)), function Trig_General_Belganon_Func008002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(3)), function Trig_General_Belganon_Func009002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(4)), function Trig_General_Belganon_Func010002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(5)), function Trig_General_Belganon_Func011002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(6)), function Trig_General_Belganon_Func012002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(8)), function Trig_General_Belganon_Func013002 )
call PolledWait( 2 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), udg_Ferdinand, "TRIGSTR_5982", null, "TRIGSTR_5981", bj_TIMETYPE_ADD, 9.00, true )
call PolledWait( 9.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_LeaderInKilling, Condition(function Trig_General_Belganon_Func017002001002))), GetPlayerName(udg_LeaderInKilling), null, "TRIGSTR_5983", bj_TIMETYPE_ADD, 0.00, true )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), udg_Ferdinand, "TRIGSTR_5984", null, "TRIGSTR_5985", bj_TIMETYPE_ADD, 4.00, true )
call PolledWait( 4.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_LoserInKilling, Condition(function Trig_General_Belganon_Func020002001002))), GetPlayerName(udg_LoserInKilling), null, "TRIGSTR_5986", bj_TIMETYPE_ADD, 7.00, true )
call PolledWait( 7.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), udg_Ferdinand, "TRIGSTR_5987", null, "TRIGSTR_5988", bj_TIMETYPE_ADD, 5.00, true )
call PolledWait( 5.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), udg_Ferdinand, "TRIGSTR_5989", null, "TRIGSTR_5990", bj_TIMETYPE_ADD, 4.00, true )
call PolledWait( 4.00 )
call ForForce( GetPlayersAll(), function Trig_General_Belganon_Func026002 )
call ForForce( GetPlayersAll(), function Trig_General_Belganon_Func027002 )
call SetUserControlForceOn( GetPlayersAll() )
call CinematicModeExBJ( false, GetPlayersAll(), 2.00 )
call ShowInterfaceForceOn( GetPlayersAll(), 2 )
call QuestSetCompletedBJ( udg_Quest2, true )
call QuestSetDescriptionBJ( udg_Quest2, "TRIGSTR_5992" )
call QuestSetDescriptionBJ( udg_ChapterQuest, "TRIGSTR_5993" )
call ForForce( udg_PlayerGroup, function Trig_General_Belganon_Func034002 )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_5994", "TRIGSTR_5995", "ReplaceableTextures\\CommandButtons\\BTNArcaniteMelee.blp" )
set udg_Quest3 = GetLastCreatedQuestBJ()
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_5991" )
call FlashQuestDialogButtonBJ( )
call PlaySoundBJ( gg_snd_QuestNew )
if ( Trig_General_Belganon_Func040C() ) then
call UnitAddAbilityBJ( 'A0BF', udg_Cindescrae )
else
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_5996", "TRIGSTR_5997", "ReplaceableTextures\\CommandButtons\\BTNFarSight.blp" )
set udg_ProQuestAnimist = GetLastCreatedQuestBJ()
call ReplaceUnitBJ( gg_unit_n030_0178, 'n031', bj_UNIT_STATE_METHOD_RELATIVE )
set udg_Cindescrae = GetLastReplacedUnitBJ()
call DisableTrigger( gg_trg_Seer_Gossip_1 )
call EnableTrigger( gg_trg_Seer_Gossip_2 )
call UnitAddAbilityBJ( 'A0BF', udg_Cindescrae )
endif
call PolledWait( 1.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6302" )
call ForForce( udg_PlayerGroup, function Trig_General_Belganon_Func043002 )
call AdjustPlayerStateBJ( 15, udg_KindredSpirit1, PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 15, udg_KindredSpirit2, PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 15, udg_KindredSpirit3, PLAYER_STATE_RESOURCE_GOLD )
endfunction
//===========================================================================
function InitTrig_General_Belganon takes nothing returns nothing
set gg_trg_General_Belganon = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_General_Belganon, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_General_Belganon, Condition( function Trig_General_Belganon_Conditions ) )
call TriggerAddAction( gg_trg_General_Belganon, function Trig_General_Belganon_Actions )
endfunction
function Trig_General_Belganon_Short_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0BE' ) ) then
return false
endif
return true
endfunction
function Trig_General_Belganon_Short_Func005002 takes nothing returns nothing
call AdjustPlayerStateBJ( 1, GetEnumPlayer(), PLAYER_STATE_RESOURCE_LUMBER )
endfunction
function Trig_General_Belganon_Short_Func011C takes nothing returns boolean
if ( not ( udg_SeerActive == true ) ) then
return false
endif
return true
endfunction
function Trig_General_Belganon_Short_Func014002 takes nothing returns nothing
call AdjustPlayerStateBJ( 150, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_General_Belganon_Short_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( 'A0BE', GetSpellAbilityUnit() )
call QuestSetCompletedBJ( udg_Quest2, true )
call QuestSetDescriptionBJ( udg_Quest2, "TRIGSTR_7582" )
call QuestSetDescriptionBJ( udg_ChapterQuest, "TRIGSTR_7583" )
call ForForce( udg_PlayerGroup, function Trig_General_Belganon_Short_Func005002 )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_7584", "TRIGSTR_7585", "ReplaceableTextures\\CommandButtons\\BTNArcaniteMelee.blp" )
set udg_Quest3 = GetLastCreatedQuestBJ()
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_7586" )
call FlashQuestDialogButtonBJ( )
call PlaySoundBJ( gg_snd_QuestNew )
if ( Trig_General_Belganon_Short_Func011C() ) then
call UnitAddAbilityBJ( 'A0BF', udg_Cindescrae )
else
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_7587", "TRIGSTR_7588", "ReplaceableTextures\\CommandButtons\\BTNFarSight.blp" )
set udg_ProQuestAnimist = GetLastCreatedQuestBJ()
call ReplaceUnitBJ( gg_unit_n030_0178, 'n031', bj_UNIT_STATE_METHOD_RELATIVE )
set udg_Cindescrae = GetLastReplacedUnitBJ()
call DisableTrigger( gg_trg_Seer_Gossip_1 )
call EnableTrigger( gg_trg_Seer_Gossip_2 )
call UnitAddAbilityBJ( 'A0BF', udg_Cindescrae )
endif
call PolledWait( 1.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_7589" )
call ForForce( udg_PlayerGroup, function Trig_General_Belganon_Short_Func014002 )
call AdjustPlayerStateBJ( 15, udg_KindredSpirit1, PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 15, udg_KindredSpirit2, PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 15, udg_KindredSpirit3, PLAYER_STATE_RESOURCE_GOLD )
endfunction
//===========================================================================
function InitTrig_General_Belganon_Short takes nothing returns nothing
set gg_trg_General_Belganon_Short = CreateTrigger( )
call DisableTrigger( gg_trg_General_Belganon_Short )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_General_Belganon_Short, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_General_Belganon_Short, Condition( function Trig_General_Belganon_Short_Conditions ) )
call TriggerAddAction( gg_trg_General_Belganon_Short, function Trig_General_Belganon_Short_Actions )
endfunction
function Trig_Cindescrae_Speaks_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0BF' ) ) then
return false
endif
return true
endfunction
function Trig_Cindescrae_Speaks_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ( 'A0BF', GetSpellAbilityUnit() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6015" )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_6016" )
call QuestSetDescriptionBJ( udg_Quest3, "TRIGSTR_6017" )
call QuestSetDescriptionBJ( udg_ChapterQuest, "TRIGSTR_6018" )
call PlaySoundBJ( gg_snd_QuestLog )
set udg_Chapter3 = true
call PolledWait( 6.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6733" )
endfunction
//===========================================================================
function InitTrig_Cindescrae_Speaks takes nothing returns nothing
set gg_trg_Cindescrae_Speaks = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Cindescrae_Speaks, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Cindescrae_Speaks, Condition( function Trig_Cindescrae_Speaks_Conditions ) )
call TriggerAddAction( gg_trg_Cindescrae_Speaks, function Trig_Cindescrae_Speaks_Actions )
endfunction
function Trig_Oswald_Airship_0_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I02T' ) ) then
return false
endif
if ( not ( udg_Chapter3 == false ) ) then
return false
endif
return true
endfunction
function Trig_Oswald_Airship_0_Func001001001 takes nothing returns boolean
return ( GetOwningPlayer(GetManipulatingUnit()) == GetFilterPlayer() )
endfunction
function Trig_Oswald_Airship_0_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Oswald_Airship_0_Func001001001)), "TRIGSTR_5258" )
endfunction
//===========================================================================
function InitTrig_Oswald_Airship_0 takes nothing returns nothing
set gg_trg_Oswald_Airship_0 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Oswald_Airship_0, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Oswald_Airship_0, Condition( function Trig_Oswald_Airship_0_Conditions ) )
call TriggerAddAction( gg_trg_Oswald_Airship_0, function Trig_Oswald_Airship_0_Actions )
endfunction
function Trig_Oswald_Airship_1_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I02T' ) ) then
return false
endif
if ( not ( udg_Chapter3 == true ) ) then
return false
endif
return true
endfunction
function Trig_Oswald_Airship_1_Func002001001 takes nothing returns boolean
return ( GetOwningPlayer(GetManipulatingUnit()) == GetFilterPlayer() )
endfunction
function Trig_Oswald_Airship_1_Func006002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Oswald_2), GetUnitLoc(gg_unit_n03H_0473) )
endfunction
function Trig_Oswald_Airship_1_Actions takes nothing returns nothing
set udg_SkyCaptain = GetOwningPlayer(GetManipulatingUnit())
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Oswald_Airship_1_Func002001001)), "TRIGSTR_6150" )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUT, 1.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call PolledWait( 1.50 )
call PanCameraToTimedLocForPlayer( udg_SkyCaptain, GetRectCenter(gg_rct_Oswald_2), 0.10 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), udg_SkyCaptain), function Trig_Oswald_Airship_1_Func006002 )
call PolledWait( 0.50 )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEIN, 1.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
endfunction
//===========================================================================
function InitTrig_Oswald_Airship_1 takes nothing returns nothing
set gg_trg_Oswald_Airship_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Oswald_Airship_1, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Oswald_Airship_1, Condition( function Trig_Oswald_Airship_1_Conditions ) )
call TriggerAddAction( gg_trg_Oswald_Airship_1, function Trig_Oswald_Airship_1_Actions )
endfunction
function Trig_Oswald_Airship_2_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I03L' ) ) then
return false
endif
if ( not ( udg_Chapter3 == true ) ) then
return false
endif
return true
endfunction
function Trig_Oswald_Airship_2_Func002001001 takes nothing returns boolean
return ( GetOwningPlayer(GetManipulatingUnit()) == GetFilterPlayer() )
endfunction
function Trig_Oswald_Airship_2_Func006002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Oswald_1), GetUnitLoc(gg_unit_n03H_0473) )
endfunction
function Trig_Oswald_Airship_2_Actions takes nothing returns nothing
set udg_SkyCaptain2 = GetOwningPlayer(GetManipulatingUnit())
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Oswald_Airship_2_Func002001001)), "TRIGSTR_6151" )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUT, 1.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call PolledWait( 1.50 )
call PanCameraToTimedLocForPlayer( udg_SkyCaptain2, GetRectCenter(gg_rct_Oswald_1), 0.10 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), udg_SkyCaptain2), function Trig_Oswald_Airship_2_Func006002 )
call PolledWait( 0.50 )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEIN, 1.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
endfunction
//===========================================================================
function InitTrig_Oswald_Airship_2 takes nothing returns nothing
set gg_trg_Oswald_Airship_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Oswald_Airship_2, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Oswald_Airship_2, Condition( function Trig_Oswald_Airship_2_Conditions ) )
call TriggerAddAction( gg_trg_Oswald_Airship_2, function Trig_Oswald_Airship_2_Actions )
endfunction
function Trig_Hireling_Airship_1_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I02T' ) ) then
return false
endif
if ( not ( udg_Chapter3 == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetManipulatingUnit()) == Player(8) ) ) then
return false
endif
return true
endfunction
function Trig_Hireling_Airship_1_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Watchman_Leaves )
call DisableTrigger( gg_trg_Gladiator_Leaves )
call DisableTrigger( gg_trg_Succubus_Leaves )
call DisableTrigger( gg_trg_Conjurer_Leaves )
call DisableTrigger( gg_trg_Ravager_Leaves )
call DisableTrigger( gg_trg_Dark_Archer_Leaves )
endfunction
//===========================================================================
function InitTrig_Hireling_Airship_1 takes nothing returns nothing
set gg_trg_Hireling_Airship_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Hireling_Airship_1, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Hireling_Airship_1, Condition( function Trig_Hireling_Airship_1_Conditions ) )
call TriggerAddAction( gg_trg_Hireling_Airship_1, function Trig_Hireling_Airship_1_Actions )
endfunction
function Trig_Hireling_Airship_2_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I03L' ) ) then
return false
endif
if ( not ( udg_Chapter3 == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetManipulatingUnit()) == Player(8) ) ) then
return false
endif
return true
endfunction
function Trig_Hireling_Airship_2_Actions takes nothing returns nothing
call EnableTrigger( gg_trg_Watchman_Leaves )
call EnableTrigger( gg_trg_Gladiator_Leaves )
call EnableTrigger( gg_trg_Succubus_Leaves )
call EnableTrigger( gg_trg_Conjurer_Leaves )
call EnableTrigger( gg_trg_Ravager_Leaves )
call EnableTrigger( gg_trg_Dark_Archer_Leaves )
endfunction
//===========================================================================
function InitTrig_Hireling_Airship_2 takes nothing returns nothing
set gg_trg_Hireling_Airship_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Hireling_Airship_2, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Hireling_Airship_2, Condition( function Trig_Hireling_Airship_2_Conditions ) )
call TriggerAddAction( gg_trg_Hireling_Airship_2, function Trig_Hireling_Airship_2_Actions )
endfunction
function Trig_The_Gorgon_Func007002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Island_Introduction, GetEnumPlayer(), 2.00 )
endfunction
function Trig_The_Gorgon_Func008002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Island_Intro_Ready), GetUnitLoc(gg_unit_U00V_0474) )
endfunction
function Trig_The_Gorgon_Func009002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Island_Intro_Ready), GetUnitLoc(gg_unit_U00V_0474) )
endfunction
function Trig_The_Gorgon_Func010002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Island_Intro_Ready), GetUnitLoc(gg_unit_U00V_0474) )
endfunction
function Trig_The_Gorgon_Func011002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Island_Intro_Ready), GetUnitLoc(gg_unit_U00V_0474) )
endfunction
function Trig_The_Gorgon_Func012002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Island_Intro_Ready), GetUnitLoc(gg_unit_U00V_0474) )
endfunction
function Trig_The_Gorgon_Func013002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Island_Intro_Ready), GetUnitLoc(gg_unit_U00V_0474) )
endfunction
function Trig_The_Gorgon_Func014002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Island_Intro_Ready), GetUnitLoc(gg_unit_U00V_0474) )
endfunction
function Trig_The_Gorgon_Func019002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_The_Gorgon_Func021002 takes nothing returns nothing
call ResetToGameCameraForPlayer( GetEnumPlayer(), 2.00 )
endfunction
function Trig_The_Gorgon_Func022002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetEnumPlayer(), GetRectCenter(gg_rct_Island_Intro_Ready), 2.00 )
endfunction
function Trig_The_Gorgon_Func033002 takes nothing returns nothing
call AddSpecialEffectLocBJ( GetUnitLoc(GetEnumUnit()), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
endfunction
function Trig_The_Gorgon_Func034002 takes nothing returns nothing
call AddSpecialEffectLocBJ( GetUnitLoc(GetEnumUnit()), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
endfunction
function Trig_The_Gorgon_Func035002 takes nothing returns nothing
call AddSpecialEffectLocBJ( GetUnitLoc(GetEnumUnit()), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
endfunction
function Trig_The_Gorgon_Func036002 takes nothing returns nothing
call AddSpecialEffectLocBJ( GetUnitLoc(GetEnumUnit()), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
endfunction
function Trig_The_Gorgon_Func037002 takes nothing returns nothing
call AddSpecialEffectLocBJ( GetUnitLoc(GetEnumUnit()), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
endfunction
function Trig_The_Gorgon_Func038002 takes nothing returns nothing
call AddSpecialEffectLocBJ( GetUnitLoc(GetEnumUnit()), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
endfunction
function Trig_The_Gorgon_Func039002 takes nothing returns nothing
call AddSpecialEffectLocBJ( GetUnitLoc(GetEnumUnit()), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
endfunction
function Trig_The_Gorgon_Func043002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Saved), GetUnitLoc(gg_unit_n03L_0476) )
endfunction
function Trig_The_Gorgon_Func044002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Saved), GetUnitLoc(gg_unit_n03L_0476) )
endfunction
function Trig_The_Gorgon_Func045002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Saved), GetUnitLoc(gg_unit_n03L_0476) )
endfunction
function Trig_The_Gorgon_Func046002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Saved), GetUnitLoc(gg_unit_n03L_0476) )
endfunction
function Trig_The_Gorgon_Func047002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Saved), GetUnitLoc(gg_unit_n03L_0476) )
endfunction
function Trig_The_Gorgon_Func048002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Saved), GetUnitLoc(gg_unit_n03L_0476) )
endfunction
function Trig_The_Gorgon_Func049002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Saved), GetUnitLoc(gg_unit_n03L_0476) )
endfunction
function Trig_The_Gorgon_Func050002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetEnumPlayer(), GetRectCenter(gg_rct_Saved), 0.50 )
endfunction
function Trig_The_Gorgon_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call PlaySoundBJ( gg_snd_PursuitTheme )
call SetUserControlForceOff( GetPlayersAll() )
call ClearTextMessagesBJ( GetPlayersAll() )
call ShowInterfaceForceOff( GetPlayersAll(), 2 )
call CinematicModeExBJ( true, GetPlayersAll(), 2.00 )
call ForForce( GetPlayersAll(), function Trig_The_Gorgon_Func007002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(0)), function Trig_The_Gorgon_Func008002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(1)), function Trig_The_Gorgon_Func009002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(3)), function Trig_The_Gorgon_Func010002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(4)), function Trig_The_Gorgon_Func011002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(5)), function Trig_The_Gorgon_Func012002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(6)), function Trig_The_Gorgon_Func013002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(8)), function Trig_The_Gorgon_Func014002 )
call SetUnitOwner( gg_unit_n01P_0230, Player(7), false )
call SetUnitOwner( udg_Nathan, Player(7), false )
call PolledWait( 2.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_U00V_0474, "TRIGSTR_6167", null, "TRIGSTR_6168", bj_TIMETYPE_ADD, 0.00, true )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_LeaderInKilling, Condition(function Trig_The_Gorgon_Func019002001002))), GetPlayerName(udg_LeaderInKilling), null, "TRIGSTR_6169", bj_TIMETYPE_ADD, 0.00, true )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_U00V_0474, "TRIGSTR_6170", null, "TRIGSTR_6171", bj_TIMETYPE_ADD, 0.00, true )
call ForForce( GetPlayersAll(), function Trig_The_Gorgon_Func021002 )
call ForForce( GetPlayersAll(), function Trig_The_Gorgon_Func022002 )
call SetUserControlForceOn( GetPlayersAll() )
call CinematicModeExBJ( false, GetPlayersAll(), 2.00 )
call ShowInterfaceForceOn( GetPlayersAll(), 2 )
call PolledWait( 2.00 )
call IssuePointOrderLocBJ( gg_unit_U00V_0474, "attack", GetRectCenter(gg_rct_Island_Intro_Ready) )
call PolledWait( 6.00 )
call IssueTargetOrderBJ( gg_unit_U00V_0474, "impale", GetEnteringUnit() )
call PolledWait( 18.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6172" )
call PolledWait( 4.00 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(0)), function Trig_The_Gorgon_Func033002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(1)), function Trig_The_Gorgon_Func034002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(3)), function Trig_The_Gorgon_Func035002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(4)), function Trig_The_Gorgon_Func036002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(5)), function Trig_The_Gorgon_Func037002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(6)), function Trig_The_Gorgon_Func038002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(8)), function Trig_The_Gorgon_Func039002 )
call SetUnitOwner( gg_unit_n03L_0476, Player(10), false )
set udg_ResurrectionMan = gg_unit_n03L_0476
call PolledWait( 1.50 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(0)), function Trig_The_Gorgon_Func043002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(1)), function Trig_The_Gorgon_Func044002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(3)), function Trig_The_Gorgon_Func045002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(4)), function Trig_The_Gorgon_Func046002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(5)), function Trig_The_Gorgon_Func047002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(6)), function Trig_The_Gorgon_Func048002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(8)), function Trig_The_Gorgon_Func049002 )
call ForForce( GetPlayersAll(), function Trig_The_Gorgon_Func050002 )
call PolledWait( 3.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6173" )
call QuestSetDescriptionBJ( udg_Quest3, "TRIGSTR_6174" )
call QuestSetDescriptionBJ( udg_ChapterQuest, "TRIGSTR_6175" )
call FlashQuestDialogButtonBJ( )
call PlaySoundBJ( gg_snd_QuestLog )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_6292" )
call RemoveUnit( gg_unit_U00V_0474 )
endfunction
//===========================================================================
function InitTrig_The_Gorgon takes nothing returns nothing
set gg_trg_The_Gorgon = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_The_Gorgon, gg_rct_Island_Introduction )
call TriggerAddAction( gg_trg_The_Gorgon, function Trig_The_Gorgon_Actions )
endfunction
function Trig_The_Island_Throne_Func007002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Island_Throne, GetEnumPlayer(), 2.00 )
endfunction
function Trig_The_Island_Throne_Func008002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Heroes_Throne), GetUnitLoc(gg_unit_N03J_0535) )
endfunction
function Trig_The_Island_Throne_Func009002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Heroes_Throne), GetUnitLoc(gg_unit_N03J_0535) )
endfunction
function Trig_The_Island_Throne_Func010002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Heroes_Throne), GetUnitLoc(gg_unit_N03J_0535) )
endfunction
function Trig_The_Island_Throne_Func011002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Heroes_Throne), GetUnitLoc(gg_unit_N03J_0535) )
endfunction
function Trig_The_Island_Throne_Func012002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Heroes_Throne), GetUnitLoc(gg_unit_N03J_0535) )
endfunction
function Trig_The_Island_Throne_Func013002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Heroes_Throne), GetUnitLoc(gg_unit_N03J_0535) )
endfunction
function Trig_The_Island_Throne_Func014002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Heroes_Throne), GetUnitLoc(gg_unit_N03J_0535) )
endfunction
function Trig_The_Island_Throne_Func028002 takes nothing returns nothing
call ResetToGameCameraForPlayer( GetEnumPlayer(), 2.00 )
endfunction
function Trig_The_Island_Throne_Func029002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetEnumPlayer(), GetRectCenter(gg_rct_Heroes_Throne), 2.00 )
endfunction
function Trig_The_Island_Throne_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call PlaySoundBJ( gg_snd_PursuitTheme )
call SetUserControlForceOff( GetPlayersAll() )
call ClearTextMessagesBJ( GetPlayersAll() )
call ShowInterfaceForceOff( GetPlayersAll(), 2 )
call CinematicModeExBJ( true, GetPlayersAll(), 2.00 )
call ForForce( GetPlayersAll(), function Trig_The_Island_Throne_Func007002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(0)), function Trig_The_Island_Throne_Func008002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(1)), function Trig_The_Island_Throne_Func009002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(3)), function Trig_The_Island_Throne_Func010002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(4)), function Trig_The_Island_Throne_Func011002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(5)), function Trig_The_Island_Throne_Func012002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(6)), function Trig_The_Island_Throne_Func013002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(8)), function Trig_The_Island_Throne_Func014002 )
call PolledWait( 2.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_N03J_0535, "TRIGSTR_6198", null, "TRIGSTR_6199", bj_TIMETYPE_ADD, 1.00, true )
call PolledWait( 1.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_H01S_0537, "TRIGSTR_6200", null, "TRIGSTR_6201", bj_TIMETYPE_ADD, 3.00, true )
call PolledWait( 3.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_N03J_0535, "TRIGSTR_6202", null, "TRIGSTR_6203", bj_TIMETYPE_ADD, 5.00, true )
call PolledWait( 5.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_H01S_0537, "TRIGSTR_6204", null, "TRIGSTR_6205", bj_TIMETYPE_ADD, 1.50, true )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Manos_Throne), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
call PolledWait( 1.50 )
call SetUnitPositionLoc( gg_unit_U00W_0536, GetRectCenter(gg_rct_Manos_Throne) )
call SetUnitInvulnerable( gg_unit_N03J_0535, false )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_U00W_0536, "TRIGSTR_6206", null, "TRIGSTR_6207", bj_TIMETYPE_ADD, 0.00, true )
call ForForce( GetPlayersAll(), function Trig_The_Island_Throne_Func028002 )
call ForForce( GetPlayersAll(), function Trig_The_Island_Throne_Func029002 )
call SetUserControlForceOn( GetPlayersAll() )
call CinematicModeExBJ( false, GetPlayersAll(), 2.00 )
call ShowInterfaceForceOn( GetPlayersAll(), 2 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PolledWait( 2.00 )
call IssuePointOrderLocBJ( gg_unit_H01S_0537, "attack", GetRectCenter(gg_rct_Kae_Throne) )
endfunction
//===========================================================================
function InitTrig_The_Island_Throne takes nothing returns nothing
set gg_trg_The_Island_Throne = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_The_Island_Throne, gg_rct_Heroes_Throne )
call TriggerAddAction( gg_trg_The_Island_Throne, function Trig_The_Island_Throne_Actions )
endfunction
function Trig_The_Island_Throne_Short_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call PlaySoundBJ( gg_snd_PursuitTheme )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Manos_Throne), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
call PolledWait( 1.50 )
call SetUnitPositionLoc( gg_unit_U00W_0536, GetRectCenter(gg_rct_Manos_Throne) )
call SetUnitInvulnerable( gg_unit_N03J_0535, false )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PolledWait( 2.00 )
call IssuePointOrderLocBJ( gg_unit_H01S_0537, "attack", GetRectCenter(gg_rct_Kae_Throne) )
endfunction
//===========================================================================
function InitTrig_The_Island_Throne_Short takes nothing returns nothing
set gg_trg_The_Island_Throne_Short = CreateTrigger( )
call DisableTrigger( gg_trg_The_Island_Throne_Short )
call TriggerRegisterEnterRectSimple( gg_trg_The_Island_Throne_Short, gg_rct_Heroes_Throne )
call TriggerAddAction( gg_trg_The_Island_Throne_Short, function Trig_The_Island_Throne_Short_Actions )
endfunction
function Trig_Kae_Falls_Actions takes nothing returns nothing
set udg_KaeManos = ( udg_KaeManos + 1 )
endfunction
//===========================================================================
function InitTrig_Kae_Falls takes nothing returns nothing
set gg_trg_Kae_Falls = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Kae_Falls, gg_unit_N03J_0535, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Kae_Falls, function Trig_Kae_Falls_Actions )
endfunction
function Trig_Manos_Falls_Actions takes nothing returns nothing
set udg_KaeManos = ( udg_KaeManos + 1 )
endfunction
//===========================================================================
function InitTrig_Manos_Falls takes nothing returns nothing
set gg_trg_Manos_Falls = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Manos_Falls, gg_unit_U00W_0536, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Manos_Falls, function Trig_Manos_Falls_Actions )
endfunction
function Trig_Corbin_Falls_Actions takes nothing returns nothing
set udg_CorbinDeath = true
endfunction
//===========================================================================
function InitTrig_Corbin_Falls takes nothing returns nothing
set gg_trg_Corbin_Falls = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Corbin_Falls, gg_unit_H01S_0537, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Corbin_Falls, function Trig_Corbin_Falls_Actions )
endfunction
function Trig_Ocean_and_Earth_Func002002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Ocean_and_Earth_Func003002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Ocean_and_Earth_Func013002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Island_Throne, GetEnumPlayer(), 2.00 )
endfunction
function Trig_Ocean_and_Earth_Func014002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Heroes_Throne), GetUnitLoc(gg_unit_N03J_0535) )
endfunction
function Trig_Ocean_and_Earth_Func015002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Heroes_Throne), GetUnitLoc(gg_unit_N03J_0535) )
endfunction
function Trig_Ocean_and_Earth_Func016002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Heroes_Throne), GetUnitLoc(gg_unit_N03J_0535) )
endfunction
function Trig_Ocean_and_Earth_Func017002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Heroes_Throne), GetUnitLoc(gg_unit_N03J_0535) )
endfunction
function Trig_Ocean_and_Earth_Func018002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Heroes_Throne), GetUnitLoc(gg_unit_N03J_0535) )
endfunction
function Trig_Ocean_and_Earth_Func019002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Heroes_Throne), GetUnitLoc(gg_unit_N03J_0535) )
endfunction
function Trig_Ocean_and_Earth_Func020002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Heroes_Throne), GetUnitLoc(gg_unit_N03J_0535) )
endfunction
function Trig_Ocean_and_Earth_Func026C takes nothing returns boolean
if ( not ( udg_CorbinDeath == false ) ) then
return false
endif
return true
endfunction
function Trig_Ocean_and_Earth_Func040002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Ocean_and_Earth_Func043002 takes nothing returns nothing
call ResetToGameCameraForPlayer( GetEnumPlayer(), 2.00 )
endfunction
function Trig_Ocean_and_Earth_Func044002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetEnumPlayer(), GetRectCenter(gg_rct_Heroes_Throne), 2.00 )
endfunction
function Trig_Ocean_and_Earth_Func056002 takes nothing returns nothing
call AdjustPlayerStateBJ( 1, GetEnumPlayer(), PLAYER_STATE_RESOURCE_LUMBER )
endfunction
function Trig_Ocean_and_Earth_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call ForGroupBJ( GetUnitsOfTypeIdAll('h00E'), function Trig_Ocean_and_Earth_Func002002 )
call ForGroupBJ( GetUnitsOfTypeIdAll('h01G'), function Trig_Ocean_and_Earth_Func003002 )
call SetDestructableInvulnerableBJ( gg_dest_ITg1_5850, false )
call SetUnitOwner( udg_Nathan, Player(11), false )
call SetUnitOwner( gg_unit_n01P_0230, Player(10), false )
set udg_ResurrectionMan = gg_unit_n01P_0230
call RemoveUnit( gg_unit_E00K_0161 )
call SetUserControlForceOff( GetPlayersAll() )
call ClearTextMessagesBJ( GetPlayersAll() )
call ShowInterfaceForceOff( GetPlayersAll(), 2 )
call CinematicModeExBJ( true, GetPlayersAll(), 2.00 )
call ForForce( GetPlayersAll(), function Trig_Ocean_and_Earth_Func013002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(0)), function Trig_Ocean_and_Earth_Func014002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(1)), function Trig_Ocean_and_Earth_Func015002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(3)), function Trig_Ocean_and_Earth_Func016002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(4)), function Trig_Ocean_and_Earth_Func017002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(5)), function Trig_Ocean_and_Earth_Func018002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(6)), function Trig_Ocean_and_Earth_Func019002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(8)), function Trig_Ocean_and_Earth_Func020002 )
call SetUnitPositionLocFacingBJ( gg_unit_H01S_0537, GetRectCenter(gg_rct_Kae_Throne), 0.00 )
call CreateNUnitsAtLocFacingLocBJ( 1, 'E00K', Player(7), GetRectCenter(gg_rct_Manos_Throne), GetRectCenter(gg_rct_Kae_Throne) )
call SetUnitInvulnerable( GetLastCreatedUnit(), true )
set udg_DummyRaine = GetLastCreatedUnit()
call PolledWait( 2.00 )
if ( Trig_Ocean_and_Earth_Func026C() ) then
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), udg_DummyRaine, "TRIGSTR_6208", null, "TRIGSTR_6209", bj_TIMETYPE_ADD, 1.00, true )
call PolledWait( 1.00 )
call KillUnit( gg_unit_H01S_0537 )
else
call DoNothing( )
endif
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), udg_DummyRaine, "TRIGSTR_6210", null, "TRIGSTR_6211", bj_TIMETYPE_ADD, 3.00, true )
call PolledWait( 3.00 )
call SetUnitFacingToFaceLocTimed( udg_DummyRaine, GetRectCenter(gg_rct_Heroes_Throne), 0.50 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), udg_DummyRaine, "TRIGSTR_6300", null, "TRIGSTR_6301", bj_TIMETYPE_ADD, 3.00, true )
call PolledWait( 3.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), udg_DummyRaine, "TRIGSTR_6212", null, "TRIGSTR_6213", bj_TIMETYPE_ADD, 3.00, true )
call PolledWait( 1.50 )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Manos_Throne), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
call PolledWait( 1.50 )
call RemoveUnit( udg_DummyRaine )
call RemoveUnit( gg_unit_n03L_0476 )
call RemoveUnit( udg_FakeLeon )
call RemoveItem( udg_FireOrb )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_LeaderInKilling, Condition(function Trig_Ocean_and_Earth_Func040002001002))), GetPlayerName(udg_LeaderInKilling), null, "TRIGSTR_6734", bj_TIMETYPE_ADD, 2.00, true )
call PolledWait( 2.00 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call ForForce( GetPlayersAll(), function Trig_Ocean_and_Earth_Func043002 )
call ForForce( GetPlayersAll(), function Trig_Ocean_and_Earth_Func044002 )
call SetUserControlForceOn( GetPlayersAll() )
call CinematicModeExBJ( false, GetPlayersAll(), 2.00 )
call ShowInterfaceForceOn( GetPlayersAll(), 2 )
call PolledWait( 5.00 )
call QuestSetTitleBJ( udg_ChapterQuest, "TRIGSTR_6214" )
call QuestSetDescriptionBJ( udg_ChapterQuest, "TRIGSTR_6215" )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_6216" )
call QuestSetDescriptionBJ( udg_Quest3, "TRIGSTR_6217" )
call QuestSetCompletedBJ( udg_Quest3, true )
call PlaySoundBJ( gg_snd_QuestNew )
call ForForce( udg_PlayerGroup, function Trig_Ocean_and_Earth_Func056002 )
call SetUnitPositionLocFacingBJ( udg_Ferdinand, GetRectCenter(gg_rct_Ferdinand_Fountain), 270.00 )
call SetHeroXP( udg_Ferdinand, 2700, false )
call EnableTrigger( gg_trg_Ferdinand_by_the_Fountain )
call CreateNUnitsAtLocFacingLocBJ( 1, 'h01Y', Player(10), GetRectCenter(gg_rct_Lethe), GetRectCenter(gg_rct_MegiddonFakeStoreGate) )
call CreateNUnitsAtLocFacingLocBJ( 1, 'n03Z', Player(10), GetRectCenter(gg_rct_Clara), GetRectCenter(gg_rct_MegiddonFakeStoreGate) )
call UnitRemoveAbilityBJ( 'A089', gg_unit_n02E_0297 )
call UnitAddAbilityBJ( 'A0DJ', gg_unit_n02E_0297 )
endfunction
//===========================================================================
function InitTrig_Ocean_and_Earth takes nothing returns nothing
set gg_trg_Ocean_and_Earth = CreateTrigger( )
call TriggerRegisterVariableEvent( gg_trg_Ocean_and_Earth, "udg_KaeManos", GREATER_THAN_OR_EQUAL, 2.00 )
call TriggerAddAction( gg_trg_Ocean_and_Earth, function Trig_Ocean_and_Earth_Actions )
endfunction
function Trig_Ocean_and_Earth_Short_Func002002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Ocean_and_Earth_Short_Func003002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Ocean_and_Earth_Short_Func014C takes nothing returns boolean
if ( not ( udg_CorbinDeath == false ) ) then
return false
endif
return true
endfunction
function Trig_Ocean_and_Earth_Short_Func032002 takes nothing returns nothing
call AdjustPlayerStateBJ( 1, GetEnumPlayer(), PLAYER_STATE_RESOURCE_LUMBER )
endfunction
function Trig_Ocean_and_Earth_Short_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call ForGroupBJ( GetUnitsOfTypeIdAll('h00E'), function Trig_Ocean_and_Earth_Short_Func002002 )
call ForGroupBJ( GetUnitsOfTypeIdAll('h01G'), function Trig_Ocean_and_Earth_Short_Func003002 )
call SetDestructableInvulnerableBJ( gg_dest_ITg1_5850, false )
call SetUnitOwner( udg_Nathan, Player(11), false )
call SetUnitOwner( gg_unit_n01P_0230, Player(10), false )
set udg_ResurrectionMan = gg_unit_n01P_0230
call RemoveUnit( gg_unit_E00K_0161 )
call SetUnitPositionLocFacingBJ( gg_unit_H01S_0537, GetRectCenter(gg_rct_Kae_Throne), 0.00 )
call CreateNUnitsAtLocFacingLocBJ( 1, 'E00K', Player(7), GetRectCenter(gg_rct_Manos_Throne), GetRectCenter(gg_rct_Kae_Throne) )
call SetUnitInvulnerable( GetLastCreatedUnit(), true )
set udg_DummyRaine = GetLastCreatedUnit()
call PolledWait( 2.00 )
if ( Trig_Ocean_and_Earth_Short_Func014C() ) then
call KillUnit( gg_unit_H01S_0537 )
else
call DoNothing( )
endif
call SetUnitFacingToFaceLocTimed( udg_DummyRaine, GetRectCenter(gg_rct_Heroes_Throne), 0.50 )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Manos_Throne), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
call PolledWait( 1.50 )
call RemoveUnit( udg_DummyRaine )
call RemoveUnit( gg_unit_n03L_0476 )
call RemoveUnit( udg_FakeLeon )
call RemoveItem( udg_FireOrb )
call PolledWait( 2.00 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PolledWait( 5.00 )
call QuestSetTitleBJ( udg_ChapterQuest, "TRIGSTR_7609" )
call QuestSetDescriptionBJ( udg_ChapterQuest, "TRIGSTR_7610" )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_7611" )
call QuestSetDescriptionBJ( udg_Quest3, "TRIGSTR_7612" )
call QuestSetCompletedBJ( udg_Quest3, true )
call PlaySoundBJ( gg_snd_QuestNew )
call ForForce( udg_PlayerGroup, function Trig_Ocean_and_Earth_Short_Func032002 )
call SetUnitPositionLocFacingBJ( udg_Ferdinand, GetRectCenter(gg_rct_Ferdinand_Fountain), 270.00 )
call SetHeroXP( udg_Ferdinand, 2700, false )
call EnableTrigger( gg_trg_Ferdinand_by_the_Fountain )
call CreateNUnitsAtLocFacingLocBJ( 1, 'h01Y', Player(10), GetRectCenter(gg_rct_Lethe), GetRectCenter(gg_rct_MegiddonFakeStoreGate) )
call CreateNUnitsAtLocFacingLocBJ( 1, 'n03Z', Player(10), GetRectCenter(gg_rct_Clara), GetRectCenter(gg_rct_MegiddonFakeStoreGate) )
call UnitRemoveAbilityBJ( 'A089', gg_unit_n02E_0297 )
call UnitAddAbilityBJ( 'A0DJ', gg_unit_n02E_0297 )
endfunction
//===========================================================================
function InitTrig_Ocean_and_Earth_Short takes nothing returns nothing
set gg_trg_Ocean_and_Earth_Short = CreateTrigger( )
call DisableTrigger( gg_trg_Ocean_and_Earth_Short )
call TriggerRegisterVariableEvent( gg_trg_Ocean_and_Earth_Short, "udg_KaeManos", GREATER_THAN_OR_EQUAL, 2.00 )
call TriggerAddAction( gg_trg_Ocean_and_Earth_Short, function Trig_Ocean_and_Earth_Short_Actions )
endfunction
function Trig_Ferdinand_by_the_Fountain_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6218" )
call PolledWait( 2 )
call QuestSetDescriptionBJ( udg_ChapterQuest, "TRIGSTR_6219" )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_6220", "TRIGSTR_6221", "ReplaceableTextures\\CommandButtons\\BTNAssassin.blp" )
set udg_Quest4 = GetLastCreatedQuestBJ()
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_6222" )
call PlaySoundBJ( gg_snd_QuestNew )
call SetDestructableInvulnerableBJ( gg_dest_LTg3_6421, false )
call EnableTrigger( gg_trg_North_Gate )
call PolledWait( 15.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_7117" )
call PlaySoundBJ( gg_snd_QuestLog )
endfunction
//===========================================================================
function InitTrig_Ferdinand_by_the_Fountain takes nothing returns nothing
set gg_trg_Ferdinand_by_the_Fountain = CreateTrigger( )
call DisableTrigger( gg_trg_Ferdinand_by_the_Fountain )
call TriggerRegisterEnterRectSimple( gg_trg_Ferdinand_by_the_Fountain, gg_rct_MegiddonSouthGate )
call TriggerAddAction( gg_trg_Ferdinand_by_the_Fountain, function Trig_Ferdinand_by_the_Fountain_Actions )
endfunction
function Trig_Stairwell_Door_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisableTrigger( gg_trg_Find_Stair_Key )
call DisableTrigger( gg_trg_Lose_Stair_Key )
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTg3_6422 )
call PlaySoundBJ( gg_snd_CityGateOpen )
endfunction
//===========================================================================
function InitTrig_Stairwell_Door takes nothing returns nothing
set gg_trg_Stairwell_Door = CreateTrigger( )
call DisableTrigger( gg_trg_Stairwell_Door )
call TriggerRegisterEnterRectSimple( gg_trg_Stairwell_Door, gg_rct_Castle_Stair_Gate )
call TriggerAddAction( gg_trg_Stairwell_Door, function Trig_Stairwell_Door_Actions )
endfunction
function Trig_Find_Stair_Key_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I03R' ) ) then
return false
endif
return true
endfunction
function Trig_Find_Stair_Key_Actions takes nothing returns nothing
call EnableTrigger( gg_trg_Stairwell_Door )
endfunction
//===========================================================================
function InitTrig_Find_Stair_Key takes nothing returns nothing
set gg_trg_Find_Stair_Key = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Find_Stair_Key, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Find_Stair_Key, Condition( function Trig_Find_Stair_Key_Conditions ) )
call TriggerAddAction( gg_trg_Find_Stair_Key, function Trig_Find_Stair_Key_Actions )
endfunction
function Trig_Find_Stair_Key_First_Time_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I03R' ) ) then
return false
endif
return true
endfunction
function Trig_Find_Stair_Key_First_Time_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
set udg_StairKey = GetManipulatedItem()
call SetItemInvulnerableBJ( udg_StairKey, true )
endfunction
//===========================================================================
function InitTrig_Find_Stair_Key_First_Time takes nothing returns nothing
set gg_trg_Find_Stair_Key_First_Time = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Find_Stair_Key_First_Time, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Find_Stair_Key_First_Time, Condition( function Trig_Find_Stair_Key_First_Time_Conditions ) )
call TriggerAddAction( gg_trg_Find_Stair_Key_First_Time, function Trig_Find_Stair_Key_First_Time_Actions )
endfunction
function Trig_Lose_Stair_Key_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I03R' ) ) then
return false
endif
return true
endfunction
function Trig_Lose_Stair_Key_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Stairwell_Door )
endfunction
//===========================================================================
function InitTrig_Lose_Stair_Key takes nothing returns nothing
set gg_trg_Lose_Stair_Key = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Lose_Stair_Key, EVENT_PLAYER_UNIT_DROP_ITEM )
call TriggerAddCondition( gg_trg_Lose_Stair_Key, Condition( function Trig_Lose_Stair_Key_Conditions ) )
call TriggerAddAction( gg_trg_Lose_Stair_Key, function Trig_Lose_Stair_Key_Actions )
endfunction
function Trig_Julios_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6273" )
call StartMeleeAI( Player(9), "map.ai" )
endfunction
//===========================================================================
function InitTrig_Julios takes nothing returns nothing
set gg_trg_Julios = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Julios, gg_rct_Castle_Throne_Room )
call TriggerAddAction( gg_trg_Julios, function Trig_Julios_Actions )
endfunction
function Trig_Danger_Warning_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6731" )
call PlaySoundBJ( gg_snd_QuestLog )
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTg1_6423 )
endfunction
//===========================================================================
function InitTrig_Danger_Warning takes nothing returns nothing
set gg_trg_Danger_Warning = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Danger_Warning, gg_rct_WARNING_EXTREME_DANGER )
call TriggerAddAction( gg_trg_Danger_Warning, function Trig_Danger_Warning_Actions )
endfunction
function Trig_Castle_Roof_Func007002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Raine, GetEnumPlayer(), 2.00 )
endfunction
function Trig_Castle_Roof_Func008002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Facing_Raine), GetUnitLoc(gg_unit_N03O_0622) )
endfunction
function Trig_Castle_Roof_Func009002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Facing_Raine), GetUnitLoc(gg_unit_N03O_0622) )
endfunction
function Trig_Castle_Roof_Func010002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Facing_Raine), GetUnitLoc(gg_unit_N03O_0622) )
endfunction
function Trig_Castle_Roof_Func011002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Facing_Raine), GetUnitLoc(gg_unit_N03O_0622) )
endfunction
function Trig_Castle_Roof_Func012002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Facing_Raine), GetUnitLoc(gg_unit_N03O_0622) )
endfunction
function Trig_Castle_Roof_Func013002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Facing_Raine), GetUnitLoc(gg_unit_N03O_0622) )
endfunction
function Trig_Castle_Roof_Func014002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Facing_Raine), GetUnitLoc(gg_unit_N03O_0622) )
endfunction
function Trig_Castle_Roof_Func017002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Castle_Roof_Func020002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Castle_Roof_Func022002 takes nothing returns nothing
call ResetToGameCameraForPlayer( GetEnumPlayer(), 2.00 )
endfunction
function Trig_Castle_Roof_Func023002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetEnumPlayer(), GetRectCenter(gg_rct_Facing_Raine), 2.00 )
endfunction
function Trig_Castle_Roof_Func029C takes nothing returns boolean
if ( not ( udg_CiaraJoined == true ) ) then
return false
endif
return true
endfunction
function Trig_Castle_Roof_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call PlaySoundBJ( gg_snd_LichKingTheme )
call SetUserControlForceOff( GetPlayersAll() )
call ClearTextMessagesBJ( GetPlayersAll() )
call ShowInterfaceForceOff( GetPlayersAll(), 2 )
call CinematicModeExBJ( true, GetPlayersAll(), 2.00 )
call ForForce( GetPlayersAll(), function Trig_Castle_Roof_Func007002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(0)), function Trig_Castle_Roof_Func008002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(1)), function Trig_Castle_Roof_Func009002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(3)), function Trig_Castle_Roof_Func010002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(4)), function Trig_Castle_Roof_Func011002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(5)), function Trig_Castle_Roof_Func012002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(6)), function Trig_Castle_Roof_Func013002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(8)), function Trig_Castle_Roof_Func014002 )
call PolledWait( 2.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_N03O_0622, "TRIGSTR_6278", null, "TRIGSTR_6279", bj_TIMETYPE_ADD, 0.00, true )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_LoserInKilling, Condition(function Trig_Castle_Roof_Func017002001002))), GetPlayerName(udg_LoserInKilling), null, "TRIGSTR_6280", bj_TIMETYPE_ADD, 0.00, true )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_N03O_0622, "TRIGSTR_6281", null, "TRIGSTR_6282", bj_TIMETYPE_ADD, 4.00, true )
call PolledWait( 4.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_LeaderInKilling, Condition(function Trig_Castle_Roof_Func020002001002))), GetPlayerName(udg_LeaderInKilling), null, "TRIGSTR_6283", bj_TIMETYPE_ADD, 0.00, true )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_N03O_0622, "TRIGSTR_6284", null, "TRIGSTR_6285", bj_TIMETYPE_ADD, 0.00, true )
call ForForce( GetPlayersAll(), function Trig_Castle_Roof_Func022002 )
call ForForce( GetPlayersAll(), function Trig_Castle_Roof_Func023002 )
call SetUserControlForceOn( GetPlayersAll() )
call CinematicModeExBJ( false, GetPlayersAll(), 2.00 )
call ShowInterfaceForceOn( GetPlayersAll(), 2 )
call PolledWait( 2.00 )
call IssuePointOrderLocBJ( gg_unit_N03O_0622, "attack", GetRectCenter(gg_rct_Facing_Raine) )
if ( Trig_Castle_Roof_Func029C() ) then
call PolledWait( 2 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6694" )
call PolledWait( 5.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6695" )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Castle_Roof takes nothing returns nothing
set gg_trg_Castle_Roof = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Castle_Roof, gg_rct_Castle_Threshold )
call TriggerAddAction( gg_trg_Castle_Roof, function Trig_Castle_Roof_Actions )
endfunction
function Trig_Castle_Roof_Short_Func005C takes nothing returns boolean
if ( not ( udg_CiaraJoined == true ) ) then
return false
endif
return true
endfunction
function Trig_Castle_Roof_Short_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call PlaySoundBJ( gg_snd_LichKingTheme )
call PolledWait( 2.00 )
call IssuePointOrderLocBJ( gg_unit_N03O_0622, "attack", GetRectCenter(gg_rct_Facing_Raine) )
if ( Trig_Castle_Roof_Short_Func005C() ) then
call PolledWait( 2 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_7621" )
call PolledWait( 5.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_7622" )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Castle_Roof_Short takes nothing returns nothing
set gg_trg_Castle_Roof_Short = CreateTrigger( )
call DisableTrigger( gg_trg_Castle_Roof_Short )
call TriggerRegisterEnterRectSimple( gg_trg_Castle_Roof_Short, gg_rct_Castle_Threshold )
call TriggerAddAction( gg_trg_Castle_Roof_Short, function Trig_Castle_Roof_Short_Actions )
endfunction
function Trig_Fall_into_Darkness_Func002002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Fall_into_Darkness_Func003002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Fall_into_Darkness_Func004002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Fall_into_Darkness_Func009002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Raine, GetEnumPlayer(), 2.00 )
endfunction
function Trig_Fall_into_Darkness_Func010002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Heroes_Killed_Raine), GetUnitLoc(gg_unit_N03O_0622) )
endfunction
function Trig_Fall_into_Darkness_Func011002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Heroes_Killed_Raine), GetUnitLoc(gg_unit_N03O_0622) )
endfunction
function Trig_Fall_into_Darkness_Func012002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Heroes_Killed_Raine), GetUnitLoc(gg_unit_N03O_0622) )
endfunction
function Trig_Fall_into_Darkness_Func013002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Heroes_Killed_Raine), GetUnitLoc(gg_unit_N03O_0622) )
endfunction
function Trig_Fall_into_Darkness_Func014002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Heroes_Killed_Raine), GetUnitLoc(gg_unit_N03O_0622) )
endfunction
function Trig_Fall_into_Darkness_Func015002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Heroes_Killed_Raine), GetUnitLoc(gg_unit_N03O_0622) )
endfunction
function Trig_Fall_into_Darkness_Func016002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Heroes_Killed_Raine), GetUnitLoc(gg_unit_N03O_0622) )
endfunction
function Trig_Fall_into_Darkness_Func018002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Fall_into_Darkness_Func019002 takes nothing returns nothing
call CameraSetEQNoiseForPlayer( GetEnumPlayer(), 3 )
endfunction
function Trig_Fall_into_Darkness_Func020002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Fall_into_Darkness_Func021002 takes nothing returns nothing
call SetUnitFacingTimed( GetEnumUnit(), 0.00, 1.00 )
endfunction
function Trig_Fall_into_Darkness_Func026002 takes nothing returns nothing
call CameraClearNoiseForPlayer( GetEnumPlayer() )
endfunction
function Trig_Fall_into_Darkness_Func029002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Fall_into_Darkness_Func039002 takes nothing returns nothing
call ResetToGameCameraForPlayer( GetEnumPlayer(), 2.00 )
endfunction
function Trig_Fall_into_Darkness_Func040002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetEnumPlayer(), GetRectCenter(gg_rct_Facing_Raine), 2.00 )
endfunction
function Trig_Fall_into_Darkness_Func044002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Fall_into_Darkness_Func045002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Fall_into_Darkness_Func046002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Fall_into_Darkness_Func047002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Fall_into_Darkness_Func048002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Fall_into_Darkness_Func049002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Fall_into_Darkness_Func050002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Fall_into_Darkness_Func051002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Fall_into_Darkness_Func072002 takes nothing returns nothing
call AdjustPlayerStateBJ( 1, GetEnumPlayer(), PLAYER_STATE_RESOURCE_LUMBER )
endfunction
function Trig_Fall_into_Darkness_Func074C takes nothing returns boolean
if ( not ( udg_CiaraJoined == true ) ) then
return false
endif
return true
endfunction
function Trig_Fall_into_Darkness_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call ForGroupBJ( GetUnitsOfTypeIdAll('u00X'), function Trig_Fall_into_Darkness_Func002002 )
call ForGroupBJ( GetUnitsOfTypeIdAll('n03N'), function Trig_Fall_into_Darkness_Func003002 )
call ForGroupBJ( GetUnitsOfTypeIdAll('u00Y'), function Trig_Fall_into_Darkness_Func004002 )
call SetUserControlForceOff( GetPlayersAll() )
call ClearTextMessagesBJ( GetPlayersAll() )
call ShowInterfaceForceOff( GetPlayersAll(), 2 )
call CinematicModeExBJ( true, GetPlayersAll(), 2.00 )
call ForForce( GetPlayersAll(), function Trig_Fall_into_Darkness_Func009002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(0)), function Trig_Fall_into_Darkness_Func010002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(1)), function Trig_Fall_into_Darkness_Func011002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(3)), function Trig_Fall_into_Darkness_Func012002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(4)), function Trig_Fall_into_Darkness_Func013002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(5)), function Trig_Fall_into_Darkness_Func014002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(6)), function Trig_Fall_into_Darkness_Func015002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(8)), function Trig_Fall_into_Darkness_Func016002 )
call PolledWait( 2.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_LeaderInKilling, Condition(function Trig_Fall_into_Darkness_Func018002001002))), GetPlayerName(udg_LeaderInKilling), null, "TRIGSTR_6745", bj_TIMETYPE_ADD, 0.00, true )
call ForForce( GetPlayersAll(), function Trig_Fall_into_Darkness_Func019002 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_LoserInKilling, Condition(function Trig_Fall_into_Darkness_Func020002001002))), GetPlayerName(udg_LoserInKilling), null, "TRIGSTR_6746", bj_TIMETYPE_ADD, 1.00, true )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), udg_LoserInKilling), function Trig_Fall_into_Darkness_Func021002 )
call CreateNUnitsAtLoc( 1, 'n03U', Player(7), GetRectCenter(gg_rct_Create_Seer), 90.00 )
set udg_FakeSeer = GetLastCreatedUnit()
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "move", GetRectCenter(gg_rct_Seer_Stops) )
call PolledWait( 1.00 )
call ForForce( GetPlayersAll(), function Trig_Fall_into_Darkness_Func026002 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), udg_FakeSeer, "TRIGSTR_6748", null, "TRIGSTR_6747", bj_TIMETYPE_ADD, 8.00, true )
call PolledWait( 8.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_LoserInKilling, Condition(function Trig_Fall_into_Darkness_Func029002001002))), GetPlayerName(udg_LoserInKilling), null, "TRIGSTR_6749", bj_TIMETYPE_ADD, 1.00, true )
call PolledWait( 1.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), udg_FakeSeer, "TRIGSTR_6750", null, "TRIGSTR_6751", bj_TIMETYPE_ADD, 4.00, true )
call CreateNUnitsAtLoc( 1, 'H00G', Player(7), GetRectCenter(gg_rct_Create_Seer), 90.00 )
set udg_FakeGeneral = GetLastCreatedUnit()
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "move", GetRectCenter(gg_rct_Facing_Raine) )
call PolledWait( 4.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), udg_FakeGeneral, "TRIGSTR_6754", null, "TRIGSTR_6755", bj_TIMETYPE_ADD, 4.00, true )
call PolledWait( 4.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), udg_FakeSeer, "TRIGSTR_6756", null, "TRIGSTR_6757", bj_TIMETYPE_ADD, 0.00, true )
call ForForce( GetPlayersAll(), function Trig_Fall_into_Darkness_Func039002 )
call ForForce( GetPlayersAll(), function Trig_Fall_into_Darkness_Func040002 )
call SetUserControlForceOn( GetPlayersAll() )
call CinematicModeExBJ( false, GetPlayersAll(), 2.00 )
call ShowInterfaceForceOn( GetPlayersAll(), 2 )
call UnitRemoveItemFromSlotSwapped( 3, GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_LeaderInKilling, Condition(function Trig_Fall_into_Darkness_Func044002001002))) )
call UnitRemoveItemFromSlotSwapped( 4, GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_LoserInKilling, Condition(function Trig_Fall_into_Darkness_Func045002001002))) )
call UnitRemoveItemFromSlotSwapped( 5, GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_Merchant, Condition(function Trig_Fall_into_Darkness_Func046002001002))) )
call UnitRemoveItemFromSlotSwapped( 6, GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_Beggar, Condition(function Trig_Fall_into_Darkness_Func047002001002))) )
call UnitAddItemByIdSwapped( 'I02J', GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_LeaderInKilling, Condition(function Trig_Fall_into_Darkness_Func048002001002))) )
call UnitAddItemByIdSwapped( 'I02P', GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_LoserInKilling, Condition(function Trig_Fall_into_Darkness_Func049002001002))) )
call UnitAddItemByIdSwapped( 'I02O', GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_Merchant, Condition(function Trig_Fall_into_Darkness_Func050002001002))) )
call UnitAddItemByIdSwapped( 'I02Q', GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_Beggar, Condition(function Trig_Fall_into_Darkness_Func051002001002))) )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Seer_Stops), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Facing_Raine), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl" )
call PolledWait( 1.50 )
call RemoveUnit( udg_FakeGeneral )
call RemoveUnit( udg_FakeSeer )
call PolledWait( 0.50 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PolledWait( 2.00 )
call QuestSetTitleBJ( udg_ChapterQuest, "TRIGSTR_6758" )
call QuestSetDescriptionBJ( udg_ChapterQuest, "TRIGSTR_6759" )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_6760" )
call QuestSetDescriptionBJ( udg_Quest4, "TRIGSTR_6761" )
call QuestSetCompletedBJ( udg_Quest4, true )
call PlaySoundBJ( gg_snd_QuestNew )
call PolledWait( 3.00 )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_6762", "TRIGSTR_6763", "ReplaceableTextures\\CommandButtons\\BTNDizzy.blp" )
set udg_Quest5 = GetLastCreatedQuestBJ()
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_6765" )
call ForForce( udg_PlayerGroup, function Trig_Fall_into_Darkness_Func072002 )
call EnableTrigger( gg_trg_East_Gate )
if ( Trig_Fall_into_Darkness_Func074C() ) then
call PolledWait( 6.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6769" )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Fall_into_Darkness takes nothing returns nothing
set gg_trg_Fall_into_Darkness = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Fall_into_Darkness, gg_unit_N03O_0622, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Fall_into_Darkness, function Trig_Fall_into_Darkness_Actions )
endfunction
function Trig_Fall_into_Darkness_Short_Func002002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Fall_into_Darkness_Short_Func003002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Fall_into_Darkness_Short_Func004002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Fall_into_Darkness_Short_Func005002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Fall_into_Darkness_Short_Func006002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Fall_into_Darkness_Short_Func007002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Fall_into_Darkness_Short_Func008002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Fall_into_Darkness_Short_Func009002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Fall_into_Darkness_Short_Func010002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Fall_into_Darkness_Short_Func011002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Fall_into_Darkness_Short_Func012002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Fall_into_Darkness_Short_Func025002 takes nothing returns nothing
call AdjustPlayerStateBJ( 1, GetEnumPlayer(), PLAYER_STATE_RESOURCE_LUMBER )
endfunction
function Trig_Fall_into_Darkness_Short_Func027C takes nothing returns boolean
if ( not ( udg_CiaraJoined == true ) ) then
return false
endif
return true
endfunction
function Trig_Fall_into_Darkness_Short_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call ForGroupBJ( GetUnitsOfTypeIdAll('u00X'), function Trig_Fall_into_Darkness_Short_Func002002 )
call ForGroupBJ( GetUnitsOfTypeIdAll('n03N'), function Trig_Fall_into_Darkness_Short_Func003002 )
call ForGroupBJ( GetUnitsOfTypeIdAll('u00Y'), function Trig_Fall_into_Darkness_Short_Func004002 )
call UnitRemoveItemFromSlotSwapped( 3, GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_LeaderInKilling, Condition(function Trig_Fall_into_Darkness_Short_Func005002001002))) )
call UnitRemoveItemFromSlotSwapped( 4, GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_LoserInKilling, Condition(function Trig_Fall_into_Darkness_Short_Func006002001002))) )
call UnitRemoveItemFromSlotSwapped( 5, GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_Merchant, Condition(function Trig_Fall_into_Darkness_Short_Func007002001002))) )
call UnitRemoveItemFromSlotSwapped( 6, GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_Beggar, Condition(function Trig_Fall_into_Darkness_Short_Func008002001002))) )
call UnitAddItemByIdSwapped( 'I02J', GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_LeaderInKilling, Condition(function Trig_Fall_into_Darkness_Short_Func009002001002))) )
call UnitAddItemByIdSwapped( 'I02P', GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_LoserInKilling, Condition(function Trig_Fall_into_Darkness_Short_Func010002001002))) )
call UnitAddItemByIdSwapped( 'I02O', GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_Merchant, Condition(function Trig_Fall_into_Darkness_Short_Func011002001002))) )
call UnitAddItemByIdSwapped( 'I02Q', GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_Beggar, Condition(function Trig_Fall_into_Darkness_Short_Func012002001002))) )
call PolledWait( 2.00 )
call QuestSetTitleBJ( udg_ChapterQuest, "TRIGSTR_7634" )
call QuestSetDescriptionBJ( udg_ChapterQuest, "TRIGSTR_7635" )
call FlashQuestDialogButtonBJ( )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_7636" )
call QuestSetDescriptionBJ( udg_Quest4, "TRIGSTR_7637" )
call QuestSetCompletedBJ( udg_Quest4, true )
call PlaySoundBJ( gg_snd_QuestNew )
call PolledWait( 3.00 )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_7638", "TRIGSTR_7639", "ReplaceableTextures\\CommandButtons\\BTNDizzy.blp" )
set udg_Quest5 = GetLastCreatedQuestBJ()
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_7640" )
call ForForce( udg_PlayerGroup, function Trig_Fall_into_Darkness_Short_Func025002 )
call EnableTrigger( gg_trg_East_Gate )
if ( Trig_Fall_into_Darkness_Short_Func027C() ) then
call PolledWait( 6.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_7641" )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Fall_into_Darkness_Short takes nothing returns nothing
set gg_trg_Fall_into_Darkness_Short = CreateTrigger( )
call DisableTrigger( gg_trg_Fall_into_Darkness_Short )
call TriggerRegisterUnitEvent( gg_trg_Fall_into_Darkness_Short, gg_unit_N03O_0622, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Fall_into_Darkness_Short, function Trig_Fall_into_Darkness_Short_Actions )
endfunction
function Trig_Facing_Seer_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetEnteringUnit()) == 'n03U' ) ) then
return false
endif
return true
endfunction
function Trig_Facing_Seer_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call SetUnitFacingTimed( GetEnteringUnit(), 0.00, 0.50 )
endfunction
//===========================================================================
function InitTrig_Facing_Seer takes nothing returns nothing
set gg_trg_Facing_Seer = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Facing_Seer, gg_rct_Seer_Stops )
call TriggerAddCondition( gg_trg_Facing_Seer, Condition( function Trig_Facing_Seer_Conditions ) )
call TriggerAddAction( gg_trg_Facing_Seer, function Trig_Facing_Seer_Actions )
endfunction
function Trig_High_Voltage_Warning_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6735" )
call PlaySoundBJ( gg_snd_QuestLog )
endfunction
//===========================================================================
function InitTrig_High_Voltage_Warning takes nothing returns nothing
set gg_trg_High_Voltage_Warning = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_High_Voltage_Warning, gg_rct_WARNING_EXTREMER_DANGERER )
call TriggerAddAction( gg_trg_High_Voltage_Warning, function Trig_High_Voltage_Warning_Actions )
endfunction
function Trig_Tiamat_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6790" )
endfunction
//===========================================================================
function InitTrig_Tiamat takes nothing returns nothing
set gg_trg_Tiamat = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Tiamat, gg_rct_Tiamat )
call TriggerAddAction( gg_trg_Tiamat, function Trig_Tiamat_Actions )
endfunction
function Trig_Tiamat_Dies_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6791" )
call UnitAddAbilityBJ( 'A0CT', gg_unit_n03V_0717 )
call PlaySoundBJ( gg_snd_QuestLog )
endfunction
//===========================================================================
function InitTrig_Tiamat_Dies takes nothing returns nothing
set gg_trg_Tiamat_Dies = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Tiamat_Dies, gg_unit_u012_0671, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Tiamat_Dies, function Trig_Tiamat_Dies_Actions )
endfunction
function Trig_Flashback_1_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6794" )
endfunction
//===========================================================================
function InitTrig_Flashback_1 takes nothing returns nothing
set gg_trg_Flashback_1 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Flashback_1, gg_rct_Flashback_1 )
call TriggerAddAction( gg_trg_Flashback_1, function Trig_Flashback_1_Actions )
endfunction
function Trig_Flashback_2_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6795" )
endfunction
//===========================================================================
function InitTrig_Flashback_2 takes nothing returns nothing
set gg_trg_Flashback_2 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Flashback_2, gg_rct_Flashback_2 )
call TriggerAddAction( gg_trg_Flashback_2, function Trig_Flashback_2_Actions )
endfunction
function Trig_Flashback_3_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6796" )
endfunction
//===========================================================================
function InitTrig_Flashback_3 takes nothing returns nothing
set gg_trg_Flashback_3 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Flashback_3, gg_rct_Flashback_3 )
call TriggerAddAction( gg_trg_Flashback_3, function Trig_Flashback_3_Actions )
endfunction
function Trig_The_Destroyer_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0CT' ) ) then
return false
endif
return true
endfunction
function Trig_The_Destroyer_Func017002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Leon, GetEnumPlayer(), 2.00 )
endfunction
function Trig_The_Destroyer_Func018002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Final_1), GetUnitLoc(gg_unit_U00J_0701) )
endfunction
function Trig_The_Destroyer_Func019002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Final_2), GetUnitLoc(gg_unit_U00J_0701) )
endfunction
function Trig_The_Destroyer_Func020002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Final_4), GetUnitLoc(gg_unit_U00J_0701) )
endfunction
function Trig_The_Destroyer_Func021002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Final_5), GetUnitLoc(gg_unit_U00J_0701) )
endfunction
function Trig_The_Destroyer_Func022002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Final_6), GetUnitLoc(gg_unit_U00J_0701) )
endfunction
function Trig_The_Destroyer_Func023002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Final_7), GetUnitLoc(gg_unit_U00J_0701) )
endfunction
function Trig_The_Destroyer_Func024002 takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ( GetEnumUnit(), GetRectCenter(gg_rct_Final_H), GetUnitLoc(gg_unit_U00J_0701) )
endfunction
function Trig_The_Destroyer_Func032002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_The_Destroyer_Func035002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_The_Destroyer_Func038002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_The_Destroyer_Func043002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_The_Destroyer_Func049002 takes nothing returns nothing
call ResetToGameCameraForPlayer( GetEnumPlayer(), 2.00 )
endfunction
function Trig_The_Destroyer_Func050002 takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetEnumPlayer(), GetRectCenter(gg_rct_Final_H), 2.00 )
endfunction
function Trig_The_Destroyer_Func056Func001001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_The_Destroyer_Func056Func001A takes nothing returns nothing
set udg_FinalCountdown = ( udg_FinalCountdown + 1 )
endfunction
function Trig_The_Destroyer_Func056A takes nothing returns nothing
call ForGroupBJ( GetUnitsOfPlayerMatching(GetEnumPlayer(), Condition(function Trig_The_Destroyer_Func056Func001001002)), function Trig_The_Destroyer_Func056Func001A )
endfunction
function Trig_The_Destroyer_Func057001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_The_Destroyer_Func057A takes nothing returns nothing
set udg_FinalCountdown = ( udg_FinalCountdown + 1 )
endfunction
function Trig_The_Destroyer_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisableTrigger( gg_trg_Watchman_Leaves )
call DisableTrigger( gg_trg_Gladiator_Leaves )
call DisableTrigger( gg_trg_Succubus_Leaves )
call DisableTrigger( gg_trg_Conjurer_Leaves )
call DisableTrigger( gg_trg_Ravager_Leaves )
call DisableTrigger( gg_trg_Dark_Archer_Leaves )
call PlaySoundBJ( gg_snd_TragicConfrontation )
call UnitRemoveAbilityBJ( 'A0CT', GetSpellAbilityUnit() )
call RemoveUnit( udg_Nathan )
call RemoveUnit( gg_unit_n01P_0230 )
call DisableTrigger( gg_trg_Revival )
call SetUserControlForceOff( GetPlayersAll() )
call ClearTextMessagesBJ( GetPlayersAll() )
call ShowInterfaceForceOff( GetPlayersAll(), 2 )
call CinematicModeExBJ( true, GetPlayersAll(), 2.00 )
call ForForce( GetPlayersAll(), function Trig_The_Destroyer_Func017002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(0)), function Trig_The_Destroyer_Func018002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(1)), function Trig_The_Destroyer_Func019002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(3)), function Trig_The_Destroyer_Func020002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(4)), function Trig_The_Destroyer_Func021002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(5)), function Trig_The_Destroyer_Func022002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(6)), function Trig_The_Destroyer_Func023002 )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(8)), function Trig_The_Destroyer_Func024002 )
call PolledWait( 2.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_U00J_0701, "TRIGSTR_6792", null, "TRIGSTR_6793", bj_TIMETYPE_ADD, 1.00, true )
call PolledWait( 1.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_U00J_0701, "TRIGSTR_6797", null, "TRIGSTR_6798", bj_TIMETYPE_ADD, 10.00, true )
call PolledWait( 10.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_U00J_0701, "TRIGSTR_6799", null, "TRIGSTR_6800", bj_TIMETYPE_ADD, 10.00, true )
call PolledWait( 10.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_LoserInKilling, Condition(function Trig_The_Destroyer_Func032002001002))), GetPlayerName(udg_LoserInKilling), null, "TRIGSTR_6801", bj_TIMETYPE_ADD, 0.00, true )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_U00J_0701, "TRIGSTR_6802", null, "TRIGSTR_6803", bj_TIMETYPE_ADD, 10.00, true )
call PolledWait( 10.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_LeaderInKilling, Condition(function Trig_The_Destroyer_Func035002001002))), GetPlayerName(udg_LeaderInKilling), null, "TRIGSTR_6804", bj_TIMETYPE_ADD, 0.00, true )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_U00J_0701, "TRIGSTR_6805", null, "TRIGSTR_6806", bj_TIMETYPE_ADD, 10.00, true )
call PolledWait( 10.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_Beggar, Condition(function Trig_The_Destroyer_Func038002001002))), GetPlayerName(udg_Beggar), null, "TRIGSTR_6809", bj_TIMETYPE_ADD, 0.00, true )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_U00J_0701, "TRIGSTR_6810", null, "TRIGSTR_6811", bj_TIMETYPE_ADD, 3.00, true )
call PolledWait( 3.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_U00J_0701, "TRIGSTR_6812", null, "TRIGSTR_6813", bj_TIMETYPE_ADD, 7.00, true )
call PolledWait( 7.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GroupPickRandomUnit(GetUnitsOfPlayerMatching(udg_Merchant, Condition(function Trig_The_Destroyer_Func043002001002))), GetPlayerName(udg_Merchant), null, "TRIGSTR_6814", bj_TIMETYPE_ADD, 1.00, true )
call PolledWait( 1.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_U00J_0701, "TRIGSTR_6815", null, "TRIGSTR_6816", bj_TIMETYPE_ADD, 5.00, true )
call PolledWait( 5.00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_U00J_0701, "TRIGSTR_6817", null, "TRIGSTR_6818", bj_TIMETYPE_ADD, 1.00, true )
call PolledWait( 1.00 )
call ForForce( GetPlayersAll(), function Trig_The_Destroyer_Func049002 )
call ForForce( GetPlayersAll(), function Trig_The_Destroyer_Func050002 )
call SetUserControlForceOn( GetPlayersAll() )
call CinematicModeExBJ( false, GetPlayersAll(), 2.00 )
call ShowInterfaceForceOn( GetPlayersAll(), 2 )
call StopSoundBJ( gg_snd_TragicConfrontation, true )
call PlaySoundBJ( gg_snd_BloodElfTheme )
call ForForce( udg_PlayerGroup, function Trig_The_Destroyer_Func056A )
call ForGroupBJ( GetUnitsOfPlayerMatching(Player(8), Condition(function Trig_The_Destroyer_Func057001002)), function Trig_The_Destroyer_Func057A )
call PolledWait( 2.00 )
call EnableTrigger( gg_trg_Countdown )
call EnableTrigger( gg_trg_Judgment )
call IssueImmediateOrderBJ( gg_unit_U00J_0701, "locustswarm" )
call PolledWait( 1.00 )
call IssueTargetOrderBJ( gg_unit_U00J_0701, "drunkenhaze", GroupPickRandomUnit(GetUnitsOfPlayerAll(udg_LeaderInKilling)) )
call PolledWait( 30.00 )
call IssueTargetOrderBJ( gg_unit_U00J_0701, "drunkenhaze", GroupPickRandomUnit(GetUnitsOfPlayerAll(udg_LoserInKilling)) )
call PolledWait( 30.00 )
call IssueImmediateOrderBJ( gg_unit_U00J_0701, "locustswarm" )
call PolledWait( 1.00 )
call IssueTargetOrderBJ( gg_unit_U00J_0701, "drunkenhaze", GroupPickRandomUnit(GetUnitsOfPlayerAll(udg_Beggar)) )
call PolledWait( 30.00 )
call IssueTargetOrderBJ( gg_unit_U00J_0701, "drunkenhaze", GroupPickRandomUnit(GetUnitsOfPlayerAll(udg_Merchant)) )
call PolledWait( 30.00 )
call IssueImmediateOrderBJ( gg_unit_U00J_0701, "locustswarm" )
call PolledWait( 1.00 )
call IssueTargetOrderBJ( gg_unit_U00J_0701, "drunkenhaze", GroupPickRandomUnit(GetUnitsOfPlayerAll(udg_LeaderInKilling)) )
endfunction
//===========================================================================
function InitTrig_The_Destroyer takes nothing returns nothing
set gg_trg_The_Destroyer = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_The_Destroyer, Player(10), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_The_Destroyer, Condition( function Trig_The_Destroyer_Conditions ) )
call TriggerAddAction( gg_trg_The_Destroyer, function Trig_The_Destroyer_Actions )
endfunction
function Trig_Ragnarok_Func013002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Ocean, GetEnumPlayer(), 0.01 )
endfunction
function Trig_Ragnarok_Func020002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Port, GetEnumPlayer(), 40.00 )
endfunction
function Trig_Ragnarok_Func041A takes nothing returns nothing
call CustomVictoryBJ( GetEnumPlayer(), true, true )
endfunction
function Trig_Ragnarok_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisableTrigger( gg_trg_Judgment )
call StopSoundBJ( gg_snd_BloodElfTheme, true )
call PlaySoundBJ( gg_snd_Comradeship )
call PolledWait( 5.00 )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUT, 5.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call ClearTextMessagesBJ( GetPlayersAll() )
call SetUserControlForceOff( GetPlayersAll() )
call ClearTextMessagesBJ( GetPlayersAll() )
call ShowInterfaceForceOff( GetPlayersAll(), 5.00 )
call CinematicModeExBJ( true, GetPlayersAll(), 5.00 )
call PolledWait( 5.00 )
call ForForce( GetPlayersAll(), function Trig_Ragnarok_Func013002 )
call PolledWait( 1.00 )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_6880" )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEIN, 5.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call PolledWait( 3.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6881" )
call PolledWait( 2.00 )
call ForForce( GetPlayersAll(), function Trig_Ragnarok_Func020002 )
call PolledWait( 15.00 )
call ClearTextMessagesBJ( GetPlayersAll() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6883" )
call PolledWait( 15.00 )
call ClearTextMessagesBJ( GetPlayersAll() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6884" )
call PolledWait( 15.00 )
call ClearTextMessagesBJ( GetPlayersAll() )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_6885" )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUT, 5.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call PolledWait( 5.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6888" )
call DisplayTextToForce( bj_FORCE_PLAYER[0], "TRIGSTR_6889" )
call DisplayTextToForce( bj_FORCE_PLAYER[1], "TRIGSTR_6890" )
call DisplayTextToForce( bj_FORCE_PLAYER[3], "TRIGSTR_6891" )
call DisplayTextToForce( bj_FORCE_PLAYER[4], "TRIGSTR_6892" )
call DisplayTextToForce( bj_FORCE_PLAYER[5], "TRIGSTR_6893" )
call DisplayTextToForce( bj_FORCE_PLAYER[6], "TRIGSTR_6894" )
call PolledWait( 5.00 )
call SetUserControlForceOn( GetPlayersAll() )
call ForForce( GetPlayersAll(), function Trig_Ragnarok_Func041A )
endfunction
//===========================================================================
function InitTrig_Ragnarok takes nothing returns nothing
set gg_trg_Ragnarok = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Ragnarok, gg_unit_U00J_0701, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Ragnarok, function Trig_Ragnarok_Actions )
endfunction
function Trig_Countdown_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetDyingUnit() != gg_unit_U00J_0701 ) ) then
return false
endif
return true
endfunction
function Trig_Countdown_Actions takes nothing returns nothing
set udg_FinalCountdown = ( udg_FinalCountdown - 1 )
endfunction
//===========================================================================
function InitTrig_Countdown takes nothing returns nothing
set gg_trg_Countdown = CreateTrigger( )
call DisableTrigger( gg_trg_Countdown )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Countdown, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Countdown, Condition( function Trig_Countdown_Conditions ) )
call TriggerAddAction( gg_trg_Countdown, function Trig_Countdown_Actions )
endfunction
function Trig_Judgment_Func006001002 takes nothing returns boolean
return ( GetFilterUnit() != gg_unit_U00J_0701 )
endfunction
function Trig_Judgment_Func006A takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Judgment_Func015002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Leon, GetEnumPlayer(), 0.01 )
endfunction
function Trig_Judgment_Func020002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Rotation, GetEnumPlayer(), 20.00 )
endfunction
function Trig_Judgment_Func029002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_End_of_all_things, GetEnumPlayer(), 20.00 )
endfunction
function Trig_Judgment_Func040A takes nothing returns nothing
call CustomDefeatBJ( GetEnumPlayer(), "TRIGSTR_6997" )
endfunction
function Trig_Judgment_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisableTrigger( gg_trg_Ragnarok )
call StopSoundBJ( gg_snd_BloodElfTheme, true )
call PlaySoundBJ( gg_snd_HumanX1 )
call SetUnitInvulnerable( gg_unit_U00J_0701, true )
call ForGroupBJ( GetUnitsInRectMatching(gg_rct_Ragnarok, Condition(function Trig_Judgment_Func006001002)), function Trig_Judgment_Func006A )
call PolledWait( 5.00 )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUT, 5.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call ClearTextMessagesBJ( GetPlayersAll() )
call SetUserControlForceOff( GetPlayersAll() )
call ClearTextMessagesBJ( GetPlayersAll() )
call ShowInterfaceForceOff( GetPlayersAll(), 5.00 )
call CinematicModeExBJ( true, GetPlayersAll(), 5.00 )
call PolledWait( 5.00 )
call ForForce( GetPlayersAll(), function Trig_Judgment_Func015002 )
call SetUnitPositionLocFacingBJ( gg_unit_U00J_0701, GetRectCenter(gg_rct_Destroyer), 90.00 )
call CreateNUnitsAtLoc( 1, 'u013', Player(9), GetRectCenter(gg_rct_Final_H), 90.00 )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "blizzard", GetRectCenter(gg_rct_Final_H) )
call PolledWait( 1.00 )
call ForForce( GetPlayersAll(), function Trig_Judgment_Func020002 )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_6991" )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEIN, 5.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call PolledWait( 3.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6992" )
call PolledWait( 9.00 )
call ClearTextMessagesBJ( GetPlayersAll() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6993" )
call PolledWait( 7.00 )
call ForForce( GetPlayersAll(), function Trig_Judgment_Func029002 )
call ClearTextMessagesBJ( GetPlayersAll() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6994" )
call PolledWait( 10.00 )
call ClearTextMessagesBJ( GetPlayersAll() )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_6995" )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUT, 5.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call PolledWait( 5.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_6996" )
call PolledWait( 5.00 )
call SetUserControlForceOn( GetPlayersAll() )
call ForForce( GetPlayersAll(), function Trig_Judgment_Func040A )
endfunction
//===========================================================================
function InitTrig_Judgment takes nothing returns nothing
set gg_trg_Judgment = CreateTrigger( )
call DisableTrigger( gg_trg_Judgment )
call TriggerRegisterVariableEvent( gg_trg_Judgment, "udg_FinalCountdown", LESS_THAN_OR_EQUAL, 0 )
call TriggerAddAction( gg_trg_Judgment, function Trig_Judgment_Actions )
endfunction
function Trig_Maverick_Retrains_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I00I' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'E017' ) ) then
return false
endif
return true
endfunction
function Trig_Maverick_Retrains_Actions takes nothing returns nothing
set udg_EyeOfTheStorm = null
set udg_ChaosRain = 50.00
endfunction
//===========================================================================
function InitTrig_Maverick_Retrains takes nothing returns nothing
set gg_trg_Maverick_Retrains = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Maverick_Retrains, EVENT_PLAYER_UNIT_USE_ITEM )
call TriggerAddCondition( gg_trg_Maverick_Retrains, Condition( function Trig_Maverick_Retrains_Conditions ) )
call TriggerAddAction( gg_trg_Maverick_Retrains, function Trig_Maverick_Retrains_Actions )
endfunction