Name | Type | is_array | initial_value |
AbsorbHeat1Backfire | real | Yes | 0.00 |
AbsorbHeatDmgSelf | real | Yes | |
AbsorbHeatDmgSelfOrb | real | Yes | |
AbsorbHeatMana | real | Yes | |
AbsorbHeatManaOrb | real | Yes | |
AbsorbHeatRange | real | Yes | |
AcidSurgeVictim | unit | No | |
ActivePlayers | integer | No | |
ADexVar | integer | No | |
AdomachBlinkSpotInit | rect | Yes | |
AdomachBlinkTarget | integer | No | |
AdomachCurrentLocation | integer | No | |
AdomachHimself | unit | No | |
AdomachOkToBlink | boolean | No | true |
AdomachParalyzeRayGroup | group | No | |
AdomachSpellList | integer | No | |
AdomachSpells | trigger | Yes | |
Aggression | integer | No | |
AggressiveSpellcaster | unit | No | |
AHTimeSecs | integer | No | |
AidAnother | unit | No | |
AidAnotherTimer | real | No | 5.00 |
AllPrisonersAlive | boolean | No | false |
AlreadyHaveFolkSpawn | boolean | No | |
AmbidextrousUnit | unit | No | |
AMfearChance | integer | No | |
AntiDuplicateTxt | boolean | No | |
apothecary | abilcode | Yes | |
AppliedKnowledge | unit | No | |
ArcaneArcherAgi | real | No | 0.00 |
ArcaneArcherBonusA | boolean | No | false |
ArcaneArcherBonusB | boolean | No | false |
ArcaneArcherPlayer | player | No | |
ArtificierFeatOn | boolean | No | |
ArtificierRockRI | integer | No | |
ArtificierStoneTable | itemcode | Yes | |
ArtiRockDrop | integer | No | |
Assassinate | integer | No | |
AssassinateCount | integer | No | |
AssaultChance | integer | No | 5 |
AssaultMultiplier | integer | No | |
AuctioneerLevel | integer | No | 1 |
AuctionItemForSaleRarity | integer | No | |
AuctionPrice | integer | No | |
AuroraRaysOn | weathereffect | No | |
AxeBrotherBonusA | boolean | No | false |
AxeBrotherBonusB | boolean | No | false |
AxeBrotherPlayer | player | No | |
BardicRepertoirRank | integer | No | |
BardPlayer | player | No | |
BaseAttackMusic | boolean | No | |
BattleExpBonus | integer | No | |
BattleEXPChance | integer | No | |
BattleEXPPlayer | player | No | |
BattleEXPRank | integer | No | |
BattleEXPUnit | unit | No | |
BattleShoutCount | integer | No | |
BeastTrainingRank | integer | No | |
BlastCast | integer | No | |
BlazingVictory | boolean | No | true |
BlazingVictoryTimer | timer | No | |
BlindPlayer | player | No | |
BloodFeast | real | No | 0.00 |
BonusExpMSg | texttag | No | |
bonusFirstToBuildOn | boolean | No | |
bonusFirstToResearchOn | boolean | No | |
BorderSkirmisherHero | unit | No | |
BossDrop | integer | No | |
BossGanked | integer | No | |
BossMusic | boolean | No | |
BossSpellDrop | integer | No | |
BruteForceHero | unit | No | |
CaveInSFX | effect | No | |
CentaurDruidBonusA | boolean | No | false |
CentaurDruidBonusB | boolean | No | false |
CentaurDruidPlayer | player | No | |
CentaurTreantTotal | integer | No | 2 |
ChampionOfTheFallenFeat | boolean | No | |
ChaosChord | integer | No | 8 |
ChaosChordCount | integer | No | 0 |
ChestArea | location | No | |
ChestSFX | effect | No | |
ChestTrap | integer | No | |
ChestTrapType | integer | No | |
Circle0Scrolls | itemcode | Yes | |
Circle1Scrolls | itemcode | Yes | |
Circle2Scrolls | itemcode | Yes | |
ClericElvenWordBonusA | boolean | No | |
ClericElvenWordBonusB | boolean | No | |
ClericEWPlayer | player | No | |
ClericofOrderBonusA | boolean | No | false |
ClericofOrderBonusB | boolean | No | false |
ClericofOrderPlayer | player | No | |
ClericOfTheSmallFolk | unit | No | |
ClericOTSFBonusA | boolean | No | false |
ClericOTSFBonusB | boolean | No | false |
ClericOTSFPlayer | player | No | |
ClericSmallFolkHealBonusTotal | integer | No | |
ClericSmallFolkSlingshotBonus | integer | No | |
CloseCall | boolean | No | |
CondemnTarget | unit | No | |
ConstructionResearch | integer | No | |
CoralBladeBlessingCurrent | unit | No | |
CoralBlessingOn | boolean | No | |
CrescendoBlowsSFX | effect | No | |
CrescendoCurrentAttacks | integer | No | |
CrescendoMaxAttacks | integer | No | 29 |
CrestedDrakeBonusA | boolean | No | false |
CrestedDrakeBonusB | boolean | No | false |
CrestedDrakePlayer | player | No | |
CrusadeLevel | integer | No | |
CurrentForage | integer | No | |
CurrentGoldDeathUpgrade | integer | No | |
CurrentHeroIntroLoc | rect | Yes | RectNull |
CurrentIntroLocInt | integer | No | 0 |
CurrentItemLevelDrops | integer | No | 1 |
CurrentLevel | integer | No | 1 |
CurrentMelee | unitcode | No | |
CurrentMeleeMove | unitcode | No | |
CurrentPlayer | player | No | |
CurrentPlayerMSG | force | No | |
CurrentRootTrapLevel | integer | No | |
CurrentSpeaker | player | No | |
CurrentTotemicSpirit | unit | No | |
CurrentTrackMusic | integer | No | |
CurrentVersion | string | No | v0.21i |
CursedItemBonus | integer | No | |
CursedItemDrop | integer | No | |
CursedItemOn | boolean | No | true |
CursedKillDropCounter | integer | No | |
DaggerTossDamage | integer | No | |
DaggerTossTotalDmg | integer | Yes | |
DarkOneBeaten | boolean | No | |
DarkOneWeakened | boolean | No | |
Ddtest | boolean | No | |
DeathMSG | force | No | |
DeathWardDuration | integer | No | 5 |
DeathWardedTarget | unit | No | |
DeathWardRevive | rect | No | |
DecimateChance | integer | No | |
DecimateCount | integer | No | |
DecoysRetinue | integer | No | |
DefendingSilmeria | boolean | No | |
DefensivePosture | unit | No | |
DenyWeather | integer | No | |
DerringDoChance | integer | No | |
DerringDoProc | integer | No | |
DHRezzChance | integer | No | |
DialoguePrelude | string | Yes | |
DieHard | unit | No | |
DieHardActivated | boolean | No | |
Difficulty | string | No | |
DifficultyModifier | integer | No | |
DiscipleBonusA | boolean | No | |
DiscipleBonusB | boolean | No | |
DiscipleMRCount | integer | No | |
DisciplePlayer | player | No | |
DojoAgiLv1Active | boolean | No | |
DojoAllLv1Active | boolean | No | |
DojoIntLv1Active | boolean | No | |
DojoStrLv1Active | boolean | No | |
DrakeFangCount | integer | No | |
DuplicateHero | integer | Yes | |
DwarvenAMPlayer | player | No | |
DwarvenAxeMasterBonusA | boolean | No | |
DwarvenAxeMasterBonusB | boolean | No | |
DwarvenRFBonusA | boolean | No | |
DwarvenRFBonusB | boolean | No | |
DwarvenRFPlayer | player | No | |
DwarvenStamina | integer | No | |
EagleArrowTotal | integer | No | |
EagleEyeLearn | integer | No | |
EarthenChance | integer | No | |
EarthenPresence | integer | No | |
EarthenTemplarBonusA | boolean | No | false |
EarthenTemplarBonusB | boolean | No | false |
EarthenTemplarPlayer | player | No | |
EasyQuest | integer | No | |
EasyQuestMessage | string | Yes | |
ElvenBlessingCount | integer | No | |
ElvenCryptguard | unit | No | |
ElvenRebirthCooldown | real | No | 10.00 |
ElvenSniper | unit | No | |
ElvenSniperPlayer | player | No | |
EnemyStartLoc | rect | Yes | |
EnergyRegenTotal | integer | No | 1 |
EngineerMaxBuildings | integer | No | 5 |
EngineerPlayer | player | No | |
EpicArtiSellOff | integer | No | |
EssenceShockCast | integer | No | |
ExorcismValue | real | No | |
ExplosionFX1 | effect | Yes | |
ExplosionShrapnelType | unitcode | Yes | |
ExplosiveGrowth | integer | No | |
ExplosiveGrowthTotal | integer | No | 25 |
ExtraFastHero | unit | No | |
ExtraSmartHero | unit | No | |
ExtraStrongHero | unit | No | |
FamiliarHero | unit | No | |
FamiliarPet | unit | No | |
FangStrikeActive | boolean | No | |
FangStrikeRank | integer | No | |
FarShotLearn | integer | No | |
FarShotTotal | integer | No | |
FastBossMusic | boolean | No | |
FearGroup | group | No | |
FeatSelectionDone | boolean | No | false |
FeralArchonBonus | boolean | No | false |
FeralArchonBonusB | boolean | No | false |
FeralArchonPlayer | player | No | |
FilchAmount | integer | No | |
FinalBossMusicOn | boolean | No | |
Fireball | unitcode | Yes | |
FireballRank | integer | No | |
FireFlowerManaCounter | integer | No | |
FireFlowerManaDrain | real | Yes | |
FireNova | unitcode | Yes | |
FireNovaRank | integer | No | |
FirstAidInt | integer | No | |
FirstAidIntReal | real | No | |
FirstToBuild | player | No | |
FirstToDing | player | No | |
FirstToDingOn | boolean | No | |
FirstToResearch | player | No | |
FlameWreathCount | integer | No | |
FlameWreathDamage | integer | No | 25 |
FleshmakerVar | integer | No | |
Flurry | unit | No | |
FlurryCount | integer | No | |
FlurryVar | integer | No | |
ForageItems | itemcode | Yes | |
FountainMana | integer | No | |
FountainMaxMana | integer | No | |
GameStarted | boolean | No | |
GarrisonAOccupied | boolean | No | |
GarrisonBOccupied | boolean | No | |
GarrisonCOccupied | boolean | No | |
GarrisonDOccupied | boolean | No | |
GarrisonEOccupied | boolean | No | |
GarrisonFOccupied | boolean | No | |
GarrisonGOccupied | boolean | No | |
GarrisonHOccupied | boolean | No | |
GarrisonIOccupied | boolean | No | |
GarrisonJOccupied | boolean | No | |
GKSpellDrops | itemcode | Yes | |
GnasherDead | boolean | No | false |
GnasherDrops | itemcode | Yes | |
GnasherSpellDrops | itemcode | Yes | |
GoblinDrops | itemcode | Yes | |
GoblinSlayer | boolean | No | |
GoldMessage | texttag | No | |
GraceBonusObtained | boolean | No | |
GuardPostABuilt | boolean | No | |
GuardPostBBuilt | boolean | No | |
GuardPostCBuilt | boolean | No | |
GuardPostLocationA | location | No | |
GuardPostLocationB | location | No | |
GuardPostLocationC | location | No | |
GuardPostMeleeType | unitcode | No | h04Z |
GuardPostRangedType | unitcode | No | n00Z |
HagglerDiscountEpic | integer | No | 0 |
HagglerDiscountRare | integer | No | 0 |
HardinessHero | unit | No | |
HarmonyRank | integer | No | |
HasRogueAttacked | boolean | No | |
HavenAnim | effect | No | |
HavenIsOn | boolean | No | |
HavenManaRepelCost | real | No | 15.00 |
HavenRandomArea | rect | Yes | |
HealingSongOn | boolean | No | |
HealingSongRanks | abilcode | Yes | |
HeartyMoraleHero | unit | No | |
HEBardBonusA | boolean | No | false |
HEBardBonusB | boolean | No | false |
HeroAssassination | boolean | No | false |
HeroDeathCry | integer | No | |
HeroesDeadThisRound | integer | No | |
HeroFlawlessDeath | boolean | No | true |
HeroPicked | unitcode | Yes | |
HeroSelected | integer | No | |
HeroTaken | integer | Yes | |
HeroText | string | Yes | |
HeroWithBlackweave | unit | No | |
HewDamage | real | No | 0.00 |
HighestLevel | integer | No | |
HiredWages | integer | No | |
HiredWagesMsg | texttag | No | |
HiredWagesPlayer | player | No | |
HiredWagesUnit | unit | No | |
HumanEngineerBonusA | boolean | No | false |
HumanEngineerBonusB | boolean | No | false |
HumanEngineerPlayer | player | No | |
HWDexChance | integer | No | |
HWIntChance | integer | No | |
HWStrChance | integer | No | |
HymnofFrostOn | boolean | No | |
HymnOfFrostRanks | abilcode | Yes | |
IllusionistPlayer | player | No | |
InnSign | texttag | No | |
IntimShoutGroup | group | No | |
IntroMusicOn | boolean | No | true |
InversionMaxHealth | real | No | |
InversionSkillRank | integer | No | |
IronSkinArmor | integer | No | |
IronSkinHero | unit | No | |
ItemCleanUpOn | boolean | No | |
ItemCurrentlyForSale | itemcode | No | |
ItemDrop | integer | No | |
ItemDropTotal | integer | No | 50 |
ItemDropUnitPoint | location | No | |
ItemName | item | No | |
ItemSHopUpgrade | integer | No | |
KillsForAxeBrother | integer | No | |
LastStand | integer | No | |
LavaAxeLearn | integer | No | |
LayOnHands | integer | No | |
LeaverGold | integer | No | |
Leavers | force | No | |
Level13Beaten | boolean | No | |
Level18Beaten | boolean | No | |
Level21Beaten | boolean | No | |
LevelBeaten | boolean | No | |
LevelBonus | integer | No | |
LevelBonuses | boolean | Yes | false |
LevelDiffModifier | integer | No | |
LevelUpP1 | texttag | No | |
LevelUpP2 | texttag | No | |
LevelUpP3 | texttag | No | |
LevelUpP4 | texttag | No | |
LevelUpP5 | texttag | No | |
LevelUpP6 | texttag | No | |
LevelUpP7 | texttag | No | |
LevelUpP8 | texttag | No | |
LifeLinkMultiplier | real | No | 3.00 |
LifelinkRank | integer | No | |
LifeLinkTotal | real | No | |
LivingAxeKills | integer | No | |
Locksmithing | integer | No | 0 |
LoHValue | integer | No | |
LuckEffect | integer | No | |
LuckVariable | integer | No | |
LuckyRoll | integer | No | |
Lv1Artifact | itemcode | Yes | |
Lv1CursedItemDrop | itemcode | Yes | |
Lv1Epic | itemcode | Yes | |
Lv1EpicSetItem | itemcode | Yes | |
Lv1Rare | itemcode | Yes | |
Lv1RareSetItem | itemcode | Yes | |
Lv1TotalArtifacts | integer | No | 9 |
Lv1TotalEpics | integer | No | 9 |
Lv1TotalEpicSetItems | integer | No | 5 |
Lv1TotalRares | integer | No | 9 |
Lv1TotalRareSetItems | integer | No | 11 |
Lv1TotalUncommons | integer | No | 9 |
Lv1Uncommon | itemcode | Yes | |
Lv21Chance | integer | No | |
Lv21Victory | integer | No | |
Lv2Artifact | itemcode | Yes | |
Lv2Epic | itemcode | Yes | |
Lv2EpicSetItem | itemcode | Yes | |
Lv2Rare | itemcode | Yes | |
Lv2RareSetItem | itemcode | Yes | |
Lv2TotalArtifacts | integer | No | 30 |
Lv2TotalEpics | integer | No | 30 |
Lv2TotalEpicSetItems | integer | No | 5 |
Lv2TotalRares | integer | No | 30 |
Lv2TotalRareSetItems | integer | No | 8 |
Lv2TotalUncommons | integer | No | 30 |
Lv2Uncommon | itemcode | Yes | |
Lv5SpellBonus | integer | No | |
MajinPenalty | boolean | No | false |
MajinPlayer | player | No | |
ManaMasteryHero | unit | No | |
ManAtArmsBonusA | boolean | No | false |
ManAtArmsBonusB | boolean | No | false |
ManAtArmsPlayer | player | No | |
MarvelResearch | integer | No | |
MasterOfTheArtPlayer | player | No | |
MasterOTABonusA | boolean | No | false |
MasterOTABonusB | boolean | No | false |
MegaBoss1Beaten | boolean | No | |
MeldokkDrops | itemcode | Yes | |
MeldokkSpellDrops | itemcode | Yes | |
MeteorlogistFeatOn | boolean | No | |
MeteorStormManaDrain | real | No | 35.00 |
MidasHero | unit | No | |
MidasPurifiedAlready | boolean | No | |
MidasTouchPlayer | player | No | |
MiserPlayer | player | No | |
MonkEFBonusA | boolean | No | false |
MonkEFBonusB | boolean | No | false |
MonkEFPlayer | player | No | |
MostKills | integer | No | |
MotABurstChance | integer | No | |
MovementMarchOn | boolean | No | |
MovementMarchRanks | abilcode | Yes | |
MusicOn | boolean | No | |
NearDefeatMusic | boolean | No | |
NextLevelTimerWindow | timerdialog | No | |
OdeToWarOn | boolean | No | |
OdeToWarRanks | abilcode | Yes | |
Only1Engineer | boolean | No | true |
Only1ManAtArms | boolean | No | true |
Only1Paladin | boolean | No | true |
Only1Solar | boolean | No | true |
OpportunistSFX | effect | No | |
OpportunistTotalGold | integer | No | |
OptionalBossMusic3D | sound | No | |
OtherSellOff | integer | No | |
P1CameraBounds | camerasetup | No | |
P1Companion | integer | Yes | |
P1Hero | unit | No | |
P1Kills | integer | No | |
P1MoveCount | integer | No | |
P1RelationLevel | integer | No | 1 |
P1Score | integer | No | |
P2CameraBounds | camerasetup | No | |
P2Companion | integer | Yes | |
P2Hero | unit | No | |
P2Kills | integer | No | |
P2MoveCount | integer | No | |
P2RelationLevel | integer | No | 1 |
P2Score | integer | No | |
P3CameraBounds | camerasetup | No | |
P3Companion | integer | Yes | |
P3Hero | unit | No | |
P3Kills | integer | No | |
P3MoveCount | integer | No | |
P3RelationLeve | integer | No | 1 |
P3Score | integer | No | |
P4CameraBounds | camerasetup | No | |
P4Companion | integer | Yes | |
P4Hero | unit | No | |
P4Kills | integer | No | |
P4MoveCount | integer | No | |
P4Score | integer | No | |
P5CameraBounds | camerasetup | No | |
P5Companion | integer | Yes | |
P5Hero | unit | No | |
P5Kills | integer | No | |
P5MoveCount | integer | No | |
P5Score | integer | No | |
P6CameraBounds | camerasetup | No | |
P6Companion | integer | Yes | |
P6Hero | unit | No | |
P6Kills | integer | No | |
P6MoveCount | integer | No | |
P6Score | integer | No | |
P7CameraBounds | camerasetup | No | |
P7Companion | integer | Yes | |
P7Hero | unit | No | |
P7Kills | integer | No | |
P7MoveCount | integer | No | |
P7Score | integer | No | |
P8CameraBounds | camerasetup | No | |
P8Companion | integer | Yes | |
P8Hero | unit | No | |
P8Kills | integer | No | |
P8MoveCount | integer | No | |
P8Score | integer | No | |
PaladinJusticeBonusA | boolean | No | |
PaladinJusticeBonusB | boolean | No | |
PaladinJusticePlayer | player | No | |
ParanoiaEquipped | boolean | No | |
ParanoiaEyeCleanse | integer | No | |
ParanoiaHero | unit | No | |
ParanoiasEyePlayer | player | No | |
PerfectDefense | integer | No | |
PerfectDefenseAbil | abilcode | Yes | |
PerfectDefenseTotalCount | integer | No | |
Petrify | integer | No | |
PetrifyTarget | unit | No | |
PickFeatTimer | timer | No | |
PickModeDone | boolean | No | |
PickModeStillGoing | boolean | No | true |
PlantHater | boolean | No | |
PlayersLeft | integer | No | |
PlayerTotalDeaths | integer | No | |
PlayerTotalDeathsForRound | integer | No | |
PrincessAttack | integer | No | |
PrisonerDeathMsg | integer | No | |
RadleyFlavorStrings | string | Yes | |
RadleyOwner | unit | No | |
RandomAssaultChance | integer | No | |
RandomDecimateChance | integer | No | |
RandomFamiliar | unitcode | Yes | |
RandomHero | integer | No | |
RandomItemChance | integer | No | |
RandomMode | boolean | No | true |
RandomRegionPathing | rect | Yes | |
RandomSancChance | integer | No | |
RandomWeather | integer | No | |
RandomWeatherEffect | trigger | Yes | |
RareMob | integer | No | |
RareSellOff | integer | No | |
RareSpawn1To6 | unitcode | Yes | |
RareSpawn7To10 | unitcode | Yes | |
RecuperateChance | integer | No | |
RecuperateMultiplier | real | No | |
ReplenishLearn | integer | No | |
ReplenishLevel | integer | Yes | |
RescueTarget | unit | No | |
ResearchBonus | integer | No | |
RobeBloodInt | integer | No | |
RogueDamageStacks | integer | No | |
RogueMaxDamageStacks | integer | No | |
RogueOTDBonusA | boolean | No | |
RogueOTDBonusB | boolean | No | |
RogueOTDBonusC | boolean | No | |
RogueOTDPlayer | player | No | |
RootTrapUnits | unitcode | Yes | |
SabotageOn | boolean | No | |
Salamando | unit | No | |
SancSFX | effect | No | |
SanctuaryChance | integer | No | |
SavageFighter | boolean | No | |
SchematicsResearch | integer | No | |
ScrollDrop | integer | No | |
ScrollNumDrop | integer | No | |
Seafaring | unitcode | Yes | |
SeafaringLv1 | boolean | No | |
SelectedMode | boolean | No | |
SFXRescue | effect | No | |
SharpshooterBonusA | boolean | No | true |
SharpshooterBonusB | boolean | No | false |
SharpshooterPlayer | player | No | |
SkillshotChance | integer | No | |
SkullochSongOn | boolean | No | |
SmithyworkPlayer | player | No | |
SniperMarkKills | integer | No | |
SniperMarkTarget | unit | No | |
SnipersMark | integer | No | |
SofUnityLowestLevel | integer | No | 100 |
SolarCount | integer | No | |
SoloMode | boolean | No | |
SolStrike | unit | No | |
SolStrikeAttacks | integer | No | |
SolStrikeTotalAttacks | integer | No | |
SongOfManaOn | boolean | No | |
SongOfManaRanks | abilcode | Yes | |
SongsBeingSung | integer | No | |
SoUPlayer | player | No | |
SpeedyVictory | boolean | No | true |
SpeedyVictoryTimer | timer | No | |
SpellEaterHero | unit | No | |
SpiritBondHeal | real | No | 35.00 |
SpiritTotemUnit | unitcode | Yes | |
SquireCapKills | integer | No | |
StalwartDefender | boolean | No | true |
StartingPotions | boolean | No | |
StoryMode | boolean | No | |
SunbeamCount | integer | No | |
SunSoulBonusA | boolean | No | false |
SunSoulBonusB | boolean | No | false |
SunSoulPenalty | boolean | No | false |
SunSoulPlayer | player | No | |
SurvivalistRank | integer | No | |
SwashbucklerPlayer | player | No | |
SymphonyOfFlameRanks | abilcode | Yes | |
SymphonyOfSearingOn | boolean | No | |
SymphonyOfStormRanks | abilcode | Yes | |
SymphonyOfStormsOn | boolean | No | |
TangoTenacityOn | boolean | No | |
TangoTenacityRanks | abilcode | Yes | |
TantrumCast | integer | No | |
TarotCards | itemcode | Yes | |
TDDrops | itemcode | Yes | |
TDSpellDrops | itemcode | Yes | |
TeamsLeft | integer | No | |
TestIncrement | integer | No | |
Testing | integer | No | |
TheSwallow | unit | No | |
Thornbush | unit | No | |
TimerNextLevel | timer | No | |
ToadPoint | location | No | |
TorchDamage | real | No | 100.00 |
TotalAssaultDamage | integer | No | |
TotalBonusGold | integer | No | |
TotalCharmAtOnce | integer | No | 2 |
TotalEngyKills | integer | No | |
TotalETKills | integer | No | |
TotalHeroes | integer | No | 32 |
TotalMysticTowerAllowed | integer | No | 5 |
TotalMysticTowers | integer | No | |
TotalPlantKills | integer | No | |
TotalPlants | integer | No | |
TotalPlaying | integer | No | |
TotalPoJKills | integer | No | |
TotalScrollDrop | integer | No | 200 |
TotalSongs | integer | No | 0 |
TotalTeamMetDefeatLevel | integer | Yes | 0 |
TotalTeams | integer | No | 7 |
TotalTeamsLeft | integer | No | 5 |
TotalTeamsLeftPercent | real | No | |
TotalTeamsPercentInt | integer | No | |
TotalUnitsLeft | integer | No | |
TotemicSpiritRank | integer | No | |
TotemicWolfUnit | unitcode | Yes | |
ToughBossMusic | boolean | No | false |
TrampleDuration | integer | No | 3 |
TrampleLoop | integer | No | 1 |
TrampleSFX | effect | No | |
TranscendTime | real | No | 75.00 |
TravelerTricksCurrentLevel | integer | No | |
TreasureChestDrop | integer | No | |
TundraStrikeRank | integer | No | |
TutorialGroup | force | No | |
UncSellOff | integer | No | |
UnderwaterGroup | group | No | |
UnitInGarrisonA | unit | No | |
UnitInGarrisonB | unit | No | |
UnitInGarrisonC | unit | No | |
UnitInGarrisonD | unit | No | |
UnitInGarrisonE | unit | No | |
UnitInGarrisonF | unit | No | |
UnitInGarrisonG | unit | No | |
UnitInGarrisonH | unit | No | |
UnitInGarrisonI | unit | No | |
UnitInGarrisonJ | unit | No | |
VengefulAnim | effect | No | |
VengefulSpiritLvl | integer | No | |
VengefulSpiritUnits | unitcode | Yes | |
VolleyShot | integer | No | |
WageTotal | integer | No | |
WarGuard | unit | No | |
WarnRecently | boolean | No | |
WatchMovie | boolean | No | true |
WeatherName | string | Yes | |
WebbedVictim | unitcode | Yes | |
WebVicRandom | integer | No | |
WhirlwindAttack | integer | No | |
WhispersWindOn | boolean | No | |
Wildbond | unit | No | |
WildbondPet | unit | No | |
WildbondPetSize | real | No | 100.00 |
WildbondPetTable | unitcode | Yes | |
WildbondPlayer | player | No | |
WildbondRandomNum | integer | No |
function Trig_Cleric_of_Order_Dies_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'H001' ) ) then
return false
endif
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_SUMMONED) == false ) ) then
return false
endif
return true
endfunction
function Trig_Cleric_of_Order_Dies_Func003C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Cleric_of_Order_Dies_Func004C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Cleric_of_Order_Dies_Func005C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Cleric_of_Order_Dies_Actions takes nothing returns nothing
call PlaySoundAtPointBJ( gg_snd_13___sound_1, 100, GetUnitLoc(GetDyingUnit()), 0 )
set udg_HeroDeathCry = GetRandomInt(1, 3)
if ( Trig_Cleric_of_Order_Dies_Func003C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_1452", bj_TIMETYPE_ADD, 0, true )
else
endif
if ( Trig_Cleric_of_Order_Dies_Func004C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_1451", bj_TIMETYPE_ADD, 0, true )
else
endif
if ( Trig_Cleric_of_Order_Dies_Func005C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_1450", bj_TIMETYPE_ADD, 0, true )
else
endif
endfunction
//===========================================================================
function InitTrig_Cleric_of_Order_Dies takes nothing returns nothing
set gg_trg_Cleric_of_Order_Dies = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Cleric_of_Order_Dies, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Cleric_of_Order_Dies, Condition( function Trig_Cleric_of_Order_Dies_Conditions ) )
call TriggerAddAction( gg_trg_Cleric_of_Order_Dies, function Trig_Cleric_of_Order_Dies_Actions )
endfunction
function Trig_Cleric_Small_Folk_Dies_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'H003' ) ) then
return false
endif
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_SUMMONED) == false ) ) then
return false
endif
return true
endfunction
function Trig_Cleric_Small_Folk_Dies_Func003C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Cleric_Small_Folk_Dies_Func004C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Cleric_Small_Folk_Dies_Func005C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Cleric_Small_Folk_Dies_Actions takes nothing returns nothing
call PlaySoundAtPointBJ( gg_snd_13___sound_1, 100, GetUnitLoc(GetDyingUnit()), 0 )
set udg_HeroDeathCry = GetRandomInt(1, 3)
if ( Trig_Cleric_Small_Folk_Dies_Func003C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_1453", bj_TIMETYPE_ADD, 0, true )
else
endif
if ( Trig_Cleric_Small_Folk_Dies_Func004C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_1461", bj_TIMETYPE_ADD, 0, true )
else
endif
if ( Trig_Cleric_Small_Folk_Dies_Func005C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_1459", bj_TIMETYPE_ADD, 0, true )
else
endif
endfunction
//===========================================================================
function InitTrig_Cleric_Small_Folk_Dies takes nothing returns nothing
set gg_trg_Cleric_Small_Folk_Dies = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Cleric_Small_Folk_Dies, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Cleric_Small_Folk_Dies, Condition( function Trig_Cleric_Small_Folk_Dies_Conditions ) )
call TriggerAddAction( gg_trg_Cleric_Small_Folk_Dies, function Trig_Cleric_Small_Folk_Dies_Actions )
endfunction
function Trig_Dwarven_Axe_Thrower_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'H007' ) ) then
return false
endif
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_SUMMONED) == false ) ) then
return false
endif
return true
endfunction
function Trig_Dwarven_Axe_Thrower_Func003C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Dwarven_Axe_Thrower_Func004C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Dwarven_Axe_Thrower_Func005C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Dwarven_Axe_Thrower_Actions takes nothing returns nothing
call PlaySoundAtPointBJ( gg_snd_13___sound_1, 100, GetUnitLoc(GetDyingUnit()), 0 )
set udg_HeroDeathCry = GetRandomInt(1, 3)
if ( Trig_Dwarven_Axe_Thrower_Func003C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_1456", bj_TIMETYPE_ADD, 0, true )
else
endif
if ( Trig_Dwarven_Axe_Thrower_Func004C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_1457", bj_TIMETYPE_ADD, 0, true )
else
endif
if ( Trig_Dwarven_Axe_Thrower_Func005C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_1458", bj_TIMETYPE_ADD, 0, true )
else
endif
endfunction
//===========================================================================
function InitTrig_Dwarven_Axe_Thrower takes nothing returns nothing
set gg_trg_Dwarven_Axe_Thrower = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Dwarven_Axe_Thrower, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Dwarven_Axe_Thrower, Condition( function Trig_Dwarven_Axe_Thrower_Conditions ) )
call TriggerAddAction( gg_trg_Dwarven_Axe_Thrower, function Trig_Dwarven_Axe_Thrower_Actions )
endfunction
function Trig_Rogue_of_the_Dark_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'E001' ) ) then
return false
endif
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_SUMMONED) == false ) ) then
return false
endif
return true
endfunction
function Trig_Rogue_of_the_Dark_Func003C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Rogue_of_the_Dark_Func004C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Rogue_of_the_Dark_Func005C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Rogue_of_the_Dark_Actions takes nothing returns nothing
call PlaySoundAtPointBJ( gg_snd_13___sound_1, 100, GetUnitLoc(GetDyingUnit()), 0 )
set udg_HeroDeathCry = GetRandomInt(1, 3)
if ( Trig_Rogue_of_the_Dark_Func003C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_1462", bj_TIMETYPE_ADD, 0, true )
else
endif
if ( Trig_Rogue_of_the_Dark_Func004C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_1463", bj_TIMETYPE_ADD, 0, true )
else
endif
if ( Trig_Rogue_of_the_Dark_Func005C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_1464", bj_TIMETYPE_ADD, 0, true )
else
endif
endfunction
//===========================================================================
function InitTrig_Rogue_of_the_Dark takes nothing returns nothing
set gg_trg_Rogue_of_the_Dark = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Rogue_of_the_Dark, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Rogue_of_the_Dark, Condition( function Trig_Rogue_of_the_Dark_Conditions ) )
call TriggerAddAction( gg_trg_Rogue_of_the_Dark, function Trig_Rogue_of_the_Dark_Actions )
endfunction
function Trig_Monk_of_the_Ebony_Fist_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'E000' ) ) then
return false
endif
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_SUMMONED) == false ) ) then
return false
endif
return true
endfunction
function Trig_Monk_of_the_Ebony_Fist_Func003C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Monk_of_the_Ebony_Fist_Func004C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Monk_of_the_Ebony_Fist_Func005C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Monk_of_the_Ebony_Fist_Actions takes nothing returns nothing
call PlaySoundAtPointBJ( gg_snd_13___sound_1, 100, GetUnitLoc(GetDyingUnit()), 0 )
set udg_HeroDeathCry = GetRandomInt(1, 3)
if ( Trig_Monk_of_the_Ebony_Fist_Func003C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_1465", bj_TIMETYPE_ADD, 0, true )
else
endif
if ( Trig_Monk_of_the_Ebony_Fist_Func004C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_1466", bj_TIMETYPE_ADD, 0, true )
else
endif
if ( Trig_Monk_of_the_Ebony_Fist_Func005C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_1467", bj_TIMETYPE_ADD, 0, true )
else
endif
endfunction
//===========================================================================
function InitTrig_Monk_of_the_Ebony_Fist takes nothing returns nothing
set gg_trg_Monk_of_the_Ebony_Fist = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Monk_of_the_Ebony_Fist, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Monk_of_the_Ebony_Fist, Condition( function Trig_Monk_of_the_Ebony_Fist_Conditions ) )
call TriggerAddAction( gg_trg_Monk_of_the_Ebony_Fist, function Trig_Monk_of_the_Ebony_Fist_Actions )
endfunction
function Trig_Master_of_the_Art_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'H00E' ) ) then
return false
endif
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_SUMMONED) == false ) ) then
return false
endif
return true
endfunction
function Trig_Master_of_the_Art_Func003C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Master_of_the_Art_Func004C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Master_of_the_Art_Func005C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Master_of_the_Art_Actions takes nothing returns nothing
call PlaySoundAtPointBJ( gg_snd_13___sound_1, 100, GetUnitLoc(GetDyingUnit()), 0 )
set udg_HeroDeathCry = GetRandomInt(1, 3)
if ( Trig_Master_of_the_Art_Func003C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_1468", bj_TIMETYPE_ADD, 0, true )
else
endif
if ( Trig_Master_of_the_Art_Func004C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_1469", bj_TIMETYPE_ADD, 0, true )
else
endif
if ( Trig_Master_of_the_Art_Func005C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_1470", bj_TIMETYPE_ADD, 0, true )
else
endif
endfunction
//===========================================================================
function InitTrig_Master_of_the_Art takes nothing returns nothing
set gg_trg_Master_of_the_Art = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Master_of_the_Art, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Master_of_the_Art, Condition( function Trig_Master_of_the_Art_Conditions ) )
call TriggerAddAction( gg_trg_Master_of_the_Art, function Trig_Master_of_the_Art_Actions )
endfunction
function Trig_Human_Engineer_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'H00F' ) ) then
return false
endif
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_SUMMONED) == false ) ) then
return false
endif
return true
endfunction
function Trig_Human_Engineer_Func003C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Human_Engineer_Func004C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Human_Engineer_Func005C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Human_Engineer_Actions takes nothing returns nothing
call PlaySoundAtPointBJ( gg_snd_13___sound_1, 100, GetUnitLoc(GetDyingUnit()), 0 )
set udg_HeroDeathCry = GetRandomInt(1, 3)
if ( Trig_Human_Engineer_Func003C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_1471", bj_TIMETYPE_ADD, 0, true )
call PlaySoundBJ( gg_snd_PeasantYesAttack4 )
else
endif
if ( Trig_Human_Engineer_Func004C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_1472", bj_TIMETYPE_ADD, 0, true )
else
endif
if ( Trig_Human_Engineer_Func005C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_1473", bj_TIMETYPE_ADD, 0, true )
else
endif
endfunction
//===========================================================================
function InitTrig_Human_Engineer takes nothing returns nothing
set gg_trg_Human_Engineer = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Human_Engineer, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Human_Engineer, Condition( function Trig_Human_Engineer_Conditions ) )
call TriggerAddAction( gg_trg_Human_Engineer, function Trig_Human_Engineer_Actions )
endfunction
function Trig_ManAtArms_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'H013' ) ) then
return false
endif
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_SUMMONED) == false ) ) then
return false
endif
return true
endfunction
function Trig_ManAtArms_Func003C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 1 ) ) then
return false
endif
return true
endfunction
function Trig_ManAtArms_Func004C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 2 ) ) then
return false
endif
return true
endfunction
function Trig_ManAtArms_Func005C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 3 ) ) then
return false
endif
return true
endfunction
function Trig_ManAtArms_Actions takes nothing returns nothing
call PlaySoundAtPointBJ( gg_snd_13___sound_1, 100, GetUnitLoc(GetDyingUnit()), 0 )
set udg_HeroDeathCry = GetRandomInt(1, 3)
if ( Trig_ManAtArms_Func003C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_1474", bj_TIMETYPE_ADD, 0, true )
else
endif
if ( Trig_ManAtArms_Func004C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_1475", bj_TIMETYPE_ADD, 0, true )
else
endif
if ( Trig_ManAtArms_Func005C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_1476", bj_TIMETYPE_ADD, 0, true )
else
endif
endfunction
//===========================================================================
function InitTrig_ManAtArms takes nothing returns nothing
set gg_trg_ManAtArms = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_ManAtArms, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_ManAtArms, Condition( function Trig_ManAtArms_Conditions ) )
call TriggerAddAction( gg_trg_ManAtArms, function Trig_ManAtArms_Actions )
endfunction
function Trig_Earthdirt_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'H00S' ) ) then
return false
endif
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_SUMMONED) == false ) ) then
return false
endif
return true
endfunction
function Trig_Earthdirt_Func003C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Earthdirt_Func004C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Earthdirt_Func005C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Earthdirt_Actions takes nothing returns nothing
call PlaySoundAtPointBJ( gg_snd_13___sound_1, 100, GetUnitLoc(GetDyingUnit()), 0 )
set udg_HeroDeathCry = GetRandomInt(1, 3)
if ( Trig_Earthdirt_Func003C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_1477", bj_TIMETYPE_ADD, 0, true )
else
endif
if ( Trig_Earthdirt_Func004C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_1478", bj_TIMETYPE_ADD, 0, true )
else
endif
if ( Trig_Earthdirt_Func005C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_1479", bj_TIMETYPE_ADD, 0, true )
else
endif
endfunction
//===========================================================================
function InitTrig_Earthdirt takes nothing returns nothing
set gg_trg_Earthdirt = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Earthdirt, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Earthdirt, Condition( function Trig_Earthdirt_Conditions ) )
call TriggerAddAction( gg_trg_Earthdirt, function Trig_Earthdirt_Actions )
endfunction
function Trig_Feral_Archon_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'O000' ) ) then
return false
endif
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_SUMMONED) == false ) ) then
return false
endif
return true
endfunction
function Trig_Feral_Archon_Func003C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Feral_Archon_Func004C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Feral_Archon_Func005C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Feral_Archon_Actions takes nothing returns nothing
call PlaySoundAtPointBJ( gg_snd_13___sound_1, 100, GetUnitLoc(GetDyingUnit()), 0 )
set udg_HeroDeathCry = GetRandomInt(1, 3)
if ( Trig_Feral_Archon_Func003C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_1480", bj_TIMETYPE_ADD, 0, true )
else
endif
if ( Trig_Feral_Archon_Func004C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_1481", bj_TIMETYPE_ADD, 0, true )
else
endif
if ( Trig_Feral_Archon_Func005C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_1482", bj_TIMETYPE_ADD, 0, true )
else
endif
endfunction
//===========================================================================
function InitTrig_Feral_Archon takes nothing returns nothing
set gg_trg_Feral_Archon = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Feral_Archon, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Feral_Archon, Condition( function Trig_Feral_Archon_Conditions ) )
call TriggerAddAction( gg_trg_Feral_Archon, function Trig_Feral_Archon_Actions )
endfunction
function Trig_Sun_Soul_Initiate_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'E004' ) ) then
return false
endif
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_SUMMONED) == false ) ) then
return false
endif
return true
endfunction
function Trig_Sun_Soul_Initiate_Func003C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Sun_Soul_Initiate_Func004C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Sun_Soul_Initiate_Func005C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Sun_Soul_Initiate_Actions takes nothing returns nothing
call PlaySoundAtPointBJ( gg_snd_13___sound_1, 100, GetUnitLoc(GetDyingUnit()), 0 )
set udg_HeroDeathCry = GetRandomInt(1, 3)
if ( Trig_Sun_Soul_Initiate_Func003C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_1484", bj_TIMETYPE_ADD, 0, true )
else
endif
if ( Trig_Sun_Soul_Initiate_Func004C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_1485", bj_TIMETYPE_ADD, 0, true )
else
endif
if ( Trig_Sun_Soul_Initiate_Func005C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_1486", bj_TIMETYPE_ADD, 0, true )
else
endif
endfunction
//===========================================================================
function InitTrig_Sun_Soul_Initiate takes nothing returns nothing
set gg_trg_Sun_Soul_Initiate = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Sun_Soul_Initiate, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Sun_Soul_Initiate, Condition( function Trig_Sun_Soul_Initiate_Conditions ) )
call TriggerAddAction( gg_trg_Sun_Soul_Initiate, function Trig_Sun_Soul_Initiate_Actions )
endfunction
function Trig_Paladin_of_Justice_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'H01J' ) ) then
return false
endif
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_SUMMONED) == false ) ) then
return false
endif
return true
endfunction
function Trig_Paladin_of_Justice_Func003C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Paladin_of_Justice_Func004C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Paladin_of_Justice_Func005C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Paladin_of_Justice_Actions takes nothing returns nothing
call PlaySoundAtPointBJ( gg_snd_13___sound_1, 100, GetUnitLoc(GetDyingUnit()), 0 )
set udg_HeroDeathCry = GetRandomInt(1, 3)
if ( Trig_Paladin_of_Justice_Func003C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_1668", bj_TIMETYPE_ADD, 0, true )
else
endif
if ( Trig_Paladin_of_Justice_Func004C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_1669", bj_TIMETYPE_ADD, 0, true )
else
endif
if ( Trig_Paladin_of_Justice_Func005C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_1670", bj_TIMETYPE_ADD, 0, true )
else
endif
endfunction
//===========================================================================
function InitTrig_Paladin_of_Justice takes nothing returns nothing
set gg_trg_Paladin_of_Justice = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Paladin_of_Justice, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Paladin_of_Justice, Condition( function Trig_Paladin_of_Justice_Conditions ) )
call TriggerAddAction( gg_trg_Paladin_of_Justice, function Trig_Paladin_of_Justice_Actions )
endfunction
function Trig_Dwarven_Rockfighter_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'H01M' ) ) then
return false
endif
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_SUMMONED) == false ) ) then
return false
endif
return true
endfunction
function Trig_Dwarven_Rockfighter_Func003C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Dwarven_Rockfighter_Func004C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Dwarven_Rockfighter_Func005C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Dwarven_Rockfighter_Actions takes nothing returns nothing
call PlaySoundAtPointBJ( gg_snd_13___sound_1, 100, GetUnitLoc(GetDyingUnit()), 0 )
set udg_HeroDeathCry = GetRandomInt(1, 3)
if ( Trig_Dwarven_Rockfighter_Func003C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_1936", bj_TIMETYPE_ADD, 0, true )
else
endif
if ( Trig_Dwarven_Rockfighter_Func004C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_1937", bj_TIMETYPE_ADD, 0, true )
else
endif
if ( Trig_Dwarven_Rockfighter_Func005C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_1938", bj_TIMETYPE_ADD, 0, true )
else
endif
endfunction
//===========================================================================
function InitTrig_Dwarven_Rockfighter takes nothing returns nothing
set gg_trg_Dwarven_Rockfighter = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Dwarven_Rockfighter, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Dwarven_Rockfighter, Condition( function Trig_Dwarven_Rockfighter_Conditions ) )
call TriggerAddAction( gg_trg_Dwarven_Rockfighter, function Trig_Dwarven_Rockfighter_Actions )
endfunction
function Trig_Mistress_of_Grace_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'H01N' ) ) then
return false
endif
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_SUMMONED) == false ) ) then
return false
endif
return true
endfunction
function Trig_Mistress_of_Grace_Func003C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Mistress_of_Grace_Func004C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Mistress_of_Grace_Func005C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Mistress_of_Grace_Actions takes nothing returns nothing
call PlaySoundAtPointBJ( gg_snd_14___sound_2, 100, GetUnitLoc(GetDyingUnit()), 0 )
set udg_HeroDeathCry = GetRandomInt(1, 3)
if ( Trig_Mistress_of_Grace_Func003C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_2043", bj_TIMETYPE_ADD, 0, true )
else
endif
if ( Trig_Mistress_of_Grace_Func004C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_2044", bj_TIMETYPE_ADD, 0, true )
else
endif
if ( Trig_Mistress_of_Grace_Func005C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_2045", bj_TIMETYPE_ADD, 0, true )
else
endif
endfunction
//===========================================================================
function InitTrig_Mistress_of_Grace takes nothing returns nothing
set gg_trg_Mistress_of_Grace = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Mistress_of_Grace, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Mistress_of_Grace, Condition( function Trig_Mistress_of_Grace_Conditions ) )
call TriggerAddAction( gg_trg_Mistress_of_Grace, function Trig_Mistress_of_Grace_Actions )
endfunction
function Trig_Arcane_Archer_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'H01O' ) ) then
return false
endif
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_SUMMONED) == false ) ) then
return false
endif
return true
endfunction
function Trig_Arcane_Archer_Func003C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Arcane_Archer_Func004C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Arcane_Archer_Func005C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Arcane_Archer_Actions takes nothing returns nothing
call PlaySoundAtPointBJ( gg_snd_14___sound_2, 100, GetUnitLoc(GetDyingUnit()), 0 )
set udg_HeroDeathCry = GetRandomInt(1, 3)
if ( Trig_Arcane_Archer_Func003C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_2273", bj_TIMETYPE_ADD, 0, true )
else
endif
if ( Trig_Arcane_Archer_Func004C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_2274", bj_TIMETYPE_ADD, 0, true )
else
endif
if ( Trig_Arcane_Archer_Func005C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_2275", bj_TIMETYPE_ADD, 0, true )
else
endif
endfunction
//===========================================================================
function InitTrig_Arcane_Archer takes nothing returns nothing
set gg_trg_Arcane_Archer = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Arcane_Archer, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Arcane_Archer, Condition( function Trig_Arcane_Archer_Conditions ) )
call TriggerAddAction( gg_trg_Arcane_Archer, function Trig_Arcane_Archer_Actions )
endfunction
function Trig_Axe_Brother_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'E006' ) ) then
return false
endif
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_SUMMONED) == false ) ) then
return false
endif
return true
endfunction
function Trig_Axe_Brother_Func003C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Axe_Brother_Func004C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Axe_Brother_Func005C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Axe_Brother_Actions takes nothing returns nothing
call PlaySoundAtPointBJ( gg_snd_13___sound_1, 100, GetUnitLoc(GetDyingUnit()), 0 )
set udg_HeroDeathCry = GetRandomInt(1, 3)
if ( Trig_Axe_Brother_Func003C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_2421", bj_TIMETYPE_ADD, 0, true )
else
endif
if ( Trig_Axe_Brother_Func004C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_2422", bj_TIMETYPE_ADD, 0, true )
else
endif
if ( Trig_Axe_Brother_Func005C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_2423", bj_TIMETYPE_ADD, 0, true )
else
endif
endfunction
//===========================================================================
function InitTrig_Axe_Brother takes nothing returns nothing
set gg_trg_Axe_Brother = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Axe_Brother, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Axe_Brother, Condition( function Trig_Axe_Brother_Conditions ) )
call TriggerAddAction( gg_trg_Axe_Brother, function Trig_Axe_Brother_Actions )
endfunction
function Trig_Centaur_Druid_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'H01U' ) ) then
return false
endif
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_SUMMONED) == false ) ) then
return false
endif
return true
endfunction
function Trig_Centaur_Druid_Func003C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Centaur_Druid_Func004C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Centaur_Druid_Func005C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Centaur_Druid_Actions takes nothing returns nothing
call PlaySoundAtPointBJ( gg_snd_13___sound_1, 100, GetUnitLoc(GetDyingUnit()), 0 )
set udg_HeroDeathCry = GetRandomInt(1, 3)
if ( Trig_Centaur_Druid_Func003C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_2917", bj_TIMETYPE_ADD, 0, true )
else
endif
if ( Trig_Centaur_Druid_Func004C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_2918", bj_TIMETYPE_ADD, 0, true )
else
endif
if ( Trig_Centaur_Druid_Func005C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_2919", bj_TIMETYPE_ADD, 0, true )
else
endif
endfunction
//===========================================================================
function InitTrig_Centaur_Druid takes nothing returns nothing
set gg_trg_Centaur_Druid = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Centaur_Druid, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Centaur_Druid, Condition( function Trig_Centaur_Druid_Conditions ) )
call TriggerAddAction( gg_trg_Centaur_Druid, function Trig_Centaur_Druid_Actions )
endfunction
function Trig_Cleric_of_Elven_Word_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'H02C' ) ) then
return false
endif
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_SUMMONED) == false ) ) then
return false
endif
return true
endfunction
function Trig_Cleric_of_Elven_Word_Func003C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Cleric_of_Elven_Word_Func004C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Cleric_of_Elven_Word_Func005C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Cleric_of_Elven_Word_Actions takes nothing returns nothing
call PlaySoundAtPointBJ( gg_snd_14___sound_2, 100, GetUnitLoc(GetDyingUnit()), 0 )
set udg_HeroDeathCry = GetRandomInt(1, 3)
if ( Trig_Cleric_of_Elven_Word_Func003C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_3102", bj_TIMETYPE_ADD, 0, true )
else
endif
if ( Trig_Cleric_of_Elven_Word_Func004C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_3103", bj_TIMETYPE_ADD, 0, true )
else
endif
if ( Trig_Cleric_of_Elven_Word_Func005C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_3104", bj_TIMETYPE_ADD, 0, true )
else
endif
endfunction
//===========================================================================
function InitTrig_Cleric_of_Elven_Word takes nothing returns nothing
set gg_trg_Cleric_of_Elven_Word = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Cleric_of_Elven_Word, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Cleric_of_Elven_Word, Condition( function Trig_Cleric_of_Elven_Word_Conditions ) )
call TriggerAddAction( gg_trg_Cleric_of_Elven_Word, function Trig_Cleric_of_Elven_Word_Actions )
endfunction
function Trig_Crested_Drake_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'H02D' ) ) then
return false
endif
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_SUMMONED) == false ) ) then
return false
endif
return true
endfunction
function Trig_Crested_Drake_Func003C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Crested_Drake_Func004C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Crested_Drake_Func005C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Crested_Drake_Actions takes nothing returns nothing
call PlaySoundAtPointBJ( gg_snd_DragonWhat1, 100, GetUnitLoc(GetDyingUnit()), 0 )
set udg_HeroDeathCry = GetRandomInt(1, 3)
if ( Trig_Crested_Drake_Func003C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_4651", bj_TIMETYPE_ADD, 0, true )
else
endif
if ( Trig_Crested_Drake_Func004C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_4652", bj_TIMETYPE_ADD, 0, true )
else
endif
if ( Trig_Crested_Drake_Func005C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_4653", bj_TIMETYPE_ADD, 0, true )
else
endif
endfunction
//===========================================================================
function InitTrig_Crested_Drake takes nothing returns nothing
set gg_trg_Crested_Drake = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Crested_Drake, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Crested_Drake, Condition( function Trig_Crested_Drake_Conditions ) )
call TriggerAddAction( gg_trg_Crested_Drake, function Trig_Crested_Drake_Actions )
endfunction
function Trig_Half_Elven_Bard_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'H02L' ) ) then
return false
endif
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_SUMMONED) == false ) ) then
return false
endif
return true
endfunction
function Trig_Half_Elven_Bard_Func003C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Half_Elven_Bard_Func004C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Half_Elven_Bard_Func005C takes nothing returns boolean
if ( not ( udg_HeroDeathCry == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Half_Elven_Bard_Actions takes nothing returns nothing
call PlaySoundAtPointBJ( gg_snd_14___sound_2, 100, GetUnitLoc(GetDyingUnit()), 0 )
set udg_HeroDeathCry = GetRandomInt(1, 3)
if ( Trig_Half_Elven_Bard_Func003C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_3899", bj_TIMETYPE_ADD, 0, true )
else
endif
if ( Trig_Half_Elven_Bard_Func004C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_3900", bj_TIMETYPE_ADD, 0, true )
else
endif
if ( Trig_Half_Elven_Bard_Func005C() ) then
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(GetDyingUnit()), 1 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), GetDyingUnit(), GetPlayerName(GetOwningPlayer(GetDyingUnit())), gg_snd_CreepAggroWhat1, "TRIGSTR_3901", bj_TIMETYPE_ADD, 0, true )
else
endif
endfunction
//===========================================================================
function InitTrig_Half_Elven_Bard takes nothing returns nothing
set gg_trg_Half_Elven_Bard = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Half_Elven_Bard, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Half_Elven_Bard, Condition( function Trig_Half_Elven_Bard_Conditions ) )
call TriggerAddAction( gg_trg_Half_Elven_Bard, function Trig_Half_Elven_Bard_Actions )
endfunction
function Trig_Start_Game_After_Feats_Func008001001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Start_Game_After_Feats_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(gg_rct_Entire_Feat_Area, Condition(function Trig_Start_Game_After_Feats_Func008001001002))) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Start_Game_After_Feats_Func006002 takes nothing returns nothing
call TimerDialogDisplayForPlayerBJ( false, GetLastCreatedTimerDialogBJ(), GetEnumPlayer() )
endfunction
function Trig_Start_Game_After_Feats_Actions takes nothing returns nothing
call TriggerSleepAction( 1.00 )
call ConditionalTriggerExecute( gg_trg_BeginningStart2 )
set udg_FeatSelectionDone = true
call ForForce( GetPlayersAll(), function Trig_Start_Game_After_Feats_Func006002 )
call PauseTimerBJ( true, udg_PickFeatTimer )
endfunction
//===========================================================================
function InitTrig_Start_Game_After_Feats takes nothing returns nothing
set gg_trg_Start_Game_After_Feats = CreateTrigger( )
call TriggerAddCondition( gg_trg_Start_Game_After_Feats, Condition( function Trig_Start_Game_After_Feats_Conditions ) )
call TriggerAddAction( gg_trg_Start_Game_After_Feats, function Trig_Start_Game_After_Feats_Actions )
endfunction
function Trig_Wealthy_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I02F' ) ) then
return false
endif
return true
endfunction
function Trig_Wealthy_Actions takes nothing returns nothing
call RemoveItem( GetManipulatedItem() )
call UnitAddAbilityBJ( 'A05V', GetManipulatingUnit() )
call AdjustPlayerStateBJ( 600, GetOwningPlayer(GetManipulatingUnit()), PLAYER_STATE_RESOURCE_GOLD )
call SetUnitPositionLoc( GetManipulatingUnit(), GetRandomLocInRect(gg_rct_Starting_Player_Area) )
call PauseUnitBJ( true, GetManipulatingUnit() )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetManipulatingUnit())) + " has selected the \"Wealthy\" Feat. (+600 Gold)" ) )
call ConditionalTriggerExecute( gg_trg_Start_Game_After_Feats )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetManipulatingUnit()), GetRectCenter(gg_rct_Starting_Player_Area), 0 )
endfunction
//===========================================================================
function InitTrig_Wealthy takes nothing returns nothing
set gg_trg_Wealthy = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Wealthy, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Wealthy, Condition( function Trig_Wealthy_Conditions ) )
call TriggerAddAction( gg_trg_Wealthy, function Trig_Wealthy_Actions )
endfunction
function Trig_Acrobat_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I02M' ) ) then
return false
endif
return true
endfunction
function Trig_Acrobat_Actions takes nothing returns nothing
call RemoveItem( GetManipulatedItem() )
call UnitAddAbilityBJ( 'A063', GetManipulatingUnit() )
call SetUnitPositionLoc( GetManipulatingUnit(), GetRandomLocInRect(gg_rct_Starting_Player_Area) )
call PauseUnitBJ( true, GetManipulatingUnit() )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetManipulatingUnit())) + " has selected the \"Acrobat\" Feat. (+10% Evasion)" ) )
call TriggerSleepAction( 2 )
call ConditionalTriggerExecute( gg_trg_Start_Game_After_Feats )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetManipulatingUnit()), GetRectCenter(gg_rct_Starting_Player_Area), 0 )
endfunction
//===========================================================================
function InitTrig_Acrobat takes nothing returns nothing
set gg_trg_Acrobat = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Acrobat, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Acrobat, Condition( function Trig_Acrobat_Conditions ) )
call TriggerAddAction( gg_trg_Acrobat, function Trig_Acrobat_Actions )
endfunction
function Trig_Fleetfooted_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I02L' ) ) then
return false
endif
return true
endfunction
function Trig_Fleetfooted_Actions takes nothing returns nothing
call RemoveItem( GetManipulatedItem() )
call UnitAddAbilityBJ( 'A078', GetManipulatingUnit() )
call SetUnitPositionLoc( GetManipulatingUnit(), GetRandomLocInRect(gg_rct_Starting_Player_Area) )
call PauseUnitBJ( true, GetManipulatingUnit() )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetManipulatingUnit())) + " has selected the \"Fleetfooted\" Feat. (Hero moves faster)" ) )
call TriggerSleepAction( 2 )
call ConditionalTriggerExecute( gg_trg_Start_Game_After_Feats )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetManipulatingUnit()), GetRectCenter(gg_rct_Starting_Player_Area), 0 )
endfunction
//===========================================================================
function InitTrig_Fleetfooted takes nothing returns nothing
set gg_trg_Fleetfooted = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Fleetfooted, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Fleetfooted, Condition( function Trig_Fleetfooted_Conditions ) )
call TriggerAddAction( gg_trg_Fleetfooted, function Trig_Fleetfooted_Actions )
endfunction
function Trig_Weapon_Focus_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I02P' ) ) then
return false
endif
return true
endfunction
function Trig_Weapon_Focus_Actions takes nothing returns nothing
call RemoveItem( GetManipulatedItem() )
call UnitAddAbilityBJ( 'A066', GetManipulatingUnit() )
call SetUnitPositionLoc( GetManipulatingUnit(), GetRandomLocInRect(gg_rct_Starting_Player_Area) )
call PauseUnitBJ( true, GetManipulatingUnit() )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetManipulatingUnit())) + " has selected the \"Weapon Focus\" Feat. (Unit never misses)" ) )
call TriggerSleepAction( 2 )
call ConditionalTriggerExecute( gg_trg_Start_Game_After_Feats )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetManipulatingUnit()), GetRectCenter(gg_rct_Starting_Player_Area), 0 )
endfunction
//===========================================================================
function InitTrig_Weapon_Focus takes nothing returns nothing
set gg_trg_Weapon_Focus = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Weapon_Focus, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Weapon_Focus, Condition( function Trig_Weapon_Focus_Conditions ) )
call TriggerAddAction( gg_trg_Weapon_Focus, function Trig_Weapon_Focus_Actions )
endfunction
function Trig_Snake_Blood_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I03U' ) ) then
return false
endif
return true
endfunction
function Trig_Snake_Blood_Actions takes nothing returns nothing
call RemoveItem( GetManipulatedItem() )
call UnitAddAbilityBJ( 'A064', GetManipulatingUnit() )
call SetUnitPositionLoc( GetManipulatingUnit(), GetRandomLocInRect(gg_rct_Starting_Player_Area) )
call PauseUnitBJ( true, GetManipulatingUnit() )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetManipulatingUnit())) + " has selected the \"Snakeblood\" Feat.(10% dam to enemy instead)" ) )
call TriggerSleepAction( 2 )
call ConditionalTriggerExecute( gg_trg_Start_Game_After_Feats )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetManipulatingUnit()), GetRectCenter(gg_rct_Starting_Player_Area), 0 )
endfunction
//===========================================================================
function InitTrig_Snake_Blood takes nothing returns nothing
set gg_trg_Snake_Blood = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Snake_Blood, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Snake_Blood, Condition( function Trig_Snake_Blood_Conditions ) )
call TriggerAddAction( gg_trg_Snake_Blood, function Trig_Snake_Blood_Actions )
endfunction
function Trig_Magic_Prodigy_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I02H' ) ) then
return false
endif
return true
endfunction
function Trig_Magic_Prodigy_Actions takes nothing returns nothing
call RemoveItem( GetManipulatedItem() )
call UnitAddAbilityBJ( 'A05Y', GetManipulatingUnit() )
call SetUnitPositionLoc( GetManipulatingUnit(), GetRandomLocInRect(gg_rct_Starting_Player_Area) )
call PauseUnitBJ( true, GetManipulatingUnit() )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetManipulatingUnit())) + " has selected the \"Magic Prodigy\" Feat. (+50% Mana Regen)" ) )
call ConditionalTriggerExecute( gg_trg_Start_Game_After_Feats )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetManipulatingUnit()), GetRectCenter(gg_rct_Starting_Player_Area), 0 )
endfunction
//===========================================================================
function InitTrig_Magic_Prodigy takes nothing returns nothing
set gg_trg_Magic_Prodigy = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Magic_Prodigy, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Magic_Prodigy, Condition( function Trig_Magic_Prodigy_Conditions ) )
call TriggerAddAction( gg_trg_Magic_Prodigy, function Trig_Magic_Prodigy_Actions )
endfunction
function Trig_Troll_Blood_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I02I' ) ) then
return false
endif
return true
endfunction
function Trig_Troll_Blood_Actions takes nothing returns nothing
call RemoveItem( GetManipulatedItem() )
call UnitAddAbilityBJ( 'A05Z', GetManipulatingUnit() )
call SetUnitPositionLoc( GetManipulatingUnit(), GetRandomLocInRect(gg_rct_Starting_Player_Area) )
call PauseUnitBJ( true, GetManipulatingUnit() )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetManipulatingUnit())) + " has selected the \"Troll Blood\" Feat. (+2 HP/sec Regen)" ) )
call ConditionalTriggerExecute( gg_trg_Start_Game_After_Feats )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetManipulatingUnit()), GetRectCenter(gg_rct_Starting_Player_Area), 0 )
endfunction
//===========================================================================
function InitTrig_Troll_Blood takes nothing returns nothing
set gg_trg_Troll_Blood = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Troll_Blood, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Troll_Blood, Condition( function Trig_Troll_Blood_Conditions ) )
call TriggerAddAction( gg_trg_Troll_Blood, function Trig_Troll_Blood_Actions )
endfunction
function Trig_Numb_Body_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I02E' ) ) then
return false
endif
return true
endfunction
function Trig_Numb_Body_Actions takes nothing returns nothing
call RemoveItem( GetManipulatedItem() )
call UnitAddAbilityBJ( 'A05W', GetManipulatingUnit() )
call SetUnitPositionLoc( GetManipulatingUnit(), GetRandomLocInRect(gg_rct_Starting_Player_Area) )
call PauseUnitBJ( true, GetManipulatingUnit() )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetManipulatingUnit())) + " has selected the \"Numb Body\" Feat. (Damage Soak 3/-)" ) )
call ConditionalTriggerExecute( gg_trg_Start_Game_After_Feats )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetManipulatingUnit()), GetRectCenter(gg_rct_Starting_Player_Area), 0 )
endfunction
//===========================================================================
function InitTrig_Numb_Body takes nothing returns nothing
set gg_trg_Numb_Body = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Numb_Body, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Numb_Body, Condition( function Trig_Numb_Body_Conditions ) )
call TriggerAddAction( gg_trg_Numb_Body, function Trig_Numb_Body_Actions )
endfunction
function Trig_Combat_Mastery_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I02K' ) ) then
return false
endif
return true
endfunction
function Trig_Combat_Mastery_Actions takes nothing returns nothing
call RemoveItem( GetManipulatedItem() )
call UnitAddAbilityBJ( 'A062', GetManipulatingUnit() )
call SetUnitPositionLoc( GetManipulatingUnit(), GetRandomLocInRect(gg_rct_Starting_Player_Area) )
call PauseUnitBJ( true, GetManipulatingUnit() )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetManipulatingUnit())) + " has selected the \"Combat Mastery\" Feat. (Has a chance to crit)" ) )
call ConditionalTriggerExecute( gg_trg_Start_Game_After_Feats )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetManipulatingUnit()), GetRectCenter(gg_rct_Starting_Player_Area), 0 )
endfunction
//===========================================================================
function InitTrig_Combat_Mastery takes nothing returns nothing
set gg_trg_Combat_Mastery = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Combat_Mastery, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Combat_Mastery, Condition( function Trig_Combat_Mastery_Conditions ) )
call TriggerAddAction( gg_trg_Combat_Mastery, function Trig_Combat_Mastery_Actions )
endfunction
function Trig_Charismatic_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I02J' ) ) then
return false
endif
return true
endfunction
function Trig_Charismatic_Actions takes nothing returns nothing
call RemoveItem( GetManipulatedItem() )
call UnitAddAbilityBJ( 'A061', GetManipulatingUnit() )
call SetUnitPositionLoc( GetManipulatingUnit(), GetRandomLocInRect(gg_rct_Starting_Player_Area) )
call PauseUnitBJ( true, GetManipulatingUnit() )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetManipulatingUnit())) + " has selected the \"Charismatic\" Feat. (Aura of Leadership)" ) )
call ConditionalTriggerExecute( gg_trg_Start_Game_After_Feats )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetManipulatingUnit()), GetRectCenter(gg_rct_Starting_Player_Area), 0 )
endfunction
//===========================================================================
function InitTrig_Charismatic takes nothing returns nothing
set gg_trg_Charismatic = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Charismatic, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Charismatic, Condition( function Trig_Charismatic_Conditions ) )
call TriggerAddAction( gg_trg_Charismatic, function Trig_Charismatic_Actions )
endfunction
function Trig_Flowing_Waters_Conditions takes nothing returns boolean
if ( not ( GetResearched() == 'R00B' ) ) then
return false
endif
return true
endfunction
function Trig_Flowing_Waters_Actions takes nothing returns nothing
call PlaySoundBJ( gg_snd_ResurrectTarget )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetResearchingUnit())) + " has researched Flowing Waters! (+50% mana regeneration to the Fountain of Replenishment!)" ) )
call SetPlayerTechResearchedSwap( 'R00B', 1, Player(0) )
call SetPlayerTechResearchedSwap( 'R00B', 1, Player(1) )
call SetPlayerTechResearchedSwap( 'R00B', 1, Player(2) )
call SetPlayerTechResearchedSwap( 'R00B', 1, Player(3) )
call SetPlayerTechResearchedSwap( 'R00B', 1, Player(4) )
call SetPlayerTechResearchedSwap( 'R00B', 1, Player(5) )
call SetPlayerTechResearchedSwap( 'R00B', 1, Player(6) )
call SetPlayerTechResearchedSwap( 'R00B', 1, Player(7) )
call SetPlayerTechResearchedSwap( 'R00B', 1, Player(8) )
endfunction
//===========================================================================
function InitTrig_Flowing_Waters takes nothing returns nothing
set gg_trg_Flowing_Waters = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Flowing_Waters, EVENT_PLAYER_UNIT_RESEARCH_FINISH )
call TriggerAddCondition( gg_trg_Flowing_Waters, Condition( function Trig_Flowing_Waters_Conditions ) )
call TriggerAddAction( gg_trg_Flowing_Waters, function Trig_Flowing_Waters_Actions )
endfunction
function Trig_Improved_FOR_Conditions takes nothing returns boolean
if ( not ( GetResearched() == 'R00C' ) ) then
return false
endif
return true
endfunction
function Trig_Improved_FOR_Actions takes nothing returns nothing
call PlaySoundBJ( gg_snd_ResurrectTarget )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetResearchingUnit())) + " has researched Improved Fountain of Replenishment! (+250 max mana to the Fountain of Replenishment!)" ) )
call SetPlayerTechResearchedSwap( 'R00C', 1, Player(0) )
call SetPlayerTechResearchedSwap( 'R00C', 1, Player(1) )
call SetPlayerTechResearchedSwap( 'R00C', 1, Player(2) )
call SetPlayerTechResearchedSwap( 'R00C', 1, Player(3) )
call SetPlayerTechResearchedSwap( 'R00C', 1, Player(4) )
call SetPlayerTechResearchedSwap( 'R00C', 1, Player(5) )
call SetPlayerTechResearchedSwap( 'R00C', 1, Player(6) )
call SetPlayerTechResearchedSwap( 'R00C', 1, Player(7) )
call SetPlayerTechResearchedSwap( 'R00C', 1, Player(8) )
endfunction
//===========================================================================
function InitTrig_Improved_FOR takes nothing returns nothing
set gg_trg_Improved_FOR = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Improved_FOR, EVENT_PLAYER_UNIT_RESEARCH_FINISH )
call TriggerAddCondition( gg_trg_Improved_FOR, Condition( function Trig_Improved_FOR_Conditions ) )
call TriggerAddAction( gg_trg_Improved_FOR, function Trig_Improved_FOR_Actions )
endfunction
function Trig_Reinforced_Towers_Conditions takes nothing returns boolean
if ( not ( GetResearched() == 'R00D' ) ) then
return false
endif
return true
endfunction
function Trig_Reinforced_Towers_Actions takes nothing returns nothing
call PlaySoundBJ( gg_snd_ResurrectTarget )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetResearchingUnit())) + " has researched Reinforced Towers! (+300 max HP to all guard towers!)" ) )
call SetPlayerTechResearchedSwap( 'R00D', 1, Player(0) )
call SetPlayerTechResearchedSwap( 'R00D', 1, Player(1) )
call SetPlayerTechResearchedSwap( 'R00D', 1, Player(2) )
call SetPlayerTechResearchedSwap( 'R00D', 1, Player(3) )
call SetPlayerTechResearchedSwap( 'R00D', 1, Player(4) )
call SetPlayerTechResearchedSwap( 'R00D', 1, Player(5) )
call SetPlayerTechResearchedSwap( 'R00D', 1, Player(6) )
call SetPlayerTechResearchedSwap( 'R00D', 1, Player(7) )
call SetPlayerTechResearchedSwap( 'R00D', 1, Player(8) )
endfunction
//===========================================================================
function InitTrig_Reinforced_Towers takes nothing returns nothing
set gg_trg_Reinforced_Towers = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Reinforced_Towers, EVENT_PLAYER_UNIT_RESEARCH_FINISH )
call TriggerAddCondition( gg_trg_Reinforced_Towers, Condition( function Trig_Reinforced_Towers_Conditions ) )
call TriggerAddAction( gg_trg_Reinforced_Towers, function Trig_Reinforced_Towers_Actions )
endfunction
function Trig_Rebuildable_Towers_Conditions takes nothing returns boolean
if ( not ( GetResearched() == 'R00E' ) ) then
return false
endif
return true
endfunction
function Trig_Rebuildable_Towers_Actions takes nothing returns nothing
call PlaySoundBJ( gg_snd_ResurrectTarget )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetResearchingUnit())) + " has researched Rebuildable Towers! (Guard towers can be rebuilt after being destroyed!)" ) )
call SetPlayerTechResearchedSwap( 'R00E', 1, Player(0) )
call SetPlayerTechResearchedSwap( 'R00E', 1, Player(1) )
call SetPlayerTechResearchedSwap( 'R00E', 1, Player(2) )
call SetPlayerTechResearchedSwap( 'R00E', 1, Player(3) )
call SetPlayerTechResearchedSwap( 'R00E', 1, Player(4) )
call SetPlayerTechResearchedSwap( 'R00E', 1, Player(5) )
call SetPlayerTechResearchedSwap( 'R00E', 1, Player(6) )
call SetPlayerTechResearchedSwap( 'R00E', 1, Player(7) )
call SetPlayerTechResearchedSwap( 'R00I', 1, Player(8) )
call EnableTrigger( gg_trg_Rebuild_Towers )
call EnableTrigger( gg_trg_Rebuild_Towers_Remake )
endfunction
//===========================================================================
function InitTrig_Rebuildable_Towers takes nothing returns nothing
set gg_trg_Rebuildable_Towers = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Rebuildable_Towers, EVENT_PLAYER_UNIT_RESEARCH_FINISH )
call TriggerAddCondition( gg_trg_Rebuildable_Towers, Condition( function Trig_Rebuildable_Towers_Conditions ) )
call TriggerAddAction( gg_trg_Rebuildable_Towers, function Trig_Rebuildable_Towers_Actions )
endfunction
function Trig_Safe_Pouches_Conditions takes nothing returns boolean
if ( not ( GetResearched() == 'R00K' ) ) then
return false
endif
return true
endfunction
function Trig_Safe_Pouches_Actions takes nothing returns nothing
call PlaySoundBJ( gg_snd_ResurrectTarget )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetResearchingUnit())) + " has researched Safe Pouches! (Gold loss penalty for dying reduced by 25%!)" ) )
call SetPlayerTechResearchedSwap( 'R00K', 1, Player(0) )
call SetPlayerTechResearchedSwap( 'R00K', 1, Player(1) )
call SetPlayerTechResearchedSwap( 'R00K', 1, Player(2) )
call SetPlayerTechResearchedSwap( 'R00K', 1, Player(3) )
call SetPlayerTechResearchedSwap( 'R00K', 1, Player(4) )
call SetPlayerTechResearchedSwap( 'R00K', 1, Player(5) )
call SetPlayerTechResearchedSwap( 'R00K', 1, Player(6) )
call SetPlayerTechResearchedSwap( 'R00K', 1, Player(7) )
call SetPlayerTechResearchedSwap( 'R00K', 1, Player(8) )
set udg_CurrentGoldDeathUpgrade = ( udg_CurrentGoldDeathUpgrade + 1 )
endfunction
//===========================================================================
function InitTrig_Safe_Pouches takes nothing returns nothing
set gg_trg_Safe_Pouches = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Safe_Pouches, EVENT_PLAYER_UNIT_RESEARCH_FINISH )
call TriggerAddCondition( gg_trg_Safe_Pouches, Condition( function Trig_Safe_Pouches_Conditions ) )
call TriggerAddAction( gg_trg_Safe_Pouches, function Trig_Safe_Pouches_Actions )
endfunction
function Trig_Energy_Rush_Conditions takes nothing returns boolean
if ( not ( GetResearched() == 'R00H' ) ) then
return false
endif
return true
endfunction
function Trig_Energy_Rush_Actions takes nothing returns nothing
call PlaySoundBJ( gg_snd_ResurrectTarget )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetResearchingUnit())) + " has researched Energy Rush (Energy Regeneration +1)" ) )
call SetPlayerTechResearchedSwap( 'R00H', 1, Player(0) )
call SetPlayerTechResearchedSwap( 'R00H', 1, Player(1) )
call SetPlayerTechResearchedSwap( 'R00H', 1, Player(2) )
call SetPlayerTechResearchedSwap( 'R00H', 1, Player(3) )
call SetPlayerTechResearchedSwap( 'R00H', 1, Player(4) )
call SetPlayerTechResearchedSwap( 'R00H', 1, Player(5) )
call SetPlayerTechResearchedSwap( 'R00H', 1, Player(6) )
call SetPlayerTechResearchedSwap( 'R00H', 1, Player(7) )
call SetPlayerTechResearchedSwap( 'R00H', 1, Player(8) )
set udg_EnergyRegenTotal = ( udg_EnergyRegenTotal + 1 )
endfunction
//===========================================================================
function InitTrig_Energy_Rush takes nothing returns nothing
set gg_trg_Energy_Rush = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Energy_Rush, EVENT_PLAYER_UNIT_RESEARCH_FINISH )
call TriggerAddCondition( gg_trg_Energy_Rush, Condition( function Trig_Energy_Rush_Conditions ) )
call TriggerAddAction( gg_trg_Energy_Rush, function Trig_Energy_Rush_Actions )
endfunction
function Trig_Teleport_OUT_Castle_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetEnteringUnit(), GetRandomLocInRect(gg_rct_Starting_Player_Area) )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Starting_Player_Area), 0 )
endfunction
//===========================================================================
function InitTrig_Teleport_OUT_Castle takes nothing returns nothing
set gg_trg_Teleport_OUT_Castle = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Teleport_OUT_Castle, gg_rct_Exit_to_Fortress )
call TriggerAddAction( gg_trg_Teleport_OUT_Castle, function Trig_Teleport_OUT_Castle_Actions )
endfunction
function Trig_Enemy_Patrol_to_Princess_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(9) ) ) then
return false
endif
return true
endfunction
function Trig_Enemy_Patrol_to_Princess_Actions takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnteringUnit(), "patrol", GetRectCenter(gg_rct_Prince_Area) )
endfunction
//===========================================================================
function InitTrig_Enemy_Patrol_to_Princess takes nothing returns nothing
set gg_trg_Enemy_Patrol_to_Princess = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Enemy_Patrol_to_Princess, gg_rct_Entire_Castle_Area )
call TriggerAddCondition( gg_trg_Enemy_Patrol_to_Princess, Condition( function Trig_Enemy_Patrol_to_Princess_Conditions ) )
call TriggerAddAction( gg_trg_Enemy_Patrol_to_Princess, function Trig_Enemy_Patrol_to_Princess_Actions )
endfunction
function Trig_P1_Kill_Score_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetKillingUnitBJ()) == Player(0) ) ) then
return false
endif
return true
endfunction
function Trig_P1_Kill_Score_Actions takes nothing returns nothing
set udg_P1Kills = ( udg_P1Kills + 1 )
endfunction
//===========================================================================
function InitTrig_P1_Kill_Score takes nothing returns nothing
set gg_trg_P1_Kill_Score = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_P1_Kill_Score, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_P1_Kill_Score, Condition( function Trig_P1_Kill_Score_Conditions ) )
call TriggerAddAction( gg_trg_P1_Kill_Score, function Trig_P1_Kill_Score_Actions )
endfunction
function Trig_P2_Kill_Score_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetKillingUnitBJ()) == Player(1) ) ) then
return false
endif
return true
endfunction
function Trig_P2_Kill_Score_Actions takes nothing returns nothing
set udg_P2Kills = ( udg_P2Kills + 1 )
endfunction
//===========================================================================
function InitTrig_P2_Kill_Score takes nothing returns nothing
set gg_trg_P2_Kill_Score = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_P2_Kill_Score, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_P2_Kill_Score, Condition( function Trig_P2_Kill_Score_Conditions ) )
call TriggerAddAction( gg_trg_P2_Kill_Score, function Trig_P2_Kill_Score_Actions )
endfunction
function Trig_P3_Kill_Score_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetKillingUnitBJ()) == Player(2) ) ) then
return false
endif
return true
endfunction
function Trig_P3_Kill_Score_Actions takes nothing returns nothing
set udg_P3Kills = ( udg_P3Kills + 1 )
endfunction
//===========================================================================
function InitTrig_P3_Kill_Score takes nothing returns nothing
set gg_trg_P3_Kill_Score = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_P3_Kill_Score, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_P3_Kill_Score, Condition( function Trig_P3_Kill_Score_Conditions ) )
call TriggerAddAction( gg_trg_P3_Kill_Score, function Trig_P3_Kill_Score_Actions )
endfunction
function Trig_P4_Kill_Score_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetKillingUnitBJ()) == Player(3) ) ) then
return false
endif
return true
endfunction
function Trig_P4_Kill_Score_Actions takes nothing returns nothing
set udg_P4Kills = ( udg_P4Kills + 1 )
endfunction
//===========================================================================
function InitTrig_P4_Kill_Score takes nothing returns nothing
set gg_trg_P4_Kill_Score = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_P4_Kill_Score, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_P4_Kill_Score, Condition( function Trig_P4_Kill_Score_Conditions ) )
call TriggerAddAction( gg_trg_P4_Kill_Score, function Trig_P4_Kill_Score_Actions )
endfunction
function Trig_P5_Kill_Score_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetKillingUnitBJ()) == Player(4) ) ) then
return false
endif
return true
endfunction
function Trig_P5_Kill_Score_Actions takes nothing returns nothing
set udg_P5Kills = ( udg_P5Kills + 1 )
endfunction
//===========================================================================
function InitTrig_P5_Kill_Score takes nothing returns nothing
set gg_trg_P5_Kill_Score = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_P5_Kill_Score, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_P5_Kill_Score, Condition( function Trig_P5_Kill_Score_Conditions ) )
call TriggerAddAction( gg_trg_P5_Kill_Score, function Trig_P5_Kill_Score_Actions )
endfunction
function Trig_P6_Kill_Score_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetKillingUnitBJ()) == Player(5) ) ) then
return false
endif
return true
endfunction
function Trig_P6_Kill_Score_Actions takes nothing returns nothing
set udg_P6Kills = ( udg_P6Kills + 1 )
endfunction
//===========================================================================
function InitTrig_P6_Kill_Score takes nothing returns nothing
set gg_trg_P6_Kill_Score = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_P6_Kill_Score, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_P6_Kill_Score, Condition( function Trig_P6_Kill_Score_Conditions ) )
call TriggerAddAction( gg_trg_P6_Kill_Score, function Trig_P6_Kill_Score_Actions )
endfunction
function Trig_P7_Kill_Score_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetKillingUnitBJ()) == Player(6) ) ) then
return false
endif
return true
endfunction
function Trig_P7_Kill_Score_Actions takes nothing returns nothing
set udg_P7Kills = ( udg_P7Kills + 1 )
endfunction
//===========================================================================
function InitTrig_P7_Kill_Score takes nothing returns nothing
set gg_trg_P7_Kill_Score = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_P7_Kill_Score, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_P7_Kill_Score, Condition( function Trig_P7_Kill_Score_Conditions ) )
call TriggerAddAction( gg_trg_P7_Kill_Score, function Trig_P7_Kill_Score_Actions )
endfunction
function Trig_P8_Kill_Score_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetKillingUnitBJ()) == Player(7) ) ) then
return false
endif
return true
endfunction
function Trig_P8_Kill_Score_Actions takes nothing returns nothing
set udg_P8Kills = ( udg_P8Kills + 1 )
endfunction
//===========================================================================
function InitTrig_P8_Kill_Score takes nothing returns nothing
set gg_trg_P8_Kill_Score = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_P8_Kill_Score, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_P8_Kill_Score, Condition( function Trig_P8_Kill_Score_Conditions ) )
call TriggerAddAction( gg_trg_P8_Kill_Score, function Trig_P8_Kill_Score_Actions )
endfunction
function Trig_Cant_Kill_Prince_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetAttacker()) != Player(9) ) ) then
return false
endif
return true
endfunction
function Trig_Cant_Kill_Prince_Actions takes nothing returns nothing
call IssueImmediateOrderBJ( GetAttacker(), "stop" )
endfunction
//===========================================================================
function InitTrig_Cant_Kill_Princess takes nothing returns nothing
set gg_trg_Cant_Kill_Princess = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Cant_Kill_Princess, gg_unit_H02G_0102, EVENT_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Cant_Kill_Princess, Condition( function Trig_Cant_Kill_Prince_Conditions ) )
call TriggerAddAction( gg_trg_Cant_Kill_Princess, function Trig_Cant_Kill_Prince_Actions )
endfunction
function Trig_Cant_Break_Caravan_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttackedUnitBJ()) == 'h01A' ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetAttacker()) != Player(9) ) ) then
return false
endif
return true
endfunction
function Trig_Cant_Break_Caravan_Actions takes nothing returns nothing
call IssueImmediateOrderBJ( GetAttacker(), "stop" )
endfunction
//===========================================================================
function InitTrig_Cant_Break_Caravan takes nothing returns nothing
set gg_trg_Cant_Break_Caravan = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Cant_Break_Caravan, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Cant_Break_Caravan, Condition( function Trig_Cant_Break_Caravan_Conditions ) )
call TriggerAddAction( gg_trg_Cant_Break_Caravan, function Trig_Cant_Break_Caravan_Actions )
endfunction
function Trig_Weather_15_AcidRain_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_3699" )
call ConditionalTriggerExecute( gg_trg_Acid_Rain )
call PlaySoundBJ( gg_snd_TheBlackArrow )
call AddWeatherEffectSaveLast( gg_rct_Entire_Game_Area, 'RLlr' )
call EnableWeatherEffect( GetLastCreatedWeatherEffect(), true )
call TriggerSleepAction( 90.00 )
call RemoveWeatherEffectBJ( GetLastCreatedWeatherEffect() )
endfunction
//===========================================================================
function InitTrig_Weather_15_AcidRain takes nothing returns nothing
set gg_trg_Weather_15_AcidRain = CreateTrigger( )
call TriggerAddAction( gg_trg_Weather_15_AcidRain, function Trig_Weather_15_AcidRain_Actions )
endfunction
function Trig_Weather_16_WindGusts_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_3700" )
call CreateNUnitsAtLoc( 1, 'e00B', Player(11), GetRectCenter(gg_rct_Weather_Target), bj_UNIT_FACING )
call PlaySoundBJ( gg_snd_TornadoLoop )
call AddWeatherEffectSaveLast( gg_rct_Entire_Game_Area, 'WOlw' )
call EnableWeatherEffect( GetLastCreatedWeatherEffect(), true )
call TriggerSleepAction( 90.00 )
call RemoveWeatherEffectBJ( GetLastCreatedWeatherEffect() )
call RemoveUnit( GroupPickRandomUnit(GetUnitsInRectAll(gg_rct_Weather_Target)) )
call RemoveUnit( GroupPickRandomUnit(GetUnitsInRectAll(gg_rct_Weather_Target)) )
call RemoveUnit( GroupPickRandomUnit(GetUnitsInRectAll(gg_rct_Weather_Target)) )
call RemoveUnit( GroupPickRandomUnit(GetUnitsInRectAll(gg_rct_Weather_Target)) )
endfunction
//===========================================================================
function InitTrig_Weather_16_WindGusts takes nothing returns nothing
set gg_trg_Weather_16_WindGusts = CreateTrigger( )
call TriggerAddAction( gg_trg_Weather_16_WindGusts, function Trig_Weather_16_WindGusts_Actions )
endfunction
function Trig_Weather_17_Holy_Winds_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_3701" )
call PlaySoundBJ( gg_snd_HolyWinds )
call CreateNUnitsAtLoc( 1, 'e00C', Player(11), GetRectCenter(gg_rct_Weather_Target), bj_UNIT_FACING )
call AddWeatherEffectSaveLast( gg_rct_Entire_Game_Area, 'LRma' )
call EnableWeatherEffect( GetLastCreatedWeatherEffect(), true )
call TriggerSleepAction( 90.00 )
call RemoveWeatherEffectBJ( GetLastCreatedWeatherEffect() )
call RemoveUnit( GroupPickRandomUnit(GetUnitsInRectAll(gg_rct_Weather_Target)) )
call RemoveUnit( GroupPickRandomUnit(GetUnitsInRectAll(gg_rct_Weather_Target)) )
call RemoveUnit( GroupPickRandomUnit(GetUnitsInRectAll(gg_rct_Weather_Target)) )
call RemoveUnit( GroupPickRandomUnit(GetUnitsInRectAll(gg_rct_Weather_Target)) )
endfunction
//===========================================================================
function InitTrig_Weather_17_Holy_Winds takes nothing returns nothing
set gg_trg_Weather_17_Holy_Winds = CreateTrigger( )
call TriggerAddAction( gg_trg_Weather_17_Holy_Winds, function Trig_Weather_17_Holy_Winds_Actions )
endfunction
function Trig_Weather_18_Deluge_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_3702" )
call IssuePointOrderLocBJ( gg_unit_e00A_0106, "cloudoffog", GetRectCenter(gg_rct_Weather_Target) )
call PlaySoundBJ( gg_snd_MonsoonRainLoop )
call AddWeatherEffectSaveLast( gg_rct_Entire_Game_Area, 'RLhr' )
call EnableWeatherEffect( GetLastCreatedWeatherEffect(), true )
call TriggerSleepAction( 90.00 )
call RemoveWeatherEffectBJ( GetLastCreatedWeatherEffect() )
endfunction
//===========================================================================
function InitTrig_Weather_18_Deluge takes nothing returns nothing
set gg_trg_Weather_18_Deluge = CreateTrigger( )
call TriggerAddAction( gg_trg_Weather_18_Deluge, function Trig_Weather_18_Deluge_Actions )
endfunction
function Trig_Weather_19_Manastorm_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_3703" )
call PlaySoundBJ( gg_snd_Manastorm )
call CreateNUnitsAtLoc( 1, 'e009', Player(11), GetRectCenter(gg_rct_Weather_Target), bj_UNIT_FACING )
call AddWeatherEffectSaveLast( gg_rct_Entire_Game_Area, 'MEds' )
call EnableWeatherEffect( GetLastCreatedWeatherEffect(), true )
call TriggerSleepAction( 90.00 )
call RemoveWeatherEffectBJ( GetLastCreatedWeatherEffect() )
call RemoveUnit( GroupPickRandomUnit(GetUnitsInRectAll(gg_rct_Weather_Target)) )
call RemoveUnit( GroupPickRandomUnit(GetUnitsInRectAll(gg_rct_Weather_Target)) )
call RemoveUnit( GroupPickRandomUnit(GetUnitsInRectAll(gg_rct_Weather_Target)) )
call RemoveUnit( GroupPickRandomUnit(GetUnitsInRectAll(gg_rct_Weather_Target)) )
endfunction
//===========================================================================
function InitTrig_Weather_19_Manastorm takes nothing returns nothing
set gg_trg_Weather_19_Manastorm = CreateTrigger( )
call TriggerAddAction( gg_trg_Weather_19_Manastorm, function Trig_Weather_19_Manastorm_Actions )
endfunction
function Trig_Weather_20_Haunt_Fog_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_3704" )
call IssueTargetOrderBJ( gg_unit_e008_0105, "acidbomb", gg_unit_h00Z_0027 )
call PlaySoundBJ( gg_snd_SoulPreservation01 )
call AddWeatherEffectSaveLast( gg_rct_Entire_Game_Area, 'FDgh' )
call EnableWeatherEffect( GetLastCreatedWeatherEffect(), true )
call TriggerSleepAction( 90.00 )
call RemoveWeatherEffectBJ( GetLastCreatedWeatherEffect() )
endfunction
//===========================================================================
function InitTrig_Weather_20_Haunt_Fog takes nothing returns nothing
set gg_trg_Weather_20_Haunt_Fog = CreateTrigger( )
call TriggerAddAction( gg_trg_Weather_20_Haunt_Fog, function Trig_Weather_20_Haunt_Fog_Actions )
endfunction
function Trig_Weather_22_Heat_Wave_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_4240" )
call DisableTrigger( gg_trg_Energy_Regeneration )
call PlaySoundBJ( gg_snd_RainOfFireLoop1 )
call TriggerSleepAction( 90.00 )
call EnableTrigger( gg_trg_Energy_Regeneration )
endfunction
//===========================================================================
function InitTrig_Weather_22_Heat_Wave takes nothing returns nothing
set gg_trg_Weather_22_Heat_Wave = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Weather_22_Heat_Wave, Player(10), "-heatwave", true )
call TriggerAddAction( gg_trg_Weather_22_Heat_Wave, function Trig_Weather_22_Heat_Wave_Actions )
endfunction
function Trig_Weather_24_Mageslayer_Mists_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_4402" )
call AddWeatherEffectSaveLast( gg_rct_Entire_Game_Area, 'FDrh' )
call ConditionalTriggerExecute( gg_trg_Mageslayer_Mists )
call PlaySoundBJ( gg_snd_SlowTarget01 )
call EnableWeatherEffect( GetLastCreatedWeatherEffect(), true )
call TriggerSleepAction( 90.00 )
call RemoveWeatherEffectBJ( GetLastCreatedWeatherEffect() )
endfunction
//===========================================================================
function InitTrig_Weather_24_Mageslayer_Mists takes nothing returns nothing
set gg_trg_Weather_24_Mageslayer_Mists = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Weather_24_Mageslayer_Mists, Player(10), "-mageslayer", true )
call TriggerAddAction( gg_trg_Weather_24_Mageslayer_Mists, function Trig_Weather_24_Mageslayer_Mists_Actions )
endfunction
function Trig_Mageslayer_Mists_Func001001002001 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(8) )
endfunction
function Trig_Mageslayer_Mists_Func001001002002001 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(9) )
endfunction
function Trig_Mageslayer_Mists_Func001001002002002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Mageslayer_Mists_Func001001002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Mageslayer_Mists_Func001001002002001(), Trig_Mageslayer_Mists_Func001001002002002() )
endfunction
function Trig_Mageslayer_Mists_Func001001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Mageslayer_Mists_Func001001002001(), Trig_Mageslayer_Mists_Func001001002002() )
endfunction
function Trig_Mageslayer_Mists_Func001002 takes nothing returns nothing
call SetUnitManaBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetEnumUnit()) - 20.00 ) )
endfunction
function Trig_Mageslayer_Mists_Func003001002001 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(8) )
endfunction
function Trig_Mageslayer_Mists_Func003001002002001 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(9) )
endfunction
function Trig_Mageslayer_Mists_Func003001002002002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Mageslayer_Mists_Func003001002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Mageslayer_Mists_Func003001002002001(), Trig_Mageslayer_Mists_Func003001002002002() )
endfunction
function Trig_Mageslayer_Mists_Func003001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Mageslayer_Mists_Func003001002001(), Trig_Mageslayer_Mists_Func003001002002() )
endfunction
function Trig_Mageslayer_Mists_Func003002 takes nothing returns nothing
call SetUnitManaBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetEnumUnit()) - 20.00 ) )
endfunction
function Trig_Mageslayer_Mists_Func005001002001 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(8) )
endfunction
function Trig_Mageslayer_Mists_Func005001002002001 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(9) )
endfunction
function Trig_Mageslayer_Mists_Func005001002002002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Mageslayer_Mists_Func005001002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Mageslayer_Mists_Func005001002002001(), Trig_Mageslayer_Mists_Func005001002002002() )
endfunction
function Trig_Mageslayer_Mists_Func005001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Mageslayer_Mists_Func005001002001(), Trig_Mageslayer_Mists_Func005001002002() )
endfunction
function Trig_Mageslayer_Mists_Func005002 takes nothing returns nothing
call SetUnitManaBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetEnumUnit()) - 20.00 ) )
endfunction
function Trig_Mageslayer_Mists_Func007001002001 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(8) )
endfunction
function Trig_Mageslayer_Mists_Func007001002002001 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(9) )
endfunction
function Trig_Mageslayer_Mists_Func007001002002002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Mageslayer_Mists_Func007001002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Mageslayer_Mists_Func007001002002001(), Trig_Mageslayer_Mists_Func007001002002002() )
endfunction
function Trig_Mageslayer_Mists_Func007001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Mageslayer_Mists_Func007001002001(), Trig_Mageslayer_Mists_Func007001002002() )
endfunction
function Trig_Mageslayer_Mists_Func007002 takes nothing returns nothing
call SetUnitManaBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetEnumUnit()) - 20.00 ) )
endfunction
function Trig_Mageslayer_Mists_Func009001002001 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(8) )
endfunction
function Trig_Mageslayer_Mists_Func009001002002001 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(9) )
endfunction
function Trig_Mageslayer_Mists_Func009001002002002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Mageslayer_Mists_Func009001002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Mageslayer_Mists_Func009001002002001(), Trig_Mageslayer_Mists_Func009001002002002() )
endfunction
function Trig_Mageslayer_Mists_Func009001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Mageslayer_Mists_Func009001002001(), Trig_Mageslayer_Mists_Func009001002002() )
endfunction
function Trig_Mageslayer_Mists_Func009002 takes nothing returns nothing
call SetUnitManaBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetEnumUnit()) - 20.00 ) )
endfunction
function Trig_Mageslayer_Mists_Func011001002001 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(8) )
endfunction
function Trig_Mageslayer_Mists_Func011001002002001 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(9) )
endfunction
function Trig_Mageslayer_Mists_Func011001002002002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Mageslayer_Mists_Func011001002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Mageslayer_Mists_Func011001002002001(), Trig_Mageslayer_Mists_Func011001002002002() )
endfunction
function Trig_Mageslayer_Mists_Func011001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Mageslayer_Mists_Func011001002001(), Trig_Mageslayer_Mists_Func011001002002() )
endfunction
function Trig_Mageslayer_Mists_Func011002 takes nothing returns nothing
call SetUnitManaBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetEnumUnit()) - 20.00 ) )
endfunction
function Trig_Mageslayer_Mists_Func013001002001 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(8) )
endfunction
function Trig_Mageslayer_Mists_Func013001002002001 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(9) )
endfunction
function Trig_Mageslayer_Mists_Func013001002002002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Mageslayer_Mists_Func013001002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Mageslayer_Mists_Func013001002002001(), Trig_Mageslayer_Mists_Func013001002002002() )
endfunction
function Trig_Mageslayer_Mists_Func013001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Mageslayer_Mists_Func013001002001(), Trig_Mageslayer_Mists_Func013001002002() )
endfunction
function Trig_Mageslayer_Mists_Func013002 takes nothing returns nothing
call SetUnitManaBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetEnumUnit()) - 20.00 ) )
endfunction
function Trig_Mageslayer_Mists_Func015001002001 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(8) )
endfunction
function Trig_Mageslayer_Mists_Func015001002002001 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(9) )
endfunction
function Trig_Mageslayer_Mists_Func015001002002002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Mageslayer_Mists_Func015001002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Mageslayer_Mists_Func015001002002001(), Trig_Mageslayer_Mists_Func015001002002002() )
endfunction
function Trig_Mageslayer_Mists_Func015001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Mageslayer_Mists_Func015001002001(), Trig_Mageslayer_Mists_Func015001002002() )
endfunction
function Trig_Mageslayer_Mists_Func015002 takes nothing returns nothing
call SetUnitManaBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetEnumUnit()) - 20.00 ) )
endfunction
function Trig_Mageslayer_Mists_Func017001002001 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(8) )
endfunction
function Trig_Mageslayer_Mists_Func017001002002001 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(9) )
endfunction
function Trig_Mageslayer_Mists_Func017001002002002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Mageslayer_Mists_Func017001002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Mageslayer_Mists_Func017001002002001(), Trig_Mageslayer_Mists_Func017001002002002() )
endfunction
function Trig_Mageslayer_Mists_Func017001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Mageslayer_Mists_Func017001002001(), Trig_Mageslayer_Mists_Func017001002002() )
endfunction
function Trig_Mageslayer_Mists_Func017002 takes nothing returns nothing
call SetUnitManaBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetEnumUnit()) - 20.00 ) )
endfunction
function Trig_Mageslayer_Mists_Func019001002001 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(8) )
endfunction
function Trig_Mageslayer_Mists_Func019001002002001 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(9) )
endfunction
function Trig_Mageslayer_Mists_Func019001002002002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Mageslayer_Mists_Func019001002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Mageslayer_Mists_Func019001002002001(), Trig_Mageslayer_Mists_Func019001002002002() )
endfunction
function Trig_Mageslayer_Mists_Func019001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Mageslayer_Mists_Func019001002001(), Trig_Mageslayer_Mists_Func019001002002() )
endfunction
function Trig_Mageslayer_Mists_Func019002 takes nothing returns nothing
call SetUnitManaBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetEnumUnit()) - 20.00 ) )
endfunction
function Trig_Mageslayer_Mists_Func021001002001 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(8) )
endfunction
function Trig_Mageslayer_Mists_Func021001002002001 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(9) )
endfunction
function Trig_Mageslayer_Mists_Func021001002002002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Mageslayer_Mists_Func021001002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Mageslayer_Mists_Func021001002002001(), Trig_Mageslayer_Mists_Func021001002002002() )
endfunction
function Trig_Mageslayer_Mists_Func021001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Mageslayer_Mists_Func021001002001(), Trig_Mageslayer_Mists_Func021001002002() )
endfunction
function Trig_Mageslayer_Mists_Func021002 takes nothing returns nothing
call SetUnitManaBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetEnumUnit()) - 20.00 ) )
endfunction
function Trig_Mageslayer_Mists_Func023001002001 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(8) )
endfunction
function Trig_Mageslayer_Mists_Func023001002002001 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(9) )
endfunction
function Trig_Mageslayer_Mists_Func023001002002002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Mageslayer_Mists_Func023001002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Mageslayer_Mists_Func023001002002001(), Trig_Mageslayer_Mists_Func023001002002002() )
endfunction
function Trig_Mageslayer_Mists_Func023001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Mageslayer_Mists_Func023001002001(), Trig_Mageslayer_Mists_Func023001002002() )
endfunction
function Trig_Mageslayer_Mists_Func023002 takes nothing returns nothing
call SetUnitManaBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetEnumUnit()) - 20.00 ) )
endfunction
function Trig_Mageslayer_Mists_Func025001002001 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(8) )
endfunction
function Trig_Mageslayer_Mists_Func025001002002001 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(9) )
endfunction
function Trig_Mageslayer_Mists_Func025001002002002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Mageslayer_Mists_Func025001002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Mageslayer_Mists_Func025001002002001(), Trig_Mageslayer_Mists_Func025001002002002() )
endfunction
function Trig_Mageslayer_Mists_Func025001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Mageslayer_Mists_Func025001002001(), Trig_Mageslayer_Mists_Func025001002002() )
endfunction
function Trig_Mageslayer_Mists_Func025002 takes nothing returns nothing
call SetUnitManaBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetEnumUnit()) - 20.00 ) )
endfunction
function Trig_Mageslayer_Mists_Func027001002001 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(8) )
endfunction
function Trig_Mageslayer_Mists_Func027001002002001 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(9) )
endfunction
function Trig_Mageslayer_Mists_Func027001002002002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Mageslayer_Mists_Func027001002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Mageslayer_Mists_Func027001002002001(), Trig_Mageslayer_Mists_Func027001002002002() )
endfunction
function Trig_Mageslayer_Mists_Func027001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Mageslayer_Mists_Func027001002001(), Trig_Mageslayer_Mists_Func027001002002() )
endfunction
function Trig_Mageslayer_Mists_Func027002 takes nothing returns nothing
call SetUnitManaBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetEnumUnit()) - 20.00 ) )
endfunction
function Trig_Mageslayer_Mists_Func029001002001 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(8) )
endfunction
function Trig_Mageslayer_Mists_Func029001002002001 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(9) )
endfunction
function Trig_Mageslayer_Mists_Func029001002002002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Mageslayer_Mists_Func029001002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Mageslayer_Mists_Func029001002002001(), Trig_Mageslayer_Mists_Func029001002002002() )
endfunction
function Trig_Mageslayer_Mists_Func029001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Mageslayer_Mists_Func029001002001(), Trig_Mageslayer_Mists_Func029001002002() )
endfunction
function Trig_Mageslayer_Mists_Func029002 takes nothing returns nothing
call SetUnitManaBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetEnumUnit()) - 20.00 ) )
endfunction
function Trig_Mageslayer_Mists_Func031001002001 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(8) )
endfunction
function Trig_Mageslayer_Mists_Func031001002002001 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(9) )
endfunction
function Trig_Mageslayer_Mists_Func031001002002002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Mageslayer_Mists_Func031001002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Mageslayer_Mists_Func031001002002001(), Trig_Mageslayer_Mists_Func031001002002002() )
endfunction
function Trig_Mageslayer_Mists_Func031001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Mageslayer_Mists_Func031001002001(), Trig_Mageslayer_Mists_Func031001002002() )
endfunction
function Trig_Mageslayer_Mists_Func031002 takes nothing returns nothing
call SetUnitManaBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetEnumUnit()) - 20.00 ) )
endfunction
function Trig_Mageslayer_Mists_Func033001002001 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(8) )
endfunction
function Trig_Mageslayer_Mists_Func033001002002001 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(9) )
endfunction
function Trig_Mageslayer_Mists_Func033001002002002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Mageslayer_Mists_Func033001002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Mageslayer_Mists_Func033001002002001(), Trig_Mageslayer_Mists_Func033001002002002() )
endfunction
function Trig_Mageslayer_Mists_Func033001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Mageslayer_Mists_Func033001002001(), Trig_Mageslayer_Mists_Func033001002002() )
endfunction
function Trig_Mageslayer_Mists_Func033002 takes nothing returns nothing
call SetUnitManaBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetEnumUnit()) - 20.00 ) )
endfunction
function Trig_Mageslayer_Mists_Func035001002001 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(8) )
endfunction
function Trig_Mageslayer_Mists_Func035001002002001 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(9) )
endfunction
function Trig_Mageslayer_Mists_Func035001002002002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Mageslayer_Mists_Func035001002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Mageslayer_Mists_Func035001002002001(), Trig_Mageslayer_Mists_Func035001002002002() )
endfunction
function Trig_Mageslayer_Mists_Func035001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Mageslayer_Mists_Func035001002001(), Trig_Mageslayer_Mists_Func035001002002() )
endfunction
function Trig_Mageslayer_Mists_Func035002 takes nothing returns nothing
call SetUnitManaBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetEnumUnit()) - 20.00 ) )
endfunction
function Trig_Mageslayer_Mists_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Mageslayer_Mists_Func001001002)), function Trig_Mageslayer_Mists_Func001002 )
call TriggerSleepAction( 5.00 )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Mageslayer_Mists_Func003001002)), function Trig_Mageslayer_Mists_Func003002 )
call TriggerSleepAction( 5.00 )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Mageslayer_Mists_Func005001002)), function Trig_Mageslayer_Mists_Func005002 )
call TriggerSleepAction( 5.00 )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Mageslayer_Mists_Func007001002)), function Trig_Mageslayer_Mists_Func007002 )
call TriggerSleepAction( 5.00 )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Mageslayer_Mists_Func009001002)), function Trig_Mageslayer_Mists_Func009002 )
call TriggerSleepAction( 5.00 )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Mageslayer_Mists_Func011001002)), function Trig_Mageslayer_Mists_Func011002 )
call TriggerSleepAction( 5.00 )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Mageslayer_Mists_Func013001002)), function Trig_Mageslayer_Mists_Func013002 )
call TriggerSleepAction( 5.00 )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Mageslayer_Mists_Func015001002)), function Trig_Mageslayer_Mists_Func015002 )
call TriggerSleepAction( 5.00 )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Mageslayer_Mists_Func017001002)), function Trig_Mageslayer_Mists_Func017002 )
call TriggerSleepAction( 5.00 )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Mageslayer_Mists_Func019001002)), function Trig_Mageslayer_Mists_Func019002 )
call TriggerSleepAction( 5.00 )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Mageslayer_Mists_Func021001002)), function Trig_Mageslayer_Mists_Func021002 )
call TriggerSleepAction( 5.00 )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Mageslayer_Mists_Func023001002)), function Trig_Mageslayer_Mists_Func023002 )
call TriggerSleepAction( 5.00 )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Mageslayer_Mists_Func025001002)), function Trig_Mageslayer_Mists_Func025002 )
call TriggerSleepAction( 5.00 )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Mageslayer_Mists_Func027001002)), function Trig_Mageslayer_Mists_Func027002 )
call TriggerSleepAction( 5.00 )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Mageslayer_Mists_Func029001002)), function Trig_Mageslayer_Mists_Func029002 )
call TriggerSleepAction( 5.00 )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Mageslayer_Mists_Func031001002)), function Trig_Mageslayer_Mists_Func031002 )
call TriggerSleepAction( 5.00 )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Mageslayer_Mists_Func033001002)), function Trig_Mageslayer_Mists_Func033002 )
call TriggerSleepAction( 5.00 )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Mageslayer_Mists_Func035001002)), function Trig_Mageslayer_Mists_Func035002 )
call TriggerSleepAction( 5.00 )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Mageslayer_Mists takes nothing returns nothing
set gg_trg_Mageslayer_Mists = CreateTrigger( )
call TriggerAddAction( gg_trg_Mageslayer_Mists, function Trig_Mageslayer_Mists_Actions )
endfunction
function Trig_Chronoegg_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I03P' ) ) then
return false
endif
return true
endfunction
function Trig_Chronoegg_Func005002 takes nothing returns nothing
call PauseUnitBJ( false, GetEnumUnit() )
endfunction
function Trig_Chronoegg_Actions takes nothing returns nothing
call TriggerSleepAction( 0.50 )
call PauseAllUnitsBJ( true )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), GetOwningPlayer(GetManipulatingUnit())), function Trig_Chronoegg_Func005002 )
call CinematicFilterGenericBJ( 15.00, BLEND_MODE_BLEND, "ReplaceableTextures\\CameraMasks\\White_mask.blp", 0.00, 100, 0.00, 70.00, 100.00, 100.00, 100.00, 100.00 )
call DisplayCineFilterBJ( true )
call PlaySoundBJ( gg_snd_ManaPotion )
call PlaySoundBJ( gg_snd_Tomes )
call DisplayTimedTextToForce( GetPlayersAll(), 15.00, ( GetPlayerName(GetOwningPlayer(GetManipulatingUnit())) + " breaks open a Chronoegg! |cff995500Time is frozen!|r" ) )
call TriggerSleepAction( 15.00 )
call DisplayCineFilterBJ( false )
call PauseAllUnitsBJ( false )
endfunction
//===========================================================================
function InitTrig_Chronoegg takes nothing returns nothing
set gg_trg_Chronoegg = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Chronoegg, EVENT_PLAYER_UNIT_USE_ITEM )
call TriggerAddCondition( gg_trg_Chronoegg, Condition( function Trig_Chronoegg_Conditions ) )
call TriggerAddAction( gg_trg_Chronoegg, function Trig_Chronoegg_Actions )
endfunction
function Trig_Energy_Drink_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I00V' ) ) then
return false
endif
return true
endfunction
function Trig_Energy_Drink_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 25, GetOwningPlayer(GetManipulatingUnit()), PLAYER_STATE_RESOURCE_LUMBER )
endfunction
//===========================================================================
function InitTrig_Energy_Drink takes nothing returns nothing
set gg_trg_Energy_Drink = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Energy_Drink, EVENT_PLAYER_UNIT_USE_ITEM )
call TriggerAddCondition( gg_trg_Energy_Drink, Condition( function Trig_Energy_Drink_Conditions ) )
call TriggerAddAction( gg_trg_Energy_Drink, function Trig_Energy_Drink_Actions )
endfunction
function Trig_Barrel_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I03G' ) ) then
return false
endif
return true
endfunction
function Trig_Barrel_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'o005', GetOwningPlayer(GetManipulatingUnit()), OffsetLocation(GetUnitLoc(GetManipulatingUnit()), GetRandomReal(-90.00, 90.00), GetRandomReal(-90.00, 90.00)), bj_UNIT_FACING )
endfunction
//===========================================================================
function InitTrig_Barrel takes nothing returns nothing
set gg_trg_Barrel = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Barrel, EVENT_PLAYER_UNIT_USE_ITEM )
call TriggerAddCondition( gg_trg_Barrel, Condition( function Trig_Barrel_Conditions ) )
call TriggerAddAction( gg_trg_Barrel, function Trig_Barrel_Actions )
endfunction
function Trig_Weather_Control_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I03K' ) ) then
return false
endif
return true
endfunction
function Trig_Weather_Control_Actions takes nothing returns nothing
call RemoveWeatherEffectBJ( GetLastCreatedWeatherEffect() )
call RemoveUnit( GroupPickRandomUnit(GetUnitsInRectAll(gg_rct_Weather_Target)) )
call RemoveUnit( GroupPickRandomUnit(GetUnitsInRectAll(gg_rct_Weather_Target)) )
call RemoveUnit( GroupPickRandomUnit(GetUnitsInRectAll(gg_rct_Weather_Target)) )
call RemoveUnit( GroupPickRandomUnit(GetUnitsInRectAll(gg_rct_Weather_Target)) )
call IssueImmediateOrderBJ( gg_unit_e008_0105, "stop" )
call IssueImmediateOrderBJ( gg_unit_e00A_0106, "stop" )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetManipulatingUnit())) + " uses a Gnomish Weather Control Device!" ) )
call ConditionalTriggerExecute( gg_trg_Random_Weather_And_Meteorologist )
endfunction
//===========================================================================
function InitTrig_Weather_Control takes nothing returns nothing
set gg_trg_Weather_Control = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Weather_Control, EVENT_PLAYER_UNIT_USE_ITEM )
call TriggerAddCondition( gg_trg_Weather_Control, Condition( function Trig_Weather_Control_Conditions ) )
call TriggerAddAction( gg_trg_Weather_Control, function Trig_Weather_Control_Actions )
endfunction
function Trig_Coral_Blade_Blessing_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I01M' ) ) then
return false
endif
return true
endfunction
function Trig_Coral_Blade_Blessing_Actions takes nothing returns nothing
set udg_CoralBladeBlessingCurrent = GetManipulatingUnit()
call EnableTrigger( gg_trg_Blessing_Effect )
set udg_CoralBlessingOn = true
call TriggerSleepAction( 20.00 )
set udg_CoralBlessingOn = false
endfunction
//===========================================================================
function InitTrig_Coral_Blade_Blessing takes nothing returns nothing
set gg_trg_Coral_Blade_Blessing = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Coral_Blade_Blessing, EVENT_PLAYER_UNIT_USE_ITEM )
call TriggerAddCondition( gg_trg_Coral_Blade_Blessing, Condition( function Trig_Coral_Blade_Blessing_Conditions ) )
call TriggerAddAction( gg_trg_Coral_Blade_Blessing, function Trig_Coral_Blade_Blessing_Actions )
endfunction
function Trig_Blessing_Effect_Conditions takes nothing returns boolean
if ( not ( GetAttackedUnitBJ() == udg_CoralBladeBlessingCurrent ) ) then
return false
endif
return true
endfunction
function Trig_Blessing_Effect_Func007C takes nothing returns boolean
if ( not ( udg_CoralBlessingOn == true ) ) then
return false
endif
return true
endfunction
function Trig_Blessing_Effect_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call SetUnitManaBJ( GetAttackedUnitBJ(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetAttackedUnitBJ()) + 20.00 ) )
call CreateTextTagUnitBJ( "TRIGSTR_2622", GetAttackedUnitBJ(), 0, 8.00, 30.00, 30.00, 100.00, 0 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 1.50 )
call TriggerSleepAction( 2 )
if ( Trig_Blessing_Effect_Func007C() ) then
call EnableTrigger( GetTriggeringTrigger() )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Blessing_Effect takes nothing returns nothing
set gg_trg_Blessing_Effect = CreateTrigger( )
call DisableTrigger( gg_trg_Blessing_Effect )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Blessing_Effect, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Blessing_Effect, Condition( function Trig_Blessing_Effect_Conditions ) )
call TriggerAddAction( gg_trg_Blessing_Effect, function Trig_Blessing_Effect_Actions )
endfunction
function Trig_Cleansed_Orb_of_Light_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I00W' ) ) then
return false
endif
return true
endfunction
function Trig_Cleansed_Orb_of_Light_Actions takes nothing returns nothing
call RemoveItem( GetManipulatedItem() )
call ReviveHeroLoc( udg_P1Hero, GetRectCenter(gg_rct_Starting_Player_Area), true )
call ReviveHeroLoc( udg_P2Hero, GetRectCenter(gg_rct_Starting_Player_Area), true )
call ReviveHeroLoc( udg_P3Hero, GetRectCenter(gg_rct_Starting_Player_Area), true )
call ReviveHeroLoc( udg_P4Hero, GetRectCenter(gg_rct_Starting_Player_Area), true )
call ReviveHeroLoc( udg_P5Hero, GetRectCenter(gg_rct_Starting_Player_Area), true )
call ReviveHeroLoc( udg_P6Hero, GetRectCenter(gg_rct_Starting_Player_Area), true )
call ReviveHeroLoc( udg_P7Hero, GetRectCenter(gg_rct_Starting_Player_Area), true )
call ReviveHeroLoc( udg_P8Hero, GetRectCenter(gg_rct_Starting_Player_Area), true )
call PlaySoundBJ( gg_snd_SlowRezzSound )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetManipulatingUnit())) + " has used the Orb of Light! All heroes are revived!" ) )
endfunction
//===========================================================================
function InitTrig_Cleansed_Orb_of_Light takes nothing returns nothing
set gg_trg_Cleansed_Orb_of_Light = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Cleansed_Orb_of_Light, EVENT_PLAYER_UNIT_USE_ITEM )
call TriggerAddCondition( gg_trg_Cleansed_Orb_of_Light, Condition( function Trig_Cleansed_Orb_of_Light_Conditions ) )
call TriggerAddAction( gg_trg_Cleansed_Orb_of_Light, function Trig_Cleansed_Orb_of_Light_Actions )
endfunction