function Trig_Exp_Decay_And_Bounty_Actions takes nothing returns nothing
call SetTimeOfDay(6.00)
call UseTimeOfDayBJ(true)
call SetTimeOfDayScalePercentBJ(50.00)
call SetSkyModel("Environment\\Sky\\FoggedSky\\FoggedSky.mdl")
call SetPlayerHandicapXPBJ(Player(1),100.00)
call SetPlayerHandicapXPBJ(Player(2),100.00)
call SetPlayerHandicapXPBJ(Player(3),100.00)
call SetPlayerHandicapXPBJ(Player(4),100.00)
call SetPlayerHandicapXPBJ(Player(5),100.00)
call SetPlayerHandicapXPBJ(Player(7),100.00)
call SetPlayerHandicapXPBJ(Player(8),100.00)
call SetPlayerHandicapXPBJ(Player(9),100.00)
call SetPlayerHandicapXPBJ(Player(10),100.00)
call SetPlayerHandicapXPBJ(Player(11),100.00)
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(0))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(1))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(2))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(3))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(4))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(5))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(6))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(7))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(8))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(9))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(10))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(11))
endfunction
function Trig_Tree_Recreation_Func002002 takes nothing returns nothing
call DestructableRestoreLife(GetEnumDestructable(),GetDestructableMaxLife(GetEnumDestructable()),false)
endfunction
function Trig_Tree_Recreation_Actions takes nothing returns nothing
call TriggerSleepAction(30.00)
call EnumDestructablesInRectAll(GetEntireMapRect(),function Trig_Tree_Recreation_Func002002)
endfunction
Name | Type | is_array | initial_value |
ADamage | integer | No | |
AI_computer | unit | No | |
AI_Insane | player | No | |
AICOMPUTER | force | No | |
alevel | integer | No | |
allrandom | boolean | No | |
AMeteor_caster | location | No | |
AMeteor_point | location | No | |
AncientScale | unit | No | UnitNull |
APicked_Unit_point | location | No | |
APOn | boolean | No | |
arandomnumber | integer | No | |
AROn | boolean | No | |
assassin | unit | No | |
attacking | boolean | Yes | false |
attackregion | rect | Yes | |
Aunit_group | group | No | |
Aztro | unit | No | UnitNull |
Aztro2 | integer | No | |
Aztro3 | group | No | |
Aztrodiarck | unit | No | UnitNull |
BanishRay | integer | No | |
BeamCounter | integer | No | |
Bear | unit | No | |
BearPercentLife | real | No | |
booted | boolean | Yes | false |
BSDam | real | No | |
BSPosition | real | Yes | 0 |
BSTarget | unit | No | |
BSUnit | unit | No | |
Burrowed | boolean | No | |
BushidoBladeUnit | unit | No | |
BushidoGroup | group | No | |
BushidoOwner | player | No | |
BushidoRandomNumber | integer | No | |
cage | destructable | Yes | |
Calamity | unit | No | UnitNull |
Calamity2 | player | No | |
CFLv | integer | No | |
ChainFreezingCounter | integer | No | |
ChainFreezingUnit | unit | No | |
ChainFrostGroup | group | No | |
ChainFrostPlayer | player | No | |
ChainLinkNumber | integer | No | |
ChainLinks | unit | Yes | |
chaosrandom | integer | No | |
CharmGroup | group | No | |
CharmRandom | unit | No | |
CheckCS | string | Yes | |
CHor | integer | No | |
CHorT | integer | No | |
Churugrafuss | unit | No | UnitNull |
Colors | string | Yes | |
count | integer | No | |
CreepRand | integer | No | |
CSp1Int | integer | Yes | 0 |
CSp2Int | integer | Yes | 0 |
DeathTimeDE | real | Yes | 0 |
DEC1 | string | No | |
DEC2 | string | No | |
defendingattackregion | rect | Yes | |
defendingsent | boolean | No | |
defendingundead | boolean | No | |
DevourSoul | real | No | |
DevourSoul2 | unit | No | UnitNull |
DevourSoul3 | integer | No | |
DevourSoul4 | integer | No | |
DevourSoul5 | real | No | |
DiabolicEdictCaster | unit | No | |
DivineRessurection | unit | No | UnitNull |
DMBool | boolean | No | |
DMChargeFive | integer | Yes | 0 |
DMChargeFour | integer | Yes | 0 |
DMChargeOne | integer | Yes | 0 |
DMChargeSix | integer | Yes | 0 |
DMChargeThree | integer | Yes | 0 |
DMChargeTwo | integer | Yes | 0 |
DMHeroExp | integer | Yes | 0 |
DMHeroMoney | integer | Yes | 0 |
DMItemFive | integer | Yes | 0 |
DMItemFour | integer | Yes | 0 |
DMItemOne | integer | Yes | 0 |
DMItemSix | integer | Yes | 0 |
DmItemThree | integer | Yes | 0 |
DMItemTwo | integer | Yes | 0 |
DraggedUnit | unit | No | |
Dragger | unit | No | |
dragonskills | integer | No | |
DragonUser | unit | No | |
DustLevel | integer | No | |
EclipseBeam | unitcode | No | |
EclipseCaster | unit | No | |
EclipseGroup | group | No | |
EclipseLim | integer | No | |
EclipseLvl | integer | No | |
EclipseTarget | unit | No | |
ECsubstrings1 | string | Yes | |
ECsubstrings2 | string | Yes | |
Elapsed20 | boolean | No | |
ElapsedTime | boolean | No | |
Elysium | location | No | |
EnteredMatchID1 | string | No | |
EnteredMatchID2 | string | No | |
EpiGroup | group | No | |
F_aura | abilcode | No | |
FBTarget | unit | No | |
FDetonate | trigger | No | |
FFHero | unit | No | |
FFLv | integer | No | |
FGCaster | unit | No | |
FGNum | real | No | |
FinalEclipseGroup | group | No | |
FlamesofHell | real | No | |
FleshHeap | real | No | |
FrostTarget | unit | No | |
Gemini | unit | No | UnitNull |
GMCount | integer | No | |
GMOldest | unit | No | |
GMT2B | integer | No | |
GMTimer | timer | Yes | |
GMTot | integer | No | |
GMUnit | unit | Yes | |
GushDMG | real | No | |
hammersowned | integer | No | |
HasChosen | boolean | Yes | false |
HaveABear | boolean | No | |
HeroesDead | integer | Yes | 0 |
HeroFlags | boolean | Yes | false |
HeroNum | integer | Yes | 0 |
heronumber | integer | No | |
heros | integer | Yes | |
HO | integer | No | |
home | rect | Yes | |
HPUnit | unit | No | |
HR | integer | No | |
HSLife | real | No | |
HunterHero | unit | No | |
IlCaster | unit | No | |
IllLvl | integer | No | |
InOut | boolean | No | |
IntMult | integer | No | |
isalive | boolean | Yes | false |
iscounting | boolean | Yes | false |
ishealing | boolean | Yes | false |
ItemDrop | boolean | No | |
itemnumber | integer | Yes | 0 |
ItemO | integer | No | |
ItemR | integer | No | |
ItemRand | integer | No | |
ItemTaken | boolean | Yes | false |
Keeper | unit | No | |
KillinPlayer | integer | No | |
KillInt | integer | Yes | 0 |
Killsinarow | integer | Yes | 0 |
KillTimer | timer | Yes | |
lastsaferegion | rect | Yes | |
LBDeaths | integer | Yes | 0 |
LBDeathsSTR | string | Yes | |
LBKills | integer | Yes | 0 |
LBKillsStr | string | Yes | |
LBTime | timer | No | |
LBTow | integer | Yes | 0 |
Leviathan | unit | No | |
LoopA | integer | No | |
LRage | unit | No | UnitNull |
Malaise1 | unit | No | UnitNull |
Malaise2 | unit | No | UnitNull |
ManaVoid | real | No | |
MCCaster | unit | No | |
MCLvl | integer | Yes | 0 |
MCSpell | integer | No | |
meleerandom | boolean | No | |
meteor_caster | location | No | |
MHLevel | integer | No | |
MHUnits | unit | Yes | |
Minutes | integer | No | |
MLL | integer | No | |
MMGroup | group | No | |
MMUnit | integer | No | |
MorphAbil | integer | No | |
Morphling | unit | No | |
MorphlingCopyUnit | unit | No | |
MorphlingHero | unit | No | |
moving | boolean | Yes | false |
NagaSiren | unit | No | |
NetherPosition | location | Yes | |
NetherUnits | unit | Yes | |
NGBool | boolean | No | |
NGUS | boolean | No | |
NightBool | boolean | No | |
NightCaster | unit | No | |
NightLvl | integer | No | |
nopowerups | boolean | No | |
NPTot | integer | No | |
NPU | boolean | Yes | false |
Omni1 | boolean | No | |
OneMin | boolean | No | |
OPCount | integer | No | |
OrbDist | real | No | |
PickedItems | item | No | |
PlayerColors | string | Yes | |
playerheronumber | integer | Yes | 0 |
PN | real | Yes | 0 |
PNG | group | No | |
PNLv | integer | No | |
PNovaCaster | unit | No | |
PNovaDist | real | No | |
PNPt | location | No | |
PNU | unit | Yes | |
PotFDam | real | No | |
PotFT | integer | No | |
PotFTarget | unit | No | |
Powerups | boolean | No | |
PTimer | timer | Yes | |
PunishBolt | location | No | |
Rand | unitcode | No | |
RandHero | unitcode | Yes | |
RandNum | integer | No | |
RandNumCp | integer | No | |
random | boolean | No | |
random012 | integer | No | |
randomselect | boolean | Yes | false |
RandPer | unit | No | |
RandPerson | unit | No | |
rangedrandom | boolean | No | |
RaxCount | integer | Yes | 0 |
RDAbil | unitcode | No | |
RDDummy | unit | No | |
RDHero | unit | No | |
RDTarget | unit | No | |
ReD | boolean | Yes | false |
ReHT | integer | Yes | 0 |
ReP | player | Yes | |
repickselect | boolean | Yes | false |
RePN | integer | No | |
ReT | integer | Yes | 0 |
ReU | boolean | No | |
ReviveMultiplier | real | No | |
RoTRemove | unit | No | |
Sagitarius | unit | No | UnitNull |
Sagitarius2 | player | No | |
sandking | unit | No | |
scFinal | string | No | |
scFinalSeed | string | No | |
scourgerandom | boolean | No | |
scResult | integer | No | |
scSemiFinal | string | No | |
Seconds | integer | No | |
semifChecksumMath | integer | Yes | 0 |
semifChecksumMath_STR | string | Yes | |
SemiFdigits | string | Yes | |
semifTempCheckSumINT | integer | Yes | 0 |
semiSemiFinal | string | No | |
sentrandom | boolean | No | |
shouldmove | boolean | Yes | false |
SNum | integer | No | |
SoulPurgeDamageTaken | real | No | |
SpawnBadAss | boolean | Yes | false |
SpawnMRLMR | boolean | Yes | true |
SpawnMultiplier | integer | Yes | 3 |
spawnnumber | integer | No | |
Spider | unit | No | |
SpoutTree | destructable | Yes | |
start | rect | No | |
SunderPercentLife | real | Yes | 0 |
SunderTargets | unit | Yes | |
TeamOwnage | integer | Yes | 0 |
Techies | unit | No | |
TempCounter | integer | No | |
TempPotF | integer | No | |
Terra | location | No | |
TimeOfDay | real | No | |
TrackedUnit | unit | No | |
TROn | boolean | No | |
TTD1 | unit | No | UnitNull |
TTD2 | unit | No | UnitNull |
TTDLV1 | integer | No | |
TTDLV2 | integer | No | |
TTDLV3 | integer | No | |
TTDLV4 | integer | No | |
TTDLV5 | integer | No | |
UDNum | integer | No | |
ultimateorgsowned | integer | No | |
undercoverbrother | unit | Yes | |
Unit1 | unit | No | UnitNull |
Unit2 | unit | No | UnitNull |
Unitgroup | group | No | |
UnitsRegion | group | No | |
unspentskillpoints | integer | No | |
upgradersowned | integer | No | |
Vengefulattacker | unit | No | UnitNull |
Vengesoul | real | No | |
venom | unit | No | UnitNull |
Venomcaster | unit | No | UnitNull |
Venomint | integer | No | |
Venomous | unit | No | UnitNull |
VersionString | string | No | |
Virgo | unit | No | UnitNull |
WebGroup | unit | Yes | |
WebInt | integer | No | |
WoTFace | real | No | |
WoTPt | location | No | |
Yggrasil | unit | No |
function Trig_entry_Func004C takes nothing returns boolean
if(not(IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(IsUnitType(GetEnteringUnit(),UNIT_TYPE_SUMMONED)==false)) then
return false
endif
if(not(IsUnitIllusionBJ(GetEnteringUnit())==false)) then
return false
endif
return true
endfunction
function Trig_entry_Func001C takes nothing returns boolean
if(not(IsUnitAlly(GetTriggerUnit(),Player(0))==true)) then
return false
endif
return true
endfunction
function Trig_entry_Func002C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='Hamg')) then
return false
endif
return true
endfunction
function Trig_entry_Func003C takes nothing returns boolean
if(not(IsUnitAlly(GetEnteringUnit(),Player(0))==true)) then
return false
endif
return true
endfunction
function Trig_entry_Conditions takes nothing returns boolean
if(not Trig_entry_Func004C()) then
return false
endif
return true
endfunction
function Trig_entry_Actions takes nothing returns nothing
if(Trig_entry_Func001C()) then
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnteringUnit()),GetRectCenter(gg_rct_Hero_Creation_NE),1.00)
else
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnteringUnit()),GetRectCenter(gg_rct_Hero_Creation_Evil),1.00)
endif
if(Trig_entry_Func002C()) then
call IssuePointOrderLocBJ(GetTriggerUnit(),"move",PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),10.00,30.00))
else
call DoNothing()
endif
if(Trig_entry_Func003C()) then
call SetUnitPositionLoc(GetEnteringUnit(),GetRandomLocInRect(gg_rct_Hero_Creation_NE))
else
call SetUnitPositionLoc(GetEnteringUnit(),GetRandomLocInRect(gg_rct_Hero_Creation_Evil))
endif
endfunction
function InitTrig_entry takes nothing returns nothing
set gg_trg_entry=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_entry,gg_rct_herospawnsent)
call TriggerRegisterEnterRectSimple(gg_trg_entry,gg_rct_herospawnud)
call TriggerAddCondition(gg_trg_entry,Condition(function Trig_entry_Conditions))
call TriggerAddAction(gg_trg_entry,function Trig_entry_Actions)
endfunction
function Trig_entryDE_Func017C takes nothing returns boolean
if(not(IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(IsUnitType(GetEnteringUnit(),UNIT_TYPE_SUMMONED)==false)) then
return false
endif
if(not(IsUnitIllusionBJ(GetEnteringUnit())==false)) then
return false
endif
return true
endfunction
function Trig_entryDE_Func001C takes nothing returns boolean
if(not(IsUnitAlly(GetTriggerUnit(),Player(0))==true)) then
return false
endif
return true
endfunction
function Trig_entryDE_Func002C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='Hamg')) then
return false
endif
return true
endfunction
function Trig_entryDE_Func003C takes nothing returns boolean
if(not(IsUnitAlly(GetEnteringUnit(),Player(0))==true)) then
return false
endif
return true
endfunction
function Trig_entryDE_Func004Func001C takes nothing returns boolean
if(not(udg_DMHeroExp[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]<=14)) then
return false
endif
return true
endfunction
function Trig_entryDE_Func004C takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
return true
endfunction
function Trig_entryDE_Conditions takes nothing returns boolean
if(not Trig_entryDE_Func017C()) then
return false
endif
return true
endfunction
function Trig_entryDE_Actions takes nothing returns nothing
if(Trig_entryDE_Func001C()) then
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnteringUnit()),GetRectCenter(gg_rct_Hero_Creation_NE),1.00)
else
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnteringUnit()),GetRectCenter(gg_rct_Hero_Creation_Evil),1.00)
endif
if(Trig_entryDE_Func002C()) then
call IssuePointOrderLocBJ(GetTriggerUnit(),"move",PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),10.00,30.00))
else
call DoNothing()
endif
if(Trig_entryDE_Func003C()) then
call SetUnitPositionLoc(GetEnteringUnit(),GetRandomLocInRect(gg_rct_Hero_Creation_NE))
else
call SetUnitPositionLoc(GetEnteringUnit(),GetRandomLocInRect(gg_rct_Hero_Creation_Evil))
endif
if(Trig_entryDE_Func004C()) then
if(Trig_entryDE_Func004Func001C()) then
call SetHeroLevelBJ(GetTriggerUnit(),(udg_DMHeroExp[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]-1),true)
else
call SetHeroLevelBJ(GetTriggerUnit(),(udg_DMHeroExp[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]-2),true)
endif
else
call DoNothing()
endif
call UnitAddItemByIdSwapped(udg_DMItemOne[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))],GetTriggerUnit())
call SetItemCharges(GetLastCreatedItem(),udg_DMChargeOne[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
call UnitAddItemByIdSwapped(udg_DMItemTwo[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))],GetTriggerUnit())
call SetItemCharges(GetLastCreatedItem(),udg_DMChargeTwo[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
call UnitAddItemByIdSwapped(udg_DmItemThree[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))],GetTriggerUnit())
call SetItemCharges(GetLastCreatedItem(),udg_DMChargeThree[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
call UnitAddItemByIdSwapped(udg_DMItemFour[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))],GetTriggerUnit())
call SetItemCharges(GetLastCreatedItem(),udg_DMChargeFour[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
call UnitAddItemByIdSwapped(udg_DMItemFive[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))],GetTriggerUnit())
call SetItemCharges(GetLastCreatedItem(),udg_DMChargeFive[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
call UnitAddItemByIdSwapped(udg_DMItemSix[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))],GetTriggerUnit())
call SetItemCharges(GetLastCreatedItem(),udg_DMChargeSix[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
endfunction
function InitTrig_entryDE takes nothing returns nothing
set gg_trg_entryDE=CreateTrigger()
call DisableTrigger(gg_trg_entryDE)
call TriggerRegisterEnterRectSimple(gg_trg_entryDE,gg_rct_herospawnsent)
call TriggerRegisterEnterRectSimple(gg_trg_entryDE,gg_rct_herospawnud)
call TriggerAddCondition(gg_trg_entryDE,Condition(function Trig_entryDE_Conditions))
call TriggerAddAction(gg_trg_entryDE,function Trig_entryDE_Actions)
endfunction
function Trig_RS1_Actions takes nothing returns nothing
call TriggerSleepAction(0.01)
call SetPlayerTechMaxAllowedSwap('EC80',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('N00Z',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('H000',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('EC53',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('O002',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('EC52',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('O00P',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('H004',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('H005',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('HC92',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('H002',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('OC56',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('H001',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('O00K',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('N00G',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('E005',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('H00I',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('H00K',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('H00J',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('HC49',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('H00D',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('E003',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('N00M',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('EC77',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('E002',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('EC45',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('UC01',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('Eevi',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('H00V',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('UC91',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('UC42',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('U000',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('NC00',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('EC04',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('EC57',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('UC76',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('UC18',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('UC11',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('UC60',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('E004',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('U00A',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('U007',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('U004',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('U00B',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('U008',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('OC55',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('N016',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('N01O',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('N01A',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('H00H',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('U006',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('Obla',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('Hamg',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('Ofar',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('Oshd',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('E00G',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('N000',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('Hmkg',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('Hblm',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('U00K',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('U00E',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('U00F',0,GetTriggerPlayer())
set udg_ReHT[(GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))+6)]=GetUnitTypeId(GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("A Scourge player will control "+(GetUnitName(GetTriggerUnit())+".")))
call SetPlayerStateBJ(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
call RemoveUnit(GetTriggerUnit())
endfunction
function InitTrig_RS1 takes nothing returns nothing
set gg_trg_RS1=CreateTrigger()
call DisableTrigger(gg_trg_RS1)
call TriggerRegisterEnterRectSimple(gg_trg_RS1,gg_rct_herospawnsent)
call TriggerAddAction(gg_trg_RS1,function Trig_RS1_Actions)
endfunction
function Trig_RS2_Actions takes nothing returns nothing
call TriggerSleepAction(0.01)
call SetPlayerTechMaxAllowedSwap('EC80',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('N00Z',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('H000',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('EC53',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('O002',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('EC52',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('O00P',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('H004',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('H005',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('HC92',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('H002',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('OC56',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('H001',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('O00K',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('N00G',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('E005',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('H00I',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('H00K',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('H00J',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('HC49',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('H00D',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('E003',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('N00M',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('EC77',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('E002',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('EC45',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('UC01',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('Eevi',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('H00V',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('UC91',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('UC42',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('U000',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('NC00',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('EC04',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('EC57',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('UC76',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('UC18',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('UC11',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('UC60',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('E004',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('U00A',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('U007',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('U004',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('U00B',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('U008',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('OC55',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('N016',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('N01O',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('N01A',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('H00H',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('U006',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('Obla',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('Hamg',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('Ofar',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('Oshd',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('E00G',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('N000',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('Hmkg',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('Hblm',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('U00F',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('U00K',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('U00E',0,GetTriggerPlayer())
set udg_ReHT[(GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))-6)]=GetUnitTypeId(GetTriggerUnit())
call RemoveUnit(GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("A Sentinel player will control "+(GetUnitName(GetTriggerUnit())+".")))
call SetPlayerStateBJ(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
endfunction
function InitTrig_RS2 takes nothing returns nothing
set gg_trg_RS2=CreateTrigger()
call DisableTrigger(gg_trg_RS2)
call TriggerRegisterEnterRectSimple(gg_trg_RS2,gg_rct_herospawnud)
call TriggerAddAction(gg_trg_RS2,function Trig_RS2_Actions)
endfunction
function Trig_Money_Actions takes nothing returns nothing
call AdjustPlayerStateBJ(8,Player(1),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(8,Player(2),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(8,Player(3),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(8,Player(4),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(8,Player(5),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(8,Player(7),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(8,Player(8),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(8,Player(9),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(8,Player(10),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(8,Player(11),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function InitTrig_Money takes nothing returns nothing
set gg_trg_Money=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(gg_trg_Money,7.00)
call TriggerAddAction(gg_trg_Money,function Trig_Money_Actions)
endfunction
function Trig_SM_Money_Actions takes nothing returns nothing
call AdjustPlayerStateBJ(10,Player(1),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(10,Player(2),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(10,Player(3),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(10,Player(4),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(10,Player(5),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(10,Player(7),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(10,Player(8),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(10,Player(9),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(10,Player(10),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(10,Player(11),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function InitTrig_SM_Money takes nothing returns nothing
set gg_trg_SM_Money=CreateTrigger()
call DisableTrigger(gg_trg_SM_Money)
call TriggerRegisterTimerEventPeriodic(gg_trg_SM_Money,7.00)
call TriggerAddAction(gg_trg_SM_Money,function Trig_SM_Money_Actions)
endfunction
function Trig_SentD_Func002C takes nothing returns boolean
if(not(udg_ItemDrop==true)) then
return false
endif
return true
endfunction
function Trig_SentD_Func005C takes nothing returns boolean
if(not(IsUnitDeadBJ(GetTriggerUnit())==true)) then
return false
endif
return true
endfunction
function Trig_SentD_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(7))) then
return false
endif
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(8))) then
return false
endif
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(9))) then
return false
endif
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(10))) then
return false
endif
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(11))) then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
return true
endfunction
function Trig_SentD_Actions takes nothing returns nothing
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("|cffff0000 Level "+(I2S(GetHeroLevel(GetDyingUnit()))+(" Sentinel Death.|r Revival in "+(I2S((GetHeroLevel(GetDyingUnit())*4))+" seconds.")))))
if(Trig_SentD_Func002C()) then
call UnitRemoveItemFromSlotSwapped(GetRandomInt(1,6),GetTriggerUnit())
else
call AdjustPlayerStateBJ((GetHeroLevel(GetDyingUnit())*-30),GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endif
call StartTimerBJ(udg_PTimer[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))],false,(I2R(GetHeroLevel(GetDyingUnit()))*4.00))
call PolledWait((I2R(GetHeroLevel(GetDyingUnit()))*4.00))
if(Trig_SentD_Func005C()) then
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetRectCenter(gg_rct_Hero_Creation_NE),1.00)
else
call DoNothing()
endif
call ReviveHeroLoc(GetTriggerUnit(),GetRectCenter(gg_rct_Hero_Creation_NE),true)
endfunction
function InitTrig_SentD takes nothing returns nothing
set gg_trg_SentD=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_SentD,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_SentD,Condition(function Trig_SentD_Conditions))
call TriggerAddAction(gg_trg_SentD,function Trig_SentD_Actions)
endfunction
function Trig_SentD_DE_Func002C takes nothing returns boolean
if(not(udg_ItemDrop==true)) then
return false
endif
return true
endfunction
function Trig_SentD_DE_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(7))) then
return false
endif
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(8))) then
return false
endif
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(9))) then
return false
endif
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(10))) then
return false
endif
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(11))) then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
return true
endfunction
function Trig_SentD_DE_Actions takes nothing returns nothing
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("|cffff0000 Level "+(I2S(GetHeroLevel(GetDyingUnit()))+(" Sentinel Death.|r Revival in "+(I2S((GetHeroLevel(GetDyingUnit())*4))+" seconds.")))))
if(Trig_SentD_DE_Func002C()) then
call UnitRemoveItemFromSlotSwapped(GetRandomInt(1,6),GetTriggerUnit())
else
call AdjustPlayerStateBJ((GetHeroLevel(GetDyingUnit())*-30),GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endif
call StartTimerBJ(udg_PTimer[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))],false,(I2R(GetHeroLevel(GetDyingUnit()))*4.00))
set udg_DMHeroExp[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetHeroLevel(GetTriggerUnit())
set udg_DMHeroMoney[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(125+(100*udg_DMHeroExp[1]))
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_FOOD_CAP,5)
call RemoveUnit(GetDyingUnit())
endfunction
function InitTrig_SentD_DE takes nothing returns nothing
set gg_trg_SentD_DE=CreateTrigger()
call DisableTrigger(gg_trg_SentD_DE)
call TriggerRegisterAnyUnitEventBJ(gg_trg_SentD_DE,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_SentD_DE,Condition(function Trig_SentD_DE_Conditions))
call TriggerAddAction(gg_trg_SentD_DE,function Trig_SentD_DE_Actions)
endfunction
function Trig_SentD_DE2_Func001Func005C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_SentD_DE2_Func001C takes nothing returns boolean
if(not(udg_AROn==true)) then
return false
endif
return true
endfunction
function Trig_SentD_DE2_Func002Func004C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_SentD_DE2_Func002C takes nothing returns boolean
if(not(udg_TROn==true)) then
return false
endif
return true
endfunction
function Trig_SentD_DE2_Func003Func002Func001C takes nothing returns boolean
if(not(udg_HeroFlags[GetForLoopIndexA()]==false)) then
return false
endif
return true
endfunction
function Trig_SentD_DE2_Func003C takes nothing returns boolean
if(not(udg_AROn==false)) then
return false
endif
if(not(udg_TROn==false)) then
return false
endif
return true
endfunction
function Trig_SentD_DE2_Actions takes nothing returns nothing
if(Trig_SentD_DE2_Func001C()) then
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,72)
if(Trig_SentD_DE2_Func001Func005C()) then
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(1),GetRectCenter(gg_rct_herospawnsent),GetPlayerStartLocationLoc(Player(1)))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
else
call DoNothing()
endif
if(Trig_SentD_DE2_Func002C()) then
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,36)
if(Trig_SentD_DE2_Func002Func004C()) then
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(1),GetRectCenter(gg_rct_herospawnsent),GetPlayerStartLocationLoc(Player(1)))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
else
call DoNothing()
endif
if(Trig_SentD_DE2_Func003C()) then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=36
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_SentD_DE2_Func003Func002Func001C()) then
call SetPlayerTechMaxAllowedSwap(udg_RandHero[GetForLoopIndexA()],1,Player(1))
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
endfunction
function InitTrig_SentD_DE2 takes nothing returns nothing
set gg_trg_SentD_DE2=CreateTrigger()
call DisableTrigger(gg_trg_SentD_DE2)
call TriggerRegisterTimerExpireEventBJ(gg_trg_SentD_DE2,udg_PTimer[2])
call TriggerAddAction(gg_trg_SentD_DE2,function Trig_SentD_DE2_Actions)
endfunction
function Trig_SentD_DE3_Func001Func005C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_SentD_DE3_Func001C takes nothing returns boolean
if(not(udg_AROn==true)) then
return false
endif
return true
endfunction
function Trig_SentD_DE3_Func002Func004C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_SentD_DE3_Func002C takes nothing returns boolean
if(not(udg_TROn==true)) then
return false
endif
return true
endfunction
function Trig_SentD_DE3_Func003Func002Func001C takes nothing returns boolean
if(not(udg_HeroFlags[GetForLoopIndexA()]==false)) then
return false
endif
return true
endfunction
function Trig_SentD_DE3_Func003C takes nothing returns boolean
if(not(udg_AROn==false)) then
return false
endif
if(not(udg_TROn==false)) then
return false
endif
return true
endfunction
function Trig_SentD_DE3_Actions takes nothing returns nothing
if(Trig_SentD_DE3_Func001C()) then
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,72)
if(Trig_SentD_DE3_Func001Func005C()) then
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(2),GetRectCenter(gg_rct_herospawnsent),GetPlayerStartLocationLoc(Player(1)))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
else
call DoNothing()
endif
if(Trig_SentD_DE3_Func002C()) then
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,36)
if(Trig_SentD_DE3_Func002Func004C()) then
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(2),GetRectCenter(gg_rct_herospawnsent),GetPlayerStartLocationLoc(Player(1)))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
else
call DoNothing()
endif
if(Trig_SentD_DE3_Func003C()) then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=36
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_SentD_DE3_Func003Func002Func001C()) then
call SetPlayerTechMaxAllowedSwap(udg_RandHero[GetForLoopIndexA()],1,Player(2))
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
endfunction
function InitTrig_SentD_DE3 takes nothing returns nothing
set gg_trg_SentD_DE3=CreateTrigger()
call DisableTrigger(gg_trg_SentD_DE3)
call TriggerRegisterTimerExpireEventBJ(gg_trg_SentD_DE3,udg_PTimer[3])
call TriggerAddAction(gg_trg_SentD_DE3,function Trig_SentD_DE3_Actions)
endfunction
function Trig_SentD_DE4_Func001Func005C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_SentD_DE4_Func001C takes nothing returns boolean
if(not(udg_AROn==true)) then
return false
endif
return true
endfunction
function Trig_SentD_DE4_Func002Func004C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_SentD_DE4_Func002C takes nothing returns boolean
if(not(udg_TROn==true)) then
return false
endif
return true
endfunction
function Trig_SentD_DE4_Func003Func002Func001C takes nothing returns boolean
if(not(udg_HeroFlags[GetForLoopIndexA()]==false)) then
return false
endif
return true
endfunction
function Trig_SentD_DE4_Func003C takes nothing returns boolean
if(not(udg_AROn==false)) then
return false
endif
if(not(udg_TROn==false)) then
return false
endif
return true
endfunction
function Trig_SentD_DE4_Actions takes nothing returns nothing
if(Trig_SentD_DE4_Func001C()) then
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,72)
if(Trig_SentD_DE4_Func001Func005C()) then
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(3),GetRectCenter(gg_rct_herospawnsent),GetPlayerStartLocationLoc(Player(1)))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
else
call DoNothing()
endif
if(Trig_SentD_DE4_Func002C()) then
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,36)
if(Trig_SentD_DE4_Func002Func004C()) then
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(3),GetRectCenter(gg_rct_herospawnsent),GetPlayerStartLocationLoc(Player(1)))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
else
call DoNothing()
endif
if(Trig_SentD_DE4_Func003C()) then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=36
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_SentD_DE4_Func003Func002Func001C()) then
call SetPlayerTechMaxAllowedSwap(udg_RandHero[GetForLoopIndexA()],1,Player(3))
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
endfunction
function InitTrig_SentD_DE4 takes nothing returns nothing
set gg_trg_SentD_DE4=CreateTrigger()
call DisableTrigger(gg_trg_SentD_DE4)
call TriggerRegisterTimerExpireEventBJ(gg_trg_SentD_DE4,udg_PTimer[4])
call TriggerAddAction(gg_trg_SentD_DE4,function Trig_SentD_DE4_Actions)
endfunction
function Trig_SentD_DE5_Func001Func005C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_SentD_DE5_Func001C takes nothing returns boolean
if(not(udg_AROn==true)) then
return false
endif
return true
endfunction
function Trig_SentD_DE5_Func002Func004C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_SentD_DE5_Func002C takes nothing returns boolean
if(not(udg_TROn==true)) then
return false
endif
return true
endfunction
function Trig_SentD_DE5_Func003Func002Func001C takes nothing returns boolean
if(not(udg_HeroFlags[GetForLoopIndexA()]==false)) then
return false
endif
return true
endfunction
function Trig_SentD_DE5_Func003C takes nothing returns boolean
if(not(udg_AROn==false)) then
return false
endif
if(not(udg_TROn==false)) then
return false
endif
return true
endfunction
function Trig_SentD_DE5_Actions takes nothing returns nothing
if(Trig_SentD_DE5_Func001C()) then
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,72)
if(Trig_SentD_DE5_Func001Func005C()) then
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(4),GetRectCenter(gg_rct_herospawnsent),GetPlayerStartLocationLoc(Player(1)))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
else
call DoNothing()
endif
if(Trig_SentD_DE5_Func002C()) then
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,36)
if(Trig_SentD_DE5_Func002Func004C()) then
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(4),GetRectCenter(gg_rct_herospawnsent),GetPlayerStartLocationLoc(Player(1)))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
else
call DoNothing()
endif
if(Trig_SentD_DE5_Func003C()) then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=36
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_SentD_DE5_Func003Func002Func001C()) then
call SetPlayerTechMaxAllowedSwap(udg_RandHero[GetForLoopIndexA()],1,Player(4))
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
endfunction
function InitTrig_SentD_DE5 takes nothing returns nothing
set gg_trg_SentD_DE5=CreateTrigger()
call DisableTrigger(gg_trg_SentD_DE5)
call TriggerRegisterTimerExpireEventBJ(gg_trg_SentD_DE5,udg_PTimer[5])
call TriggerAddAction(gg_trg_SentD_DE5,function Trig_SentD_DE5_Actions)
endfunction
function Trig_SentD_DE6_Func001Func005C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_SentD_DE6_Func001C takes nothing returns boolean
if(not(udg_AROn==true)) then
return false
endif
return true
endfunction
function Trig_SentD_DE6_Func002Func004C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_SentD_DE6_Func002C takes nothing returns boolean
if(not(udg_TROn==true)) then
return false
endif
return true
endfunction
function Trig_SentD_DE6_Func003Func002Func001C takes nothing returns boolean
if(not(udg_HeroFlags[GetForLoopIndexA()]==false)) then
return false
endif
return true
endfunction
function Trig_SentD_DE6_Func003C takes nothing returns boolean
if(not(udg_AROn==false)) then
return false
endif
if(not(udg_TROn==false)) then
return false
endif
return true
endfunction
function Trig_SentD_DE6_Actions takes nothing returns nothing
if(Trig_SentD_DE6_Func001C()) then
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,72)
if(Trig_SentD_DE6_Func001Func005C()) then
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(5),GetRectCenter(gg_rct_herospawnsent),GetPlayerStartLocationLoc(Player(1)))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
else
call DoNothing()
endif
if(Trig_SentD_DE6_Func002C()) then
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,36)
if(Trig_SentD_DE6_Func002Func004C()) then
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(5),GetRectCenter(gg_rct_herospawnsent),GetPlayerStartLocationLoc(Player(1)))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
else
call DoNothing()
endif
if(Trig_SentD_DE6_Func003C()) then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=36
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_SentD_DE6_Func003Func002Func001C()) then
call SetPlayerTechMaxAllowedSwap(udg_RandHero[GetForLoopIndexA()],1,Player(5))
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
endfunction
function InitTrig_SentD_DE6 takes nothing returns nothing
set gg_trg_SentD_DE6=CreateTrigger()
call DisableTrigger(gg_trg_SentD_DE6)
call TriggerRegisterTimerExpireEventBJ(gg_trg_SentD_DE6,udg_PTimer[6])
call TriggerAddAction(gg_trg_SentD_DE6,function Trig_SentD_DE6_Actions)
endfunction
function Trig_ScouD_Func008C takes nothing returns boolean
if(not(udg_ItemDrop==true)) then
return false
endif
return true
endfunction
function Trig_ScouD_Func011C takes nothing returns boolean
if(not(IsUnitDeadBJ(GetTriggerUnit())==true)) then
return false
endif
return true
endfunction
function Trig_ScouD_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(1))) then
return false
endif
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(2))) then
return false
endif
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(3))) then
return false
endif
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(4))) then
return false
endif
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(5))) then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
return true
endfunction
function Trig_ScouD_Actions takes nothing returns nothing
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("|cff00ff00 Level "+(I2S(GetHeroLevel(GetDyingUnit()))+(" Scourge Death.|r Revival in "+(I2S((GetHeroLevel(GetDyingUnit())*4))+" seconds.")))))
if(Trig_ScouD_Func008C()) then
call UnitRemoveItemFromSlotSwapped(GetRandomInt(1,6),GetTriggerUnit())
else
call AdjustPlayerStateBJ((GetHeroLevel(GetDyingUnit())*-30),GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endif
call StartTimerBJ(udg_PTimer[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))],false,(I2R(GetHeroLevel(GetDyingUnit()))*4.00))
call PolledWait((I2R(GetHeroLevel(GetDyingUnit()))*4.00))
if(Trig_ScouD_Func011C()) then
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetRectCenter(gg_rct_Hero_Creation_Evil),1.00)
else
call DoNothing()
endif
call ReviveHeroLoc(GetTriggerUnit(),GetRectCenter(gg_rct_Hero_Creation_Evil),true)
endfunction
function InitTrig_ScouD takes nothing returns nothing
set gg_trg_ScouD=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_ScouD,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_ScouD,Condition(function Trig_ScouD_Conditions))
call TriggerAddAction(gg_trg_ScouD,function Trig_ScouD_Actions)
endfunction
function Trig_ScouD_DE_Func008C takes nothing returns boolean
if(not(udg_ItemDrop==true)) then
return false
endif
return true
endfunction
function Trig_ScouD_DE_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(1))) then
return false
endif
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(2))) then
return false
endif
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(3))) then
return false
endif
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(4))) then
return false
endif
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(5))) then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
return true
endfunction
function Trig_ScouD_DE_Actions takes nothing returns nothing
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("|cff00ff00 Level "+(I2S(GetHeroLevel(GetDyingUnit()))+(" Scourge Death.|r Revival in "+(I2S((GetHeroLevel(GetDyingUnit())*4))+" seconds.")))))
if(Trig_ScouD_DE_Func008C()) then
call UnitRemoveItemFromSlotSwapped(GetRandomInt(1,6),GetTriggerUnit())
else
call AdjustPlayerStateBJ((GetHeroLevel(GetDyingUnit())*-30),GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endif
call StartTimerBJ(udg_PTimer[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))],false,(I2R(GetHeroLevel(GetDyingUnit()))*4.00))
set udg_DMHeroExp[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetHeroLevel(GetTriggerUnit())
set udg_DMHeroMoney[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(125+(100*udg_DMHeroExp[1]))
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_FOOD_CAP,5)
call RemoveUnit(GetDyingUnit())
endfunction
function InitTrig_ScouD_DE takes nothing returns nothing
set gg_trg_ScouD_DE=CreateTrigger()
call DisableTrigger(gg_trg_ScouD_DE)
call TriggerRegisterAnyUnitEventBJ(gg_trg_ScouD_DE,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_ScouD_DE,Condition(function Trig_ScouD_DE_Conditions))
call TriggerAddAction(gg_trg_ScouD_DE,function Trig_ScouD_DE_Actions)
endfunction
function Trig_ScouD_DE8_Func001Func005C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_ScouD_DE8_Func001C takes nothing returns boolean
if(not(udg_AROn==true)) then
return false
endif
return true
endfunction
function Trig_ScouD_DE8_Func002Func004C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_ScouD_DE8_Func002C takes nothing returns boolean
if(not(udg_TROn==true)) then
return false
endif
return true
endfunction
function Trig_ScouD_DE8_Func003Func002Func001C takes nothing returns boolean
if(not(udg_HeroFlags[GetForLoopIndexA()]==false)) then
return false
endif
return true
endfunction
function Trig_ScouD_DE8_Func003C takes nothing returns boolean
if(not(udg_AROn==false)) then
return false
endif
if(not(udg_TROn==false)) then
return false
endif
return true
endfunction
function Trig_ScouD_DE8_Actions takes nothing returns nothing
if(Trig_ScouD_DE8_Func001C()) then
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,72)
if(Trig_ScouD_DE8_Func001Func005C()) then
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(7),GetRectCenter(gg_rct_herospawnud),GetPlayerStartLocationLoc(Player(7)))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
call SetPlayerStateBJ(Player(7),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(7),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
else
call DoNothing()
endif
if(Trig_ScouD_DE8_Func002C()) then
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(37,72)
if(Trig_ScouD_DE8_Func002Func004C()) then
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(7),GetRectCenter(gg_rct_herospawnud),GetPlayerStartLocationLoc(Player(7)))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
call SetPlayerStateBJ(Player(7),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(7),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
else
call DoNothing()
endif
if(Trig_ScouD_DE8_Func003C()) then
set bj_forLoopAIndex=37
set bj_forLoopAIndexEnd=72
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_ScouD_DE8_Func003Func002Func001C()) then
call SetPlayerTechMaxAllowedSwap(udg_RandHero[GetForLoopIndexA()],1,Player(7))
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
endfunction
function InitTrig_ScouD_DE8 takes nothing returns nothing
set gg_trg_ScouD_DE8=CreateTrigger()
call DisableTrigger(gg_trg_ScouD_DE8)
call TriggerRegisterTimerExpireEventBJ(gg_trg_ScouD_DE8,udg_PTimer[8])
call TriggerAddAction(gg_trg_ScouD_DE8,function Trig_ScouD_DE8_Actions)
endfunction
function Trig_ScouD_DE9_Func001Func005C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_ScouD_DE9_Func001C takes nothing returns boolean
if(not(udg_AROn==true)) then
return false
endif
return true
endfunction
function Trig_ScouD_DE9_Func002Func004C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_ScouD_DE9_Func002C takes nothing returns boolean
if(not(udg_TROn==true)) then
return false
endif
return true
endfunction
function Trig_ScouD_DE9_Func003Func002Func001C takes nothing returns boolean
if(not(udg_HeroFlags[GetForLoopIndexA()]==false)) then
return false
endif
return true
endfunction
function Trig_ScouD_DE9_Func003C takes nothing returns boolean
if(not(udg_AROn==false)) then
return false
endif
if(not(udg_TROn==false)) then
return false
endif
return true
endfunction
function Trig_ScouD_DE9_Actions takes nothing returns nothing
if(Trig_ScouD_DE9_Func001C()) then
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,72)
if(Trig_ScouD_DE9_Func001Func005C()) then
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(8),GetRectCenter(gg_rct_herospawnud),GetPlayerStartLocationLoc(Player(7)))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
call SetPlayerStateBJ(Player(8),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(8),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
else
call DoNothing()
endif
if(Trig_ScouD_DE9_Func002C()) then
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(37,72)
if(Trig_ScouD_DE9_Func002Func004C()) then
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(8),GetRectCenter(gg_rct_herospawnud),GetPlayerStartLocationLoc(Player(7)))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
call SetPlayerStateBJ(Player(8),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(8),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
else
call DoNothing()
endif
if(Trig_ScouD_DE9_Func003C()) then
set bj_forLoopAIndex=37
set bj_forLoopAIndexEnd=72
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_ScouD_DE9_Func003Func002Func001C()) then
call SetPlayerTechMaxAllowedSwap(udg_RandHero[GetForLoopIndexA()],1,Player(8))
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
endfunction
function InitTrig_ScouD_DE9 takes nothing returns nothing
set gg_trg_ScouD_DE9=CreateTrigger()
call DisableTrigger(gg_trg_ScouD_DE9)
call TriggerRegisterTimerExpireEventBJ(gg_trg_ScouD_DE9,udg_PTimer[9])
call TriggerAddAction(gg_trg_ScouD_DE9,function Trig_ScouD_DE9_Actions)
endfunction
function Trig_ScouD_DE10_Func001Func005C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_ScouD_DE10_Func001C takes nothing returns boolean
if(not(udg_AROn==true)) then
return false
endif
return true
endfunction
function Trig_ScouD_DE10_Func002Func004C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_ScouD_DE10_Func002C takes nothing returns boolean
if(not(udg_TROn==true)) then
return false
endif
return true
endfunction
function Trig_ScouD_DE10_Func003Func002Func001C takes nothing returns boolean
if(not(udg_HeroFlags[GetForLoopIndexA()]==false)) then
return false
endif
return true
endfunction
function Trig_ScouD_DE10_Func003C takes nothing returns boolean
if(not(udg_AROn==false)) then
return false
endif
if(not(udg_TROn==false)) then
return false
endif
return true
endfunction
function Trig_ScouD_DE10_Actions takes nothing returns nothing
if(Trig_ScouD_DE10_Func001C()) then
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,72)
if(Trig_ScouD_DE10_Func001Func005C()) then
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(9),GetRectCenter(gg_rct_herospawnud),GetPlayerStartLocationLoc(Player(7)))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
call SetPlayerStateBJ(Player(9),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(9),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
else
call DoNothing()
endif
if(Trig_ScouD_DE10_Func002C()) then
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(37,72)
if(Trig_ScouD_DE10_Func002Func004C()) then
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(9),GetRectCenter(gg_rct_herospawnud),GetPlayerStartLocationLoc(Player(7)))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
call SetPlayerStateBJ(Player(9),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(9),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
else
call DoNothing()
endif
if(Trig_ScouD_DE10_Func003C()) then
set bj_forLoopAIndex=37
set bj_forLoopAIndexEnd=72
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_ScouD_DE10_Func003Func002Func001C()) then
call SetPlayerTechMaxAllowedSwap(udg_RandHero[GetForLoopIndexA()],1,Player(9))
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
endfunction
function InitTrig_ScouD_DE10 takes nothing returns nothing
set gg_trg_ScouD_DE10=CreateTrigger()
call DisableTrigger(gg_trg_ScouD_DE10)
call TriggerRegisterTimerExpireEventBJ(gg_trg_ScouD_DE10,udg_PTimer[10])
call TriggerAddAction(gg_trg_ScouD_DE10,function Trig_ScouD_DE10_Actions)
endfunction
function Trig_ScouD_DE11_Func001Func005C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_ScouD_DE11_Func001C takes nothing returns boolean
if(not(udg_AROn==true)) then
return false
endif
return true
endfunction
function Trig_ScouD_DE11_Func002Func004C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_ScouD_DE11_Func002C takes nothing returns boolean
if(not(udg_TROn==true)) then
return false
endif
return true
endfunction
function Trig_ScouD_DE11_Func003Func002Func001C takes nothing returns boolean
if(not(udg_HeroFlags[GetForLoopIndexA()]==false)) then
return false
endif
return true
endfunction
function Trig_ScouD_DE11_Func003C takes nothing returns boolean
if(not(udg_AROn==false)) then
return false
endif
if(not(udg_TROn==false)) then
return false
endif
return true
endfunction
function Trig_ScouD_DE11_Actions takes nothing returns nothing
if(Trig_ScouD_DE11_Func001C()) then
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,72)
if(Trig_ScouD_DE11_Func001Func005C()) then
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(10),GetRectCenter(gg_rct_herospawnud),GetPlayerStartLocationLoc(Player(7)))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
call SetPlayerStateBJ(Player(10),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(10),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
else
call DoNothing()
endif
if(Trig_ScouD_DE11_Func002C()) then
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(37,72)
if(Trig_ScouD_DE11_Func002Func004C()) then
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(10),GetRectCenter(gg_rct_herospawnud),GetPlayerStartLocationLoc(Player(7)))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
call SetPlayerStateBJ(Player(10),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(10),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
else
call DoNothing()
endif
if(Trig_ScouD_DE11_Func003C()) then
set bj_forLoopAIndex=37
set bj_forLoopAIndexEnd=72
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_ScouD_DE11_Func003Func002Func001C()) then
call SetPlayerTechMaxAllowedSwap(udg_RandHero[GetForLoopIndexA()],1,Player(10))
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
endfunction
function InitTrig_ScouD_DE11 takes nothing returns nothing
set gg_trg_ScouD_DE11=CreateTrigger()
call DisableTrigger(gg_trg_ScouD_DE11)
call TriggerRegisterTimerExpireEventBJ(gg_trg_ScouD_DE11,udg_PTimer[11])
call TriggerAddAction(gg_trg_ScouD_DE11,function Trig_ScouD_DE11_Actions)
endfunction
function Trig_ScouD_DE12_Func001Func005C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_ScouD_DE12_Func001C takes nothing returns boolean
if(not(udg_AROn==true)) then
return false
endif
return true
endfunction
function Trig_ScouD_DE12_Func002Func004C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_ScouD_DE12_Func002C takes nothing returns boolean
if(not(udg_TROn==true)) then
return false
endif
return true
endfunction
function Trig_ScouD_DE12_Func003Func002Func001C takes nothing returns boolean
if(not(udg_HeroFlags[GetForLoopIndexA()]==false)) then
return false
endif
return true
endfunction
function Trig_ScouD_DE12_Func003C takes nothing returns boolean
if(not(udg_AROn==false)) then
return false
endif
if(not(udg_TROn==false)) then
return false
endif
return true
endfunction
function Trig_ScouD_DE12_Actions takes nothing returns nothing
if(Trig_ScouD_DE12_Func001C()) then
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,72)
if(Trig_ScouD_DE12_Func001Func005C()) then
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(11),GetRectCenter(gg_rct_herospawnud),GetPlayerStartLocationLoc(Player(7)))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
call SetPlayerStateBJ(Player(11),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(11),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
else
call DoNothing()
endif
if(Trig_ScouD_DE12_Func002C()) then
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(37,72)
if(Trig_ScouD_DE12_Func002Func004C()) then
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(11),GetRectCenter(gg_rct_herospawnud),GetPlayerStartLocationLoc(Player(7)))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
call SetPlayerStateBJ(Player(11),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(11),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
else
call DoNothing()
endif
if(Trig_ScouD_DE12_Func003C()) then
set bj_forLoopAIndex=37
set bj_forLoopAIndexEnd=72
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_ScouD_DE12_Func003Func002Func001C()) then
call SetPlayerTechMaxAllowedSwap(udg_RandHero[GetForLoopIndexA()],1,Player(11))
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
endfunction
function InitTrig_ScouD_DE12 takes nothing returns nothing
set gg_trg_ScouD_DE12=CreateTrigger()
call DisableTrigger(gg_trg_ScouD_DE12)
call TriggerRegisterTimerExpireEventBJ(gg_trg_ScouD_DE12,udg_PTimer[12])
call TriggerAddAction(gg_trg_ScouD_DE12,function Trig_ScouD_DE12_Actions)
endfunction
function Trig_Leave_Func002Func002Func001Func003C takes nothing returns boolean
if(not(GetPlayerSlotState(ConvertedPlayer(GetForLoopIndexA()))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
return true
endfunction
function Trig_Leave_Func002Func002Func001C takes nothing returns boolean
if(not(GetForLoopIndexA()!=GetConvertedPlayerId(GetTriggerPlayer()))) then
return false
endif
return true
endfunction
function Trig_Leave_Func002Func005Func001Func003C takes nothing returns boolean
if(not(GetPlayerSlotState(ConvertedPlayer(GetForLoopIndexA()))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
return true
endfunction
function Trig_Leave_Func002Func005Func001C takes nothing returns boolean
if(not(GetForLoopIndexA()!=GetConvertedPlayerId(GetTriggerPlayer()))) then
return false
endif
return true
endfunction
function Trig_Leave_Func002C takes nothing returns boolean
if(not(IsPlayerAlly(GetTriggerPlayer(),Player(0))==true)) then
return false
endif
return true
endfunction
function Trig_Leave_Actions takes nothing returns nothing
call DisplayTimedTextToForce(GetPlayersAll(),15.00,(GetPlayerName(GetTriggerPlayer())+" has left the game."))
if(Trig_Leave_Func002C()) then
set udg_SNum=(udg_SNum-1)
set bj_forLoopAIndex=2
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Leave_Func002Func005Func001C()) then
call SetPlayerAllianceStateBJ(GetTriggerPlayer(),ConvertedPlayer(GetForLoopIndexA()),bj_ALLIANCE_ALLIED_UNITS)
if(Trig_Leave_Func002Func005Func001Func003C()) then
call AdjustPlayerStateBJ((GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)/udg_SNum),ConvertedPlayer(GetForLoopIndexA()),PLAYER_STATE_RESOURCE_GOLD)
call SetPlayerTaxRateBJ((100/udg_SNum),PLAYER_STATE_RESOURCE_GOLD,GetTriggerPlayer(),ConvertedPlayer(GetForLoopIndexA()))
else
call DoNothing()
endif
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
set udg_UDNum=(udg_UDNum-1)
set bj_forLoopAIndex=8
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Leave_Func002Func002Func001C()) then
call SetPlayerAllianceStateBJ(GetTriggerPlayer(),ConvertedPlayer(GetForLoopIndexA()),bj_ALLIANCE_ALLIED_UNITS)
if(Trig_Leave_Func002Func002Func001Func003C()) then
call AdjustPlayerStateBJ((GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)/udg_UDNum),ConvertedPlayer(GetForLoopIndexA()),PLAYER_STATE_RESOURCE_GOLD)
call SetPlayerTaxRateBJ((100/udg_UDNum),PLAYER_STATE_RESOURCE_GOLD,GetTriggerPlayer(),ConvertedPlayer(GetForLoopIndexA()))
else
call DoNothing()
endif
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endif
call SetPlayerStateBJ(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD,0)
endfunction
function InitTrig_Leave takes nothing returns nothing
set gg_trg_Leave=CreateTrigger()
call TriggerRegisterPlayerEventLeave(gg_trg_Leave,Player(1))
call TriggerRegisterPlayerEventLeave(gg_trg_Leave,Player(2))
call TriggerRegisterPlayerEventLeave(gg_trg_Leave,Player(3))
call TriggerRegisterPlayerEventLeave(gg_trg_Leave,Player(4))
call TriggerRegisterPlayerEventLeave(gg_trg_Leave,Player(5))
call TriggerRegisterPlayerEventLeave(gg_trg_Leave,Player(7))
call TriggerRegisterPlayerEventLeave(gg_trg_Leave,Player(8))
call TriggerRegisterPlayerEventLeave(gg_trg_Leave,Player(9))
call TriggerRegisterPlayerEventLeave(gg_trg_Leave,Player(10))
call TriggerRegisterPlayerEventLeave(gg_trg_Leave,Player(11))
call TriggerAddAction(gg_trg_Leave,function Trig_Leave_Actions)
endfunction
function InitTrig_Bounty takes nothing returns nothing
set gg_trg_Bounty=CreateTrigger()
call TriggerAddAction(gg_trg_Bounty,function Trig_Exp_Decay_And_Bounty_Actions)
endfunction
function InitTrig_Tree takes nothing returns nothing
set gg_trg_Tree=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(gg_trg_Tree,300.00)
call TriggerAddAction(gg_trg_Tree,function Trig_Tree_Recreation_Actions)
endfunction
function Trig_NoDouble_Actions takes nothing returns nothing
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetEnteringUnit()),0,Player(1))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetEnteringUnit()),0,Player(2))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetEnteringUnit()),0,Player(3))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetEnteringUnit()),0,Player(4))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetEnteringUnit()),0,Player(5))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetEnteringUnit()),0,Player(7))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetEnteringUnit()),0,Player(8))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetEnteringUnit()),0,Player(9))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetEnteringUnit()),0,Player(10))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetEnteringUnit()),0,Player(11))
set udg_HeroFlags[GetUnitPointValue(GetEnteringUnit())]=true
endfunction
function InitTrig_NoDouble takes nothing returns nothing
set gg_trg_NoDouble=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_NoDouble,gg_rct_herospawnud)
call TriggerRegisterEnterRectSimple(gg_trg_NoDouble,gg_rct_herospawnsent)
call TriggerAddAction(gg_trg_NoDouble,function Trig_NoDouble_Actions)
endfunction
function Trig_HeroL1_Actions takes nothing returns nothing
call SetPlayerStateBJ(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
call SetPlayerTechMaxAllowedSwap('EC80',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('N00Z',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('H000',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('EC53',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('O002',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('EC52',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('O00P',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('H004',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('N01O',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('HC92',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('H002',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('OC56',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('H001',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('O00K',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('N00G',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('E005',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('H00I',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('H00K',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('H00J',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('HC49',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('H00D',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('E003',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('N00M',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('EC77',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('E002',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('EC45',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('UC01',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('Eevi',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('H00V',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('UC91',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('UC42',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('U000',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('NC00',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('EC04',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('EC57',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('UC76',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('UC18',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('UC11',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('UC60',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('E004',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('U00A',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('U007',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('U004',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('U00B',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('U008',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('OC55',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('N016',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('N01O',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('N01A',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('H00H',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('U006',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('Obla',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('Hamg',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('Hmkg',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('Hblm',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('Ofar',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('Oshd',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('E00G',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('N000',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('U00F',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('U00E',0,GetTriggerPlayer())
call SetPlayerTechMaxAllowedSwap('U00K',0,GetTriggerPlayer())
endfunction
function InitTrig_HeroL1 takes nothing returns nothing
set gg_trg_HeroL1=CreateTrigger()
call TriggerRegisterPlayerStateEvent(gg_trg_HeroL1,Player(1),PLAYER_STATE_RESOURCE_FOOD_USED,EQUAL,5.00)
call TriggerRegisterPlayerStateEvent(gg_trg_HeroL1,Player(2),PLAYER_STATE_RESOURCE_FOOD_USED,EQUAL,5.00)
call TriggerRegisterPlayerStateEvent(gg_trg_HeroL1,Player(3),PLAYER_STATE_RESOURCE_FOOD_USED,EQUAL,5.00)
call TriggerRegisterPlayerStateEvent(gg_trg_HeroL1,Player(4),PLAYER_STATE_RESOURCE_FOOD_USED,EQUAL,5.00)
call TriggerRegisterPlayerStateEvent(gg_trg_HeroL1,Player(5),PLAYER_STATE_RESOURCE_FOOD_USED,EQUAL,5.00)
call TriggerRegisterPlayerStateEvent(gg_trg_HeroL1,Player(7),PLAYER_STATE_RESOURCE_FOOD_USED,EQUAL,5.00)
call TriggerRegisterPlayerStateEvent(gg_trg_HeroL1,Player(8),PLAYER_STATE_RESOURCE_FOOD_USED,EQUAL,5.00)
call TriggerRegisterPlayerStateEvent(gg_trg_HeroL1,Player(9),PLAYER_STATE_RESOURCE_FOOD_USED,EQUAL,5.00)
call TriggerRegisterPlayerStateEvent(gg_trg_HeroL1,Player(10),PLAYER_STATE_RESOURCE_FOOD_USED,EQUAL,5.00)
call TriggerRegisterPlayerStateEvent(gg_trg_HeroL1,Player(11),PLAYER_STATE_RESOURCE_FOOD_USED,EQUAL,5.00)
call TriggerAddAction(gg_trg_HeroL1,function Trig_HeroL1_Actions)
endfunction
function Trig_HeroL2_Func001Func001C takes nothing returns boolean
if(not(GetForLoopIndexA()!=7)) then
return false
endif
return true
endfunction
function Trig_HeroL2_Actions takes nothing returns nothing
set bj_forLoopAIndex=2
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_HeroL2_Func001Func001C()) then
call SetPlayerTechMaxAllowedSwap('EC80',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('N00Z',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('H000',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('N016',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('EC53',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('O002',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('EC52',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('O00P',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('H004',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('O00K',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('N00G',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('H00I',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('H00J',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('HC49',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('H00D',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('H00K',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('E005',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('N01O',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('H001',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('HC92',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('OC56',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('UC01',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('H00V',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('N00M',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('E003',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('U000',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('EC04',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('UC42',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('UC91',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('EC77',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('E002',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('Eevi',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('E004',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('UC60',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('UC76',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('EC57',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('U00A',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('U00B',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('U007',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('U008',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('UC18',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('UC11',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('NC00',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('EC45',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('OC55',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('U004',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('H002',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('N01O',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('N01A',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('U006',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('H00H',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('Obla',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('Hamg',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('Ofar',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('Oshd',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('E00G',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('N000',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('Hmkg',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('Hblm',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('U00F',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('U00E',0,ConvertedPlayer(GetForLoopIndexA()))
call SetPlayerTechMaxAllowedSwap('U00K',0,ConvertedPlayer(GetForLoopIndexA()))
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function InitTrig_HeroL2 takes nothing returns nothing
set gg_trg_HeroL2=CreateTrigger()
call TriggerAddAction(gg_trg_HeroL2,function Trig_HeroL2_Actions)
endfunction
function Trig_RandomUD_Func007C takes nothing returns boolean
if(not(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_FOOD_CAP)==5)) then
return false
endif
if(not(udg_Elapsed20==true)) then
return false
endif
return true
endfunction
function Trig_RandomUD_Func004C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_RandomUD_Conditions takes nothing returns boolean
if(not Trig_RandomUD_Func007C()) then
return false
endif
return true
endfunction
function Trig_RandomUD_Actions takes nothing returns nothing
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(37,66)
if(Trig_RandomUD_Func004C()) then
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],GetTriggerPlayer(),GetRectCenter(gg_rct_herospawnud),GetPlayerStartLocationLoc(GetTriggerPlayer()))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(1))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(2))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(3))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(4))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(5))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(7))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(8))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(9))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(10))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(11))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
else
call DoNothing()
endif
exitwhen(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
endfunction
function InitTrig_RandomUD takes nothing returns nothing
set gg_trg_RandomUD=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_RandomUD,Player(7),"-random",true)
call TriggerRegisterPlayerChatEvent(gg_trg_RandomUD,Player(8),"-random",true)
call TriggerRegisterPlayerChatEvent(gg_trg_RandomUD,Player(9),"-random",true)
call TriggerRegisterPlayerChatEvent(gg_trg_RandomUD,Player(10),"-random",true)
call TriggerRegisterPlayerChatEvent(gg_trg_RandomUD,Player(11),"-random",true)
call TriggerAddCondition(gg_trg_RandomUD,Condition(function Trig_RandomUD_Conditions))
call TriggerAddAction(gg_trg_RandomUD,function Trig_RandomUD_Actions)
endfunction
function Trig_RandomUDAP_Func007C takes nothing returns boolean
if(not(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_FOOD_CAP)==5)) then
return false
endif
if(not(udg_Elapsed20==true)) then
return false
endif
return true
endfunction
function Trig_RandomUDAP_Func004C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_RandomUDAP_Conditions takes nothing returns boolean
if(not Trig_RandomUDAP_Func007C()) then
return false
endif
return true
endfunction
function Trig_RandomUDAP_Actions takes nothing returns nothing
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,72)
if(Trig_RandomUDAP_Func004C()) then
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],GetTriggerPlayer(),GetRectCenter(gg_rct_herospawnud),GetPlayerStartLocationLoc(GetTriggerPlayer()))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(1))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(2))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(3))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(4))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(5))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(7))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(8))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(9))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(10))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(11))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
else
call DoNothing()
endif
exitwhen(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
endfunction
function InitTrig_RandomUDAP takes nothing returns nothing
set gg_trg_RandomUDAP=CreateTrigger()
call DisableTrigger(gg_trg_RandomUDAP)
call TriggerRegisterPlayerChatEvent(gg_trg_RandomUDAP,Player(7),"-random",true)
call TriggerRegisterPlayerChatEvent(gg_trg_RandomUDAP,Player(8),"-random",true)
call TriggerRegisterPlayerChatEvent(gg_trg_RandomUDAP,Player(9),"-random",true)
call TriggerRegisterPlayerChatEvent(gg_trg_RandomUDAP,Player(10),"-random",true)
call TriggerRegisterPlayerChatEvent(gg_trg_RandomUDAP,Player(11),"-random",true)
call TriggerAddCondition(gg_trg_RandomUDAP,Condition(function Trig_RandomUDAP_Conditions))
call TriggerAddAction(gg_trg_RandomUDAP,function Trig_RandomUDAP_Actions)
endfunction
function Trig_RandomS_Func007C takes nothing returns boolean
if(not(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_FOOD_CAP)==5)) then
return false
endif
if(not(udg_Elapsed20==true)) then
return false
endif
return true
endfunction
function Trig_RandomS_Func004C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_RandomS_Conditions takes nothing returns boolean
if(not Trig_RandomS_Func007C()) then
return false
endif
return true
endfunction
function Trig_RandomS_Actions takes nothing returns nothing
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,30)
if(Trig_RandomS_Func004C()) then
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],GetTriggerPlayer(),GetRectCenter(gg_rct_herospawnsent),GetPlayerStartLocationLoc(GetTriggerPlayer()))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(1))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(2))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(3))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(4))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(5))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(7))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(8))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(9))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(10))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(11))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
else
call DoNothing()
endif
exitwhen(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
endfunction
function InitTrig_RandomS takes nothing returns nothing
set gg_trg_RandomS=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_RandomS,Player(1),"-random",true)
call TriggerRegisterPlayerChatEvent(gg_trg_RandomS,Player(2),"-random",true)
call TriggerRegisterPlayerChatEvent(gg_trg_RandomS,Player(3),"-random",true)
call TriggerRegisterPlayerChatEvent(gg_trg_RandomS,Player(4),"-random",true)
call TriggerRegisterPlayerChatEvent(gg_trg_RandomS,Player(5),"-random",true)
call TriggerAddCondition(gg_trg_RandomS,Condition(function Trig_RandomS_Conditions))
call TriggerAddAction(gg_trg_RandomS,function Trig_RandomS_Actions)
endfunction
function Trig_RandomSAP_Func007C takes nothing returns boolean
if(not(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_FOOD_CAP)==5)) then
return false
endif
if(not(udg_Elapsed20==true)) then
return false
endif
return true
endfunction
function Trig_RandomSAP_Func004C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_RandomSAP_Conditions takes nothing returns boolean
if(not Trig_RandomSAP_Func007C()) then
return false
endif
return true
endfunction
function Trig_RandomSAP_Actions takes nothing returns nothing
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,72)
if(Trig_RandomSAP_Func004C()) then
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],GetTriggerPlayer(),GetRectCenter(gg_rct_herospawnsent),GetPlayerStartLocationLoc(GetTriggerPlayer()))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(1))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(2))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(3))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(4))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(5))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(7))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(8))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(9))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(10))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(11))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
else
call DoNothing()
endif
exitwhen(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
endfunction
function InitTrig_RandomSAP takes nothing returns nothing
set gg_trg_RandomSAP=CreateTrigger()
call DisableTrigger(gg_trg_RandomSAP)
call TriggerRegisterPlayerChatEvent(gg_trg_RandomSAP,Player(1),"-random",true)
call TriggerRegisterPlayerChatEvent(gg_trg_RandomSAP,Player(2),"-random",true)
call TriggerRegisterPlayerChatEvent(gg_trg_RandomSAP,Player(3),"-random",true)
call TriggerRegisterPlayerChatEvent(gg_trg_RandomSAP,Player(4),"-random",true)
call TriggerRegisterPlayerChatEvent(gg_trg_RandomSAP,Player(5),"-random",true)
call TriggerAddCondition(gg_trg_RandomSAP,Condition(function Trig_RandomSAP_Conditions))
call TriggerAddAction(gg_trg_RandomSAP,function Trig_RandomSAP_Actions)
endfunction
function Trig_RepUD_Func011C takes nothing returns boolean
if(not(udg_ReD[GetConvertedPlayerId(GetTriggerPlayer())]==false)) then
return false
endif
if(not(udg_OneMin==false)) then
return false
endif
if(not(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_FOOD_USED)==5)) then
return false
endif
if(not(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)>=150)) then
return false
endif
return true
endfunction
function Trig_RepUD_Func004Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(GetOwningPlayer(GetEnumUnit())==GetTriggerPlayer())) then
return false
endif
return true
endfunction
function Trig_RepUD_Func004A takes nothing returns nothing
if(Trig_RepUD_Func004Func001C()) then
set udg_ReT[GetConvertedPlayerId(GetTriggerPlayer())]=GetUnitTypeId(GetEnumUnit())
call DisplayTimedTextToForce(GetPlayersEnemies(ConvertedPlayer(udg_RePN)),10.00,"An enemy player has repicked.")
call RemoveUnit(GetEnumUnit())
else
call DoNothing()
endif
endfunction
function Trig_RepUD_Func008C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_RepUD_Conditions takes nothing returns boolean
if(not Trig_RepUD_Func011C()) then
return false
endif
return true
endfunction
function Trig_RepUD_Actions takes nothing returns nothing
set udg_RePN=GetConvertedPlayerId(GetTriggerPlayer())
call AdjustPlayerStateBJ(-150,GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)
set udg_ReD[GetConvertedPlayerId(GetTriggerPlayer())]=true
call ForGroupBJ(GetUnitsInRectAll(GetEntireMapRect()),function Trig_RepUD_Func004A)
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(37,66)
if(Trig_RepUD_Func008C()) then
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],GetTriggerPlayer(),GetRectCenter(gg_rct_herospawnud),GetPlayerStartLocationLoc(GetTriggerPlayer()))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(1))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(2))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(3))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(4))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(5))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(7))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(8))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(9))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(10))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(11))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
else
call DoNothing()
endif
exitwhen(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
endfunction
function InitTrig_RepUD takes nothing returns nothing
set gg_trg_RepUD=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_RepUD,Player(7),"-repick",true)
call TriggerRegisterPlayerChatEvent(gg_trg_RepUD,Player(8),"-repick",true)
call TriggerRegisterPlayerChatEvent(gg_trg_RepUD,Player(9),"-repick",true)
call TriggerRegisterPlayerChatEvent(gg_trg_RepUD,Player(10),"-repick",true)
call TriggerRegisterPlayerChatEvent(gg_trg_RepUD,Player(11),"-repick",true)
call TriggerAddCondition(gg_trg_RepUD,Condition(function Trig_RepUD_Conditions))
call TriggerAddAction(gg_trg_RepUD,function Trig_RepUD_Actions)
endfunction
function Trig_RepUDAP_Func011C takes nothing returns boolean
if(not(udg_ReD[GetConvertedPlayerId(GetTriggerPlayer())]==false)) then
return false
endif
if(not(udg_OneMin==false)) then
return false
endif
if(not(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_FOOD_USED)==5)) then
return false
endif
if(not(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)>=150)) then
return false
endif
return true
endfunction
function Trig_RepUDAP_Func004Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(GetOwningPlayer(GetEnumUnit())==GetTriggerPlayer())) then
return false
endif
return true
endfunction
function Trig_RepUDAP_Func004A takes nothing returns nothing
if(Trig_RepUDAP_Func004Func001C()) then
set udg_ReT[GetConvertedPlayerId(GetTriggerPlayer())]=GetUnitTypeId(GetEnumUnit())
call DisplayTimedTextToForce(GetPlayersEnemies(ConvertedPlayer(udg_RePN)),10.00,"An enemy player has repicked.")
call RemoveUnit(GetEnumUnit())
else
call DoNothing()
endif
endfunction
function Trig_RepUDAP_Func008C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_RepUDAP_Conditions takes nothing returns boolean
if(not Trig_RepUDAP_Func011C()) then
return false
endif
return true
endfunction
function Trig_RepUDAP_Actions takes nothing returns nothing
set udg_RePN=GetConvertedPlayerId(GetTriggerPlayer())
call AdjustPlayerStateBJ(-150,GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)
set udg_ReD[GetConvertedPlayerId(GetTriggerPlayer())]=true
call ForGroupBJ(GetUnitsInRectAll(GetEntireMapRect()),function Trig_RepUDAP_Func004A)
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,72)
if(Trig_RepUDAP_Func008C()) then
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],GetTriggerPlayer(),GetRectCenter(gg_rct_herospawnud),GetPlayerStartLocationLoc(GetTriggerPlayer()))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(1))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(2))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(3))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(4))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(5))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(7))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(8))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(9))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(10))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(11))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
else
call DoNothing()
endif
exitwhen(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
endfunction
function InitTrig_RepUDAP takes nothing returns nothing
set gg_trg_RepUDAP=CreateTrigger()
call DisableTrigger(gg_trg_RepUDAP)
call TriggerRegisterPlayerChatEvent(gg_trg_RepUDAP,Player(7),"-repick",true)
call TriggerRegisterPlayerChatEvent(gg_trg_RepUDAP,Player(8),"-repick",true)
call TriggerRegisterPlayerChatEvent(gg_trg_RepUDAP,Player(9),"-repick",true)
call TriggerRegisterPlayerChatEvent(gg_trg_RepUDAP,Player(10),"-repick",true)
call TriggerRegisterPlayerChatEvent(gg_trg_RepUDAP,Player(11),"-repick",true)
call TriggerAddCondition(gg_trg_RepUDAP,Condition(function Trig_RepUDAP_Conditions))
call TriggerAddAction(gg_trg_RepUDAP,function Trig_RepUDAP_Actions)
endfunction
function Trig_RepS_Func011C takes nothing returns boolean
if(not(udg_ReD[GetConvertedPlayerId(GetTriggerPlayer())]==false)) then
return false
endif
if(not(udg_OneMin==false)) then
return false
endif
if(not(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_FOOD_USED)==5)) then
return false
endif
if(not(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)>=150)) then
return false
endif
return true
endfunction
function Trig_RepS_Func004Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(GetOwningPlayer(GetEnumUnit())==GetTriggerPlayer())) then
return false
endif
return true
endfunction
function Trig_RepS_Func004A takes nothing returns nothing
if(Trig_RepS_Func004Func001C()) then
set udg_ReT[GetConvertedPlayerId(GetTriggerPlayer())]=GetUnitTypeId(GetEnumUnit())
call DisplayTimedTextToForce(GetPlayersEnemies(ConvertedPlayer(udg_RePN)),10.00,"An enemy player has repicked.")
call RemoveUnit(GetEnumUnit())
else
call DoNothing()
endif
endfunction
function Trig_RepS_Func008C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_RepS_Conditions takes nothing returns boolean
if(not Trig_RepS_Func011C()) then
return false
endif
return true
endfunction
function Trig_RepS_Actions takes nothing returns nothing
set udg_RePN=GetConvertedPlayerId(GetTriggerPlayer())
call AdjustPlayerStateBJ(-150,GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)
set udg_ReD[GetConvertedPlayerId(GetTriggerPlayer())]=true
call ForGroupBJ(GetUnitsInRectAll(GetEntireMapRect()),function Trig_RepS_Func004A)
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,30)
if(Trig_RepS_Func008C()) then
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],GetTriggerPlayer(),GetRectCenter(gg_rct_herospawnsent),GetPlayerStartLocationLoc(GetTriggerPlayer()))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(1))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(2))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(3))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(4))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(5))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(7))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(8))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(9))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(10))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(11))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
else
call DoNothing()
endif
exitwhen(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
endfunction
function InitTrig_RepS takes nothing returns nothing
set gg_trg_RepS=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_RepS,Player(1),"-repick",true)
call TriggerRegisterPlayerChatEvent(gg_trg_RepS,Player(2),"-repick",true)
call TriggerRegisterPlayerChatEvent(gg_trg_RepS,Player(3),"-repick",true)
call TriggerRegisterPlayerChatEvent(gg_trg_RepS,Player(4),"-repick",true)
call TriggerRegisterPlayerChatEvent(gg_trg_RepS,Player(5),"-repick",true)
call TriggerAddCondition(gg_trg_RepS,Condition(function Trig_RepS_Conditions))
call TriggerAddAction(gg_trg_RepS,function Trig_RepS_Actions)
endfunction
function Trig_RepSAP_Func011C takes nothing returns boolean
if(not(udg_ReD[GetConvertedPlayerId(GetTriggerPlayer())]==false)) then
return false
endif
if(not(udg_OneMin==false)) then
return false
endif
if(not(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_FOOD_USED)==5)) then
return false
endif
if(not(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)>=150)) then
return false
endif
return true
endfunction
function Trig_RepSAP_Func004Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(GetOwningPlayer(GetEnumUnit())==GetTriggerPlayer())) then
return false
endif
return true
endfunction
function Trig_RepSAP_Func004A takes nothing returns nothing
if(Trig_RepSAP_Func004Func001C()) then
set udg_ReT[GetConvertedPlayerId(GetTriggerPlayer())]=GetUnitTypeId(GetEnumUnit())
call DisplayTimedTextToForce(GetPlayersEnemies(ConvertedPlayer(udg_RePN)),10.00,"An enemy player has repicked.")
call RemoveUnit(GetEnumUnit())
else
call DoNothing()
endif
endfunction
function Trig_RepSAP_Func008C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_RepSAP_Conditions takes nothing returns boolean
if(not Trig_RepSAP_Func011C()) then
return false
endif
return true
endfunction
function Trig_RepSAP_Actions takes nothing returns nothing
set udg_RePN=GetConvertedPlayerId(GetTriggerPlayer())
call AdjustPlayerStateBJ(-150,GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)
set udg_ReD[GetConvertedPlayerId(GetTriggerPlayer())]=true
call ForGroupBJ(GetUnitsInRectAll(GetEntireMapRect()),function Trig_RepSAP_Func004A)
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,30)
if(Trig_RepSAP_Func008C()) then
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],GetTriggerPlayer(),GetRectCenter(gg_rct_herospawnsent),GetPlayerStartLocationLoc(GetTriggerPlayer()))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(1))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(2))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(3))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(4))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(5))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(7))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(8))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(9))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(10))
call SetPlayerTechMaxAllowedSwap(GetUnitTypeId(GetLastCreatedUnit()),0,Player(11))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
else
call DoNothing()
endif
exitwhen(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
endfunction
function InitTrig_RepSAP takes nothing returns nothing
set gg_trg_RepSAP=CreateTrigger()
call DisableTrigger(gg_trg_RepSAP)
call TriggerRegisterPlayerChatEvent(gg_trg_RepSAP,Player(1),"-repick",true)
call TriggerRegisterPlayerChatEvent(gg_trg_RepSAP,Player(2),"-repick",true)
call TriggerRegisterPlayerChatEvent(gg_trg_RepSAP,Player(3),"-repick",true)
call TriggerRegisterPlayerChatEvent(gg_trg_RepSAP,Player(4),"-repick",true)
call TriggerRegisterPlayerChatEvent(gg_trg_RepSAP,Player(5),"-repick",true)
call TriggerAddCondition(gg_trg_RepSAP,Condition(function Trig_RepSAP_Conditions))
call TriggerAddAction(gg_trg_RepSAP,function Trig_RepSAP_Actions)
endfunction
function Trig_ARReUD_Func011C takes nothing returns boolean
if(not(udg_ReD[GetConvertedPlayerId(GetTriggerPlayer())]==false)) then
return false
endif
if(not(udg_OneMin==false)) then
return false
endif
if(not(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_FOOD_USED)==5)) then
return false
endif
if(not(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)>=500)) then
return false
endif
return true
endfunction
function Trig_ARReUD_Func004Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(GetOwningPlayer(GetEnumUnit())==GetTriggerPlayer())) then
return false
endif
return true
endfunction
function Trig_ARReUD_Func004A takes nothing returns nothing
if(Trig_ARReUD_Func004Func001C()) then
set udg_ReT[GetConvertedPlayerId(GetTriggerPlayer())]=GetUnitTypeId(GetEnumUnit())
call DisplayTimedTextToForce(GetPlayersEnemies(ConvertedPlayer(udg_RePN)),10.00,"An enemy player has repicked.")
call RemoveUnit(GetEnumUnit())
else
call DoNothing()
endif
endfunction
function Trig_ARReUD_Func008C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_ARReUD_Conditions takes nothing returns boolean
if(not Trig_ARReUD_Func011C()) then
return false
endif
return true
endfunction
function Trig_ARReUD_Actions takes nothing returns nothing
set udg_RePN=GetConvertedPlayerId(GetTriggerPlayer())
call AdjustPlayerStateBJ(-500,GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)
set udg_ReD[GetConvertedPlayerId(GetTriggerPlayer())]=true
call ForGroupBJ(GetUnitsInRectAll(GetEntireMapRect()),function Trig_ARReUD_Func004A)
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,66)
if(Trig_ARReUD_Func008C()) then
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],GetTriggerPlayer(),GetRectCenter(gg_rct_herospawnud),GetPlayerStartLocationLoc(GetTriggerPlayer()))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
else
call DoNothing()
endif
exitwhen(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
endfunction
function InitTrig_ARReUD takes nothing returns nothing
set gg_trg_ARReUD=CreateTrigger()
call DisableTrigger(gg_trg_ARReUD)
call TriggerRegisterPlayerChatEvent(gg_trg_ARReUD,Player(7),"-repick",true)
call TriggerRegisterPlayerChatEvent(gg_trg_ARReUD,Player(8),"-repick",true)
call TriggerRegisterPlayerChatEvent(gg_trg_ARReUD,Player(9),"-repick",true)
call TriggerRegisterPlayerChatEvent(gg_trg_ARReUD,Player(10),"-repick",true)
call TriggerRegisterPlayerChatEvent(gg_trg_ARReUD,Player(11),"-repick",true)
call TriggerAddCondition(gg_trg_ARReUD,Condition(function Trig_ARReUD_Conditions))
call TriggerAddAction(gg_trg_ARReUD,function Trig_ARReUD_Actions)
endfunction
function Trig_ARReS_Func016C takes nothing returns boolean
if(not(udg_ReD[GetConvertedPlayerId(GetTriggerPlayer())]==false)) then
return false
endif
if(not(udg_OneMin==false)) then
return false
endif
if(not(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_FOOD_USED)==5)) then
return false
endif
if(not(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)>=500)) then
return false
endif
return true
endfunction
function Trig_ARReS_Func009Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(GetOwningPlayer(GetEnumUnit())==GetTriggerPlayer())) then
return false
endif
return true
endfunction
function Trig_ARReS_Func009A takes nothing returns nothing
if(Trig_ARReS_Func009Func001C()) then
set udg_ReT[GetConvertedPlayerId(GetTriggerPlayer())]=GetUnitTypeId(GetEnumUnit())
call DisplayTimedTextToForce(GetPlayersEnemies(ConvertedPlayer(udg_RePN)),10.00,"An enemy player has repicked.")
call RemoveUnit(GetEnumUnit())
else
call DoNothing()
endif
endfunction
function Trig_ARReS_Func013C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_ARReS_Conditions takes nothing returns boolean
if(not Trig_ARReS_Func016C()) then
return false
endif
return true
endfunction
function Trig_ARReS_Actions takes nothing returns nothing
set udg_RePN=GetConvertedPlayerId(GetTriggerPlayer())
call AdjustPlayerStateBJ(-500,GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)
set udg_ReD[GetConvertedPlayerId(GetTriggerPlayer())]=true
call ForGroupBJ(GetUnitsInRectAll(GetEntireMapRect()),function Trig_ARReS_Func009A)
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,66)
if(Trig_ARReS_Func013C()) then
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],GetTriggerPlayer(),GetRectCenter(gg_rct_herospawnsent),GetPlayerStartLocationLoc(GetTriggerPlayer()))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
else
call DoNothing()
endif
exitwhen(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
endfunction
function InitTrig_ARReS takes nothing returns nothing
set gg_trg_ARReS=CreateTrigger()
call DisableTrigger(gg_trg_ARReS)
call TriggerRegisterPlayerChatEvent(gg_trg_ARReS,Player(1),"-repick",true)
call TriggerRegisterPlayerChatEvent(gg_trg_ARReS,Player(2),"-repick",true)
call TriggerRegisterPlayerChatEvent(gg_trg_ARReS,Player(3),"-repick",true)
call TriggerRegisterPlayerChatEvent(gg_trg_ARReS,Player(4),"-repick",true)
call TriggerRegisterPlayerChatEvent(gg_trg_ARReS,Player(5),"-repick",true)
call TriggerAddCondition(gg_trg_ARReS,Condition(function Trig_ARReS_Conditions))
call TriggerAddAction(gg_trg_ARReS,function Trig_ARReS_Actions)
endfunction
function Trig_TRReUD_Func011C takes nothing returns boolean
if(not(udg_ReD[GetConvertedPlayerId(GetTriggerPlayer())]==false)) then
return false
endif
if(not(udg_OneMin==false)) then
return false
endif
if(not(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_FOOD_USED)==5)) then
return false
endif
if(not(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)>=500)) then
return false
endif
return true
endfunction
function Trig_TRReUD_Func004Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(GetOwningPlayer(GetEnumUnit())==GetTriggerPlayer())) then
return false
endif
return true
endfunction
function Trig_TRReUD_Func004A takes nothing returns nothing
if(Trig_TRReUD_Func004Func001C()) then
set udg_ReT[GetConvertedPlayerId(GetTriggerPlayer())]=GetUnitTypeId(GetEnumUnit())
call DisplayTimedTextToForce(GetPlayersEnemies(ConvertedPlayer(udg_RePN)),10.00,"An enemy player has repicked.")
call RemoveUnit(GetEnumUnit())
else
call DoNothing()
endif
endfunction
function Trig_TRReUD_Func008C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_TRReUD_Conditions takes nothing returns boolean
if(not Trig_TRReUD_Func011C()) then
return false
endif
return true
endfunction
function Trig_TRReUD_Actions takes nothing returns nothing
set udg_RePN=GetConvertedPlayerId(GetTriggerPlayer())
call AdjustPlayerStateBJ(-500,GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)
set udg_ReD[GetConvertedPlayerId(GetTriggerPlayer())]=true
call ForGroupBJ(GetUnitsInRectAll(GetEntireMapRect()),function Trig_TRReUD_Func004A)
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(37,66)
if(Trig_TRReUD_Func008C()) then
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],GetTriggerPlayer(),GetRectCenter(gg_rct_herospawnud),GetPlayerStartLocationLoc(GetTriggerPlayer()))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
else
call DoNothing()
endif
exitwhen(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
endfunction
function InitTrig_TRReUD takes nothing returns nothing
set gg_trg_TRReUD=CreateTrigger()
call DisableTrigger(gg_trg_TRReUD)
call TriggerRegisterPlayerChatEvent(gg_trg_TRReUD,Player(7),"-repick",true)
call TriggerRegisterPlayerChatEvent(gg_trg_TRReUD,Player(8),"-repick",true)
call TriggerRegisterPlayerChatEvent(gg_trg_TRReUD,Player(9),"-repick",true)
call TriggerRegisterPlayerChatEvent(gg_trg_TRReUD,Player(10),"-repick",true)
call TriggerRegisterPlayerChatEvent(gg_trg_TRReUD,Player(11),"-repick",true)
call TriggerAddCondition(gg_trg_TRReUD,Condition(function Trig_TRReUD_Conditions))
call TriggerAddAction(gg_trg_TRReUD,function Trig_TRReUD_Actions)
endfunction
function Trig_TRReS_Func016C takes nothing returns boolean
if(not(udg_ReD[GetConvertedPlayerId(GetTriggerPlayer())]==false)) then
return false
endif
if(not(udg_OneMin==false)) then
return false
endif
if(not(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_FOOD_USED)==5)) then
return false
endif
if(not(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)>=500)) then
return false
endif
return true
endfunction
function Trig_TRReS_Func009Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(GetOwningPlayer(GetEnumUnit())==GetTriggerPlayer())) then
return false
endif
return true
endfunction
function Trig_TRReS_Func009A takes nothing returns nothing
if(Trig_TRReS_Func009Func001C()) then
set udg_ReT[GetConvertedPlayerId(GetTriggerPlayer())]=GetUnitTypeId(GetEnumUnit())
call DisplayTimedTextToForce(GetPlayersEnemies(ConvertedPlayer(udg_RePN)),10.00,"An enemy player has repicked.")
call RemoveUnit(GetEnumUnit())
else
call DoNothing()
endif
endfunction
function Trig_TRReS_Func013C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_TRReS_Conditions takes nothing returns boolean
if(not Trig_TRReS_Func016C()) then
return false
endif
return true
endfunction
function Trig_TRReS_Actions takes nothing returns nothing
set udg_RePN=GetConvertedPlayerId(GetTriggerPlayer())
call AdjustPlayerStateBJ(-500,GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)
set udg_ReD[GetConvertedPlayerId(GetTriggerPlayer())]=true
call ForGroupBJ(GetUnitsInRectAll(GetEntireMapRect()),function Trig_TRReS_Func009A)
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,30)
if(Trig_TRReS_Func013C()) then
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],GetTriggerPlayer(),GetRectCenter(gg_rct_herospawnsent),GetPlayerStartLocationLoc(GetTriggerPlayer()))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
else
call DoNothing()
endif
exitwhen(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
endfunction
function InitTrig_TRReS takes nothing returns nothing
set gg_trg_TRReS=CreateTrigger()
call DisableTrigger(gg_trg_TRReS)
call TriggerRegisterPlayerChatEvent(gg_trg_TRReS,Player(1),"-repick",true)
call TriggerRegisterPlayerChatEvent(gg_trg_TRReS,Player(2),"-repick",true)
call TriggerRegisterPlayerChatEvent(gg_trg_TRReS,Player(3),"-repick",true)
call TriggerRegisterPlayerChatEvent(gg_trg_TRReS,Player(4),"-repick",true)
call TriggerRegisterPlayerChatEvent(gg_trg_TRReS,Player(5),"-repick",true)
call TriggerAddCondition(gg_trg_TRReS,Condition(function Trig_TRReS_Conditions))
call TriggerAddAction(gg_trg_TRReS,function Trig_TRReS_Actions)
endfunction
function Trig_dragon_blood_Conditions takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A09N')) then
return false
endif
return true
endfunction
function Trig_dragon_blood_Actions takes nothing returns nothing
call SetPlayerTechResearchedSwap('R00F',(GetPlayerTechCountSimple('R00F',GetOwningPlayer(GetTriggerUnit()))+1),GetOwningPlayer(GetTriggerUnit()))
endfunction
function InitTrig_dragon_blood takes nothing returns nothing
set gg_trg_dragon_blood=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_dragon_blood,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(gg_trg_dragon_blood,Condition(function Trig_dragon_blood_Conditions))
call TriggerAddAction(gg_trg_dragon_blood,function Trig_dragon_blood_Actions)
endfunction
function Trig_nether_ward_Func002001001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='o00M')
endfunction
function Trig_nether_ward_Func002001002 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='o00N')
endfunction
function Trig_nether_ward_Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_nether_ward_Func002001001(),Trig_nether_ward_Func002001002())
endfunction
function Trig_nether_ward_Func002002001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='o00O')
endfunction
function Trig_nether_ward_Func002002002 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='o00Q')
endfunction
function Trig_nether_ward_Func002002 takes nothing returns boolean
return GetBooleanOr(Trig_nether_ward_Func002002001(),Trig_nether_ward_Func002002002())
endfunction
function Trig_nether_ward_Conditions takes nothing returns boolean
if(not GetBooleanOr(Trig_nether_ward_Func002001(),Trig_nether_ward_Func002002())) then
return false
endif
return true
endfunction
function Trig_nether_ward_Actions takes nothing returns nothing
call IssueImmediateOrderBJ(GetTriggerUnit(),"manaflareon")
endfunction
function InitTrig_nether_ward takes nothing returns nothing
set gg_trg_nether_ward=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_nether_ward,GetEntireMapRect())
call TriggerAddCondition(gg_trg_nether_ward,Condition(function Trig_nether_ward_Conditions))
call TriggerAddAction(gg_trg_nether_ward,function Trig_nether_ward_Actions)
endfunction
function Trig_MC_learn_Conditions takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A088')) then
return false
endif
return true
endfunction
function Trig_MC_learn_Actions takes nothing returns nothing
set udg_MCLvl[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_MCLvl[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
endfunction
function InitTrig_MC_learn takes nothing returns nothing
set gg_trg_MC_learn=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_MC_learn,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(gg_trg_MC_learn,Condition(function Trig_MC_learn_Conditions))
call TriggerAddAction(gg_trg_MC_learn,function Trig_MC_learn_Actions)
endfunction
function Trig_MC_BL_Func008C takes nothing returns boolean
if((GetSpellAbilityId()=='A083')) then
return true
endif
if((GetSpellAbilityId()=='A08I')) then
return true
endif
if((GetSpellAbilityId()=='A08G')) then
return true
endif
if((GetSpellAbilityId()=='A08F')) then
return true
endif
return false
endfunction
function Trig_MC_BL_Func005C takes nothing returns boolean
if(not(udg_MCLvl[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]>1)) then
return false
endif
return true
endfunction
function Trig_MC_BL_Func006C takes nothing returns boolean
if(not(udg_MCLvl[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]>2)) then
return false
endif
return true
endfunction
function Trig_MC_BL_Func007C takes nothing returns boolean
if(not(udg_MCLvl[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]>3)) then
return false
endif
return true
endfunction
function Trig_MC_BL_Conditions takes nothing returns boolean
if(not Trig_MC_BL_Func008C()) then
return false
endif
if(not(GetUnitAbilityLevelSwapped('A088',GetTriggerUnit())>0)) then
return false
endif
return true
endfunction
function Trig_MC_BL_Actions takes nothing returns nothing
set udg_MCCaster=GetTriggerUnit()
set udg_MCSpell=GetSpellAbilityId()
call TriggerSleepAction(0.01)
call TriggerExecute(gg_trg_MC_BL_effect)
if(Trig_MC_BL_Func005C()) then
call TriggerSleepAction(0.01)
call TriggerExecute(gg_trg_MC_BL_effect)
else
call DoNothing()
endif
if(Trig_MC_BL_Func006C()) then
call TriggerSleepAction(0.01)
call TriggerExecute(gg_trg_MC_BL_effect)
else
call DoNothing()
endif
if(Trig_MC_BL_Func007C()) then
call TriggerSleepAction(0.01)
call TriggerExecute(gg_trg_MC_BL_effect)
else
call DoNothing()
endif
endfunction
function InitTrig_MC_BL takes nothing returns nothing
set gg_trg_MC_BL=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_MC_BL,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_MC_BL,Condition(function Trig_MC_BL_Conditions))
call TriggerAddAction(gg_trg_MC_BL,function Trig_MC_BL_Actions)
endfunction
function Trig_MC_BL_effect_Func005003001003001 takes nothing returns boolean
return(IsUnitAlly(GetFilterUnit(),GetOwningPlayer(udg_MCCaster))==true)
endfunction
function Trig_MC_BL_effect_Func005003001003002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_MC_BL_effect_Func005003001003002002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_MC_BL_effect_Func005003001003002002002 takes nothing returns boolean
return(UnitHasBuffBJ(GetFilterUnit(),'Bblo')==false)
endfunction
function Trig_MC_BL_effect_Func005003001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_MC_BL_effect_Func005003001003002002001(),Trig_MC_BL_effect_Func005003001003002002002())
endfunction
function Trig_MC_BL_effect_Func005003001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_MC_BL_effect_Func005003001003002001(),Trig_MC_BL_effect_Func005003001003002002())
endfunction
function Trig_MC_BL_effect_Func005003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_MC_BL_effect_Func005003001003001(),Trig_MC_BL_effect_Func005003001003002())
endfunction
function Trig_MC_BL_effect_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'e00C',GetOwningPlayer(udg_MCCaster),GetUnitLoc(udg_MCCaster),bj_UNIT_FACING)
call UnitAddAbilityBJ(udg_MCSpell,GetLastCreatedUnit())
call SetUnitAbilityLevelSwapped(udg_MCSpell,GetLastCreatedUnit(),GetUnitAbilityLevelSwapped(udg_MCSpell,udg_MCCaster))
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"bloodlust",GroupPickRandomUnit(GetUnitsInRangeOfLocMatching(600.00,GetUnitLoc(udg_MCCaster),Condition(function Trig_MC_BL_effect_Func005003001003))))
call SetUnitPathing(GetLastCreatedUnit(),false)
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call UnitAddAbilityBJ('Aloc',GetLastCreatedUnit())
endfunction
function InitTrig_MC_BL_effect takes nothing returns nothing
set gg_trg_MC_BL_effect=CreateTrigger()
call TriggerAddAction(gg_trg_MC_BL_effect,function Trig_MC_BL_effect_Actions)
endfunction
function Trig_MC_FB_Func015C takes nothing returns boolean
if((GetSpellAbilityId()=='A04W')) then
return true
endif
if((GetSpellAbilityId()=='A08D')) then
return true
endif
if((GetSpellAbilityId()=='A08A')) then
return true
endif
if((GetSpellAbilityId()=='A089')) then
return true
endif
return false
endfunction
function Trig_MC_FB_Func012C takes nothing returns boolean
if(not(udg_MCLvl[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]>1)) then
return false
endif
return true
endfunction
function Trig_MC_FB_Func013C takes nothing returns boolean
if(not(udg_MCLvl[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]>2)) then
return false
endif
return true
endfunction
function Trig_MC_FB_Func014C takes nothing returns boolean
if(not(udg_MCLvl[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]>3)) then
return false
endif
return true
endfunction
function Trig_MC_FB_Conditions takes nothing returns boolean
if(not Trig_MC_FB_Func015C()) then
return false
endif
if(not(GetUnitAbilityLevelSwapped('A088',GetTriggerUnit())>0)) then
return false
endif
return true
endfunction
function Trig_MC_FB_Actions takes nothing returns nothing
set udg_MCSpell=GetSpellAbilityId()
set udg_FBTarget=GetSpellTargetUnit()
call TriggerSleepAction(0.05)
call CreateNUnitsAtLoc(1,'e00C',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(udg_FBTarget),bj_UNIT_FACING)
call UnitAddAbilityBJ(udg_MCSpell,GetLastCreatedUnit())
call SetUnitAbilityLevelSwapped(udg_MCSpell,GetLastCreatedUnit(),GetUnitAbilityLevelSwapped(udg_MCSpell,GetTriggerUnit()))
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"thunderbolt",udg_FBTarget)
call SetUnitPathing(GetLastCreatedUnit(),false)
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call UnitAddAbilityBJ('Aloc',GetLastCreatedUnit())
if(Trig_MC_FB_Func012C()) then
call TriggerSleepAction(0.05)
call CreateNUnitsAtLoc(1,'e00C',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(udg_FBTarget),bj_UNIT_FACING)
call UnitAddAbilityBJ(udg_MCSpell,GetLastCreatedUnit())
call SetUnitAbilityLevelSwapped(udg_MCSpell,GetLastCreatedUnit(),GetUnitAbilityLevelSwapped(udg_MCSpell,GetTriggerUnit()))
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"thunderbolt",udg_FBTarget)
call SetUnitPathing(GetLastCreatedUnit(),false)
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call UnitAddAbilityBJ('Aloc',GetLastCreatedUnit())
else
call DoNothing()
endif
if(Trig_MC_FB_Func013C()) then
call TriggerSleepAction(0.05)
call CreateNUnitsAtLoc(1,'e00C',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(udg_FBTarget),bj_UNIT_FACING)
call UnitAddAbilityBJ(udg_MCSpell,GetLastCreatedUnit())
call SetUnitAbilityLevelSwapped(udg_MCSpell,GetLastCreatedUnit(),GetUnitAbilityLevelSwapped(udg_MCSpell,GetTriggerUnit()))
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"thunderbolt",udg_FBTarget)
call SetUnitPathing(GetLastCreatedUnit(),false)
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call UnitAddAbilityBJ('Aloc',GetLastCreatedUnit())
else
call DoNothing()
endif
if(Trig_MC_FB_Func014C()) then
call TriggerSleepAction(0.05)
call CreateNUnitsAtLoc(1,'e00C',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(udg_FBTarget),bj_UNIT_FACING)
call UnitAddAbilityBJ(udg_MCSpell,GetLastCreatedUnit())
call SetUnitAbilityLevelSwapped(udg_MCSpell,GetLastCreatedUnit(),GetUnitAbilityLevelSwapped(udg_MCSpell,GetTriggerUnit()))
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"thunderbolt",udg_FBTarget)
call SetUnitPathing(GetLastCreatedUnit(),false)
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call UnitAddAbilityBJ('Aloc',GetLastCreatedUnit())
else
call DoNothing()
endif
endfunction
function InitTrig_MC_FB takes nothing returns nothing
set gg_trg_MC_FB=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_MC_FB,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_MC_FB,Condition(function Trig_MC_FB_Conditions))
call TriggerAddAction(gg_trg_MC_FB,function Trig_MC_FB_Actions)
endfunction
function Trig_IlluminateCast_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A085')) then
return false
endif
return true
endfunction
function Trig_IlluminateCast_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'e00C',GetOwningPlayer(udg_IlCaster),GetUnitLoc(udg_IlCaster),bj_UNIT_FACING)
call UnitAddAbilityBJ('A087',GetLastCreatedUnit())
call SetUnitAbilityLevelSwapped('A087',GetLastCreatedUnit(),udg_IllLvl)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"breathoffire",PolarProjectionBJ(GetUnitLoc(udg_IlCaster),200.00,GetUnitFacing(GetTriggerUnit())))
call SetUnitPathing(GetLastCreatedUnit(),false)
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call UnitAddAbilityBJ('Aloc',GetLastCreatedUnit())
call RemoveUnit(udg_IlCaster)
endfunction
function InitTrig_IlluminateCast takes nothing returns nothing
set gg_trg_IlluminateCast=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_IlluminateCast,EVENT_PLAYER_UNIT_SPELL_ENDCAST)
call TriggerAddCondition(gg_trg_IlluminateCast,Condition(function Trig_IlluminateCast_Conditions))
call TriggerAddAction(gg_trg_IlluminateCast,function Trig_IlluminateCast_Actions)
endfunction
function Trig_IlluminateCharge_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A085')) then
return false
endif
return true
endfunction
function Trig_IlluminateCharge_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'u00J',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),150.00,GetUnitFacing(GetTriggerUnit())),GetUnitFacing(GetTriggerUnit()))
set udg_IlCaster=GetLastCreatedUnit()
set udg_IllLvl=1
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_IllLvl=(udg_IllLvl+1)
call SetUnitScalePercent(udg_IlCaster,(100.00+(15.00*I2R(GetForLoopIndexA()))),(100.00+(15.00*I2R(GetForLoopIndexA()))),(100.00+(15.00*I2R(GetForLoopIndexA()))))
call TriggerSleepAction(0.50)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function InitTrig_IlluminateCharge takes nothing returns nothing
set gg_trg_IlluminateCharge=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_IlluminateCharge,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_IlluminateCharge,Condition(function Trig_IlluminateCharge_Conditions))
call TriggerAddAction(gg_trg_IlluminateCharge,function Trig_IlluminateCharge_Actions)
endfunction
function Trig_ML_d_Conditions takes nothing returns boolean
if(not(UnitHasBuffBJ(GetTriggerUnit(),'B02Y')==true)) then
return false
endif
return true
endfunction
function Trig_ML_d_Actions takes nothing returns nothing
call SetUnitManaBJ(GetTriggerUnit(),(GetUnitStateSwap(UNIT_STATE_MANA,GetTriggerUnit())*(0.20*(5.00-I2R(udg_MLL)))))
endfunction
function InitTrig_ML_d takes nothing returns nothing
set gg_trg_ML_d=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_ML_d,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_ML_d,Condition(function Trig_ML_d_Conditions))
call TriggerAddAction(gg_trg_ML_d,function Trig_ML_d_Actions)
endfunction
function Trig_ML_c_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A07Y')) then
return false
endif
return true
endfunction
function Trig_ML_c_Actions takes nothing returns nothing
set udg_MLL=GetUnitAbilityLevelSwapped('A07Y',GetTriggerUnit())
endfunction
function InitTrig_ML_c takes nothing returns nothing
set gg_trg_ML_c=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_ML_c,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_ML_c,Condition(function Trig_ML_c_Conditions))
call TriggerAddAction(gg_trg_ML_c,function Trig_ML_c_Actions)
endfunction
function Trig_chakra_magic_Func001C takes nothing returns boolean
if(not(GetTriggerUnit()==GetSpellTargetUnit())) then
return false
endif
return true
endfunction
function Trig_chakra_magic_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A07N')) then
return false
endif
return true
endfunction
function Trig_chakra_magic_Actions takes nothing returns nothing
if(Trig_chakra_magic_Func001C()) then
call SetUnitManaBJ(GetTriggerUnit(),(GetUnitStateSwap(UNIT_STATE_MANA,GetTriggerUnit())+(40.00*I2R(GetUnitAbilityLevelSwapped('A07N',GetTriggerUnit())))))
else
call SetUnitManaBJ(GetSpellTargetUnit(),(GetUnitStateSwap(UNIT_STATE_MANA,GetSpellTargetUnit())+(100.00*I2R(GetUnitAbilityLevelSwapped('A07N',GetTriggerUnit())))))
endif
endfunction
function InitTrig_chakra_magic takes nothing returns nothing
set gg_trg_chakra_magic=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_chakra_magic,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_chakra_magic,Condition(function Trig_chakra_magic_Conditions))
call TriggerAddAction(gg_trg_chakra_magic,function Trig_chakra_magic_Actions)
endfunction
function Trig_Burrowstrike_Func004C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A06O',GetTriggerUnit())==1)) then
return false
endif
return true
endfunction
function Trig_Burrowstrike_Func005C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A06O',GetTriggerUnit())==2)) then
return false
endif
return true
endfunction
function Trig_Burrowstrike_Func006C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A06O',GetTriggerUnit())==3)) then
return false
endif
return true
endfunction
function Trig_Burrowstrike_Func007C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A06O',GetTriggerUnit())==4)) then
return false
endif
return true
endfunction
function Trig_Burrowstrike_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A06O')) then
return false
endif
if(GetUnitTypeId(GetTriggerUnit())=='U00I') then
return false
endif
return true
endfunction
function Trig_Burrowstrike_Actions takes nothing returns nothing
set udg_BSUnit=GetTriggerUnit()
set udg_BSPosition[1]=GetLocationX(GetSpellTargetLoc())
set udg_BSPosition[2]=GetLocationY(GetSpellTargetLoc())
if(Trig_Burrowstrike_Func004C()) then
call CreateNUnitsAtLoc(1,'e00C',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),-100.00,GetUnitFacing(GetTriggerUnit())),GetUnitFacing(GetTriggerUnit()))
call ShowUnitHide(GetLastCreatedUnit())
call UnitAddAbilityBJ('A075',GetLastCreatedUnit())
call SetUnitAbilityLevelSwapped('A075',GetLastCreatedUnit(),(R2I(DistanceBetweenPoints(GetUnitLoc(GetTriggerUnit()),GetSpellTargetLoc()))/100))
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"impale",Location(udg_BSPosition[1],udg_BSPosition[2]))
call TriggerSleepAction((DistanceBetweenPoints(GetUnitLoc(udg_BSUnit),Location(udg_BSPosition[1],udg_BSPosition[2]))/4000.00))
call SetUnitPositionLoc(udg_BSUnit,Location(udg_BSPosition[1],udg_BSPosition[2]))
call SetUnitAnimation(udg_BSUnit,"morph ALTERNATE")
call TriggerSleepAction(2)
call RemoveUnit(GetLastCreatedUnit())
else
endif
if(Trig_Burrowstrike_Func005C()) then
call CreateNUnitsAtLoc(1,'e00C',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),-100.00,GetUnitFacing(GetTriggerUnit())),GetUnitFacing(GetTriggerUnit()))
call ShowUnitHide(GetLastCreatedUnit())
call UnitAddAbilityBJ('A070',GetLastCreatedUnit())
call SetUnitAbilityLevelSwapped('A070',GetLastCreatedUnit(),(R2I(DistanceBetweenPoints(GetUnitLoc(GetTriggerUnit()),GetSpellTargetLoc()))/100))
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"impale",Location(udg_BSPosition[1],udg_BSPosition[2]))
call TriggerSleepAction((DistanceBetweenPoints(GetUnitLoc(udg_BSUnit),Location(udg_BSPosition[1],udg_BSPosition[2]))/4000.00))
call SetUnitPositionLoc(udg_BSUnit,Location(udg_BSPosition[1],udg_BSPosition[2]))
call SetUnitAnimation(udg_BSUnit,"morph ALTERNATE")
call TriggerSleepAction(2)
call RemoveUnit(GetLastCreatedUnit())
else
endif
if(Trig_Burrowstrike_Func006C()) then
call CreateNUnitsAtLoc(1,'e00C',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),-100.00,GetUnitFacing(GetTriggerUnit())),GetUnitFacing(GetTriggerUnit()))
call ShowUnitHide(GetLastCreatedUnit())
call UnitAddAbilityBJ('A06Z',GetLastCreatedUnit())
call SetUnitAbilityLevelSwapped('A06Z',GetLastCreatedUnit(),(R2I(DistanceBetweenPoints(GetUnitLoc(GetTriggerUnit()),GetSpellTargetLoc()))/100))
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"impale",Location(udg_BSPosition[1],udg_BSPosition[2]))
call TriggerSleepAction((DistanceBetweenPoints(GetUnitLoc(udg_BSUnit),Location(udg_BSPosition[1],udg_BSPosition[2]))/4000.00))
call SetUnitPositionLoc(udg_BSUnit,Location(udg_BSPosition[1],udg_BSPosition[2]))
call SetUnitAnimation(udg_BSUnit,"morph ALTERNATE")
call TriggerSleepAction(2)
call RemoveUnit(GetLastCreatedUnit())
else
endif
if(Trig_Burrowstrike_Func007C()) then
call CreateNUnitsAtLoc(1,'e00C',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),-100.00,GetUnitFacing(GetTriggerUnit())),GetUnitFacing(GetTriggerUnit()))
call ShowUnitHide(GetLastCreatedUnit())
call UnitAddAbilityBJ('A077',GetLastCreatedUnit())
call SetUnitAbilityLevelSwapped('A077',GetLastCreatedUnit(),(R2I(DistanceBetweenPoints(GetUnitLoc(GetTriggerUnit()),GetSpellTargetLoc()))/100))
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"impale",Location(udg_BSPosition[1],udg_BSPosition[2]))
call TriggerSleepAction((DistanceBetweenPoints(GetUnitLoc(udg_BSUnit),Location(udg_BSPosition[1],udg_BSPosition[2]))/4000.00))
call SetUnitPositionLoc(udg_BSUnit,Location(udg_BSPosition[1],udg_BSPosition[2]))
call SetUnitAnimation(udg_BSUnit,"morph ALTERNATE")
call TriggerSleepAction(2)
call RemoveUnit(GetLastCreatedUnit())
else
endif
endfunction
function InitTrig_Burrowstrike takes nothing returns nothing
set gg_trg_Burrowstrike=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Burrowstrike,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_Burrowstrike,Condition(function Trig_Burrowstrike_Conditions))
call TriggerAddAction(gg_trg_Burrowstrike,function Trig_Burrowstrike_Actions)
endfunction
function Trig_Epicenter_Func003002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Epicenter_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A06R')) then
return false
endif
if(GetUnitTypeId(GetTriggerUnit())=='U00I') then
return false
endif
return true
endfunction
function Trig_Epicenter_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=(4+(GetUnitAbilityLevelSwapped('A06R',GetTriggerUnit())*2))
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e00C',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),bj_UNIT_FACING)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_EpiGroup)
call ShowUnitHide(GetLastCreatedUnit())
call UnitAddAbilityBJ('A07L',GetLastCreatedUnit())
call SetUnitAbilityLevelSwapped('A07L',GetLastCreatedUnit(),GetForLoopIndexA())
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"thunderclap")
call TriggerSleepAction(0.05)
call TerrainDeformationRippleBJ(0.03,false,GetUnitLoc(GetLastCreatedUnit()),(150.00+(100.00*I2R(GetForLoopIndexA()))),(150.00+(100.00*I2R(GetForLoopIndexA()))),72.00,0.03,512)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(2)
call ForGroupBJ(udg_EpiGroup,function Trig_Epicenter_Func003002)
endfunction
function InitTrig_Epicenter takes nothing returns nothing
set gg_trg_Epicenter=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Epicenter,EVENT_PLAYER_UNIT_SPELL_FINISH)
call TriggerAddCondition(gg_trg_Epicenter,Condition(function Trig_Epicenter_Conditions))
call TriggerAddAction(gg_trg_Epicenter,function Trig_Epicenter_Actions)
endfunction
function Trig_Dust_Trail_Func001C takes nothing returns boolean
if(not(udg_Burrowed==true)) then
return false
endif
return true
endfunction
function Trig_Dust_Trail_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='e00J')) then
return false
endif
return true
endfunction
function Trig_Dust_Trail_Actions takes nothing returns nothing
local player DustOwner=GetOwningPlayer(GetTriggerUnit())
if(Trig_Dust_Trail_Func001C()) then
call RemoveUnit(GetTriggerUnit())
else
if(IsPlayerAlly(DustOwner,Player(0))) then
call UnitAddAbilityBJ('A05P',GetTriggerUnit())
call SetUnitAbilityLevelSwapped('A07B',GetTriggerUnit(),udg_DustLevel)
else
call UnitAddAbilityBJ('A07B',GetTriggerUnit())
call SetUnitAbilityLevelSwapped('A05P',GetTriggerUnit(),udg_DustLevel)
endif
call IssuePointOrderLocBJ(GetTriggerUnit(),"cloudoffog",GetUnitLoc(GetTriggerUnit()))
endif
endfunction
function InitTrig_Dust_Trail takes nothing returns nothing
set gg_trg_Dust_Trail=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_Dust_Trail,GetPlayableMapRect())
call TriggerAddCondition(gg_trg_Dust_Trail,Condition(function Trig_Dust_Trail_Conditions))
call TriggerAddAction(gg_trg_Dust_Trail,function Trig_Dust_Trail_Actions)
endfunction
function Trig_Dust_Trail_Learn_Conditions takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A06S')) then
return false
endif
return true
endfunction
function Trig_Dust_Trail_Learn_Actions takes nothing returns nothing
set udg_DustLevel=GetUnitAbilityLevelSwapped('A06S',GetTriggerUnit())
endfunction
function InitTrig_Dust_Trail_Learn takes nothing returns nothing
set gg_trg_Dust_Trail_Learn=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Dust_Trail_Learn,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(gg_trg_Dust_Trail_Learn,Condition(function Trig_Dust_Trail_Learn_Conditions))
call TriggerAddAction(gg_trg_Dust_Trail_Learn,function Trig_Dust_Trail_Learn_Actions)
endfunction
function Trig_Entrench_Func001Func002001 takes nothing returns boolean
return(GetUnitTypeId(GetDyingUnit())=='U00K')
endfunction
function Trig_Entrench_Func001Func002002 takes nothing returns boolean
return(GetUnitTypeId(GetDyingUnit())=='U00I')
endfunction
function Trig_Entrench_Func001C takes nothing returns boolean
if(not GetBooleanOr(Trig_Entrench_Func001Func002001(),Trig_Entrench_Func001Func002002())) then
return false
endif
return true
endfunction
function Trig_Entrench_Func003Func001001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='U00K')
endfunction
function Trig_Entrench_Func003Func001002 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='U00I')
endfunction
function Trig_Entrench_Func003C takes nothing returns boolean
if(not GetBooleanOr(Trig_Entrench_Func003Func001001(),Trig_Entrench_Func003Func001002())) then
return false
endif
if(not(GetIssuedOrderIdBJ()==String2OrderIdBJ("burrow"))) then
return false
endif
return true
endfunction
function Trig_Entrench_Func004Func001001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='U00K')
endfunction
function Trig_Entrench_Func004Func001002 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='U00I')
endfunction
function Trig_Entrench_Func004C takes nothing returns boolean
if(not GetBooleanOr(Trig_Entrench_Func004Func001001(),Trig_Entrench_Func004Func001002())) then
return false
endif
if(not(GetIssuedOrderIdBJ()==String2OrderIdBJ("unburrow"))) then
return false
endif
return true
endfunction
function Trig_Entrench_Actions takes nothing returns nothing
if(Trig_Entrench_Func001C()) then
set udg_Burrowed=false
else
endif
if(Trig_Entrench_Func003C()) then
set udg_Burrowed=true
else
endif
if(Trig_Entrench_Func004C()) then
set udg_Burrowed=false
call CreateNUnitsAtLoc(1,'e00C',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),bj_UNIT_FACING)
call UnitAddAbilityBJ('A07G',GetLastCreatedUnit())
call SetUnitAbilityLevelSwapped('A07G',GetLastCreatedUnit(),GetUnitAbilityLevelSwapped('A06U',GetTriggerUnit()))
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"stomp")
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call SetUnitPathing(GetLastCreatedUnit(),false)
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call UnitAddAbilityBJ('Aloc',GetLastCreatedUnit())
else
endif
endfunction
function InitTrig_Entrench takes nothing returns nothing
set gg_trg_Entrench=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Entrench,EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterAnyUnitEventBJ(gg_trg_Entrench,EVENT_PLAYER_UNIT_ISSUED_ORDER)
call TriggerAddAction(gg_trg_Entrench,function Trig_Entrench_Actions)
endfunction
function Trig_Meat_Hook_Cast_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A06I')) then
return false
endif
return true
endfunction
function Trig_Meat_Hook_Cast_Actions takes nothing returns nothing
set udg_MHLevel=GetUnitAbilityLevelSwapped('A06I',GetTriggerUnit())
set udg_MHUnits[1]=GetTriggerUnit()
call EnableTrigger(gg_trg_Meat_Hook_Extend)
endfunction
function InitTrig_Meat_Hook_Cast takes nothing returns nothing
set gg_trg_Meat_Hook_Cast=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Meat_Hook_Cast,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_Meat_Hook_Cast,Condition(function Trig_Meat_Hook_Cast_Conditions))
call TriggerAddAction(gg_trg_Meat_Hook_Cast,function Trig_Meat_Hook_Cast_Actions)
endfunction
function Trig_Meat_Hook_Extend_Func001Func007001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Meat_Hook_Extend_Func001Func007001003002001 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function Trig_Meat_Hook_Extend_Func001Func007001003002002001 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())!='u00H')
endfunction
function Trig_Meat_Hook_Extend_Func001Func007001003002002002001 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())!='U00F')
endfunction
function Trig_Meat_Hook_Extend_Func001Func007001003002002002002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_ANCIENT)==false)
endfunction
function Trig_Meat_Hook_Extend_Func001Func007001003002002002002002 takes nothing returns boolean
return('Bmlt'=='Bmlt')
endfunction
function Trig_Meat_Hook_Extend_Func001Func007001003002002002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Meat_Hook_Extend_Func001Func007001003002002002002001(),Trig_Meat_Hook_Extend_Func001Func007001003002002002002002())
endfunction
function Trig_Meat_Hook_Extend_Func001Func007001003002002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Meat_Hook_Extend_Func001Func007001003002002002001(),Trig_Meat_Hook_Extend_Func001Func007001003002002002002())
endfunction
function Trig_Meat_Hook_Extend_Func001Func007001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Meat_Hook_Extend_Func001Func007001003002002001(),Trig_Meat_Hook_Extend_Func001Func007001003002002002())
endfunction
function Trig_Meat_Hook_Extend_Func001Func007001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Meat_Hook_Extend_Func001Func007001003002001(),Trig_Meat_Hook_Extend_Func001Func007001003002002())
endfunction
function Trig_Meat_Hook_Extend_Func001Func007001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Meat_Hook_Extend_Func001Func007001003001(),Trig_Meat_Hook_Extend_Func001Func007001003002())
endfunction
function Trig_Meat_Hook_Extend_Func001Func007Func001001 takes nothing returns boolean
return(udg_ChainLinkNumber>3)
endfunction
function Trig_Meat_Hook_Extend_Func001Func007Func002C takes nothing returns boolean
if(not(IsUnitAlly(udg_MHUnits[2],GetOwningPlayer(udg_MHUnits[1]))==false)) then
return false
endif
return true
endfunction
function Trig_Meat_Hook_Extend_Func001Func007Func003C takes nothing returns boolean
if(not(udg_MHUnits[2]==null)) then
return false
endif
return true
endfunction
function Trig_Meat_Hook_Extend_Func001Func007A takes nothing returns nothing
if(Trig_Meat_Hook_Extend_Func001Func007Func001001()) then
set udg_MHUnits[2]=GetEnumUnit()
else
call DoNothing()
endif
if(Trig_Meat_Hook_Extend_Func001Func007Func002C()) then
call UnitDamageTargetBJ(udg_MHUnits[1],udg_MHUnits[2],(I2R(udg_MHLevel)*100.00),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_ENHANCED)
else
endif
if(Trig_Meat_Hook_Extend_Func001Func007Func003C()) then
call DoNothing()
else
call DisableTrigger(GetTriggeringTrigger())
call EnableTrigger(gg_trg_Meat_Hook_Retract)
endif
endfunction
function Trig_Meat_Hook_Extend_Func001C takes nothing returns boolean
if(not(udg_ChainLinkNumber<(5+(6*udg_MHLevel)))) then
return false
endif
return true
endfunction
function Trig_Meat_Hook_Extend_Actions takes nothing returns nothing
if(Trig_Meat_Hook_Extend_Func001C()) then
set udg_ChainLinkNumber=(udg_ChainLinkNumber+1)
call CreateNUnitsAtLoc(1,'u00H',GetOwningPlayer(udg_MHUnits[1]),PolarProjectionBJ(GetUnitLoc(udg_MHUnits[1]),(I2R(udg_ChainLinkNumber)*40.00),GetUnitFacing(udg_MHUnits[1])),GetUnitFacing(udg_MHUnits[1]))
set udg_ChainLinks[udg_ChainLinkNumber]=GetLastCreatedUnit()
call ForGroupBJ(GetUnitsInRangeOfLocMatching(115.00,GetUnitLoc(GetLastCreatedUnit()),Condition(function Trig_Meat_Hook_Extend_Func001Func007001003)),function Trig_Meat_Hook_Extend_Func001Func007A)
else
call DisableTrigger(GetTriggeringTrigger())
call EnableTrigger(gg_trg_Meat_Hook_Retract)
endif
endfunction
function InitTrig_Meat_Hook_Extend takes nothing returns nothing
set gg_trg_Meat_Hook_Extend=CreateTrigger()
call DisableTrigger(gg_trg_Meat_Hook_Extend)
call TriggerRegisterTimerEventPeriodic(gg_trg_Meat_Hook_Extend,0.03)
call TriggerAddAction(gg_trg_Meat_Hook_Extend,function Trig_Meat_Hook_Extend_Actions)
endfunction
function Trig_Meat_Hook_Retract_Func004C takes nothing returns boolean
if(not(udg_ChainLinkNumber==0)) then
return false
endif
return true
endfunction
function Trig_Meat_Hook_Retract_Actions takes nothing returns nothing
call SetUnitPositionLoc(udg_MHUnits[2],GetUnitLoc(udg_ChainLinks[udg_ChainLinkNumber]))
call RemoveUnit(udg_ChainLinks[udg_ChainLinkNumber])
set udg_ChainLinkNumber=(udg_ChainLinkNumber-1)
if(Trig_Meat_Hook_Retract_Func004C()) then
set udg_MHUnits[2]=null
call DisableTrigger(GetTriggeringTrigger())
else
endif
endfunction
function InitTrig_Meat_Hook_Retract takes nothing returns nothing
set gg_trg_Meat_Hook_Retract=CreateTrigger()
call DisableTrigger(gg_trg_Meat_Hook_Retract)
call TriggerRegisterTimerEventPeriodic(gg_trg_Meat_Hook_Retract,0.03)
call TriggerAddAction(gg_trg_Meat_Hook_Retract,function Trig_Meat_Hook_Retract_Actions)
endfunction
function Trig_Flesh_Heap_Func002C takes nothing returns boolean
if(not(udg_FleshHeap>=1.00)) then
return false
endif
return true
endfunction
function Trig_Flesh_Heap_Conditions takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A06D',GetKillingUnitBJ())>0)) then
return false
endif
return true
endfunction
function Trig_Flesh_Heap_Actions takes nothing returns nothing
set udg_FleshHeap=(udg_FleshHeap+(0.03*I2R(GetUnitAbilityLevelSwapped('A06D',GetKillingUnitBJ()))))
if(Trig_Flesh_Heap_Func002C()) then
set udg_FleshHeap=(udg_FleshHeap-1)
call ModifyHeroStat(bj_HEROSTAT_STR,GetKillingUnitBJ(),bj_MODIFYMETHOD_ADD,1)
else
endif
endfunction
function InitTrig_Flesh_Heap takes nothing returns nothing
set gg_trg_Flesh_Heap=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Flesh_Heap,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_Flesh_Heap,Condition(function Trig_Flesh_Heap_Conditions))
call TriggerAddAction(gg_trg_Flesh_Heap,function Trig_Flesh_Heap_Actions)
endfunction
function Trig_Death_Pulse_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A05V')) then
return false
endif
return true
endfunction
function Trig_Death_Pulse_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'e00C',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),bj_UNIT_FACING)
call UnitAddAbilityBJ('A05W',GetLastCreatedUnit())
call SetUnitAbilityLevelSwapped('A05W',GetLastCreatedUnit(),GetUnitAbilityLevelSwapped('A05V',GetTriggerUnit()))
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"fanofknives")
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call SetUnitPathing(GetLastCreatedUnit(),false)
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call UnitAddAbilityBJ('Aloc',GetLastCreatedUnit())
endfunction
function InitTrig_Death_Pulse takes nothing returns nothing
set gg_trg_Death_Pulse=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Death_Pulse,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_Death_Pulse,Condition(function Trig_Death_Pulse_Conditions))
call TriggerAddAction(gg_trg_Death_Pulse,function Trig_Death_Pulse_Actions)
endfunction
function Trig_Reaper_Scythe_Func001001 takes nothing returns boolean
return(GetSpellAbilityId()=='A067')
endfunction
function Trig_Reaper_Scythe_Func001002 takes nothing returns boolean
return(GetSpellAbilityId()=='A08P')
endfunction
function Trig_Reaper_Scythe_Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A067',GetTriggerUnit())==1)) then
return false
endif
return true
endfunction
function Trig_Reaper_Scythe_Func003Func003001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A067',GetTriggerUnit())==2)
endfunction
function Trig_Reaper_Scythe_Func003Func003002 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A08P',GetTriggerUnit())==1)
endfunction
function Trig_Reaper_Scythe_Func003C takes nothing returns boolean
if(not GetBooleanOr(Trig_Reaper_Scythe_Func003Func003001(),Trig_Reaper_Scythe_Func003Func003002())) then
return false
endif
return true
endfunction
function Trig_Reaper_Scythe_Func004Func003001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A067',GetTriggerUnit())==3)
endfunction
function Trig_Reaper_Scythe_Func004Func003002 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A08P',GetTriggerUnit())==2)
endfunction
function Trig_Reaper_Scythe_Func004C takes nothing returns boolean
if(not GetBooleanOr(Trig_Reaper_Scythe_Func004Func003001(),Trig_Reaper_Scythe_Func004Func003002())) then
return false
endif
return true
endfunction
function Trig_Reaper_Scythe_Func005C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A08P',GetTriggerUnit())==3)) then
return false
endif
return true
endfunction
function Trig_Reaper_Scythe_Conditions takes nothing returns boolean
if(not GetBooleanOr(Trig_Reaper_Scythe_Func001001(),Trig_Reaper_Scythe_Func001002())) then
return false
endif
return true
endfunction
function Trig_Reaper_Scythe_Actions takes nothing returns nothing
if(Trig_Reaper_Scythe_Func002C()) then
set udg_BSDam=0.40
else
call DoNothing()
endif
if(Trig_Reaper_Scythe_Func003C()) then
set udg_BSDam=0.60
else
call DoNothing()
endif
if(Trig_Reaper_Scythe_Func004C()) then
set udg_BSDam=0.90
else
call DoNothing()
endif
if(Trig_Reaper_Scythe_Func005C()) then
set udg_BSDam=1.10
else
call DoNothing()
endif
call UnitDamageTargetBJ(GetTriggerUnit(),GetSpellTargetUnit(),(udg_BSDam*(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetSpellTargetUnit())-GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellTargetUnit()))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_FIRE)
endfunction
function InitTrig_Reaper_Scythe takes nothing returns nothing
set gg_trg_Reaper_Scythe=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Reaper_Scythe,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_Reaper_Scythe,Condition(function Trig_Reaper_Scythe_Conditions))
call TriggerAddAction(gg_trg_Reaper_Scythe,function Trig_Reaper_Scythe_Actions)
endfunction
function Trig_Sadist_Conditions takes nothing returns boolean
if(not(UnitHasBuffBJ(GetKillingUnitBJ(),'B02R')==true)) then
return false
endif
return true
endfunction
function Trig_Sadist_Actions takes nothing returns nothing
call SetUnitManaBJ(GetKillingUnitBJ(),(GetUnitStateSwap(UNIT_STATE_MANA,GetKillingUnitBJ())+(12.00*I2R(GetUnitAbilityLevelSwapped('A060',GetKillingUnitBJ())))))
endfunction
function InitTrig_Sadist takes nothing returns nothing
set gg_trg_Sadist=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Sadist,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_Sadist,Condition(function Trig_Sadist_Conditions))
call TriggerAddAction(gg_trg_Sadist,function Trig_Sadist_Actions)
endfunction
function Trig_Heartstopper_Set_Func001001002 takes nothing returns boolean
return(UnitHasBuffBJ(GetFilterUnit(),'B02Q')==true)
endfunction
function Trig_Heartstopper_Set_Func001A takes nothing returns nothing
call UnitRemoveBuffBJ('B02Q',GetEnumUnit())
endfunction
function Trig_Heartstopper_Set_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A05X')) then
return false
endif
return true
endfunction
function Trig_Heartstopper_Set_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_Heartstopper_Set_Func001001002)),function Trig_Heartstopper_Set_Func001A)
set udg_HSLife=GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellTargetUnit())
call EnableTrigger(gg_trg_Heartstopper_Life)
endfunction
function InitTrig_Heartstopper_Set takes nothing returns nothing
set gg_trg_Heartstopper_Set=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Heartstopper_Set,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(gg_trg_Heartstopper_Set,Condition(function Trig_Heartstopper_Set_Conditions))
call TriggerAddAction(gg_trg_Heartstopper_Set,function Trig_Heartstopper_Set_Actions)
endfunction
function Trig_Heartstopper_Life_Func002001002 takes nothing returns boolean
return(UnitHasBuffBJ(GetFilterUnit(),'B02Q')==true)
endfunction
function Trig_Heartstopper_Life_Func002Func002C takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())>=udg_HSLife)) then
return false
endif
return true
endfunction
function Trig_Heartstopper_Life_Func002A takes nothing returns nothing
set udg_NGBool=true
if(Trig_Heartstopper_Life_Func002Func002C()) then
call SetUnitLifeBJ(GetEnumUnit(),udg_HSLife)
else
set udg_HSLife=GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())
endif
endfunction
function Trig_Heartstopper_Life_Func003C takes nothing returns boolean
if(not(udg_NGBool==false)) then
return false
endif
return true
endfunction
function Trig_Heartstopper_Life_Actions takes nothing returns nothing
set udg_NGBool=false
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_Heartstopper_Life_Func002001002)),function Trig_Heartstopper_Life_Func002A)
if(Trig_Heartstopper_Life_Func003C()) then
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function InitTrig_Heartstopper_Life takes nothing returns nothing
set gg_trg_Heartstopper_Life=CreateTrigger()
call DisableTrigger(gg_trg_Heartstopper_Life)
call TriggerRegisterTimerEventPeriodic(gg_trg_Heartstopper_Life,1.00)
call TriggerAddAction(gg_trg_Heartstopper_Life,function Trig_Heartstopper_Life_Actions)
endfunction
function Trig_Laser_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A049')) then
return false
endif
return true
endfunction
function Trig_Laser_Actions takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetSpellTargetUnit(),(I2R(GetUnitAbilityLevelSwapped('A049',GetTriggerUnit()))*80.00),ATTACK_TYPE_MELEE,DAMAGE_TYPE_UNKNOWN)
endfunction
function InitTrig_Laser takes nothing returns nothing
set gg_trg_Laser=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Laser,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_Laser,Condition(function Trig_Laser_Conditions))
call TriggerAddAction(gg_trg_Laser,function Trig_Laser_Actions)
endfunction
function Trig_Rearm_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A065')) then
return false
endif
return true
endfunction
function Trig_Rearm_Actions takes nothing returns nothing
call UnitResetCooldown(GetTriggerUnit())
endfunction
function InitTrig_Rearm takes nothing returns nothing
set gg_trg_Rearm=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Rearm,EVENT_PLAYER_UNIT_SPELL_FINISH)
call TriggerAddCondition(gg_trg_Rearm,Condition(function Trig_Rearm_Conditions))
call TriggerAddAction(gg_trg_Rearm,function Trig_Rearm_Actions)
endfunction
function Trig_Nightmare_Attack_Conditions takes nothing returns boolean
if(not(UnitHasBuffBJ(GetAttackedUnitBJ(),'B02F')==true)) then
return false
endif
return true
endfunction
function Trig_Nightmare_Attack_Actions takes nothing returns nothing
call TriggerSleepAction(0.25)
call CreateNUnitsAtLoc(1,'e00C',GetOwningPlayer(udg_NightCaster),GetUnitLoc(GetAttackedUnitBJ()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call UnitAddAbilityBJ('A04Z',GetLastCreatedUnit())
call SetUnitAbilityLevelSwapped('A04Z',GetLastCreatedUnit(),udg_NightLvl)
call IssueTargetOrderBJ(GetLastCreatedUnit(),"sleep",GetAttacker())
call SetUnitPathing(GetLastCreatedUnit(),false)
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call UnitAddAbilityBJ('Aloc',GetLastCreatedUnit())
endfunction
function InitTrig_Nightmare_Attack takes nothing returns nothing
set gg_trg_Nightmare_Attack=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Nightmare_Attack,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Nightmare_Attack,Condition(function Trig_Nightmare_Attack_Conditions))
call TriggerAddAction(gg_trg_Nightmare_Attack,function Trig_Nightmare_Attack_Actions)
endfunction
function Trig_Nightmare_HP_Func002001002 takes nothing returns boolean
return(UnitHasBuffBJ(GetFilterUnit(),'B02F')==true)
endfunction
function Trig_Nightmare_HP_Func002Func002C takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())>20.00)) then
return false
endif
return true
endfunction
function Trig_Nightmare_HP_Func002A takes nothing returns nothing
set udg_NightBool=true
if(Trig_Nightmare_HP_Func002Func002C()) then
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())-20.00))
else
call UnitDamageTargetBJ(udg_NightCaster,GetEnumUnit(),50.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
endif
endfunction
function Trig_Nightmare_HP_Func003C takes nothing returns boolean
if(not(udg_NightBool==false)) then
return false
endif
return true
endfunction
function Trig_Nightmare_HP_Actions takes nothing returns nothing
set udg_NightBool=false
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_Nightmare_HP_Func002001002)),function Trig_Nightmare_HP_Func002A)
if(Trig_Nightmare_HP_Func003C()) then
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function InitTrig_Nightmare_HP takes nothing returns nothing
set gg_trg_Nightmare_HP=CreateTrigger()
call DisableTrigger(gg_trg_Nightmare_HP)
call TriggerRegisterTimerEventPeriodic(gg_trg_Nightmare_HP,1.00)
call TriggerAddAction(gg_trg_Nightmare_HP,function Trig_Nightmare_HP_Actions)
endfunction
function Trig_Nightmare_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A04Y')) then
return false
endif
return true
endfunction
function Trig_Nightmare_Actions takes nothing returns nothing
call EnableTrigger(gg_trg_Nightmare_HP)
set udg_NightCaster=GetTriggerUnit()
set udg_NightLvl=GetUnitAbilityLevelSwapped('A04Y',GetTriggerUnit())
endfunction
function InitTrig_Nightmare takes nothing returns nothing
set gg_trg_Nightmare=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Nightmare,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_Nightmare,Condition(function Trig_Nightmare_Conditions))
call TriggerAddAction(gg_trg_Nightmare,function Trig_Nightmare_Actions)
endfunction
function Trig_FG_stop_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A02Q')) then
return false
endif
return true
endfunction
function Trig_FG_stop_Actions takes nothing returns nothing
call DisableTrigger(gg_trg_FG_mana)
endfunction
function InitTrig_FG_stop takes nothing returns nothing
set gg_trg_FG_stop=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_FG_stop,EVENT_PLAYER_UNIT_SPELL_ENDCAST)
call TriggerAddCondition(gg_trg_FG_stop,Condition(function Trig_FG_stop_Conditions))
call TriggerAddAction(gg_trg_FG_stop,function Trig_FG_stop_Actions)
endfunction
function Trig_FG_mana_Func004C takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_MANA,udg_FGCaster)<=20.00)) then
return false
endif
return true
endfunction
function Trig_FG_mana_Actions takes nothing returns nothing
set udg_FGNum=(4.00+(4.00*I2R(GetUnitAbilityLevelSwapped('A02Q',udg_FGCaster))))
call SetUnitManaBJ(udg_FGCaster,(GetUnitStateSwap(UNIT_STATE_MANA,udg_FGCaster)-udg_FGNum))
call UnitDamageTargetBJ(udg_FGCaster,udg_FGCaster,udg_FGNum,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MIND)
if(Trig_FG_mana_Func004C()) then
call IssueImmediateOrderBJ(udg_FGCaster,"stop")
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function InitTrig_FG_mana takes nothing returns nothing
set gg_trg_FG_mana=CreateTrigger()
call DisableTrigger(gg_trg_FG_mana)
call TriggerRegisterTimerEventPeriodic(gg_trg_FG_mana,0.20)
call TriggerAddAction(gg_trg_FG_mana,function Trig_FG_mana_Actions)
endfunction
function Trig_FG_begin_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A02Q')) then
return false
endif
return true
endfunction
function Trig_FG_begin_Actions takes nothing returns nothing
set udg_FGCaster=GetTriggerUnit()
call EnableTrigger(gg_trg_FG_mana)
call TriggerSleepAction(5.00)
call DisableTrigger(gg_trg_FG_mana)
endfunction
function InitTrig_FG_begin takes nothing returns nothing
set gg_trg_FG_begin=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_FG_begin,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_FG_begin,Condition(function Trig_FG_begin_Conditions))
call TriggerAddAction(gg_trg_FG_begin,function Trig_FG_begin_Actions)
endfunction
function Trig_RoT_end_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='AEtq')) then
return false
endif
return true
endfunction
function Trig_RoT_end_Actions takes nothing returns nothing
call RemoveWeatherEffectBJ(GetLastCreatedWeatherEffect())
call RemoveUnit(udg_RoTRemove)
endfunction
function InitTrig_RoT_end takes nothing returns nothing
set gg_trg_RoT_end=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_RoT_end,EVENT_PLAYER_UNIT_SPELL_ENDCAST)
call TriggerAddCondition(gg_trg_RoT_end,Condition(function Trig_RoT_end_Conditions))
call TriggerAddAction(gg_trg_RoT_end,function Trig_RoT_end_Actions)
endfunction
function Trig_RoT_death_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='Ofar')) then
return false
endif
return true
endfunction
function Trig_RoT_death_Actions takes nothing returns nothing
call RemoveWeatherEffectBJ(GetLastCreatedWeatherEffect())
call RemoveUnit(udg_RoTRemove)
endfunction
function InitTrig_RoT_death takes nothing returns nothing
set gg_trg_RoT_death=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_RoT_death,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_RoT_death,Condition(function Trig_RoT_death_Conditions))
call TriggerAddAction(gg_trg_RoT_death,function Trig_RoT_death_Actions)
endfunction
function Trig_RoT_begin_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='AEtq')) then
return false
endif
return true
endfunction
function Trig_RoT_begin_Actions takes nothing returns nothing
call AddWeatherEffectSaveLast(RectFromCenterSizeBJ(GetUnitLoc(GetTriggerUnit()),3000.00,3000.00),'RAhr')
call EnableWeatherEffect(GetLastCreatedWeatherEffect(),true)
call CreateNUnitsAtLoc(1,'e00C',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),bj_UNIT_FACING)
set udg_RoTRemove=GetLastCreatedUnit()
call UnitAddAbilityBJ('A04G',GetLastCreatedUnit())
call SetUnitAbilityLevelSwapped('A04G',GetLastCreatedUnit(),GetUnitAbilityLevelSwapped('AEtq',GetTriggerUnit()))
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"tranquility")
call SetUnitPathing(GetLastCreatedUnit(),false)
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call UnitAddAbilityBJ('Aloc',GetLastCreatedUnit())
endfunction
function InitTrig_RoT_begin takes nothing returns nothing
set gg_trg_RoT_begin=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_RoT_begin,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_RoT_begin,Condition(function Trig_RoT_begin_Conditions))
call TriggerAddAction(gg_trg_RoT_begin,function Trig_RoT_begin_Actions)
endfunction
function Trig_KS_active_Actions takes nothing returns nothing
call UnitRemoveBuffsBJ(bj_REMOVEBUFFS_NEGATIVE,udg_Leviathan)
endfunction
function InitTrig_KS_active takes nothing returns nothing
set gg_trg_KS_active=CreateTrigger()
call DisableTrigger(gg_trg_KS_active)
call TriggerRegisterTimerEventPeriodic(gg_trg_KS_active,10.00)
call TriggerAddAction(gg_trg_KS_active,function Trig_KS_active_Actions)
endfunction
function Trig_KS_learned_Conditions takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A04E')) then
return false
endif
return true
endfunction
function Trig_KS_learned_Actions takes nothing returns nothing
set udg_Leviathan=GetTriggerUnit()
call EnableTrigger(gg_trg_KS_active)
endfunction
function InitTrig_KS_learned takes nothing returns nothing
set gg_trg_KS_learned=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_KS_learned,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(gg_trg_KS_learned,Condition(function Trig_KS_learned_Conditions))
call TriggerAddAction(gg_trg_KS_learned,function Trig_KS_learned_Actions)
endfunction
function Trig_Gush_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A046')) then
return false
endif
return true
endfunction
function Trig_Gush_Actions takes nothing returns nothing
set udg_GushDMG=(60.00+(50.00*I2R(GetUnitAbilityLevelSwapped('A046',GetTriggerUnit()))))
call UnitDamageTargetBJ(GetTriggerUnit(),GetSpellTargetUnit(),udg_GushDMG,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_COLD)
endfunction
function InitTrig_Gush takes nothing returns nothing
set gg_trg_Gush=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Gush,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_Gush,Condition(function Trig_Gush_Conditions))
call TriggerAddAction(gg_trg_Gush,function Trig_Gush_Actions)
endfunction
function Trig_ravage_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A03Z')) then
return false
endif
return true
endfunction
function Trig_ravage_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e00C',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),bj_UNIT_FACING)
call UnitAddAbilityBJ('A084',GetLastCreatedUnit())
call SetUnitAbilityLevelSwapped('A084',GetLastCreatedUnit(),GetUnitAbilityLevelSwapped('A03Z',GetTriggerUnit()))
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"impale",PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),100.00,(45.00*I2R(GetForLoopIndexA()))))
call SetUnitPathing(GetLastCreatedUnit(),false)
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call UnitAddAbilityBJ('Aloc',GetLastCreatedUnit())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function InitTrig_ravage takes nothing returns nothing
set gg_trg_ravage=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_ravage,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_ravage,Condition(function Trig_ravage_Conditions))
call TriggerAddAction(gg_trg_ravage,function Trig_ravage_Actions)
endfunction
function Trig_overgrowth_Func001001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_overgrowth_Func001001003002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_overgrowth_Func001001003002002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_overgrowth_Func001001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_overgrowth_Func001001003002001(),Trig_overgrowth_Func001001003002002())
endfunction
function Trig_overgrowth_Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_overgrowth_Func001001003001(),Trig_overgrowth_Func001001003002())
endfunction
function Trig_overgrowth_Func001A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'e00C',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),bj_UNIT_FACING)
call UnitAddAbilityBJ('A06T',GetLastCreatedUnit())
call SetUnitAbilityLevelSwapped('A06T',GetLastCreatedUnit(),GetUnitAbilityLevelSwapped('A07Z',GetTriggerUnit()))
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"entanglingroots",GetEnumUnit())
call SetUnitPathing(GetLastCreatedUnit(),false)
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call UnitAddAbilityBJ('Aloc',GetLastCreatedUnit())
endfunction
function Trig_overgrowth_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A07Z')) then
return false
endif
return true
endfunction
function Trig_overgrowth_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRangeOfLocMatching(750.00,GetUnitLoc(GetTriggerUnit()),Condition(function Trig_overgrowth_Func001001003)),function Trig_overgrowth_Func001A)
endfunction
function InitTrig_overgrowth takes nothing returns nothing
set gg_trg_overgrowth=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_overgrowth,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_overgrowth,Condition(function Trig_overgrowth_Conditions))
call TriggerAddAction(gg_trg_overgrowth,function Trig_overgrowth_Actions)
endfunction
function Trig_assassinate_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetOrderedUnit())=='H00I')) then
return false
endif
if(not(GetIssuedOrderIdBJ()==String2OrderIdBJ("thunderbolt"))) then
return false
endif
return true
endfunction
function Trig_assassinate_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'e00C',GetOwningPlayer(GetOrderedUnit()),GetUnitLoc(GetOrderTargetUnit()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call UnitAddAbilityBJ('A03W',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"faeriefire",GetOrderTargetUnit())
call SetUnitPathing(GetLastCreatedUnit(),false)
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call UnitAddAbilityBJ('Aloc',GetLastCreatedUnit())
endfunction
function InitTrig_assassinate takes nothing returns nothing
set gg_trg_assassinate=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_assassinate,EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER)
call TriggerAddCondition(gg_trg_assassinate,Condition(function Trig_assassinate_Conditions))
call TriggerAddAction(gg_trg_assassinate,function Trig_assassinate_Actions)
endfunction
function Trig_NGCheck_Func003001002 takes nothing returns boolean
return(UnitHasBuffBJ(GetFilterUnit(),'B021')==true)
endfunction
function Trig_NGCheck_Func003Func003Func001C takes nothing returns boolean
if(not(GetDestructableTypeId(GetEnumDestructable())=='WTst')) then
return false
endif
return true
endfunction
function Trig_NGCheck_Func003Func003A takes nothing returns nothing
if(Trig_NGCheck_Func003Func003Func001C()) then
set udg_NGUS=true
else
call DoNothing()
endif
endfunction
function Trig_NGCheck_Func003Func004C takes nothing returns boolean
if(not(udg_NGUS==false)) then
return false
endif
return true
endfunction
function Trig_NGCheck_Func003A takes nothing returns nothing
set udg_NGBool=true
set udg_NGUS=false
call EnumDestructablesInCircleBJ(375.00,GetUnitLoc(GetEnumUnit()),function Trig_NGCheck_Func003Func003A)
if(Trig_NGCheck_Func003Func004C()) then
call UnitRemoveBuffBJ('B021',GetEnumUnit())
else
call DoNothing()
endif
endfunction
function Trig_NGCheck_Func004C takes nothing returns boolean
if(not(udg_NGBool==false)) then
return false
endif
return true
endfunction
function Trig_NGCheck_Actions takes nothing returns nothing
set udg_NGBool=false
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_NGCheck_Func003001002)),function Trig_NGCheck_Func003A)
if(Trig_NGCheck_Func004C()) then
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function InitTrig_NGCheck takes nothing returns nothing
set gg_trg_NGCheck=CreateTrigger()
call DisableTrigger(gg_trg_NGCheck)
call TriggerRegisterTimerEventPeriodic(gg_trg_NGCheck,1.00)
call TriggerAddAction(gg_trg_NGCheck,function Trig_NGCheck_Actions)
endfunction
function Trig_NGCast_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A01Z')) then
return false
endif
return true
endfunction
function Trig_NGCast_Actions takes nothing returns nothing
call EnableTrigger(gg_trg_NGCheck)
endfunction
function InitTrig_NGCast takes nothing returns nothing
set gg_trg_NGCast=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_NGCast,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_NGCast,Condition(function Trig_NGCast_Conditions))
call TriggerAddAction(gg_trg_NGCast,function Trig_NGCast_Actions)
endfunction
function Trig_Drag_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A01N')) then
return false
endif
return true
endfunction
function Trig_Drag_Actions takes nothing returns nothing
set udg_DraggedUnit=GetSpellTargetUnit()
set udg_Dragger=GetTriggerUnit()
call TriggerSleepAction(0.02)
call ShowUnitHide(udg_DraggedUnit)
call PauseUnitBJ(true,udg_DraggedUnit)
call UnitAddAbilityBJ('A01T',udg_Dragger)
call PlaySoundOnUnitBJ(gg_snd_WolfriderYes4,100,udg_Dragger)
call TriggerSleepAction((3.00+(2.00*I2R(GetUnitAbilityLevelSwapped('A01N',udg_Dragger)))))
call PauseUnitBJ(false,udg_DraggedUnit)
call ShowUnitShow(udg_DraggedUnit)
call UnitRemoveAbilityBJ('A01T',udg_Dragger)
call SetUnitPositionLoc(udg_DraggedUnit,GetUnitLoc(udg_Dragger))
endfunction
function InitTrig_Drag takes nothing returns nothing
set gg_trg_Drag=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Drag,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_Drag,Condition(function Trig_Drag_Conditions))
call TriggerAddAction(gg_trg_Drag,function Trig_Drag_Actions)
endfunction
function Trig_Backstab_Conditions takes nothing returns boolean
if(not(IsUnitType(GetAttackedUnitBJ(),UNIT_TYPE_STRUCTURE)==false)) then
return false
endif
if(not(GetUnitAbilityLevelSwapped('A011',GetAttacker())>0)) then
return false
endif
if(not(RAbsBJ((GetUnitFacing(GetAttackedUnitBJ())-GetUnitFacing(GetAttacker())))<=85.00)) then
return false
endif
return true
endfunction
function Trig_Backstab_Actions takes nothing returns nothing
set udg_BSDam=(CosBJ(RAbsBJ((GetUnitFacing(GetAttackedUnitBJ())-GetUnitFacing(GetAttacker()))))*(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetAttacker(),true))*(0.50+(0.50*I2R(GetUnitAbilityLevelSwapped('A011',GetAttacker()))))))
call TriggerSleepAction(0.50)
call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),udg_BSDam,ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
endfunction
function InitTrig_Backstab takes nothing returns nothing
set gg_trg_Backstab=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Backstab,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Backstab,Condition(function Trig_Backstab_Conditions))
call TriggerAddAction(gg_trg_Backstab,function Trig_Backstab_Actions)
endfunction
function Trig_RDOff2_Func006C takes nothing returns boolean
if((GetTriggerUnit()==udg_RDTarget)) then
return true
endif
if((GetTriggerUnit()==udg_RDHero)) then
return true
endif
return false
endfunction
function Trig_RDOff2_Conditions takes nothing returns boolean
if(not Trig_RDOff2_Func006C()) then
return false
endif
return true
endfunction
function Trig_RDOff2_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(gg_trg_RDOff1)
call DisableTrigger(gg_trg_RDAcc)
call RemoveUnit(udg_RDDummy)
call UnitRemoveBuffBJ('B01Z',GetTriggerUnit())
endfunction
function InitTrig_RDOff2 takes nothing returns nothing
set gg_trg_RDOff2=CreateTrigger()
call DisableTrigger(gg_trg_RDOff2)
call TriggerRegisterAnyUnitEventBJ(gg_trg_RDOff2,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_RDOff2,Condition(function Trig_RDOff2_Conditions))
call TriggerAddAction(gg_trg_RDOff2,function Trig_RDOff2_Actions)
endfunction
function Trig_RDOff1_Conditions takes nothing returns boolean
if(not(GetOrderedUnit()==udg_RDHero)) then
return false
endif
return true
endfunction
function Trig_RDOff1_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(gg_trg_RDOff2)
call DisableTrigger(gg_trg_RDAcc)
call RemoveUnit(udg_RDDummy)
call UnitRemoveBuffBJ('B01Z',GetTriggerUnit())
endfunction
function InitTrig_RDOff1 takes nothing returns nothing
set gg_trg_RDOff1=CreateTrigger()
call DisableTrigger(gg_trg_RDOff1)
call TriggerRegisterAnyUnitEventBJ(gg_trg_RDOff1,EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER)
call TriggerRegisterAnyUnitEventBJ(gg_trg_RDOff1,EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER)
call TriggerRegisterAnyUnitEventBJ(gg_trg_RDOff1,EVENT_PLAYER_UNIT_ISSUED_ORDER)
call TriggerAddCondition(gg_trg_RDOff1,Condition(function Trig_RDOff1_Conditions))
call TriggerAddAction(gg_trg_RDOff1,function Trig_RDOff1_Actions)
endfunction
function Trig_RDAcc_Actions takes nothing returns nothing
call SetUnitAbilityLevelSwapped(udg_RDAbil,udg_RDDummy,(GetUnitAbilityLevelSwapped(udg_RDAbil,udg_RDDummy)+1))
call SetUnitPositionLoc(udg_RDDummy,GetUnitLoc(udg_RDHero))
endfunction
function InitTrig_RDAcc takes nothing returns nothing
set gg_trg_RDAcc=CreateTrigger()
call DisableTrigger(gg_trg_RDAcc)
call TriggerRegisterTimerEventPeriodic(gg_trg_RDAcc,1.00)
call TriggerAddAction(gg_trg_RDAcc,function Trig_RDAcc_Actions)
endfunction
function Trig_RDB_Func011C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A019',GetTriggerUnit())==4)) then
return false
endif
return true
endfunction
function Trig_RDB_Func012C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A019',GetTriggerUnit())==3)) then
return false
endif
return true
endfunction
function Trig_RDB_Func013C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A019',GetTriggerUnit())==2)) then
return false
endif
return true
endfunction
function Trig_RDB_Func014C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A019',GetTriggerUnit())==1)) then
return false
endif
return true
endfunction
function Trig_RDB_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A019')) then
return false
endif
return true
endfunction
function Trig_RDB_Actions takes nothing returns nothing
call IssueTargetOrderBJ(GetTriggerUnit(),"attack",GetSpellTargetUnit())
set udg_RDHero=GetTriggerUnit()
set udg_RDTarget=GetSpellTargetUnit()
call PlaySoundOnUnitBJ(gg_snd_WolfriderYes4,100,udg_RDHero)
call CreateNUnitsAtLoc(1,'e00C',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),bj_UNIT_FACING)
set udg_RDDummy=GetLastCreatedUnit()
call SetUnitPathing(GetLastCreatedUnit(),false)
call UnitAddAbilityBJ('Aloc',GetLastCreatedUnit())
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
if(Trig_RDB_Func011C()) then
call UnitAddAbilityBJ('A01J',GetLastCreatedUnit())
set udg_RDAbil='A01J'
else
call DoNothing()
endif
if(Trig_RDB_Func012C()) then
call UnitAddAbilityBJ('A01G',GetLastCreatedUnit())
set udg_RDAbil='A01G'
else
call DoNothing()
endif
if(Trig_RDB_Func013C()) then
call UnitAddAbilityBJ('A01B',GetLastCreatedUnit())
set udg_RDAbil='A01B'
else
call DoNothing()
endif
if(Trig_RDB_Func014C()) then
call UnitAddAbilityBJ('A01A',GetLastCreatedUnit())
set udg_RDAbil='A01A'
else
call DoNothing()
endif
call TriggerSleepAction(0.01)
call EnableTrigger(gg_trg_RDAcc)
call EnableTrigger(gg_trg_RDOff1)
call EnableTrigger(gg_trg_RDOff2)
endfunction
function InitTrig_RDB takes nothing returns nothing
set gg_trg_RDB=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_RDB,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_RDB,Condition(function Trig_RDB_Conditions))
call TriggerAddAction(gg_trg_RDB,function Trig_RDB_Actions)
endfunction
function Trig_Berserker_Rage_learned_Conditions takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A0BE')) then
return false
endif
return true
endfunction
function Trig_Berserker_Rage_learned_Actions takes nothing returns nothing
call SetUnitAbilityLevelSwapped('A09E',GetTriggerUnit(),GetUnitAbilityLevelSwapped('A0BE',GetTriggerUnit()))
endfunction
function InitTrig_Berserker_Rage_learned takes nothing returns nothing
set gg_trg_Berserker_Rage_learned=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Berserker_Rage_learned,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(gg_trg_Berserker_Rage_learned,Condition(function Trig_Berserker_Rage_learned_Conditions))
call TriggerAddAction(gg_trg_Berserker_Rage_learned,function Trig_Berserker_Rage_learned_Actions)
endfunction
function Trig_Berserker_Rage_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0BE')) then
return false
endif
return true
endfunction
function Trig_Berserker_Rage_Actions takes nothing returns nothing
call SetUnitAbilityLevelSwapped('A09E',GetTriggerUnit(),GetUnitAbilityLevelSwapped('A0BE',GetTriggerUnit()))
endfunction
function InitTrig_Berserker_Rage takes nothing returns nothing
set gg_trg_Berserker_Rage=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Berserker_Rage,EVENT_PLAYER_UNIT_SPELL_FINISH)
call TriggerRegisterAnyUnitEventBJ(gg_trg_Berserker_Rage,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_Berserker_Rage,Condition(function Trig_Berserker_Rage_Conditions))
call TriggerAddAction(gg_trg_Berserker_Rage,function Trig_Berserker_Rage_Actions)
endfunction
function Trig_Spider_Conditions takes nothing returns boolean
if(not(IsUnitIllusionBJ(GetTriggerUnit())==false)) then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())=='U006')) then
return false
endif
return true
endfunction
function Trig_Spider_Actions takes nothing returns nothing
set udg_Spider=GetTriggerUnit()
endfunction
function InitTrig_Spider takes nothing returns nothing
set gg_trg_Spider=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_Spider,GetEntireMapRect())
call TriggerAddCondition(gg_trg_Spider,Condition(function Trig_Spider_Conditions))
call TriggerAddAction(gg_trg_Spider,function Trig_Spider_Actions)
endfunction
function Trig_Spin_Web_Limit_Func004C takes nothing returns boolean
if(not(udg_WebInt<(GetUnitAbilityLevelSwapped('A0BG',GetSummoningUnit())*2))) then
return false
endif
return true
endfunction
function Trig_Spin_Web_Limit_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetSummonedUnit())=='o003')) then
return false
endif
return true
endfunction
function Trig_Spin_Web_Limit_Actions takes nothing returns nothing
call EnableTrigger(gg_trg_Spin_Web_Invis_Remove)
call SetUnitVertexColorBJ(GetSummonedUnit(),100,100,100,70.00)
call UnitAddAbilityBJ('Aloc',GetSummonedUnit())
if(Trig_Spin_Web_Limit_Func004C()) then
call KillUnit(udg_WebGroup[(udg_WebInt+1)])
set udg_WebInt=(udg_WebInt+1)
set udg_WebGroup[udg_WebInt]=GetTriggerUnit()
else
set udg_WebInt=1
call KillUnit(udg_WebGroup[udg_WebInt])
set udg_WebGroup[udg_WebInt]=GetTriggerUnit()
endif
endfunction
function InitTrig_Spin_Web_Limit takes nothing returns nothing
set gg_trg_Spin_Web_Limit=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Spin_Web_Limit,EVENT_PLAYER_UNIT_SUMMON)
call TriggerAddCondition(gg_trg_Spin_Web_Limit,Condition(function Trig_Spin_Web_Limit_Conditions))
call TriggerAddAction(gg_trg_Spin_Web_Limit,function Trig_Spin_Web_Limit_Actions)
endfunction
function Trig_Spin_Web_Invis_Remove_Func001C takes nothing returns boolean
if(not(UnitHasBuffBJ(udg_Spider,'B01C'))) then
return false
endif
return true
endfunction
function Trig_Spin_Web_Invis_Remove_Func002C takes nothing returns boolean
if(not(UnitHasBuffBJ(udg_Spider,'B01C')==false)) then
return false
endif
return true
endfunction
function Trig_Spin_Web_Invis_Remove_Actions takes nothing returns nothing
if(Trig_Spin_Web_Invis_Remove_Func001C()) then
call UnitAddAbilityBJ('A021',udg_Spider)
endif
if(Trig_Spin_Web_Invis_Remove_Func002C()) then
call UnitRemoveAbilityBJ('A021',udg_Spider)
endif
endfunction
function InitTrig_Spin_Web_Invis_Remove takes nothing returns nothing
set gg_trg_Spin_Web_Invis_Remove=CreateTrigger()
call DisableTrigger(gg_trg_Spin_Web_Invis_Remove)
call TriggerRegisterTimerEventPeriodic(gg_trg_Spin_Web_Invis_Remove,1.50)
call TriggerAddAction(gg_trg_Spin_Web_Invis_Remove,function Trig_Spin_Web_Invis_Remove_Actions)
endfunction
function Trig_Spirit_Bear_learned_Func002001002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==GetOwningPlayer(GetTriggerUnit()))
endfunction
function Trig_Spirit_Bear_learned_Func002001002002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Spirit_Bear_learned_Func002001002002002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==false)
endfunction
function Trig_Spirit_Bear_learned_Func002001002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Spirit_Bear_learned_Func002001002002001(),Trig_Spirit_Bear_learned_Func002001002002002())
endfunction
function Trig_Spirit_Bear_learned_Func002001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Spirit_Bear_learned_Func002001002001(),Trig_Spirit_Bear_learned_Func002001002002())
endfunction
function Trig_Spirit_Bear_learned_Func002Func001Func003C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A0A5',GetTriggerUnit())==2)) then
return false
endif
return true
endfunction
function Trig_Spirit_Bear_learned_Func002Func001Func004C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A0A5',GetTriggerUnit())==3)) then
return false
endif
return true
endfunction
function Trig_Spirit_Bear_learned_Func002Func001Func005C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A0A5',GetTriggerUnit())==4)) then
return false
endif
return true
endfunction
function Trig_Spirit_Bear_learned_Func002Func001Func010C takes nothing returns boolean
if((GetUnitTypeId(GetEnumUnit())=='n01C')) then
return true
endif
if((GetUnitTypeId(GetEnumUnit())=='n018')) then
return true
endif
if((GetUnitTypeId(GetEnumUnit())=='n004')) then
return true
endif
return false
endfunction
function Trig_Spirit_Bear_learned_Func002Func001C takes nothing returns boolean
if(not Trig_Spirit_Bear_learned_Func002Func001Func010C()) then
return false
endif
return true
endfunction
function Trig_Spirit_Bear_learned_Func002A takes nothing returns nothing
if(Trig_Spirit_Bear_learned_Func002Func001C()) then
set udg_BearPercentLife=GetUnitLifePercent(GetEnumUnit())
call RemoveUnit(GetEnumUnit())
if(Trig_Spirit_Bear_learned_Func002Func001Func003C()) then
call CreateNUnitsAtLoc(1,'n018',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),bj_UNIT_FACING)
call AddSpecialEffectTargetUnitBJ("chest",GetLastCreatedUnit(),"Abilities\\Spells\\Orc\\FeralSpirit\\feralspiritdone.mdl")
else
call DoNothing()
endif
if(Trig_Spirit_Bear_learned_Func002Func001Func004C()) then
call CreateNUnitsAtLoc(1,'n01C',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),bj_UNIT_FACING)
call AddSpecialEffectTargetUnitBJ("chest",GetLastCreatedUnit(),"Abilities\\Spells\\Orc\\FeralSpirit\\feralspiritdone.mdl")
else
call DoNothing()
endif
if(Trig_Spirit_Bear_learned_Func002Func001Func005C()) then
call CreateNUnitsAtLoc(1,'n01G',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),bj_UNIT_FACING)
call AddSpecialEffectTargetUnitBJ("chest",GetLastCreatedUnit(),"Abilities\\Spells\\Orc\\FeralSpirit\\feralspiritdone.mdl")
else
call DoNothing()
endif
call SetUnitAbilityLevelSwapped('A09Y',GetLastCreatedUnit(),GetUnitAbilityLevelSwapped('A0A5',udg_Yggrasil))
call SetUnitLifePercentBJ(GetLastCreatedUnit(),udg_BearPercentLife)
set udg_Bear=GetLastCreatedUnit()
else
call DoNothing()
endif
endfunction
function Trig_Spirit_Bear_learned_Conditions takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A0A5')) then
return false
endif
return true
endfunction
function Trig_Spirit_Bear_learned_Actions takes nothing returns nothing
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_Spirit_Bear_learned_Func002001002)),function Trig_Spirit_Bear_learned_Func002A)
endfunction
function InitTrig_Spirit_Bear_learned takes nothing returns nothing
set gg_trg_Spirit_Bear_learned=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Spirit_Bear_learned,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(gg_trg_Spirit_Bear_learned,Condition(function Trig_Spirit_Bear_learned_Conditions))
call TriggerAddAction(gg_trg_Spirit_Bear_learned,function Trig_Spirit_Bear_learned_Actions)
endfunction
function Trig_bear_dies_Func005Func001C takes nothing returns boolean
if(not(GetItemTypeId(GetEnumItem())!='IC69')) then
return false
endif
if(not(GetItemTypeId(GetEnumItem())!='I00L')) then
return false
endif
return true
endfunction
function Trig_bear_dies_Func005A takes nothing returns nothing
if(Trig_bear_dies_Func005Func001C()) then
call SetItemVisibleBJ(false,GetEnumItem())
else
call DoNothing()
endif
endfunction
function Trig_bear_dies_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_Bear)) then
return false
endif
return true
endfunction
function Trig_bear_dies_Actions takes nothing returns nothing
set bj_wantDestroyGroup=true
call SetHeroXP(udg_Yggrasil,(GetHeroXP(udg_Yggrasil)-(GetHeroXP(udg_Yggrasil)/(125-(25*GetUnitAbilityLevelSwapped('A0A5',udg_Yggrasil))))),false)
call UnitDamageTargetBJ(GetKillingUnitBJ(),udg_Yggrasil,(100.00*I2R(GetUnitAbilityLevelSwapped('A0A5',udg_Yggrasil))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
call EnumItemsInRectBJ(RectFromCenterSizeBJ(GetUnitLoc(GetTriggerUnit()),150.00,150.00),function Trig_bear_dies_Func005A)
set udg_Bear=null
endfunction
function InitTrig_bear_dies takes nothing returns nothing
set gg_trg_bear_dies=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_bear_dies,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_bear_dies,Condition(function Trig_bear_dies_Conditions))
call TriggerAddAction(gg_trg_bear_dies,function Trig_bear_dies_Actions)
endfunction
function Trig_druid_dies_Func002001002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==GetOwningPlayer(GetTriggerUnit()))
endfunction
function Trig_druid_dies_Func002001002002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_druid_dies_Func002001002002002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==false)
endfunction
function Trig_druid_dies_Func002001002002 takes nothing returns boolean
return GetBooleanAnd(Trig_druid_dies_Func002001002002001(),Trig_druid_dies_Func002001002002002())
endfunction
function Trig_druid_dies_Func002001002 takes nothing returns boolean
return GetBooleanAnd(Trig_druid_dies_Func002001002001(),Trig_druid_dies_Func002001002002())
endfunction
function Trig_druid_dies_Func002Func001Func002Func001C takes nothing returns boolean
if(not(GetItemTypeId(GetEnumItem())!='IC69')) then
return false
endif
if(not(GetItemTypeId(GetEnumItem())!='I00L')) then
return false
endif
return true
endfunction
function Trig_druid_dies_Func002Func001Func002A takes nothing returns nothing
if(Trig_druid_dies_Func002Func001Func002Func001C()) then
call SetItemVisibleBJ(false,GetEnumItem())
else
call DoNothing()
endif
endfunction
function Trig_druid_dies_Func002Func001C takes nothing returns boolean
if(not(GetUnitTypeId(GetEnumUnit())=='n01G')) then
return false
endif
return true
endfunction
function Trig_druid_dies_Func002A takes nothing returns nothing
if(Trig_druid_dies_Func002Func001C()) then
call KillUnit(GetEnumUnit())
call EnumItemsInRectBJ(RectFromCenterSizeBJ(GetUnitLoc(GetTriggerUnit()),150.00,150.00),function Trig_druid_dies_Func002Func001Func002A)
else
call KillUnit(GetEnumUnit())
endif
endfunction
function Trig_druid_dies_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_Yggrasil)) then
return false
endif
return true
endfunction
function Trig_druid_dies_Actions takes nothing returns nothing
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_druid_dies_Func002001002)),function Trig_druid_dies_Func002A)
endfunction
function InitTrig_druid_dies takes nothing returns nothing
set gg_trg_druid_dies=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_druid_dies,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_druid_dies,Condition(function Trig_druid_dies_Conditions))
call TriggerAddAction(gg_trg_druid_dies,function Trig_druid_dies_Actions)
endfunction
function Trig_synergy_learned_Conditions takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A0A8')) then
return false
endif
return true
endfunction
function Trig_synergy_learned_Actions takes nothing returns nothing
call SetPlayerTechResearchedSwap('R000',(GetPlayerTechCountSimple('R000',GetOwningPlayer(GetTriggerUnit()))+1),GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechResearchedSwap('R001',(GetPlayerTechCountSimple('R001',GetOwningPlayer(GetTriggerUnit()))+1),GetOwningPlayer(GetTriggerUnit()))
endfunction
function InitTrig_synergy_learned takes nothing returns nothing
set gg_trg_synergy_learned=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_synergy_learned,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(gg_trg_synergy_learned,Condition(function Trig_synergy_learned_Conditions))
call TriggerAddAction(gg_trg_synergy_learned,function Trig_synergy_learned_Actions)
endfunction
function Trig_lone_druid_bonus_learned_Conditions takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A0AJ')) then
return false
endif
return true
endfunction
function Trig_lone_druid_bonus_learned_Actions takes nothing returns nothing
call ModifyHeroStat(bj_HEROSTAT_STR,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,2)
call ModifyHeroStat(bj_HEROSTAT_AGI,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,2)
call ModifyHeroStat(bj_HEROSTAT_INT,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,2)
endfunction
function InitTrig_lone_druid_bonus_learned takes nothing returns nothing
set gg_trg_lone_druid_bonus_learned=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_lone_druid_bonus_learned,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(gg_trg_lone_druid_bonus_learned,Condition(function Trig_lone_druid_bonus_learned_Conditions))
call TriggerAddAction(gg_trg_lone_druid_bonus_learned,function Trig_lone_druid_bonus_learned_Actions)
endfunction
function Trig_remove_spawned_unit_Func001C takes nothing returns boolean
if(not(GetUnitTypeId(GetSummonedUnit())=='n00A')) then
return false
endif
return true
endfunction
function Trig_remove_spawned_unit_Func002C takes nothing returns boolean
if(not(GetUnitTypeId(GetSummonedUnit())=='e00F')) then
return false
endif
return true
endfunction
function Trig_remove_spawned_unit_Actions takes nothing returns nothing
if(Trig_remove_spawned_unit_Func001C()) then
call PolledWait(5.00)
call RemoveUnit(GetSummonedUnit())
else
call DoNothing()
endif
if(Trig_remove_spawned_unit_Func002C()) then
call RemoveUnit(GetSummonedUnit())
else
call DoNothing()
endif
endfunction
function InitTrig_remove_spawned_unit takes nothing returns nothing
set gg_trg_remove_spawned_unit=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_remove_spawned_unit,EVENT_PLAYER_UNIT_SUMMON)
call TriggerAddAction(gg_trg_remove_spawned_unit,function Trig_remove_spawned_unit_Actions)
endfunction
function Trig_Summon_Spirit_Bear_Func003001002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==GetOwningPlayer(GetTriggerUnit()))
endfunction
function Trig_Summon_Spirit_Bear_Func003001002002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==false)
endfunction
function Trig_Summon_Spirit_Bear_Func003001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Summon_Spirit_Bear_Func003001002001(),Trig_Summon_Spirit_Bear_Func003001002002())
endfunction
function Trig_Summon_Spirit_Bear_Func003Func001Func003C takes nothing returns boolean
if((GetUnitTypeId(GetEnumUnit())=='n01G')) then
return true
endif
if((GetUnitTypeId(GetEnumUnit())=='n01C')) then
return true
endif
if((GetUnitTypeId(GetEnumUnit())=='n018')) then
return true
endif
if((GetUnitTypeId(GetEnumUnit())=='n004')) then
return true
endif
return false
endfunction
function Trig_Summon_Spirit_Bear_Func003Func001C takes nothing returns boolean
if(not Trig_Summon_Spirit_Bear_Func003Func001Func003C()) then
return false
endif
return true
endfunction
function Trig_Summon_Spirit_Bear_Func003A takes nothing returns nothing
if(Trig_Summon_Spirit_Bear_Func003Func001C()) then
set udg_HaveABear=true
else
call DoNothing()
endif
endfunction
function Trig_Summon_Spirit_Bear_Func005C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A0A5',GetTriggerUnit())==1)) then
return false
endif
if(not(udg_HaveABear==false)) then
return false
endif
return true
endfunction
function Trig_Summon_Spirit_Bear_Func006C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A0A5',GetTriggerUnit())==2)) then
return false
endif
if(not(udg_HaveABear==false)) then
return false
endif
return true
endfunction
function Trig_Summon_Spirit_Bear_Func007C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A0A5',GetTriggerUnit())==3)) then
return false
endif
if(not(udg_HaveABear==false)) then
return false
endif
return true
endfunction
function Trig_Summon_Spirit_Bear_Func008Func003Func001C takes nothing returns boolean
if(not(IsItemHiddenBJ(GetEnumItem())==true)) then
return false
endif
return true
endfunction
function Trig_Summon_Spirit_Bear_Func008Func003A takes nothing returns nothing
if(Trig_Summon_Spirit_Bear_Func008Func003Func001C()) then
call SetItemVisibleBJ(true,GetEnumItem())
call UnitAddItemSwapped(GetEnumItem(),udg_Bear)
else
call DoNothing()
endif
endfunction
function Trig_Summon_Spirit_Bear_Func008C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A0A5',GetTriggerUnit())==4)) then
return false
endif
if(not(udg_HaveABear==false)) then
return false
endif
return true
endfunction
function Trig_Summon_Spirit_Bear_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0A5')) then
return false
endif
return true
endfunction
function Trig_Summon_Spirit_Bear_Actions takes nothing returns nothing
set bj_wantDestroyGroup=true
set udg_HaveABear=false
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_Summon_Spirit_Bear_Func003001002)),function Trig_Summon_Spirit_Bear_Func003A)
call TriggerSleepAction(0.01)
if(Trig_Summon_Spirit_Bear_Func005C()) then
call CreateNUnitsAtLoc(1,'n004',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),bj_UNIT_FACING)
set udg_Bear=GetLastCreatedUnit()
call AddSpecialEffectTargetUnitBJ("chest",GetLastCreatedUnit(),"Abilities\\Spells\\Orc\\FeralSpirit\\feralspiritdone.mdl")
else
call DoNothing()
endif
if(Trig_Summon_Spirit_Bear_Func006C()) then
call CreateNUnitsAtLoc(1,'n018',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),bj_UNIT_FACING)
set udg_Bear=GetLastCreatedUnit()
call AddSpecialEffectTargetUnitBJ("chest",GetLastCreatedUnit(),"Abilities\\Spells\\Orc\\FeralSpirit\\feralspiritdone.mdl")
else
call DoNothing()
endif
if(Trig_Summon_Spirit_Bear_Func007C()) then
call CreateNUnitsAtLoc(1,'n01C',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),bj_UNIT_FACING)
set udg_Bear=GetLastCreatedUnit()
call AddSpecialEffectTargetUnitBJ("chest",GetLastCreatedUnit(),"Abilities\\Spells\\Orc\\FeralSpirit\\feralspiritdone.mdl")
else
call DoNothing()
endif
if(Trig_Summon_Spirit_Bear_Func008C()) then
call CreateNUnitsAtLoc(1,'n01G',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),bj_UNIT_FACING)
set udg_Bear=GetLastCreatedUnit()
call EnumItemsInRectBJ(GetPlayableMapRect(),function Trig_Summon_Spirit_Bear_Func008Func003A)
call AddSpecialEffectTargetUnitBJ("chest",GetLastCreatedUnit(),"Abilities\\Spells\\Orc\\FeralSpirit\\feralspiritdone.mdl")
else
call DoNothing()
endif
call SetUnitAbilityLevelSwapped('A09Y',GetLastCreatedUnit(),GetUnitAbilityLevelSwapped('A0A5',udg_Yggrasil))
endfunction
function InitTrig_Summon_Spirit_Bear takes nothing returns nothing
set gg_trg_Summon_Spirit_Bear=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Summon_Spirit_Bear,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_Summon_Spirit_Bear,Condition(function Trig_Summon_Spirit_Bear_Conditions))
call TriggerAddAction(gg_trg_Summon_Spirit_Bear,function Trig_Summon_Spirit_Bear_Actions)
endfunction
function Trig_Yggrasil_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='N01O')) then
return false
endif
return true
endfunction
function Trig_Yggrasil_Actions takes nothing returns nothing
set udg_Yggrasil=GetTriggerUnit()
call EnableTrigger(gg_trg_too_far)
endfunction
function InitTrig_Yggrasil takes nothing returns nothing
set gg_trg_Yggrasil=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_Yggrasil,GetEntireMapRect())
call TriggerAddCondition(gg_trg_Yggrasil,Condition(function Trig_Yggrasil_Conditions))
call TriggerAddAction(gg_trg_Yggrasil,function Trig_Yggrasil_Actions)
endfunction
function Trig_too_far_Conditions takes nothing returns boolean
if(not(GetAttacker()==udg_Bear)) then
return false
endif
if(not(DistanceBetweenPoints(GetUnitLoc(udg_Bear),GetUnitLoc(udg_Yggrasil))>=1500.00)) then
return false
endif
return true
endfunction
function Trig_too_far_Actions takes nothing returns nothing
call TriggerExecute(gg_trg_Return)
endfunction
function InitTrig_too_far takes nothing returns nothing
set gg_trg_too_far=CreateTrigger()
call DisableTrigger(gg_trg_too_far)
call TriggerRegisterAnyUnitEventBJ(gg_trg_too_far,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_too_far,Condition(function Trig_too_far_Conditions))
call TriggerAddAction(gg_trg_too_far,function Trig_too_far_Actions)
endfunction
function Trig_Return_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0A7')) then
return false
endif
return true
endfunction
function Trig_Return_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(udg_Bear),"Abilities\\Spells\\NightElf\\Blink\\BlinkTarget.mdl")
call SetUnitPositionLocFacingLocBJ(udg_Bear,PolarProjectionBJ(GetUnitLoc(udg_Yggrasil),GetRandomReal(25.00,50.00),GetRandomDirectionDeg()),GetUnitLoc(udg_Yggrasil))
call AddSpecialEffectTargetUnitBJ("overhead",udg_Bear,"Abilities\\Spells\\NightElf\\Blink\\BlinkCaster.mdl")
endfunction
function InitTrig_Return takes nothing returns nothing
set gg_trg_Return=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Return,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_Return,Condition(function Trig_Return_Conditions))
call TriggerAddAction(gg_trg_Return,function Trig_Return_Actions)
endfunction
function Trig_sunder_switch_Func001C takes nothing returns boolean
if(not(GetSpellTargetUnit()==udg_SunderTargets[1])) then
return false
endif
return true
endfunction
function Trig_sunder_switch_Func002Func002C takes nothing returns boolean
if(not(GetUnitLifePercent(udg_SunderTargets[2])<33.00)) then
return false
endif
if(not(GetUnitAbilityLevelSwapped('A07Q',udg_SunderTargets[1])==1)) then
return false
endif
return true
endfunction
function Trig_sunder_switch_Func002Func003C takes nothing returns boolean
if(not(GetUnitLifePercent(udg_SunderTargets[2])<28.00)) then
return false
endif
if(not(GetUnitAbilityLevelSwapped('A07Q',udg_SunderTargets[1])==2)) then
return false
endif
return true
endfunction
function Trig_sunder_switch_Func002Func004C takes nothing returns boolean
if(not(GetUnitLifePercent(udg_SunderTargets[2])<23.00)) then
return false
endif
if(not(GetUnitAbilityLevelSwapped('A07Q',udg_SunderTargets[1])==3)) then
return false
endif
return true
endfunction
function Trig_sunder_switch_Func002C takes nothing returns boolean
if(not(GetSpellTargetUnit()==udg_SunderTargets[2])) then
return false
endif
return true
endfunction
function Trig_sunder_switch_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A07R')) then
return false
endif
return true
endfunction
function Trig_sunder_switch_Actions takes nothing returns nothing
if(Trig_sunder_switch_Func001C()) then
call SetUnitLifePercentBJ(udg_SunderTargets[1],udg_SunderPercentLife[2])
else
call DoNothing()
endif
if(Trig_sunder_switch_Func002C()) then
call SetUnitLifePercentBJ(udg_SunderTargets[2],udg_SunderPercentLife[1])
if(Trig_sunder_switch_Func002Func002C()) then
call SetUnitLifePercentBJ(udg_SunderTargets[2],33.00)
else
call DoNothing()
endif
if(Trig_sunder_switch_Func002Func003C()) then
call SetUnitLifePercentBJ(udg_SunderTargets[2],28.00)
else
call DoNothing()
endif
if(Trig_sunder_switch_Func002Func004C()) then
call SetUnitLifePercentBJ(udg_SunderTargets[2],23.00)
else
call DoNothing()
endif
else
call DoNothing()
endif
endfunction
function InitTrig_sunder_switch takes nothing returns nothing
set gg_trg_sunder_switch=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_sunder_switch,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_sunder_switch,Condition(function Trig_sunder_switch_Conditions))
call TriggerAddAction(gg_trg_sunder_switch,function Trig_sunder_switch_Actions)
endfunction
function Trig_Sunder_begin_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A07Q')) then
return false
endif
return true
endfunction
function Trig_Sunder_begin_Actions takes nothing returns nothing
set udg_SunderTargets[1]=GetTriggerUnit()
set udg_SunderTargets[2]=GetSpellTargetUnit()
set udg_SunderPercentLife[1]=GetUnitLifePercent(udg_SunderTargets[1])
set udg_SunderPercentLife[2]=GetUnitLifePercent(udg_SunderTargets[2])
call CreateNUnitsAtLoc(1,'e00C',GetOwningPlayer(udg_SunderTargets[1]),GetUnitLoc(udg_SunderTargets[1]),bj_UNIT_FACING)
call UnitAddAbilityBJ('A07R',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"thunderbolt",udg_SunderTargets[2])
call UnitApplyTimedLifeBJ(10.00,'BTLF',GetLastCreatedUnit())
call SetUnitPathing(GetLastCreatedUnit(),false)
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call UnitAddAbilityBJ('Aloc',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e00C',GetOwningPlayer(udg_SunderTargets[2]),GetUnitLoc(udg_SunderTargets[2]),bj_UNIT_FACING)
call UnitAddAbilityBJ('A07R',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"thunderbolt",udg_SunderTargets[1])
call UnitApplyTimedLifeBJ(10.00,'BTLF',GetLastCreatedUnit())
call SetUnitPathing(GetLastCreatedUnit(),false)
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call UnitAddAbilityBJ('Aloc',GetLastCreatedUnit())
endfunction
function InitTrig_Sunder_begin takes nothing returns nothing
set gg_trg_Sunder_begin=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Sunder_begin,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_Sunder_begin,Condition(function Trig_Sunder_begin_Conditions))
call TriggerAddAction(gg_trg_Sunder_begin,function Trig_Sunder_begin_Actions)
endfunction
function Trig_land_mines_limit_Func008C takes nothing returns boolean
if((GetUnitTypeId(GetTriggerUnit())=='n00O')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='n00P')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='n00Q')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='n00N')) then
return true
endif
return false
endfunction
function Trig_land_mines_limit_Func006001002001001 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00O')
endfunction
function Trig_land_mines_limit_Func006001002001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00P')
endfunction
function Trig_land_mines_limit_Func006001002001 takes nothing returns boolean
return GetBooleanOr(Trig_land_mines_limit_Func006001002001001(),Trig_land_mines_limit_Func006001002001002())
endfunction
function Trig_land_mines_limit_Func006001002002001 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00Q')
endfunction
function Trig_land_mines_limit_Func006001002002002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00N')
endfunction
function Trig_land_mines_limit_Func006001002002 takes nothing returns boolean
return GetBooleanOr(Trig_land_mines_limit_Func006001002002001(),Trig_land_mines_limit_Func006001002002002())
endfunction
function Trig_land_mines_limit_Func006001002 takes nothing returns boolean
return GetBooleanOr(Trig_land_mines_limit_Func006001002001(),Trig_land_mines_limit_Func006001002002())
endfunction
function Trig_land_mines_limit_Func006A takes nothing returns nothing
set udg_GMTot=(udg_GMTot+1)
endfunction
function Trig_land_mines_limit_Func007Func003Func001C takes nothing returns boolean
if(not(R2I(TimerGetRemaining(udg_GMTimer[GetForLoopIndexA()]))<udg_GMT2B)) then
return false
endif
if(not(IsUnitDeadBJ(udg_GMUnit[GetForLoopIndexA()])==false)) then
return false
endif
return true
endfunction
function Trig_land_mines_limit_Func007C takes nothing returns boolean
if(not(udg_GMTot>16)) then
return false
endif
return true
endfunction
function Trig_land_mines_limit_Conditions takes nothing returns boolean
if(not Trig_land_mines_limit_Func008C()) then
return false
endif
return true
endfunction
function Trig_land_mines_limit_Actions takes nothing returns nothing
set bj_wantDestroyGroup=true
set udg_GMTot=0
set udg_GMCount=(udg_GMCount+1)
call StartTimerBJ(udg_GMTimer[udg_GMCount],false,15000.00)
set udg_GMUnit[udg_GMCount]=GetTriggerUnit()
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_land_mines_limit_Func006001002)),function Trig_land_mines_limit_Func006A)
if(Trig_land_mines_limit_Func007C()) then
set udg_GMT2B=99999
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_GMCount
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_land_mines_limit_Func007Func003Func001C()) then
set udg_GMOldest=udg_GMUnit[GetForLoopIndexA()]
set udg_GMT2B=R2I(TimerGetRemaining(udg_GMTimer[GetForLoopIndexA()]))
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ExplodeUnitBJ(udg_GMOldest)
else
call DoNothing()
endif
endfunction
function InitTrig_land_mines_limit takes nothing returns nothing
set gg_trg_land_mines_limit=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_land_mines_limit,GetEntireMapRect())
call TriggerAddCondition(gg_trg_land_mines_limit,Condition(function Trig_land_mines_limit_Conditions))
call TriggerAddAction(gg_trg_land_mines_limit,function Trig_land_mines_limit_Actions)
endfunction
function Trig_double_edge_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A00L')) then
return false
endif
return true
endfunction
function Trig_double_edge_Actions takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetTriggerUnit(),(75.00*I2R(GetUnitAbilityLevelSwapped('A00L',GetTriggerUnit()))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_ENHANCED)
endfunction
function InitTrig_double_edge takes nothing returns nothing
set gg_trg_double_edge=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_double_edge,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_double_edge,Condition(function Trig_double_edge_Conditions))
call TriggerAddAction(gg_trg_double_edge,function Trig_double_edge_Actions)
endfunction
function Trig_death_pact_Func001C takes nothing returns boolean
if(not(GetSpellAbilityId()=='A04Q')) then
return false
endif
return true
endfunction
function Trig_death_pact_Func002C takes nothing returns boolean
if(not(GetSpellAbilityId()=='A053')) then
return false
endif
return true
endfunction
function Trig_death_pact_Func003C takes nothing returns boolean
if(not(GetSpellAbilityId()=='A08L')) then
return false
endif
return true
endfunction
function Trig_death_pact_Actions takes nothing returns nothing
if(Trig_death_pact_Func001C()) then
call SetUnitLifeBJ(GetTriggerUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit())+(GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellTargetUnit())*(0.15+(I2R(GetUnitAbilityLevelSwapped('A04Q',GetTriggerUnit()))*0.40)))))
call KillUnit(GetSpellTargetUnit())
else
call DoNothing()
endif
if(Trig_death_pact_Func002C()) then
call SetUnitManaBJ(GetTriggerUnit(),(GetUnitStateSwap(UNIT_STATE_MANA,GetTriggerUnit())+(GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellTargetUnit())*(I2R(GetUnitAbilityLevelSwapped('A053',GetTriggerUnit()))*0.15))))
call KillUnit(GetSpellTargetUnit())
else
call DoNothing()
endif
if(Trig_death_pact_Func003C()) then
call SetUnitManaBJ(GetTriggerUnit(),(GetUnitStateSwap(UNIT_STATE_MANA,GetTriggerUnit())+(GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellTargetUnit())*0.15)))
call SetUnitLifeBJ(GetTriggerUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit())+(GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellTargetUnit())*0.85)))
call KillUnit(GetSpellTargetUnit())
else
call DoNothing()
endif
endfunction
function InitTrig_death_pact takes nothing returns nothing
set gg_trg_death_pact=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_death_pact,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddAction(gg_trg_death_pact,function Trig_death_pact_Actions)
endfunction
function Trig_static_field_Func003001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_static_field_Func003001003002001 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function Trig_static_field_Func003001003002002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_static_field_Func003001003002002002001001 takes nothing returns boolean
return(UnitHasBuffBJ(GetFilterUnit(),'B02J')==false)
endfunction
function Trig_static_field_Func003001003002002002001002001 takes nothing returns boolean
return(UnitHasBuffBJ(GetFilterUnit(),'BUsp')==false)
endfunction
function Trig_static_field_Func003001003002002002001002002001 takes nothing returns boolean
return(UnitHasBuffBJ(GetFilterUnit(),'BUst')==false)
endfunction
function Trig_static_field_Func003001003002002002001002002002001 takes nothing returns boolean
return(UnitHasBuffBJ(GetFilterUnit(),'Bcyc')==false)
endfunction
function Trig_static_field_Func003001003002002002001002002002002 takes nothing returns boolean
return(UnitHasBuffBJ(GetFilterUnit(),'Bcy2')==false)
endfunction
function Trig_static_field_Func003001003002002002001002002002 takes nothing returns boolean
return GetBooleanAnd(Trig_static_field_Func003001003002002002001002002002001(),Trig_static_field_Func003001003002002002001002002002002())
endfunction
function Trig_static_field_Func003001003002002002001002002 takes nothing returns boolean
return GetBooleanAnd(Trig_static_field_Func003001003002002002001002002001(),Trig_static_field_Func003001003002002002001002002002())
endfunction
function Trig_static_field_Func003001003002002002001002 takes nothing returns boolean
return GetBooleanAnd(Trig_static_field_Func003001003002002002001002001(),Trig_static_field_Func003001003002002002001002002())
endfunction
function Trig_static_field_Func003001003002002002001 takes nothing returns boolean
return GetBooleanAnd(Trig_static_field_Func003001003002002002001001(),Trig_static_field_Func003001003002002002001002())
endfunction
function Trig_static_field_Func003001003002002002002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())!='n00L')
endfunction
function Trig_static_field_Func003001003002002002 takes nothing returns boolean
return GetBooleanAnd(Trig_static_field_Func003001003002002002001(),Trig_static_field_Func003001003002002002002())
endfunction
function Trig_static_field_Func003001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_static_field_Func003001003002002001(),Trig_static_field_Func003001003002002002())
endfunction
function Trig_static_field_Func003001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_static_field_Func003001003002001(),Trig_static_field_Func003001003002002())
endfunction
function Trig_static_field_Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_static_field_Func003001003001(),Trig_static_field_Func003001003002())
endfunction
function Trig_static_field_Func003A takes nothing returns nothing
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())*udg_BSDam))
endfunction
function Trig_static_field_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A01X')) then
return false
endif
return true
endfunction
function Trig_static_field_Actions takes nothing returns nothing
set bj_wantDestroyGroup=true
set udg_BSDam=(0.95-(0.02*I2R(GetUnitAbilityLevelSwapped('A01X',GetTriggerUnit()))))
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,GetUnitLoc(GetTriggerUnit()),Condition(function Trig_static_field_Func003001003)),function Trig_static_field_Func003A)
endfunction
function InitTrig_static_field takes nothing returns nothing
set gg_trg_static_field=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_static_field,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_static_field,Condition(function Trig_static_field_Conditions))
call TriggerAddAction(gg_trg_static_field,function Trig_static_field_Actions)
endfunction
function Trig_track_Conditions takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A00F',GetKillingUnitBJ())>0)) then
return false
endif
if(not(IsUnitType(GetDyingUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
return true
endfunction
function Trig_track_Actions takes nothing returns nothing
call SetPlayerStateBJ(GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)+(50*GetUnitAbilityLevelSwapped('A00F',GetKillingUnitBJ()))))
call CreateTextTagUnitBJ(("+"+I2S((GetUnitAbilityLevelSwapped('A00F',GetKillingUnitBJ())*50))),GetDyingUnit(),0,10,90.00,84.00,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call PolledWait(2.00)
call DestroyTextTagBJ(GetLastCreatedTextTag())
endfunction
function InitTrig_track takes nothing returns nothing
set gg_trg_track=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_track,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_track,Condition(function Trig_track_Conditions))
call TriggerAddAction(gg_trg_track,function Trig_track_Actions)
endfunction
function Trig_return_Conditions takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A00V',GetAttackedUnitBJ())>0)) then
return false
endif
return true
endfunction
function Trig_return_Actions takes nothing returns nothing
call UnitDamageTargetBJ(GetAttackedUnitBJ(),GetAttacker(),(5.00*I2R(GetUnitAbilityLevelSwapped('A00V',GetAttackedUnitBJ()))),ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL)
endfunction
function InitTrig_return takes nothing returns nothing
set gg_trg_return=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_return,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_return,Condition(function Trig_return_Conditions))
call TriggerAddAction(gg_trg_return,function Trig_return_Actions)
endfunction
function Trig_beam_counter_Func003C takes nothing returns boolean
if((GetSpellAbilityId()=='A054')) then
return true
endif
if((GetSpellAbilityId()=='A042')) then
return true
endif
return false
endfunction
function Trig_beam_counter_Conditions takes nothing returns boolean
if(not Trig_beam_counter_Func003C()) then
return false
endif
return true
endfunction
function Trig_beam_counter_Actions takes nothing returns nothing
set udg_BeamCounter=(udg_BeamCounter+1)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("|c0000ffffBeam Counter: "+(I2S(udg_BeamCounter)+"|r")))
endfunction
function InitTrig_beam_counter takes nothing returns nothing
set gg_trg_beam_counter=CreateTrigger()
call DisableTrigger(gg_trg_beam_counter)
call TriggerRegisterAnyUnitEventBJ(gg_trg_beam_counter,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_beam_counter,Condition(function Trig_beam_counter_Conditions))
call TriggerAddAction(gg_trg_beam_counter,function Trig_beam_counter_Actions)
endfunction
function Trig_beam_counter_on_Actions takes nothing returns nothing
call EnableTrigger(gg_trg_beam_counter)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function InitTrig_beam_counter_on takes nothing returns nothing
set gg_trg_beam_counter_on=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_beam_counter_on,Player(1),"-beamcounter",true)
call TriggerRegisterPlayerChatEvent(gg_trg_beam_counter_on,Player(2),"-beamcounter",true)
call TriggerRegisterPlayerChatEvent(gg_trg_beam_counter_on,Player(3),"-beamcounter",true)
call TriggerRegisterPlayerChatEvent(gg_trg_beam_counter_on,Player(4),"-beamcounter",true)
call TriggerRegisterPlayerChatEvent(gg_trg_beam_counter_on,Player(5),"-beamcounter",true)
call TriggerRegisterPlayerChatEvent(gg_trg_beam_counter_on,Player(7),"-beamcounter",true)
call TriggerRegisterPlayerChatEvent(gg_trg_beam_counter_on,Player(8),"-beamcounter",true)
call TriggerRegisterPlayerChatEvent(gg_trg_beam_counter_on,Player(9),"-beamcounter",true)
call TriggerRegisterPlayerChatEvent(gg_trg_beam_counter_on,Player(10),"-beamcounter",true)
call TriggerRegisterPlayerChatEvent(gg_trg_beam_counter_on,Player(11),"-beamcounter",true)
call TriggerAddAction(gg_trg_beam_counter_on,function Trig_beam_counter_on_Actions)
endfunction
function Trig_refresh_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A02W')) then
return false
endif
return true
endfunction
function Trig_refresh_Actions takes nothing returns nothing
call UnitResetCooldown(GetTriggerUnit())
endfunction
function InitTrig_refresh takes nothing returns nothing
set gg_trg_refresh=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_refresh,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_refresh,Condition(function Trig_refresh_Conditions))
call TriggerAddAction(gg_trg_refresh,function Trig_refresh_Actions)
endfunction
function Trig_detonate_Func003001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='o018')
endfunction
function Trig_detonate_Func003A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'e00C',GetOwningPlayer(udg_Techies),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call SetUnitPathing(GetLastCreatedUnit(),false)
call UnitAddAbilityBJ('Aloc',GetLastCreatedUnit())
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call UnitAddAbilityBJ('A036',GetLastCreatedUnit())
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"inferno",GetUnitLoc(GetEnumUnit()))
call UnitApplyTimedLifeBJ(2.00,'BTLF',GetLastCreatedUnit())
call ExplodeUnitBJ(GetEnumUnit())
endfunction
function Trig_detonate_Func004001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='o015')
endfunction
function Trig_detonate_Func004A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'e00C',GetOwningPlayer(udg_Techies),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call SetUnitPathing(GetLastCreatedUnit(),false)
call UnitAddAbilityBJ('Aloc',GetLastCreatedUnit())
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call UnitAddAbilityBJ('A036',GetLastCreatedUnit())
call SetUnitAbilityLevelSwapped('A036',GetLastCreatedUnit(),2)
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"inferno",GetUnitLoc(GetEnumUnit()))
call UnitApplyTimedLifeBJ(2.00,'BTLF',GetLastCreatedUnit())
call ExplodeUnitBJ(GetEnumUnit())
endfunction
function Trig_detonate_Func005001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='o019')
endfunction
function Trig_detonate_Func005A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'e00C',GetOwningPlayer(udg_Techies),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call SetUnitPathing(GetLastCreatedUnit(),false)
call UnitAddAbilityBJ('Aloc',GetLastCreatedUnit())
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call UnitAddAbilityBJ('A036',GetLastCreatedUnit())
call SetUnitAbilityLevelSwapped('A036',GetLastCreatedUnit(),3)
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"inferno",GetUnitLoc(GetEnumUnit()))
call UnitApplyTimedLifeBJ(2.00,'BTLF',GetLastCreatedUnit())
call ExplodeUnitBJ(GetEnumUnit())
endfunction
function Trig_detonate_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A02T')) then
return false
endif
return true
endfunction
function Trig_detonate_Actions takes nothing returns nothing
set bj_wantDestroyGroup=true
set udg_Techies=GetTriggerUnit()
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_detonate_Func003001002)),function Trig_detonate_Func003A)
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_detonate_Func004001002)),function Trig_detonate_Func004A)
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_detonate_Func005001002)),function Trig_detonate_Func005A)
endfunction
function InitTrig_detonate takes nothing returns nothing
set gg_trg_detonate=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_detonate,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_detonate,Condition(function Trig_detonate_Conditions))
call TriggerAddAction(gg_trg_detonate,function Trig_detonate_Actions)
endfunction
function Trig_detonate_given_Conditions takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A0AK')) then
return false
endif
return true
endfunction
function Trig_detonate_given_Actions takes nothing returns nothing
call UnitAddAbilityBJ('A02T',GetTriggerUnit())
endfunction
function InitTrig_detonate_given takes nothing returns nothing
set gg_trg_detonate_given=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_detonate_given,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(gg_trg_detonate_given,Condition(function Trig_detonate_given_Conditions))
call TriggerAddAction(gg_trg_detonate_given,function Trig_detonate_given_Actions)
endfunction
function Trig_detonate_1_Func004C takes nothing returns boolean
if((GetSpellAbilityId()=='A0AM')) then
return true
endif
if((GetSpellAbilityId()=='A0A3')) then
return true
endif
if((GetSpellAbilityId()=='A0A4')) then
return true
endif
return false
endfunction
function Trig_detonate_1_Func001C takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0AM')) then
return false
endif
return true
endfunction
function Trig_detonate_1_Func002C takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0A3')) then
return false
endif
return true
endfunction
function Trig_detonate_1_Func003C takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0A4')) then
return false
endif
return true
endfunction
function Trig_detonate_1_Conditions takes nothing returns boolean
if(not Trig_detonate_1_Func004C()) then
return false
endif
return true
endfunction
function Trig_detonate_1_Actions takes nothing returns nothing
if(Trig_detonate_1_Func001C()) then
call CreateNUnitsAtLoc(1,'e00C',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),bj_UNIT_FACING)
call SetUnitPathing(GetLastCreatedUnit(),false)
call UnitAddAbilityBJ('Aloc',GetLastCreatedUnit())
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call UnitAddAbilityBJ('A036',GetLastCreatedUnit())
call SetUnitAbilityLevelSwapped('A036',GetLastCreatedUnit(),1)
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"inferno",GetUnitLoc(GetTriggerUnit()))
call UnitApplyTimedLifeBJ(2.00,'BTLF',GetLastCreatedUnit())
call ExplodeUnitBJ(GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_detonate_1_Func002C()) then
call CreateNUnitsAtLoc(1,'e00C',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),bj_UNIT_FACING)
call SetUnitPathing(GetLastCreatedUnit(),false)
call UnitAddAbilityBJ('Aloc',GetLastCreatedUnit())
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call UnitAddAbilityBJ('A036',GetLastCreatedUnit())
call SetUnitAbilityLevelSwapped('A036',GetLastCreatedUnit(),2)
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"inferno",GetUnitLoc(GetTriggerUnit()))
call UnitApplyTimedLifeBJ(2.00,'BTLF',GetLastCreatedUnit())
call ExplodeUnitBJ(GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_detonate_1_Func003C()) then
call CreateNUnitsAtLoc(1,'e00C',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),bj_UNIT_FACING)
call SetUnitPathing(GetLastCreatedUnit(),false)
call UnitAddAbilityBJ('Aloc',GetLastCreatedUnit())
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call UnitAddAbilityBJ('A036',GetLastCreatedUnit())
call SetUnitAbilityLevelSwapped('A036',GetLastCreatedUnit(),3)
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"inferno",GetUnitLoc(GetTriggerUnit()))
call UnitApplyTimedLifeBJ(2.00,'BTLF',GetLastCreatedUnit())
call ExplodeUnitBJ(GetTriggerUnit())
else
call DoNothing()
endif
endfunction
function InitTrig_detonate_1 takes nothing returns nothing
set gg_trg_detonate_1=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_detonate_1,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_detonate_1,Condition(function Trig_detonate_1_Conditions))
call TriggerAddAction(gg_trg_detonate_1,function Trig_detonate_1_Actions)
endfunction
function Trig_sprout_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A06Q')) then
return false
endif
return true
endfunction
function Trig_sprout_Actions takes nothing returns nothing
local destructable array dx
call CreateFogModifierRadiusLocBJ(true,GetOwningPlayer(GetTriggerUnit()),FOG_OF_WAR_VISIBLE,GetUnitLoc(GetSpellTargetUnit()),1000.00)
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=8
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CreateDestructableLoc('LTlt',PolarProjectionBJ(GetUnitLoc(GetSpellTargetUnit()),120.00,(I2R(GetForLoopIndexB())*45.00)),GetRandomDirectionDeg(),1,0)
set dx[GetForLoopIndexB()]=GetLastCreatedDestructable()
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
call TriggerSleepAction((2.00+I2R(GetUnitAbilityLevelSwapped('A06Q',GetTriggerUnit()))))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call KillDestructable(dx[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DestroyFogModifier(GetLastCreatedFogModifier())
call TriggerSleepAction(4.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RemoveDestructable(dx[GetForLoopIndexA()])
set dx[GetForLoopIndexA()]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function InitTrig_sprout takes nothing returns nothing
set gg_trg_sprout=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_sprout,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_sprout,Condition(function Trig_sprout_Conditions))
call TriggerAddAction(gg_trg_sprout,function Trig_sprout_Actions)
endfunction
function Trig_holy_light_Func001C takes nothing returns boolean
if(not(IsUnitEnemy(GetSpellTargetUnit(),GetOwningPlayer(GetTriggerUnit()))==true)) then
return false
endif
return true
endfunction
function Trig_holy_light_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A06P')) then
return false
endif
return true
endfunction
function Trig_holy_light_Actions takes nothing returns nothing
if(Trig_holy_light_Func001C()) then
call UnitDamageTargetBJ(GetTriggerUnit(),GetSpellTargetUnit(),(75.00*I2R(GetUnitAbilityLevelSwapped('A06P',GetTriggerUnit()))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
else
call SetUnitLifeBJ(GetSpellTargetUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellTargetUnit())+(125.00*I2R(GetUnitAbilityLevelSwapped('A06P',GetTriggerUnit())))))
endif
endfunction
function InitTrig_holy_light takes nothing returns nothing
set gg_trg_holy_light=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_holy_light,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_holy_light,Condition(function Trig_holy_light_Conditions))
call TriggerAddAction(gg_trg_holy_light,function Trig_holy_light_Actions)
endfunction
function Trig_devour_Func002C takes nothing returns boolean
if(not(IsUnitInTransportBJ(GetTriggerUnit(),GetTransportUnitBJ()))) then
return false
endif
return true
endfunction
function Trig_devour_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTransportUnitBJ())=='UC42')) then
return false
endif
return true
endfunction
function Trig_devour_Actions takes nothing returns nothing
call PolledWait(((GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit())-20.00)/20.00))
if(Trig_devour_Func002C()) then
call SetPlayerStateBJ(GetOwningPlayer(GetTransportUnitBJ()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTransportUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)+(10*GetUnitAbilityLevelSwapped('A05Y',GetTransportUnitBJ()))))
call CreateTextTagUnitBJ(("+"+I2S((GetUnitAbilityLevelSwapped('A05Y',GetTransportUnitBJ())*10))),GetTransportUnitBJ(),0,10,90.00,84.00,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call PolledWait(2.00)
call DestroyTextTagBJ(GetLastCreatedTextTag())
endif
endfunction
function InitTrig_devour takes nothing returns nothing
set gg_trg_devour=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_devour,EVENT_PLAYER_UNIT_LOADED)
call TriggerAddCondition(gg_trg_devour,Condition(function Trig_devour_Conditions))
call TriggerAddAction(gg_trg_devour,function Trig_devour_Actions)
endfunction
function Trig_death_Func001C takes nothing returns boolean
if(not(ModuloReal(I2R(GetHeroLevel(GetSpellTargetUnit())),(7.00-I2R(GetUnitAbilityLevelSwapped('A094',GetTriggerUnit()))))==0.00)) then
return false
endif
return true
endfunction
function Trig_death_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A094')) then
return false
endif
return true
endfunction
function Trig_death_Actions takes nothing returns nothing
if(Trig_death_Func001C()) then
call UnitDamageTargetBJ(GetTriggerUnit(),GetSpellTargetUnit(),250.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
else
call DoNothing()
endif
endfunction
function InitTrig_death takes nothing returns nothing
set gg_trg_death=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_death,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_death,Condition(function Trig_death_Conditions))
call TriggerAddAction(gg_trg_death,function Trig_death_Actions)
endfunction
function Trig_rapid_revive_Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A012',GetTriggerUnit())==1)) then
return false
endif
return true
endfunction
function Trig_rapid_revive_Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A012',GetTriggerUnit())==2)) then
return false
endif
return true
endfunction
function Trig_rapid_revive_Func003C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A012',GetTriggerUnit())==3)) then
return false
endif
return true
endfunction
function Trig_rapid_revive_Func004C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A012',GetTriggerUnit())==4)) then
return false
endif
return true
endfunction
function Trig_rapid_revive_Conditions takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A012')) then
return false
endif
return true
endfunction
function Trig_rapid_revive_Actions takes nothing returns nothing
if(Trig_rapid_revive_Func001C()) then
set udg_ReviveMultiplier=3.20
else
call DoNothing()
endif
if(Trig_rapid_revive_Func002C()) then
set udg_ReviveMultiplier=2.40
else
call DoNothing()
endif
if(Trig_rapid_revive_Func003C()) then
set udg_ReviveMultiplier=1.60
else
call DoNothing()
endif
if(Trig_rapid_revive_Func004C()) then
set udg_ReviveMultiplier=0.80
else
call DoNothing()
endif
endfunction
function InitTrig_rapid_revive takes nothing returns nothing
set gg_trg_rapid_revive=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_rapid_revive,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(gg_trg_rapid_revive,Condition(function Trig_rapid_revive_Conditions))
call TriggerAddAction(gg_trg_rapid_revive,function Trig_rapid_revive_Actions)
endfunction
function Trig_Nether_swap_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A00G')) then
return false
endif
return true
endfunction
function Trig_Nether_swap_Actions takes nothing returns nothing
set udg_NetherUnits[1]=GetSpellAbilityUnit()
set udg_NetherUnits[2]=GetSpellTargetUnit()
set udg_NetherPosition[1]=GetUnitLoc(udg_NetherUnits[1])
set udg_NetherPosition[2]=GetUnitLoc(udg_NetherUnits[2])
call TriggerSleepAction(0.01)
call SetUnitPositionLoc(udg_NetherUnits[1],udg_NetherPosition[2])
call SetUnitPositionLoc(udg_NetherUnits[2],udg_NetherPosition[1])
endfunction
function InitTrig_Nether_swap takes nothing returns nothing
set gg_trg_Nether_swap=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Nether_swap,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_Nether_swap,Condition(function Trig_Nether_swap_Conditions))
call TriggerAddAction(gg_trg_Nether_swap,function Trig_Nether_swap_Actions)
endfunction
function Trig_Purification_Func003001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Purification_Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_Purification_Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Purification_Func003001003001(),Trig_Purification_Func003001003002())
endfunction
function Trig_Purification_Func003A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(75.00*I2R(GetUnitAbilityLevelSwapped('A08N',GetTriggerUnit()))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Purification_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A08N')) then
return false
endif
return true
endfunction
function Trig_Purification_Actions takes nothing returns nothing
set bj_wantDestroyGroup=true
call SetUnitLifeBJ(GetSpellTargetUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellTargetUnit())+(100.00*I2R(GetUnitAbilityLevelSwapped('A08N',GetTriggerUnit())))))
call ForGroupBJ(GetUnitsInRangeOfLocMatching(250.00,GetUnitLoc(GetSpellTargetUnit()),Condition(function Trig_Purification_Func003001003)),function Trig_Purification_Func003A)
endfunction
function InitTrig_Purification takes nothing returns nothing
set gg_trg_Purification=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Purification,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_Purification,Condition(function Trig_Purification_Conditions))
call TriggerAddAction(gg_trg_Purification,function Trig_Purification_Actions)
endfunction
function Trig_new_HitN_3_Func001C takes nothing returns boolean
if(not(GetTimeOfDay()>=6.00)) then
return false
endif
if(not(GetTimeOfDay()<=18.00)) then
return false
endif
return true
endfunction
function Trig_new_HitN_3_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='U004')) then
return false
endif
return true
endfunction
function Trig_new_HitN_3_Actions takes nothing returns nothing
if(Trig_new_HitN_3_Func001C()) then
call SetUnitAbilityLevelSwapped('S00A',GetTriggerUnit(),5)
call SetUnitAbilityLevelSwapped('A08C',GetTriggerUnit(),5)
else
call SetUnitAbilityLevelSwapped('S00A',GetTriggerUnit(),GetUnitAbilityLevelSwapped('A086',GetTriggerUnit()))
call SetUnitAbilityLevelSwapped('A08C',GetTriggerUnit(),GetUnitAbilityLevelSwapped('A08E',GetTriggerUnit()))
endif
endfunction
function InitTrig_new_HitN_3 takes nothing returns nothing
set gg_trg_new_HitN_3=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_new_HitN_3,EVENT_PLAYER_HERO_REVIVE_FINISH)
call TriggerAddCondition(gg_trg_new_HitN_3,Condition(function Trig_new_HitN_3_Conditions))
call TriggerAddAction(gg_trg_new_HitN_3,function Trig_new_HitN_3_Actions)
endfunction
function Trig_new_HitN_2_Func002001002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_new_HitN_2_Func002001002002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='U004')
endfunction
function Trig_new_HitN_2_Func002001002 takes nothing returns boolean
return GetBooleanAnd(Trig_new_HitN_2_Func002001002001(),Trig_new_HitN_2_Func002001002002())
endfunction
function Trig_new_HitN_2_Func002A takes nothing returns nothing
call SetUnitAbilityLevelSwapped('S00A',GetEnumUnit(),GetUnitAbilityLevelSwapped('A086',GetEnumUnit()))
call SetUnitAbilityLevelSwapped('A08C',GetEnumUnit(),GetUnitAbilityLevelSwapped('A08E',GetEnumUnit()))
endfunction
function Trig_new_HitN_2_Actions takes nothing returns nothing
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_new_HitN_2_Func002001002)),function Trig_new_HitN_2_Func002A)
endfunction
function InitTrig_new_HitN_2 takes nothing returns nothing
set gg_trg_new_HitN_2=CreateTrigger()
call TriggerRegisterGameStateEventTimeOfDay(gg_trg_new_HitN_2,LESS_THAN,6.00)
call TriggerRegisterGameStateEventTimeOfDay(gg_trg_new_HitN_2,GREATER_THAN_OR_EQUAL,18.00)
call TriggerAddAction(gg_trg_new_HitN_2,function Trig_new_HitN_2_Actions)
endfunction
function Trig_new_HitN_Func002001002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_new_HitN_Func002001002002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='U004')
endfunction
function Trig_new_HitN_Func002001002 takes nothing returns boolean
return GetBooleanAnd(Trig_new_HitN_Func002001002001(),Trig_new_HitN_Func002001002002())
endfunction
function Trig_new_HitN_Func002A takes nothing returns nothing
call SetUnitAbilityLevelSwapped('S00A',GetEnumUnit(),5)
call SetUnitAbilityLevelSwapped('A08C',GetEnumUnit(),5)
endfunction
function Trig_new_HitN_Conditions takes nothing returns boolean
if(not(GetTimeOfDay()<18.00)) then
return false
endif
return true
endfunction
function Trig_new_HitN_Actions takes nothing returns nothing
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_new_HitN_Func002001002)),function Trig_new_HitN_Func002A)
endfunction
function InitTrig_new_HitN takes nothing returns nothing
set gg_trg_new_HitN=CreateTrigger()
call TriggerRegisterGameStateEventTimeOfDay(gg_trg_new_HitN,GREATER_THAN_OR_EQUAL,6.00)
call TriggerAddCondition(gg_trg_new_HitN,Condition(function Trig_new_HitN_Conditions))
call TriggerAddAction(gg_trg_new_HitN,function Trig_new_HitN_Actions)
endfunction
function Trig_Hunter_in_the_Night_Func002Func003C takes nothing returns boolean
if(not(GetTimeOfDay()>=6.00)) then
return false
endif
if(not(GetTimeOfDay()<=18.00)) then
return false
endif
return true
endfunction
function Trig_Hunter_in_the_Night_Func002C takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A086')) then
return false
endif
return true
endfunction
function Trig_Hunter_in_the_Night_Func003Func002C takes nothing returns boolean
if(not(GetTimeOfDay()>=6.00)) then
return false
endif
if(not(GetTimeOfDay()<=18.00)) then
return false
endif
return true
endfunction
function Trig_Hunter_in_the_Night_Func003C takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A08E')) then
return false
endif
return true
endfunction
function Trig_Hunter_in_the_Night_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='U004')) then
return false
endif
return true
endfunction
function Trig_Hunter_in_the_Night_Actions takes nothing returns nothing
if(Trig_Hunter_in_the_Night_Func002C()) then
call UnitAddAbilityBJ('S00A',GetTriggerUnit())
if(Trig_Hunter_in_the_Night_Func002Func003C()) then
call SetUnitAbilityLevelSwapped('S00A',GetTriggerUnit(),5)
else
call SetUnitAbilityLevelSwapped('S00A',GetTriggerUnit(),GetUnitAbilityLevelSwapped('A086',GetTriggerUnit()))
endif
else
call DoNothing()
endif
if(Trig_Hunter_in_the_Night_Func003C()) then
call UnitAddAbilityBJ('A08C',GetTriggerUnit())
if(Trig_Hunter_in_the_Night_Func003Func002C()) then
call SetUnitAbilityLevelSwapped('A08C',GetTriggerUnit(),5)
else
call SetUnitAbilityLevelSwapped('A08C',GetTriggerUnit(),GetUnitAbilityLevelSwapped('A08E',GetTriggerUnit()))
endif
else
call DoNothing()
endif
endfunction
function InitTrig_Hunter_in_the_Night takes nothing returns nothing
set gg_trg_Hunter_in_the_Night=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Hunter_in_the_Night,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(gg_trg_Hunter_in_the_Night,Condition(function Trig_Hunter_in_the_Night_Conditions))
call TriggerAddAction(gg_trg_Hunter_in_the_Night,function Trig_Hunter_in_the_Night_Actions)
endfunction
function Trig_song_of_the_siren_buff_Func003001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_song_of_the_siren_buff_Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_song_of_the_siren_buff_Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_song_of_the_siren_buff_Func003001003001(),Trig_song_of_the_siren_buff_Func003001003002())
endfunction
function Trig_song_of_the_siren_buff_Func003A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'e00C',GetOwningPlayer(udg_NagaSiren),GetUnitLoc(udg_NagaSiren),bj_UNIT_FACING)
call UnitAddAbilityBJ('A07T',GetLastCreatedUnit())
call SetUnitAbilityLevelSwapped('A07U',GetLastCreatedUnit(),GetUnitAbilityLevelSwapped('A07U',GetTriggerUnit()))
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"sleep",GetEnumUnit())
call SetUnitPathing(GetLastCreatedUnit(),false)
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call UnitAddAbilityBJ('Aloc',GetLastCreatedUnit())
endfunction
function Trig_song_of_the_siren_buff_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A07U')) then
return false
endif
return true
endfunction
function Trig_song_of_the_siren_buff_Actions takes nothing returns nothing
set bj_wantDestroyGroup=true
set udg_NagaSiren=GetTriggerUnit()
call ForGroupBJ(GetUnitsInRangeOfLocMatching((500.00+(500.00*I2R(GetUnitAbilityLevelSwapped('A07U',GetTriggerUnit())))),GetUnitLoc(GetTriggerUnit()),Condition(function Trig_song_of_the_siren_buff_Func003001003)),function Trig_song_of_the_siren_buff_Func003A)
endfunction
function InitTrig_song_of_the_siren_buff takes nothing returns nothing
set gg_trg_song_of_the_siren_buff=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_song_of_the_siren_buff,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_song_of_the_siren_buff,Condition(function Trig_song_of_the_siren_buff_Conditions))
call TriggerAddAction(gg_trg_song_of_the_siren_buff,function Trig_song_of_the_siren_buff_Actions)
endfunction
function Trig_ManaVoid_Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A079',GetTriggerUnit())==1)) then
return false
endif
return true
endfunction
function Trig_ManaVoid_Func003C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A079',GetTriggerUnit())==2)) then
return false
endif
return true
endfunction
function Trig_ManaVoid_Func004C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A079',GetTriggerUnit())==3)) then
return false
endif
return true
endfunction
function Trig_ManaVoid_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A079')) then
return false
endif
return true
endfunction
function Trig_ManaVoid_Actions takes nothing returns nothing
if(Trig_ManaVoid_Func002C()) then
set udg_ManaVoid=((GetUnitStateSwap(UNIT_STATE_MAX_MANA,GetSpellTargetUnit())-GetUnitStateSwap(UNIT_STATE_MANA,GetSpellTargetUnit()))*0.60)
else
call DoNothing()
endif
if(Trig_ManaVoid_Func003C()) then
set udg_ManaVoid=((GetUnitStateSwap(UNIT_STATE_MAX_MANA,GetSpellTargetUnit())-GetUnitStateSwap(UNIT_STATE_MANA,GetSpellTargetUnit()))*0.85)
else
call DoNothing()
endif
if(Trig_ManaVoid_Func004C()) then
set udg_ManaVoid=((GetUnitStateSwap(UNIT_STATE_MAX_MANA,GetSpellTargetUnit())-GetUnitStateSwap(UNIT_STATE_MANA,GetSpellTargetUnit()))*1.10)
else
call DoNothing()
endif
call UnitDamageTargetBJ(GetTriggerUnit(),GetSpellTargetUnit(),udg_ManaVoid,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
endfunction
function InitTrig_ManaVoid takes nothing returns nothing
set gg_trg_ManaVoid=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_ManaVoid,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_ManaVoid,Condition(function Trig_ManaVoid_Conditions))
call TriggerAddAction(gg_trg_ManaVoid,function Trig_ManaVoid_Actions)
endfunction
function Trig_lightning_bolt_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A006' ) ) then
return false
endif
return true
endfunction
function Trig_lightning_bolt_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'e000', GetOwningPlayer(GetSpellAbilityUnit()), GetUnitLoc(GetSpellTargetUnit()), bj_UNIT_FACING )
call UnitAddAbilityBJ( 'A05S', GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 'A05S', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('A006', GetTriggerUnit()) )
call IssueTargetOrderBJ( GetLastCreatedUnit(), "chainlightning", GetSpellTargetUnit() )
call UnitApplyTimedLifeBJ( 3.00, 'BTLF', GetLastCreatedUnit() )
call SetUnitPathing( GetLastCreatedUnit(), false )
call SetUnitInvulnerable( GetLastCreatedUnit(), true )
call UnitAddAbilityBJ( 'Aloc', GetLastCreatedUnit() )
endfunction
//===========================================================================
function Trig_Wrath_of_Zeus_Copy_Func002C takes nothing returns boolean
if ( ( GetSpellAbilityId() == 'A07C' ) ) then
return true
endif
if ( ( GetSpellAbilityId() == 'A06L' ) ) then
return true
endif
return false
endfunction
function Trig_Wrath_of_Zeus_Copy_Conditions takes nothing returns boolean
if ( not Trig_Wrath_of_Zeus_Copy_Func002C() ) then
return false
endif
return true
endfunction
function Trig_Wrath_of_Zeus_Copy_Func003001002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Wrath_of_Zeus_Copy_Func003001002002 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(GetTriggerUnit())) == true )
endfunction
function Trig_Wrath_of_Zeus_Copy_Func003001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Wrath_of_Zeus_Copy_Func003001002001(), Trig_Wrath_of_Zeus_Copy_Func003001002002() )
endfunction
function Trig_Wrath_of_Zeus_Copy_Func003Func001C takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A07C' ) ) then
return false
endif
return true
endfunction
function Trig_Wrath_of_Zeus_Copy_Func003A takes nothing returns nothing
if ( Trig_Wrath_of_Zeus_Copy_Func003Func001C() ) then
call CreateNUnitsAtLoc( 1, 'e000', GetOwningPlayer(GetTriggerUnit()), GetUnitLoc(GetEnumUnit()), bj_UNIT_FACING )
call UnitAddAbilityBJ( 'A05S', GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 'A05S', GetLastCreatedUnit(), ( 4 + GetUnitAbilityLevelSwapped('A07C', GetTriggerUnit()) ) )
call IssueTargetOrderBJ( GetLastCreatedUnit(), "chainlightning", GetEnumUnit() )
call UnitApplyTimedLifeBJ( 3.00, 'BTLF', GetLastCreatedUnit() )
call SetUnitPathing( GetLastCreatedUnit(), false )
call SetUnitInvulnerable( GetLastCreatedUnit(), true )
call UnitAddAbilityBJ( 'Aloc', GetLastCreatedUnit() )
else
call CreateNUnitsAtLoc( 1, 'e000', GetOwningPlayer(GetTriggerUnit()), GetUnitLoc(GetEnumUnit()), bj_UNIT_FACING )
call UnitAddAbilityBJ( 'A05S', GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 'A05S', GetLastCreatedUnit(), ( 5 + GetUnitAbilityLevelSwapped('A06L', GetTriggerUnit()) ) )
call IssueTargetOrderBJ( GetLastCreatedUnit(), "chainlightning", GetEnumUnit() )
call UnitApplyTimedLifeBJ( 3.00, 'BTLF', GetLastCreatedUnit() )
call SetUnitPathing( GetLastCreatedUnit(), false )
call SetUnitInvulnerable( GetLastCreatedUnit(), true )
call UnitAddAbilityBJ( 'Aloc', GetLastCreatedUnit() )
endif
endfunction
function Trig_Wrath_of_Zeus_Copy_Actions takes nothing returns nothing
set bj_wantDestroyGroup = true
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Wrath_of_Zeus_Copy_Func003001002)), function Trig_Wrath_of_Zeus_Copy_Func003A )
endfunction
//===========================================================================
function InitTrig_Wrath_of_Zeus_Copy takes nothing returns nothing
set gg_trg_Wrath_of_Zeus_Copy = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Wrath_of_Zeus_Copy, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Wrath_of_Zeus_Copy, Condition( function Trig_Wrath_of_Zeus_Copy_Conditions ) )
call TriggerAddAction( gg_trg_Wrath_of_Zeus_Copy, function Trig_Wrath_of_Zeus_Copy_Actions )
endfunction
function Trig_diabolicedict_new_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A035')) then
return false
endif
return true
endfunction
function Trig_diabolicedict_new_Actions takes nothing returns nothing
set udg_DiabolicEdictCaster=GetTriggerUnit()
call EnableTrigger(gg_trg_Diabolic_Edict_Damage)
call TriggerSleepAction(8.00)
call DisableTrigger(gg_trg_Diabolic_Edict_Damage)
endfunction
function InitTrig_diabolicedict_new takes nothing returns nothing
set gg_trg_diabolicedict_new=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_diabolicedict_new,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_diabolicedict_new,Condition(function Trig_diabolicedict_new_Conditions))
call TriggerAddAction(gg_trg_diabolicedict_new,function Trig_diabolicedict_new_Actions)
endfunction
function Trig_Diabolic_Edict_Damage_Func001002001003001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_DiabolicEdictCaster))==true)
endfunction
function Trig_Diabolic_Edict_Damage_Func001002001003002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Diabolic_Edict_Damage_Func001002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Diabolic_Edict_Damage_Func001002001003001(),Trig_Diabolic_Edict_Damage_Func001002001003002())
endfunction
function Trig_Diabolic_Edict_Damage_Actions takes nothing returns nothing
set udg_RandPerson=GroupPickRandomUnit(GetUnitsInRangeOfLocMatching(500.00,GetUnitLoc(udg_DiabolicEdictCaster),Condition(function Trig_Diabolic_Edict_Damage_Func001002001003)))
call AddSpecialEffectTargetUnitBJ("chest",udg_RandPerson,"Abilities\\Weapons\\SteamTank\\SteamTankImpact.mdl")
call AddSpecialEffectTargetUnitBJ("sprite,second",udg_RandPerson,"Abilities\\Weapons\\SteamTank\\SteamTankImpact.mdl")
call UnitDamageTargetBJ(udg_DiabolicEdictCaster,udg_RandPerson,(12.50*I2R(GetUnitAbilityLevelSwapped('A035',udg_DiabolicEdictCaster))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function InitTrig_Diabolic_Edict_Damage takes nothing returns nothing
set gg_trg_Diabolic_Edict_Damage=CreateTrigger()
call DisableTrigger(gg_trg_Diabolic_Edict_Damage)
call TriggerRegisterTimerEventPeriodic(gg_trg_Diabolic_Edict_Damage,0.25)
call TriggerAddAction(gg_trg_Diabolic_Edict_Damage,function Trig_Diabolic_Edict_Damage_Actions)
endfunction
function Trig_begin_polarity_Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_begin_polarity_Func002001003002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_begin_polarity_Func002001003002002 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function Trig_begin_polarity_Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_begin_polarity_Func002001003002001(),Trig_begin_polarity_Func002001003002002())
endfunction
function Trig_begin_polarity_Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_begin_polarity_Func002001003001(),Trig_begin_polarity_Func002001003002())
endfunction
function Trig_begin_polarity_Func002A takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),PolarProjectionBJ(GetUnitLoc(GetSpellAbilityUnit()),GetRandomReal(20.00,70.00),GetRandomDirectionDeg()))
endfunction
function Trig_begin_polarity_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A06F')) then
return false
endif
return true
endfunction
function Trig_begin_polarity_Actions takes nothing returns nothing
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(460.00,GetUnitLoc(GetTriggerUnit()),Condition(function Trig_begin_polarity_Func002001003)),function Trig_begin_polarity_Func002A)
endfunction
function InitTrig_begin_polarity takes nothing returns nothing
set gg_trg_begin_polarity=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_begin_polarity,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_begin_polarity,Condition(function Trig_begin_polarity_Conditions))
call TriggerAddAction(gg_trg_begin_polarity,function Trig_begin_polarity_Actions)
endfunction
function Trig_holy_persuasion_Func003001003001001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_holy_persuasion_Func003001003001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==false)
endfunction
function Trig_holy_persuasion_Func003001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_holy_persuasion_Func003001003001001(),Trig_holy_persuasion_Func003001003001002())
endfunction
function Trig_holy_persuasion_Func003001003002001 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function Trig_holy_persuasion_Func003001003002002 takes nothing returns boolean
return(IsPlayerEnemy(GetOwningPlayer(GetFilterUnit()),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_holy_persuasion_Func003001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_holy_persuasion_Func003001003002001(),Trig_holy_persuasion_Func003001003002002())
endfunction
function Trig_holy_persuasion_Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_holy_persuasion_Func003001003001(),Trig_holy_persuasion_Func003001003002())
endfunction
function Trig_holy_persuasion_Func003A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_CharmGroup)
endfunction
function Trig_holy_persuasion_Func007Func003001001002 takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==false)
endfunction
function Trig_holy_persuasion_Func007C takes nothing returns boolean
if(not(CountUnitsInGroup(GetUnitsOfPlayerMatching(GetTriggerPlayer(),Condition(function Trig_holy_persuasion_Func007Func003001001002)))<25)) then
return false
endif
return true
endfunction
function Trig_holy_persuasion_Func021Func004Func001Func011001001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==false)
endfunction
function Trig_holy_persuasion_Func021Func004Func001C takes nothing returns boolean
if(not(CountUnitsInGroup(GetUnitsOfPlayerMatching(GetTriggerPlayer(),Condition(function Trig_holy_persuasion_Func021Func004Func001Func011001001002)))<25)) then
return false
endif
return true
endfunction
function Trig_holy_persuasion_Func021C takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_CharmGroup)==false)) then
return false
endif
if(not(GetUnitAbilityLevelSwapped('A068',GetTriggerUnit())>1)) then
return false
endif
return true
endfunction
function Trig_holy_persuasion_Func022Func004Func001Func011001001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==false)
endfunction
function Trig_holy_persuasion_Func022Func004Func001C takes nothing returns boolean
if(not(CountUnitsInGroup(GetUnitsOfPlayerMatching(GetTriggerPlayer(),Condition(function Trig_holy_persuasion_Func022Func004Func001Func011001001002)))<25)) then
return false
endif
return true
endfunction
function Trig_holy_persuasion_Func022C takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_CharmGroup)==false)) then
return false
endif
if(not(GetUnitAbilityLevelSwapped('A068',GetTriggerUnit())>2)) then
return false
endif
return true
endfunction
function Trig_holy_persuasion_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A068')) then
return false
endif
return true
endfunction
function Trig_holy_persuasion_Actions takes nothing returns nothing
set udg_HPUnit=GetTriggerUnit()
call ForGroupBJ(GetUnitsInRangeOfLocMatching(1500.00,GetUnitLoc(GetSpellTargetUnit()),Condition(function Trig_holy_persuasion_Func003001003)),function Trig_holy_persuasion_Func003A)
call CreateNUnitsAtLoc(1,'e00C',GetOwningPlayer(udg_HPUnit),GetUnitLoc(GetTriggerUnit()),bj_UNIT_FACING)
call UnitAddAbilityBJ('A069',GetLastCreatedUnit())
call GroupRemoveUnitSimple(GetSpellTargetUnit(),udg_CharmGroup)
if(Trig_holy_persuasion_Func007C()) then
call IssueTargetOrderBJ(GetLastCreatedUnit(),"charm",GetSpellTargetUnit())
else
call DoNothing()
endif
call UnitApplyTimedLifeBJ(3.00,'BTLF',GetLastCreatedUnit())
call SetUnitPathing(GetLastCreatedUnit(),false)
call UnitAddAbilityBJ('Aloc',GetLastCreatedUnit())
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call CreateNUnitsAtLoc(1,'e00C',GetOwningPlayer(udg_HPUnit),GetUnitLoc(GetTriggerUnit()),bj_UNIT_FACING)
call UnitAddAbilityBJ('A069',GetLastCreatedUnit())
set udg_CharmRandom=GroupPickRandomUnit(udg_CharmGroup)
call GroupRemoveUnitSimple(udg_CharmRandom,udg_CharmGroup)
call IssueTargetOrderBJ(GetLastCreatedUnit(),"charm",udg_CharmRandom)
call UnitApplyTimedLifeBJ(3.00,'BTLF',GetLastCreatedUnit())
call SetUnitPathing(GetLastCreatedUnit(),false)
call UnitAddAbilityBJ('Aloc',GetLastCreatedUnit())
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
if(Trig_holy_persuasion_Func021C()) then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=2
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_holy_persuasion_Func021Func004Func001C()) then
call CreateNUnitsAtLoc(1,'e00C',GetOwningPlayer(udg_HPUnit),GetUnitLoc(GetTriggerUnit()),bj_UNIT_FACING)
call UnitAddAbilityBJ('A069',GetLastCreatedUnit())
set udg_CharmRandom=GroupPickRandomUnit(udg_CharmGroup)
call GroupRemoveUnitSimple(udg_CharmRandom,udg_CharmGroup)
call IssueTargetOrderBJ(GetLastCreatedUnit(),"charm",udg_CharmRandom)
call UnitApplyTimedLifeBJ(3.00,'BTLF',GetLastCreatedUnit())
call SetUnitPathing(GetLastCreatedUnit(),false)
call UnitAddAbilityBJ('Aloc',GetLastCreatedUnit())
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_holy_persuasion_Func022C()) then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=2
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_holy_persuasion_Func022Func004Func001C()) then
call CreateNUnitsAtLoc(1,'e00C',GetOwningPlayer(udg_HPUnit),GetUnitLoc(GetTriggerUnit()),bj_UNIT_FACING)
call UnitAddAbilityBJ('A069',GetLastCreatedUnit())
set udg_CharmRandom=GroupPickRandomUnit(udg_CharmGroup)
call GroupRemoveUnitSimple(udg_CharmRandom,udg_CharmGroup)
call IssueTargetOrderBJ(GetLastCreatedUnit(),"charm",udg_CharmRandom)
call UnitApplyTimedLifeBJ(3.00,'BTLF',GetLastCreatedUnit())
call SetUnitPathing(GetLastCreatedUnit(),false)
call UnitAddAbilityBJ('Aloc',GetLastCreatedUnit())
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
endfunction
function InitTrig_holy_persuasion takes nothing returns nothing
set gg_trg_holy_persuasion=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_holy_persuasion,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_holy_persuasion,Condition(function Trig_holy_persuasion_Conditions))
call TriggerAddAction(gg_trg_holy_persuasion,function Trig_holy_persuasion_Actions)
endfunction
function Trig_omnislash_selection_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='N00M')) then
return false
endif
return true
endfunction
function Trig_omnislash_selection_Actions takes nothing returns nothing
call SelectUnitRemoveForPlayer(GetTriggerUnit(),GetTriggerPlayer())
endfunction
function InitTrig_omnislash_selection takes nothing returns nothing
set gg_trg_omnislash_selection=CreateTrigger()
call DisableTrigger(gg_trg_omnislash_selection)
call TriggerRegisterPlayerSelectionEventBJ(gg_trg_omnislash_selection,Player(1),true)
call TriggerRegisterPlayerSelectionEventBJ(gg_trg_omnislash_selection,Player(2),true)
call TriggerRegisterPlayerSelectionEventBJ(gg_trg_omnislash_selection,Player(3),true)
call TriggerRegisterPlayerSelectionEventBJ(gg_trg_omnislash_selection,Player(4),true)
call TriggerRegisterPlayerSelectionEventBJ(gg_trg_omnislash_selection,Player(5),true)
call TriggerRegisterPlayerSelectionEventBJ(gg_trg_omnislash_selection,Player(7),true)
call TriggerRegisterPlayerSelectionEventBJ(gg_trg_omnislash_selection,Player(8),true)
call TriggerRegisterPlayerSelectionEventBJ(gg_trg_omnislash_selection,Player(9),true)
call TriggerRegisterPlayerSelectionEventBJ(gg_trg_omnislash_selection,Player(10),true)
call TriggerRegisterPlayerSelectionEventBJ(gg_trg_omnislash_selection,Player(11),true)
call TriggerAddCondition(gg_trg_omnislash_selection,Condition(function Trig_omnislash_selection_Conditions))
call TriggerAddAction(gg_trg_omnislash_selection,function Trig_omnislash_selection_Actions)
endfunction
function Trig_OmniSlashEffect_Func005001003001001001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_OmniSlashEffect_Func005001003001001002 takes nothing returns boolean
return(IsUnitVisible(GetFilterUnit(),udg_BushidoOwner)==true)
endfunction
function Trig_OmniSlashEffect_Func005001003001001 takes nothing returns boolean
return GetBooleanAnd(Trig_OmniSlashEffect_Func005001003001001001(),Trig_OmniSlashEffect_Func005001003001001002())
endfunction
function Trig_OmniSlashEffect_Func005001003001002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_BushidoBladeUnit))==true)
endfunction
function Trig_OmniSlashEffect_Func005001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_OmniSlashEffect_Func005001003001001(),Trig_OmniSlashEffect_Func005001003001002())
endfunction
function Trig_OmniSlashEffect_Func005001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_OmniSlashEffect_Func005001003002002001 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())!='e00C')
endfunction
function Trig_OmniSlashEffect_Func005001003002002002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())!='o003')
endfunction
function Trig_OmniSlashEffect_Func005001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_OmniSlashEffect_Func005001003002002001(),Trig_OmniSlashEffect_Func005001003002002002())
endfunction
function Trig_OmniSlashEffect_Func005001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_OmniSlashEffect_Func005001003002001(),Trig_OmniSlashEffect_Func005001003002002())
endfunction
function Trig_OmniSlashEffect_Func005001003 takes nothing returns boolean
return GetBooleanAnd(Trig_OmniSlashEffect_Func005001003001(),Trig_OmniSlashEffect_Func005001003002())
endfunction
function Trig_OmniSlashEffect_Func005A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_BushidoGroup)
endfunction
function Trig_OmniSlashEffect_Func006C takes nothing returns boolean
if(not(udg_Omni1==false)) then
return false
endif
return true
endfunction
function Trig_OmniSlashEffect_Func007Func001C takes nothing returns boolean
if((IsUnitDeadBJ(udg_BushidoBladeUnit)==true)) then
return true
endif
if((IsUnitGroupEmptyBJ(udg_BushidoGroup)==true)) then
return true
endif
return false
endfunction
function Trig_OmniSlashEffect_Func007C takes nothing returns boolean
if(not Trig_OmniSlashEffect_Func007Func001C()) then
return false
endif
return true
endfunction
function Trig_OmniSlashEffect_Actions takes nothing returns nothing
set bj_wantDestroyGroup=true
call AddSpecialEffectTargetUnitBJ("chest",udg_BushidoBladeUnit,"Abilities\\Spells\\NightElf\\Blink\\BlinkCaster.mdl")
set udg_BushidoRandomNumber=GetRandomInt(150,250)
call GroupClear(udg_BushidoGroup)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(550.00,GetUnitLoc(udg_RandPer),Condition(function Trig_OmniSlashEffect_Func005001003)),function Trig_OmniSlashEffect_Func005A)
if(Trig_OmniSlashEffect_Func006C()) then
set udg_RandPer=GroupPickRandomUnit(udg_BushidoGroup)
else
call DoNothing()
endif
if(Trig_OmniSlashEffect_Func007C()) then
call DoNothing()
else
call SetUnitPositionLocFacingBJ(udg_BushidoBladeUnit,PolarProjectionBJ(GetUnitLoc(udg_RandPer),50.00,GetRandomDirectionDeg()),AngleBetweenPoints(GetUnitLoc(udg_BushidoBladeUnit),GetUnitLoc(udg_RandPer)))
call SetUnitAnimation(udg_BushidoBladeUnit,"Attack")
call UnitDamageTargetBJ(udg_BushidoBladeUnit,udg_RandPer,I2R(udg_BushidoRandomNumber),ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("chest",udg_BushidoBladeUnit,"Abilities\\Spells\\NightElf\\Blink\\BlinkCaster.mdl")
endif
endfunction
function InitTrig_OmniSlashEffect takes nothing returns nothing
set gg_trg_OmniSlashEffect=CreateTrigger()
call TriggerAddAction(gg_trg_OmniSlashEffect,function Trig_OmniSlashEffect_Actions)
endfunction
function Trig_omnislash_Func018C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A066',udg_BushidoBladeUnit)>1)) then
return false
endif
return true
endfunction
function Trig_omnislash_Func019C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A066',udg_BushidoBladeUnit)>2)) then
return false
endif
return true
endfunction
function Trig_omnislash_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A066')) then
return false
endif
return true
endfunction
function Trig_omnislash_Actions takes nothing returns nothing
call EnableTrigger(gg_trg_omnislash_selection)
set udg_BushidoOwner=GetOwningPlayer(GetTriggerUnit())
set udg_BushidoBladeUnit=GetTriggerUnit()
call SelectUnitRemoveForPlayer(udg_BushidoBladeUnit,udg_BushidoOwner)
call SetUnitVertexColorBJ(udg_BushidoBladeUnit,100,100,100,50.00)
call SetUnitPathing(udg_BushidoBladeUnit,false)
call SetUnitInvulnerable(udg_BushidoBladeUnit,true)
set udg_RandPer=GetSpellTargetUnit()
set udg_Omni1=true
call TriggerSleepAction(0.01)
call ConditionalTriggerExecute(gg_trg_OmniSlashEffect)
set udg_Omni1=false
call PolledWait(0.25)
call ConditionalTriggerExecute(gg_trg_OmniSlashEffect)
call PolledWait(0.25)
call ConditionalTriggerExecute(gg_trg_OmniSlashEffect)
call PolledWait(0.25)
if(Trig_omnislash_Func018C()) then
call ConditionalTriggerExecute(gg_trg_OmniSlashEffect)
call PolledWait(0.25)
call ConditionalTriggerExecute(gg_trg_OmniSlashEffect)
call PolledWait(0.25)
else
call DoNothing()
endif
if(Trig_omnislash_Func019C()) then
call ConditionalTriggerExecute(gg_trg_OmniSlashEffect)
call PolledWait(0.25)
call ConditionalTriggerExecute(gg_trg_OmniSlashEffect)
call PolledWait(0.25)
call ConditionalTriggerExecute(gg_trg_OmniSlashEffect)
call PolledWait(0.25)
else
call DoNothing()
endif
call GroupClear(udg_BushidoGroup)
call SetUnitPathing(udg_BushidoBladeUnit,true)
call SetUnitInvulnerable(udg_BushidoBladeUnit,false)
call SetUnitScalePercent(udg_BushidoBladeUnit,100.00,100.00,100.00)
call SetUnitVertexColorBJ(udg_BushidoBladeUnit,100,100,100,0.00)
call SelectUnitAddForPlayer(udg_BushidoBladeUnit,udg_BushidoOwner)
call DisableTrigger(gg_trg_omnislash_selection)
endfunction
function InitTrig_omnislash takes nothing returns nothing
set gg_trg_omnislash=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_omnislash,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_omnislash,Condition(function Trig_omnislash_Conditions))
call TriggerAddAction(gg_trg_omnislash,function Trig_omnislash_Actions)
endfunction
function Trig_Poison_Nova_effect_Func001001003001001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Poison_Nova_effect_Func001001003001002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_Poison_Nova_effect_Func001001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_Poison_Nova_effect_Func001001003001001(),Trig_Poison_Nova_effect_Func001001003001002())
endfunction
function Trig_Poison_Nova_effect_Func001001003002001001 takes nothing returns boolean
return(UnitHasBuffBJ(GetFilterUnit(),'B027')==false)
endfunction
function Trig_Poison_Nova_effect_Func001001003002001002 takes nothing returns boolean
return(UnitHasBuffBJ(GetFilterUnit(),'B028')==false)
endfunction
function Trig_Poison_Nova_effect_Func001001003002001 takes nothing returns boolean
return GetBooleanAnd(Trig_Poison_Nova_effect_Func001001003002001001(),Trig_Poison_Nova_effect_Func001001003002001002())
endfunction
function Trig_Poison_Nova_effect_Func001001003002002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Poison_Nova_effect_Func001001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Poison_Nova_effect_Func001001003002001(),Trig_Poison_Nova_effect_Func001001003002002())
endfunction
function Trig_Poison_Nova_effect_Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Poison_Nova_effect_Func001001003001(),Trig_Poison_Nova_effect_Func001001003002())
endfunction
function Trig_Poison_Nova_effect_Func001A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'o00I',GetOwningPlayer(udg_PNovaCaster),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call UnitAddAbilityBJ('A076',GetLastCreatedUnit())
call SetUnitAbilityLevelSwapped('A076',GetLastCreatedUnit(),udg_PNLv)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"attack",GetEnumUnit())
call SetUnitPathing(GetLastCreatedUnit(),false)
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call UnitAddAbilityBJ('Aloc',GetLastCreatedUnit())
endfunction
function Trig_Poison_Nova_effect_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRangeOfLocMatching(udg_PNovaDist,udg_PNPt,Condition(function Trig_Poison_Nova_effect_Func001001003)),function Trig_Poison_Nova_effect_Func001A)
set udg_PNovaDist=(udg_PNovaDist+200.00)
endfunction
function InitTrig_Poison_Nova_effect takes nothing returns nothing
set gg_trg_Poison_Nova_effect=CreateTrigger()
call TriggerAddAction(gg_trg_Poison_Nova_effect,function Trig_Poison_Nova_effect_Actions)
endfunction
function Trig_Poison_Nova_Func002C takes nothing returns boolean
if((GetSpellAbilityId()=='A013')) then
return true
endif
if((GetSpellAbilityId()=='A0A6')) then
return true
endif
return false
endfunction
function Trig_Poison_Nova_Func006C takes nothing returns boolean
if(not(GetSpellAbilityId()=='A013')) then
return false
endif
return true
endfunction
function Trig_Poison_Nova_Conditions takes nothing returns boolean
if(not Trig_Poison_Nova_Func002C()) then
return false
endif
return true
endfunction
function Trig_Poison_Nova_Actions takes nothing returns nothing
set bj_wantDestroyGroup=true
set udg_PNPt=GetUnitLoc(GetTriggerUnit())
set udg_PNovaCaster=GetTriggerUnit()
set udg_PNovaDist=200.00
if(Trig_Poison_Nova_Func006C()) then
set udg_PNLv=GetUnitAbilityLevelSwapped('A013',GetTriggerUnit())
else
set udg_PNLv=(GetUnitAbilityLevelSwapped('A0A6',GetTriggerUnit())+1)
endif
call GroupClear(udg_PNG)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=36
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e017',Player(PLAYER_NEUTRAL_PASSIVE),GetUnitLoc(GetTriggerUnit()),udg_PN[GetForLoopIndexA()])
set udg_PNU[GetForLoopIndexA()]=GetLastCreatedUnit()
call SetUnitPathing(GetLastCreatedUnit(),false)
call UnitAddAbilityBJ('Aloc',GetLastCreatedUnit())
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"move",PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),1500.00,(I2R(GetForLoopIndexA())*10.00)))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call TriggerExecute(gg_trg_Poison_Nova_effect)
call TriggerSleepAction(0.40)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=36
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call RemoveUnit(udg_PNU[GetForLoopIndexB()])
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
endfunction
function InitTrig_Poison_Nova takes nothing returns nothing
set gg_trg_Poison_Nova=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Poison_Nova,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_Poison_Nova,Condition(function Trig_Poison_Nova_Conditions))
call TriggerAddAction(gg_trg_Poison_Nova,function Trig_Poison_Nova_Actions)
endfunction
function Trig_eclipse_effect_Func001001003001001001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_eclipse_effect_Func001001003001001002 takes nothing returns boolean
return(GetUnitUserData(GetFilterUnit())<udg_EclipseLim)
endfunction
function Trig_eclipse_effect_Func001001003001001 takes nothing returns boolean
return GetBooleanAnd(Trig_eclipse_effect_Func001001003001001001(),Trig_eclipse_effect_Func001001003001001002())
endfunction
function Trig_eclipse_effect_Func001001003001002 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function Trig_eclipse_effect_Func001001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_eclipse_effect_Func001001003001001(),Trig_eclipse_effect_Func001001003001002())
endfunction
function Trig_eclipse_effect_Func001001003002001001 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())!='o003')
endfunction
function Trig_eclipse_effect_Func001001003002001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())!='e00C')
endfunction
function Trig_eclipse_effect_Func001001003002001 takes nothing returns boolean
return GetBooleanAnd(Trig_eclipse_effect_Func001001003002001001(),Trig_eclipse_effect_Func001001003002001002())
endfunction
function Trig_eclipse_effect_Func001001003002002 takes nothing returns boolean
return(IsUnitAlly(GetFilterUnit(),GetOwningPlayer(udg_EclipseCaster))==false)
endfunction
function Trig_eclipse_effect_Func001001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_eclipse_effect_Func001001003002001(),Trig_eclipse_effect_Func001001003002002())
endfunction
function Trig_eclipse_effect_Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_eclipse_effect_Func001001003001(),Trig_eclipse_effect_Func001001003002())
endfunction
function Trig_eclipse_effect_Func001A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_EclipseGroup)
endfunction
function Trig_eclipse_effect_Func003C takes nothing returns boolean
if(not(IsUnitDeadBJ(udg_EclipseTarget)==true)) then
return false
endif
if(not(IsUnitGroupEmptyBJ(udg_EclipseGroup)==false)) then
return false
endif
return true
endfunction
function Trig_eclipse_effect_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRangeOfLocMatching(700.00,GetUnitLoc(udg_EclipseCaster),Condition(function Trig_eclipse_effect_Func001001003)),function Trig_eclipse_effect_Func001A)
set udg_EclipseTarget=GroupPickRandomUnit(udg_EclipseGroup)
if(Trig_eclipse_effect_Func003C()) then
call GroupRemoveUnitSimple(udg_EclipseTarget,udg_EclipseGroup)
call TriggerExecute(GetTriggeringTrigger())
else
call DoNothing()
endif
call CreateNUnitsAtLoc(1,'e00C',GetOwningPlayer(udg_EclipseCaster),GetUnitLoc(udg_EclipseTarget),bj_UNIT_FACING)
call UnitAddAbilityBJ(udg_EclipseBeam,GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"firebolt",udg_EclipseTarget)
call UnitApplyTimedLifeBJ(2.00,'BTLF',GetLastCreatedUnit())
call SetUnitPathing(GetLastCreatedUnit(),false)
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call UnitAddAbilityBJ('Aloc',GetLastCreatedUnit())
call SetUnitUserData(udg_EclipseTarget,(GetUnitUserData(udg_EclipseTarget)+1))
call GroupClear(udg_EclipseGroup)
endfunction
function InitTrig_eclipse_effect takes nothing returns nothing
set gg_trg_eclipse_effect=CreateTrigger()
call TriggerAddAction(gg_trg_eclipse_effect,function Trig_eclipse_effect_Actions)
endfunction
function Trig_Eclipse_Cast_Func002001 takes nothing returns boolean
return(GetSpellAbilityId()=='A054')
endfunction
function Trig_Eclipse_Cast_Func002002 takes nothing returns boolean
return(GetSpellAbilityId()=='A00U')
endfunction
function Trig_Eclipse_Cast_Func001C takes nothing returns boolean
if(not(GetSpellAbilityId()=='A054')) then
return false
endif
return true
endfunction
function Trig_Eclipse_Cast_Func004C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A042',GetTriggerUnit())==1)) then
return false
endif
return true
endfunction
function Trig_Eclipse_Cast_Func005C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A042',GetTriggerUnit())==2)) then
return false
endif
return true
endfunction
function Trig_Eclipse_Cast_Func006C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A042',GetTriggerUnit())==3)) then
return false
endif
return true
endfunction
function Trig_Eclipse_Cast_Func007C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A042',GetTriggerUnit())==4)) then
return false
endif
return true
endfunction
function Trig_Eclipse_Cast_Func008Func003C takes nothing returns boolean
if((GetUnitAbilityLevelSwapped('A054',GetTriggerUnit())==1)) then
return true
endif
if((GetUnitAbilityLevelSwapped('A00U',GetTriggerUnit())==1)) then
return true
endif
return false
endfunction
function Trig_Eclipse_Cast_Func008C takes nothing returns boolean
if(not Trig_Eclipse_Cast_Func008Func003C()) then
return false
endif
return true
endfunction
function Trig_Eclipse_Cast_Func009Func002C takes nothing returns boolean
if((GetUnitAbilityLevelSwapped('A054',GetTriggerUnit())==2)) then
return true
endif
if((GetUnitAbilityLevelSwapped('A00U',GetTriggerUnit())==2)) then
return true
endif
return false
endfunction
function Trig_Eclipse_Cast_Func009C takes nothing returns boolean
if(not Trig_Eclipse_Cast_Func009Func002C()) then
return false
endif
return true
endfunction
function Trig_Eclipse_Cast_Func010Func002C takes nothing returns boolean
if((GetUnitAbilityLevelSwapped('A054',GetTriggerUnit())==3)) then
return true
endif
if((GetUnitAbilityLevelSwapped('A00U',GetTriggerUnit())==3)) then
return true
endif
return false
endfunction
function Trig_Eclipse_Cast_Func010C takes nothing returns boolean
if(not Trig_Eclipse_Cast_Func010Func002C()) then
return false
endif
return true
endfunction
function Trig_Eclipse_Cast_Func019C takes nothing returns boolean
if(not(GetSpellAbilityId()=='A00U')) then
return false
endif
return true
endfunction
function Trig_Eclipse_Cast_Func020C takes nothing returns boolean
if(not(udg_EclipseLvl>=2)) then
return false
endif
return true
endfunction
function Trig_Eclipse_Cast_Func021Func006C takes nothing returns boolean
if(not(GetSpellAbilityId()=='A00U')) then
return false
endif
return true
endfunction
function Trig_Eclipse_Cast_Func021C takes nothing returns boolean
if(not(udg_EclipseLvl>=3)) then
return false
endif
return true
endfunction
function Trig_Eclipse_Cast_Func022002 takes nothing returns nothing
call SetUnitUserData(GetEnumUnit(),0)
endfunction
function Trig_Eclipse_Cast_Conditions takes nothing returns boolean
if(not GetBooleanOr(Trig_Eclipse_Cast_Func002001(),Trig_Eclipse_Cast_Func002002())) then
return false
endif
return true
endfunction
function Trig_Eclipse_Cast_Actions takes nothing returns nothing
if(Trig_Eclipse_Cast_Func001C()) then
set udg_EclipseLim=5
else
set udg_EclipseLim=6
endif
set udg_EclipseCaster=GetTriggerUnit()
if(Trig_Eclipse_Cast_Func004C()) then
set udg_EclipseBeam='A05O'
else
call DoNothing()
endif
if(Trig_Eclipse_Cast_Func005C()) then
set udg_EclipseBeam='A031'
else
call DoNothing()
endif
if(Trig_Eclipse_Cast_Func006C()) then
set udg_EclipseBeam='A032'
else
call DoNothing()
endif
if(Trig_Eclipse_Cast_Func007C()) then
set udg_EclipseBeam='A033'
else
call DoNothing()
endif
if(Trig_Eclipse_Cast_Func008C()) then
set udg_EclipseLvl=1
else
call DoNothing()
endif
if(Trig_Eclipse_Cast_Func009C()) then
set udg_EclipseLvl=2
else
call DoNothing()
endif
if(Trig_Eclipse_Cast_Func010C()) then
set udg_EclipseLvl=3
else
call DoNothing()
endif
call TriggerExecute(gg_trg_eclipse_effect)
call TriggerSleepAction(0.05)
call TriggerExecute(gg_trg_eclipse_effect)
call TriggerSleepAction(0.05)
call TriggerExecute(gg_trg_eclipse_effect)
call TriggerSleepAction(0.05)
call TriggerExecute(gg_trg_eclipse_effect)
call TriggerSleepAction(0.05)
if(Trig_Eclipse_Cast_Func019C()) then
call TriggerExecute(gg_trg_eclipse_effect)
call TriggerSleepAction(0.05)
else
call DoNothing()
endif
if(Trig_Eclipse_Cast_Func020C()) then
call TriggerExecute(gg_trg_eclipse_effect)
call TriggerSleepAction(0.05)
call TriggerExecute(gg_trg_eclipse_effect)
call TriggerSleepAction(0.05)
call TriggerExecute(gg_trg_eclipse_effect)
call TriggerSleepAction(0.05)
else
call DoNothing()
endif
if(Trig_Eclipse_Cast_Func021C()) then
call TriggerExecute(gg_trg_eclipse_effect)
call TriggerSleepAction(0.05)
call TriggerExecute(gg_trg_eclipse_effect)
call TriggerSleepAction(0.05)
call TriggerExecute(gg_trg_eclipse_effect)
if(Trig_Eclipse_Cast_Func021Func006C()) then
call TriggerSleepAction(0.05)
call TriggerExecute(gg_trg_eclipse_effect)
else
call DoNothing()
endif
else
call DoNothing()
endif
call ForGroupBJ(GetUnitsInRectAll(GetPlayableMapRect()),function Trig_Eclipse_Cast_Func022002)
endfunction
function InitTrig_Eclipse_Cast takes nothing returns nothing
set gg_trg_Eclipse_Cast=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Eclipse_Cast,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_Eclipse_Cast,Condition(function Trig_Eclipse_Cast_Conditions))
call TriggerAddAction(gg_trg_Eclipse_Cast,function Trig_Eclipse_Cast_Actions)
endfunction
function Trig_Chain_Freezing_try_Func001C takes nothing returns boolean
if(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)) then
return false
endif
if(GetUnitAbilityLevelSwapped('A04R',GetFilterUnit())==1) then
return false
endif
if(IsUnitAliveBJ(GetFilterUnit())==false) then
return false
endif
if(GetUnitTypeId(GetFilterUnit())=='o003') then
return false
endif
return true
endfunction
function Trig_Chain_Freezing_try_Func000C takes nothing returns boolean
if((GetSpellAbilityId()=='A05T')) then
return true
endif
if((GetSpellAbilityId()=='A08H')) then
return true
endif
return false
endfunction
function Trig_Chain_Freezing_try_Func002C takes nothing returns boolean
if(not(GetSpellAbilityId()=='A05T')) then
return false
endif
return true
endfunction
function Trig_Chain_Freezing_try_Conditions takes nothing returns boolean
if(not Trig_Chain_Freezing_try_Func000C()) then
return false
endif
return true
endfunction
function Trig_Chain_Freezing_try_Actions takes nothing returns nothing
local player td=GetOwningPlayer(GetTriggerUnit())
local integer tD=0
local integer te
local unit tE
local unit tf
local integer Ql
local integer M7
local group tF=CreateGroup()
local group tg=CreateGroup()
local unit GU
if(Trig_Chain_Freezing_try_Func002C()) then
set te=GetUnitAbilityLevelSwapped('A05T',GetTriggerUnit())
else
set te=(GetUnitAbilityLevelSwapped('A08H',GetTriggerUnit())+1)
endif
set tE=GetSpellTargetUnit()
call CreateNUnitsAtLoc(1,'e009',td,GetUnitLoc(GetSpellAbilityUnit()),bj_UNIT_FACING)
set tf=bj_lastCreatedUnit
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",GetUnitLoc(tE))
call SetUnitPathing(bj_lastCreatedUnit,false)
call UnitAddAbility(bj_lastCreatedUnit,'Aloc')
call SetUnitInvulnerable(bj_lastCreatedUnit,true)
call PolledWait(((DistanceBetweenPoints(GetUnitLoc(tf),GetUnitLoc(tE))-90.00)/575.00))
loop
exitwhen tD>6
set tD=(tD+1)
call CreateNUnitsAtLoc(1,'e00C',td,GetUnitLoc(tE),bj_UNIT_FACING)
call UnitAddAbility(bj_lastCreatedUnit,'A091')
call SetUnitAbilityLevelSwapped('A091',bj_lastCreatedUnit,te)
call IssueTargetOrder(bj_lastCreatedUnit,"frostnova",tE)
call SetUnitInvulnerable(bj_lastCreatedUnit,true)
call SetUnitPathing(bj_lastCreatedUnit,false)
call UnitAddAbility(bj_lastCreatedUnit,'Aloc')
call UnitApplyTimedLifeBJ(2.00,'BTLF',bj_lastCreatedUnit)
call RemoveUnit(tf)
if(tD<7) then
call GroupClear(tF)
set tg=GetUnitsInRangeOfLocMatching(600.00,GetUnitLoc(tE),Condition(function Trig_Chain_Freezing_try_Func001C))
loop
set GU=FirstOfGroup(tg)
exitwhen GU==null
if(IsUnitEnemy(GU,td)) then
if(GU!=tE) then
if(IsUnitVisible(GU,td)) then
call GroupAddUnit(tF,GU)
endif
endif
endif
call GroupRemoveUnit(tg,GU)
endloop
if(IsUnitGroupEmptyBJ(tF)==false) then
call CreateNUnitsAtLoc(1,'e009',td,GetUnitLoc(tE),bj_UNIT_FACING)
set tf=bj_lastCreatedUnit
set tE=GroupPickRandomUnit(tF)
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",GetUnitLoc(tE))
call SetUnitPathing(bj_lastCreatedUnit,false)
call UnitAddAbility(bj_lastCreatedUnit,'Aloc')
call SetUnitInvulnerable(bj_lastCreatedUnit,true)
call PolledWait(((DistanceBetweenPoints(GetUnitLoc(tf),GetUnitLoc(tE))-90.00)/575.00))
else
set tD=99
endif
endif
endloop
endfunction
function InitTrig_Chain_Freezing_try takes nothing returns nothing
set gg_trg_Chain_Freezing_try=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Chain_Freezing_try,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_Chain_Freezing_try,Condition(function Trig_Chain_Freezing_try_Conditions))
call TriggerAddAction(gg_trg_Chain_Freezing_try,function Trig_Chain_Freezing_try_Actions)
endfunction
function Trig_void_Func001C takes nothing returns boolean
if(not(GetTimeOfDay()>=6.00)) then
return false
endif
if(not(GetTimeOfDay()<=18.00)) then
return false
endif
return true
endfunction
function Trig_void_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A02H')) then
return false
endif
return true
endfunction
function Trig_void_Actions takes nothing returns nothing
if(Trig_void_Func001C()) then
call DoNothing()
else
call CreateNUnitsAtLoc(1,'e00C',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetSpellTargetUnit()),bj_UNIT_FACING)
call UnitAddAbilityBJ('A02R',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"slow",GetSpellTargetUnit())
call SetUnitPathing(GetLastCreatedUnit(),false)
call UnitAddAbilityBJ('Aloc',GetLastCreatedUnit())
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call UnitApplyTimedLifeBJ(1.50,'BTLF',GetLastCreatedUnit())
endif
endfunction
function InitTrig_void takes nothing returns nothing
set gg_trg_void=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_void,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_void,Condition(function Trig_void_Conditions))
call TriggerAddAction(gg_trg_void,function Trig_void_Actions)
endfunction
function Trig_chaos_bolt_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A055')) then
return false
endif
return true
endfunction
function Trig_chaos_bolt_Actions takes nothing returns nothing
set udg_chaosrandom=GetRandomInt(1,5)
call CreateNUnitsAtLoc(1,'e00C',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetSpellTargetUnit()),bj_UNIT_FACING)
call UnitAddAbilityBJ('A04U',GetLastCreatedUnit())
call SetUnitAbilityLevelSwapped('A04U',GetLastCreatedUnit(),udg_chaosrandom)
call UnitApplyTimedLifeBJ(2.00,'BTLF',GetLastCreatedUnit())
call SetUnitPathing(GetLastCreatedUnit(),false)
call UnitAddAbilityBJ('Aloc',GetLastCreatedUnit())
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call IssueTargetOrderBJ(GetLastCreatedUnit(),"thunderbolt",GetSpellTargetUnit())
endfunction
function InitTrig_chaos_bolt takes nothing returns nothing
set gg_trg_chaos_bolt=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_chaos_bolt,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_chaos_bolt,Condition(function Trig_chaos_bolt_Conditions))
call TriggerAddAction(gg_trg_chaos_bolt,function Trig_chaos_bolt_Actions)
endfunction
function Trig_blink_strike_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A09F')) then
return false
endif
return true
endfunction
function Trig_blink_strike_Actions takes nothing returns nothing
set udg_BSDam=(30.00*I2R(GetUnitAbilityLevelSwapped('A09F',GetTriggerUnit())))
call UnitDamageTargetBJ(GetTriggerUnit(),GetSpellTargetUnit(),udg_BSDam,ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
set udg_BSTarget=GetSpellTargetUnit()
call TriggerSleepAction(0.01)
call SetUnitPositionLoc(GetTriggerUnit(),GetUnitLoc(udg_BSTarget))
call TriggerSleepAction(0.01)
call IssueTargetOrderBJ(GetTriggerUnit(),"attack",udg_BSTarget)
endfunction
function InitTrig_blink_strike takes nothing returns nothing
set gg_trg_blink_strike=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_blink_strike,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_blink_strike,Condition(function Trig_blink_strike_Conditions))
call TriggerAddAction(gg_trg_blink_strike,function Trig_blink_strike_Actions)
endfunction
function Trig_phantom_refresh_Func002001002001 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='U00B')
endfunction
function Trig_phantom_refresh_Func002001002002 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==GetTriggerPlayer())
endfunction
function Trig_phantom_refresh_Func002001002 takes nothing returns boolean
return GetBooleanAnd(Trig_phantom_refresh_Func002001002001(),Trig_phantom_refresh_Func002001002002())
endfunction
function Trig_phantom_refresh_Func002A takes nothing returns nothing
if(GetUnitAbilityLevelSwapped('A03P',GetEnumUnit())==1) then
call SetUnitVertexColorBJ(GetEnumUnit(),100,100,100,40.00)
elseif(GetUnitAbilityLevelSwapped('A03P',GetEnumUnit())==2) then
call SetUnitVertexColorBJ(GetEnumUnit(),100,100,100,60.00)
elseif(GetUnitAbilityLevelSwapped('A03P',GetEnumUnit())==3) then
call SetUnitVertexColorBJ(GetEnumUnit(),100,100,100,80.00)
elseif(GetUnitAbilityLevelSwapped('A03P',GetEnumUnit())==4) then
call SetUnitVertexColorBJ(GetEnumUnit(),100,100,100,99.00)
endif
call CreateNUnitsAtLoc(1,'e00C',GetTriggerPlayer(),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(3.00,'BTLF',GetLastCreatedUnit())
call UnitAddAbilityBJ('A05Q',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"frostnova",GetEnumUnit())
call SetUnitPathing(GetLastCreatedUnit(),false)
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call UnitAddAbilityBJ('Aloc',GetLastCreatedUnit())
endfunction
function Trig_phantom_refresh_Actions takes nothing returns nothing
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_phantom_refresh_Func002001002)),function Trig_phantom_refresh_Func002A)
endfunction
function InitTrig_phantom_refresh takes nothing returns nothing
set gg_trg_phantom_refresh=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_phantom_refresh,Player(1),"-refresh",true)
call TriggerRegisterPlayerChatEvent(gg_trg_phantom_refresh,Player(2),"-refresh",true)
call TriggerRegisterPlayerChatEvent(gg_trg_phantom_refresh,Player(3),"-refresh",true)
call TriggerRegisterPlayerChatEvent(gg_trg_phantom_refresh,Player(4),"-refresh",true)
call TriggerRegisterPlayerChatEvent(gg_trg_phantom_refresh,Player(5),"-refresh",true)
call TriggerRegisterPlayerChatEvent(gg_trg_phantom_refresh,Player(7),"-refresh",true)
call TriggerRegisterPlayerChatEvent(gg_trg_phantom_refresh,Player(8),"-refresh",true)
call TriggerRegisterPlayerChatEvent(gg_trg_phantom_refresh,Player(9),"-refresh",true)
call TriggerRegisterPlayerChatEvent(gg_trg_phantom_refresh,Player(10),"-refresh",true)
call TriggerRegisterPlayerChatEvent(gg_trg_phantom_refresh,Player(11),"-refresh",true)
call TriggerAddAction(gg_trg_phantom_refresh,function Trig_phantom_refresh_Actions)
endfunction
function Trig_blur_learned_Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A03P',GetTriggerUnit())==1)) then
return false
endif
return true
endfunction
function Trig_blur_learned_Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A03P',GetTriggerUnit())==2)) then
return false
endif
return true
endfunction
function Trig_blur_learned_Func003C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A03P',GetTriggerUnit())==3)) then
return false
endif
return true
endfunction
function Trig_blur_learned_Func004C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A03P',GetTriggerUnit())==4)) then
return false
endif
return true
endfunction
function Trig_blur_learned_Conditions takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A03P')) then
return false
endif
return true
endfunction
function Trig_blur_learned_Actions takes nothing returns nothing
if(Trig_blur_learned_Func001C()) then
call SetUnitVertexColorBJ(GetTriggerUnit(),100,100,100,40.00)
else
call DoNothing()
endif
if(Trig_blur_learned_Func002C()) then
call SetUnitVertexColorBJ(GetTriggerUnit(),100,100,100,60.00)
else
call DoNothing()
endif
if(Trig_blur_learned_Func003C()) then
call SetUnitVertexColorBJ(GetTriggerUnit(),100,100,100,80.00)
else
call DoNothing()
endif
if(Trig_blur_learned_Func004C()) then
call SetUnitVertexColorBJ(GetTriggerUnit(),100,100,100,99.00)
else
call DoNothing()
endif
endfunction
function InitTrig_blur_learned takes nothing returns nothing
set gg_trg_blur_learned=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_blur_learned,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(gg_trg_blur_learned,Condition(function Trig_blur_learned_Conditions))
call TriggerAddAction(gg_trg_blur_learned,function Trig_blur_learned_Actions)
endfunction
function Trig_moonglaive_3_Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A041',GetTriggerUnit())==4)) then
return false
endif
return true
endfunction
function Trig_moonglaive_3_Conditions takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A041')) then
return false
endif
return true
endfunction
function Trig_moonglaive_3_Actions takes nothing returns nothing
call SetPlayerTechResearchedSwap('Remg',GetUnitAbilityLevelSwapped('A041',GetTriggerUnit()),GetOwningPlayer(GetLearningUnit()))
if(Trig_moonglaive_3_Func002C()) then
call DestroyTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function InitTrig_moonglaive_3 takes nothing returns nothing
set gg_trg_moonglaive_3=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_moonglaive_3,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(gg_trg_moonglaive_3,Condition(function Trig_moonglaive_3_Conditions))
call TriggerAddAction(gg_trg_moonglaive_3,function Trig_moonglaive_3_Actions)
endfunction
function Trig_take_aim_Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A03U',GetTriggerUnit())==4)) then
return false
endif
return true
endfunction
function Trig_take_aim_Conditions takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A03U')) then
return false
endif
return true
endfunction
function Trig_take_aim_Actions takes nothing returns nothing
call SetPlayerTechResearchedSwap('R005',GetUnitAbilityLevelSwapped('A03U',GetTriggerUnit()),GetOwningPlayer(GetLearningUnit()))
if(Trig_take_aim_Func002C()) then
call DestroyTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function InitTrig_take_aim takes nothing returns nothing
set gg_trg_take_aim=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_take_aim,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(gg_trg_take_aim,Condition(function Trig_take_aim_Conditions))
call TriggerAddAction(gg_trg_take_aim,function Trig_take_aim_Actions)
endfunction
function Trig_dragon_bug_Func005C takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_DragonUser)==true)) then
return false
endif
return true
endfunction
function Trig_dragon_bug_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A03G')) then
return false
endif
return true
endfunction
function Trig_dragon_bug_Actions takes nothing returns nothing
set udg_DragonUser=GetSpellAbilityUnit()
set udg_dragonskills=GetHeroSkillPoints(udg_DragonUser)
call ModifyHeroSkillPoints(udg_DragonUser,bj_MODIFYMETHOD_SET,0)
call PolledWait(60.00)
if(Trig_dragon_bug_Func005C()) then
call ModifyHeroSkillPoints(udg_DragonUser,bj_MODIFYMETHOD_SET,udg_dragonskills)
set udg_dragonskills=0
else
call DoNothing()
endif
endfunction
function InitTrig_dragon_bug takes nothing returns nothing
set gg_trg_dragon_bug=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_dragon_bug,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(gg_trg_dragon_bug,Condition(function Trig_dragon_bug_Conditions))
call TriggerAddAction(gg_trg_dragon_bug,function Trig_dragon_bug_Actions)
endfunction
function Trig_dragon_bug_2_Func003C takes nothing returns boolean
if((GetUnitTypeId(GetTriggerUnit())=='H00G')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H00F')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H00E')) then
return true
endif
return false
endfunction
function Trig_dragon_bug_2_Conditions takes nothing returns boolean
if(not Trig_dragon_bug_2_Func003C()) then
return false
endif
return true
endfunction
function Trig_dragon_bug_2_Actions takes nothing returns nothing
set udg_dragonskills=(udg_dragonskills+1)
call ModifyHeroSkillPoints(GetLevelingUnit(),bj_MODIFYMETHOD_SUB,1)
endfunction
function InitTrig_dragon_bug_2 takes nothing returns nothing
set gg_trg_dragon_bug_2=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_dragon_bug_2,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(gg_trg_dragon_bug_2,Condition(function Trig_dragon_bug_2_Conditions))
call TriggerAddAction(gg_trg_dragon_bug_2,function Trig_dragon_bug_2_Actions)
endfunction
function Trig_dragon_bug_3_Func004C takes nothing returns boolean
if((GetUnitTypeId(GetTriggerUnit())=='H00G')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H00F')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H00E')) then
return true
endif
return false
endfunction
function Trig_dragon_bug_3_Func001001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_DragonUser)==true)
endfunction
function Trig_dragon_bug_3_Conditions takes nothing returns boolean
if(not Trig_dragon_bug_3_Func004C()) then
return false
endif
return true
endfunction
function Trig_dragon_bug_3_Actions takes nothing returns nothing
loop
exitwhen(Trig_dragon_bug_3_Func001001())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,1))
endloop
call ModifyHeroSkillPoints(udg_DragonUser,bj_MODIFYMETHOD_SET,udg_dragonskills)
set udg_dragonskills=0
endfunction
function InitTrig_dragon_bug_3 takes nothing returns nothing
set gg_trg_dragon_bug_3=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_dragon_bug_3,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_dragon_bug_3,Condition(function Trig_dragon_bug_3_Conditions))
call TriggerAddAction(gg_trg_dragon_bug_3,function Trig_dragon_bug_3_Actions)
endfunction
function Trig_Freezing_field_Cast_Func001C takes nothing returns boolean
if((GetSpellAbilityId()=='A03R')) then
return true
endif
if((GetSpellAbilityId()=='A0AV')) then
return true
endif
return false
endfunction
function Trig_Freezing_field_Cast_Func003C takes nothing returns boolean
if(not(GetSpellAbilityId()=='A03R')) then
return false
endif
return true
endfunction
function Trig_Freezing_field_Cast_Conditions takes nothing returns boolean
if(not Trig_Freezing_field_Cast_Func001C()) then
return false
endif
return true
endfunction
function Trig_Freezing_field_Cast_Actions takes nothing returns nothing
set udg_FFHero=GetTriggerUnit()
if(Trig_Freezing_field_Cast_Func003C()) then
set udg_FFLv=GetUnitAbilityLevelSwapped('A03R',GetTriggerUnit())
else
set udg_FFLv=(GetUnitAbilityLevelSwapped('A0AV',GetTriggerUnit())+1)
endif
call EnableTrigger(gg_trg_FreezingFieldSpawn2)
endfunction
function InitTrig_Freezing_field_Cast takes nothing returns nothing
set gg_trg_Freezing_field_Cast=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Freezing_field_Cast,EVENT_PLAYER_UNIT_SPELL_CHANNEL)
call TriggerAddCondition(gg_trg_Freezing_field_Cast,Condition(function Trig_Freezing_field_Cast_Conditions))
call TriggerAddAction(gg_trg_Freezing_field_Cast,function Trig_Freezing_field_Cast_Actions)
endfunction
function Trig_Freezing_field_end_Func002C takes nothing returns boolean
if((GetSpellAbilityId()=='A03R')) then
return true
endif
if((GetSpellAbilityId()=='A0AV')) then
return true
endif
return false
endfunction
function Trig_Freezing_field_end_Func004001003001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_FFHero))==false)
endfunction
function Trig_Freezing_field_end_Func004001003002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='e00C')
endfunction
function Trig_Freezing_field_end_Func004001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Freezing_field_end_Func004001003001(),Trig_Freezing_field_end_Func004001003002())
endfunction
function Trig_Freezing_field_end_Func004A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Freezing_field_end_Conditions takes nothing returns boolean
if(not Trig_Freezing_field_end_Func002C()) then
return false
endif
return true
endfunction
function Trig_Freezing_field_end_Actions takes nothing returns nothing
set bj_wantDestroyGroup=true
call DisableTrigger(gg_trg_FreezingFieldSpawn2)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(1200.00,GetUnitLoc(udg_FFHero),Condition(function Trig_Freezing_field_end_Func004001003)),function Trig_Freezing_field_end_Func004A)
endfunction
function InitTrig_Freezing_field_end takes nothing returns nothing
set gg_trg_Freezing_field_end=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Freezing_field_end,EVENT_PLAYER_UNIT_SPELL_ENDCAST)
call TriggerAddCondition(gg_trg_Freezing_field_end,Condition(function Trig_Freezing_field_end_Conditions))
call TriggerAddAction(gg_trg_Freezing_field_end,function Trig_Freezing_field_end_Actions)
endfunction
function Trig_FreezingFieldSpawn2_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'e00C',GetOwningPlayer(udg_FFHero),PolarProjectionBJ(GetUnitLoc(udg_FFHero),GetRandomReal(125.00,635.00),GetRandomDirectionDeg()),bj_UNIT_FACING)
call UnitAddAbilityBJ('A03X',GetLastCreatedUnit())
call SetUnitAbilityLevelSwapped('A03X',GetLastCreatedUnit(),udg_FFLv)
call SetUnitPathing(GetLastCreatedUnit(),false)
call IssueTargetOrderBJ(GetLastCreatedUnit(),"frostnova",GetLastCreatedUnit())
call UnitApplyTimedLifeBJ(0.25,'BTLF',GetLastCreatedUnit())
endfunction
function InitTrig_FreezingFieldSpawn2 takes nothing returns nothing
set gg_trg_FreezingFieldSpawn2=CreateTrigger()
call DisableTrigger(gg_trg_FreezingFieldSpawn2)
call TriggerRegisterTimerEventPeriodic(gg_trg_FreezingFieldSpawn2,0.10)
call TriggerAddAction(gg_trg_FreezingFieldSpawn2,function Trig_FreezingFieldSpawn2_Actions)
endfunction
function Trig_Morph_learned_Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A040',GetTriggerUnit())==1)) then
return false
endif
return true
endfunction
function Trig_Morph_learned_Conditions takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A040')) then
return false
endif
return true
endfunction
function Trig_Morph_learned_Actions takes nothing returns nothing
if(Trig_Morph_learned_Func001C()) then
call UnitAddAbilityBJ('A048',GetTriggerUnit())
else
call SetUnitAbilityLevelSwapped('A048',GetTriggerUnit(),GetUnitAbilityLevelSwapped('A040',GetTriggerUnit()))
endif
endfunction
function InitTrig_Morph_learned takes nothing returns nothing
set gg_trg_Morph_learned=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Morph_learned,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(gg_trg_Morph_learned,Condition(function Trig_Morph_learned_Conditions))
call TriggerAddAction(gg_trg_Morph_learned,function Trig_Morph_learned_Actions)
endfunction
function Trig_morph_turn_on_Func004Func002C takes nothing returns boolean
if((GetIssuedOrderIdBJ()==String2OrderIdBJ("blackarrowon"))) then
return true
endif
if((GetIssuedOrderIdBJ()==String2OrderIdBJ("flamingarrows"))) then
return true
endif
return false
endfunction
function Trig_morph_turn_on_Func004C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='O00P')) then
return false
endif
if(not Trig_morph_turn_on_Func004Func002C()) then
return false
endif
return true
endfunction
function Trig_morph_turn_on_Func002C takes nothing returns boolean
if(not(GetIssuedOrderIdBJ()==String2OrderIdBJ("flamingarrows"))) then
return false
endif
return true
endfunction
function Trig_morph_turn_on_Func003C takes nothing returns boolean
if(not(GetIssuedOrderIdBJ()==String2OrderIdBJ("blackarrowon"))) then
return false
endif
return true
endfunction
function Trig_morph_turn_on_Conditions takes nothing returns boolean
if(not Trig_morph_turn_on_Func004C()) then
return false
endif
return true
endfunction
function Trig_morph_turn_on_Actions takes nothing returns nothing
set udg_MorphlingHero=GetTriggerUnit()
if(Trig_morph_turn_on_Func002C()) then
call EnableTrigger(gg_trg_morph_str)
call DisableTrigger(gg_trg_morph_agl)
else
call DoNothing()
endif
if(Trig_morph_turn_on_Func003C()) then
call EnableTrigger(gg_trg_morph_agl)
call DisableTrigger(gg_trg_morph_str)
else
call DoNothing()
endif
endfunction
function InitTrig_morph_turn_on takes nothing returns nothing
set gg_trg_morph_turn_on=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_morph_turn_on,EVENT_PLAYER_UNIT_ISSUED_ORDER)
call TriggerAddCondition(gg_trg_morph_turn_on,Condition(function Trig_morph_turn_on_Conditions))
call TriggerAddAction(gg_trg_morph_turn_on,function Trig_morph_turn_on_Actions)
endfunction
function Trig_morph_turn_off_Func003Func002C takes nothing returns boolean
if((GetIssuedOrderIdBJ()==String2OrderIdBJ("blackarrowoff"))) then
return true
endif
if((GetIssuedOrderIdBJ()==String2OrderIdBJ("unflamingarrows"))) then
return true
endif
return false
endfunction
function Trig_morph_turn_off_Func003C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='O00P')) then
return false
endif
if(not Trig_morph_turn_off_Func003Func002C()) then
return false
endif
return true
endfunction
function Trig_morph_turn_off_Func001C takes nothing returns boolean
if(not(GetIssuedOrderIdBJ()==String2OrderIdBJ("unflamingarrows"))) then
return false
endif
return true
endfunction
function Trig_morph_turn_off_Func002C takes nothing returns boolean
if(not(GetIssuedOrderIdBJ()==String2OrderIdBJ("blackarrowoff"))) then
return false
endif
return true
endfunction
function Trig_morph_turn_off_Conditions takes nothing returns boolean
if(not Trig_morph_turn_off_Func003C()) then
return false
endif
return true
endfunction
function Trig_morph_turn_off_Actions takes nothing returns nothing
if(Trig_morph_turn_off_Func001C()) then
call DisableTrigger(gg_trg_morph_str)
else
call DoNothing()
endif
if(Trig_morph_turn_off_Func002C()) then
call DisableTrigger(gg_trg_morph_agl)
else
call DoNothing()
endif
endfunction
function InitTrig_morph_turn_off takes nothing returns nothing
set gg_trg_morph_turn_off=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_morph_turn_off,EVENT_PLAYER_UNIT_ISSUED_ORDER)
call TriggerAddCondition(gg_trg_morph_turn_off,Condition(function Trig_morph_turn_off_Conditions))
call TriggerAddAction(gg_trg_morph_turn_off,function Trig_morph_turn_off_Actions)
endfunction
function Trig_morph_str_Func001C takes nothing returns boolean
if(not(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_MorphlingHero,false)>(2*GetUnitAbilityLevelSwapped('A040',udg_MorphlingHero)))) then
return false
endif
if(not(GetUnitStateSwap(UNIT_STATE_MANA,udg_MorphlingHero)>=10.00)) then
return false
endif
return true
endfunction
function Trig_morph_str_Actions takes nothing returns nothing
if(Trig_morph_str_Func001C()) then
call SetUnitManaBJ(udg_MorphlingHero,(GetUnitStateSwap(UNIT_STATE_MANA,udg_MorphlingHero)-10.00))
call ModifyHeroStat(bj_HEROSTAT_STR,udg_MorphlingHero,bj_MODIFYMETHOD_ADD,(2*GetUnitAbilityLevelSwapped('A040',udg_MorphlingHero)))
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_MorphlingHero,bj_MODIFYMETHOD_SUB,(2*GetUnitAbilityLevelSwapped('A040',udg_MorphlingHero)))
else
call DoNothing()
endif
endfunction
function InitTrig_morph_str takes nothing returns nothing
set gg_trg_morph_str=CreateTrigger()
call DisableTrigger(gg_trg_morph_str)
call TriggerRegisterTimerEventPeriodic(gg_trg_morph_str,1.00)
call TriggerAddAction(gg_trg_morph_str,function Trig_morph_str_Actions)
endfunction
function Trig_morph_agl_Func001C takes nothing returns boolean
if(not(GetHeroStatBJ(bj_HEROSTAT_STR,udg_MorphlingHero,false)>(2*GetUnitAbilityLevelSwapped('A040',udg_MorphlingHero)))) then
return false
endif
if(not(GetUnitStateSwap(UNIT_STATE_MANA,udg_MorphlingHero)>=10.00)) then
return false
endif
return true
endfunction
function Trig_morph_agl_Actions takes nothing returns nothing
if(Trig_morph_agl_Func001C()) then
call SetUnitManaBJ(udg_MorphlingHero,(GetUnitStateSwap(UNIT_STATE_MANA,udg_MorphlingHero)-10.00))
call ModifyHeroStat(bj_HEROSTAT_STR,udg_MorphlingHero,bj_MODIFYMETHOD_SUB,(2*GetUnitAbilityLevelSwapped('A040',udg_MorphlingHero)))
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_MorphlingHero,bj_MODIFYMETHOD_ADD,(2*GetUnitAbilityLevelSwapped('A040',udg_MorphlingHero)))
else
call DoNothing()
endif
endfunction
function InitTrig_morph_agl takes nothing returns nothing
set gg_trg_morph_agl=CreateTrigger()
call DisableTrigger(gg_trg_morph_agl)
call TriggerRegisterTimerEventPeriodic(gg_trg_morph_agl,1.00)
call TriggerAddAction(gg_trg_morph_agl,function Trig_morph_agl_Actions)
endfunction
function Trig_morphling_attribute_Conditions takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A04H')) then
return false
endif
return true
endfunction
function Trig_morphling_attribute_Actions takes nothing returns nothing
call ModifyHeroStat(bj_HEROSTAT_STR,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,2)
call ModifyHeroStat(bj_HEROSTAT_AGI,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,2)
endfunction
function InitTrig_morphling_attribute takes nothing returns nothing
set gg_trg_morphling_attribute=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_morphling_attribute,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(gg_trg_morphling_attribute,Condition(function Trig_morphling_attribute_Conditions))
call TriggerAddAction(gg_trg_morphling_attribute,function Trig_morphling_attribute_Actions)
endfunction
function Trig_Copy_steal_Func006C takes nothing returns boolean
if(not(GetTriggerUnit()!=udg_MorphlingCopyUnit)) then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(GetSpellAbilityId()!='A01T')) then
return false
endif
if(not(GetSpellAbilityId()!='A02W')) then
return false
endif
if(not(GetSpellAbilityId()!='AEbl')) then
return false
endif
if(not(GetSpellAbilityId()!='ACr2')) then
return false
endif
if(not(GetSpellAbilityId()!='A01A')) then
return false
endif
if(not(GetSpellAbilityId()!='A01B')) then
return false
endif
if(not(GetSpellAbilityId()!='A01G')) then
return false
endif
if(not(GetSpellAbilityId()!='A01J')) then
return false
endif
if(not(GetSpellAbilityId()!='A03G')) then
return false
endif
if(not(GetSpellAbilityId()!='A0BG')) then
return false
endif
if(not(GetSpellAbilityId()!='A0A5')) then
return false
endif
if(not(GetSpellAbilityId()!='A0A7')) then
return false
endif
if(not(GetSpellAbilityId()!='AIrc')) then
return false
endif
if(not(GetSpellAbilityId()!='A054')) then
return false
endif
if(not(GetSpellAbilityId()!='A05Y')) then
return false
endif
if(not(GetSpellAbilityId()!='A08L')) then
return false
endif
if(not(GetSpellAbilityId()!='A092')) then
return false
endif
if(not(GetSpellAbilityId()!='A090')) then
return false
endif
if(not(GetSpellAbilityId()!='A08Z')) then
return false
endif
if(not(GetSpellAbilityId()!='A08Y')) then
return false
endif
if(not(GetSpellAbilityId()!='Afod')) then
return false
endif
if(not(GetSpellAbilityId()!='A0AE')) then
return false
endif
if(not(GetSpellAbilityId()!='A0AD')) then
return false
endif
if(not(GetSpellAbilityId()!='A0AC')) then
return false
endif
if(not(GetSpellAbilityId()!='A0AB')) then
return false
endif
if(not(GetSpellAbilityId()!='A0AA')) then
return false
endif
if(not(GetSpellAbilityId()!='A0A9')) then
return false
endif
if(not(GetSpellAbilityId()!='A0AI')) then
return false
endif
if(not(GetSpellAbilityId()!='AChx')) then
return false
endif
if(not(GetSpellAbilityId()!='ACrj')) then
return false
endif
if(not(GetSpellAbilityId()!='AIpg')) then
return false
endif
if(not(GetSpellAbilityId()!='ACch')) then
return false
endif
if(not(GetSpellAbilityId()!='A017')) then
return false
endif
if(not(GetSpellAbilityId()!='AIil')) then
return false
endif
if(not(GetSpellAbilityId()!='AIxk')) then
return false
endif
if(not(GetSpellAbilityId()!='A05Z')) then
return false
endif
if(not(GetSpellAbilityId()!='AIcy')) then
return false
endif
if(not(GetSpellAbilityId()!='AIdb')) then
return false
endif
if(not(GetSpellAbilityId()!='A0BE')) then
return false
endif
if(not(GetSpellAbilityId()!='A0AG')) then
return false
endif
if(not(GetSpellAbilityId()!='AEvi')) then
return false
endif
if(not(GetSpellAbilityId()!='A03R')) then
return false
endif
if(not(GetSpellAbilityId()!='A0AV')) then
return false
endif
if(not(GetSpellAbilityId()!='A066')) then
return false
endif
if(not(GetSpellAbilityId()!='A019')) then
return false
endif
if(not(GetSpellAbilityId()!='AIpl')) then
return false
endif
if(not(GetSpellAbilityId()!='AIsw')) then
return false
endif
if(not(GetSpellAbilityId()!='A00G')) then
return false
endif
if(not(GetSpellAbilityId()!='A06Q')) then
return false
endif
if(not(GetSpellAbilityId()!='AEtq')) then
return false
endif
if(not(GetSpellAbilityId()!='A07Y')) then
return false
endif
if(not(GetSpellAbilityId()!='A06U')) then
return false
endif
if(not(GetSpellAbilityId()!='A07C')) then
return false
endif
if(not(GetSpellAbilityId()!='A06L')) then
return false
endif
if(not(GetSpellAbilityId()!='A093')) then
return false
endif
if(not(GetSpellAbilityId()!='AHfa')) then
return false
endif
if(not(DistanceBetweenPoints(GetUnitLoc(GetTriggerUnit()),GetUnitLoc(udg_MorphlingCopyUnit))<=800.00)) then
return false
endif
return true
endfunction
function Trig_Copy_steal_Conditions takes nothing returns boolean
if(not Trig_Copy_steal_Func006C()) then
return false
endif
return true
endfunction
function Trig_Copy_steal_Actions takes nothing returns nothing
call UnitRemoveAbilityBJ(udg_MorphAbil,udg_MorphlingCopyUnit)
set udg_MorphAbil=GetSpellAbilityId()
call UnitAddAbilityBJ(udg_MorphAbil,udg_MorphlingCopyUnit)
call SetUnitAbilityLevelSwapped(udg_MorphAbil,udg_MorphlingCopyUnit,GetUnitAbilityLevelSwapped(udg_MorphAbil,GetTriggerUnit()))
call DisableTrigger(GetTriggeringTrigger())
endfunction
function InitTrig_Copy_steal takes nothing returns nothing
set gg_trg_Copy_steal=CreateTrigger()
call DisableTrigger(gg_trg_Copy_steal)
call TriggerRegisterAnyUnitEventBJ(gg_trg_Copy_steal,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(gg_trg_Copy_steal,Condition(function Trig_Copy_steal_Conditions))
call TriggerAddAction(gg_trg_Copy_steal,function Trig_Copy_steal_Actions)
endfunction
function Trig_Copy_Activate_Conditions takes nothing returns boolean
if(not(GetIssuedOrderIdBJ()==String2OrderIdBJ("manashieldon"))) then
return false
endif
if(not(GetUnitTypeId(GetOrderedUnit())=='O00P')) then
return false
endif
return true
endfunction
function Trig_Copy_Activate_Actions takes nothing returns nothing
set udg_MorphlingCopyUnit=GetOrderedUnit()
call EnableTrigger(gg_trg_Copy_steal)
endfunction
function InitTrig_Copy_Activate takes nothing returns nothing
set gg_trg_Copy_Activate=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Copy_Activate,EVENT_PLAYER_UNIT_ISSUED_ORDER)
call TriggerAddCondition(gg_trg_Copy_Activate,Condition(function Trig_Copy_Activate_Conditions))
call TriggerAddAction(gg_trg_Copy_Activate,function Trig_Copy_Activate_Actions)
endfunction
function Trig_Copy_Deactivate_Conditions takes nothing returns boolean
if(not(GetIssuedOrderIdBJ()==String2OrderIdBJ("manashieldoff"))) then
return false
endif
if(not(GetUnitTypeId(GetOrderedUnit())=='O00P')) then
return false
endif
return true
endfunction
function Trig_Copy_Deactivate_Actions takes nothing returns nothing
call DisableTrigger(gg_trg_Copy_steal)
endfunction
function InitTrig_Copy_Deactivate takes nothing returns nothing
set gg_trg_Copy_Deactivate=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Copy_Deactivate,EVENT_PLAYER_UNIT_ISSUED_ORDER)
call TriggerAddCondition(gg_trg_Copy_Deactivate,Condition(function Trig_Copy_Deactivate_Conditions))
call TriggerAddAction(gg_trg_Copy_Deactivate,function Trig_Copy_Deactivate_Actions)
endfunction
function Trig_Overpower_Func002C takes nothing returns boolean
if(not(udg_OPCount>=5.00)) then
return false
endif
return true
endfunction
function Trig_Overpower_Conditions takes nothing returns boolean
if(not(UnitHasBuffBJ(GetAttacker(),'B02O')==true)) then
return false
endif
return true
endfunction
function Trig_Overpower_Actions takes nothing returns nothing
set udg_OPCount=(udg_OPCount+1)
if(Trig_Overpower_Func002C()) then
call UnitRemoveBuffBJ('B02O',GetAttacker())
set udg_OPCount=0
else
call DoNothing()
endif
endfunction
function InitTrig_Overpower takes nothing returns nothing
set gg_trg_Overpower=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Overpower,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Overpower,Condition(function Trig_Overpower_Conditions))
call TriggerAddAction(gg_trg_Overpower,function Trig_Overpower_Actions)
endfunction
function Trig_Enrage_Conditions takes nothing returns boolean
if(not(UnitHasBuffBJ(GetAttacker(),'B02H')==true)) then
return false
endif
return true
endfunction
function Trig_Enrage_Actions takes nothing returns nothing
call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetAttacker())*(0.02+(0.02*I2R(GetUnitAbilityLevelSwapped('A050',GetAttacker()))))),ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL)
endfunction
function InitTrig_Enrage takes nothing returns nothing
set gg_trg_Enrage=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Enrage,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Enrage,Condition(function Trig_Enrage_Conditions))
call TriggerAddAction(gg_trg_Enrage,function Trig_Enrage_Actions)
endfunction
function Trig_timer2_expires_Actions takes nothing returns nothing
set udg_KillInt[2]=0
endfunction
function InitTrig_timer2_expires takes nothing returns nothing
set gg_trg_timer2_expires=CreateTrigger()
call TriggerRegisterTimerExpireEventBJ(gg_trg_timer2_expires,udg_KillTimer[2])
call TriggerAddAction(gg_trg_timer2_expires,function Trig_timer2_expires_Actions)
endfunction
function Trig_timer3_Actions takes nothing returns nothing
set udg_KillInt[3]=0
endfunction
function InitTrig_timer3 takes nothing returns nothing
set gg_trg_timer3=CreateTrigger()
call TriggerRegisterTimerExpireEventBJ(gg_trg_timer3,udg_KillTimer[3])
call TriggerAddAction(gg_trg_timer3,function Trig_timer3_Actions)
endfunction
function Trig_timer4_Actions takes nothing returns nothing
set udg_KillInt[4]=0
endfunction
function InitTrig_timer4 takes nothing returns nothing
set gg_trg_timer4=CreateTrigger()
call TriggerRegisterTimerExpireEventBJ(gg_trg_timer4,udg_KillTimer[4])
call TriggerAddAction(gg_trg_timer4,function Trig_timer4_Actions)
endfunction
function Trig_timer5_Actions takes nothing returns nothing
set udg_KillInt[5]=0
endfunction
function InitTrig_timer5 takes nothing returns nothing
set gg_trg_timer5=CreateTrigger()
call TriggerRegisterTimerExpireEventBJ(gg_trg_timer5,udg_KillTimer[5])
call TriggerAddAction(gg_trg_timer5,function Trig_timer5_Actions)
endfunction
function Trig_timer6_Actions takes nothing returns nothing
set udg_KillInt[6]=0
endfunction
function InitTrig_timer6 takes nothing returns nothing
set gg_trg_timer6=CreateTrigger()
call TriggerRegisterTimerExpireEventBJ(gg_trg_timer6,udg_KillTimer[6])
call TriggerAddAction(gg_trg_timer6,function Trig_timer6_Actions)
endfunction
function Trig_timer8_Actions takes nothing returns nothing
set udg_KillInt[8]=0
endfunction
function InitTrig_timer8 takes nothing returns nothing
set gg_trg_timer8=CreateTrigger()
call TriggerRegisterTimerExpireEventBJ(gg_trg_timer8,udg_KillTimer[8])
call TriggerAddAction(gg_trg_timer8,function Trig_timer8_Actions)
endfunction
function Trig_timer9_Actions takes nothing returns nothing
set udg_KillInt[9]=0
endfunction
function InitTrig_timer9 takes nothing returns nothing
set gg_trg_timer9=CreateTrigger()
call TriggerRegisterTimerExpireEventBJ(gg_trg_timer9,udg_KillTimer[9])
call TriggerAddAction(gg_trg_timer9,function Trig_timer9_Actions)
endfunction
function Trig_timer10_Actions takes nothing returns nothing
set udg_KillInt[10]=0
endfunction
function InitTrig_timer10 takes nothing returns nothing
set gg_trg_timer10=CreateTrigger()
call TriggerRegisterTimerExpireEventBJ(gg_trg_timer10,udg_KillTimer[10])
call TriggerAddAction(gg_trg_timer10,function Trig_timer10_Actions)
endfunction
function Trig_timer11_Actions takes nothing returns nothing
set udg_KillInt[11]=0
endfunction
function InitTrig_timer11 takes nothing returns nothing
set gg_trg_timer11=CreateTrigger()
call TriggerRegisterTimerExpireEventBJ(gg_trg_timer11,udg_KillTimer[11])
call TriggerAddAction(gg_trg_timer11,function Trig_timer11_Actions)
endfunction
function Trig_timer12_Actions takes nothing returns nothing
set udg_KillInt[12]=0
endfunction
function InitTrig_timer12 takes nothing returns nothing
set gg_trg_timer12=CreateTrigger()
call TriggerRegisterTimerExpireEventBJ(gg_trg_timer12,udg_KillTimer[12])
call TriggerAddAction(gg_trg_timer12,function Trig_timer12_Actions)
endfunction
function Trig_SentinelKillNew_Func038Func007C takes nothing returns boolean
if((GetOwningPlayer(GetKillingUnitBJ())==Player(1))) then
return true
endif
if((GetOwningPlayer(GetKillingUnitBJ())==Player(2))) then
return true
endif
if((GetOwningPlayer(GetKillingUnitBJ())==Player(3))) then
return true
endif
if((GetOwningPlayer(GetKillingUnitBJ())==Player(5))) then
return true
endif
if((GetOwningPlayer(GetKillingUnitBJ())==Player(4))) then
return true
endif
return false
endfunction
function Trig_SentinelKillNew_Func038C takes nothing returns boolean
if(not(IsUnitType(GetDyingUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(GetOwningPlayer(GetDyingUnit())!=Player(1))) then
return false
endif
if(not(GetOwningPlayer(GetDyingUnit())!=Player(2))) then
return false
endif
if(not(GetOwningPlayer(GetDyingUnit())!=Player(5))) then
return false
endif
if(not(GetOwningPlayer(GetDyingUnit())!=Player(4))) then
return false
endif
if(not(GetOwningPlayer(GetDyingUnit())!=Player(3))) then
return false
endif
if(not Trig_SentinelKillNew_Func038Func007C()) then
return false
endif
return true
endfunction
function Trig_SentinelKillNew_Func009C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==3)) then
return false
endif
return true
endfunction
function Trig_SentinelKillNew_Func010C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==4)) then
return false
endif
return true
endfunction
function Trig_SentinelKillNew_Func011C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==5)) then
return false
endif
return true
endfunction
function Trig_SentinelKillNew_Func012C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==6)) then
return false
endif
return true
endfunction
function Trig_SentinelKillNew_Func013C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==7)) then
return false
endif
return true
endfunction
function Trig_SentinelKillNew_Func014C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==8)) then
return false
endif
return true
endfunction
function Trig_SentinelKillNew_Func015C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==9)) then
return false
endif
return true
endfunction
function Trig_SentinelKillNew_Func016C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]>9)) then
return false
endif
return true
endfunction
function Trig_SentinelKillNew_Func021C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]==3)) then
return false
endif
return true
endfunction
function Trig_SentinelKillNew_Func022C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]==4)) then
return false
endif
return true
endfunction
function Trig_SentinelKillNew_Func023C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]==5)) then
return false
endif
return true
endfunction
function Trig_SentinelKillNew_Func024C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]==6)) then
return false
endif
return true
endfunction
function Trig_SentinelKillNew_Func025C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]==7)) then
return false
endif
return true
endfunction
function Trig_SentinelKillNew_Func026C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]==8)) then
return false
endif
return true
endfunction
function Trig_SentinelKillNew_Func027C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]==9)) then
return false
endif
return true
endfunction
function Trig_SentinelKillNew_Func028C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]>9)) then
return false
endif
return true
endfunction
function Trig_SentinelKillNew_Func031Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(IsUnitEnemy(GetEnumUnit(),GetOwningPlayer(GetKillingUnitBJ()))==false)) then
return false
endif
return true
endfunction
function Trig_SentinelKillNew_Func031Func002C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(IsUnitEnemy(GetEnumUnit(),GetOwningPlayer(GetKillingUnitBJ()))==true)) then
return false
endif
return true
endfunction
function Trig_SentinelKillNew_Func031A takes nothing returns nothing
if(Trig_SentinelKillNew_Func031Func001C()) then
set udg_CHor=(udg_CHor+1)
else
call DoNothing()
endif
if(Trig_SentinelKillNew_Func031Func002C()) then
set udg_CHorT=(udg_CHorT+1)
else
call DoNothing()
endif
endfunction
function Trig_SentinelKillNew_Func032C takes nothing returns boolean
if(not(udg_CHor>(udg_CHorT+1))) then
return false
endif
return true
endfunction
function Trig_SentinelKillNew_Func033C takes nothing returns boolean
if(not(udg_TeamOwnage[1]>4)) then
return false
endif
return true
endfunction
function Trig_SentinelKillNew_Func035C takes nothing returns boolean
if(not(udg_KillInt[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]==2)) then
return false
endif
return true
endfunction
function Trig_SentinelKillNew_Func036C takes nothing returns boolean
if(not(udg_KillInt[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]>2)) then
return false
endif
return true
endfunction
function Trig_SentinelKillNew_Conditions takes nothing returns boolean
if(not Trig_SentinelKillNew_Func038C()) then
return false
endif
return true
endfunction
function Trig_SentinelKillNew_Actions takes nothing returns nothing
set bj_wantDestroyGroup=true
set udg_LBDeaths[7]=(udg_LBDeaths[7]+1)
set udg_LBDeaths[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]=(udg_LBDeaths[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]+1)
set udg_LBKills[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]=(udg_LBKills[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+1)
set udg_LBKills[1]=(udg_LBKills[1]+1)
call ConditionalTriggerExecute(gg_trg_update_leaderboard_kills)
set udg_KillinPlayer=GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))
call StartTimerBJ(udg_KillTimer[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))],false,11.50)
if(Trig_SentinelKillNew_Func009C()) then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]+GetPlayerName(GetOwningPlayer(GetDyingUnit())))+("|r's |c0000ff40killing spree|r has been ended by "+((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())))+"!(+50 gold)"))))
call AdjustPlayerStateBJ(50,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
else
call DoNothing()
endif
if(Trig_SentinelKillNew_Func010C()) then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]+GetPlayerName(GetOwningPlayer(GetDyingUnit())))+("|r's |c00400080dominating|r streak has been ended by "+((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())))+"!(+100 gold)"))))
call AdjustPlayerStateBJ(100,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
else
call DoNothing()
endif
if(Trig_SentinelKillNew_Func011C()) then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]+GetPlayerName(GetOwningPlayer(GetDyingUnit())))+("|r's |c00ff0080mega kill|r has been ended by "+((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())))+"!(+150 gold)"))))
call AdjustPlayerStateBJ(150,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
else
call DoNothing()
endif
if(Trig_SentinelKillNew_Func012C()) then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]+GetPlayerName(GetOwningPlayer(GetDyingUnit())))+("|r's |c00ff8000unstoppable|r streak has been ended by "+((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())))+"!(+200 gold)"))))
call AdjustPlayerStateBJ(200,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
else
call DoNothing()
endif
if(Trig_SentinelKillNew_Func013C()) then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]+GetPlayerName(GetOwningPlayer(GetDyingUnit())))+("|r's |c00808000wicked sick|r streak has been ended by "+((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())))+"!(+250 gold)"))))
call AdjustPlayerStateBJ(250,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
else
call DoNothing()
endif
if(Trig_SentinelKillNew_Func014C()) then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]+GetPlayerName(GetOwningPlayer(GetDyingUnit())))+("|r's |c00ff80ffmonster kill|r has been ended by "+((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())))+"!(+300 gold)"))))
call AdjustPlayerStateBJ(300,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
else
call DoNothing()
endif
if(Trig_SentinelKillNew_Func015C()) then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]+GetPlayerName(GetOwningPlayer(GetDyingUnit())))+("|r's |c00ff0000is GODLIKE|r streak has been ended by "+((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())))+"!(+350 gold)"))))
call AdjustPlayerStateBJ(350,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
else
call DoNothing()
endif
if(Trig_SentinelKillNew_Func016C()) then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]+GetPlayerName(GetOwningPlayer(GetDyingUnit())))+("|r's |c00ff8000beyond GODLIKE streak|r has been ended by "+((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())))+"!(+400 gold)"))))
call AdjustPlayerStateBJ(400,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
else
call DoNothing()
endif
set udg_TeamOwnage[1]=(udg_TeamOwnage[1]+1)
set udg_TeamOwnage[2]=0
set udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]=(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+1)
set udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]=0
if(Trig_SentinelKillNew_Func021C()) then
call PlaySoundBJ(gg_snd_Killing_Spree)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())))+"|r is on a |c0000ff40killing spree|r!"))
else
call DoNothing()
endif
if(Trig_SentinelKillNew_Func022C()) then
call PlaySoundBJ(gg_snd_Dominating)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())))+"|r is |c00400080dominating!|r"))
else
call DoNothing()
endif
if(Trig_SentinelKillNew_Func023C()) then
call PlaySoundBJ(gg_snd_MegaKill)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())))+"|r has a |c00ff0080mega kill|r!!"))
else
call DoNothing()
endif
if(Trig_SentinelKillNew_Func024C()) then
call PlaySoundBJ(gg_snd_Unstoppable)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())))+"|r is |c00ff8000unstoppable|r!!"))
else
call DoNothing()
endif
if(Trig_SentinelKillNew_Func025C()) then
call PlaySoundBJ(gg_snd_WhickedSick)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())))+"|r is |c00808000Whicked Sick|r!!"))
else
call DoNothing()
endif
if(Trig_SentinelKillNew_Func026C()) then
call PlaySoundBJ(gg_snd_monster_kill)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())))+"|r has a |c00ff80ffmonster kill|r!"))
else
call DoNothing()
endif
if(Trig_SentinelKillNew_Func027C()) then
call PlaySoundBJ(gg_snd_GodLike)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())))+"|r |c00ff0000is GODLIKE!!!|r"))
else
call DoNothing()
endif
if(Trig_SentinelKillNew_Func028C()) then
call PlaySoundBJ(gg_snd_HolyShit)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())))+"|r is |c00ff8000beyond GODLIKE|r!! Someone KILL HIM!"))
else
call DoNothing()
endif
set udg_CHor=0
set udg_CHorT=0
call ForGroupBJ(GetUnitsInRangeOfLocAll(800.00,GetUnitLoc(GetDyingUnit())),function Trig_SentinelKillNew_Func031A)
if(Trig_SentinelKillNew_Func032C()) then
call PlaySoundBJ(gg_snd_Combowhore)
else
call DoNothing()
endif
if(Trig_SentinelKillNew_Func033C()) then
call PolledWait(1.50)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"|c00ff0000The Sentinel|r are |c00ff0000OWNING!!!|r")
call PlaySoundBJ(gg_snd_Ownage)
else
call DoNothing()
endif
set udg_KillInt[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]=(udg_KillInt[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+1)
if(Trig_SentinelKillNew_Func035C()) then
call PolledWait(1.50)
call PlaySoundBJ(gg_snd_Double_Kill)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())))+"|r just got a |c000000ffdouble kill|r!"))
else
call DoNothing()
endif
if(Trig_SentinelKillNew_Func036C()) then
call PolledWait(1.55)
call PlaySoundBJ(gg_snd_triple_kill)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())))+"|r just got a |c0000ff40Triple Kill|r!!!"))
else
call DoNothing()
endif
endfunction
function InitTrig_SentinelKillNew takes nothing returns nothing
set gg_trg_SentinelKillNew=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_SentinelKillNew,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_SentinelKillNew,Condition(function Trig_SentinelKillNew_Conditions))
call TriggerAddAction(gg_trg_SentinelKillNew,function Trig_SentinelKillNew_Actions)
endfunction
function Trig_ScourgeKill_Func038Func007C takes nothing returns boolean
if((GetOwningPlayer(GetKillingUnitBJ())==Player(7))) then
return true
endif
if((GetOwningPlayer(GetKillingUnitBJ())==Player(8))) then
return true
endif
if((GetOwningPlayer(GetKillingUnitBJ())==Player(9))) then
return true
endif
if((GetOwningPlayer(GetKillingUnitBJ())==Player(10))) then
return true
endif
if((GetOwningPlayer(GetKillingUnitBJ())==Player(11))) then
return true
endif
return false
endfunction
function Trig_ScourgeKill_Func038C takes nothing returns boolean
if(not(IsUnitType(GetDyingUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(GetOwningPlayer(GetDyingUnit())!=Player(7))) then
return false
endif
if(not(GetOwningPlayer(GetDyingUnit())!=Player(8))) then
return false
endif
if(not(GetOwningPlayer(GetDyingUnit())!=Player(9))) then
return false
endif
if(not(GetOwningPlayer(GetDyingUnit())!=Player(10))) then
return false
endif
if(not(GetOwningPlayer(GetDyingUnit())!=Player(11))) then
return false
endif
if(not Trig_ScourgeKill_Func038Func007C()) then
return false
endif
return true
endfunction
function Trig_ScourgeKill_Func009C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==3)) then
return false
endif
return true
endfunction
function Trig_ScourgeKill_Func010C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==4)) then
return false
endif
return true
endfunction
function Trig_ScourgeKill_Func011C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==5)) then
return false
endif
return true
endfunction
function Trig_ScourgeKill_Func012C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==6)) then
return false
endif
return true
endfunction
function Trig_ScourgeKill_Func013C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==7)) then
return false
endif
return true
endfunction
function Trig_ScourgeKill_Func014C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==8)) then
return false
endif
return true
endfunction
function Trig_ScourgeKill_Func015C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==9)) then
return false
endif
return true
endfunction
function Trig_ScourgeKill_Func016C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]>9)) then
return false
endif
return true
endfunction
function Trig_ScourgeKill_Func021C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]==3)) then
return false
endif
return true
endfunction
function Trig_ScourgeKill_Func022C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]==4)) then
return false
endif
return true
endfunction
function Trig_ScourgeKill_Func023C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]==5)) then
return false
endif
return true
endfunction
function Trig_ScourgeKill_Func024C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]==6)) then
return false
endif
return true
endfunction
function Trig_ScourgeKill_Func025C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]==7)) then
return false
endif
return true
endfunction
function Trig_ScourgeKill_Func026C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]==8)) then
return false
endif
return true
endfunction
function Trig_ScourgeKill_Func027C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]==9)) then
return false
endif
return true
endfunction
function Trig_ScourgeKill_Func028C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]>9)) then
return false
endif
return true
endfunction
function Trig_ScourgeKill_Func031Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(IsUnitEnemy(GetEnumUnit(),GetOwningPlayer(GetKillingUnitBJ()))==false)) then
return false
endif
return true
endfunction
function Trig_ScourgeKill_Func031Func002C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(IsUnitEnemy(GetEnumUnit(),GetOwningPlayer(GetKillingUnitBJ()))==true)) then
return false
endif
return true
endfunction
function Trig_ScourgeKill_Func031A takes nothing returns nothing
if(Trig_ScourgeKill_Func031Func001C()) then
set udg_CHor=(udg_CHor+1)
else
call DoNothing()
endif
if(Trig_ScourgeKill_Func031Func002C()) then
set udg_CHorT=(udg_CHorT+1)
else
call DoNothing()
endif
endfunction
function Trig_ScourgeKill_Func032C takes nothing returns boolean
if(not(udg_CHor>(udg_CHorT+1))) then
return false
endif
return true
endfunction
function Trig_ScourgeKill_Func033C takes nothing returns boolean
if(not(udg_TeamOwnage[2]>4)) then
return false
endif
return true
endfunction
function Trig_ScourgeKill_Func035C takes nothing returns boolean
if(not(udg_KillInt[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]==2)) then
return false
endif
return true
endfunction
function Trig_ScourgeKill_Func036C takes nothing returns boolean
if(not(udg_KillInt[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]>2)) then
return false
endif
return true
endfunction
function Trig_ScourgeKill_Conditions takes nothing returns boolean
if(not Trig_ScourgeKill_Func038C()) then
return false
endif
return true
endfunction
function Trig_ScourgeKill_Actions takes nothing returns nothing
set bj_wantDestroyGroup=true
set udg_LBDeaths[1]=(udg_LBDeaths[1]+1)
set udg_LBDeaths[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]=(udg_LBDeaths[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]+1)
set udg_LBKills[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]=(udg_LBKills[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+1)
set udg_LBKills[7]=(udg_LBKills[7]+1)
call ConditionalTriggerExecute(gg_trg_update_leaderboard_kills)
set udg_KillinPlayer=GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))
call StartTimerBJ(udg_KillTimer[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))],false,11.50)
if(Trig_ScourgeKill_Func009C()) then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]+GetPlayerName(GetOwningPlayer(GetDyingUnit())))+("|r's |c0000ff40killing spree|r has been ended by "+((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())))+"!(+50 gold)"))))
call AdjustPlayerStateBJ(50,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
else
call DoNothing()
endif
if(Trig_ScourgeKill_Func010C()) then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]+GetPlayerName(GetOwningPlayer(GetDyingUnit())))+("|r's |c00400080dominating|r streak has been ended by "+((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())))+"!(+100 gold)"))))
call AdjustPlayerStateBJ(100,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
else
call DoNothing()
endif
if(Trig_ScourgeKill_Func011C()) then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]+GetPlayerName(GetOwningPlayer(GetDyingUnit())))+("|r's |c00ff0080mega kill|r has been ended by "+((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())))+"!(+150 gold)"))))
call AdjustPlayerStateBJ(150,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
else
call DoNothing()
endif
if(Trig_ScourgeKill_Func012C()) then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]+GetPlayerName(GetOwningPlayer(GetDyingUnit())))+("|r's |c00ff8000unstoppable|r streak has been ended by "+((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())))+"!(+200 gold)"))))
call AdjustPlayerStateBJ(200,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
else
call DoNothing()
endif
if(Trig_ScourgeKill_Func013C()) then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]+GetPlayerName(GetOwningPlayer(GetDyingUnit())))+("|r's |c00808000wicked sick|r streak has been ended by "+((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())))+"!(+250 gold)"))))
call AdjustPlayerStateBJ(250,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
else
call DoNothing()
endif
if(Trig_ScourgeKill_Func014C()) then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]+GetPlayerName(GetOwningPlayer(GetDyingUnit())))+("|r's |c00ff80ffmonster kill|r has been ended by "+((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())))+"!(+300 gold)"))))
call AdjustPlayerStateBJ(300,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
else
call DoNothing()
endif
if(Trig_ScourgeKill_Func015C()) then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]+GetPlayerName(GetOwningPlayer(GetDyingUnit())))+("|r's |c00ff0000is GODLIKE|r streak has been ended by "+((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())))+"!(+350 gold)"))))
call AdjustPlayerStateBJ(350,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
else
call DoNothing()
endif
if(Trig_ScourgeKill_Func016C()) then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]+GetPlayerName(GetOwningPlayer(GetDyingUnit())))+("|r's |c00ff8000beyond GODLIKE streak|r has been ended by "+((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())))+"!(+400 gold)"))))
call AdjustPlayerStateBJ(400,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
else
call DoNothing()
endif
set udg_TeamOwnage[2]=(udg_TeamOwnage[2]+1)
set udg_TeamOwnage[1]=0
set udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]=(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+1)
set udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]=0
if(Trig_ScourgeKill_Func021C()) then
call PlaySoundBJ(gg_snd_Killing_Spree)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())))+"|r is on a |c0000ff40killing spree|r!"))
else
call DoNothing()
endif
if(Trig_ScourgeKill_Func022C()) then
call PlaySoundBJ(gg_snd_Dominating)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())))+"|r is |c00400080dominating!|r"))
else
call DoNothing()
endif
if(Trig_ScourgeKill_Func023C()) then
call PlaySoundBJ(gg_snd_MegaKill)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())))+"|r has a |c00ff0080mega kill|r!!"))
else
call DoNothing()
endif
if(Trig_ScourgeKill_Func024C()) then
call PlaySoundBJ(gg_snd_Unstoppable)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())))+"|r is |c00ff8000unstoppable|r!!"))
else
call DoNothing()
endif
if(Trig_ScourgeKill_Func025C()) then
call PlaySoundBJ(gg_snd_WhickedSick)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())))+"|r is |c00808000Whicked Sick|r!!"))
else
call DoNothing()
endif
if(Trig_ScourgeKill_Func026C()) then
call PlaySoundBJ(gg_snd_monster_kill)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())))+"|r has a |c00ff80ffmonster kill|r!"))
else
call DoNothing()
endif
if(Trig_ScourgeKill_Func027C()) then
call PlaySoundBJ(gg_snd_GodLike)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())))+"|r |c00ff0000is GODLIKE!!!|r"))
else
call DoNothing()
endif
if(Trig_ScourgeKill_Func028C()) then
call PlaySoundBJ(gg_snd_HolyShit)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())))+"|r is |c00ff8000beyond GODLIKE|r!! Someone KILL HIM!"))
else
call DoNothing()
endif
set udg_CHor=0
set udg_CHorT=0
call ForGroupBJ(GetUnitsInRangeOfLocAll(800.00,GetUnitLoc(GetDyingUnit())),function Trig_ScourgeKill_Func031A)
if(Trig_ScourgeKill_Func032C()) then
call PlaySoundBJ(gg_snd_Combowhore)
else
call DoNothing()
endif
if(Trig_ScourgeKill_Func033C()) then
call PolledWait(1.50)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"|c00008000The Scourge|r are |c00008000OWNING!!!|r")
call PlaySoundBJ(gg_snd_Ownage)
else
call DoNothing()
endif
set udg_KillInt[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]=(udg_KillInt[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+1)
if(Trig_ScourgeKill_Func035C()) then
call PolledWait(1.55)
call PlaySoundBJ(gg_snd_Double_Kill)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())))+"|r just got a |c000000ffdouble kill|r!"))
else
call DoNothing()
endif
if(Trig_ScourgeKill_Func036C()) then
call PolledWait(1.50)
call PlaySoundBJ(gg_snd_triple_kill)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())))+"|r just got a |c0000ff40Triple Kill|r!!!"))
else
call DoNothing()
endif
endfunction
function InitTrig_ScourgeKill takes nothing returns nothing
set gg_trg_ScourgeKill=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_ScourgeKill,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_ScourgeKill,Condition(function Trig_ScourgeKill_Conditions))
call TriggerAddAction(gg_trg_ScourgeKill,function Trig_ScourgeKill_Actions)
endfunction
function Trig_player1kill_Func024C takes nothing returns boolean
if(not(IsUnitType(GetDyingUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(0))) then
return false
endif
if(not(GetOwningPlayer(GetDyingUnit())!=Player(1))) then
return false
endif
if(not(GetOwningPlayer(GetDyingUnit())!=Player(2))) then
return false
endif
if(not(GetOwningPlayer(GetDyingUnit())!=Player(5))) then
return false
endif
if(not(GetOwningPlayer(GetDyingUnit())!=Player(4))) then
return false
endif
if(not(GetOwningPlayer(GetDyingUnit())!=Player(3))) then
return false
endif
return true
endfunction
function Trig_player1kill_Func008C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==3)) then
return false
endif
return true
endfunction
function Trig_player1kill_Func009C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==4)) then
return false
endif
return true
endfunction
function Trig_player1kill_Func010C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==5)) then
return false
endif
return true
endfunction
function Trig_player1kill_Func011C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==6)) then
return false
endif
return true
endfunction
function Trig_player1kill_Func012C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==7)) then
return false
endif
return true
endfunction
function Trig_player1kill_Func013C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==8)) then
return false
endif
return true
endfunction
function Trig_player1kill_Func014C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==9)) then
return false
endif
return true
endfunction
function Trig_player1kill_Func015C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]>9)) then
return false
endif
return true
endfunction
function Trig_player1kill_Func021Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(IsUnitEnemy(GetEnumUnit(),GetOwningPlayer(GetKillingUnitBJ()))==false)) then
return false
endif
return true
endfunction
function Trig_player1kill_Func021Func002C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(IsUnitEnemy(GetEnumUnit(),GetOwningPlayer(GetKillingUnitBJ()))==true)) then
return false
endif
return true
endfunction
function Trig_player1kill_Func021A takes nothing returns nothing
if(Trig_player1kill_Func021Func001C()) then
set udg_CHor=(udg_CHor+1)
else
call DoNothing()
endif
if(Trig_player1kill_Func021Func002C()) then
set udg_CHorT=(udg_CHorT+1)
else
call DoNothing()
endif
endfunction
function Trig_player1kill_Func022C takes nothing returns boolean
if(not(udg_CHor>(udg_CHorT+1))) then
return false
endif
return true
endfunction
function Trig_player1kill_Func023C takes nothing returns boolean
if(not(udg_TeamOwnage[1]>4)) then
return false
endif
return true
endfunction
function Trig_player1kill_Conditions takes nothing returns boolean
if(not Trig_player1kill_Func024C()) then
return false
endif
return true
endfunction
function Trig_player1kill_Actions takes nothing returns nothing
set bj_wantDestroyGroup=true
call DisplayTimedTextToForce(GetPlayersAll(),10.00,(udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+("|r just pawned "+(udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]+(GetPlayerName(GetOwningPlayer(GetDyingUnit()))+("|r's head for an extra "+(I2S((100+(GetHeroLevel(GetDyingUnit())*5)))+" gold! It is distributed evenly to the team."))))))))
set bj_forLoopAIndex=2
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AdjustPlayerStateBJ((20+GetHeroLevel(GetDyingUnit())),ConvertedPlayer(GetForLoopIndexA()),PLAYER_STATE_RESOURCE_GOLD)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_LBDeaths[7]=(udg_LBDeaths[7]+1)
set udg_LBDeaths[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]=(udg_LBDeaths[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]+1)
set udg_LBKills[1]=(udg_LBKills[1]+1)
call ConditionalTriggerExecute(gg_trg_update_leaderboard_kills)
if(Trig_player1kill_Func008C()) then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]+GetPlayerName(GetOwningPlayer(GetDyingUnit())))+"|r's |c0000ff40killing spree|r has been ended!"))
else
call DoNothing()
endif
if(Trig_player1kill_Func009C()) then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]+GetPlayerName(GetOwningPlayer(GetDyingUnit())))+"|r's |c00400080dominating|r streak has been ended!"))
else
call DoNothing()
endif
if(Trig_player1kill_Func010C()) then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]+GetPlayerName(GetOwningPlayer(GetDyingUnit())))+"|r's |c00ff0080mega kill|r has been ended!"))
else
call DoNothing()
endif
if(Trig_player1kill_Func011C()) then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]+GetPlayerName(GetOwningPlayer(GetDyingUnit())))+"|r's |c00ff8000unstoppable|r streak has been ended!"))
else
call DoNothing()
endif
if(Trig_player1kill_Func012C()) then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]+GetPlayerName(GetOwningPlayer(GetDyingUnit())))+"|r's |c00808000wicked sick|r streak has been ended!"))
else
call DoNothing()
endif
if(Trig_player1kill_Func013C()) then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]+GetPlayerName(GetOwningPlayer(GetDyingUnit())))+"|r's |c00ff80ffmonster kill|r has been ended!"))
else
call DoNothing()
endif
if(Trig_player1kill_Func014C()) then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]+GetPlayerName(GetOwningPlayer(GetDyingUnit())))+"|r's |c00ff0000is GODLIKE|r streak has been ended!"))
else
call DoNothing()
endif
if(Trig_player1kill_Func015C()) then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]+GetPlayerName(GetOwningPlayer(GetDyingUnit())))+"|r's |c00ff8000beyond GODLIKE streak|r has been ended!"))
else
call DoNothing()
endif
set udg_TeamOwnage[2]=0
set udg_TeamOwnage[1]=(udg_TeamOwnage[1]+1)
set udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]=0
set udg_CHor=0
set udg_CHorT=0
call ForGroupBJ(GetUnitsInRangeOfLocAll(800.00,GetUnitLoc(GetDyingUnit())),function Trig_player1kill_Func021A)
if(Trig_player1kill_Func022C()) then
call PlaySoundBJ(gg_snd_Combowhore)
else
call DoNothing()
endif
if(Trig_player1kill_Func023C()) then
call PolledWait(1.50)
call PlaySoundBJ(gg_snd_Ownage)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"|c00ff0000The Sentinel|r are |c00ff0000OWNING!!!|r")
else
call DoNothing()
endif
endfunction
function InitTrig_player1kill takes nothing returns nothing
set gg_trg_player1kill=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_player1kill,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_player1kill,Condition(function Trig_player1kill_Conditions))
call TriggerAddAction(gg_trg_player1kill,function Trig_player1kill_Actions)
endfunction
function Trig_player7kill_Func024C takes nothing returns boolean
if(not(IsUnitType(GetDyingUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(6))) then
return false
endif
if(not(GetOwningPlayer(GetDyingUnit())!=Player(7))) then
return false
endif
if(not(GetOwningPlayer(GetDyingUnit())!=Player(8))) then
return false
endif
if(not(GetOwningPlayer(GetDyingUnit())!=Player(9))) then
return false
endif
if(not(GetOwningPlayer(GetDyingUnit())!=Player(10))) then
return false
endif
if(not(GetOwningPlayer(GetDyingUnit())!=Player(11))) then
return false
endif
return true
endfunction
function Trig_player7kill_Func008C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==3)) then
return false
endif
return true
endfunction
function Trig_player7kill_Func009C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==4)) then
return false
endif
return true
endfunction
function Trig_player7kill_Func010C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==5)) then
return false
endif
return true
endfunction
function Trig_player7kill_Func011C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==6)) then
return false
endif
return true
endfunction
function Trig_player7kill_Func012C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==7)) then
return false
endif
return true
endfunction
function Trig_player7kill_Func013C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==8)) then
return false
endif
return true
endfunction
function Trig_player7kill_Func014C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==9)) then
return false
endif
return true
endfunction
function Trig_player7kill_Func015C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]>9)) then
return false
endif
return true
endfunction
function Trig_player7kill_Func021Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(IsUnitEnemy(GetEnumUnit(),GetOwningPlayer(GetKillingUnitBJ()))==false)) then
return false
endif
return true
endfunction
function Trig_player7kill_Func021Func002C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(IsUnitEnemy(GetEnumUnit(),GetOwningPlayer(GetKillingUnitBJ()))==true)) then
return false
endif
return true
endfunction
function Trig_player7kill_Func021A takes nothing returns nothing
if(Trig_player7kill_Func021Func001C()) then
set udg_CHor=(udg_CHor+1)
else
call DoNothing()
endif
if(Trig_player7kill_Func021Func002C()) then
set udg_CHorT=(udg_CHorT+1)
else
call DoNothing()
endif
endfunction
function Trig_player7kill_Func022C takes nothing returns boolean
if(not(udg_CHor>(udg_CHorT+1))) then
return false
endif
return true
endfunction
function Trig_player7kill_Func023C takes nothing returns boolean
if(not(udg_TeamOwnage[2]>4)) then
return false
endif
return true
endfunction
function Trig_player7kill_Conditions takes nothing returns boolean
if(not Trig_player7kill_Func024C()) then
return false
endif
return true
endfunction
function Trig_player7kill_Actions takes nothing returns nothing
set bj_wantDestroyGroup=true
call DisplayTimedTextToForce(GetPlayersAll(),10.00,(udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+("|r just pawned "+(udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]+(GetPlayerName(GetOwningPlayer(GetDyingUnit()))+("|r's head for an extra "+(I2S((100+(GetHeroLevel(GetDyingUnit())*5)))+" gold! It is distributed evenly to the team."))))))))
set bj_forLoopAIndex=8
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AdjustPlayerStateBJ((20+GetHeroLevel(GetDyingUnit())),ConvertedPlayer(GetForLoopIndexA()),PLAYER_STATE_RESOURCE_GOLD)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_LBDeaths[1]=(udg_LBDeaths[1]+1)
set udg_LBDeaths[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]=(udg_LBDeaths[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]+1)
set udg_LBKills[7]=(udg_LBKills[7]+1)
call ConditionalTriggerExecute(gg_trg_update_leaderboard_kills)
if(Trig_player7kill_Func008C()) then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]+GetPlayerName(GetOwningPlayer(GetDyingUnit())))+"|r's |c0000ff40killing spree|r has been ended!"))
else
call DoNothing()
endif
if(Trig_player7kill_Func009C()) then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]+GetPlayerName(GetOwningPlayer(GetDyingUnit())))+"|r's |c00400080dominating|r streak has been ended!"))
else
call DoNothing()
endif
if(Trig_player7kill_Func010C()) then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]+GetPlayerName(GetOwningPlayer(GetDyingUnit())))+"|r's |c00ff0080mega kill|r has been ended!"))
else
call DoNothing()
endif
if(Trig_player7kill_Func011C()) then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]+GetPlayerName(GetOwningPlayer(GetDyingUnit())))+"|r's |c00ff8000unstoppable|r streak has been ended!"))
else
call DoNothing()
endif
if(Trig_player7kill_Func012C()) then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]+GetPlayerName(GetOwningPlayer(GetDyingUnit())))+"|r's |c00808000wicked sick|r streak has been ended!"))
else
call DoNothing()
endif
if(Trig_player7kill_Func013C()) then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]+GetPlayerName(GetOwningPlayer(GetDyingUnit())))+"|r's |c00ff80ffmonster kill|r has been ended!"))
else
call DoNothing()
endif
if(Trig_player7kill_Func014C()) then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]+GetPlayerName(GetOwningPlayer(GetDyingUnit())))+"|r's |c00ff0000is GODLIKE|r streak has been ended!"))
else
call DoNothing()
endif
if(Trig_player7kill_Func015C()) then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]+GetPlayerName(GetOwningPlayer(GetDyingUnit())))+"|r's |c00ff8000beyond GODLIKE streak|r has been ended!"))
else
call DoNothing()
endif
set udg_TeamOwnage[1]=0
set udg_TeamOwnage[2]=(udg_TeamOwnage[2]+1)
set udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]=0
set udg_CHor=0
set udg_CHorT=0
call ForGroupBJ(GetUnitsInRangeOfLocAll(800.00,GetUnitLoc(GetDyingUnit())),function Trig_player7kill_Func021A)
if(Trig_player7kill_Func022C()) then
call PlaySoundBJ(gg_snd_Combowhore)
else
call DoNothing()
endif
if(Trig_player7kill_Func023C()) then
call PolledWait(1.50)
call PlaySoundBJ(gg_snd_Ownage)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"|c00008000The Scourge|r are |c00008000OWNING!!!|r")
else
call DoNothing()
endif
endfunction
function InitTrig_player7kill takes nothing returns nothing
set gg_trg_player7kill=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_player7kill,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_player7kill,Condition(function Trig_player7kill_Conditions))
call TriggerAddAction(gg_trg_player7kill,function Trig_player7kill_Actions)
endfunction
function Trig_Suicide_death_Func005C takes nothing returns boolean
if(not(IsUnitAlly(GetTriggerUnit(),Player(0))==true)) then
return false
endif
return true
endfunction
function Trig_Suicide_death_Func008C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==3)) then
return false
endif
return true
endfunction
function Trig_Suicide_death_Func009C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==4)) then
return false
endif
return true
endfunction
function Trig_Suicide_death_Func010C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==5)) then
return false
endif
return true
endfunction
function Trig_Suicide_death_Func011C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==6)) then
return false
endif
return true
endfunction
function Trig_Suicide_death_Func012C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==7)) then
return false
endif
return true
endfunction
function Trig_Suicide_death_Func013C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==8)) then
return false
endif
return true
endfunction
function Trig_Suicide_death_Func014C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==9)) then
return false
endif
return true
endfunction
function Trig_Suicide_death_Func015C takes nothing returns boolean
if(not(udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]>9)) then
return false
endif
return true
endfunction
function Trig_Suicide_death_Func019C takes nothing returns boolean
if(not(udg_TeamOwnage[1]>4)) then
return false
endif
return true
endfunction
function Trig_Suicide_death_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A06B')) then
return false
endif
return true
endfunction
function Trig_Suicide_death_Actions takes nothing returns nothing
set bj_wantDestroyGroup=true
call DisplayTimedTextToForce(GetPlayersAll(),10.00,(udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))+("|r just killed himself!"+" "))))
if(Trig_Suicide_death_Func005C()) then
set udg_LBDeaths[1]=(udg_LBDeaths[1]+1)
set udg_LBKills[7]=(udg_LBKills[7]+1)
else
set udg_LBDeaths[7]=(udg_LBDeaths[7]+1)
set udg_LBKills[1]=(udg_LBKills[1]+1)
endif
set udg_LBDeaths[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_LBDeaths[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
call ConditionalTriggerExecute(gg_trg_update_leaderboard_kills)
if(Trig_Suicide_death_Func008C()) then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+GetPlayerName(GetOwningPlayer(GetTriggerUnit())))+"|r's |c0000ff40killing spree|r has been ended!"))
else
call DoNothing()
endif
if(Trig_Suicide_death_Func009C()) then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+GetPlayerName(GetOwningPlayer(GetTriggerUnit())))+"|r's |c00400080dominating|r streak has been ended!"))
else
call DoNothing()
endif
if(Trig_Suicide_death_Func010C()) then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+GetPlayerName(GetOwningPlayer(GetTriggerUnit())))+"|r's |c00ff0080mega kill|r has been ended!"))
else
call DoNothing()
endif
if(Trig_Suicide_death_Func011C()) then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+GetPlayerName(GetOwningPlayer(GetTriggerUnit())))+"|r's |c00ff8000unstoppable|r streak has been ended!"))
else
call DoNothing()
endif
if(Trig_Suicide_death_Func012C()) then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+GetPlayerName(GetOwningPlayer(GetTriggerUnit())))+"|r's |c00808000wicked sick|r streak has been ended!"))
else
call DoNothing()
endif
if(Trig_Suicide_death_Func013C()) then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+GetPlayerName(GetOwningPlayer(GetTriggerUnit())))+"|r's |c00ff80ffmonster kill|r has been ended!"))
else
call DoNothing()
endif
if(Trig_Suicide_death_Func014C()) then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+GetPlayerName(GetOwningPlayer(GetTriggerUnit())))+"|r's |c00ff0000is GODLIKE|r streak has been ended!"))
else
call DoNothing()
endif
if(Trig_Suicide_death_Func015C()) then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+GetPlayerName(GetOwningPlayer(GetTriggerUnit())))+"|r's |c00ff8000beyond GODLIKE streak|r has been ended!"))
else
call DoNothing()
endif
set udg_TeamOwnage[2]=0
set udg_TeamOwnage[1]=(udg_TeamOwnage[1]+1)
set udg_Killsinarow[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=0
if(Trig_Suicide_death_Func019C()) then
call PolledWait(1.50)
call PlaySoundBJ(gg_snd_Ownage)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"|c00ff0000The Sentinel|r are |c00ff0000OWNING!!!|r")
else
call DoNothing()
endif
endfunction
function InitTrig_Suicide_death takes nothing returns nothing
set gg_trg_Suicide_death=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Suicide_death,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_Suicide_death,Condition(function Trig_Suicide_death_Conditions))
call TriggerAddAction(gg_trg_Suicide_death,function Trig_Suicide_death_Actions)
endfunction
function Trig_IDv_Conditions takes nothing returns boolean
if(not(udg_Elapsed20==false)) then
return false
endif
return true
endfunction
function Trig_IDv_Actions takes nothing returns nothing
call DisplayTimedTextToForce(GetPlayersAll(),20.00,"Item drop mode has been enabled. Whenever a hero dies,that hero drops an item from a random slot instead of losing money.")
set udg_ItemDrop=true
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function InitTrig_IDv takes nothing returns nothing
set gg_trg_IDv=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_IDv,Player(1),"-itemdrops",true)
call TriggerRegisterPlayerChatEvent(gg_trg_IDv,Player(1),"-id",true)
call TriggerAddCondition(gg_trg_IDv,Condition(function Trig_IDv_Conditions))
call TriggerAddAction(gg_trg_IDv,function Trig_IDv_Actions)
endfunction
function Trig_SCv_Conditions takes nothing returns boolean
if(not(udg_Elapsed20==false)) then
return false
endif
return true
endfunction
function Trig_SCv_Actions takes nothing returns nothing
call DisplayTimedTextToForce(GetPlayersAll(),20.00,"Supercreeps have been enabled. Siege Golems,Scary Fish,and Ancient Hydras can spawn randomly with creep spawns.")
call EnableTrigger(gg_trg_SpawnGolemFish)
call EnableTrigger(gg_trg_SpawnHydra)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function InitTrig_SCv takes nothing returns nothing
set gg_trg_SCv=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_SCv,Player(1),"-supercreeps",true)
call TriggerRegisterPlayerChatEvent(gg_trg_SCv,Player(1),"-sc",true)
call TriggerAddCondition(gg_trg_SCv,Condition(function Trig_SCv_Conditions))
call TriggerAddAction(gg_trg_SCv,function Trig_SCv_Actions)
endfunction
function Trig_DEv_Func008C takes nothing returns boolean
if(not(udg_AROn==true)) then
return false
endif
return true
endfunction
function Trig_DEv_Func009C takes nothing returns boolean
if(not(udg_TROn==true)) then
return false
endif
return true
endfunction
function Trig_DEv_Func010C takes nothing returns boolean
if(not(udg_APOn==true)) then
return false
endif
return true
endfunction
function Trig_DEv_Func011C takes nothing returns boolean
if(not(udg_TROn==false)) then
return false
endif
if(not(udg_AROn==false)) then
return false
endif
return true
endfunction
function Trig_DEv_Conditions takes nothing returns boolean
if(not(udg_Elapsed20==false)) then
return false
endif
return true
endfunction
function Trig_DEv_Actions takes nothing returns nothing
call DestroyTrigger(gg_trg_RV1)
call DestroyTrigger(gg_trg_RV2)
call DestroyTrigger(gg_trg_MMv)
call DestroyTrigger(gg_trg_DMv)
call DestroyTrigger(gg_trg_RepS)
call DestroyTrigger(gg_trg_RepUD)
set udg_DMBool=true
if(Trig_DEv_Func008C()) then
call DisplayTimedTextToForce(GetPlayersAll(),20.00,"Allrandom deathmatch has been enabled. Play begins normally,but if you die,that hero is lost forever. If you die,you receive a new random one from a pool of all remaining heroes.")
call MultiboardSetTitleText(GetLastCreatedMultiboard(),("Allrandom Deathmatch"+udg_VersionString))
call DestroyTrigger(gg_trg_TR)
call DestroyTrigger(gg_trg_APv)
else
call DoNothing()
endif
if(Trig_DEv_Func009C()) then
call DisplayTimedTextToForce(GetPlayersAll(),20.00,"Teamrandom deathmatch has been enabled. Play begins normally,but if you die,that hero is lost forever. If you die,you receive a new random one from a pool of all remaining heroes allied to your team.")
call MultiboardSetTitleText(GetLastCreatedMultiboard(),("Teamrandom Deathmatch"+udg_VersionString))
call DestroyTrigger(gg_trg_AR)
call DestroyTrigger(gg_trg_APv)
else
call DoNothing()
endif
if(Trig_DEv_Func010C()) then
call DisplayTimedTextToForce(GetPlayersAll(),20.00,"Allpick deathmatch has been enabled. Play begins normally,but if you die,that hero is lost forever. You may select heroes from any tavern,but if your team dies 30 times,you lose.")
call MultiboardSetTitleText(GetLastCreatedMultiboard(),("Allpick Deathmatch"+udg_VersionString))
call DestroyTrigger(gg_trg_AR)
call DestroyTrigger(gg_trg_TR)
else
call DoNothing()
endif
if(Trig_DEv_Func011C()) then
call DisplayTimedTextToForce(GetPlayersAll(),20.00,"Deathmatch has been enabled. Play begins normally,but if you die,that hero is lost forever,and you may choose another hero. If your team runs out of heroes,you lose. Repick is disabled.")
call MultiboardSetTitleText(GetLastCreatedMultiboard(),("Deathmatch"+udg_VersionString))
else
call DoNothing()
endif
call DisableTrigger(gg_trg_Hero_kills)
call EnableTrigger(gg_trg_Hero_kills_DE)
call DisableTrigger(gg_trg_SentD)
call DestroyTrigger(gg_trg_SentD)
call DisableTrigger(gg_trg_ScouD)
call DestroyTrigger(gg_trg_ScouD)
call DisableTrigger(gg_trg_entry)
call DestroyTrigger(gg_trg_entry)
call EnableTrigger(gg_trg_SentD_DE)
call EnableTrigger(gg_trg_ScouD_DE)
call EnableTrigger(gg_trg_entryDE)
call EnableTrigger(gg_trg_ScouD_DE8)
call EnableTrigger(gg_trg_ScouD_DE9)
call EnableTrigger(gg_trg_ScouD_DE10)
call EnableTrigger(gg_trg_ScouD_DE11)
call EnableTrigger(gg_trg_ScouD_DE12)
call EnableTrigger(gg_trg_SentD_DE2)
call EnableTrigger(gg_trg_SentD_DE3)
call EnableTrigger(gg_trg_SentD_DE4)
call EnableTrigger(gg_trg_SentD_DE5)
call EnableTrigger(gg_trg_SentD_DE6)
call RemoveUnit(gg_unit_n00X_0155)
call RemoveUnit(gg_unit_nC38_0153)
call CreateNUnitsAtLoc(1,'n00H',Player(PLAYER_NEUTRAL_PASSIVE),OffsetLocation(GetUnitLoc(gg_unit_HC61_0147),0,-150.00),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n00H',Player(PLAYER_NEUTRAL_PASSIVE),OffsetLocation(GetUnitLoc(gg_unit_n00W_0149),0,150.00),bj_UNIT_FACING)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function InitTrig_DEv takes nothing returns nothing
set gg_trg_DEv=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_DEv,Player(1),"-deathmatch",true)
call TriggerRegisterPlayerChatEvent(gg_trg_DEv,Player(1),"-dm",true)
call TriggerAddCondition(gg_trg_DEv,Condition(function Trig_DEv_Conditions))
call TriggerAddAction(gg_trg_DEv,function Trig_DEv_Actions)
endfunction
function Trig_MMv_Conditions takes nothing returns boolean
if(not(udg_Elapsed20==false)) then
return false
endif
return true
endfunction
function Trig_MMv_Actions takes nothing returns nothing
call DisplayTimedTextToForce(GetPlayersAll(),20.00,"Mirrormatch has been enabled. After one minute,a random hero between the one pink has selected and the one blue has selected is chosen. Both pink and blue get this hero. This process is repeated for all the players. If you don't choose a hero in 60 seconds,there's a chance you won't get one at all. If you buy any items before the 60 seconds,you will lose them. Some heroes that don't work very well in mirrormatch:\nJuggernaut\nTechies\nSyllabear\nAny hero with a complex ultimate")
call MultiboardSetTitleText(GetLastCreatedMultiboard(),("Mirrormatch"+udg_VersionString))
call EnableTrigger(gg_trg_MMa)
call DestroyTrigger(gg_trg_TR)
call DestroyTrigger(gg_trg_RV1)
call DestroyTrigger(gg_trg_RV2)
call DestroyTrigger(gg_trg_DEv)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function InitTrig_MMv takes nothing returns nothing
set gg_trg_MMv=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_MMv,Player(1),"-mirrormatch",true)
call TriggerRegisterPlayerChatEvent(gg_trg_MMv,Player(1),"-mm",true)
call TriggerAddCondition(gg_trg_MMv,Condition(function Trig_MMv_Conditions))
call TriggerAddAction(gg_trg_MMv,function Trig_MMv_Actions)
endfunction
function Trig_MMa_Func001001002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_MMa_Func001001002002001 takes nothing returns boolean
return(IsUnitIllusionBJ(GetFilterUnit())==false)
endfunction
function Trig_MMa_Func001001002002002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(1))
endfunction
function Trig_MMa_Func001001002002002002 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(7))
endfunction
function Trig_MMa_Func001001002002002 takes nothing returns boolean
return GetBooleanOr(Trig_MMa_Func001001002002002001(),Trig_MMa_Func001001002002002002())
endfunction
function Trig_MMa_Func001001002002 takes nothing returns boolean
return GetBooleanAnd(Trig_MMa_Func001001002002001(),Trig_MMa_Func001001002002002())
endfunction
function Trig_MMa_Func001001002 takes nothing returns boolean
return GetBooleanAnd(Trig_MMa_Func001001002001(),Trig_MMa_Func001001002002())
endfunction
function Trig_MMa_Func001A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_MMGroup)
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_MMa_Func002C takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_MMGroup)==false)) then
return false
endif
return true
endfunction
function Trig_MMa_Func004C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(1))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
return true
endfunction
function Trig_MMa_Func005C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(7))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
return true
endfunction
function Trig_MMa_Func007001002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_MMa_Func007001002002001 takes nothing returns boolean
return(IsUnitIllusionBJ(GetFilterUnit())==false)
endfunction
function Trig_MMa_Func007001002002002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(2))
endfunction
function Trig_MMa_Func007001002002002002 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(8))
endfunction
function Trig_MMa_Func007001002002002 takes nothing returns boolean
return GetBooleanOr(Trig_MMa_Func007001002002002001(),Trig_MMa_Func007001002002002002())
endfunction
function Trig_MMa_Func007001002002 takes nothing returns boolean
return GetBooleanAnd(Trig_MMa_Func007001002002001(),Trig_MMa_Func007001002002002())
endfunction
function Trig_MMa_Func007001002 takes nothing returns boolean
return GetBooleanAnd(Trig_MMa_Func007001002001(),Trig_MMa_Func007001002002())
endfunction
function Trig_MMa_Func007A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_MMGroup)
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_MMa_Func008C takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_MMGroup)==false)) then
return false
endif
return true
endfunction
function Trig_MMa_Func010C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(2))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
return true
endfunction
function Trig_MMa_Func011C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(8))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
return true
endfunction
function Trig_MMa_Func013001002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_MMa_Func013001002002001 takes nothing returns boolean
return(IsUnitIllusionBJ(GetFilterUnit())==false)
endfunction
function Trig_MMa_Func013001002002002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(3))
endfunction
function Trig_MMa_Func013001002002002002 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(9))
endfunction
function Trig_MMa_Func013001002002002 takes nothing returns boolean
return GetBooleanOr(Trig_MMa_Func013001002002002001(),Trig_MMa_Func013001002002002002())
endfunction
function Trig_MMa_Func013001002002 takes nothing returns boolean
return GetBooleanAnd(Trig_MMa_Func013001002002001(),Trig_MMa_Func013001002002002())
endfunction
function Trig_MMa_Func013001002 takes nothing returns boolean
return GetBooleanAnd(Trig_MMa_Func013001002001(),Trig_MMa_Func013001002002())
endfunction
function Trig_MMa_Func013A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_MMGroup)
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_MMa_Func014C takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_MMGroup)==false)) then
return false
endif
return true
endfunction
function Trig_MMa_Func016C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(3))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
return true
endfunction
function Trig_MMa_Func017C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(9))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
return true
endfunction
function Trig_MMa_Func019001002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_MMa_Func019001002002001 takes nothing returns boolean
return(IsUnitIllusionBJ(GetFilterUnit())==false)
endfunction
function Trig_MMa_Func019001002002002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(4))
endfunction
function Trig_MMa_Func019001002002002002 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(10))
endfunction
function Trig_MMa_Func019001002002002 takes nothing returns boolean
return GetBooleanOr(Trig_MMa_Func019001002002002001(),Trig_MMa_Func019001002002002002())
endfunction
function Trig_MMa_Func019001002002 takes nothing returns boolean
return GetBooleanAnd(Trig_MMa_Func019001002002001(),Trig_MMa_Func019001002002002())
endfunction
function Trig_MMa_Func019001002 takes nothing returns boolean
return GetBooleanAnd(Trig_MMa_Func019001002001(),Trig_MMa_Func019001002002())
endfunction
function Trig_MMa_Func019A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_MMGroup)
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_MMa_Func020C takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_MMGroup)==false)) then
return false
endif
return true
endfunction
function Trig_MMa_Func022C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(4))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
return true
endfunction
function Trig_MMa_Func023C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(10))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
return true
endfunction
function Trig_MMa_Func025001002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_MMa_Func025001002002001 takes nothing returns boolean
return(IsUnitIllusionBJ(GetFilterUnit())==false)
endfunction
function Trig_MMa_Func025001002002002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(5))
endfunction
function Trig_MMa_Func025001002002002002 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(11))
endfunction
function Trig_MMa_Func025001002002002 takes nothing returns boolean
return GetBooleanOr(Trig_MMa_Func025001002002002001(),Trig_MMa_Func025001002002002002())
endfunction
function Trig_MMa_Func025001002002 takes nothing returns boolean
return GetBooleanAnd(Trig_MMa_Func025001002002001(),Trig_MMa_Func025001002002002())
endfunction
function Trig_MMa_Func025001002 takes nothing returns boolean
return GetBooleanAnd(Trig_MMa_Func025001002001(),Trig_MMa_Func025001002002())
endfunction
function Trig_MMa_Func025A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_MMGroup)
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_MMa_Func026C takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_MMGroup)==false)) then
return false
endif
return true
endfunction
function Trig_MMa_Func028C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(5))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
return true
endfunction
function Trig_MMa_Func029C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(11))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
return true
endfunction
function Trig_MMa_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_MMa_Func001001002)),function Trig_MMa_Func001A)
if(Trig_MMa_Func002C()) then
set udg_MMUnit=GetUnitTypeId(GroupPickRandomUnit(udg_MMGroup))
else
call DisplayTimedTextToForce(GetPlayersAll(),20.00,"Neither Blue nor Pink chose a hero; neither of you shall receive one.")
endif
call GroupClear(udg_MMGroup)
if(Trig_MMa_Func004C()) then
call CreateNUnitsAtLoc(1,udg_MMUnit,Player(1),GetRectCenter(gg_rct_Hero_Creation_NE),bj_UNIT_FACING)
else
call DoNothing()
endif
if(Trig_MMa_Func005C()) then
call CreateNUnitsAtLoc(1,udg_MMUnit,Player(7),GetRectCenter(gg_rct_Hero_Creation_Evil),bj_UNIT_FACING)
else
call DoNothing()
endif
set udg_MMUnit=0
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_MMa_Func007001002)),function Trig_MMa_Func007A)
if(Trig_MMa_Func008C()) then
set udg_MMUnit=GetUnitTypeId(GroupPickRandomUnit(udg_MMGroup))
else
call DisplayTimedTextToForce(GetPlayersAll(),20.00,"Neither Teal nor Gray chose a hero; neither of you shall receive one.")
endif
call GroupClear(udg_MMGroup)
if(Trig_MMa_Func010C()) then
call CreateNUnitsAtLoc(1,udg_MMUnit,Player(2),GetRectCenter(gg_rct_Hero_Creation_NE),bj_UNIT_FACING)
else
call DoNothing()
endif
if(Trig_MMa_Func011C()) then
call CreateNUnitsAtLoc(1,udg_MMUnit,Player(8),GetRectCenter(gg_rct_Hero_Creation_Evil),bj_UNIT_FACING)
else
call DoNothing()
endif
set udg_MMUnit=0
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_MMa_Func013001002)),function Trig_MMa_Func013A)
if(Trig_MMa_Func014C()) then
set udg_MMUnit=GetUnitTypeId(GroupPickRandomUnit(udg_MMGroup))
else
call DisplayTimedTextToForce(GetPlayersAll(),20.00,"Neither Purple nor Light Blue chose a hero; neither of you shall receive one.")
endif
call GroupClear(udg_MMGroup)
if(Trig_MMa_Func016C()) then
call CreateNUnitsAtLoc(1,udg_MMUnit,Player(3),GetRectCenter(gg_rct_Hero_Creation_NE),bj_UNIT_FACING)
else
call DoNothing()
endif
if(Trig_MMa_Func017C()) then
call CreateNUnitsAtLoc(1,udg_MMUnit,Player(9),GetRectCenter(gg_rct_Hero_Creation_Evil),bj_UNIT_FACING)
else
call DoNothing()
endif
set udg_MMUnit=0
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_MMa_Func019001002)),function Trig_MMa_Func019A)
if(Trig_MMa_Func020C()) then
set udg_MMUnit=GetUnitTypeId(GroupPickRandomUnit(udg_MMGroup))
else
call DisplayTimedTextToForce(GetPlayersAll(),20.00,"Neither Yellow nor Dark Green chose a hero; neither of you shall receive one.")
endif
call GroupClear(udg_MMGroup)
if(Trig_MMa_Func022C()) then
call CreateNUnitsAtLoc(1,udg_MMUnit,Player(4),GetRectCenter(gg_rct_Hero_Creation_NE),bj_UNIT_FACING)
else
call DoNothing()
endif
if(Trig_MMa_Func023C()) then
call CreateNUnitsAtLoc(1,udg_MMUnit,Player(10),GetRectCenter(gg_rct_Hero_Creation_Evil),bj_UNIT_FACING)
else
call DoNothing()
endif
set udg_MMUnit=0
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_MMa_Func025001002)),function Trig_MMa_Func025A)
if(Trig_MMa_Func026C()) then
set udg_MMUnit=GetUnitTypeId(GroupPickRandomUnit(udg_MMGroup))
else
call DisplayTimedTextToForce(GetPlayersAll(),20.00,"Neither Orange nor Brown chose a hero; neither of you shall receive one.")
endif
call GroupClear(udg_MMGroup)
if(Trig_MMa_Func028C()) then
call CreateNUnitsAtLoc(1,udg_MMUnit,Player(5),GetRectCenter(gg_rct_Hero_Creation_NE),bj_UNIT_FACING)
else
call DoNothing()
endif
if(Trig_MMa_Func029C()) then
call CreateNUnitsAtLoc(1,udg_MMUnit,Player(11),GetRectCenter(gg_rct_Hero_Creation_Evil),bj_UNIT_FACING)
else
call DoNothing()
endif
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function InitTrig_MMa takes nothing returns nothing
set gg_trg_MMa=CreateTrigger()
call DisableTrigger(gg_trg_MMa)
call TriggerRegisterTimerEventSingle(gg_trg_MMa,60.00)
call TriggerAddAction(gg_trg_MMa,function Trig_MMa_Actions)
endfunction
function Trig_APv_Func009C takes nothing returns boolean
if(not(udg_DMBool==true)) then
return false
endif
return true
endfunction
function Trig_APv_Func029Func003001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00C')
endfunction
function Trig_APv_Func029Func003A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_APv_Func029C takes nothing returns boolean
if(not(udg_DMBool==false)) then
return false
endif
return true
endfunction
function Trig_APv_Conditions takes nothing returns boolean
if(not(udg_Elapsed20==false)) then
return false
endif
return true
endfunction
function Trig_APv_Actions takes nothing returns nothing
set bj_wantDestroyGroup=true
call DestroyTrigger(gg_trg_TR)
call DestroyTrigger(gg_trg_RandomUD)
call DestroyTrigger(gg_trg_RandomS)
call DestroyTrigger(gg_trg_RepS)
call DestroyTrigger(gg_trg_RepUD)
call DestroyTrigger(gg_trg_AR)
call DestroyTrigger(gg_trg_DEv)
if(Trig_APv_Func009C()) then
call DisplayTimedTextToForce(GetPlayersAll(),20.00,"Allpick deathmatch has been enabled. Play begins normally,but if you die,that hero is lost forever. You may select heroes from any tavern,but if your team dies 30 times,you lose.")
call MultiboardSetTitleText(GetLastCreatedMultiboard(),("Allpick Deathmatch"+udg_VersionString))
else
call DisplayTimedTextToForce(GetPlayersAll(),20.00,"All pick has been enabled. You may pick heroes from any tavern for the next 45 seconds.")
call MultiboardSetTitleText(GetLastCreatedMultiboard(),("Allpick"+udg_VersionString))
endif
call DisableTrigger(gg_trg_entry)
call EnableTrigger(gg_trg_RandomSAP)
call EnableTrigger(gg_trg_RandomUDAP)
call EnableTrigger(gg_trg_RepSAP)
call EnableTrigger(gg_trg_RepUDAP)
set udg_APOn=true
call TriggerSleepAction(0.01)
call CreateNUnitsAtLoc(1,'n00C',Player(1),GetRectCenter(gg_rct_Allpick_Scourge),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n00C',Player(2),GetRectCenter(gg_rct_Allpick_Scourge),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n00C',Player(3),GetRectCenter(gg_rct_Allpick_Scourge),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n00C',Player(4),GetRectCenter(gg_rct_Allpick_Scourge),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n00C',Player(5),GetRectCenter(gg_rct_Allpick_Scourge),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n00C',Player(7),GetRectCenter(gg_rct_Allpick_Sent),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n00C',Player(8),GetRectCenter(gg_rct_Allpick_Sent),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n00C',Player(9),GetRectCenter(gg_rct_Allpick_Sent),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n00C',Player(10),GetRectCenter(gg_rct_Allpick_Sent),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n00C',Player(11),GetRectCenter(gg_rct_Allpick_Sent),bj_UNIT_FACING)
call TriggerSleepAction(0.01)
call EnableTrigger(gg_trg_entry)
if(Trig_APv_Func029C()) then
call TriggerSleepAction(90.00)
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_APv_Func029Func003001002)),function Trig_APv_Func029Func003A)
else
call DoNothing()
endif
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function InitTrig_APv takes nothing returns nothing
set gg_trg_APv=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_APv,Player(1),"-allpick",true)
call TriggerRegisterPlayerChatEvent(gg_trg_APv,Player(1),"-ap",true)
call TriggerAddCondition(gg_trg_APv,Condition(function Trig_APv_Conditions))
call TriggerAddAction(gg_trg_APv,function Trig_APv_Actions)
endfunction
function Trig_SMv_Func007A takes nothing returns nothing
call SetPlayerHandicapXPBJ(GetEnumPlayer(),115.00)
endfunction
function Trig_SMv_Conditions takes nothing returns boolean
if(not(udg_Elapsed20==false)) then
return false
endif
return true
endfunction
function Trig_SMv_Actions takes nothing returns nothing
call DisplayTimedTextToForce(GetPlayersAll(),20.00,"Short mode has been enabled. All towers are weaker,and heroes gain more experience.")
call SetPlayerTechResearchedSwap('R004',1,Player(0))
call SetPlayerTechResearchedSwap('R004',1,Player(6))
call DisableTrigger(gg_trg_Money)
call EnableTrigger(gg_trg_SM_Money)
set bj_wantDestroyGroup=true
call ForForce(GetPlayersAll(),function Trig_SMv_Func007A)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function InitTrig_SMv takes nothing returns nothing
set gg_trg_SMv=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_SMv,Player(1),"-shortmode",true)
call TriggerRegisterPlayerChatEvent(gg_trg_SMv,Player(1),"-sm",true)
call TriggerAddCondition(gg_trg_SMv,Condition(function Trig_SMv_Conditions))
call TriggerAddAction(gg_trg_SMv,function Trig_SMv_Actions)
endfunction
function Trig_DMv_Conditions takes nothing returns boolean
if(not(udg_Elapsed20==false)) then
return false
endif
return true
endfunction
function Trig_DMv_Actions takes nothing returns nothing
call DisplayTimedTextToForce(GetPlayersAll(),20.00,"Duplicate mode has been enabled. Duplicate heroes can be randomly assigned.")
call DestroyTrigger(gg_trg_DEv)
set udg_RandHero[2]='EC80'
set udg_RandHero[3]='N00Z'
set udg_RandHero[4]='E003'
set udg_RandHero[5]='H00D'
set udg_RandHero[6]='H00J'
set udg_RandHero[7]='N016'
set udg_RandHero[8]='N00M'
set udg_RandHero[9]='N00G'
set udg_RandHero[10]='H000'
set udg_RandHero[11]='EC53'
set udg_RandHero[12]='O002'
set udg_RandHero[13]='EC52'
set udg_RandHero[14]='O00P'
set udg_RandHero[15]='H00I'
set udg_RandHero[16]='H004'
set udg_RandHero[17]='E005'
set udg_RandHero[18]='N01O'
set udg_RandHero[19]='HC92'
set udg_RandHero[20]='H002'
set udg_RandHero[21]='OC56'
set udg_RandHero[22]='HC49'
set udg_RandHero[23]='H00K'
set udg_RandHero[24]='H001'
set udg_RandHero[25]='O00K'
set udg_RandHero[26]='N01A'
set udg_RandHero[27]='Hamg'
set udg_RandHero[28]='E00G'
set udg_RandHero[29]='N000'
set udg_RandHero[30]='Hmkg'
set udg_RandHero[1]='Hblm'
set udg_RandHero[38]='E004'
set udg_RandHero[39]='EC77'
set udg_RandHero[40]='E002'
set udg_RandHero[41]='EC45'
set udg_RandHero[42]='U00A'
set udg_RandHero[43]='U00B'
set udg_RandHero[44]='UC01'
set udg_RandHero[45]='U007'
set udg_RandHero[46]='UC91'
set udg_RandHero[47]='UC42'
set udg_RandHero[48]='U008'
set udg_RandHero[49]='U000'
set udg_RandHero[50]='NC00'
set udg_RandHero[51]='EC04'
set udg_RandHero[52]='U006'
set udg_RandHero[53]='OC55'
set udg_RandHero[54]='U004'
set udg_RandHero[55]='UC76'
set udg_RandHero[56]='EC57'
set udg_RandHero[57]='UC18'
set udg_RandHero[58]='UC11'
set udg_RandHero[59]='H00V'
set udg_RandHero[60]='Eevi'
set udg_RandHero[61]='UC60'
set udg_RandHero[62]='H00H'
set udg_RandHero[63]='Ofar'
set udg_RandHero[64]='Oshd'
set udg_RandHero[65]='U00F'
set udg_RandHero[66]='U00K'
set udg_RandHero[1]='U00E'
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function InitTrig_DMv takes nothing returns nothing
set gg_trg_DMv=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_DMv,Player(1),"-dupemode",true)
call TriggerRegisterPlayerChatEvent(gg_trg_DMv,Player(1),"-du",true)
call TriggerAddCondition(gg_trg_DMv,Condition(function Trig_DMv_Conditions))
call TriggerAddAction(gg_trg_DMv,function Trig_DMv_Actions)
endfunction
function Trig_AR_Func007C takes nothing returns boolean
if(not(udg_DMBool==true)) then
return false
endif
return true
endfunction
function Trig_AR_Func020Func007C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_AR_Func020C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(1))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
if(not(GetPlayerController(Player(1))==MAP_CONTROL_USER)) then
return false
endif
return true
endfunction
function Trig_AR_Func021Func007C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_AR_Func021C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(2))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
if(not(GetPlayerController(Player(2))==MAP_CONTROL_USER)) then
return false
endif
return true
endfunction
function Trig_AR_Func022Func007C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_AR_Func022C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(3))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
if(not(GetPlayerController(Player(3))==MAP_CONTROL_USER)) then
return false
endif
return true
endfunction
function Trig_AR_Func023Func007C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_AR_Func023C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(4))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
if(not(GetPlayerController(Player(4))==MAP_CONTROL_USER)) then
return false
endif
return true
endfunction
function Trig_AR_Func024Func007C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_AR_Func024C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(5))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
if(not(GetPlayerController(Player(5))==MAP_CONTROL_USER)) then
return false
endif
return true
endfunction
function Trig_AR_Func025Func007C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_AR_Func025C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(7))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
if(not(GetPlayerController(Player(7))==MAP_CONTROL_USER)) then
return false
endif
return true
endfunction
function Trig_AR_Func026Func007C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_AR_Func026C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(8))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
if(not(GetPlayerController(Player(8))==MAP_CONTROL_USER)) then
return false
endif
return true
endfunction
function Trig_AR_Func027Func007C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_AR_Func027C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(9))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
if(not(GetPlayerController(Player(9))==MAP_CONTROL_USER)) then
return false
endif
return true
endfunction
function Trig_AR_Func028Func007C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_AR_Func028C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(10))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
if(not(GetPlayerController(Player(10))==MAP_CONTROL_USER)) then
return false
endif
return true
endfunction
function Trig_AR_Func029Func007C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_AR_Func029C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(11))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
if(not(GetPlayerController(Player(11))==MAP_CONTROL_USER)) then
return false
endif
return true
endfunction
function Trig_AR_Conditions takes nothing returns boolean
if(not(udg_Elapsed20==false)) then
return false
endif
return true
endfunction
function Trig_AR_Actions takes nothing returns nothing
call DestroyTrigger(gg_trg_TR)
call DestroyTrigger(gg_trg_RV1)
call DestroyTrigger(gg_trg_RV2)
call DestroyTrigger(gg_trg_APv)
call DestroyTrigger(gg_trg_MMv)
call DisableTrigger(GetTriggeringTrigger())
if(Trig_AR_Func007C()) then
call DisplayTimedTextToForce(GetPlayersAll(),20.00,"Allrandom deathmatch has been enabled. Play begins normally,but if you die,that hero is lost forever. If you die,you receive a new random one from a pool of all remaining heroes.")
call MultiboardSetTitleText(GetLastCreatedMultiboard(),("Allrandom Deathmatch"+udg_VersionString))
else
call DisplayTimedTextToForce(GetPlayersAll(),20.00,"Allrandom mode has been enabled. Each player is given a random hero,and you may repick for 500 gold.")
call MultiboardSetTitleText(GetLastCreatedMultiboard(),("Allrandom"+udg_VersionString))
endif
call DisableTrigger(gg_trg_HeroL1)
call DisableTrigger(gg_trg_RandomUD)
call DisableTrigger(gg_trg_RandomS)
call TriggerExecute(gg_trg_HeroL2)
call DisableTrigger(gg_trg_RepUD)
call DisableTrigger(gg_trg_RepS)
call EnableTrigger(gg_trg_ARReUD)
call EnableTrigger(gg_trg_ARReS)
set udg_AROn=true
if(Trig_AR_Func020C()) then
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,72)
if(Trig_AR_Func020Func007C()) then
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(1),GetRectCenter(gg_rct_herospawnsent),GetPlayerStartLocationLoc(Player(1)))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
else
call DoNothing()
endif
if(Trig_AR_Func021C()) then
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,72)
if(Trig_AR_Func021Func007C()) then
call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(2),GetRectCenter(gg_rct_herospawnsent),GetPlayerStartLocationLoc(Player(2)))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
else
call DoNothing()
endif
if(Trig_AR_Func022C()) then
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,72)
if(Trig_AR_Func022Func007C()) then
call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(3),GetRectCenter(gg_rct_herospawnsent),GetPlayerStartLocationLoc(Player(3)))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
else
call DoNothing()
endif
if(Trig_AR_Func023C()) then
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,72)
if(Trig_AR_Func023Func007C()) then
call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(4),GetRectCenter(gg_rct_herospawnsent),GetPlayerStartLocationLoc(Player(4)))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
else
call DoNothing()
endif
if(Trig_AR_Func024C()) then
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,72)
if(Trig_AR_Func024Func007C()) then
call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(5),GetRectCenter(gg_rct_herospawnsent),GetPlayerStartLocationLoc(Player(5)))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
else
call DoNothing()
endif
if(Trig_AR_Func025C()) then
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,72)
if(Trig_AR_Func025Func007C()) then
call SetPlayerStateBJ(Player(7),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(7),GetRectCenter(gg_rct_herospawnud),GetPlayerStartLocationLoc(Player(7)))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(7),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
else
call DoNothing()
endif
if(Trig_AR_Func026C()) then
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,72)
if(Trig_AR_Func026Func007C()) then
call SetPlayerStateBJ(Player(8),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(8),GetRectCenter(gg_rct_herospawnud),GetPlayerStartLocationLoc(Player(8)))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(8),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
else
call DoNothing()
endif
if(Trig_AR_Func027C()) then
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,72)
if(Trig_AR_Func027Func007C()) then
call SetPlayerStateBJ(Player(9),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(9),GetRectCenter(gg_rct_herospawnud),GetPlayerStartLocationLoc(Player(9)))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(9),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
else
call DoNothing()
endif
if(Trig_AR_Func028C()) then
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,72)
if(Trig_AR_Func028Func007C()) then
call SetPlayerStateBJ(Player(10),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(10),GetRectCenter(gg_rct_herospawnud),GetPlayerStartLocationLoc(Player(10)))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(10),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
else
call DoNothing()
endif
if(Trig_AR_Func029C()) then
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,72)
if(Trig_AR_Func029Func007C()) then
call SetPlayerStateBJ(Player(11),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(11),GetRectCenter(gg_rct_herospawnud),GetPlayerStartLocationLoc(Player(11)))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(11),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
else
call DoNothing()
endif
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function InitTrig_AR takes nothing returns nothing
set gg_trg_AR=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_AR,Player(1),"-allrandom",true)
call TriggerRegisterPlayerChatEvent(gg_trg_AR,Player(1),"-ar",true)
call TriggerAddCondition(gg_trg_AR,Condition(function Trig_AR_Conditions))
call TriggerAddAction(gg_trg_AR,function Trig_AR_Actions)
endfunction
function Trig_TR_Func007C takes nothing returns boolean
if(not(udg_DMBool==true)) then
return false
endif
return true
endfunction
function Trig_TR_Func020Func007C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_TR_Func020C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(1))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
if(not(GetPlayerController(Player(1))==MAP_CONTROL_USER)) then
return false
endif
return true
endfunction
function Trig_TR_Func021Func007C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_TR_Func021C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(2))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
if(not(GetPlayerController(Player(2))==MAP_CONTROL_USER)) then
return false
endif
return true
endfunction
function Trig_TR_Func022Func007C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_TR_Func022C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(3))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
if(not(GetPlayerController(Player(3))==MAP_CONTROL_USER)) then
return false
endif
return true
endfunction
function Trig_TR_Func023Func007C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_TR_Func023C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(4))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
if(not(GetPlayerController(Player(4))==MAP_CONTROL_USER)) then
return false
endif
return true
endfunction
function Trig_TR_Func024Func007C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_TR_Func024C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(5))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
if(not(GetPlayerController(Player(5))==MAP_CONTROL_USER)) then
return false
endif
return true
endfunction
function Trig_TR_Func025Func007C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_TR_Func025C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(7))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
if(not(GetPlayerController(Player(7))==MAP_CONTROL_USER)) then
return false
endif
return true
endfunction
function Trig_TR_Func026Func007C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_TR_Func026C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(8))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
if(not(GetPlayerController(Player(8))==MAP_CONTROL_USER)) then
return false
endif
return true
endfunction
function Trig_TR_Func027Func007C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_TR_Func027C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(9))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
if(not(GetPlayerController(Player(9))==MAP_CONTROL_USER)) then
return false
endif
return true
endfunction
function Trig_TR_Func028Func007C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_TR_Func028C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(10))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
if(not(GetPlayerController(Player(10))==MAP_CONTROL_USER)) then
return false
endif
return true
endfunction
function Trig_TR_Func029Func007C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_TR_Func029C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(11))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
if(not(GetPlayerController(Player(11))==MAP_CONTROL_USER)) then
return false
endif
return true
endfunction
function Trig_TR_Conditions takes nothing returns boolean
if(not(udg_Elapsed20==false)) then
return false
endif
return true
endfunction
function Trig_TR_Actions takes nothing returns nothing
call DestroyTrigger(gg_trg_AR)
call DestroyTrigger(gg_trg_RV1)
call DestroyTrigger(gg_trg_RV2)
call DestroyTrigger(gg_trg_APv)
call DestroyTrigger(gg_trg_MMv)
call DisableTrigger(GetTriggeringTrigger())
if(Trig_TR_Func007C()) then
call DisplayTimedTextToForce(GetPlayersAll(),20.00,"Teamrandom deathmatch has been enabled. Play begins normally,but if you die,that hero is lost forever. If you die,you receive a new random one from a pool of all remaining heroes allied to your team.")
call MultiboardSetTitleText(GetLastCreatedMultiboard(),("Teamrandom Deathmatch"+udg_VersionString))
else
call DisplayTimedTextToForce(GetPlayersAll(),20.00,"Teamrandom mode has been enabled. Each player is given a random hero from their team,and you may repick for 500 gold.")
call MultiboardSetTitleText(GetLastCreatedMultiboard(),("Teamrandom"+udg_VersionString))
endif
call DisableTrigger(gg_trg_HeroL1)
call DisableTrigger(gg_trg_RandomUD)
call DisableTrigger(gg_trg_RandomS)
call TriggerExecute(gg_trg_HeroL2)
call DisableTrigger(gg_trg_RepUD)
call DisableTrigger(gg_trg_RepS)
call EnableTrigger(gg_trg_TRReUD)
call EnableTrigger(gg_trg_TRReS)
set udg_TROn=true
if(Trig_TR_Func020C()) then
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,36)
if(Trig_TR_Func020Func007C()) then
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(1),GetRectCenter(gg_rct_herospawnsent),GetPlayerStartLocationLoc(Player(1)))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
else
call DoNothing()
endif
if(Trig_TR_Func021C()) then
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,36)
if(Trig_TR_Func021Func007C()) then
call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(2),GetRectCenter(gg_rct_herospawnsent),GetPlayerStartLocationLoc(Player(2)))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
else
call DoNothing()
endif
if(Trig_TR_Func022C()) then
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,36)
if(Trig_TR_Func022Func007C()) then
call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(3),GetRectCenter(gg_rct_herospawnsent),GetPlayerStartLocationLoc(Player(3)))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
else
call DoNothing()
endif
if(Trig_TR_Func023C()) then
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,36)
if(Trig_TR_Func023Func007C()) then
call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(4),GetRectCenter(gg_rct_herospawnsent),GetPlayerStartLocationLoc(Player(4)))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
else
call DoNothing()
endif
if(Trig_TR_Func024C()) then
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,36)
if(Trig_TR_Func024Func007C()) then
call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(5),GetRectCenter(gg_rct_herospawnsent),GetPlayerStartLocationLoc(Player(5)))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
else
call DoNothing()
endif
if(Trig_TR_Func025C()) then
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(37,72)
if(Trig_TR_Func025Func007C()) then
call SetPlayerStateBJ(Player(7),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(7),GetRectCenter(gg_rct_herospawnud),GetPlayerStartLocationLoc(Player(7)))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(7),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
else
call DoNothing()
endif
if(Trig_TR_Func026C()) then
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(37,72)
if(Trig_TR_Func026Func007C()) then
call SetPlayerStateBJ(Player(8),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(8),GetRectCenter(gg_rct_herospawnud),GetPlayerStartLocationLoc(Player(8)))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(8),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
else
call DoNothing()
endif
if(Trig_TR_Func027C()) then
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(37,72)
if(Trig_TR_Func027Func007C()) then
call SetPlayerStateBJ(Player(9),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(9),GetRectCenter(gg_rct_herospawnud),GetPlayerStartLocationLoc(Player(9)))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(9),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
else
call DoNothing()
endif
if(Trig_TR_Func028C()) then
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(37,72)
if(Trig_TR_Func028Func007C()) then
call SetPlayerStateBJ(Player(10),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(10),GetRectCenter(gg_rct_herospawnud),GetPlayerStartLocationLoc(Player(10)))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(10),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
else
call DoNothing()
endif
if(Trig_TR_Func029C()) then
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(37,72)
if(Trig_TR_Func029Func007C()) then
call SetPlayerStateBJ(Player(11),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(11),GetRectCenter(gg_rct_herospawnud),GetPlayerStartLocationLoc(Player(11)))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(11),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
else
call DoNothing()
endif
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function InitTrig_TR takes nothing returns nothing
set gg_trg_TR=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_TR,Player(1),"-teamrandom",true)
call TriggerRegisterPlayerChatEvent(gg_trg_TR,Player(1),"-tr",true)
call TriggerAddCondition(gg_trg_TR,Condition(function Trig_TR_Conditions))
call TriggerAddAction(gg_trg_TR,function Trig_TR_Actions)
endfunction
function Trig_RV1_Func011A takes nothing returns nothing
call AdjustPlayerStateBJ(375,GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function Trig_RV1_Conditions takes nothing returns boolean
if(not(udg_Elapsed20==false)) then
return false
endif
return true
endfunction
function Trig_RV1_Actions takes nothing returns nothing
call DestroyTrigger(gg_trg_TR)
call DestroyTrigger(gg_trg_AR)
call DestroyTrigger(gg_trg_APv)
call DestroyTrigger(gg_trg_MMv)
call DestroyTrigger(gg_trg_DEv)
call DisableTrigger(GetTriggeringTrigger())
call MultiboardSetTitleText(GetLastCreatedMultiboard(),("Reverse"+udg_VersionString))
call ForForce(GetPlayersAll(),function Trig_RV1_Func011A)
call DisableTrigger(gg_trg_sent_chosen)
call DisableTrigger(gg_trg_RandomUD)
call DisableTrigger(gg_trg_RandomS)
call DisableTrigger(gg_trg_RepUD)
call DisableTrigger(gg_trg_RepS)
call DisableTrigger(gg_trg_entry)
call TriggerSleepAction(0.02)
call RemoveUnit(gg_unit_n005_0157)
call RemoveUnit(gg_unit_n007_0156)
call RemoveUnit(gg_unit_n01B_0161)
call RemoveUnit(gg_unit_n008_0144)
call RemoveUnit(gg_unit_uC74_0159)
call RemoveUnit(gg_unit_HC61_0145)
call CreateNUnitsAtLoc(1,'ntav',Player(6),GetRectCenter(gg_rct_Scourge_Top_Tavern),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n008',Player(6),GetRectCenter(gg_rct_Scourge_Bottom_Tavern),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n01D',Player(6),GetRectCenter(gg_rct_Scourge_New_Tavern),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n005',Player(0),GetRectCenter(gg_rct_Sent_Bottom_Tavern),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n007',Player(0),GetRectCenter(gg_rct_Sent_Top_Tavern),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n01B',Player(0),GetRectCenter(gg_rct_Sent_New_Tavern),bj_UNIT_FACING)
call TriggerSleepAction(0.02)
call EnableTrigger(gg_trg_RV2)
call EnableTrigger(gg_trg_RS1)
call EnableTrigger(gg_trg_RS2)
call DisplayTimedTextToForce(GetPlayersAll(),30,"You now have 45 seconds to select the hero for your opponent to use. You may not randomly select,and if you fail to choose one within 45 seconds,they will receive a random one and you lose all of your gold. It is good practice to pause the game here and plan this selection with your team.")
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function InitTrig_RV1 takes nothing returns nothing
set gg_trg_RV1=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_RV1,Player(1),"-reverse",true)
call TriggerRegisterPlayerChatEvent(gg_trg_RV1,Player(1),"-re",true)
call TriggerAddCondition(gg_trg_RV1,Condition(function Trig_RV1_Conditions))
call TriggerAddAction(gg_trg_RV1,function Trig_RV1_Actions)
endfunction
function Trig_RV2_Func005Func002Func005C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_RV2_Func005Func002C takes nothing returns boolean
if(not(udg_ReHT[2]!=0)) then
return false
endif
return true
endfunction
function Trig_RV2_Func005C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(1))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
return true
endfunction
function Trig_RV2_Func006Func002Func005C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_RV2_Func006Func002C takes nothing returns boolean
if(not(udg_ReHT[3]!=0)) then
return false
endif
return true
endfunction
function Trig_RV2_Func006C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(2))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
return true
endfunction
function Trig_RV2_Func007Func002Func005C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_RV2_Func007Func002C takes nothing returns boolean
if(not(udg_ReHT[4]!=0)) then
return false
endif
return true
endfunction
function Trig_RV2_Func007C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(3))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
return true
endfunction
function Trig_RV2_Func008Func002Func005C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_RV2_Func008Func002C takes nothing returns boolean
if(not(udg_ReHT[5]!=0)) then
return false
endif
return true
endfunction
function Trig_RV2_Func008C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(4))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
return true
endfunction
function Trig_RV2_Func009Func002Func005C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_RV2_Func009Func002C takes nothing returns boolean
if(not(udg_ReHT[6]!=0)) then
return false
endif
return true
endfunction
function Trig_RV2_Func009C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(5))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
return true
endfunction
function Trig_RV2_Func010Func002Func005C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_RV2_Func010Func002C takes nothing returns boolean
if(not(udg_ReHT[8]!=0)) then
return false
endif
return true
endfunction
function Trig_RV2_Func010C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(7))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
return true
endfunction
function Trig_RV2_Func011Func002Func005C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_RV2_Func011Func002C takes nothing returns boolean
if(not(udg_ReHT[9]!=0)) then
return false
endif
return true
endfunction
function Trig_RV2_Func011C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(8))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
return true
endfunction
function Trig_RV2_Func012Func002Func005C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_RV2_Func012Func002C takes nothing returns boolean
if(not(udg_ReHT[10]!=0)) then
return false
endif
return true
endfunction
function Trig_RV2_Func012C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(9))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
return true
endfunction
function Trig_RV2_Func013Func002Func005C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_RV2_Func013Func002C takes nothing returns boolean
if(not(udg_ReHT[11]!=0)) then
return false
endif
return true
endfunction
function Trig_RV2_Func013C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(10))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
return true
endfunction
function Trig_RV2_Func014Func002Func005C takes nothing returns boolean
if(not(udg_HeroFlags[udg_Rand]==false)) then
return false
endif
return true
endfunction
function Trig_RV2_Func014Func002C takes nothing returns boolean
if(not(udg_ReHT[12]!=0)) then
return false
endif
return true
endfunction
function Trig_RV2_Func014C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(11))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
return true
endfunction
function Trig_RV2_Actions takes nothing returns nothing
call DisableTrigger(gg_trg_RS2)
call DisableTrigger(gg_trg_RS1)
call EnableTrigger(gg_trg_entry)
call TriggerSleepAction(0.01)
if(Trig_RV2_Func005C()) then
if(Trig_RV2_Func005Func002C()) then
call CreateNUnitsAtLoc(1,udg_ReHT[2],Player(1),GetRectCenter(gg_rct_herospawnsent),bj_UNIT_FACING)
else
call SetPlayerStateBJ(Player(7),PLAYER_STATE_RESOURCE_GOLD,0)
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,36)
if(Trig_RV2_Func005Func002Func005C()) then
call SetPlayerStateBJ(Player(7),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(1),GetRectCenter(gg_rct_herospawnsent),GetPlayerStartLocationLoc(Player(1)))
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Blue will control "+(GetUnitName(GetLastCreatedUnit())+".")))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
endif
else
call DoNothing()
endif
if(Trig_RV2_Func006C()) then
if(Trig_RV2_Func006Func002C()) then
call CreateNUnitsAtLoc(1,udg_ReHT[3],Player(2),GetRectCenter(gg_rct_herospawnsent),bj_UNIT_FACING)
else
call SetPlayerStateBJ(Player(8),PLAYER_STATE_RESOURCE_GOLD,0)
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,36)
if(Trig_RV2_Func006Func002Func005C()) then
call SetPlayerStateBJ(Player(8),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(2),GetRectCenter(gg_rct_herospawnsent),GetPlayerStartLocationLoc(Player(1)))
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Teal will control "+(GetUnitName(GetLastCreatedUnit())+".")))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
endif
else
call DoNothing()
endif
if(Trig_RV2_Func007C()) then
if(Trig_RV2_Func007Func002C()) then
call CreateNUnitsAtLoc(1,udg_ReHT[4],Player(3),GetRectCenter(gg_rct_herospawnsent),bj_UNIT_FACING)
else
call SetPlayerStateBJ(Player(9),PLAYER_STATE_RESOURCE_GOLD,0)
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,36)
if(Trig_RV2_Func007Func002Func005C()) then
call SetPlayerStateBJ(Player(9),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(3),GetRectCenter(gg_rct_herospawnsent),GetPlayerStartLocationLoc(Player(1)))
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Purple will control "+(GetUnitName(GetLastCreatedUnit())+".")))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
endif
else
call DoNothing()
endif
if(Trig_RV2_Func008C()) then
if(Trig_RV2_Func008Func002C()) then
call CreateNUnitsAtLoc(1,udg_ReHT[5],Player(4),GetRectCenter(gg_rct_herospawnsent),bj_UNIT_FACING)
else
call SetPlayerStateBJ(Player(10),PLAYER_STATE_RESOURCE_GOLD,0)
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,36)
if(Trig_RV2_Func008Func002Func005C()) then
call SetPlayerStateBJ(Player(10),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(4),GetRectCenter(gg_rct_herospawnsent),GetPlayerStartLocationLoc(Player(1)))
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Yellow will control "+(GetUnitName(GetLastCreatedUnit())+".")))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
endif
else
call DoNothing()
endif
if(Trig_RV2_Func009C()) then
if(Trig_RV2_Func009Func002C()) then
call CreateNUnitsAtLoc(1,udg_ReHT[6],Player(5),GetRectCenter(gg_rct_herospawnsent),bj_UNIT_FACING)
else
call SetPlayerStateBJ(Player(11),PLAYER_STATE_RESOURCE_GOLD,0)
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(1,36)
if(Trig_RV2_Func009Func002Func005C()) then
call SetPlayerStateBJ(Player(11),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(5),GetRectCenter(gg_rct_herospawnsent),GetPlayerStartLocationLoc(Player(1)))
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Orange will control "+(GetUnitName(GetLastCreatedUnit())+".")))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
endif
else
call DoNothing()
endif
if(Trig_RV2_Func010C()) then
if(Trig_RV2_Func010Func002C()) then
call CreateNUnitsAtLoc(1,udg_ReHT[8],Player(7),GetRectCenter(gg_rct_herospawnud),bj_UNIT_FACING)
else
call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_GOLD,0)
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(37,72)
if(Trig_RV2_Func010Func002Func005C()) then
call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(7),GetRectCenter(gg_rct_herospawnud),GetPlayerStartLocationLoc(Player(1)))
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Pink will control "+(GetUnitName(GetLastCreatedUnit())+".")))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(7),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
endif
else
call DoNothing()
endif
if(Trig_RV2_Func011C()) then
if(Trig_RV2_Func011Func002C()) then
call CreateNUnitsAtLoc(1,udg_ReHT[9],Player(8),GetRectCenter(gg_rct_herospawnud),bj_UNIT_FACING)
else
call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_GOLD,0)
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(37,72)
if(Trig_RV2_Func011Func002Func005C()) then
call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(8),GetRectCenter(gg_rct_herospawnud),GetPlayerStartLocationLoc(Player(1)))
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Gray will control "+(GetUnitName(GetLastCreatedUnit())+".")))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(8),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
endif
else
call DoNothing()
endif
if(Trig_RV2_Func012C()) then
if(Trig_RV2_Func012Func002C()) then
call CreateNUnitsAtLoc(1,udg_ReHT[10],Player(9),GetRectCenter(gg_rct_herospawnud),bj_UNIT_FACING)
else
call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_GOLD,0)
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(37,72)
if(Trig_RV2_Func012Func002Func005C()) then
call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(9),GetRectCenter(gg_rct_herospawnud),GetPlayerStartLocationLoc(Player(1)))
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Light Blue will control "+(GetUnitName(GetLastCreatedUnit())+".")))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(9),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
endif
else
call DoNothing()
endif
if(Trig_RV2_Func013C()) then
if(Trig_RV2_Func013Func002C()) then
call CreateNUnitsAtLoc(1,udg_ReHT[11],Player(10),GetRectCenter(gg_rct_herospawnud),bj_UNIT_FACING)
else
call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_GOLD,0)
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(37,72)
if(Trig_RV2_Func013Func002Func005C()) then
call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(10),GetRectCenter(gg_rct_herospawnud),GetPlayerStartLocationLoc(Player(1)))
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Dark Green will control "+(GetUnitName(GetLastCreatedUnit())+".")))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(10),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
endif
else
call DoNothing()
endif
if(Trig_RV2_Func014C()) then
if(Trig_RV2_Func014Func002C()) then
call CreateNUnitsAtLoc(1,udg_ReHT[12],Player(11),GetRectCenter(gg_rct_herospawnud),bj_UNIT_FACING)
else
call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_GOLD,0)
loop
call PolledWait(0.01)
set udg_Rand=GetRandomInt(37,72)
if(Trig_RV2_Func014Func002Func005C()) then
call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_FOOD_CAP,6)
call CreateNUnitsAtLocFacingLocBJ(1,udg_RandHero[udg_Rand],Player(11),GetRectCenter(gg_rct_herospawnud),GetPlayerStartLocationLoc(Player(1)))
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Brown will control "+(GetUnitName(GetLastCreatedUnit())+".")))
set udg_HeroFlags[GetUnitPointValue(GetLastCreatedUnit())]=true
else
call DoNothing()
endif
exitwhen(GetPlayerState(Player(11),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endloop
endif
else
call DoNothing()
endif
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function InitTrig_RV2 takes nothing returns nothing
set gg_trg_RV2=CreateTrigger()
call DisableTrigger(gg_trg_RV2)
call TriggerRegisterTimerEventSingle(gg_trg_RV2,60.00)
call TriggerAddAction(gg_trg_RV2,function Trig_RV2_Actions)
endfunction
function Trig_PUV_Func004Func001Func001C takes nothing returns boolean
if(not(GetItemType(GetEnumItem())==ITEM_TYPE_POWERUP)) then
return false
endif
return true
endfunction
function Trig_PUV_Func004Func001A takes nothing returns nothing
if(Trig_PUV_Func004Func001Func001C()) then
call RemoveItem(GetEnumItem())
else
call DoNothing()
endif
endfunction
function Trig_PUV_Func004C takes nothing returns boolean
if(not(udg_NPTot>2)) then
return false
endif
return true
endfunction
function Trig_PUV_Conditions takes nothing returns boolean
if(not(udg_NPU[GetConvertedPlayerId(GetTriggerPlayer())]==false)) then
return false
endif
return true
endfunction
function Trig_PUV_Actions takes nothing returns nothing
set udg_NPTot=(udg_NPTot+1)
set udg_NPU[GetConvertedPlayerId(GetTriggerPlayer())]=true
if(Trig_PUV_Func004C()) then
call EnumItemsInRectBJ(GetPlayableMapRect(),function Trig_PUV_Func004Func001A)
call DisableTrigger(gg_trg_ItemSpawn)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"Item powerups have been |c00008000disabled|r by vote.")
call DestroyTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function InitTrig_PUV takes nothing returns nothing
set gg_trg_PUV=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_PUV,Player(1),"-nopowerups",true)
call TriggerRegisterPlayerChatEvent(gg_trg_PUV,Player(2),"-nopowerups",true)
call TriggerRegisterPlayerChatEvent(gg_trg_PUV,Player(3),"-nopowerups",true)
call TriggerRegisterPlayerChatEvent(gg_trg_PUV,Player(4),"-nopowerups",true)
call TriggerRegisterPlayerChatEvent(gg_trg_PUV,Player(5),"-nopowerups",true)
call TriggerRegisterPlayerChatEvent(gg_trg_PUV,Player(7),"-nopowerups",true)
call TriggerRegisterPlayerChatEvent(gg_trg_PUV,Player(8),"-nopowerups",true)
call TriggerRegisterPlayerChatEvent(gg_trg_PUV,Player(9),"-nopowerups",true)
call TriggerRegisterPlayerChatEvent(gg_trg_PUV,Player(10),"-nopowerups",true)
call TriggerRegisterPlayerChatEvent(gg_trg_PUV,Player(11),"-nopowerups",true)
call TriggerAddCondition(gg_trg_PUV,Condition(function Trig_PUV_Conditions))
call TriggerAddAction(gg_trg_PUV,function Trig_PUV_Actions)
endfunction
function Trig_sent_chosen_Func002C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='E005')) then
return false
endif
return true
endfunction
function Trig_sent_chosen_Conditions takes nothing returns boolean
if(not(udg_ElapsedTime==false)) then
return false
endif
return true
endfunction
function Trig_sent_chosen_Actions takes nothing returns nothing
call DisplayTimedTextToForce(GetPlayersEnemies(GetOwningPlayer(GetTriggerUnit())),10.00,("An enemy has chosen "+(GetUnitName(GetTriggerUnit())+".")))
if(Trig_sent_chosen_Func002C()) then
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit())),30.00,"Do not purchase attack-modifying items(Eye of Skadi,Stygian Desolator,etc) as they will cause Luna's attack to malfunction.")
else
call DoNothing()
endif
endfunction
function InitTrig_sent_chosen takes nothing returns nothing
set gg_trg_sent_chosen=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_sent_chosen,gg_rct_herospawnsent)
call TriggerRegisterEnterRectSimple(gg_trg_sent_chosen,gg_rct_herospawnud)
call TriggerAddCondition(gg_trg_sent_chosen,Condition(function Trig_sent_chosen_Conditions))
call TriggerAddAction(gg_trg_sent_chosen,function Trig_sent_chosen_Actions)
endfunction
function Trig_elapsed_time_Actions takes nothing returns nothing
set udg_ElapsedTime=true
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function InitTrig_elapsed_time takes nothing returns nothing
set gg_trg_elapsed_time=CreateTrigger()
call TriggerRegisterTimerEventSingle(gg_trg_elapsed_time,120.00)
call TriggerAddAction(gg_trg_elapsed_time,function Trig_elapsed_time_Actions)
endfunction
function Trig_Move_Func002C takes nothing returns boolean
if((GetOwningPlayer(GetTriggerUnit())==Player(0))) then
return true
endif
if((GetOwningPlayer(GetTriggerUnit())==Player(6))) then
return true
endif
return false
endfunction
function Trig_Move_Func001C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(0))) then
return false
endif
return true
endfunction
function Trig_Move_Conditions takes nothing returns boolean
if(not Trig_Move_Func002C()) then
return false
endif
return true
endfunction
function Trig_Move_Actions takes nothing returns nothing
if(Trig_Move_Func001C()) then
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetUnitLoc(gg_unit_e008_0165))
else
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetUnitLoc(gg_unit_e001_0166))
endif
endfunction
function InitTrig_Move takes nothing returns nothing
set gg_trg_Move=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(gg_trg_Move,300.00,gg_unit_e00D_0162)
call TriggerRegisterUnitInRangeSimple(gg_trg_Move,300.00,gg_unit_e00A_0164)
call TriggerRegisterUnitInRangeSimple(gg_trg_Move,300.00,gg_unit_e00B_0163)
call TriggerAddCondition(gg_trg_Move,Condition(function Trig_Move_Conditions))
call TriggerAddAction(gg_trg_Move,function Trig_Move_Actions)
endfunction
function Trig_multi_hero_correction_Func002Func001Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(IsUnitIllusionBJ(GetEnumUnit())==false)) then
return false
endif
if(not(GetOwningPlayer(GetEnumUnit())==ConvertedPlayer(GetForLoopIndexA()))) then
return false
endif
return true
endfunction
function Trig_multi_hero_correction_Func002Func001A takes nothing returns nothing
if(Trig_multi_hero_correction_Func002Func001Func001C()) then
set udg_HeroNum[GetForLoopIndexA()]=(udg_HeroNum[GetForLoopIndexA()]+1)
else
call DoNothing()
endif
endfunction
function Trig_multi_hero_correction_Func003Func001Func003001001002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==ConvertedPlayer(GetForLoopIndexB()))
endfunction
function Trig_multi_hero_correction_Func003Func001Func003001001002002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_multi_hero_correction_Func003Func001Func003001001002 takes nothing returns boolean
return GetBooleanAnd(Trig_multi_hero_correction_Func003Func001Func003001001002001(),Trig_multi_hero_correction_Func003Func001Func003001001002002())
endfunction
function Trig_multi_hero_correction_Func003Func001C takes nothing returns boolean
if(not(udg_HeroNum[GetForLoopIndexB()]>1)) then
return false
endif
return true
endfunction
function Trig_multi_hero_correction_Actions takes nothing returns nothing
set bj_wantDestroyGroup=true
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call ForGroupBJ(GetUnitsInRectAll(GetEntireMapRect()),function Trig_multi_hero_correction_Func002Func001A)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=12
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
if(Trig_multi_hero_correction_Func003Func001C()) then
loop
call RemoveUnit(GroupPickRandomUnit(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_multi_hero_correction_Func003Func001Func003001001002))))
set udg_HeroNum[GetForLoopIndexB()]=(udg_HeroNum[GetForLoopIndexB()]-1)
exitwhen(udg_HeroNum[GetForLoopIndexB()]==1)
endloop
else
call DoNothing()
endif
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function InitTrig_multi_hero_correction takes nothing returns nothing
set gg_trg_multi_hero_correction=CreateTrigger()
call TriggerRegisterTimerEventSingle(gg_trg_multi_hero_correction,65.00)
call TriggerAddAction(gg_trg_multi_hero_correction,function Trig_multi_hero_correction_Actions)
endfunction
function Trig_ten_minute_elapsed_Actions takes nothing returns nothing
call DisableTrigger(gg_trg_PUV)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function InitTrig_ten_minute_elapsed takes nothing returns nothing
set gg_trg_ten_minute_elapsed=CreateTrigger()
call TriggerRegisterTimerEventSingle(gg_trg_ten_minute_elapsed,600.00)
call TriggerAddAction(gg_trg_ten_minute_elapsed,function Trig_ten_minute_elapsed_Actions)
endfunction
function Trig_sheep_Func001Func009001 takes nothing returns boolean
return(GetUnitTypeId(GetAttackedUnitBJ())=='etol')
endfunction
function Trig_sheep_Func001Func009002 takes nothing returns boolean
return(GetUnitTypeId(GetAttackedUnitBJ())=='unpl')
endfunction
function Trig_sheep_Func001C takes nothing returns boolean
if(not GetBooleanOr(Trig_sheep_Func001Func009001(),Trig_sheep_Func001Func009002())) then
return false
endif
return true
endfunction
function Trig_sheep_Func002C takes nothing returns boolean
if(not(IsUnitType(GetAttackedUnitBJ(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(UnitHasBuffBJ(GetAttackedUnitBJ(),'BNdo')==false)) then
return false
endif
if(not(UnitHasBuffBJ(GetAttackedUnitBJ(),'BEsh')==false)) then
return false
endif
return true
endfunction
function Trig_sheep_Func003C takes nothing returns boolean
if(not(IsUnitType(GetAttackedUnitBJ(),UNIT_TYPE_HERO)==false)) then
return false
endif
if(not(IsUnitType(GetAttackedUnitBJ(),UNIT_TYPE_STRUCTURE)==false)) then
return false
endif
if(not(GetUnitLifePercent(GetAttackedUnitBJ())>=50.00)) then
return false
endif
return true
endfunction
function Trig_sheep_Func004Func002001 takes nothing returns boolean
return(GetUnitTypeId(GetAttackedUnitBJ())!='etol')
endfunction
function Trig_sheep_Func004Func002002 takes nothing returns boolean
return(GetUnitTypeId(GetAttackedUnitBJ())!='unpl')
endfunction
function Trig_sheep_Func004C takes nothing returns boolean
if(not(IsUnitType(GetAttackedUnitBJ(),UNIT_TYPE_STRUCTURE)==true)) then
return false
endif
if(not GetBooleanOr(Trig_sheep_Func004Func002001(),Trig_sheep_Func004Func002002())) then
return false
endif
if(not(GetUnitLifePercent(GetAttackedUnitBJ())>=10)) then
return false
endif
return true
endfunction
function Trig_sheep_Conditions takes nothing returns boolean
if(not(IsUnitAlly(GetAttackedUnitBJ(),GetOwningPlayer(GetAttacker()))==true)) then
return false
endif
return true
endfunction
function Trig_sheep_Actions takes nothing returns nothing
if(Trig_sheep_Func001C()) then
call CreateNUnitsAtLoc(1,'e00C',GetOwningPlayer(GetAttackedUnitBJ()),GetUnitLoc(GetAttackedUnitBJ()),bj_UNIT_FACING)
call UnitAddAbilityBJ('A08U',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"hex",GetAttacker())
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call SetUnitPathing(GetLastCreatedUnit(),false)
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call UnitAddAbilityBJ('Aloc',GetLastCreatedUnit())
else
call DoNothing()
endif
if(Trig_sheep_Func002C()) then
call CreateNUnitsAtLoc(1,'e00C',GetOwningPlayer(GetAttackedUnitBJ()),GetUnitLoc(GetAttackedUnitBJ()),bj_UNIT_FACING)
call UnitAddAbilityBJ('A08U',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"hex",GetAttacker())
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call SetUnitPathing(GetLastCreatedUnit(),false)
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call UnitAddAbilityBJ('Aloc',GetLastCreatedUnit())
else
call DoNothing()
endif
if(Trig_sheep_Func003C()) then
call CreateNUnitsAtLoc(1,'e00C',GetOwningPlayer(GetAttackedUnitBJ()),GetUnitLoc(GetAttackedUnitBJ()),bj_UNIT_FACING)
call UnitAddAbilityBJ('A08U',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"hex",GetAttacker())
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call SetUnitPathing(GetLastCreatedUnit(),false)
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call UnitAddAbilityBJ('Aloc',GetLastCreatedUnit())
else
call DoNothing()
endif
if(Trig_sheep_Func004C()) then
call CreateNUnitsAtLoc(1,'e00C',GetOwningPlayer(GetAttackedUnitBJ()),GetUnitLoc(GetAttackedUnitBJ()),bj_UNIT_FACING)
call UnitAddAbilityBJ('A08U',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"hex",GetAttacker())
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call SetUnitPathing(GetLastCreatedUnit(),false)
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call UnitAddAbilityBJ('Aloc',GetLastCreatedUnit())
else
call DoNothing()
endif
endfunction
function InitTrig_sheep takes nothing returns nothing
set gg_trg_sheep=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_sheep,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_sheep,Condition(function Trig_sheep_Conditions))
call TriggerAddAction(gg_trg_sheep,function Trig_sheep_Actions)
endfunction
function Trig_Hero_kills_Func003C takes nothing returns boolean
if(not(IsUnitType(GetDyingUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(IsUnitEnemy(GetDyingUnit(),GetOwningPlayer(GetKillingUnitBJ()))==true)) then
return false
endif
if(not(GetOwningPlayer(GetKillingUnitBJ())!=Player(0))) then
return false
endif
if(not(GetOwningPlayer(GetKillingUnitBJ())!=Player(6))) then
return false
endif
return true
endfunction
function Trig_Hero_kills_Conditions takes nothing returns boolean
if(not Trig_Hero_kills_Func003C()) then
return false
endif
return true
endfunction
function Trig_Hero_kills_Actions takes nothing returns nothing
call DisplayTimedTextToForce(GetPlayersAll(),10.00,(udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+("|r just pawned "+(udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]+(GetPlayerName(GetOwningPlayer(GetDyingUnit()))+("|r's head for an extra "+(I2S((100+(GetHeroLevel(GetDyingUnit())*5)))+" gold!"))))))))
call AdjustPlayerStateBJ((100+(GetHeroLevel(GetDyingUnit())*5)),GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function InitTrig_Hero_kills takes nothing returns nothing
set gg_trg_Hero_kills=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Hero_kills,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_Hero_kills,Condition(function Trig_Hero_kills_Conditions))
call TriggerAddAction(gg_trg_Hero_kills,function Trig_Hero_kills_Actions)
endfunction
function Trig_Hero_kills_DE_Func001C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())!=Player(0))) then
return false
endif
if(not(GetOwningPlayer(GetKillingUnitBJ())!=Player(6))) then
return false
endif
return true
endfunction
function Trig_Hero_kills_DE_Func002C takes nothing returns boolean
if(not(IsUnitAlly(GetDyingUnit(),Player(0))==true)) then
return false
endif
return true
endfunction
function Trig_Hero_kills_DE_Func003C takes nothing returns boolean
if(not(udg_HeroesDead[1]==30)) then
return false
endif
return true
endfunction
function Trig_Hero_kills_DE_Func004C takes nothing returns boolean
if(not(udg_HeroesDead[2]==30)) then
return false
endif
return true
endfunction
function Trig_Hero_kills_DE_Conditions takes nothing returns boolean
if(not(IsUnitType(GetDyingUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
return true
endfunction
function Trig_Hero_kills_DE_Actions takes nothing returns nothing
if(Trig_Hero_kills_DE_Func001C()) then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,(udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+("|r just pawned "+(udg_Colors[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]+(GetPlayerName(GetOwningPlayer(GetDyingUnit()))+("|r's head for an extra "+(I2S((100+(GetHeroLevel(GetDyingUnit())*5)))+" gold!"))))))))
call AdjustPlayerStateBJ((100+(GetHeroLevel(GetDyingUnit())*5)),GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
else
call DoNothing()
endif
if(Trig_Hero_kills_DE_Func002C()) then
set udg_HeroesDead[1]=(udg_HeroesDead[1]+1)
else
set udg_HeroesDead[2]=(udg_HeroesDead[2]+1)
endif
if(Trig_Hero_kills_DE_Func003C()) then
call TriggerExecute(gg_trg_Scourge_Win)
else
call DoNothing()
endif
if(Trig_Hero_kills_DE_Func004C()) then
call TriggerExecute(gg_trg_Sent_Win)
else
call DoNothing()
endif
set udg_DMItemOne[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),1))
set udg_DMItemTwo[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),2))
set udg_DmItemThree[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),3))
set udg_DMItemFour[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),4))
set udg_DMItemFive[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),5))
set udg_DMItemSix[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),6))
set udg_DMChargeOne[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetItemCharges(UnitItemInSlotBJ(GetTriggerUnit(),1))
set udg_DMChargeTwo[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetItemCharges(UnitItemInSlotBJ(GetTriggerUnit(),2))
set udg_DMChargeThree[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetItemCharges(UnitItemInSlotBJ(GetTriggerUnit(),3))
set udg_DMChargeFour[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetItemCharges(UnitItemInSlotBJ(GetTriggerUnit(),4))
set udg_DMChargeFive[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetItemCharges(UnitItemInSlotBJ(GetTriggerUnit(),5))
set udg_DMChargeSix[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetItemCharges(UnitItemInSlotBJ(GetTriggerUnit(),6))
endfunction
function InitTrig_Hero_kills_DE takes nothing returns nothing
set gg_trg_Hero_kills_DE=CreateTrigger()
call DisableTrigger(gg_trg_Hero_kills_DE)
call TriggerRegisterAnyUnitEventBJ(gg_trg_Hero_kills_DE,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_Hero_kills_DE,Condition(function Trig_Hero_kills_DE_Conditions))
call TriggerAddAction(gg_trg_Hero_kills_DE,function Trig_Hero_kills_DE_Actions)
endfunction
function Trig_elapsed15sec_Actions takes nothing returns nothing
set udg_Elapsed20=true
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function InitTrig_elapsed15sec takes nothing returns nothing
set gg_trg_elapsed15sec=CreateTrigger()
call TriggerRegisterTimerEventSingle(gg_trg_elapsed15sec,15.00)
call TriggerAddAction(gg_trg_elapsed15sec,function Trig_elapsed15sec_Actions)
endfunction
function Trig_map_init_Func004Func001Func006C takes nothing returns boolean
if(not(GetPlayerName(ConvertedPlayer(GetForLoopIndexA()))=="Game")) then
return false
endif
return true
endfunction
function Trig_map_init_Func004Func001C takes nothing returns boolean
if(not(GetPlayerSlotState(ConvertedPlayer(GetForLoopIndexA()))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
return true
endfunction
function Trig_map_init_Func005Func001C takes nothing returns boolean
if(not(GetPlayerSlotState(ConvertedPlayer(GetForLoopIndexA()))==PLAYER_SLOT_STATE_PLAYING)) then
return false
endif
return true
endfunction
function Trig_map_init_Actions takes nothing returns nothing
call StartTimerBJ(udg_LBTime,false,999999.00)
set udg_UDNum=(CountPlayersInForceBJ(GetPlayersAllies(Player(6)))-1)
set udg_SNum=(CountPlayersInForceBJ(GetPlayersAllies(Player(0)))-1)
set bj_forLoopAIndex=2
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_map_init_Func004Func001C()) then
call SetPlayerStateBJ(ConvertedPlayer(GetForLoopIndexA()),PLAYER_STATE_RESOURCE_GOLD,(3500/udg_SNum))
call SetPlayerStateBJ(ConvertedPlayer(GetForLoopIndexA()),PLAYER_STATE_RESOURCE_LUMBER,0)
call SetPlayerStateBJ(ConvertedPlayer(GetForLoopIndexA()),PLAYER_STATE_RESOURCE_FOOD_CAP,5)
if(Trig_map_init_Func004Func001Func006C()) then
call CustomDefeatBJ(ConvertedPlayer(GetForLoopIndexA()),"Game has been owned by Guinsoo.")
else
call DoNothing()
endif
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=8
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_map_init_Func005Func001C()) then
call SetPlayerStateBJ(ConvertedPlayer(GetForLoopIndexA()),PLAYER_STATE_RESOURCE_GOLD,(3500/udg_UDNum))
call SetPlayerStateBJ(ConvertedPlayer(GetForLoopIndexA()),PLAYER_STATE_RESOURCE_LUMBER,0)
call SetPlayerStateBJ(ConvertedPlayer(GetForLoopIndexA()),PLAYER_STATE_RESOURCE_FOOD_CAP,5)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"DotA Allstars v5.84","This map is originally taken from TFT Dota 7.0 and DotA Allstars v.96b.\n\nCredits to syl-la-ble,zetta,mrquincy,battlebotv8.0,darky27,sopho,linkmaster,nokternal,neichus,dankys,and everybody else who has helped me out.\nThanks to dankys for the minimap icon.\nCheck out our forum at www.rtsgames.com/dota.\nFind a game in channel Clan TDA@Azeroth.\n\nCreated on 10/14/04 at 9:20 PM.\n\nEnjoy!\n-Guinsoo","ReplaceableTextures\\CommandButtons\\BTNAmbush.blp")
call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Random Babbling","Justifying myself to those who question.\n\nNone of the abilities,units,or triggers in this map were copied from any other map. The idea for them was copied,but all the programming was redone by me. Not as if copy pasting would even work. The terrain was not done by me,however. To reiterate: abilities,units,and triggers in this map were all written by me,but the idea behind many of them comes from other maps(DotA<Allstars>).\n\nSome heroes and many abilities aren't from other maps. This is for several reasons. First,many abilities on allstar heroes from other maps wouldn't fit into this map,usually being too weak. Some I changed for fun reasons. I also added heroes at whim to keep the map changing and infused with new material,make it more fun,and introduce more creativity.","ReplaceableTextures\\CommandButtons\\BTNSlow.blp")
call CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED,"Changelog","Deathmatch now compatible with allrandom,allpick,and teamrandom.\nDeathmatch now allows you to keep your items when dying.\nAdded-id,item drop mode,which drops an item from a random slot when you die instead of losing money.\nFixed deathmatch bugs that don't track your level properly.\nShort mode now increases experience gained slightly more.\nOmnislash nerfed slightly.\nGuinsoo's Scythe damage buffed slightly.\nMask of Madness damage taken increased slightly.\nFlesh Heap piercing damage taken fixed.\nEpicenter damage lowered to 120,casting time reinstated.\nFireblast cooldown increased further.\nShendelzare's Terror changed to an activated ability.\nBuffed Guardian Angel and Degen Aura slightly.\nDeath Ward damage decreased at levels 3 and 4.\nDragon Knight's Dragon's Greed and Immolation replaced by Dragon Blood and Dragon Tail.\nVisage's Mana Burn damage reduced.\nJinada and Drunken Brawler less powerful.\nEyes in the Forest sight reduced.\nNature's Guise duration reduced.\nOv"+"ergrowth damage decreased and cooldown increased.\nTinker movement speed increased to 290.\nGold cost on Sacred Relic decreased.\nKel'thuzad is now Kel'thuzad the Lich.\nArea of effect on Mighty Swing increased slightly.","ReplaceableTextures\\WorldEditUI\\StartingLocation.blp")
call CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED,"Commands","-random : Gives you a random hero when you could normally choose your hero. Saves you the gold of choosing your hero.\n-repick : Gives you a new random hero,if used in the first 90 seconds.\n-nopowerups : Votes to stop powerups from spawning.\n-reverse or-re(blue only) : Activates a game mode where you can choose your opponent's hero.\n-allrandom or-ar(blue only) : Everyone gets a random hero,chosen from a pool of every hero.\n-teamrandom or-tr(blue only) : Everyone gets a random hero that their team could normally choose.\n-beamcounter : Counts Eclipses and Lucent Beams.\n-refresh: Refreshes Blur if you are Phantom Assassin.\n-dupemode or-du: Makes it so that duplicate heroes can be randomly selected.\n-shortmode or-sm: Reduces all tower damage and hit points,increases hero experience gained by 10%,and doubles the gold given periodically.\n-allpick or-ap: Enables teams to select heroes from any tavern.\n-mirrormatch or-mm: Teams play with the same set of"+" heroes,chosen by each player.\n-supercreeps or-sc: Turns on supercreeps.\n-deathmatch or-dm: Heroes that die are gone forever,but you can hire a new one. When your team runs out of heroes,you lose.","ReplaceableTextures\\CommandButtons\\BTNAnimateDead.blp")
call CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED,"League Play","To enable the league mode for a league match,one player from each team must enter their part of the match ID that they recieved from the bot.\n\nExample:-match ##","ReplaceableTextures\\CommandButtons\\BTNSpy.blp")
set udg_VersionString=" v5.84"
set udg_Colors[1]="|c00ff0303"
set udg_Colors[2]="|c000042ff"
set udg_Colors[3]="|c001ce6b9"
set udg_Colors[4]="|c00540081"
set udg_Colors[5]="|c00fffc01"
set udg_Colors[6]="|c00ff8000"
set udg_Colors[7]="|c0020c000"
set udg_Colors[8]="|c00e55bb0"
set udg_Colors[9]="|c00959697"
set udg_Colors[10]="|c007ebff1"
set udg_Colors[11]="|c00106246"
set udg_Colors[12]="|c004e2a04"
set udg_RandHero[1]='E004'
set udg_RandHero[2]='EC77'
set udg_RandHero[3]='E002'
set udg_RandHero[4]='EC45'
set udg_RandHero[5]='U00A'
set udg_RandHero[6]='U00B'
set udg_RandHero[7]='UC01'
set udg_RandHero[8]='U007'
set udg_RandHero[9]='U00E'
set udg_RandHero[10]='UC42'
set udg_RandHero[11]='U008'
set udg_RandHero[12]='UC91'
set udg_RandHero[13]='U006'
set udg_RandHero[14]='U00F'
set udg_RandHero[15]='U000'
set udg_RandHero[16]='U00K'
set udg_RandHero[17]='NC00'
set udg_RandHero[18]='H00H'
set udg_RandHero[19]='U004'
set udg_RandHero[20]='EC04'
set udg_RandHero[21]='UC76'
set udg_RandHero[22]='EC57'
set udg_RandHero[23]='OC55'
set udg_RandHero[24]='UC18'
set udg_RandHero[25]='UC11'
set udg_RandHero[26]='H00V'
set udg_RandHero[27]='UC60'
set udg_RandHero[28]='Eevi'
set udg_RandHero[29]='Ofar'
set udg_RandHero[30]='Oshd'
set udg_RandHero[31]='N016'
set udg_RandHero[32]='N01A'
set udg_RandHero[33]='N00M'
set udg_RandHero[34]='H000'
set udg_RandHero[35]='O002'
set udg_RandHero[36]='EC52'
set udg_RandHero[37]='H00I'
set udg_RandHero[38]='H004'
set udg_RandHero[39]='E005'
set udg_RandHero[40]='N00Z'
set udg_RandHero[41]='O00P'
set udg_RandHero[42]='EC53'
set udg_RandHero[43]='HC92'
set udg_RandHero[44]='H002'
set udg_RandHero[45]='OC56'
set udg_RandHero[46]='HC49'
set udg_RandHero[47]='H00K'
set udg_RandHero[48]='H001'
set udg_RandHero[49]='O00K'
set udg_RandHero[50]='Hamg'
set udg_RandHero[51]='Hmkg'
set udg_RandHero[52]='Hblm'
set udg_RandHero[53]='EC80'
set udg_RandHero[54]='E003'
set udg_RandHero[55]='E00G'
set udg_RandHero[56]='H00D'
set udg_RandHero[57]='H00J'
set udg_RandHero[58]='N000'
set udg_RandHero[59]='N00G'
set udg_RandHero[60]='N01O'
set udg_SpawnMultiplier[2]=1
call SetUnitInvulnerable(gg_unit_emow_0044,true)
call SetUnitInvulnerable(gg_unit_eaoe_0050,true)
call SetUnitInvulnerable(gg_unit_eaom_0046,true)
call SetUnitInvulnerable(gg_unit_eaoe_0049,true)
call SetUnitInvulnerable(gg_unit_eaom_0047,true)
call SetUnitInvulnerable(gg_unit_eaoe_0048,true)
call SetUnitInvulnerable(gg_unit_usep_0088,true)
call SetUnitInvulnerable(gg_unit_utod_0093,true)
call SetUnitInvulnerable(gg_unit_usep_0089,true)
call SetUnitInvulnerable(gg_unit_utod_0091,true)
call SetUnitInvulnerable(gg_unit_usep_0090,true)
call SetUnitInvulnerable(gg_unit_utod_0092,true)
call SetUnitPathing(gg_unit_e001_0166,false)
call SetUnitInvulnerable(gg_unit_e001_0166,true)
call UnitAddAbilityBJ('Aloc',gg_unit_e001_0166)
call SetUnitPathing(gg_unit_e00D_0162,false)
call SetUnitInvulnerable(gg_unit_e00D_0162,true)
call UnitAddAbilityBJ('Aloc',gg_unit_e00D_0162)
call SetUnitPathing(gg_unit_e00B_0163,false)
call SetUnitInvulnerable(gg_unit_e00B_0163,true)
call UnitAddAbilityBJ('Aloc',gg_unit_e00B_0163)
call SetUnitPathing(gg_unit_e00A_0164,false)
call SetUnitInvulnerable(gg_unit_e00A_0164,true)
call UnitAddAbilityBJ('Aloc',gg_unit_e00A_0164)
call SetUnitPathing(gg_unit_e008_0165,false)
call SetUnitInvulnerable(gg_unit_e008_0165,true)
call UnitAddAbilityBJ('Aloc',gg_unit_e008_0165)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function InitTrig_map_init takes nothing returns nothing
set gg_trg_map_init=CreateTrigger()
call TriggerAddAction(gg_trg_map_init,function Trig_map_init_Actions)
endfunction
function Trig_OneMinElapsed_Actions takes nothing returns nothing
set udg_OneMin=true
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function InitTrig_OneMinElapsed takes nothing returns nothing
set gg_trg_OneMinElapsed=CreateTrigger()
call TriggerRegisterTimerEventSingle(gg_trg_OneMinElapsed,65.00)
call TriggerAddAction(gg_trg_OneMinElapsed,function Trig_OneMinElapsed_Actions)
endfunction
function Trig_ItemSpawn_Func003002 takes nothing returns nothing
set udg_PickedItems=GetEnumItem()
endfunction
function Trig_ItemSpawn_Func004C takes nothing returns boolean
if(not(udg_PickedItems==null)) then
return false
endif
return true
endfunction
function Trig_ItemSpawn_Func006002 takes nothing returns nothing
set udg_PickedItems=GetEnumItem()
endfunction
function Trig_ItemSpawn_Func007C takes nothing returns boolean
if(not(udg_PickedItems==null)) then
return false
endif
return true
endfunction
function Trig_ItemSpawn_Func008Func003C takes nothing returns boolean
if(not(udg_ItemRand==1)) then
return false
endif
return true
endfunction
function Trig_ItemSpawn_Func008Func004C takes nothing returns boolean
if(not(udg_ItemRand==2)) then
return false
endif
return true
endfunction
function Trig_ItemSpawn_Func008Func005C takes nothing returns boolean
if(not(udg_ItemRand==3)) then
return false
endif
return true
endfunction
function Trig_ItemSpawn_Func008Func006C takes nothing returns boolean
if(not(udg_ItemRand==4)) then
return false
endif
return true
endfunction
function Trig_ItemSpawn_Func008Func007C takes nothing returns boolean
if(not(udg_ItemRand==5)) then
return false
endif
return true
endfunction
function Trig_ItemSpawn_Func008Func008C takes nothing returns boolean
if(not(udg_ItemRand==6)) then
return false
endif
return true
endfunction
function Trig_ItemSpawn_Func008Func009C takes nothing returns boolean
if(not(udg_ItemRand==7)) then
return false
endif
return true
endfunction
function Trig_ItemSpawn_Func008Func010C takes nothing returns boolean
if(not(udg_ItemRand==8)) then
return false
endif
return true
endfunction
function Trig_ItemSpawn_Func008C takes nothing returns boolean
if(not(udg_ItemTaken[1]==true)) then
return false
endif
if(not(udg_ItemTaken[2]==true)) then
return false
endif
return true
endfunction
function Trig_ItemSpawn_Conditions takes nothing returns boolean
if(not(udg_Powerups==true)) then
return false
endif
return true
endfunction
function Trig_ItemSpawn_Actions takes nothing returns nothing
set bj_wantDestroyGroup=true
set udg_PickedItems=null
call EnumItemsInRectBJ(gg_rct_ItemSpawn1,function Trig_ItemSpawn_Func003002)
if(Trig_ItemSpawn_Func004C()) then
set udg_ItemTaken[1]=true
else
set udg_ItemTaken[1]=false
endif
set udg_PickedItems=null
call EnumItemsInRectBJ(gg_rct_ItemSpawn2,function Trig_ItemSpawn_Func006002)
if(Trig_ItemSpawn_Func007C()) then
set udg_ItemTaken[2]=true
else
set udg_ItemTaken[2]=false
endif
if(Trig_ItemSpawn_Func008C()) then
set udg_ItemRand=GetRandomInt(1,8)
if(Trig_ItemSpawn_Func008Func003C()) then
call CreateItemLoc('I00F',GetRectCenter(gg_rct_ItemSpawn1))
else
call DoNothing()
endif
if(Trig_ItemSpawn_Func008Func004C()) then
call CreateItemLoc('I00E',GetRectCenter(gg_rct_ItemSpawn1))
else
call DoNothing()
endif
if(Trig_ItemSpawn_Func008Func005C()) then
call CreateItemLoc('I00G',GetRectCenter(gg_rct_ItemSpawn1))
else
call DoNothing()
endif
if(Trig_ItemSpawn_Func008Func006C()) then
call CreateItemLoc('I00H',GetRectCenter(gg_rct_ItemSpawn1))
else
call DoNothing()
endif
if(Trig_ItemSpawn_Func008Func007C()) then
call CreateItemLoc('I00F',GetRectCenter(gg_rct_ItemSpawn2))
else
call DoNothing()
endif
if(Trig_ItemSpawn_Func008Func008C()) then
call CreateItemLoc('I00E',GetRectCenter(gg_rct_ItemSpawn2))
else
call DoNothing()
endif
if(Trig_ItemSpawn_Func008Func009C()) then
call CreateItemLoc('I00G',GetRectCenter(gg_rct_ItemSpawn2))
else
call DoNothing()
endif
if(Trig_ItemSpawn_Func008Func010C()) then
call CreateItemLoc('I00H',GetRectCenter(gg_rct_ItemSpawn2))
else
call DoNothing()
endif
set udg_ItemTaken[1]=false
set udg_ItemTaken[2]=false
else
call DoNothing()
endif
endfunction
function InitTrig_ItemSpawn takes nothing returns nothing
set gg_trg_ItemSpawn=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(gg_trg_ItemSpawn,75.00)
call TriggerAddCondition(gg_trg_ItemSpawn,Condition(function Trig_ItemSpawn_Conditions))
call TriggerAddAction(gg_trg_ItemSpawn,function Trig_ItemSpawn_Actions)
endfunction
function Trig_SentLMove_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(0))) then
return false
endif
return true
endfunction
function Trig_SentLMove_Actions takes nothing returns nothing
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetUnitLoc(gg_unit_e00D_0162))
endfunction
function InitTrig_SentLMove takes nothing returns nothing
set gg_trg_SentLMove=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_SentLMove,gg_rct_War_N)
call TriggerRegisterEnterRectSimple(gg_trg_SentLMove,gg_rct_Lore_N)
call TriggerAddCondition(gg_trg_SentLMove,Condition(function Trig_SentLMove_Conditions))
call TriggerAddAction(gg_trg_SentLMove,function Trig_SentLMove_Actions)
endfunction
function Trig_ScouLMove_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(6))) then
return false
endif
return true
endfunction
function Trig_ScouLMove_Actions takes nothing returns nothing
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetUnitLoc(gg_unit_e00D_0162))
endfunction
function InitTrig_ScouLMove takes nothing returns nothing
set gg_trg_ScouLMove=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_ScouLMove,gg_rct_Crypt_W)
call TriggerRegisterEnterRectSimple(gg_trg_ScouLMove,gg_rct_Temple_W)
call TriggerAddCondition(gg_trg_ScouLMove,Condition(function Trig_ScouLMove_Conditions))
call TriggerAddAction(gg_trg_ScouLMove,function Trig_ScouLMove_Actions)
endfunction
function Trig_SentMMove_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(0))) then
return false
endif
return true
endfunction
function Trig_SentMMove_Actions takes nothing returns nothing
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetUnitLoc(gg_unit_e00B_0163))
endfunction
function InitTrig_SentMMove takes nothing returns nothing
set gg_trg_SentMMove=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_SentMMove,gg_rct_War_NE)
call TriggerRegisterEnterRectSimple(gg_trg_SentMMove,gg_rct_Lore_NE)
call TriggerAddCondition(gg_trg_SentMMove,Condition(function Trig_SentMMove_Conditions))
call TriggerAddAction(gg_trg_SentMMove,function Trig_SentMMove_Actions)
endfunction
function Trig_ScouMMove_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(6))) then
return false
endif
return true
endfunction
function Trig_ScouMMove_Actions takes nothing returns nothing
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetUnitLoc(gg_unit_e00B_0163))
endfunction
function InitTrig_ScouMMove takes nothing returns nothing
set gg_trg_ScouMMove=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_ScouMMove,gg_rct_Temple_SW)
call TriggerRegisterEnterRectSimple(gg_trg_ScouMMove,gg_rct_Crypt_SW)
call TriggerAddCondition(gg_trg_ScouMMove,Condition(function Trig_ScouMMove_Conditions))
call TriggerAddAction(gg_trg_ScouMMove,function Trig_ScouMMove_Actions)
endfunction
function Trig_SentRMove_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(0))) then
return false
endif
return true
endfunction
function Trig_SentRMove_Actions takes nothing returns nothing
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetUnitLoc(gg_unit_e00A_0164))
endfunction
function InitTrig_SentRMove takes nothing returns nothing
set gg_trg_SentRMove=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_SentRMove,gg_rct_Lore_E)
call TriggerRegisterEnterRectSimple(gg_trg_SentRMove,gg_rct_War_E)
call TriggerAddCondition(gg_trg_SentRMove,Condition(function Trig_SentRMove_Conditions))
call TriggerAddAction(gg_trg_SentRMove,function Trig_SentRMove_Actions)
endfunction
function Trig_ScouRMove_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(6))) then
return false
endif
return true
endfunction
function Trig_ScouRMove_Actions takes nothing returns nothing
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetUnitLoc(gg_unit_e00A_0164))
endfunction
function InitTrig_ScouRMove takes nothing returns nothing
set gg_trg_ScouRMove=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_ScouRMove,gg_rct_Temple_S)
call TriggerRegisterEnterRectSimple(gg_trg_ScouRMove,gg_rct_Crypt_S)
call TriggerAddCondition(gg_trg_ScouRMove,Condition(function Trig_ScouRMove_Conditions))
call TriggerAddAction(gg_trg_ScouRMove,function Trig_ScouRMove_Actions)
endfunction
function Trig_elapsed10_Actions takes nothing returns nothing
set udg_SpawnBadAss[1]=true
set udg_SpawnBadAss[2]=true
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function InitTrig_elapsed10 takes nothing returns nothing
set gg_trg_elapsed10=CreateTrigger()
call TriggerRegisterTimerEventSingle(gg_trg_elapsed10,590.00)
call TriggerAddAction(gg_trg_elapsed10,function Trig_elapsed10_Actions)
endfunction
function Trig_elapsed20_Actions takes nothing returns nothing
set udg_SpawnBadAss[3]=true
set udg_SpawnBadAss[4]=true
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function InitTrig_elapsed20 takes nothing returns nothing
set gg_trg_elapsed20=CreateTrigger()
call TriggerRegisterTimerEventSingle(gg_trg_elapsed20,1190.00)
call TriggerAddAction(gg_trg_elapsed20,function Trig_elapsed20_Actions)
endfunction
function Trig_elapsed30_Actions takes nothing returns nothing
set udg_SpawnBadAss[5]=true
set udg_SpawnBadAss[6]=true
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function InitTrig_elapsed30 takes nothing returns nothing
set gg_trg_elapsed30=CreateTrigger()
call TriggerRegisterTimerEventSingle(gg_trg_elapsed30,1790.00)
call TriggerAddAction(gg_trg_elapsed30,function Trig_elapsed30_Actions)
endfunction
function Trig_spawn_multipler_Actions takes nothing returns nothing
set udg_SpawnMultiplier[1]=(udg_SpawnMultiplier[1]+1)
endfunction
function InitTrig_spawn_multipler takes nothing returns nothing
set gg_trg_spawn_multipler=CreateTrigger()
call TriggerRegisterTimerEventSingle(gg_trg_spawn_multipler,1199.00)
call TriggerRegisterTimerEventSingle(gg_trg_spawn_multipler,2398.00)
call TriggerRegisterTimerEventSingle(gg_trg_spawn_multipler,3597.00)
call TriggerAddAction(gg_trg_spawn_multipler,function Trig_spawn_multipler_Actions)
endfunction
function Trig_spawn_multiplier_range_Actions takes nothing returns nothing
set udg_SpawnMultiplier[2]=(udg_SpawnMultiplier[2]+1)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function InitTrig_spawn_multiplier_range takes nothing returns nothing
set gg_trg_spawn_multiplier_range=CreateTrigger()
call TriggerRegisterTimerEventSingle(gg_trg_spawn_multiplier_range,3599.00)
call TriggerAddAction(gg_trg_spawn_multiplier_range,function Trig_spawn_multiplier_range_Actions)
endfunction
function Trig_CreepSpawn_Func001Func003C takes nothing returns boolean
if(not(udg_RandNumCp==1)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func001Func004C takes nothing returns boolean
if(not(udg_RandNumCp==2)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func001Func005C takes nothing returns boolean
if(not(udg_RandNumCp==3)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func001C takes nothing returns boolean
if(not(CountUnitsInGroup(GetUnitsInRectAll(gg_rct_CreepRegion1))==0)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func002Func003C takes nothing returns boolean
if(not(udg_RandNumCp==1)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func002Func004C takes nothing returns boolean
if(not(udg_RandNumCp==2)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func002Func005C takes nothing returns boolean
if(not(udg_RandNumCp==3)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func002C takes nothing returns boolean
if(not(CountUnitsInGroup(GetUnitsInRectAll(gg_rct_CreepRegion8))==0)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func003Func003C takes nothing returns boolean
if(not(udg_RandNumCp==1)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func003Func004C takes nothing returns boolean
if(not(udg_RandNumCp==2)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func003Func005C takes nothing returns boolean
if(not(udg_RandNumCp==3)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func003C takes nothing returns boolean
if(not(CountUnitsInGroup(GetUnitsInRectAll(gg_rct_Creep_region_2))==0)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func004Func003C takes nothing returns boolean
if(not(udg_RandNumCp==1)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func004Func004C takes nothing returns boolean
if(not(udg_RandNumCp==2)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func004Func005C takes nothing returns boolean
if(not(udg_RandNumCp==3)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func004C takes nothing returns boolean
if(not(CountUnitsInGroup(GetUnitsInRectAll(gg_rct_CreepRegion7))==0)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func005Func003C takes nothing returns boolean
if(not(udg_RandNumCp==1)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func005Func004C takes nothing returns boolean
if(not(udg_RandNumCp==2)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func005Func005C takes nothing returns boolean
if(not(udg_RandNumCp==3)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func005Func006C takes nothing returns boolean
if(not(udg_RandNumCp==4)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func005Func007C takes nothing returns boolean
if(not(udg_RandNumCp==5)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func005Func008C takes nothing returns boolean
if(not(udg_RandNumCp==6)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func005C takes nothing returns boolean
if(not(CountUnitsInGroup(GetUnitsInRectAll(gg_rct_CreepRegion4))==0)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func006Func003C takes nothing returns boolean
if(not(udg_RandNumCp==1)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func006Func004C takes nothing returns boolean
if(not(udg_RandNumCp==2)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func006Func005C takes nothing returns boolean
if(not(udg_RandNumCp==3)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func006Func006C takes nothing returns boolean
if(not(udg_RandNumCp==4)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func006Func007C takes nothing returns boolean
if(not(udg_RandNumCp==5)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func006Func008C takes nothing returns boolean
if(not(udg_RandNumCp==6)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func006C takes nothing returns boolean
if(not(CountUnitsInGroup(GetUnitsInRectAll(gg_rct_CreepRegion3))==0)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func007Func003C takes nothing returns boolean
if(not(udg_RandNumCp==1)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func007Func004C takes nothing returns boolean
if(not(udg_RandNumCp==2)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func007Func005C takes nothing returns boolean
if(not(udg_RandNumCp==3)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func007Func006C takes nothing returns boolean
if(not(udg_RandNumCp==4)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func007Func007C takes nothing returns boolean
if(not(udg_RandNumCp==5)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func007Func008C takes nothing returns boolean
if(not(udg_RandNumCp==6)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func007C takes nothing returns boolean
if(not(CountUnitsInGroup(GetUnitsInRectAll(gg_rct_CreepRegion5))==0)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func008Func003C takes nothing returns boolean
if(not(udg_RandNumCp==1)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func008Func004C takes nothing returns boolean
if(not(udg_RandNumCp==2)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func008Func005C takes nothing returns boolean
if(not(udg_RandNumCp==3)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func008Func006C takes nothing returns boolean
if(not(udg_RandNumCp==4)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func008Func007C takes nothing returns boolean
if(not(udg_RandNumCp==5)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func008Func008C takes nothing returns boolean
if(not(udg_RandNumCp==6)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func008C takes nothing returns boolean
if(not(CountUnitsInGroup(GetUnitsInRectAll(gg_rct_CreepRegion6))==0)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func009C takes nothing returns boolean
if(not(CountUnitsInGroup(GetUnitsInRectAll(gg_rct_CreepRegion9))==0)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Func010C takes nothing returns boolean
if(not(CountUnitsInGroup(GetUnitsInRectAll(gg_rct_CreepRegion10))==0)) then
return false
endif
return true
endfunction
function Trig_CreepSpawn_Actions takes nothing returns nothing
if(Trig_CreepSpawn_Func001C()) then
set udg_RandNumCp=GetRandomInt(1,3)
if(Trig_CreepSpawn_Func001Func003C()) then
call CreateNUnitsAtLoc(2,'nbdo',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nbds',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion1),bj_UNIT_FACING)
else
call DoNothing()
endif
if(Trig_CreepSpawn_Func001Func004C()) then
call CreateNUnitsAtLoc(2,'ngst',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nggr',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion1),bj_UNIT_FACING)
else
call DoNothing()
endif
if(Trig_CreepSpawn_Func001Func005C()) then
call CreateNUnitsAtLoc(2,'nbdk',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nbwm',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion1),bj_UNIT_FACING)
else
call DoNothing()
endif
else
call DoNothing()
endif
if(Trig_CreepSpawn_Func002C()) then
set udg_RandNumCp=GetRandomInt(1,3)
if(Trig_CreepSpawn_Func002Func003C()) then
call CreateNUnitsAtLoc(2,'nbdo',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion8),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nbds',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion8),bj_UNIT_FACING)
else
call DoNothing()
endif
if(Trig_CreepSpawn_Func002Func004C()) then
call CreateNUnitsAtLoc(2,'ngst',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion8),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nggr',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion8),bj_UNIT_FACING)
else
call DoNothing()
endif
if(Trig_CreepSpawn_Func002Func005C()) then
call CreateNUnitsAtLoc(2,'nbdk',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion8),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nbwm',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion8),bj_UNIT_FACING)
else
call DoNothing()
endif
else
call DoNothing()
endif
if(Trig_CreepSpawn_Func003C()) then
set udg_RandNumCp=GetRandomInt(1,3)
if(Trig_CreepSpawn_Func003Func003C()) then
call CreateNUnitsAtLoc(2,'nogm',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_Creep_region_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nomg',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_Creep_region_2),bj_UNIT_FACING)
else
call DoNothing()
endif
if(Trig_CreepSpawn_Func003Func004C()) then
call CreateNUnitsAtLoc(1,'nfpc',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_Creep_region_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nfpu',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_Creep_region_2),bj_UNIT_FACING)
else
call DoNothing()
endif
if(Trig_CreepSpawn_Func003Func005C()) then
call CreateNUnitsAtLoc(1,'nsth',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_Creep_region_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nstl',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_Creep_region_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nsat',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_Creep_region_2),bj_UNIT_FACING)
else
call DoNothing()
endif
else
call DoNothing()
endif
if(Trig_CreepSpawn_Func004C()) then
set udg_RandNumCp=GetRandomInt(1,3)
if(Trig_CreepSpawn_Func004Func003C()) then
call CreateNUnitsAtLoc(2,'nogm',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion7),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nomg',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion7),bj_UNIT_FACING)
else
call DoNothing()
endif
if(Trig_CreepSpawn_Func004Func004C()) then
call CreateNUnitsAtLoc(1,'nfpc',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion7),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nfpu',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion7),bj_UNIT_FACING)
else
call DoNothing()
endif
if(Trig_CreepSpawn_Func004Func005C()) then
call CreateNUnitsAtLoc(1,'nsth',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion7),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nstl',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion7),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nsat',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion7),bj_UNIT_FACING)
else
call DoNothing()
endif
else
call DoNothing()
endif
if(Trig_CreepSpawn_Func005C()) then
set udg_RandNumCp=GetRandomInt(1,6)
if(Trig_CreepSpawn_Func005Func003C()) then
call CreateNUnitsAtLoc(3,'nwlg',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion4),bj_UNIT_FACING)
else
call DoNothing()
endif
if(Trig_CreepSpawn_Func005Func004C()) then
call CreateNUnitsAtLoc(2,'nstl',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(2,'nsat',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion4),bj_UNIT_FACING)
else
call DoNothing()
endif
if(Trig_CreepSpawn_Func005Func005C()) then
call CreateNUnitsAtLoc(2,'ngst',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion4),bj_UNIT_FACING)
else
call DoNothing()
endif
if(Trig_CreepSpawn_Func005Func006C()) then
call CreateNUnitsAtLoc(1,'nkol',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'nkob',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nkot',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion4),bj_UNIT_FACING)
else
call DoNothing()
endif
if(Trig_CreepSpawn_Func005Func007C()) then
call CreateNUnitsAtLoc(2,'nftb',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nfsh',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion4),bj_UNIT_FACING)
else
call DoNothing()
endif
if(Trig_CreepSpawn_Func005Func008C()) then
call CreateNUnitsAtLoc(1,'ncnk',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ncen',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion4),bj_UNIT_FACING)
else
call DoNothing()
endif
else
call DoNothing()
endif
if(Trig_CreepSpawn_Func006C()) then
set udg_RandNumCp=GetRandomInt(1,6)
if(Trig_CreepSpawn_Func006Func003C()) then
call CreateNUnitsAtLoc(3,'nwlg',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion3),bj_UNIT_FACING)
else
call DoNothing()
endif
if(Trig_CreepSpawn_Func006Func004C()) then
call CreateNUnitsAtLoc(2,'nstl',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion3),bj_UNIT_FACING)
call CreateNUnitsAtLoc(2,'nsat',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion3),bj_UNIT_FACING)
else
call DoNothing()
endif
if(Trig_CreepSpawn_Func006Func005C()) then
call CreateNUnitsAtLoc(2,'ngst',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion3),bj_UNIT_FACING)
else
call DoNothing()
endif
if(Trig_CreepSpawn_Func006Func006C()) then
call CreateNUnitsAtLoc(1,'nkol',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion3),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'nkob',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion3),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nkot',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion3),bj_UNIT_FACING)
else
call DoNothing()
endif
if(Trig_CreepSpawn_Func006Func007C()) then
call CreateNUnitsAtLoc(2,'nftb',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion3),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nfsh',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion3),bj_UNIT_FACING)
else
call DoNothing()
endif
if(Trig_CreepSpawn_Func006Func008C()) then
call CreateNUnitsAtLoc(1,'ncnk',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion3),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ncen',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion3),bj_UNIT_FACING)
else
call DoNothing()
endif
else
call DoNothing()
endif
if(Trig_CreepSpawn_Func007C()) then
set udg_RandNumCp=GetRandomInt(1,6)
if(Trig_CreepSpawn_Func007Func003C()) then
call CreateNUnitsAtLoc(3,'nwlg',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion5),bj_UNIT_FACING)
else
call DoNothing()
endif
if(Trig_CreepSpawn_Func007Func004C()) then
call CreateNUnitsAtLoc(2,'nstl',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion5),bj_UNIT_FACING)
call CreateNUnitsAtLoc(2,'nsat',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion5),bj_UNIT_FACING)
else
call DoNothing()
endif
if(Trig_CreepSpawn_Func007Func005C()) then
call CreateNUnitsAtLoc(2,'ngst',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion5),bj_UNIT_FACING)
else
call DoNothing()
endif
if(Trig_CreepSpawn_Func007Func006C()) then
call CreateNUnitsAtLoc(1,'nkol',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion5),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'nkob',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion5),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nkot',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion5),bj_UNIT_FACING)
else
call DoNothing()
endif
if(Trig_CreepSpawn_Func007Func007C()) then
call CreateNUnitsAtLoc(2,'nftb',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion5),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nfsh',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion5),bj_UNIT_FACING)
else
call DoNothing()
endif
if(Trig_CreepSpawn_Func007Func008C()) then
call CreateNUnitsAtLoc(1,'ncnk',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion5),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ncen',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion5),bj_UNIT_FACING)
else
call DoNothing()
endif
else
call DoNothing()
endif
if(Trig_CreepSpawn_Func008C()) then
set udg_RandNumCp=GetRandomInt(1,6)
if(Trig_CreepSpawn_Func008Func003C()) then
call CreateNUnitsAtLoc(3,'nwlg',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion6),bj_UNIT_FACING)
else
call DoNothing()
endif
if(Trig_CreepSpawn_Func008Func004C()) then
call CreateNUnitsAtLoc(2,'nstl',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(2,'nsat',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion6),bj_UNIT_FACING)
else
call DoNothing()
endif
if(Trig_CreepSpawn_Func008Func005C()) then
call CreateNUnitsAtLoc(2,'ngst',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion6),bj_UNIT_FACING)
else
call DoNothing()
endif
if(Trig_CreepSpawn_Func008Func006C()) then
call CreateNUnitsAtLoc(1,'nkol',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'nkob',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nkot',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion6),bj_UNIT_FACING)
else
call DoNothing()
endif
if(Trig_CreepSpawn_Func008Func007C()) then
call CreateNUnitsAtLoc(2,'nftb',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nfsh',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion6),bj_UNIT_FACING)
else
call DoNothing()
endif
if(Trig_CreepSpawn_Func008Func008C()) then
call CreateNUnitsAtLoc(1,'ncnk',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ncen',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion6),bj_UNIT_FACING)
else
call DoNothing()
endif
else
call DoNothing()
endif
if(Trig_CreepSpawn_Func009C()) then
call CreateNUnitsAtLoc(3,'ngns',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion9),bj_UNIT_FACING)
else
call DoNothing()
endif
if(Trig_CreepSpawn_Func010C()) then
call CreateNUnitsAtLoc(3,'nftt',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(gg_rct_CreepRegion10),bj_UNIT_FACING)
else
call DoNothing()
endif
endfunction
function InitTrig_CreepSpawn takes nothing returns nothing
set gg_trg_CreepSpawn=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(gg_trg_CreepSpawn,90.00)
call TriggerAddAction(gg_trg_CreepSpawn,function Trig_CreepSpawn_Actions)
endfunction
function Trig_Spawn_Func002Func001C takes nothing returns boolean
if(not(udg_SpawnMRLMR[3]==true)) then
return false
endif
return true
endfunction
function Trig_Spawn_Func002C takes nothing returns boolean
if(not(udg_SpawnMRLMR[3]==false)) then
return false
endif
return true
endfunction
function Trig_Spawn_Func004Func001C takes nothing returns boolean
if(not(udg_SpawnMRLMR[2]==true)) then
return false
endif
return true
endfunction
function Trig_Spawn_Func004C takes nothing returns boolean
if(not(udg_SpawnMRLMR[2]==false)) then
return false
endif
return true
endfunction
function Trig_Spawn_Func006Func001C takes nothing returns boolean
if(not(udg_SpawnMRLMR[1]==true)) then
return false
endif
return true
endfunction
function Trig_Spawn_Func006C takes nothing returns boolean
if(not(udg_SpawnMRLMR[1]==false)) then
return false
endif
return true
endfunction
function Trig_Spawn_Func008Func001C takes nothing returns boolean
if(not(udg_SpawnMRLMR[4]==true)) then
return false
endif
return true
endfunction
function Trig_Spawn_Func008C takes nothing returns boolean
if(not(udg_SpawnMRLMR[4]==false)) then
return false
endif
return true
endfunction
function Trig_Spawn_Func010Func001C takes nothing returns boolean
if(not(udg_SpawnMRLMR[5]==true)) then
return false
endif
return true
endfunction
function Trig_Spawn_Func010C takes nothing returns boolean
if(not(udg_SpawnMRLMR[5]==false)) then
return false
endif
return true
endfunction
function Trig_Spawn_Func012Func001C takes nothing returns boolean
if(not(udg_SpawnMRLMR[6]==true)) then
return false
endif
return true
endfunction
function Trig_Spawn_Func012C takes nothing returns boolean
if(not(udg_SpawnMRLMR[6]==false)) then
return false
endif
return true
endfunction
function Trig_Spawn_Func014Func001C takes nothing returns boolean
if(not(udg_SpawnMRLMR[7]==true)) then
return false
endif
return true
endfunction
function Trig_Spawn_Func014C takes nothing returns boolean
if(not(udg_SpawnMRLMR[7]==false)) then
return false
endif
return true
endfunction
function Trig_Spawn_Func016Func001C takes nothing returns boolean
if(not(udg_SpawnMRLMR[8]==true)) then
return false
endif
return true
endfunction
function Trig_Spawn_Func016C takes nothing returns boolean
if(not(udg_SpawnMRLMR[8]==false)) then
return false
endif
return true
endfunction
function Trig_Spawn_Func018Func001C takes nothing returns boolean
if(not(udg_SpawnMRLMR[9]==true)) then
return false
endif
return true
endfunction
function Trig_Spawn_Func018C takes nothing returns boolean
if(not(udg_SpawnMRLMR[9]==false)) then
return false
endif
return true
endfunction
function Trig_Spawn_Func020Func001C takes nothing returns boolean
if(not(udg_SpawnMRLMR[10]==true)) then
return false
endif
return true
endfunction
function Trig_Spawn_Func020C takes nothing returns boolean
if(not(udg_SpawnMRLMR[10]==false)) then
return false
endif
return true
endfunction
function Trig_Spawn_Func022Func001C takes nothing returns boolean
if(not(udg_SpawnMRLMR[11]==true)) then
return false
endif
return true
endfunction
function Trig_Spawn_Func022C takes nothing returns boolean
if(not(udg_SpawnMRLMR[11]==false)) then
return false
endif
return true
endfunction
function Trig_Spawn_Func024Func001C takes nothing returns boolean
if(not(udg_SpawnMRLMR[12]==true)) then
return false
endif
return true
endfunction
function Trig_Spawn_Func024C takes nothing returns boolean
if(not(udg_SpawnMRLMR[12]==false)) then
return false
endif
return true
endfunction
function Trig_Spawn_Conditions takes nothing returns boolean
if(not(udg_OneMin==true)) then
return false
endif
return true
endfunction
function Trig_Spawn_Actions takes nothing returns nothing
set bj_wantDestroyGroup=true
if(Trig_Spawn_Func002C()) then
call CreateNUnitsAtLoc(udg_SpawnMultiplier[1],'u001',Player(6),GetRectCenter(gg_rct_Crypt_S),bj_UNIT_FACING)
else
if(Trig_Spawn_Func002Func001C()) then
call CreateNUnitsAtLoc(udg_SpawnMultiplier[1],'ugho',Player(6),GetRectCenter(gg_rct_Crypt_S),bj_UNIT_FACING)
else
call DoNothing()
endif
endif
call GroupPointOrderLocBJ(GetLastCreatedGroup(),"attack",GetUnitLoc(gg_unit_e00A_0164))
if(Trig_Spawn_Func004C()) then
call CreateNUnitsAtLoc(udg_SpawnMultiplier[1],'u001',Player(6),GetRectCenter(gg_rct_Crypt_SW),bj_UNIT_FACING)
else
if(Trig_Spawn_Func004Func001C()) then
call CreateNUnitsAtLoc(udg_SpawnMultiplier[1],'ugho',Player(6),GetRectCenter(gg_rct_Crypt_SW),bj_UNIT_FACING)
else
call DoNothing()
endif
endif
call GroupPointOrderLocBJ(GetLastCreatedGroup(),"attack",GetUnitLoc(gg_unit_e00B_0163))
if(Trig_Spawn_Func006C()) then
call CreateNUnitsAtLoc(udg_SpawnMultiplier[1],'u001',Player(6),GetRectCenter(gg_rct_Crypt_W),bj_UNIT_FACING)
else
if(Trig_Spawn_Func006Func001C()) then
call CreateNUnitsAtLoc(udg_SpawnMultiplier[1],'ugho',Player(6),GetRectCenter(gg_rct_Crypt_W),bj_UNIT_FACING)
else
call DoNothing()
endif
endif
call GroupPointOrderLocBJ(GetLastCreatedGroup(),"attack",GetUnitLoc(gg_unit_e00D_0162))
if(Trig_Spawn_Func008C()) then
call CreateNUnitsAtLoc(udg_SpawnMultiplier[2],'u002',Player(6),GetRectCenter(gg_rct_Temple_W),bj_UNIT_FACING)
else
if(Trig_Spawn_Func008Func001C()) then
call CreateNUnitsAtLoc(udg_SpawnMultiplier[2],'unec',Player(6),GetRectCenter(gg_rct_Temple_W),bj_UNIT_FACING)
else
call DoNothing()
endif
endif
call GroupPointOrderLocBJ(GetLastCreatedGroup(),"attack",GetUnitLoc(gg_unit_e00D_0162))
if(Trig_Spawn_Func010C()) then
call CreateNUnitsAtLoc(udg_SpawnMultiplier[2],'u002',Player(6),GetRectCenter(gg_rct_Temple_SW),bj_UNIT_FACING)
else
if(Trig_Spawn_Func010Func001C()) then
call CreateNUnitsAtLoc(udg_SpawnMultiplier[2],'unec',Player(6),GetRectCenter(gg_rct_Temple_SW),bj_UNIT_FACING)
else
call DoNothing()
endif
endif
call GroupPointOrderLocBJ(GetLastCreatedGroup(),"attack",GetUnitLoc(gg_unit_e00B_0163))
if(Trig_Spawn_Func012C()) then
call CreateNUnitsAtLoc(udg_SpawnMultiplier[2],'u002',Player(6),GetRectCenter(gg_rct_Temple_S),bj_UNIT_FACING)
else
if(Trig_Spawn_Func012Func001C()) then
call CreateNUnitsAtLoc(udg_SpawnMultiplier[2],'unec',Player(6),GetRectCenter(gg_rct_Temple_S),bj_UNIT_FACING)
else
call DoNothing()
endif
endif
call GroupPointOrderLocBJ(GetLastCreatedGroup(),"attack",GetUnitLoc(gg_unit_e00A_0164))
if(Trig_Spawn_Func014C()) then
call CreateNUnitsAtLoc(udg_SpawnMultiplier[1],'e00V',Player(0),GetRectCenter(gg_rct_War_N),bj_UNIT_FACING)
else
if(Trig_Spawn_Func014Func001C()) then
call CreateNUnitsAtLoc(udg_SpawnMultiplier[1],'esen',Player(0),GetRectCenter(gg_rct_War_N),bj_UNIT_FACING)
else
call DoNothing()
endif
endif
call GroupPointOrderLocBJ(GetLastCreatedGroup(),"attack",GetUnitLoc(gg_unit_e00D_0162))
if(Trig_Spawn_Func016C()) then
call CreateNUnitsAtLoc(udg_SpawnMultiplier[1],'e00V',Player(0),GetRectCenter(gg_rct_War_NE),bj_UNIT_FACING)
else
if(Trig_Spawn_Func016Func001C()) then
call CreateNUnitsAtLoc(udg_SpawnMultiplier[1],'esen',Player(0),GetRectCenter(gg_rct_War_NE),bj_UNIT_FACING)
else
call DoNothing()
endif
endif
call GroupPointOrderLocBJ(GetLastCreatedGroup(),"attack",GetUnitLoc(gg_unit_e00B_0163))
if(Trig_Spawn_Func018C()) then
call CreateNUnitsAtLoc(udg_SpawnMultiplier[1],'e00V',Player(0),GetRectCenter(gg_rct_War_E),bj_UNIT_FACING)
else
if(Trig_Spawn_Func018Func001C()) then
call CreateNUnitsAtLoc(udg_SpawnMultiplier[1],'esen',Player(0),GetRectCenter(gg_rct_War_E),bj_UNIT_FACING)
else
call DoNothing()
endif
endif
call GroupPointOrderLocBJ(GetLastCreatedGroup(),"attack",GetUnitLoc(gg_unit_e00A_0164))
if(Trig_Spawn_Func020C()) then
call CreateNUnitsAtLoc(udg_SpawnMultiplier[2],'e00W',Player(0),GetRectCenter(gg_rct_Lore_N),bj_UNIT_FACING)
else
if(Trig_Spawn_Func020Func001C()) then
call CreateNUnitsAtLoc(udg_SpawnMultiplier[2],'edry',Player(0),GetRectCenter(gg_rct_Lore_N),bj_UNIT_FACING)
else
call DoNothing()
endif
endif
call GroupPointOrderLocBJ(GetLastCreatedGroup(),"attack",GetUnitLoc(gg_unit_e00D_0162))
if(Trig_Spawn_Func022C()) then
call CreateNUnitsAtLoc(udg_SpawnMultiplier[2],'e00W',Player(0),GetRectCenter(gg_rct_Lore_NE),bj_UNIT_FACING)
else
if(Trig_Spawn_Func022Func001C()) then
call CreateNUnitsAtLoc(udg_SpawnMultiplier[2],'edry',Player(0),GetRectCenter(gg_rct_Lore_NE),bj_UNIT_FACING)
else
call DoNothing()
endif
endif
call GroupPointOrderLocBJ(GetLastCreatedGroup(),"attack",GetUnitLoc(gg_unit_e00B_0163))
if(Trig_Spawn_Func024C()) then
call CreateNUnitsAtLoc(udg_SpawnMultiplier[2],'e00W',Player(0),GetRectCenter(gg_rct_Lore_E),bj_UNIT_FACING)
else
if(Trig_Spawn_Func024Func001C()) then
call CreateNUnitsAtLoc(udg_SpawnMultiplier[2],'edry',Player(0),GetRectCenter(gg_rct_Lore_E),bj_UNIT_FACING)
else
call DoNothing()
endif
endif
call GroupPointOrderLocBJ(GetLastCreatedGroup(),"attack",GetUnitLoc(gg_unit_e00A_0164))
endfunction
function InitTrig_Spawn takes nothing returns nothing
set gg_trg_Spawn=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(gg_trg_Spawn,30.00)
call TriggerAddCondition(gg_trg_Spawn,Condition(function Trig_Spawn_Conditions))
call TriggerAddAction(gg_trg_Spawn,function Trig_Spawn_Actions)
endfunction
function Trig_SpawnGolemFish_Func001C takes nothing returns boolean
if((udg_SpawnBadAss[1]==true)) then
return true
endif
if((udg_SpawnBadAss[2]==true)) then
return true
endif
if((udg_SpawnBadAss[3]==true)) then
return true
endif
if((udg_SpawnBadAss[4]==true)) then
return true
endif
return false
endfunction
function Trig_SpawnGolemFish_Func003C takes nothing returns boolean
if(not(udg_SpawnBadAss[1]==true)) then
return false
endif
if(not(udg_CreepRand==2)) then
return false
endif
return true
endfunction
function Trig_SpawnGolemFish_Func004C takes nothing returns boolean
if(not(udg_SpawnBadAss[1]==true)) then
return false
endif
if(not(udg_CreepRand==3)) then
return false
endif
return true
endfunction
function Trig_SpawnGolemFish_Func005C takes nothing returns boolean
if(not(udg_SpawnBadAss[1]==true)) then
return false
endif
if(not(udg_CreepRand==4)) then
return false
endif
return true
endfunction
function Trig_SpawnGolemFish_Func006C takes nothing returns boolean
if(not(udg_SpawnBadAss[2]==true)) then
return false
endif
if(not(udg_CreepRand==5)) then
return false
endif
return true
endfunction
function Trig_SpawnGolemFish_Func007C takes nothing returns boolean
if(not(udg_SpawnBadAss[2]==true)) then
return false
endif
if(not(udg_CreepRand==6)) then
return false
endif
return true
endfunction
function Trig_SpawnGolemFish_Func008C takes nothing returns boolean
if(not(udg_SpawnBadAss[2]==true)) then
return false
endif
if(not(udg_CreepRand==7)) then
return false
endif
return true
endfunction
function Trig_SpawnGolemFish_Func009C takes nothing returns boolean
if(not(udg_SpawnBadAss[3]==true)) then
return false
endif
if(not(udg_CreepRand==8)) then
return false
endif
return true
endfunction
function Trig_SpawnGolemFish_Func010C takes nothing returns boolean
if(not(udg_SpawnBadAss[3]==true)) then
return false
endif
if(not(udg_CreepRand==9)) then
return false
endif
return true
endfunction
function Trig_SpawnGolemFish_Func011C takes nothing returns boolean
if(not(udg_SpawnBadAss[3]==true)) then
return false
endif
if(not(udg_CreepRand==10)) then
return false
endif
return true
endfunction
function Trig_SpawnGolemFish_Func012C takes nothing returns boolean
if(not(udg_SpawnBadAss[4]==true)) then
return false
endif
if(not(udg_CreepRand==11)) then
return false
endif
return true
endfunction
function Trig_SpawnGolemFish_Func013C takes nothing returns boolean
if(not(udg_SpawnBadAss[4]==true)) then
return false
endif
if(not(udg_CreepRand==12)) then
return false
endif
return true
endfunction
function Trig_SpawnGolemFish_Func014C takes nothing returns boolean
if(not(udg_SpawnBadAss[4]==true)) then
return false
endif
if(not(udg_CreepRand==13)) then
return false
endif
return true
endfunction
function Trig_SpawnGolemFish_Conditions takes nothing returns boolean
if(not Trig_SpawnGolemFish_Func001C()) then
return false
endif
return true
endfunction
function Trig_SpawnGolemFish_Actions takes nothing returns nothing
set udg_CreepRand=GetRandomInt(1,30)
if(Trig_SpawnGolemFish_Func003C()) then
set udg_SpawnBadAss[1]=false
call CreateNUnitsAtLoc(1,'n00F',Player(0),GetRectCenter(gg_rct_Lore_E),bj_UNIT_FACING)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"A |c000000ffSiege Golem|r has spawned for the |c00ff0000Sentinel|r and is taking the east path!")
else
call DoNothing()
endif
if(Trig_SpawnGolemFish_Func004C()) then
set udg_SpawnBadAss[1]=false
call CreateNUnitsAtLoc(1,'n00F',Player(0),GetRectCenter(gg_rct_Lore_N),bj_UNIT_FACING)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"A |c000000ffSiege Golem|r has spawned for the |c00ff0000Sentinel|r and is taking the west path!")
else
call DoNothing()
endif
if(Trig_SpawnGolemFish_Func005C()) then
set udg_SpawnBadAss[1]=false
call CreateNUnitsAtLoc(1,'n00F',Player(0),GetRectCenter(gg_rct_Lore_NE),bj_UNIT_FACING)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"A |c000000ffSiege Golem|r has spawned for the |c00ff0000Sentinel|r and is taking the middle path!")
else
call DoNothing()
endif
if(Trig_SpawnGolemFish_Func006C()) then
set udg_SpawnBadAss[2]=false
call CreateNUnitsAtLoc(1,'n00F',Player(6),GetRectCenter(gg_rct_Temple_S),bj_UNIT_FACING)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"A |c000000ffSiege Golem|r has spawned for the |c00004000Scourge|r and is taking the east path!")
else
call DoNothing()
endif
if(Trig_SpawnGolemFish_Func007C()) then
set udg_SpawnBadAss[2]=false
call CreateNUnitsAtLoc(1,'n00F',Player(6),GetRectCenter(gg_rct_Temple_W),bj_UNIT_FACING)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"A |c000000ffSiege Golem|r has spawned for the |c00004000Scourge|r and is taking the west path!")
else
call DoNothing()
endif
if(Trig_SpawnGolemFish_Func008C()) then
set udg_SpawnBadAss[2]=false
call CreateNUnitsAtLoc(1,'n00F',Player(6),GetRectCenter(gg_rct_Temple_SW),bj_UNIT_FACING)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"A |c000000ffSiege Golem|r has spawned for the |c00004000Scourge|r and is taking the middle path!")
else
call DoNothing()
endif
if(Trig_SpawnGolemFish_Func009C()) then
set udg_SpawnBadAss[3]=false
call CreateNUnitsAtLoc(1,'n00E',Player(0),GetRectCenter(gg_rct_Lore_E),bj_UNIT_FACING)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"A |c000000ffScary Fish|r has spawned for the |c00ff0000Sentinel|r and is taking the east path!")
else
call DoNothing()
endif
if(Trig_SpawnGolemFish_Func010C()) then
set udg_SpawnBadAss[3]=false
call CreateNUnitsAtLoc(1,'n00E',Player(0),GetRectCenter(gg_rct_Lore_N),bj_UNIT_FACING)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"A |c000000ffScary Fish|r has spawned for the |c00ff0000Sentinel|r and is taking the west path!")
else
call DoNothing()
endif
if(Trig_SpawnGolemFish_Func011C()) then
set udg_SpawnBadAss[3]=false
call CreateNUnitsAtLoc(1,'n00E',Player(0),GetRectCenter(gg_rct_Lore_NE),bj_UNIT_FACING)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"A |c000000ffScary Fish|r has spawned for the |c00ff0000Sentinel|r and is taking the middle path!")
else
call DoNothing()
endif
if(Trig_SpawnGolemFish_Func012C()) then
set udg_SpawnBadAss[4]=false
call CreateNUnitsAtLoc(1,'n00E',Player(6),GetRectCenter(gg_rct_Temple_S),bj_UNIT_FACING)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"A |c000000ffScary Fish|r has spawned for the |c00004000Scourge|r and is taking the east path!")
else
call DoNothing()
endif
if(Trig_SpawnGolemFish_Func013C()) then
set udg_SpawnBadAss[4]=false
call CreateNUnitsAtLoc(1,'n00E',Player(6),GetRectCenter(gg_rct_Temple_W),bj_UNIT_FACING)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"A |c000000ffScary Fish|r has spawned for the |c00004000Scourge|r and is taking the west path!")
else
call DoNothing()
endif
if(Trig_SpawnGolemFish_Func014C()) then
set udg_SpawnBadAss[4]=false
call CreateNUnitsAtLoc(1,'n00E',Player(6),GetRectCenter(gg_rct_Temple_SW),bj_UNIT_FACING)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"A |c000000ffScary Fish|r has spawned for the |c00004000Scourge|r and is taking the middle path!")
else
call DoNothing()
endif
endfunction
function InitTrig_SpawnGolemFish takes nothing returns nothing
set gg_trg_SpawnGolemFish=CreateTrigger()
call DisableTrigger(gg_trg_SpawnGolemFish)
call TriggerRegisterTimerEventPeriodic(gg_trg_SpawnGolemFish,30.00)
call TriggerAddCondition(gg_trg_SpawnGolemFish,Condition(function Trig_SpawnGolemFish_Conditions))
call TriggerAddAction(gg_trg_SpawnGolemFish,function Trig_SpawnGolemFish_Actions)
endfunction
function Trig_SpawnHydra_Func001C takes nothing returns boolean
if((udg_SpawnBadAss[5]==true)) then
return true
endif
if((udg_SpawnBadAss[6]==true)) then
return true
endif
return false
endfunction
function Trig_SpawnHydra_Func003C takes nothing returns boolean
if(not(udg_SpawnBadAss[5]==true)) then
return false
endif
if(not(udg_CreepRand==2)) then
return false
endif
return true
endfunction
function Trig_SpawnHydra_Func004C takes nothing returns boolean
if(not(udg_SpawnBadAss[5]==true)) then
return false
endif
if(not(udg_CreepRand==3)) then
return false
endif
return true
endfunction
function Trig_SpawnHydra_Func005C takes nothing returns boolean
if(not(udg_SpawnBadAss[5]==true)) then
return false
endif
if(not(udg_CreepRand==4)) then
return false
endif
return true
endfunction
function Trig_SpawnHydra_Func006C takes nothing returns boolean
if(not(udg_SpawnBadAss[6]==true)) then
return false
endif
if(not(udg_CreepRand==5)) then
return false
endif
return true
endfunction
function Trig_SpawnHydra_Func007C takes nothing returns boolean
if(not(udg_SpawnBadAss[6]==true)) then
return false
endif
if(not(udg_CreepRand==6)) then
return false
endif
return true
endfunction
function Trig_SpawnHydra_Func008C takes nothing returns boolean
if(not(udg_SpawnBadAss[6]==true)) then
return false
endif
if(not(udg_CreepRand==7)) then
return false
endif
return true
endfunction
function Trig_SpawnHydra_Conditions takes nothing returns boolean
if(not Trig_SpawnHydra_Func001C()) then
return false
endif
return true
endfunction
function Trig_SpawnHydra_Actions takes nothing returns nothing
set udg_CreepRand=GetRandomInt(1,60)
if(Trig_SpawnHydra_Func003C()) then
call CreateNUnitsAtLoc(1,'n00D',Player(0),GetRectCenter(gg_rct_Lore_E),bj_UNIT_FACING)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"An |c000000ffAncient Hydra|r has spawned for the |c00ff0000Sentinel|r and is taking the east path!")
else
call DoNothing()
endif
if(Trig_SpawnHydra_Func004C()) then
call CreateNUnitsAtLoc(1,'n00D',Player(0),GetRectCenter(gg_rct_Lore_N),bj_UNIT_FACING)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"An |c000000ffAncient Hydra|r has spawned for the |c00ff0000Sentinel|r and is taking the west path!")
else
call DoNothing()
endif
if(Trig_SpawnHydra_Func005C()) then
call CreateNUnitsAtLoc(1,'n00D',Player(0),GetRectCenter(gg_rct_Lore_NE),bj_UNIT_FACING)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"An |c000000ffAncient Hydra|r has spawned for the |c00ff0000Sentinel|r and is taking the middle path!")
else
call DoNothing()
endif
if(Trig_SpawnHydra_Func006C()) then
call CreateNUnitsAtLoc(1,'n00D',Player(6),GetRectCenter(gg_rct_Temple_S),bj_UNIT_FACING)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"An |c000000ffAncient Hydra|r has spawned for the |c00004000Scourge|r and is taking the east path!")
else
call DoNothing()
endif
if(Trig_SpawnHydra_Func007C()) then
call CreateNUnitsAtLoc(1,'n00D',Player(6),GetRectCenter(gg_rct_Temple_W),bj_UNIT_FACING)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"An |c000000ffAncient Hydra|r has spawned for the |c00004000Scourge|r and is taking the west path!")
else
call DoNothing()
endif
if(Trig_SpawnHydra_Func008C()) then
call CreateNUnitsAtLoc(1,'n00D',Player(6),GetRectCenter(gg_rct_Temple_SW),bj_UNIT_FACING)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"An |c000000ffAncient Hydra|r has spawned for the |c00004000Scourge|r and is taking the middle path!")
else
call DoNothing()
endif
endfunction
function InitTrig_SpawnHydra takes nothing returns nothing
set gg_trg_SpawnHydra=CreateTrigger()
call DisableTrigger(gg_trg_SpawnHydra)
call TriggerRegisterTimerEventPeriodic(gg_trg_SpawnHydra,30.00)
call TriggerAddCondition(gg_trg_SpawnHydra,Condition(function Trig_SpawnHydra_Conditions))
call TriggerAddAction(gg_trg_SpawnHydra,function Trig_SpawnHydra_Actions)
endfunction
function Trig_Aghanims_Scepter_Func006C takes nothing returns boolean
if((GetUnitTypeId(GetTriggerUnit())=='EC04')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H00V')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='OC55')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='UC18')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H00H')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='EC52')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H004')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='O00K')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H002')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='EC53')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='UC01')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='EC57')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='Hmkg')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='Hblm')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='U00E')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='E005')) then
return true
endif
return false
endfunction
function Trig_Aghanims_Scepter_Func007Func001C takes nothing returns boolean
if((GetUnitTypeId(GetTriggerUnit())=='EC04')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H00V')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='OC55')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='UC18')) then
return true
endif
return false
endfunction
function Trig_Aghanims_Scepter_Func007C takes nothing returns boolean
if(not Trig_Aghanims_Scepter_Func007Func001C()) then
return false
endif
return true
endfunction
function Trig_Aghanims_Scepter_Func008Func001C takes nothing returns boolean
if((GetUnitTypeId(GetTriggerUnit())=='H00H')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='EC52')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H004')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='O00K')) then
return true
endif
return false
endfunction
function Trig_Aghanims_Scepter_Func008C takes nothing returns boolean
if(not Trig_Aghanims_Scepter_Func008Func001C()) then
return false
endif
return true
endfunction
function Trig_Aghanims_Scepter_Func009Func001C takes nothing returns boolean
if((GetUnitTypeId(GetTriggerUnit())=='H002')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='EC53')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='UC01')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='EC57')) then
return true
endif
return false
endfunction
function Trig_Aghanims_Scepter_Func009C takes nothing returns boolean
if(not Trig_Aghanims_Scepter_Func009Func001C()) then
return false
endif
return true
endfunction
function Trig_Aghanims_Scepter_Func010Func001C takes nothing returns boolean
if((GetUnitTypeId(GetTriggerUnit())=='Hblm')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='U00E')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='E005')) then
return true
endif
return false
endfunction
function Trig_Aghanims_Scepter_Func010C takes nothing returns boolean
if(not Trig_Aghanims_Scepter_Func010Func001C()) then
return false
endif
return true
endfunction
function Trig_Aghanims_Scepter_Func011Func001C takes nothing returns boolean
if((GetUnitTypeId(GetTriggerUnit())=='Hmkg')) then
return true
endif
return false
endfunction
function Trig_Aghanims_Scepter_Func011C takes nothing returns boolean
if(not Trig_Aghanims_Scepter_Func011Func001C()) then
return false
endif
return true
endfunction
function Trig_Aghanims_Scepter_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I009')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01R')==true)) then
return false
endif
if(not Trig_Aghanims_Scepter_Func006C()) then
return false
endif
return true
endfunction
function Trig_Aghanims_Scepter_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("overhead",GetTriggerUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I009'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01R'))
if(Trig_Aghanims_Scepter_Func007C()) then
call UnitAddItemByIdSwapped('I02D',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_Aghanims_Scepter_Func008C()) then
call UnitAddItemByIdSwapped('I02E',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_Aghanims_Scepter_Func009C()) then
call UnitAddItemByIdSwapped('I02F',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_Aghanims_Scepter_Func010C()) then
call UnitAddItemByIdSwapped('I00X',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_Aghanims_Scepter_Func011C()) then
call UnitAddItemByIdSwapped('I00X',GetTriggerUnit())
set udg_MCLvl[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_MCLvl[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
endfunction
function InitTrig_Aghanims_Scepter takes nothing returns nothing
set gg_trg_Aghanims_Scepter=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Aghanims_Scepter,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Aghanims_Scepter,Condition(function Trig_Aghanims_Scepter_Conditions))
call TriggerAddAction(gg_trg_Aghanims_Scepter,function Trig_Aghanims_Scepter_Actions)
endfunction
function Trig_ItemSimple_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00V')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'IC33')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'IC68')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I016')==true)) then
return false
endif
return true
endfunction
function Trig_ItemSimple_Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I007')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I006')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I017')==true)) then
return false
endif
return true
endfunction
function Trig_ItemSimple_Func003C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I008')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'IC14')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01E')==true)) then
return false
endif
return true
endfunction
function Trig_ItemSimple_Func004C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I021')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00S')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00Q')==true)) then
return false
endif
return true
endfunction
function Trig_ItemSimple_Func005C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'IC14')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00S')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01Y')==true)) then
return false
endif
return true
endfunction
function Trig_ItemSimple_Func006C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00S')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01P')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01L')==true)) then
return false
endif
return true
endfunction
function Trig_ItemSimple_Func007C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'IC23')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'IC39')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01I')==true)) then
return false
endif
return true
endfunction
function Trig_ItemSimple_Func008C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I027')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'IC88')==true)) then
return false
endif
return true
endfunction
function Trig_ItemSimple_Func010C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I012')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'IC66')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'IC65')==true)) then
return false
endif
return true
endfunction
function Trig_ItemSimple_Func011C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'IC67')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'IC40')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I013')==true)) then
return false
endif
return true
endfunction
function Trig_ItemSimple_Func012C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'IC14')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ciri')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'IC63')==true)) then
return false
endif
return true
endfunction
function Trig_ItemSimple_Func013C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I004')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00P')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00S')==true)) then
return false
endif
return true
endfunction
function Trig_ItemSimple_Func014C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'bgst')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'IC19')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)) then
return false
endif
return true
endfunction
function Trig_ItemSimple_Func015C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I018')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'IC12')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ciri')==true)) then
return false
endif
return true
endfunction
function Trig_ItemSimple_Func016C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'IC26')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'IC63')==true)) then
return false
endif
return true
endfunction
function Trig_ItemSimple_Func017C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'IC12')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00P')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)) then
return false
endif
return true
endfunction
function Trig_ItemSimple_Func018C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'IC34')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00U')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01F')==true)) then
return false
endif
return true
endfunction
function Trig_ItemSimple_Func019C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00V')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'IC23')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00P')==true)) then
return false
endif
return true
endfunction
function Trig_ItemSimple_Func020C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01O')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'IC22')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'IC17')==true)) then
return false
endif
return true
endfunction
function Trig_ItemSimple_Func021C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'IC13')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00Q')==true)) then
return false
endif
return true
endfunction
function Trig_ItemSimple_Func022C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'IC13')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ciri')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'IC19')==true)) then
return false
endif
return true
endfunction
function Trig_ItemSimple_Func023C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00U')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01U')==true)) then
return false
endif
return true
endfunction
function Trig_ItemSimple_Func024C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'IC08')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'IC68')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I006')==true)) then
return false
endif
return true
endfunction
function Trig_ItemSimple_Func025C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'belv')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'IC20')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01W')==true)) then
return false
endif
return true
endfunction
function Trig_ItemSimple_Func026C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I027')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00V')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01J')==true)) then
return false
endif
return true
endfunction
function Trig_ItemSimple_Func027C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'IC20')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'IC22')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I001')==true)) then
return false
endif
return true
endfunction
function Trig_ItemSimple_Func028C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I004')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)) then
return false
endif
return true
endfunction
function Trig_ItemSimple_Func029C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'IC19')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'IC17')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01G')==true)) then
return false
endif
return true
endfunction
function Trig_ItemSimple_Func030C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02G')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01G')==true)) then
return false
endif
return true
endfunction
function Trig_ItemSimple_Func031C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I026')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01G')==true)) then
return false
endif
return true
endfunction
function Trig_ItemSimple_Func032C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02A')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01G')==true)) then
return false
endif
return true
endfunction
function Trig_ItemSimple_Func033C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02B')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01G')==true)) then
return false
endif
return true
endfunction
function Trig_ItemSimple_Func034C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'IC66')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01N')==true)) then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='Obla')) then
return false
endif
return true
endfunction
function Trig_ItemSimple_Func035C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'IC67')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'IC64')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I005')==true)) then
return false
endif
return true
endfunction
function Trig_ItemSimple_Actions takes nothing returns nothing
if(Trig_ItemSimple_Func001C()) then
call AddSpecialEffectTargetUnitBJ("overhead",GetTriggerUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00V'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'IC33'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'IC68'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I016'))
call UnitAddItemByIdSwapped('I00O',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_ItemSimple_Func002C()) then
call AddSpecialEffectTargetUnitBJ("overhead",GetTriggerUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I007'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I006'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I017'))
call UnitAddItemByIdSwapped('I00J',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_ItemSimple_Func003C()) then
call AddSpecialEffectTargetUnitBJ("overhead",GetTriggerUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I008'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'IC14'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01E'))
call UnitAddItemByIdSwapped('I029',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_ItemSimple_Func004C()) then
call AddSpecialEffectTargetUnitBJ("overhead",GetTriggerUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I021'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00S'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00Q'))
call UnitAddItemByIdSwapped('I024',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_ItemSimple_Func005C()) then
call AddSpecialEffectTargetUnitBJ("overhead",GetTriggerUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'IC14'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00S'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01Y'))
call UnitAddItemByIdSwapped('I01Z',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_ItemSimple_Func006C()) then
call AddSpecialEffectTargetUnitBJ("overhead",GetTriggerUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00S'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01P'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01L'))
call UnitAddItemByIdSwapped('I00B',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_ItemSimple_Func007C()) then
call AddSpecialEffectTargetUnitBJ("overhead",GetTriggerUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'IC23'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'IC39'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01I'))
call UnitAddItemByIdSwapped('I00Z',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_ItemSimple_Func008C()) then
call AddSpecialEffectTargetUnitBJ("overhead",GetTriggerUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I027'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'IC88'))
call UnitAddItemByIdSwapped('I028',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_ItemSimple_Func010C()) then
call AddSpecialEffectTargetUnitBJ("overhead",GetTriggerUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I012'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'IC66'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'IC65'))
call UnitAddItemByIdSwapped('I000',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_ItemSimple_Func011C()) then
call AddSpecialEffectTargetUnitBJ("overhead",GetTriggerUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'IC67'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I013'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'IC40'))
call UnitAddItemByIdSwapped('IC15',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_ItemSimple_Func012C()) then
call AddSpecialEffectTargetUnitBJ("overhead",GetTriggerUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'IC14'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'ciri'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'IC63'))
call UnitAddItemByIdSwapped('I027',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_ItemSimple_Func013C()) then
call AddSpecialEffectTargetUnitBJ("overhead",GetTriggerUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00S'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I004'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00P'))
call UnitAddItemByIdSwapped('I00L',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_ItemSimple_Func014C()) then
call AddSpecialEffectTargetUnitBJ("overhead",GetTriggerUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'bgst'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'IC19'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))
call UnitAddItemByIdSwapped('IC47',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_ItemSimple_Func015C()) then
call AddSpecialEffectTargetUnitBJ("overhead",GetTriggerUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I018'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'IC12'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'ciri'))
call UnitAddItemByIdSwapped('I020',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_ItemSimple_Func016C()) then
call AddSpecialEffectTargetUnitBJ("overhead",GetTriggerUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'IC26'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'IC63'))
call UnitAddItemByIdSwapped('I00N',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_ItemSimple_Func017C()) then
call AddSpecialEffectTargetUnitBJ("overhead",GetTriggerUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'IC12'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00P'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))
call UnitAddItemByIdSwapped('IC90',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_ItemSimple_Func018C()) then
call AddSpecialEffectTargetUnitBJ("overhead",GetTriggerUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'IC34'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00U'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01F'))
call UnitAddItemByIdSwapped('I021',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_ItemSimple_Func019C()) then
call AddSpecialEffectTargetUnitBJ("overhead",GetTriggerUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00V'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'IC23'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00P'))
call UnitAddItemByIdSwapped('I022',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_ItemSimple_Func020C()) then
call AddSpecialEffectTargetUnitBJ("overhead",GetTriggerUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01O'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'IC22'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'IC17'))
call UnitAddItemByIdSwapped('I01P',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_ItemSimple_Func021C()) then
call AddSpecialEffectTargetUnitBJ("overhead",GetTriggerUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'IC13'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00Q'))
call UnitAddItemByIdSwapped('I00V',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_ItemSimple_Func022C()) then
call AddSpecialEffectTargetUnitBJ("overhead",GetTriggerUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'IC13'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'IC19'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'ciri'))
call UnitAddItemByIdSwapped('IC88',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_ItemSimple_Func023C()) then
call AddSpecialEffectTargetUnitBJ("overhead",GetTriggerUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00U'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01U'))
call UnitAddItemByIdSwapped('I01V',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_ItemSimple_Func024C()) then
call AddSpecialEffectTargetUnitBJ("overhead",GetTriggerUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'IC08'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'IC68'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I006'))
call UnitAddItemByIdSwapped('I01R',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_ItemSimple_Func025C()) then
call AddSpecialEffectTargetUnitBJ("overhead",GetTriggerUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'belv'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'IC20'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01W'))
call UnitAddItemByIdSwapped('I01X',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_ItemSimple_Func026C()) then
call AddSpecialEffectTargetUnitBJ("overhead",GetTriggerUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I027'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00V'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01J'))
call UnitAddItemByIdSwapped('I00M',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_ItemSimple_Func027C()) then
call AddSpecialEffectTargetUnitBJ("overhead",GetTriggerUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'IC20'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'IC22'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I001'))
call UnitAddItemByIdSwapped('I02H',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_ItemSimple_Func028C()) then
call AddSpecialEffectTargetUnitBJ("overhead",GetTriggerUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I004'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))
call UnitAddItemByIdSwapped('IC32',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_ItemSimple_Func029C()) then
call AddSpecialEffectTargetUnitBJ("overhead",GetTriggerUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'IC19'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'IC17'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01G'))
call UnitAddItemByIdSwapped('I02G',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_ItemSimple_Func030C()) then
call AddSpecialEffectTargetUnitBJ("overhead",GetTriggerUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02G'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01G'))
call UnitAddItemByIdSwapped('I026',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_ItemSimple_Func031C()) then
call AddSpecialEffectTargetUnitBJ("overhead",GetTriggerUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I026'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01G'))
call UnitAddItemByIdSwapped('I02A',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_ItemSimple_Func032C()) then
call AddSpecialEffectTargetUnitBJ("overhead",GetTriggerUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02A'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01G'))
call UnitAddItemByIdSwapped('I02B',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_ItemSimple_Func033C()) then
call AddSpecialEffectTargetUnitBJ("overhead",GetTriggerUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02B'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01G'))
call UnitAddItemByIdSwapped('I02C',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_ItemSimple_Func034C()) then
call AddSpecialEffectTargetUnitBJ("overhead",GetTriggerUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'IC66'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01N'))
call UnitAddItemByIdSwapped('I003',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_ItemSimple_Func035C()) then
call AddSpecialEffectTargetUnitBJ("overhead",GetTriggerUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'IC67'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'IC64'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I005'))
call UnitAddItemByIdSwapped('I00A',GetTriggerUnit())
else
call DoNothing()
endif
endfunction
function InitTrig_ItemSimple takes nothing returns nothing
set gg_trg_ItemSimple=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_ItemSimple,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddAction(gg_trg_ItemSimple,function Trig_ItemSimple_Actions)
endfunction
function Trig_ItemComplex_Func003Func001C takes nothing returns boolean
if(not(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),GetForLoopIndexA()))=='IC23')) then
return false
endif
return true
endfunction
function Trig_ItemComplex_Func004Func004Func001C takes nothing returns boolean
if(not(udg_HR<2)) then
return false
endif
if(not(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),GetForLoopIndexB()))=='IC23')) then
return false
endif
return true
endfunction
function Trig_ItemComplex_Func004C takes nothing returns boolean
if(not(udg_HO>1)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01K')==true)) then
return false
endif
return true
endfunction
function Trig_ItemComplex_Func007Func001C takes nothing returns boolean
if(not(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),GetForLoopIndexA()))=='I002')) then
return false
endif
return true
endfunction
function Trig_ItemComplex_Func008Func005Func001C takes nothing returns boolean
if(not(udg_ItemR<2)) then
return false
endif
if(not(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),GetForLoopIndexB()))=='I002')) then
return false
endif
return true
endfunction
function Trig_ItemComplex_Func008C takes nothing returns boolean
if(not(udg_ItemO>1)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'IC68')==true)) then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01M')==true)) then
return false
endif
return true
endfunction
function Trig_ItemComplex_Actions takes nothing returns nothing
set udg_HO=0
set udg_HR=0
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_ItemComplex_Func003Func001C()) then
set udg_HO=(udg_HO+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_ItemComplex_Func004C()) then
call AddSpecialEffectTargetUnitBJ("overhead",GetTriggerUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01K'))
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=6
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
if(Trig_ItemComplex_Func004Func004Func001C()) then
set udg_HR=(udg_HR+1)
call RemoveItem(UnitItemInSlotBJ(GetTriggerUnit(),GetForLoopIndexB()))
else
call DoNothing()
endif
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
call UnitAddItemByIdSwapped('I00K',GetTriggerUnit())
else
call DoNothing()
endif
set udg_ItemO=0
set udg_ItemR=0
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_ItemComplex_Func007Func001C()) then
set udg_ItemO=(udg_ItemO+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_ItemComplex_Func008C()) then
call AddSpecialEffectTargetUnitBJ("overhead",GetTriggerUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'IC68'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01M'))
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=6
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
if(Trig_ItemComplex_Func008Func005Func001C()) then
set udg_ItemR=(udg_ItemR+1)
call RemoveItem(UnitItemInSlotBJ(GetTriggerUnit(),GetForLoopIndexB()))
else
call DoNothing()
endif
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
call UnitAddItemByIdSwapped('I00T',GetTriggerUnit())
else
call DoNothing()
endif
endfunction
function InitTrig_ItemComplex takes nothing returns nothing
set gg_trg_ItemComplex=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_ItemComplex,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddAction(gg_trg_ItemComplex,function Trig_ItemComplex_Actions)
endfunction
function Trig_forbidden_items_Func001Func001C takes nothing returns boolean
if((GetUnitTypeId(GetTriggerUnit())=='OC56')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='U00F')) then
return true
endif
return false
endfunction
function Trig_forbidden_items_Func001C takes nothing returns boolean
if(not Trig_forbidden_items_Func001Func001C()) then
return false
endif
if(not(GetItemTypeId(GetManipulatedItem())=='desc')) then
return false
endif
return true
endfunction
function Trig_forbidden_items_Func002C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='EC45')) then
return false
endif
if(not(GetItemTypeId(GetManipulatedItem())=='I00M')) then
return false
endif
return true
endfunction
function Trig_forbidden_items_Func004Func001Func003C takes nothing returns boolean
if(not(udg_HO>1)) then
return false
endif
return true
endfunction
function Trig_forbidden_items_Func004Func001C takes nothing returns boolean
if(not(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),GetForLoopIndexA()))=='I00M')) then
return false
endif
return true
endfunction
function Trig_forbidden_items_Func005Func001C takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I011')) then
return false
endif
return true
endfunction
function Trig_forbidden_items_Func005Func002C takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I01S')) then
return false
endif
return true
endfunction
function Trig_forbidden_items_Func005Func003C takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I00T')) then
return false
endif
return true
endfunction
function Trig_forbidden_items_Func005Func004C takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I00Z')) then
return false
endif
return true
endfunction
function Trig_forbidden_items_Func005Func005C takes nothing returns boolean
if((GetUnitTypeId(GetTriggerUnit())=='E003')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H00J')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='N00M')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='N00G')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='N00Z')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='HC92')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='HC49')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H001')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='EC45')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='U00A')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='U007')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='UC42')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='U008')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='E015')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='UC91')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='U00B')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='U000')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='U004')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='NC00')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='UC11')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H000')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='Eevi')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='Eevm')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='U006')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='N01O')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='N013')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='N014')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='N015')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='n004')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='n018')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='n01C')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='n01G')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='Obla')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='Hamg')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='Hmkg')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='E00G')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='U00F')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='U00K')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='U00I')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='Ofar')) then
return true
endif
return false
endfunction
function Trig_forbidden_items_Func005C takes nothing returns boolean
if(not Trig_forbidden_items_Func005Func005C()) then
return false
endif
return true
endfunction
function Trig_forbidden_items_Actions takes nothing returns nothing
if(Trig_forbidden_items_Func001C()) then
call UnitRemoveItemSwapped(GetManipulatedItem(),GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_forbidden_items_Func002C()) then
call UnitRemoveItemSwapped(GetManipulatedItem(),GetTriggerUnit())
else
call DoNothing()
endif
set udg_HO=0
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_forbidden_items_Func004Func001C()) then
set udg_HO=(udg_HO+1)
if(Trig_forbidden_items_Func004Func001Func003C()) then
set udg_HO=(udg_HO-1)
call UnitRemoveItemSwapped(UnitItemInSlotBJ(GetTriggerUnit(),GetForLoopIndexA()),GetTriggerUnit())
else
call DoNothing()
endif
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_forbidden_items_Func005C()) then
if(Trig_forbidden_items_Func005Func003C()) then
call RemoveItem(GetManipulatedItem())
call UnitAddItemByIdSwapped('I011',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_forbidden_items_Func005Func004C()) then
call RemoveItem(GetManipulatedItem())
call UnitAddItemByIdSwapped('I01S',GetTriggerUnit())
else
call DoNothing()
endif
else
if(Trig_forbidden_items_Func005Func001C()) then
call RemoveItem(GetManipulatedItem())
call UnitAddItemByIdSwapped('I00T',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_forbidden_items_Func005Func002C()) then
call RemoveItem(GetManipulatedItem())
call UnitAddItemByIdSwapped('I00Z',GetTriggerUnit())
else
call DoNothing()
endif
endif
endfunction
function InitTrig_forbidden_items takes nothing returns nothing
set gg_trg_forbidden_items=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_forbidden_items,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddAction(gg_trg_forbidden_items,function Trig_forbidden_items_Actions)
endfunction
function Trig_Leaderboard_count_Func002001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='etrp')
endfunction
function Trig_Leaderboard_count_Func002002 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='e011')
endfunction
function Trig_Leaderboard_count_Conditions takes nothing returns boolean
if(not GetBooleanOr(Trig_Leaderboard_count_Func002001(),Trig_Leaderboard_count_Func002002())) then
return false
endif
return true
endfunction
function Trig_Leaderboard_count_Actions takes nothing returns nothing
set udg_LBTow[1]=(udg_LBTow[1]+1)
endfunction
function InitTrig_Leaderboard_count takes nothing returns nothing
set gg_trg_Leaderboard_count=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Leaderboard_count,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_Leaderboard_count,Condition(function Trig_Leaderboard_count_Conditions))
call TriggerAddAction(gg_trg_Leaderboard_count,function Trig_Leaderboard_count_Actions)
endfunction
function Trig_Leaderboard_count_2_Func002001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='uzg1')
endfunction
function Trig_Leaderboard_count_2_Func002002 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='u00D')
endfunction
function Trig_Leaderboard_count_2_Conditions takes nothing returns boolean
if(not GetBooleanOr(Trig_Leaderboard_count_2_Func002001(),Trig_Leaderboard_count_2_Func002002())) then
return false
endif
return true
endfunction
function Trig_Leaderboard_count_2_Actions takes nothing returns nothing
set udg_LBTow[2]=(udg_LBTow[2]+1)
endfunction
function InitTrig_Leaderboard_count_2 takes nothing returns nothing
set gg_trg_Leaderboard_count_2=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Leaderboard_count_2,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_Leaderboard_count_2,Condition(function Trig_Leaderboard_count_2_Conditions))
call TriggerAddAction(gg_trg_Leaderboard_count_2,function Trig_Leaderboard_count_2_Actions)
endfunction
function Trig_UL_crypt_Func002C takes nothing returns boolean
if(not(udg_SpawnMRLMR[7]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[8]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[9]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[10]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[11]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[12]==false)) then
return false
endif
return true
endfunction
function Trig_UL_crypt_Actions takes nothing returns nothing
set udg_SpawnMRLMR[7]=false
if(Trig_UL_crypt_Func002C()) then
call DisplayTimedTextToForce(GetPlayersAll(),30,"The Sentinel has destroyed all of the Scourge's unit producing structures. The Sentinel creeps are now a whole lot tougher.")
call SetPlayerTechResearchedSwap('R00C',(GetPlayerTechCountSimple('R00C',Player(0))+10),Player(0))
call SetPlayerTechResearchedSwap('R00D',(GetPlayerTechCountSimple('R00D',Player(0))+10),Player(0))
else
call DoNothing()
endif
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function InitTrig_UL_crypt takes nothing returns nothing
set gg_trg_UL_crypt=CreateTrigger()
call TriggerRegisterUnitEvent(gg_trg_UL_crypt,gg_unit_usep_0090,EVENT_UNIT_DEATH)
call TriggerAddAction(gg_trg_UL_crypt,function Trig_UL_crypt_Actions)
endfunction
function Trig_M_crypt_Func002C takes nothing returns boolean
if(not(udg_SpawnMRLMR[7]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[8]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[9]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[10]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[11]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[12]==false)) then
return false
endif
return true
endfunction
function Trig_M_crypt_Actions takes nothing returns nothing
set udg_SpawnMRLMR[8]=false
if(Trig_M_crypt_Func002C()) then
call DisplayTimedTextToForce(GetPlayersAll(),30,"The Sentinel has destroyed all of the Scourge's unit producing structures. The Sentinel creeps are now a whole lot tougher.")
call SetPlayerTechResearchedSwap('R00C',(GetPlayerTechCountSimple('R00C',Player(0))+10),Player(0))
call SetPlayerTechResearchedSwap('R00D',(GetPlayerTechCountSimple('R00D',Player(0))+10),Player(0))
else
call DoNothing()
endif
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function InitTrig_M_crypt takes nothing returns nothing
set gg_trg_M_crypt=CreateTrigger()
call TriggerRegisterUnitEvent(gg_trg_M_crypt,gg_unit_usep_0089,EVENT_UNIT_DEATH)
call TriggerAddAction(gg_trg_M_crypt,function Trig_M_crypt_Actions)
endfunction
function Trig_LR_crypt_Func002C takes nothing returns boolean
if(not(udg_SpawnMRLMR[7]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[8]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[9]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[10]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[11]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[12]==false)) then
return false
endif
return true
endfunction
function Trig_LR_crypt_Actions takes nothing returns nothing
set udg_SpawnMRLMR[9]=false
if(Trig_LR_crypt_Func002C()) then
call DisplayTimedTextToForce(GetPlayersAll(),30,"The Sentinel has destroyed all of the Scourge's unit producing structures. The Sentinel creeps are now a whole lot tougher.")
call SetPlayerTechResearchedSwap('R00C',(GetPlayerTechCountSimple('R00C',Player(0))+10),Player(0))
call SetPlayerTechResearchedSwap('R00D',(GetPlayerTechCountSimple('R00D',Player(0))+10),Player(0))
else
call DoNothing()
endif
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function InitTrig_LR_crypt takes nothing returns nothing
set gg_trg_LR_crypt=CreateTrigger()
call TriggerRegisterUnitEvent(gg_trg_LR_crypt,gg_unit_usep_0088,EVENT_UNIT_DEATH)
call TriggerAddAction(gg_trg_LR_crypt,function Trig_LR_crypt_Actions)
endfunction
function Trig_UL_temple_Func002C takes nothing returns boolean
if(not(udg_SpawnMRLMR[7]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[8]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[9]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[10]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[11]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[12]==false)) then
return false
endif
return true
endfunction
function Trig_UL_temple_Actions takes nothing returns nothing
set udg_SpawnMRLMR[10]=false
if(Trig_UL_temple_Func002C()) then
call DisplayTimedTextToForce(GetPlayersAll(),30,"The Sentinel has destroyed all of the Scourge's unit producing structures. The Sentinel creeps are now a whole lot tougher.")
call SetPlayerTechResearchedSwap('R00C',(GetPlayerTechCountSimple('R00C',Player(0))+10),Player(0))
call SetPlayerTechResearchedSwap('R00D',(GetPlayerTechCountSimple('R00D',Player(0))+10),Player(0))
else
call DoNothing()
endif
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function InitTrig_UL_temple takes nothing returns nothing
set gg_trg_UL_temple=CreateTrigger()
call TriggerRegisterUnitEvent(gg_trg_UL_temple,gg_unit_utod_0092,EVENT_UNIT_DEATH)
call TriggerAddAction(gg_trg_UL_temple,function Trig_UL_temple_Actions)
endfunction
function Trig_M_temple_Func002C takes nothing returns boolean
if(not(udg_SpawnMRLMR[7]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[8]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[9]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[10]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[11]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[12]==false)) then
return false
endif
return true
endfunction
function Trig_M_temple_Actions takes nothing returns nothing
set udg_SpawnMRLMR[11]=false
if(Trig_M_temple_Func002C()) then
call DisplayTimedTextToForce(GetPlayersAll(),30,"The Sentinel has destroyed all of the Scourge's unit producing structures. The Sentinel creeps are now a whole lot tougher.")
call SetPlayerTechResearchedSwap('R00C',(GetPlayerTechCountSimple('R00C',Player(0))+10),Player(0))
call SetPlayerTechResearchedSwap('R00D',(GetPlayerTechCountSimple('R00D',Player(0))+10),Player(0))
else
call DoNothing()
endif
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function InitTrig_M_temple takes nothing returns nothing
set gg_trg_M_temple=CreateTrigger()
call TriggerRegisterUnitEvent(gg_trg_M_temple,gg_unit_utod_0091,EVENT_UNIT_DEATH)
call TriggerAddAction(gg_trg_M_temple,function Trig_M_temple_Actions)
endfunction
function Trig_LR_temple_Func002C takes nothing returns boolean
if(not(udg_SpawnMRLMR[7]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[8]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[9]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[10]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[11]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[12]==false)) then
return false
endif
return true
endfunction
function Trig_LR_temple_Actions takes nothing returns nothing
set udg_SpawnMRLMR[12]=false
if(Trig_LR_temple_Func002C()) then
call DisplayTimedTextToForce(GetPlayersAll(),30,"The Sentinel has destroyed all of the Scourge's unit producing structures. The Sentinel creeps are now a whole lot tougher.")
call SetPlayerTechResearchedSwap('R00C',(GetPlayerTechCountSimple('R00C',Player(0))+10),Player(0))
call SetPlayerTechResearchedSwap('R00D',(GetPlayerTechCountSimple('R00D',Player(0))+10),Player(0))
else
call DoNothing()
endif
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function InitTrig_LR_temple takes nothing returns nothing
set gg_trg_LR_temple=CreateTrigger()
call TriggerRegisterUnitEvent(gg_trg_LR_temple,gg_unit_utod_0093,EVENT_UNIT_DEATH)
call TriggerAddAction(gg_trg_LR_temple,function Trig_LR_temple_Actions)
endfunction
function Trig_UL_war_Func002C takes nothing returns boolean
if(not(udg_SpawnMRLMR[1]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[2]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[3]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[4]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[5]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[6]==false)) then
return false
endif
return true
endfunction
function Trig_UL_war_Actions takes nothing returns nothing
set udg_SpawnMRLMR[1]=false
if(Trig_UL_war_Func002C()) then
call DisplayTimedTextToForce(GetPlayersAll(),30,"The Scourge has destroyed all of the Sentinel's unit producing structures. The Scourge creeps are now a whole lot tougher.")
call SetPlayerTechResearchedSwap('R009',(GetPlayerTechCountSimple('R009',Player(6))+10),Player(6))
call SetPlayerTechResearchedSwap('R00B',(GetPlayerTechCountSimple('R00B',Player(6))+10),Player(6))
else
call DoNothing()
endif
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function InitTrig_UL_war takes nothing returns nothing
set gg_trg_UL_war=CreateTrigger()
call TriggerRegisterUnitEvent(gg_trg_UL_war,gg_unit_emow_0044,EVENT_UNIT_DEATH)
call TriggerAddAction(gg_trg_UL_war,function Trig_UL_war_Actions)
endfunction
function Trig_M_war_Func002C takes nothing returns boolean
if(not(udg_SpawnMRLMR[1]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[2]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[3]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[4]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[5]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[6]==false)) then
return false
endif
return true
endfunction
function Trig_M_war_Actions takes nothing returns nothing
set udg_SpawnMRLMR[2]=false
if(Trig_M_war_Func002C()) then
call DisplayTimedTextToForce(GetPlayersAll(),30,"The Scourge has destroyed all of the Sentinel's unit producing structures. The Scourge creeps are now a whole lot tougher.")
call SetPlayerTechResearchedSwap('R009',(GetPlayerTechCountSimple('R009',Player(6))+10),Player(6))
call SetPlayerTechResearchedSwap('R00B',(GetPlayerTechCountSimple('R00B',Player(6))+10),Player(6))
else
call DoNothing()
endif
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function InitTrig_M_war takes nothing returns nothing
set gg_trg_M_war=CreateTrigger()
call TriggerRegisterUnitEvent(gg_trg_M_war,gg_unit_eaom_0046,EVENT_UNIT_DEATH)
call TriggerAddAction(gg_trg_M_war,function Trig_M_war_Actions)
endfunction
function Trig_R_war_Func002C takes nothing returns boolean
if(not(udg_SpawnMRLMR[1]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[2]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[3]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[4]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[5]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[6]==false)) then
return false
endif
return true
endfunction
function Trig_R_war_Actions takes nothing returns nothing
set udg_SpawnMRLMR[3]=false
if(Trig_R_war_Func002C()) then
call DisplayTimedTextToForce(GetPlayersAll(),30,"The Scourge has destroyed all of the Sentinel's unit producing structures. The Scourge creeps are now a whole lot tougher.")
call SetPlayerTechResearchedSwap('R009',(GetPlayerTechCountSimple('R009',Player(6))+10),Player(6))
call SetPlayerTechResearchedSwap('R00B',(GetPlayerTechCountSimple('R00B',Player(6))+10),Player(6))
else
call DoNothing()
endif
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function InitTrig_R_war takes nothing returns nothing
set gg_trg_R_war=CreateTrigger()
call TriggerRegisterUnitEvent(gg_trg_R_war,gg_unit_eaom_0047,EVENT_UNIT_DEATH)
call TriggerAddAction(gg_trg_R_war,function Trig_R_war_Actions)
endfunction
function Trig_UL_lore_Func002C takes nothing returns boolean
if(not(udg_SpawnMRLMR[1]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[2]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[3]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[4]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[5]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[6]==false)) then
return false
endif
return true
endfunction
function Trig_UL_lore_Actions takes nothing returns nothing
set udg_SpawnMRLMR[4]=false
if(Trig_UL_lore_Func002C()) then
call DisplayTimedTextToForce(GetPlayersAll(),30,"The Scourge has destroyed all of the Sentinel's unit producing structures. The Scourge creeps are now a whole lot tougher.")
call SetPlayerTechResearchedSwap('R009',(GetPlayerTechCountSimple('R009',Player(6))+10),Player(6))
call SetPlayerTechResearchedSwap('R00B',(GetPlayerTechCountSimple('R00B',Player(6))+10),Player(6))
else
call DoNothing()
endif
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function InitTrig_UL_lore takes nothing returns nothing
set gg_trg_UL_lore=CreateTrigger()
call TriggerRegisterUnitEvent(gg_trg_UL_lore,gg_unit_eaoe_0050,EVENT_UNIT_DEATH)
call TriggerAddAction(gg_trg_UL_lore,function Trig_UL_lore_Actions)
endfunction
function Trig_M_lore_Func002C takes nothing returns boolean
if(not(udg_SpawnMRLMR[1]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[2]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[3]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[4]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[5]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[6]==false)) then
return false
endif
return true
endfunction
function Trig_M_lore_Actions takes nothing returns nothing
set udg_SpawnMRLMR[5]=false
if(Trig_M_lore_Func002C()) then
call DisplayTimedTextToForce(GetPlayersAll(),30,"The Scourge has destroyed all of the Sentinel's unit producing structures. The Scourge creeps are now a whole lot tougher.")
call SetPlayerTechResearchedSwap('R009',(GetPlayerTechCountSimple('R009',Player(6))+10),Player(6))
call SetPlayerTechResearchedSwap('R00B',(GetPlayerTechCountSimple('R00B',Player(6))+10),Player(6))
else
call DoNothing()
endif
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function InitTrig_M_lore takes nothing returns nothing
set gg_trg_M_lore=CreateTrigger()
call TriggerRegisterUnitEvent(gg_trg_M_lore,gg_unit_eaoe_0049,EVENT_UNIT_DEATH)
call TriggerAddAction(gg_trg_M_lore,function Trig_M_lore_Actions)
endfunction
function Trig_R_lore_Func002C takes nothing returns boolean
if(not(udg_SpawnMRLMR[1]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[2]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[3]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[4]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[5]==false)) then
return false
endif
if(not(udg_SpawnMRLMR[6]==false)) then
return false
endif
return true
endfunction
function Trig_R_lore_Actions takes nothing returns nothing
set udg_SpawnMRLMR[6]=false
if(Trig_R_lore_Func002C()) then
call DisplayTimedTextToForce(GetPlayersAll(),30,"The Scourge has destroyed all of the Sentinel's unit producing structures. The Scourge creeps are now a whole lot tougher.")
call SetPlayerTechResearchedSwap('R009',(GetPlayerTechCountSimple('R009',Player(6))+10),Player(6))
call SetPlayerTechResearchedSwap('R00B',(GetPlayerTechCountSimple('R00B',Player(6))+10),Player(6))
else
call DoNothing()
endif
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function InitTrig_R_lore takes nothing returns nothing
set gg_trg_R_lore=CreateTrigger()
call TriggerRegisterUnitEvent(gg_trg_R_lore,gg_unit_eaoe_0048,EVENT_UNIT_DEATH)
call TriggerAddAction(gg_trg_R_lore,function Trig_R_lore_Actions)
endfunction
function Trig_Sent_Win_Actions takes nothing returns nothing
call CustomDefeatBJ(Player(7),"Defeat!")
call CustomDefeatBJ(Player(8),"Defeat!")
call CustomDefeatBJ(Player(9),"Defeat!")
call CustomDefeatBJ(Player(10),"Defeat!")
call CustomDefeatBJ(Player(11),"Defeat!")
call CustomVictoryBJ(Player(1),true,true)
call CustomVictoryBJ(Player(2),true,true)
call CustomVictoryBJ(Player(3),true,true)
call CustomVictoryBJ(Player(4),true,true)
call CustomVictoryBJ(Player(5),true,true)
call DisplayTimedTextToForce(GetPlayersAll(),30,"The Sentinel has won! Please play again,and visit the forum at www.dota-allstars.com.")
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function InitTrig_Sent_Win takes nothing returns nothing
set gg_trg_Sent_Win=CreateTrigger()
call TriggerRegisterUnitEvent(gg_trg_Sent_Win,gg_unit_unpl_0087,EVENT_UNIT_DEATH)
call TriggerAddAction(gg_trg_Sent_Win,function Trig_Sent_Win_Actions)
endfunction
function Trig_Scourge_Win_Actions takes nothing returns nothing
call CustomDefeatBJ(Player(1),"Defeat!")
call CustomDefeatBJ(Player(2),"Defeat!")
call CustomDefeatBJ(Player(3),"Defeat!")
call CustomDefeatBJ(Player(4),"Defeat!")
call CustomDefeatBJ(Player(5),"Defeat!")
call CustomVictoryBJ(Player(7),true,true)
call CustomVictoryBJ(Player(8),true,true)
call CustomVictoryBJ(Player(9),true,true)
call CustomVictoryBJ(Player(10),true,true)
call CustomVictoryBJ(Player(11),true,true)
call DisplayTimedTextToForce(GetPlayersAll(),30,"The Scourge has won! Please play again,and visit the forum at www.dota-allstars.com.")
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function InitTrig_Scourge_Win takes nothing returns nothing
set gg_trg_Scourge_Win=CreateTrigger()
call TriggerRegisterUnitEvent(gg_trg_Scourge_Win,gg_unit_eaow_0029,EVENT_UNIT_DEATH)
call TriggerAddAction(gg_trg_Scourge_Win,function Trig_Scourge_Win_Actions)
endfunction
function Trig_Lvl25_force_Func003Func001C takes nothing returns boolean
if(not(udg_SpawnMRLMR[GetForLoopIndexA()]==false)) then
return false
endif
return true
endfunction
function Trig_Lvl25_force_Func004Func001C takes nothing returns boolean
if(not(udg_SpawnMRLMR[GetForLoopIndexA()]==false)) then
return false
endif
return true
endfunction
function Trig_Lvl25_force_Func005C takes nothing returns boolean
if(not(udg_RaxCount[1]>udg_RaxCount[2])) then
return false
endif
return true
endfunction
function Trig_Lvl25_force_Func006C takes nothing returns boolean
if(not(udg_RaxCount[2]>udg_RaxCount[1])) then
return false
endif
return true
endfunction
function Trig_Lvl25_force_Func007Func001C takes nothing returns boolean
if(not(udg_LBKills[1]>udg_LBKills[2])) then
return false
endif
return true
endfunction
function Trig_Lvl25_force_Func007C takes nothing returns boolean
if(not(udg_RaxCount[2]==udg_RaxCount[1])) then
return false
endif
return true
endfunction
function Trig_Lvl25_force_Conditions takes nothing returns boolean
if(not(GetHeroLevel(GetTriggerUnit())==25)) then
return false
endif
return true
endfunction
function Trig_Lvl25_force_Actions takes nothing returns nothing
set udg_RaxCount[1]=0
set udg_RaxCount[2]=0
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Lvl25_force_Func003Func001C()) then
set udg_RaxCount[1]=(udg_RaxCount[1]+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=7
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Lvl25_force_Func004Func001C()) then
set udg_RaxCount[2]=(udg_RaxCount[2]+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_Lvl25_force_Func005C()) then
call SetPlayerTechResearchedSwap('R009',(GetPlayerTechCountSimple('R009',Player(6))+1),Player(6))
call SetPlayerTechResearchedSwap('R00B',(GetPlayerTechCountSimple('R00B',Player(6))+1),Player(6))
call SetPlayerTechResearchedSwap('R003',(GetPlayerTechCountSimple('R003',Player(6))+1),Player(6))
call SetPlayerTechResearchedSwap('R00A',(GetPlayerTechCountSimple('R00A',Player(6))+1),Player(6))
else
call DoNothing()
endif
if(Trig_Lvl25_force_Func006C()) then
call SetPlayerTechResearchedSwap('R007',(GetPlayerTechCountSimple('R007',Player(0))+1),Player(0))
call SetPlayerTechResearchedSwap('R00C',(GetPlayerTechCountSimple('R00C',Player(0))+1),Player(0))
call SetPlayerTechResearchedSwap('R008',(GetPlayerTechCountSimple('R008',Player(0))+1),Player(0))
call SetPlayerTechResearchedSwap('R00D',(GetPlayerTechCountSimple('R00D',Player(0))+1),Player(0))
else
call DoNothing()
endif
if(Trig_Lvl25_force_Func007C()) then
if(Trig_Lvl25_force_Func007Func001C()) then
call SetPlayerTechResearchedSwap('R007',(GetPlayerTechCountSimple('R007',Player(0))+1),Player(0))
call SetPlayerTechResearchedSwap('R00C',(GetPlayerTechCountSimple('R00C',Player(0))+1),Player(0))
call SetPlayerTechResearchedSwap('R008',(GetPlayerTechCountSimple('R008',Player(0))+1),Player(0))
call SetPlayerTechResearchedSwap('R00D',(GetPlayerTechCountSimple('R00D',Player(0))+1),Player(0))
else
call SetPlayerTechResearchedSwap('R009',(GetPlayerTechCountSimple('R009',Player(6))+1),Player(6))
call SetPlayerTechResearchedSwap('R00B',(GetPlayerTechCountSimple('R00B',Player(6))+1),Player(6))
call SetPlayerTechResearchedSwap('R003',(GetPlayerTechCountSimple('R003',Player(6))+1),Player(6))
call SetPlayerTechResearchedSwap('R00A',(GetPlayerTechCountSimple('R00A',Player(6))+1),Player(6))
endif
else
call DoNothing()
endif
endfunction
function InitTrig_Lvl25_force takes nothing returns nothing
set gg_trg_Lvl25_force=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Lvl25_force,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(gg_trg_Lvl25_force,Condition(function Trig_Lvl25_force_Conditions))
call TriggerAddAction(gg_trg_Lvl25_force,function Trig_Lvl25_force_Actions)
endfunction
function Trig_display_leaderboard_Actions takes nothing returns nothing
call CreateMultiboardBJ(4,16,("DotA Allstars"+udg_VersionString))
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,1,"Player")
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),2,1,"Dead?")
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),3,1," Kills")
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),4,1,"Deaths")
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,2,(udg_Colors[1]+("The Sentinel"+"|r")))
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,8,(udg_Colors[7]+("The Scourge"+"|r")))
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),3,8," 0")
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),4,8," 0")
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),4,2," 0")
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),3,2," 0")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=16
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),1,GetForLoopIndexA(),9.80)
call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),2,GetForLoopIndexA(),4.20)
call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),3,GetForLoopIndexA(),4.00)
call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),4,GetForLoopIndexA(),4.60)
call MultiboardSetItemColorBJ(GetLastCreatedMultiboard(),2,GetForLoopIndexA(),86.20,86.20,0.00,0)
call MultiboardSetItemColorBJ(GetLastCreatedMultiboard(),3,GetForLoopIndexA(),100.00,0.00,0.00,0)
call MultiboardSetItemColorBJ(GetLastCreatedMultiboard(),4,GetForLoopIndexA(),0.00,5.00,100.00,0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=2
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,(GetForLoopIndexA()+1),(udg_Colors[GetForLoopIndexA()]+(GetPlayerName(ConvertedPlayer(GetForLoopIndexA()))+"|r")))
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),2,(GetForLoopIndexA()+1)," NO")
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),3,(GetForLoopIndexA()+1)," 0")
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),4,(GetForLoopIndexA()+1)," 0")
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=8
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,(GetForLoopIndexA()+1),(udg_Colors[GetForLoopIndexA()]+(GetPlayerName(ConvertedPlayer(GetForLoopIndexA()))+"|r")))
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),2,(GetForLoopIndexA()+1)," NO")
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),3,(GetForLoopIndexA()+1)," 0")
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),4,(GetForLoopIndexA()+1)," 0")
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=16
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),GetForLoopIndexA(),GetForLoopIndexB(),true,false)
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,14,"Time Elapsed")
call MultiboardSetItemColorBJ(GetLastCreatedMultiboard(),3,14,100.00,100.00,100.00,0)
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,15,(udg_Colors[1]+("Towers Lost"+"|r")))
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,16,(udg_Colors[7]+("Towers Lost"+"|r")))
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),3,16,(udg_Colors[7]+(" 0"+"|r")))
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),3,16," 0")
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),3,15," 0")
call MultiboardDisplayBJ(true,GetLastCreatedMultiboard())
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function InitTrig_display_leaderboard takes nothing returns nothing
set gg_trg_display_leaderboard=CreateTrigger()
call TriggerRegisterTimerEventSingle(gg_trg_display_leaderboard,1.00)
call TriggerAddAction(gg_trg_display_leaderboard,function Trig_display_leaderboard_Actions)
endfunction
function Trig_update_leaderboard_always_Func001Func001Func002C takes nothing returns boolean
if(not(GetPlayerState(ConvertedPlayer(GetForLoopIndexB()),PLAYER_STATE_RESOURCE_FOOD_USED)==0)) then
return false
endif
return true
endfunction
function Trig_update_leaderboard_always_Func001Func001C takes nothing returns boolean
if(not(GetForLoopIndexB()!=7)) then
return false
endif
return true
endfunction
function Trig_update_leaderboard_always_Func004C takes nothing returns boolean
if(not(udg_Seconds<10)) then
return false
endif
return true
endfunction
function Trig_update_leaderboard_always_Actions takes nothing returns nothing
set bj_forLoopBIndex=2
set bj_forLoopBIndexEnd=12
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
if(Trig_update_leaderboard_always_Func001Func001C()) then
if(Trig_update_leaderboard_always_Func001Func001Func002C()) then
set udg_TempCounter=R2I(TimerGetRemaining(udg_PTimer[GetForLoopIndexB()]))
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),2,(GetForLoopIndexB()+1),(" "+I2S(udg_TempCounter)))
else
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),2,(GetForLoopIndexB()+1)," NO")
endif
else
call DoNothing()
endif
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
set udg_Minutes=((R2I(TimerGetElapsed(udg_LBTime))/60)-(1/2))
set udg_Seconds=ModuloInteger(R2I(TimerGetElapsed(udg_LBTime)),60)
if(Trig_update_leaderboard_always_Func004C()) then
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),3,14,(" "+(I2S(udg_Minutes)+(":0"+I2S(udg_Seconds)))))
else
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),3,14,(" "+(I2S(udg_Minutes)+(":"+I2S(udg_Seconds)))))
endif
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),3,15,(" "+I2S(udg_LBTow[1])))
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),3,16,(udg_Colors[7]+((" "+I2S(udg_LBTow[2]))+"|r")))
endfunction
function InitTrig_update_leaderboard_always takes nothing returns nothing
set gg_trg_update_leaderboard_always=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(gg_trg_update_leaderboard_always,1.00)
call TriggerAddAction(gg_trg_update_leaderboard_always,function Trig_update_leaderboard_always_Actions)
endfunction
function Trig_update_leaderboard_kills_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),3,(GetForLoopIndexA()+1),(" "+I2S(udg_LBKills[GetForLoopIndexA()])))
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),4,(GetForLoopIndexA()+1),(" "+I2S(udg_LBDeaths[GetForLoopIndexA()])))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function InitTrig_update_leaderboard_kills takes nothing returns nothing
set gg_trg_update_leaderboard_kills=CreateTrigger()
call TriggerAddAction(gg_trg_update_leaderboard_kills,function Trig_update_leaderboard_kills_Actions)
endfunction
function Trig_Sent_Win_Checksum_Func010C takes nothing returns boolean
if(not(udg_LBKills[1]<10)) then
return false
endif
return true
endfunction
function Trig_Sent_Win_Checksum_Func011C takes nothing returns boolean
if(not(udg_LBKills[7]<10)) then
return false
endif
return true
endfunction
function Trig_Sent_Win_Checksum_Func012C takes nothing returns boolean
if(not(udg_LBDeaths[1]<10)) then
return false
endif
return true
endfunction
function Trig_Sent_Win_Checksum_Func013C takes nothing returns boolean
if(not(udg_LBDeaths[7]<10)) then
return false
endif
return true
endfunction
function Trig_Sent_Win_Checksum_Func029C takes nothing returns boolean
if(not(udg_semifChecksumMath[5]<10)) then
return false
endif
return true
endfunction
function Trig_Sent_Win_Checksum_Actions takes nothing returns nothing
call DisableTrigger(gg_trg_Scourge_Win_Checksum)
call PauseAllUnitsBJ(true)
call DisplayTimedTextToForce(GetPlayersAll(),30,"The Sentinel has won! Please play again,and visit the forum at www.dota-allstars.com.")
set udg_scResult=2
set udg_scFinalSeed=(udg_ECsubstrings1[8]+(udg_ECsubstrings1[9]+(udg_ECsubstrings2[8]+udg_ECsubstrings2[9])))
set udg_LBKillsStr[1]=I2S(udg_LBKills[1])
set udg_LBKillsStr[7]=I2S(udg_LBKills[7])
set udg_LBDeathsSTR[1]=I2S(udg_LBDeaths[1])
set udg_LBDeathsSTR[7]=I2S(udg_LBDeaths[7])
if(Trig_Sent_Win_Checksum_Func010C()) then
set udg_LBKillsStr[1]=("0"+udg_LBKillsStr[1])
else
call DoNothing()
endif
if(Trig_Sent_Win_Checksum_Func011C()) then
set udg_LBKillsStr[7]=("0"+udg_LBKillsStr[7])
else
call DoNothing()
endif
if(Trig_Sent_Win_Checksum_Func012C()) then
set udg_LBDeathsSTR[1]=("0"+udg_LBDeathsSTR[1])
else
call DoNothing()
endif
if(Trig_Sent_Win_Checksum_Func013C()) then
set udg_LBDeathsSTR[7]=("0"+udg_LBDeathsSTR[7])
else
call DoNothing()
endif
set udg_scSemiFinal=(I2S(udg_scResult)+(udg_LBKillsStr[1]+(udg_LBDeathsSTR[1]+(udg_LBKillsStr[7]+udg_LBDeathsSTR[7]))))
set udg_semifTempCheckSumINT[1]=S2I(SubStringBJ(udg_scSemiFinal,1,1))
set udg_semifTempCheckSumINT[2]=S2I(SubStringBJ(udg_scSemiFinal,2,2))
set udg_semifTempCheckSumINT[3]=S2I(SubStringBJ(udg_scSemiFinal,3,3))
set udg_semifTempCheckSumINT[4]=S2I(SubStringBJ(udg_scSemiFinal,4,4))
set udg_semifTempCheckSumINT[5]=S2I(SubStringBJ(udg_scSemiFinal,5,5))
set udg_semifTempCheckSumINT[6]=S2I(SubStringBJ(udg_scSemiFinal,6,6))
set udg_semifTempCheckSumINT[7]=S2I(SubStringBJ(udg_scSemiFinal,7,7))
set udg_semifTempCheckSumINT[8]=S2I(SubStringBJ(udg_scSemiFinal,8,8))
set udg_semifTempCheckSumINT[9]=S2I(SubStringBJ(udg_scSemiFinal,9,9))
set udg_semifChecksumMath[1]=(udg_semifTempCheckSumINT[1]+(udg_semifTempCheckSumINT[3]+(udg_semifTempCheckSumINT[5]+(udg_semifTempCheckSumINT[7]+udg_semifTempCheckSumINT[9]))))
set udg_semifChecksumMath[2]=(udg_semifChecksumMath[1]*3)
set udg_semifChecksumMath[3]=(udg_semifTempCheckSumINT[2]+(udg_semifTempCheckSumINT[4]+(udg_semifTempCheckSumINT[6]+udg_semifTempCheckSumINT[8])))
set udg_semifChecksumMath[4]=(udg_semifChecksumMath[2]+udg_semifChecksumMath[3])
set udg_semifChecksumMath[5]=ModuloInteger(udg_semifChecksumMath[4],100)
if(Trig_Sent_Win_Checksum_Func029C()) then
set udg_semifChecksumMath_STR[1]=("0"+I2S(udg_semifChecksumMath[5]))
else
set udg_semifChecksumMath_STR[1]=I2S(udg_semifChecksumMath[5])
endif
set udg_scSemiFinal=(udg_scSemiFinal+udg_semifChecksumMath_STR[1])
call ConditionalTriggerExecute(gg_trg_S)
endfunction
function InitTrig_Sent_Win_Checksum takes nothing returns nothing
set gg_trg_Sent_Win_Checksum=CreateTrigger()
call DisableTrigger(gg_trg_Sent_Win_Checksum)
call TriggerRegisterUnitEvent(gg_trg_Sent_Win_Checksum,gg_unit_unpl_0087,EVENT_UNIT_DEATH)
call TriggerAddAction(gg_trg_Sent_Win_Checksum,function Trig_Sent_Win_Checksum_Actions)
endfunction
function Trig_Scourge_Win_Checksum_Func010C takes nothing returns boolean
if(not(udg_LBKills[1]<10)) then
return false
endif
return true
endfunction
function Trig_Scourge_Win_Checksum_Func011C takes nothing returns boolean
if(not(udg_LBKills[7]<10)) then
return false
endif
return true
endfunction
function Trig_Scourge_Win_Checksum_Func012C takes nothing returns boolean
if(not(udg_LBDeaths[1]<10)) then
return false
endif
return true
endfunction
function Trig_Scourge_Win_Checksum_Func013C takes nothing returns boolean
if(not(udg_LBDeaths[7]<10)) then
return false
endif
return true
endfunction
function Trig_Scourge_Win_Checksum_Func029C takes nothing returns boolean
if(not(udg_semifChecksumMath[5]<10)) then
return false
endif
return true
endfunction
function Trig_Scourge_Win_Checksum_Actions takes nothing returns nothing
call DisableTrigger(gg_trg_Sent_Win_Checksum)
call PauseAllUnitsBJ(true)
call DisplayTimedTextToForce(GetPlayersAll(),30,"The Scourge has won! Please play again,and visit the forum at www.dota-allstars.com.")
set udg_scResult=3
set udg_scFinalSeed=(udg_ECsubstrings1[8]+(udg_ECsubstrings1[9]+(udg_ECsubstrings2[8]+udg_ECsubstrings2[9])))
set udg_LBKillsStr[1]=I2S(udg_LBKills[1])
set udg_LBKillsStr[7]=I2S(udg_LBKills[7])
set udg_LBDeathsSTR[1]=I2S(udg_LBDeaths[1])
set udg_LBDeathsSTR[7]=I2S(udg_LBDeaths[7])
if(Trig_Scourge_Win_Checksum_Func010C()) then
set udg_LBKillsStr[1]=("0"+udg_LBKillsStr[1])
else
call DoNothing()
endif
if(Trig_Scourge_Win_Checksum_Func011C()) then
set udg_LBKillsStr[7]=("0"+udg_LBKillsStr[7])
else
call DoNothing()
endif
if(Trig_Scourge_Win_Checksum_Func012C()) then
set udg_LBDeathsSTR[1]=("0"+udg_LBDeathsSTR[1])
else
call DoNothing()
endif
if(Trig_Scourge_Win_Checksum_Func013C()) then
set udg_LBDeathsSTR[7]=("0"+udg_LBDeathsSTR[7])
else
call DoNothing()
endif
set udg_scSemiFinal=(I2S(udg_scResult)+(udg_LBKillsStr[1]+(udg_LBDeathsSTR[1]+(udg_LBKillsStr[7]+udg_LBDeathsSTR[7]))))
set udg_semifTempCheckSumINT[1]=S2I(SubStringBJ(udg_scSemiFinal,1,1))
set udg_semifTempCheckSumINT[2]=S2I(SubStringBJ(udg_scSemiFinal,2,2))
set udg_semifTempCheckSumINT[3]=S2I(SubStringBJ(udg_scSemiFinal,3,3))
set udg_semifTempCheckSumINT[4]=S2I(SubStringBJ(udg_scSemiFinal,4,4))
set udg_semifTempCheckSumINT[5]=S2I(SubStringBJ(udg_scSemiFinal,5,5))
set udg_semifTempCheckSumINT[6]=S2I(SubStringBJ(udg_scSemiFinal,6,6))
set udg_semifTempCheckSumINT[7]=S2I(SubStringBJ(udg_scSemiFinal,7,7))
set udg_semifTempCheckSumINT[8]=S2I(SubStringBJ(udg_scSemiFinal,8,8))
set udg_semifTempCheckSumINT[9]=S2I(SubStringBJ(udg_scSemiFinal,9,9))
set udg_semifChecksumMath[1]=(udg_semifTempCheckSumINT[1]+(udg_semifTempCheckSumINT[3]+(udg_semifTempCheckSumINT[5]+(udg_semifTempCheckSumINT[7]+udg_semifTempCheckSumINT[9]))))
set udg_semifChecksumMath[2]=(udg_semifChecksumMath[1]*3)
set udg_semifChecksumMath[3]=(udg_semifTempCheckSumINT[2]+(udg_semifTempCheckSumINT[4]+(udg_semifTempCheckSumINT[6]+udg_semifTempCheckSumINT[8])))
set udg_semifChecksumMath[4]=(udg_semifChecksumMath[2]+udg_semifChecksumMath[3])
set udg_semifChecksumMath[5]=ModuloInteger(udg_semifChecksumMath[4],100)
if(Trig_Scourge_Win_Checksum_Func029C()) then
set udg_semifChecksumMath_STR[1]=("0"+I2S(udg_semifChecksumMath[5]))
else
set udg_semifChecksumMath_STR[1]=I2S(udg_semifChecksumMath[5])
endif
set udg_scSemiFinal=(udg_scSemiFinal+udg_semifChecksumMath_STR[1])
call ConditionalTriggerExecute(gg_trg_S)
endfunction
function InitTrig_Scourge_Win_Checksum takes nothing returns nothing
set gg_trg_Scourge_Win_Checksum=CreateTrigger()
call DisableTrigger(gg_trg_Scourge_Win_Checksum)
call TriggerRegisterUnitEvent(gg_trg_Scourge_Win_Checksum,gg_unit_eaow_0029,EVENT_UNIT_DEATH)
call TriggerAddAction(gg_trg_Scourge_Win_Checksum,function Trig_Scourge_Win_Checksum_Actions)
endfunction
function Trig_S_Actions takes nothing returns nothing
set udg_SemiFdigits[1]=SubStringBJ(udg_scSemiFinal,1,1)
set udg_SemiFdigits[2]=SubStringBJ(udg_scSemiFinal,2,2)
set udg_SemiFdigits[3]=SubStringBJ(udg_scSemiFinal,3,3)
set udg_SemiFdigits[4]=SubStringBJ(udg_scSemiFinal,4,4)
set udg_SemiFdigits[5]=SubStringBJ(udg_scSemiFinal,5,5)
set udg_SemiFdigits[6]=SubStringBJ(udg_scSemiFinal,6,6)
set udg_SemiFdigits[7]=SubStringBJ(udg_scSemiFinal,7,7)
set udg_SemiFdigits[8]=SubStringBJ(udg_scSemiFinal,8,8)
set udg_SemiFdigits[9]=SubStringBJ(udg_scSemiFinal,9,9)
set udg_SemiFdigits[10]=SubStringBJ(udg_scSemiFinal,10,10)
set udg_SemiFdigits[11]=SubStringBJ(udg_scSemiFinal,11,11)
set udg_semiSemiFinal=(udg_SemiFdigits[3]+(udg_SemiFdigits[11]+(udg_SemiFdigits[7]+(udg_SemiFdigits[9]+(udg_SemiFdigits[4]+(udg_SemiFdigits[6]+(udg_SemiFdigits[1]+(udg_SemiFdigits[10]+(udg_SemiFdigits[2]+(udg_SemiFdigits[5]+udg_SemiFdigits[8]))))))))))
set udg_scSemiFinal=udg_semiSemiFinal
set udg_LoopA=0
loop
exitwhen udg_LoopA>(StringLength(udg_scSemiFinal)-1)
set udg_scFinal=(udg_scFinal+I2S(ModuloInteger((S2I(SubStringBJ(udg_scSemiFinal,(udg_LoopA+1),(udg_LoopA+1)))+S2I(SubStringBJ(udg_scFinalSeed,(ModuloInteger(udg_LoopA,(StringLength(udg_scFinalSeed)-0))+1),(ModuloInteger(udg_LoopA,(StringLength(udg_scFinalSeed)-0))+1)))),10)))
set udg_LoopA=udg_LoopA+1
endloop
call DisplayTimedTextToForce(GetPlayersAll(),9999.00,"This is the match save code that must be entered in the bot by a captain of each side. It contains the end game result stats.\n\nNote: Save codes use many checks to make sure they are correct. Please do not even try to tamper with it or we will be able to see who submitted an incorrect code.")
call DisplayTimedTextToForce(GetPlayersAll(),9999.00,udg_scFinal)
endfunction
function InitTrig_S takes nothing returns nothing
set gg_trg_S=CreateTrigger()
call TriggerAddAction(gg_trg_S,function Trig_S_Actions)
endfunction
function Trig_MatchID_team1_Func008C takes nothing returns boolean
if(not(udg_DEC1=="Yes")) then
return false
endif
if(not(udg_DEC2=="Yes")) then
return false
endif
return true
endfunction
function Trig_MatchID_team1_Conditions takes nothing returns boolean
if(not(udg_DEC1=="No")) then
return false
endif
return true
endfunction
function Trig_MatchID_team1_Actions takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),("The "+(udg_Colors[1]+"Sentinel|r have entered their match ID.")))
set udg_EnteredMatchID1=SubStringBJ(GetEventPlayerChatString(),8,10)
set udg_DEC1="Yes"
set udg_ECsubstrings1[8]=SubStringBJ(udg_EnteredMatchID1,1,1)
set udg_ECsubstrings1[9]=SubStringBJ(udg_EnteredMatchID1,2,2)
set udg_ECsubstrings1[10]=SubStringBJ(udg_EnteredMatchID1,3,3)
if(Trig_MatchID_team1_Func008C()) then
set udg_CSp1Int[1]=(S2I(udg_ECsubstrings1[8])+S2I(udg_ECsubstrings2[8]))
set udg_CSp1Int[2]=(udg_CSp1Int[1]*3)
set udg_CSp2Int[1]=(S2I(udg_ECsubstrings1[9])+S2I(udg_ECsubstrings2[9]))
set udg_CSp1Int[5]=(udg_CSp1Int[2]+udg_CSp2Int[1])
call ConditionalTriggerExecute(gg_trg_Check_Sum)
else
call DoNothing()
endif
endfunction
function InitTrig_MatchID_team1 takes nothing returns nothing
set gg_trg_MatchID_team1=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_MatchID_team1,Player(1),"-match ",false)
call TriggerRegisterPlayerChatEvent(gg_trg_MatchID_team1,Player(2),"-match ",false)
call TriggerRegisterPlayerChatEvent(gg_trg_MatchID_team1,Player(3),"-match ",false)
call TriggerRegisterPlayerChatEvent(gg_trg_MatchID_team1,Player(4),"-match ",false)
call TriggerRegisterPlayerChatEvent(gg_trg_MatchID_team1,Player(5),"-match ",false)
call TriggerAddCondition(gg_trg_MatchID_team1,Condition(function Trig_MatchID_team1_Conditions))
call TriggerAddAction(gg_trg_MatchID_team1,function Trig_MatchID_team1_Actions)
endfunction
function Trig_MatchID_team2_Func008C takes nothing returns boolean
if(not(udg_DEC1=="Yes")) then
return false
endif
if(not(udg_DEC2=="Yes")) then
return false
endif
return true
endfunction
function Trig_MatchID_team2_Conditions takes nothing returns boolean
if(not(udg_DEC2=="No")) then
return false
endif
return true
endfunction
function Trig_MatchID_team2_Actions takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),("The "+(udg_Colors[7]+"Scourge|r have entered their match ID.")))
set udg_EnteredMatchID2=SubStringBJ(GetEventPlayerChatString(),8,10)
set udg_DEC2="Yes"
set udg_ECsubstrings2[8]=SubStringBJ(udg_EnteredMatchID2,1,1)
set udg_ECsubstrings2[9]=SubStringBJ(udg_EnteredMatchID2,2,2)
set udg_ECsubstrings2[10]=SubStringBJ(udg_EnteredMatchID2,3,3)
if(Trig_MatchID_team2_Func008C()) then
set udg_CSp1Int[1]=(S2I(udg_ECsubstrings1[8])+S2I(udg_ECsubstrings2[8]))
set udg_CSp1Int[2]=(udg_CSp1Int[1]*3)
set udg_CSp2Int[1]=(S2I(udg_ECsubstrings1[9])+S2I(udg_ECsubstrings2[9]))
set udg_CSp1Int[5]=(udg_CSp1Int[2]+udg_CSp2Int[1])
call ConditionalTriggerExecute(gg_trg_Check_Sum)
else
call DoNothing()
endif
endfunction
function InitTrig_MatchID_team2 takes nothing returns nothing
set gg_trg_MatchID_team2=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_MatchID_team2,Player(7),"-match ",false)
call TriggerRegisterPlayerChatEvent(gg_trg_MatchID_team2,Player(8),"-match ",false)
call TriggerRegisterPlayerChatEvent(gg_trg_MatchID_team2,Player(9),"-match ",false)
call TriggerRegisterPlayerChatEvent(gg_trg_MatchID_team2,Player(10),"-match ",false)
call TriggerRegisterPlayerChatEvent(gg_trg_MatchID_team2,Player(11),"-match ",false)
call TriggerAddCondition(gg_trg_MatchID_team2,Condition(function Trig_MatchID_team2_Conditions))
call TriggerAddAction(gg_trg_MatchID_team2,function Trig_MatchID_team2_Actions)
endfunction
function Trig_Check_Sum_Func003C takes nothing returns boolean
if(not(udg_CheckCS[1]==udg_ECsubstrings1[10])) then
return false
endif
if(not(udg_CheckCS[2]==udg_ECsubstrings2[10])) then
return false
endif
return true
endfunction
function Trig_Check_Sum_Actions takes nothing returns nothing
set udg_CheckCS[1]=SubStringBJ(I2S(udg_CSp1Int[5]),1,1)
set udg_CheckCS[2]=SubStringBJ(I2S(udg_CSp1Int[5]),2,2)
if(Trig_Check_Sum_Func003C()) then
call DisplayTextToForce(GetPlayersAll(),"Match ID check passed. League mode has been enabled.")
call EnableTrigger(gg_trg_Sent_Win_Checksum)
call EnableTrigger(gg_trg_Scourge_Win_Checksum)
call DisableTrigger(gg_trg_Sent_Win)
call DisableTrigger(gg_trg_Scourge_Win)
else
call DisplayTextToForce(GetPlayersAll(),"Match ID check failed. League mode has been disabled.")
endif
endfunction
function InitTrig_Check_Sum takes nothing returns nothing
set gg_trg_Check_Sum=CreateTrigger()
call TriggerAddAction(gg_trg_Check_Sum,function Trig_Check_Sum_Actions)
endfunction
function Trig_items_Func005Func001C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=500)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==0)) then
return false
endif
return true
endfunction
function Trig_items_Func005Func002C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=150)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==1)) then
return false
endif
return true
endfunction
function Trig_items_Func005Func003C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=150)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==2)) then
return false
endif
return true
endfunction
function Trig_items_Func005Func004C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=610)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==3)) then
return false
endif
return true
endfunction
function Trig_items_Func005Func005C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=450)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==4)) then
return false
endif
return true
endfunction
function Trig_items_Func005Func006C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=900)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==5)) then
return false
endif
return true
endfunction
function Trig_items_Func005Func007C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=875)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==6)) then
return false
endif
return true
endfunction
function Trig_items_Func005Func008C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1400)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==7)) then
return false
endif
return true
endfunction
function Trig_items_Func005Func009C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1610)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==8)) then
return false
endif
return true
endfunction
function Trig_items_Func005Func010C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1610)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==9)) then
return false
endif
return true
endfunction
function Trig_items_Func005Func011C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1460)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==10)) then
return false
endif
return true
endfunction
function Trig_items_Func005Func012C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=3200)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==11)) then
return false
endif
return true
endfunction
function Trig_items_Func005Func013C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1200)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==12)) then
return false
endif
return true
endfunction
function Trig_items_Func005Func014C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1300)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==13)) then
return false
endif
return true
endfunction
function Trig_items_Func005Func015C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=900)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==14)) then
return false
endif
return true
endfunction
function Trig_items_Func005Func016C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1000)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==15)) then
return false
endif
return true
endfunction
function Trig_items_Func005Func017C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=4100)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==16)) then
return false
endif
return true
endfunction
function Trig_items_Func005Func018C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1525)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==17)) then
return false
endif
return true
endfunction
function Trig_items_Func005Func021C takes nothing returns boolean
if((GetUnitTypeId(GetTriggerUnit())=='N01O')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='U008')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='U00F')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='U00K')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='Ofar')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='Hamg')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H001')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='NC00')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H00D')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='HC92')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='U007')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='UC42')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H000')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='N00Z')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='N00M')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='U00A')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H00J')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='U004')) then
return true
endif
return false
endfunction
function Trig_items_Func005C takes nothing returns boolean
if(not Trig_items_Func005Func021C()) then
return false
endif
return true
endfunction
function Trig_items_Func006Func001C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=500)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==0)) then
return false
endif
return true
endfunction
function Trig_items_Func006Func002C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=171)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==1)) then
return false
endif
return true
endfunction
function Trig_items_Func006Func003C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=150)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==2)) then
return false
endif
return true
endfunction
function Trig_items_Func006Func004C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=175)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==3)) then
return false
endif
return true
endfunction
function Trig_items_Func006Func005C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=325)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==4)) then
return false
endif
return true
endfunction
function Trig_items_Func006Func006C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=450)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==5)) then
return false
endif
return true
endfunction
function Trig_items_Func006Func007C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1150)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==6)) then
return false
endif
return true
endfunction
function Trig_items_Func006Func008C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=900)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==7)) then
return false
endif
return true
endfunction
function Trig_items_Func006Func009C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=875)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==8)) then
return false
endif
return true
endfunction
function Trig_items_Func006Func010C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1100)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==9)) then
return false
endif
return true
endfunction
function Trig_items_Func006Func011C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1375)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==10)) then
return false
endif
return true
endfunction
function Trig_items_Func006Func012C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1500)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==11)) then
return false
endif
return true
endfunction
function Trig_items_Func006Func013C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=2300)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==12)) then
return false
endif
return true
endfunction
function Trig_items_Func006Func014C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=2300)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==13)) then
return false
endif
return true
endfunction
function Trig_items_Func006Func015C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=850)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==14)) then
return false
endif
return true
endfunction
function Trig_items_Func006Func016C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1250)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==15)) then
return false
endif
return true
endfunction
function Trig_items_Func006Func017C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=2900)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==16)) then
return false
endif
return true
endfunction
function Trig_items_Func006Func018C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1100)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==17)) then
return false
endif
return true
endfunction
function Trig_items_Func006Func019C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1000)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==18)) then
return false
endif
return true
endfunction
function Trig_items_Func006Func020C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1200)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==19)) then
return false
endif
return true
endfunction
function Trig_items_Func006Func021C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=4100)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==20)) then
return false
endif
return true
endfunction
function Trig_items_Func006Func023C takes nothing returns boolean
if((GetUnitTypeId(GetTriggerUnit())=='N01A')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='Hmkg')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='Hblm')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='UC60')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='N000')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='U00E')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H00K')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H00H')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='Oshd')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H004')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='UC76')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='UC01')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='EC52')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='OC55')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='EC53')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='EC04')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='UC18')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H002')) then
return true
endif
return false
endfunction
function Trig_items_Func006C takes nothing returns boolean
if(not Trig_items_Func006Func023C()) then
return false
endif
return true
endfunction
function Trig_items_Func007Func001C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=500)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==0)) then
return false
endif
return true
endfunction
function Trig_items_Func007Func002C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=610)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==1)) then
return false
endif
return true
endfunction
function Trig_items_Func007Func003C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=450)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==2)) then
return false
endif
return true
endfunction
function Trig_items_Func007Func004C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=400)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==3)) then
return false
endif
return true
endfunction
function Trig_items_Func007Func005C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=171)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==4)) then
return false
endif
return true
endfunction
function Trig_items_Func007Func006C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=550)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==5)) then
return false
endif
return true
endfunction
function Trig_items_Func007Func007C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=400)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==6)) then
return false
endif
return true
endfunction
function Trig_items_Func007Func008C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=171)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==7)) then
return false
endif
return true
endfunction
function Trig_items_Func007Func009C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=550)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==8)) then
return false
endif
return true
endfunction
function Trig_items_Func007Func010C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1000)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==9)) then
return false
endif
return true
endfunction
function Trig_items_Func007Func011C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=450)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==10)) then
return false
endif
return true
endfunction
function Trig_items_Func007Func012C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1550)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==11)) then
return false
endif
return true
endfunction
function Trig_items_Func007Func013C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=3600)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==12)) then
return false
endif
return true
endfunction
function Trig_items_Func007Func014C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1150)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==13)) then
return false
endif
return true
endfunction
function Trig_items_Func007Func015C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1400)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==14)) then
return false
endif
return true
endfunction
function Trig_items_Func007Func016C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1375)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==15)) then
return false
endif
return true
endfunction
function Trig_items_Func007Func017C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1460)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==16)) then
return false
endif
return true
endfunction
function Trig_items_Func007Func018C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=150)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==17)) then
return false
endif
return true
endfunction
function Trig_items_Func007Func019C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=2475)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==18)) then
return false
endif
return true
endfunction
function Trig_items_Func007Func021C takes nothing returns boolean
if((GetUnitTypeId(GetTriggerUnit())=='E003')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='HC49')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='EC45')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='N00G')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='Eevi')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='U00B')) then
return true
endif
return false
endfunction
function Trig_items_Func007C takes nothing returns boolean
if(not Trig_items_Func007Func021C()) then
return false
endif
return true
endfunction
function Trig_items_Func008Func001C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=500)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==0)) then
return false
endif
return true
endfunction
function Trig_items_Func008Func002C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=400)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==1)) then
return false
endif
return true
endfunction
function Trig_items_Func008Func003C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=171)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==2)) then
return false
endif
return true
endfunction
function Trig_items_Func008Func004C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=550)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==3)) then
return false
endif
return true
endfunction
function Trig_items_Func008Func005C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=325)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==4)) then
return false
endif
return true
endfunction
function Trig_items_Func008Func006C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=300)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==5)) then
return false
endif
return true
endfunction
function Trig_items_Func008Func007C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=610)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==6)) then
return false
endif
return true
endfunction
function Trig_items_Func008Func008C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=450)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==7)) then
return false
endif
return true
endfunction
function Trig_items_Func008Func009C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=875)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==8)) then
return false
endif
return true
endfunction
function Trig_items_Func008Func010C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=900)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==9)) then
return false
endif
return true
endfunction
function Trig_items_Func008Func011C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1400)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==10)) then
return false
endif
return true
endfunction
function Trig_items_Func008Func012C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1610)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==11)) then
return false
endif
return true
endfunction
function Trig_items_Func008Func013C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1610)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==12)) then
return false
endif
return true
endfunction
function Trig_items_Func008Func014C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1610)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==13)) then
return false
endif
return true
endfunction
function Trig_items_Func008Func015C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1500)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==14)) then
return false
endif
return true
endfunction
function Trig_items_Func008Func016C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=900)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==15)) then
return false
endif
return true
endfunction
function Trig_items_Func008Func017C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1000)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==16)) then
return false
endif
return true
endfunction
function Trig_items_Func008Func018C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=3200)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==17)) then
return false
endif
return true
endfunction
function Trig_items_Func008Func019C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1200)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==18)) then
return false
endif
return true
endfunction
function Trig_items_Func008Func020C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1300)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==19)) then
return false
endif
return true
endfunction
function Trig_items_Func008Func021C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=4100)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==20)) then
return false
endif
return true
endfunction
function Trig_items_Func008Func024C takes nothing returns boolean
if((GetUnitTypeId(GetTriggerUnit())=='UC91')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H005')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='UC11')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='O002')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='O00K')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='U000')) then
return true
endif
return false
endfunction
function Trig_items_Func008C takes nothing returns boolean
if(not Trig_items_Func008Func024C()) then
return false
endif
return true
endfunction
function Trig_items_Func009Func001C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=500)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==0)) then
return false
endif
return true
endfunction
function Trig_items_Func009Func002C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=610)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==1)) then
return false
endif
return true
endfunction
function Trig_items_Func009Func003C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=450)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==2)) then
return false
endif
return true
endfunction
function Trig_items_Func009Func004C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=650)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==3)) then
return false
endif
return true
endfunction
function Trig_items_Func009Func005C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1200)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==4)) then
return false
endif
return true
endfunction
function Trig_items_Func009Func006C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1300)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==5)) then
return false
endif
return true
endfunction
function Trig_items_Func009Func007C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=2600)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==6)) then
return false
endif
return true
endfunction
function Trig_items_Func009Func008C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=700)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==7)) then
return false
endif
return true
endfunction
function Trig_items_Func009Func009C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=3600)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==8)) then
return false
endif
return true
endfunction
function Trig_items_Func009Func010C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1150)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==9)) then
return false
endif
return true
endfunction
function Trig_items_Func009Func011C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1500)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==10)) then
return false
endif
return true
endfunction
function Trig_items_Func009Func012C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=2600)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==11)) then
return false
endif
return true
endfunction
function Trig_items_Func009Func013C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=2600)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==12)) then
return false
endif
return true
endfunction
function Trig_items_Func009Func014C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1100)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==13)) then
return false
endif
return true
endfunction
function Trig_items_Func009Func015C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1250)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==14)) then
return false
endif
return true
endfunction
function Trig_items_Func009Func016C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=4100)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==15)) then
return false
endif
return true
endfunction
function Trig_items_Func009Func017C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1525)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==16)) then
return false
endif
return true
endfunction
function Trig_items_Func009Func018C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=2475)) then
return false
endif
if(not(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==17)) then
return false
endif
return true
endfunction
function Trig_items_Func009Func019C takes nothing returns boolean
if((GetUnitTypeId(GetTriggerUnit())=='N016')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='E00G')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='E004')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='U006')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='EC77')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='OC56')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='EC80')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='E002')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='E005')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H00I')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='EC57')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H00V')) then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='O00P')) then
return true
endif
return false
endfunction
function Trig_items_Func009C takes nothing returns boolean
if(not Trig_items_Func009Func019C()) then
return false
endif
return true
endfunction
function Trig_items_Conditions takes nothing returns boolean
if(not(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_COMPUTER)) then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
return true
endfunction
function Trig_items_Actions takes nothing returns nothing
if(Trig_items_Func005C()) then
if(Trig_items_Func005Func001C()) then
call UnitAddItemByIdSwapped('IC66',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-500))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func005Func002C()) then
call UnitAddItemByIdSwapped('IC39',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-150))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func005Func003C()) then
call UnitAddItemByIdSwapped('IC39',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-150))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func005Func004C()) then
call UnitAddItemByIdSwapped('IC65',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-610))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func005Func005C()) then
call UnitAddItemByIdSwapped('I012',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-450))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func005Func006C()) then
call UnitAddItemByIdSwapped('IC13',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-900))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func005Func007C()) then
call UnitAddItemByIdSwapped('I00Q',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-875))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func005Func008C()) then
call UnitAddItemByIdSwapped('I00P',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-1400))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func005Func009C()) then
call UnitAddItemByIdSwapped('IC23',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-1610))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func005Func010C()) then
call UnitAddItemByIdSwapped('IC23',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-1610))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func005Func011C()) then
call UnitAddItemByIdSwapped('I01I',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-1460))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func005Func012C()) then
call UnitAddItemByIdSwapped('I007',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-3200))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func005Func013C()) then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'IC39'))
call UnitAddItemByIdSwapped('I006',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-1200))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func005Func014C()) then
call UnitAddItemByIdSwapped('I017',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-1300))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func005Func015C()) then
call UnitAddItemByIdSwapped('I00U',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-900))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func005Func016C()) then
call UnitAddItemByIdSwapped('I01U',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-1000))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func005Func017C()) then
call UnitAddItemByIdSwapped('I004',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-4100))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func005Func018C()) then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I000'))
call UnitAddItemByIdSwapped('I01A',GetTriggerUnit())
call UnitAddItemByIdSwapped('I000',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-1525))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
else
call DoNothing()
endif
if(Trig_items_Func006C()) then
if(Trig_items_Func006Func001C()) then
call UnitAddItemByIdSwapped('IC66',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-500))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func006Func002C()) then
call UnitAddItemByIdSwapped('IC67',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-171))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func006Func003C()) then
call UnitAddItemByIdSwapped('IC40',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-150))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func006Func004C()) then
call UnitAddItemByIdSwapped('I013',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-175))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func006Func005C()) then
call UnitAddItemByIdSwapped('IC63',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-325))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func006Func006C()) then
call UnitAddItemByIdSwapped('ciri',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-450))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func006Func007C()) then
call UnitAddItemByIdSwapped('IC14',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-1150))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func006Func008C()) then
call UnitAddItemByIdSwapped('IC13',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-900))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func006Func009C()) then
call UnitAddItemByIdSwapped('I00Q',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-875))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func006Func010C()) then
call UnitAddItemByIdSwapped('IC68',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-1100))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'IC15'))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func006Func011C()) then
call UnitAddItemByIdSwapped('IC33',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-1375))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func006Func012C()) then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'IC66'))
call UnitAddItemByIdSwapped('I016',GetTriggerUnit())
call UnitAddItemByIdSwapped('IC66',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-1500))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func006Func013C()) then
call UnitAddItemByIdSwapped('I002',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-2300))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func006Func014C()) then
call UnitAddItemByIdSwapped('I002',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-2300))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func006Func015C()) then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'IC15'))
call UnitAddItemByIdSwapped('IC68',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-850))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func006Func016C()) then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'IC66'))
call UnitAddItemByIdSwapped('I01M',GetTriggerUnit())
call UnitAddItemByIdSwapped('IC66',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-1250))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func006Func017C()) then
call UnitAddItemByIdSwapped('I01N',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-2900))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func006Func018C()) then
call UnitAddItemByIdSwapped('IC68',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-1100))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func006Func019C()) then
call UnitAddItemByIdSwapped('IC08',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-1000))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func006Func020C()) then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I003'))
call UnitAddItemByIdSwapped('I006',GetTriggerUnit())
call UnitAddItemByIdSwapped('I003',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-1200))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func006Func021C()) then
call UnitAddItemByIdSwapped('I004',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-4100))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
else
call DoNothing()
endif
if(Trig_items_Func007C()) then
if(Trig_items_Func007Func001C()) then
call UnitAddItemByIdSwapped('IC66',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-500))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func007Func002C()) then
call UnitAddItemByIdSwapped('IC65',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-610))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func007Func003C()) then
call UnitAddItemByIdSwapped('I012',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-450))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func007Func004C()) then
call UnitAddItemByIdSwapped('IC64',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-400))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func007Func005C()) then
call UnitAddItemByIdSwapped('IC67',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-171))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func007Func006C()) then
call UnitAddItemByIdSwapped('I005',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-550))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func007Func007C()) then
call UnitAddItemByIdSwapped('IC64',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-400))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func007Func008C()) then
call UnitAddItemByIdSwapped('IC67',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-171))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func007Func009C()) then
call UnitAddItemByIdSwapped('I005',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-550))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func007Func010C()) then
call UnitAddItemByIdSwapped('IC12',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-1000))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func007Func011C()) then
call UnitAddItemByIdSwapped('ciri',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-450))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func007Func012C()) then
call UnitAddItemByIdSwapped('I018',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-1550))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func007Func013C()) then
call UnitAddItemByIdSwapped('I008',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-3600))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func007Func014C()) then
call UnitAddItemByIdSwapped('IC14',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-1150))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func007Func015C()) then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I000'))
call UnitAddItemByIdSwapped('I01E',GetTriggerUnit())
call UnitAddItemByIdSwapped('I000',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-1400))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func007Func016C()) then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00A'))
call UnitAddItemByIdSwapped('IC23',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-1375))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func007Func017C()) then
call UnitAddItemByIdSwapped('I01I',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-1460))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func007Func018C()) then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I000'))
call UnitAddItemByIdSwapped('IC39',GetTriggerUnit())
call UnitAddItemByIdSwapped('I000',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-150))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func007Func019C()) then
call UnitAddItemByIdSwapped('IC72',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-2475))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
else
call DoNothing()
endif
if(Trig_items_Func008C()) then
if(Trig_items_Func008Func001C()) then
call UnitAddItemByIdSwapped('IC66',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-500))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func008Func002C()) then
call UnitAddItemByIdSwapped('IC64',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-400))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func008Func003C()) then
call UnitAddItemByIdSwapped('IC67',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-171))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func008Func004C()) then
call UnitAddItemByIdSwapped('I005',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-550))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func008Func005C()) then
call UnitAddItemByIdSwapped('IC63',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-325))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func008Func006C()) then
call UnitAddItemByIdSwapped('IC26',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-300))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func008Func007C()) then
call UnitAddItemByIdSwapped('IC65',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-610))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func008Func008C()) then
call UnitAddItemByIdSwapped('I012',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-450))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func008Func009C()) then
call UnitAddItemByIdSwapped('I00Q',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-875))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func008Func010C()) then
call UnitAddItemByIdSwapped('IC13',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-900))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func008Func011C()) then
call UnitAddItemByIdSwapped('I00P',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-1400))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func008Func012C()) then
call UnitAddItemByIdSwapped('IC23',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-1610))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func008Func013C()) then
call UnitAddItemByIdSwapped('IC23',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-1610))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func008Func014C()) then
call UnitAddItemByIdSwapped('IC23',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-1610))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func008Func015C()) then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00N'))
call UnitAddItemByIdSwapped('I01K',GetTriggerUnit())
call UnitAddItemByIdSwapped('I00N',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-1500))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func008Func016C()) then
call UnitAddItemByIdSwapped('I00U',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-900))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func008Func017C()) then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00N'))
call UnitAddItemByIdSwapped('I01U',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-1000))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func008Func018C()) then
call UnitAddItemByIdSwapped('I007',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-3200))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func008Func019C()) then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00A'))
call UnitAddItemByIdSwapped('I006',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-1200))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func008Func020C()) then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I000'))
call UnitAddItemByIdSwapped('I017',GetTriggerUnit())
call UnitAddItemByIdSwapped('I000',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-1300))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func008Func021C()) then
call UnitAddItemByIdSwapped('I004',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-4100))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
else
call DoNothing()
endif
if(Trig_items_Func009C()) then
if(Trig_items_Func009Func001C()) then
call UnitAddItemByIdSwapped('IC66',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-500))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func009Func002C()) then
call UnitAddItemByIdSwapped('IC65',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-610))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func009Func003C()) then
call UnitAddItemByIdSwapped('I012',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-450))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func009Func004C()) then
call UnitAddItemByIdSwapped('IC17',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-650))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func009Func005C()) then
call UnitAddItemByIdSwapped('IC22',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-1200))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func009Func006C()) then
call UnitAddItemByIdSwapped('I01O',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-1300))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func009Func007C()) then
call UnitAddItemByIdSwapped('I00S',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-2600))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func009Func008C()) then
call UnitAddItemByIdSwapped('I01L',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-700))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func009Func009C()) then
call UnitAddItemByIdSwapped('I008',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-3600))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func009Func010C()) then
call UnitAddItemByIdSwapped('IC14',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-1150))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func009Func011C()) then
call UnitAddItemByIdSwapped('I01E',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-1500))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func009Func012C()) then
call UnitAddItemByIdSwapped('I002',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-2600))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func009Func013C()) then
call UnitAddItemByIdSwapped('I002',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-2600))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func009Func014C()) then
call UnitAddItemByIdSwapped('IC68',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-1100))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func009Func015C()) then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I000'))
call UnitAddItemByIdSwapped('I01M',GetTriggerUnit())
call UnitAddItemByIdSwapped('I000',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-1250))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func009Func016C()) then
call UnitAddItemByIdSwapped('I004',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-4100))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func009Func017C()) then
call UnitAddItemByIdSwapped('I01A',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-1525))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
if(Trig_items_Func009Func018C()) then
call UnitAddItemByIdSwapped('IC72',GetTriggerUnit())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-2475))
set udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_itemnumber[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
else
call DoNothing()
endif
else
call DoNothing()
endif
endfunction
function InitTrig_items takes nothing returns nothing
set gg_trg_items=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_items,gg_rct_Hero_Creation_NE)
call TriggerRegisterEnterRectSimple(gg_trg_items,gg_rct_Hero_Creation_Evil)
call TriggerAddCondition(gg_trg_items,Condition(function Trig_items_Conditions))
call TriggerAddAction(gg_trg_items,function Trig_items_Actions)
endfunction
function Trig_levelup_Func002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())<14)
endfunction
function Trig_levelup_Func003Func002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==2)
endfunction
function Trig_levelup_Func003Func003001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func003Func004001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func003Func005001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==1)
endfunction
function Trig_levelup_Func003Func005001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==4)
endfunction
function Trig_levelup_Func003Func005001002002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==5)
endfunction
function Trig_levelup_Func003Func005001002002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==7)
endfunction
function Trig_levelup_Func003Func005001002002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func003Func005001002002001(),Trig_levelup_Func003Func005001002002002())
endfunction
function Trig_levelup_Func003Func005001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func003Func005001002001(),Trig_levelup_Func003Func005001002002())
endfunction
function Trig_levelup_Func003Func005001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func003Func005001001(),Trig_levelup_Func003Func005001002())
endfunction
function Trig_levelup_Func003Func006001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==2)
endfunction
function Trig_levelup_Func003Func006001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==8)
endfunction
function Trig_levelup_Func003Func006001002002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==9)
endfunction
function Trig_levelup_Func003Func006001002002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==10)
endfunction
function Trig_levelup_Func003Func006001002002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func003Func006001002002001(),Trig_levelup_Func003Func006001002002002())
endfunction
function Trig_levelup_Func003Func006001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func003Func006001002001(),Trig_levelup_Func003Func006001002002())
endfunction
function Trig_levelup_Func003Func006001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func003Func006001001(),Trig_levelup_Func003Func006001002())
endfunction
function Trig_levelup_Func003Func007001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==3)
endfunction
function Trig_levelup_Func003Func008001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==26)
endfunction
function Trig_levelup_Func003Func008001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func003Func008001002002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func003Func008001002002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==21)
endfunction
function Trig_levelup_Func003Func008001002002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func003Func008001002002001(),Trig_levelup_Func003Func008001002002002())
endfunction
function Trig_levelup_Func003Func008001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func003Func008001002001(),Trig_levelup_Func003Func008001002002())
endfunction
function Trig_levelup_Func003Func008001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func003Func008001001(),Trig_levelup_Func003Func008001002())
endfunction
function Trig_levelup_Func003Func009001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())>11)
endfunction
function Trig_levelup_Func003Func009001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())!=16)
endfunction
function Trig_levelup_Func003Func009001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())!=21)
endfunction
function Trig_levelup_Func003Func009001002 takes nothing returns boolean
return GetBooleanAnd(Trig_levelup_Func003Func009001002001(),Trig_levelup_Func003Func009001002002())
endfunction
function Trig_levelup_Func003Func009001 takes nothing returns boolean
return GetBooleanAnd(Trig_levelup_Func003Func009001001(),Trig_levelup_Func003Func009001002())
endfunction
function Trig_levelup_Func003C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='HC92')) then
return false
endif
return true
endfunction
function Trig_levelup_Func004Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func004Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func004Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func004Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func004Func002Func002001002001(),Trig_levelup_Func004Func002Func002001002002())
endfunction
function Trig_levelup_Func004Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func004Func002Func002001001(),Trig_levelup_Func004Func002Func002001002())
endfunction
function Trig_levelup_Func004Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func004Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func004Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func004Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func004Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func004Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func004C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='E004')) then
return false
endif
return true
endfunction
function Trig_levelup_Func005Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func005Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func005Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func005Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func005Func002Func002001002001(),Trig_levelup_Func005Func002Func002001002002())
endfunction
function Trig_levelup_Func005Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func005Func002Func002001001(),Trig_levelup_Func005Func002Func002001002())
endfunction
function Trig_levelup_Func005Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func005Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func005Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func005Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func005Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func005Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func005Func003001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='N016')
endfunction
function Trig_levelup_Func005Func003002 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='N017')
endfunction
function Trig_levelup_Func005C takes nothing returns boolean
if(not GetBooleanOr(Trig_levelup_Func005Func003001(),Trig_levelup_Func005Func003002())) then
return false
endif
return true
endfunction
function Trig_levelup_Func006Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func006Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func006Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func006Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func006Func002Func002001002001(),Trig_levelup_Func006Func002Func002001002002())
endfunction
function Trig_levelup_Func006Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func006Func002Func002001001(),Trig_levelup_Func006Func002Func002001002())
endfunction
function Trig_levelup_Func006Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func006Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func006Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func006Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func006Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func006Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func006C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='NC00')) then
return false
endif
return true
endfunction
function Trig_levelup_Func007Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func007Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func007Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func007Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func007Func002Func002001002001(),Trig_levelup_Func007Func002Func002001002002())
endfunction
function Trig_levelup_Func007Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func007Func002Func002001001(),Trig_levelup_Func007Func002Func002001002())
endfunction
function Trig_levelup_Func007Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func007Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func007Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func007Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func007Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func007Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func007C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='U00A')) then
return false
endif
return true
endfunction
function Trig_levelup_Func008Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func008Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func008Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func008Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func008Func002Func002001002001(),Trig_levelup_Func008Func002Func002001002002())
endfunction
function Trig_levelup_Func008Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func008Func002Func002001001(),Trig_levelup_Func008Func002Func002001002())
endfunction
function Trig_levelup_Func008Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func008Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func008Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func008Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func008Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func008Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func008C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='UC01')) then
return false
endif
return true
endfunction
function Trig_levelup_Func009Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func009Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func009Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func009Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func009Func002Func002001002001(),Trig_levelup_Func009Func002Func002001002002())
endfunction
function Trig_levelup_Func009Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func009Func002Func002001001(),Trig_levelup_Func009Func002Func002001002())
endfunction
function Trig_levelup_Func009Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func009Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func009Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func009Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func009Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func009Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func009C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='E00G')) then
return false
endif
return true
endfunction
function Trig_levelup_Func010Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func010Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func010Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func010Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func010Func002Func002001002001(),Trig_levelup_Func010Func002Func002001002002())
endfunction
function Trig_levelup_Func010Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func010Func002Func002001001(),Trig_levelup_Func010Func002Func002001002())
endfunction
function Trig_levelup_Func010Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func010Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func010Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func010Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func010Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func010Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func010C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='H00D')) then
return false
endif
return true
endfunction
function Trig_levelup_Func011Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func011Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func011Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func011Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func011Func002Func002001002001(),Trig_levelup_Func011Func002Func002001002002())
endfunction
function Trig_levelup_Func011Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func011Func002Func002001001(),Trig_levelup_Func011Func002Func002001002())
endfunction
function Trig_levelup_Func011Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func011Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func011Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func011Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func011Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func011Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func011C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='H00J')) then
return false
endif
return true
endfunction
function Trig_levelup_Func012Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func012Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func012Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func012Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func012Func002Func002001002001(),Trig_levelup_Func012Func002Func002001002002())
endfunction
function Trig_levelup_Func012Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func012Func002Func002001001(),Trig_levelup_Func012Func002Func002001002())
endfunction
function Trig_levelup_Func012Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func012Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func012Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func012Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func012Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func012Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func012C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='EC80')) then
return false
endif
return true
endfunction
function Trig_levelup_Func013Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func013Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func013Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func013Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func013Func002Func002001002001(),Trig_levelup_Func013Func002Func002001002002())
endfunction
function Trig_levelup_Func013Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func013Func002Func002001001(),Trig_levelup_Func013Func002Func002001002())
endfunction
function Trig_levelup_Func013Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func013Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func013Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func013Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func013Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func013Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func013C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='Eevi')) then
return false
endif
return true
endfunction
function Trig_levelup_Func014Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func014Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func014Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func014Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func014Func002Func002001002001(),Trig_levelup_Func014Func002Func002001002002())
endfunction
function Trig_levelup_Func014Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func014Func002Func002001001(),Trig_levelup_Func014Func002Func002001002())
endfunction
function Trig_levelup_Func014Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func014Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func014Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func014Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func014Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func014Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func014C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='EC77')) then
return false
endif
return true
endfunction
function Trig_levelup_Func015Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func015Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func015Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func015Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func015Func002Func002001002001(),Trig_levelup_Func015Func002Func002001002002())
endfunction
function Trig_levelup_Func015Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func015Func002Func002001001(),Trig_levelup_Func015Func002Func002001002())
endfunction
function Trig_levelup_Func015Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func015Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func015Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func015Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func015Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func015Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func015C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='O00P')) then
return false
endif
return true
endfunction
function Trig_levelup_Func016Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func016Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func016Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func016Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func016Func002Func002001002001(),Trig_levelup_Func016Func002Func002001002002())
endfunction
function Trig_levelup_Func016Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func016Func002Func002001001(),Trig_levelup_Func016Func002Func002001002())
endfunction
function Trig_levelup_Func016Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func016Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func016Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func016Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func016Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func016Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func016C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='E003')) then
return false
endif
return true
endfunction
function Trig_levelup_Func017Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func017Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func017Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func017Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func017Func002Func002001002001(),Trig_levelup_Func017Func002Func002001002002())
endfunction
function Trig_levelup_Func017Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func017Func002Func002001001(),Trig_levelup_Func017Func002Func002001002())
endfunction
function Trig_levelup_Func017Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func017Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func017Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func017Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func017Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func017Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func017C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='N00G')) then
return false
endif
return true
endfunction
function Trig_levelup_Func018Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func018Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func018Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func018Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func018Func002Func002001002001(),Trig_levelup_Func018Func002Func002001002002())
endfunction
function Trig_levelup_Func018Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func018Func002Func002001001(),Trig_levelup_Func018Func002Func002001002())
endfunction
function Trig_levelup_Func018Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func018Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func018Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func018Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func018Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func018Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func018C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='N00M')) then
return false
endif
return true
endfunction
function Trig_levelup_Func019Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func019Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func019Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func019Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func019Func002Func002001002001(),Trig_levelup_Func019Func002Func002001002002())
endfunction
function Trig_levelup_Func019Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func019Func002Func002001001(),Trig_levelup_Func019Func002Func002001002())
endfunction
function Trig_levelup_Func019Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func019Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func019Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func019Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func019Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func019Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func019C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='EC53')) then
return false
endif
return true
endfunction
function Trig_levelup_Func020Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func020Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func020Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func020Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func020Func002Func002001002001(),Trig_levelup_Func020Func002Func002001002002())
endfunction
function Trig_levelup_Func020Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func020Func002Func002001001(),Trig_levelup_Func020Func002Func002001002())
endfunction
function Trig_levelup_Func020Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func020Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func020Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func020Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func020Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func020Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func020C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='O002')) then
return false
endif
return true
endfunction
function Trig_levelup_Func021Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func021Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func021Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func021Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func021Func002Func002001002001(),Trig_levelup_Func021Func002Func002001002002())
endfunction
function Trig_levelup_Func021Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func021Func002Func002001001(),Trig_levelup_Func021Func002Func002001002())
endfunction
function Trig_levelup_Func021Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func021Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func021Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func021Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func021Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func021Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func021C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='EC52')) then
return false
endif
return true
endfunction
function Trig_levelup_Func022Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func022Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func022Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func022Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func022Func002Func002001002001(),Trig_levelup_Func022Func002Func002001002002())
endfunction
function Trig_levelup_Func022Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func022Func002Func002001001(),Trig_levelup_Func022Func002Func002001002())
endfunction
function Trig_levelup_Func022Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func022Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func022Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func022Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func022Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func022Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func022C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='N00Z')) then
return false
endif
return true
endfunction
function Trig_levelup_Func023Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func023Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func023Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func023Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func023Func002Func002001002001(),Trig_levelup_Func023Func002Func002001002002())
endfunction
function Trig_levelup_Func023Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func023Func002Func002001001(),Trig_levelup_Func023Func002Func002001002())
endfunction
function Trig_levelup_Func023Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func023Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func023Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func023Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func023Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func023Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func023C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='H00I')) then
return false
endif
return true
endfunction
function Trig_levelup_Func024Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func024Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func024Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func024Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func024Func002Func002001002001(),Trig_levelup_Func024Func002Func002001002002())
endfunction
function Trig_levelup_Func024Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func024Func002Func002001001(),Trig_levelup_Func024Func002Func002001002())
endfunction
function Trig_levelup_Func024Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func024Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func024Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func024Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func024Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func024Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func024C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='H004')) then
return false
endif
return true
endfunction
function Trig_levelup_Func025Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func025Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func025Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func025Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func025Func002Func002001002001(),Trig_levelup_Func025Func002Func002001002002())
endfunction
function Trig_levelup_Func025Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func025Func002Func002001001(),Trig_levelup_Func025Func002Func002001002())
endfunction
function Trig_levelup_Func025Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func025Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func025Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func025Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func025Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func025Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func025C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='E005')) then
return false
endif
return true
endfunction
function Trig_levelup_Func026Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func026Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func026Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func026Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func026Func002Func002001002001(),Trig_levelup_Func026Func002Func002001002002())
endfunction
function Trig_levelup_Func026Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func026Func002Func002001001(),Trig_levelup_Func026Func002Func002001002())
endfunction
function Trig_levelup_Func026Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func026Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func026Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func026Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func026Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func026Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func026C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='H005')) then
return false
endif
return true
endfunction
function Trig_levelup_Func027Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func027Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func027Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func027Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func027Func002Func002001002001(),Trig_levelup_Func027Func002Func002001002002())
endfunction
function Trig_levelup_Func027Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func027Func002Func002001001(),Trig_levelup_Func027Func002Func002001002())
endfunction
function Trig_levelup_Func027Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func027Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func027Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func027Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func027Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func027Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func027C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='H002')) then
return false
endif
return true
endfunction
function Trig_levelup_Func028Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func028Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func028Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func028Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func028Func002Func002001002001(),Trig_levelup_Func028Func002Func002001002002())
endfunction
function Trig_levelup_Func028Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func028Func002Func002001001(),Trig_levelup_Func028Func002Func002001002())
endfunction
function Trig_levelup_Func028Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func028Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func028Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func028Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func028Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func028Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func028C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='OC56')) then
return false
endif
return true
endfunction
function Trig_levelup_Func029Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func029Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func029Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func029Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func029Func002Func002001002001(),Trig_levelup_Func029Func002Func002001002002())
endfunction
function Trig_levelup_Func029Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func029Func002Func002001001(),Trig_levelup_Func029Func002Func002001002())
endfunction
function Trig_levelup_Func029Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func029Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func029Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func029Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func029Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func029Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func029C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='HC49')) then
return false
endif
return true
endfunction
function Trig_levelup_Func030Func001001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==2)
endfunction
function Trig_levelup_Func030Func001001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==3)
endfunction
function Trig_levelup_Func030Func001001002002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==5)
endfunction
function Trig_levelup_Func030Func001001002002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==7)
endfunction
function Trig_levelup_Func030Func001001002002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func030Func001001002002001(),Trig_levelup_Func030Func001001002002002())
endfunction
function Trig_levelup_Func030Func001001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func030Func001001002001(),Trig_levelup_Func030Func001001002002())
endfunction
function Trig_levelup_Func030Func001001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func030Func001001001(),Trig_levelup_Func030Func001001002())
endfunction
function Trig_levelup_Func030Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==2)
endfunction
function Trig_levelup_Func030Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==4)
endfunction
function Trig_levelup_Func030Func002001002002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func030Func002001002002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==8)
endfunction
function Trig_levelup_Func030Func002001002002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func030Func002001002002001(),Trig_levelup_Func030Func002001002002002())
endfunction
function Trig_levelup_Func030Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func030Func002001002001(),Trig_levelup_Func030Func002001002002())
endfunction
function Trig_levelup_Func030Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func030Func002001001(),Trig_levelup_Func030Func002001002())
endfunction
function Trig_levelup_Func030Func003001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==9)
endfunction
function Trig_levelup_Func030Func003001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==10)
endfunction
function Trig_levelup_Func030Func003001002002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func030Func003001002002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==12)
endfunction
function Trig_levelup_Func030Func003001002002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func030Func003001002002001(),Trig_levelup_Func030Func003001002002002())
endfunction
function Trig_levelup_Func030Func003001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func030Func003001002001(),Trig_levelup_Func030Func003001002002())
endfunction
function Trig_levelup_Func030Func003001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func030Func003001001(),Trig_levelup_Func030Func003001002())
endfunction
function Trig_levelup_Func030Func004001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())>12)
endfunction
function Trig_levelup_Func030C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='H00K')) then
return false
endif
return true
endfunction
function Trig_levelup_Func031Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func031Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func031Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func031Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func031Func002Func002001002001(),Trig_levelup_Func031Func002Func002001002002())
endfunction
function Trig_levelup_Func031Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func031Func002Func002001001(),Trig_levelup_Func031Func002Func002001002())
endfunction
function Trig_levelup_Func031Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func031Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func031Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func031Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func031Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func031Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func031C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='H001')) then
return false
endif
return true
endfunction
function Trig_levelup_Func032Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func032Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func032Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func032Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func032Func002Func002001002001(),Trig_levelup_Func032Func002Func002001002002())
endfunction
function Trig_levelup_Func032Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func032Func002Func002001001(),Trig_levelup_Func032Func002Func002001002())
endfunction
function Trig_levelup_Func032Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func032Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func032Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func032Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func032Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func032Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func032C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='O00K')) then
return false
endif
return true
endfunction
function Trig_levelup_Func033Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func033Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func033Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func033Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func033Func002Func002001002001(),Trig_levelup_Func033Func002Func002001002002())
endfunction
function Trig_levelup_Func033Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func033Func002Func002001001(),Trig_levelup_Func033Func002Func002001002())
endfunction
function Trig_levelup_Func033Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func033Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func033Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func033Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func033Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func033Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func033C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='E002')) then
return false
endif
return true
endfunction
function Trig_levelup_Func034Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func034Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func034Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func034Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func034Func002Func002001002001(),Trig_levelup_Func034Func002Func002001002002())
endfunction
function Trig_levelup_Func034Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func034Func002Func002001001(),Trig_levelup_Func034Func002Func002001002())
endfunction
function Trig_levelup_Func034Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func034Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func034Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func034Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func034Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func034Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func034C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='EC45')) then
return false
endif
return true
endfunction
function Trig_levelup_Func035Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func035Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func035Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func035Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func035Func002Func002001002001(),Trig_levelup_Func035Func002Func002001002002())
endfunction
function Trig_levelup_Func035Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func035Func002Func002001001(),Trig_levelup_Func035Func002Func002001002())
endfunction
function Trig_levelup_Func035Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func035Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func035Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func035Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func035Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func035Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func035C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='U00B')) then
return false
endif
return true
endfunction
function Trig_levelup_Func036Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func036Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func036Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func036Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func036Func002Func002001002001(),Trig_levelup_Func036Func002Func002001002002())
endfunction
function Trig_levelup_Func036Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func036Func002Func002001001(),Trig_levelup_Func036Func002Func002001002())
endfunction
function Trig_levelup_Func036Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func036Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func036Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func036Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func036Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func036Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func036C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='U007')) then
return false
endif
return true
endfunction
function Trig_levelup_Func037Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func037Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func037Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func037Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func037Func002Func002001002001(),Trig_levelup_Func037Func002Func002001002002())
endfunction
function Trig_levelup_Func037Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func037Func002Func002001001(),Trig_levelup_Func037Func002Func002001002())
endfunction
function Trig_levelup_Func037Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func037Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func037Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func037Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func037Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func037Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func037C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='UC91')) then
return false
endif
return true
endfunction
function Trig_levelup_Func038Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func038Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func038Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func038Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func038Func002Func002001002001(),Trig_levelup_Func038Func002Func002001002002())
endfunction
function Trig_levelup_Func038Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func038Func002Func002001001(),Trig_levelup_Func038Func002Func002001002())
endfunction
function Trig_levelup_Func038Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func038Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func038Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func038Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func038Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func038Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func038C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='UC42')) then
return false
endif
return true
endfunction
function Trig_levelup_Func039Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func039Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func039Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func039Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func039Func002Func002001002001(),Trig_levelup_Func039Func002Func002001002002())
endfunction
function Trig_levelup_Func039Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func039Func002Func002001001(),Trig_levelup_Func039Func002Func002001002())
endfunction
function Trig_levelup_Func039Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func039Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func039Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func039Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func039Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func039Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func039C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='U008')) then
return false
endif
return true
endfunction
function Trig_levelup_Func040Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func040Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func040Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func040Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func040Func002Func002001002001(),Trig_levelup_Func040Func002Func002001002002())
endfunction
function Trig_levelup_Func040Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func040Func002Func002001001(),Trig_levelup_Func040Func002Func002001002())
endfunction
function Trig_levelup_Func040Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func040Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func040Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func040Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func040Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func040Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func040C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='U000')) then
return false
endif
return true
endfunction
function Trig_levelup_Func041Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func041Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func041Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func041Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func041Func002Func002001002001(),Trig_levelup_Func041Func002Func002001002002())
endfunction
function Trig_levelup_Func041Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func041Func002Func002001001(),Trig_levelup_Func041Func002Func002001002())
endfunction
function Trig_levelup_Func041Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func041Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func041Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func041Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func041Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func041Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func041C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='EC04')) then
return false
endif
return true
endfunction
function Trig_levelup_Func042Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func042Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func042Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func042Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func042Func002Func002001002001(),Trig_levelup_Func042Func002Func002001002002())
endfunction
function Trig_levelup_Func042Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func042Func002Func002001001(),Trig_levelup_Func042Func002Func002001002())
endfunction
function Trig_levelup_Func042Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func042Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func042Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func042Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func042Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func042Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func042C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='OC55')) then
return false
endif
return true
endfunction
function Trig_levelup_Func043Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func043Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func043Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func043Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func043Func002Func002001002001(),Trig_levelup_Func043Func002Func002001002002())
endfunction
function Trig_levelup_Func043Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func043Func002Func002001001(),Trig_levelup_Func043Func002Func002001002())
endfunction
function Trig_levelup_Func043Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func043Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func043Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func043Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func043Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func043Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func043C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='U004')) then
return false
endif
return true
endfunction
function Trig_levelup_Func044Func001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==2)
endfunction
function Trig_levelup_Func044Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==1)
endfunction
function Trig_levelup_Func044Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==3)
endfunction
function Trig_levelup_Func044Func002001002002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==5)
endfunction
function Trig_levelup_Func044Func002001002002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==7)
endfunction
function Trig_levelup_Func044Func002001002002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func044Func002001002002001(),Trig_levelup_Func044Func002001002002002())
endfunction
function Trig_levelup_Func044Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func044Func002001002001(),Trig_levelup_Func044Func002001002002())
endfunction
function Trig_levelup_Func044Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func044Func002001001(),Trig_levelup_Func044Func002001002())
endfunction
function Trig_levelup_Func044Func003001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==2)
endfunction
function Trig_levelup_Func044Func003001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==4)
endfunction
function Trig_levelup_Func044Func003001002002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==8)
endfunction
function Trig_levelup_Func044Func003001002002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==9)
endfunction
function Trig_levelup_Func044Func003001002002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func044Func003001002002001(),Trig_levelup_Func044Func003001002002002())
endfunction
function Trig_levelup_Func044Func003001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func044Func003001002001(),Trig_levelup_Func044Func003001002002())
endfunction
function Trig_levelup_Func044Func003001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func044Func003001001(),Trig_levelup_Func044Func003001002())
endfunction
function Trig_levelup_Func044Func004001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==10)
endfunction
function Trig_levelup_Func044Func004001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==12)
endfunction
function Trig_levelup_Func044Func004001002002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==13)
endfunction
function Trig_levelup_Func044Func004001002002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==14)
endfunction
function Trig_levelup_Func044Func004001002002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func044Func004001002002001(),Trig_levelup_Func044Func004001002002002())
endfunction
function Trig_levelup_Func044Func004001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func044Func004001002001(),Trig_levelup_Func044Func004001002002())
endfunction
function Trig_levelup_Func044Func004001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func044Func004001001(),Trig_levelup_Func044Func004001002())
endfunction
function Trig_levelup_Func044Func005001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func044Func005001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func044Func005001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func044Func005001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func044Func005001002001(),Trig_levelup_Func044Func005001002002())
endfunction
function Trig_levelup_Func044Func005001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func044Func005001001(),Trig_levelup_Func044Func005001002())
endfunction
function Trig_levelup_Func044Func006001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())>14)
endfunction
function Trig_levelup_Func044Func006001002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())!=16)
endfunction
function Trig_levelup_Func044Func006001 takes nothing returns boolean
return GetBooleanAnd(Trig_levelup_Func044Func006001001(),Trig_levelup_Func044Func006001002())
endfunction
function Trig_levelup_Func044C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='UC76')) then
return false
endif
return true
endfunction
function Trig_levelup_Func045Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func045Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func045Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func045Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func045Func002Func002001002001(),Trig_levelup_Func045Func002Func002001002002())
endfunction
function Trig_levelup_Func045Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func045Func002Func002001001(),Trig_levelup_Func045Func002Func002001002())
endfunction
function Trig_levelup_Func045Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func045Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func045Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func045Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func045Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func045Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func045C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='EC57')) then
return false
endif
return true
endfunction
function Trig_levelup_Func046Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func046Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func046Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func046Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func046Func002Func002001002001(),Trig_levelup_Func046Func002Func002001002002())
endfunction
function Trig_levelup_Func046Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func046Func002Func002001001(),Trig_levelup_Func046Func002Func002001002())
endfunction
function Trig_levelup_Func046Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func046Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func046Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func046Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func046Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func046Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func046C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='UC18')) then
return false
endif
return true
endfunction
function Trig_levelup_Func047Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func047Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func047Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func047Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func047Func002Func002001002001(),Trig_levelup_Func047Func002Func002001002002())
endfunction
function Trig_levelup_Func047Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func047Func002Func002001001(),Trig_levelup_Func047Func002Func002001002())
endfunction
function Trig_levelup_Func047Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func047Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func047Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func047Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func047Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func047Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func047C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='UC11')) then
return false
endif
return true
endfunction
function Trig_levelup_Func048Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func048Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func048Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func048Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func048Func002Func002001002001(),Trig_levelup_Func048Func002Func002001002002())
endfunction
function Trig_levelup_Func048Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func048Func002Func002001001(),Trig_levelup_Func048Func002Func002001002())
endfunction
function Trig_levelup_Func048Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func048Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func048Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func048Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func048Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func048Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func048C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='H00V')) then
return false
endif
return true
endfunction
function Trig_levelup_Func049Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func049Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func049Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func049Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func049Func002Func002001002001(),Trig_levelup_Func049Func002Func002001002002())
endfunction
function Trig_levelup_Func049Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func049Func002Func002001001(),Trig_levelup_Func049Func002Func002001002())
endfunction
function Trig_levelup_Func049Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func049Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func049Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func049Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func049Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func049Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func049C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='UC60')) then
return false
endif
return true
endfunction
function Trig_levelup_Func050Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func050Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func050Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func050Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func050Func002Func002001002001(),Trig_levelup_Func050Func002Func002001002002())
endfunction
function Trig_levelup_Func050Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func050Func002Func002001001(),Trig_levelup_Func050Func002Func002001002())
endfunction
function Trig_levelup_Func050Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func050Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func050Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func050Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func050Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func050Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func050C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='H000')) then
return false
endif
return true
endfunction
function Trig_levelup_Func051Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func051Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func051Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func051Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func051Func002Func002001002001(),Trig_levelup_Func051Func002Func002001002002())
endfunction
function Trig_levelup_Func051Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func051Func002Func002001001(),Trig_levelup_Func051Func002Func002001002())
endfunction
function Trig_levelup_Func051Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func051Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func051Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func051Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func051Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func051Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func051C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='Hamg')) then
return false
endif
return true
endfunction
function Trig_levelup_Func052Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func052Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func052Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func052Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func052Func002Func002001002001(),Trig_levelup_Func052Func002Func002001002002())
endfunction
function Trig_levelup_Func052Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func052Func002Func002001001(),Trig_levelup_Func052Func002Func002001002())
endfunction
function Trig_levelup_Func052Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func052Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func052Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func052Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func052Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func052Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func052C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='N01O')) then
return false
endif
return true
endfunction
function Trig_levelup_Func053Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func053Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func053Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func053Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func053Func002Func002001002001(),Trig_levelup_Func053Func002Func002001002002())
endfunction
function Trig_levelup_Func053Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func053Func002Func002001001(),Trig_levelup_Func053Func002Func002001002())
endfunction
function Trig_levelup_Func053Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func053Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func053Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func053Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func053Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func053Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func053C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='Ofar')) then
return false
endif
return true
endfunction
function Trig_levelup_Func054Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func054Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func054Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func054Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func054Func002Func002001002001(),Trig_levelup_Func054Func002Func002001002002())
endfunction
function Trig_levelup_Func054Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func054Func002Func002001001(),Trig_levelup_Func054Func002Func002001002())
endfunction
function Trig_levelup_Func054Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func054Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func054Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func054Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func054Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func054Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func054C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='Oshd')) then
return false
endif
return true
endfunction
function Trig_levelup_Func055Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func055Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func055Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func055Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func055Func002Func002001002001(),Trig_levelup_Func055Func002Func002001002002())
endfunction
function Trig_levelup_Func055Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func055Func002Func002001001(),Trig_levelup_Func055Func002Func002001002())
endfunction
function Trig_levelup_Func055Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func055Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func055Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func055Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func055Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func055Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func055C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='Hblm')) then
return false
endif
return true
endfunction
function Trig_levelup_Func056Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func056Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func056Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func056Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func056Func002Func002001002001(),Trig_levelup_Func056Func002Func002001002002())
endfunction
function Trig_levelup_Func056Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func056Func002Func002001001(),Trig_levelup_Func056Func002Func002001002())
endfunction
function Trig_levelup_Func056Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func056Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func056Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func056Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func056Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func056Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func056C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='Hmkg')) then
return false
endif
return true
endfunction
function Trig_levelup_Func057Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func057Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func057Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func057Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func057Func002Func002001002001(),Trig_levelup_Func057Func002Func002001002002())
endfunction
function Trig_levelup_Func057Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func057Func002Func002001001(),Trig_levelup_Func057Func002Func002001002())
endfunction
function Trig_levelup_Func057Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func057Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func057Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func057Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func057Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func057Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func057C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='U006')) then
return false
endif
return true
endfunction
function Trig_levelup_Func058Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func058Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func058Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func058Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func058Func002Func002001002001(),Trig_levelup_Func058Func002Func002001002002())
endfunction
function Trig_levelup_Func058Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func058Func002Func002001001(),Trig_levelup_Func058Func002Func002001002())
endfunction
function Trig_levelup_Func058Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func058Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func058Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func058Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func058Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func058Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func058C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='U00K')) then
return false
endif
return true
endfunction
function Trig_levelup_Func059Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func059Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func059Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func059Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func059Func002Func002001002001(),Trig_levelup_Func059Func002Func002001002002())
endfunction
function Trig_levelup_Func059Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func059Func002Func002001001(),Trig_levelup_Func059Func002Func002001002())
endfunction
function Trig_levelup_Func059Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func059Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func059Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func059Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func059Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func059Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func059C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='N01A')) then
return false
endif
return true
endfunction
function Trig_levelup_Func060Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func060Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func060Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func060Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func060Func002Func002001002001(),Trig_levelup_Func060Func002Func002001002002())
endfunction
function Trig_levelup_Func060Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func060Func002Func002001001(),Trig_levelup_Func060Func002Func002001002())
endfunction
function Trig_levelup_Func060Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func060Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func060Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func060Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func060Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func060Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func060C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='H00H')) then
return false
endif
return true
endfunction
function Trig_levelup_Func061Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func061Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func061Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func061Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func061Func002Func002001002001(),Trig_levelup_Func061Func002Func002001002002())
endfunction
function Trig_levelup_Func061Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func061Func002Func002001001(),Trig_levelup_Func061Func002Func002001002())
endfunction
function Trig_levelup_Func061Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func061Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func061Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func061Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func061Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func061Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func061C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='U00F')) then
return false
endif
return true
endfunction
function Trig_levelup_Func062Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func062Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func062Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func062Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func062Func002Func002001002001(),Trig_levelup_Func062Func002Func002001002002())
endfunction
function Trig_levelup_Func062Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func062Func002Func002001001(),Trig_levelup_Func062Func002Func002001002())
endfunction
function Trig_levelup_Func062Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func062Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func062Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func062Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func062Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func062Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func062C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='N000')) then
return false
endif
return true
endfunction
function Trig_levelup_Func063Func002Func002001001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==6)
endfunction
function Trig_levelup_Func063Func002Func002001002001 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==11)
endfunction
function Trig_levelup_Func063Func002Func002001002002 takes nothing returns boolean
return(GetHeroLevel(GetTriggerUnit())==16)
endfunction
function Trig_levelup_Func063Func002Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func063Func002Func002001002001(),Trig_levelup_Func063Func002Func002001002002())
endfunction
function Trig_levelup_Func063Func002Func002001 takes nothing returns boolean
return GetBooleanOr(Trig_levelup_Func063Func002Func002001001(),Trig_levelup_Func063Func002Func002001002())
endfunction
function Trig_levelup_Func063Func002Func003001 takes nothing returns boolean
return(udg_alevel==0)
endfunction
function Trig_levelup_Func063Func002Func004001 takes nothing returns boolean
return(udg_alevel==1)
endfunction
function Trig_levelup_Func063Func002Func005001 takes nothing returns boolean
return(udg_alevel==2)
endfunction
function Trig_levelup_Func063Func002Func006001 takes nothing returns boolean
return(udg_alevel==3)
endfunction
function Trig_levelup_Func063Func002Func007001 takes nothing returns boolean
return(udg_alevel==4)
endfunction
function Trig_levelup_Func063Func002Func008001 takes nothing returns boolean
return(GetHeroSkillPoints(GetTriggerUnit())>0)
endfunction
function Trig_levelup_Func063C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='U00E')) then
return false
endif
return true
endfunction
function Trig_levelup_Conditions takes nothing returns boolean
if(not(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_COMPUTER)) then
return false
endif
return true
endfunction
function Trig_levelup_Actions takes nothing returns nothing
set udg_unspentskillpoints=1
if(Trig_levelup_Func002001()) then
set udg_count=2
else
set udg_count=4
endif
if(Trig_levelup_Func003C()) then
set udg_assassin=GetTriggerUnit()
if(Trig_levelup_Func003Func002001()) then
call SelectHeroSkill(GetTriggerUnit(),'AOcr')
else
call DoNothing()
endif
if(Trig_levelup_Func003Func003001()) then
call UnitRemoveAbilityBJ('A00T',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_levelup_Func003Func004001()) then
call UnitAddAbilityBJ('A09J',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_levelup_Func003Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'AOcr')
else
call DoNothing()
endif
if(Trig_levelup_Func003Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'AEbl')
else
call DoNothing()
endif
if(Trig_levelup_Func003Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'A00J')
else
call DoNothing()
endif
if(Trig_levelup_Func003Func008001()) then
call SelectHeroSkill(GetTriggerUnit(),'A00T')
else
call DoNothing()
endif
if(Trig_levelup_Func003Func009001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
else
call DoNothing()
endif
if(Trig_levelup_Func004C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func004Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func004Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'AHfa')
else
call DoNothing()
endif
if(Trig_levelup_Func004Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A030')
else
call DoNothing()
endif
if(Trig_levelup_Func004Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A025')
else
call DoNothing()
endif
if(Trig_levelup_Func004Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A04Q')
else
call DoNothing()
endif
if(Trig_levelup_Func004Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func004Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func005C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func005Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func005Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A0BE')
else
call DoNothing()
endif
if(Trig_levelup_Func005Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A0BD')
else
call DoNothing()
endif
if(Trig_levelup_Func005Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A0BC')
else
call DoNothing()
endif
if(Trig_levelup_Func005Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A0BB')
else
call DoNothing()
endif
if(Trig_levelup_Func005Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func005Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func006C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func006Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func006Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'AHtb')
else
call DoNothing()
endif
if(Trig_levelup_Func006Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'AUav')
else
call DoNothing()
endif
if(Trig_levelup_Func006Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'AOcr')
else
call DoNothing()
endif
if(Trig_levelup_Func006Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A01Y')
else
call DoNothing()
endif
if(Trig_levelup_Func006Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func006Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func007C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func007Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func007Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A03N')
else
call DoNothing()
endif
if(Trig_levelup_Func007Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A055')
else
call DoNothing()
endif
if(Trig_levelup_Func007Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A09F')
else
call DoNothing()
endif
if(Trig_levelup_Func007Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A03O')
else
call DoNothing()
endif
if(Trig_levelup_Func007Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func007Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func008C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func008Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func008Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A04A')
else
call DoNothing()
endif
if(Trig_levelup_Func008Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'AEbl')
else
call DoNothing()
endif
if(Trig_levelup_Func008Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'AEsh')
else
call DoNothing()
endif
if(Trig_levelup_Func008Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A00O')
else
call DoNothing()
endif
if(Trig_levelup_Func008Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func008Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func009C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func009Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func009Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A050')
else
call DoNothing()
endif
if(Trig_levelup_Func009Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A03Y')
else
call DoNothing()
endif
if(Trig_levelup_Func009Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A051')
else
call DoNothing()
endif
if(Trig_levelup_Func009Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A059')
else
call DoNothing()
endif
if(Trig_levelup_Func009Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func009Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func010C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func010Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func010Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A03F')
else
call DoNothing()
endif
if(Trig_levelup_Func010Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A0AR')
else
call DoNothing()
endif
if(Trig_levelup_Func010Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A09N')
else
call DoNothing()
endif
if(Trig_levelup_Func010Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A03G')
else
call DoNothing()
endif
if(Trig_levelup_Func010Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func010Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func011C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func011Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func011Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A08N')
else
call DoNothing()
endif
if(Trig_levelup_Func011Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A08V')
else
call DoNothing()
endif
if(Trig_levelup_Func011Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A06A')
else
call DoNothing()
endif
if(Trig_levelup_Func011Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A05B')
else
call DoNothing()
endif
if(Trig_levelup_Func011Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func011Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func012C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func012Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func012Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'ANsi')
else
call DoNothing()
endif
if(Trig_levelup_Func012Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'AN29')
else
call DoNothing()
endif
if(Trig_levelup_Func012Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'AN26')
else
call DoNothing()
endif
if(Trig_levelup_Func012Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A056')
else
call DoNothing()
endif
if(Trig_levelup_Func012Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func012Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func013C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func013Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func013Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A04L')
else
call DoNothing()
endif
if(Trig_levelup_Func013Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A08Q')
else
call DoNothing()
endif
if(Trig_levelup_Func013Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'AEvi')
else
call DoNothing()
endif
if(Trig_levelup_Func013Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A07Q')
else
call DoNothing()
endif
if(Trig_levelup_Func013Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func013Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func014C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func014Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func014Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A05D')
else
call DoNothing()
endif
if(Trig_levelup_Func014Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A029')
else
call DoNothing()
endif
if(Trig_levelup_Func014Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A09V')
else
call DoNothing()
endif
if(Trig_levelup_Func014Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A080')
else
call DoNothing()
endif
if(Trig_levelup_Func014Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func014Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func015C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func015Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func015Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'AEbl')
else
call DoNothing()
endif
if(Trig_levelup_Func015Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A06J')
else
call DoNothing()
endif
if(Trig_levelup_Func015Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A040')
else
call DoNothing()
endif
if(Trig_levelup_Func015Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A0CP')
else
call DoNothing()
endif
if(Trig_levelup_Func015Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'A04H')
else
call DoNothing()
endif
if(Trig_levelup_Func015Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func016C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func016Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func016Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A022')
else
call DoNothing()
endif
if(Trig_levelup_Func016Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A052')
else
call DoNothing()
endif
if(Trig_levelup_Func016Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'AEbl')
else
call DoNothing()
endif
if(Trig_levelup_Func016Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A079')
else
call DoNothing()
endif
if(Trig_levelup_Func016Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func016Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func017C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func017Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func017Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A000')
else
call DoNothing()
endif
if(Trig_levelup_Func017Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A07A')
else
call DoNothing()
endif
if(Trig_levelup_Func017Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A004')
else
call DoNothing()
endif
if(Trig_levelup_Func017Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A00F')
else
call DoNothing()
endif
if(Trig_levelup_Func017Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func017Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func018C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func018Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func018Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A047')
else
call DoNothing()
endif
if(Trig_levelup_Func018Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A05G')
else
call DoNothing()
endif
if(Trig_levelup_Func018Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A00K')
else
call DoNothing()
endif
if(Trig_levelup_Func018Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A066')
else
call DoNothing()
endif
if(Trig_levelup_Func018Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func018Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func019C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func019Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func019Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A00P')
else
call DoNothing()
endif
if(Trig_levelup_Func019Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'AOhx')
else
call DoNothing()
endif
if(Trig_levelup_Func019Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A010')
else
call DoNothing()
endif
if(Trig_levelup_Func019Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A00H')
else
call DoNothing()
endif
if(Trig_levelup_Func019Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func019Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func020C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func020Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func020Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A02V')
else
call DoNothing()
endif
if(Trig_levelup_Func020Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'AOcr')
else
call DoNothing()
endif
if(Trig_levelup_Func020Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A06P')
else
call DoNothing()
endif
if(Trig_levelup_Func020Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A068')
else
call DoNothing()
endif
if(Trig_levelup_Func020Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func020Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func021C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func021Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func021Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A06Q')
else
call DoNothing()
endif
if(Trig_levelup_Func021Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A01O')
else
call DoNothing()
endif
if(Trig_levelup_Func021Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'AEfn')
else
call DoNothing()
endif
if(Trig_levelup_Func021Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A07X')
else
call DoNothing()
endif
if(Trig_levelup_Func021Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func021Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func022C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func022Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func022Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A06M')
else
call DoNothing()
endif
if(Trig_levelup_Func022Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'Acdh')
else
call DoNothing()
endif
if(Trig_levelup_Func022Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'Acdb')
else
call DoNothing()
endif
if(Trig_levelup_Func022Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'Acef')
else
call DoNothing()
endif
if(Trig_levelup_Func022Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func022Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func023C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func023Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func023Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A064')
else
call DoNothing()
endif
if(Trig_levelup_Func023Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A04P')
else
call DoNothing()
endif
if(Trig_levelup_Func023Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A03S')
else
call DoNothing()
endif
if(Trig_levelup_Func023Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A03U')
else
call DoNothing()
endif
if(Trig_levelup_Func023Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func023Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func024C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func024Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func024Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A01F')
else
call DoNothing()
endif
if(Trig_levelup_Func024Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A027')
else
call DoNothing()
endif
if(Trig_levelup_Func024Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A001')
else
call DoNothing()
endif
if(Trig_levelup_Func024Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A01P')
else
call DoNothing()
endif
if(Trig_levelup_Func024Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func024Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func025C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func025Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func025Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A062')
else
call DoNothing()
endif
if(Trig_levelup_Func025Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A042')
else
call DoNothing()
endif
if(Trig_levelup_Func025Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A041')
else
call DoNothing()
endif
if(Trig_levelup_Func025Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A054')
else
call DoNothing()
endif
if(Trig_levelup_Func025Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func025Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func026C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func026Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func026Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A05E')
else
call DoNothing()
endif
if(Trig_levelup_Func026Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A02F')
else
call DoNothing()
endif
if(Trig_levelup_Func026Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'AHwe')
else
call DoNothing()
endif
if(Trig_levelup_Func026Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A051')
else
call DoNothing()
endif
if(Trig_levelup_Func026Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func026Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func027C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func027Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func027Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A01D')
else
call DoNothing()
endif
if(Trig_levelup_Func027Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A04C')
else
call DoNothing()
endif
if(Trig_levelup_Func027Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'AHab')
else
call DoNothing()
endif
if(Trig_levelup_Func027Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A03R')
else
call DoNothing()
endif
if(Trig_levelup_Func027Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func027Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func028C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func028Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func028Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A02A')
else
call DoNothing()
endif
if(Trig_levelup_Func028Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A0AP')
else
call DoNothing()
endif
if(Trig_levelup_Func028Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A045')
else
call DoNothing()
endif
if(Trig_levelup_Func028Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A00G')
else
call DoNothing()
endif
if(Trig_levelup_Func028Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func028Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func029C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func029Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func029Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A00E')
else
call DoNothing()
endif
if(Trig_levelup_Func029Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A0BA')
else
call DoNothing()
endif
if(Trig_levelup_Func029Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A063')
else
call DoNothing()
endif
if(Trig_levelup_Func029Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A07U')
else
call DoNothing()
endif
if(Trig_levelup_Func029Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func029Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func030C()) then
if(Trig_levelup_Func030Func001001()) then
call SelectHeroSkill(GetTriggerUnit(),'A05J')
else
call DoNothing()
endif
if(Trig_levelup_Func030Func002001()) then
call SelectHeroSkill(GetTriggerUnit(),'A0AK')
else
call DoNothing()
endif
if(Trig_levelup_Func030Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A06H')
else
call DoNothing()
endif
if(Trig_levelup_Func030Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
else
call DoNothing()
endif
if(Trig_levelup_Func031C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func031Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func031Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'AHtb')
else
call DoNothing()
endif
if(Trig_levelup_Func031Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A01K')
else
call DoNothing()
endif
if(Trig_levelup_Func031Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A01M')
else
call DoNothing()
endif
if(Trig_levelup_Func031Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A01H')
else
call DoNothing()
endif
if(Trig_levelup_Func031Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func031Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func032C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func032Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func032Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A01X')
else
call DoNothing()
endif
if(Trig_levelup_Func032Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A006')
else
call DoNothing()
endif
if(Trig_levelup_Func032Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A020')
else
call DoNothing()
endif
if(Trig_levelup_Func032Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A07C')
else
call DoNothing()
endif
if(Trig_levelup_Func032Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func032Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func033C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func033Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func033Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A00Y')
else
call DoNothing()
endif
if(Trig_levelup_Func033Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A05D')
else
call DoNothing()
endif
if(Trig_levelup_Func033Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A00N')
else
call DoNothing()
endif
if(Trig_levelup_Func033Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A04B')
else
call DoNothing()
endif
if(Trig_levelup_Func033Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func033Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func034C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func034Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func034Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A02M')
else
call DoNothing()
endif
if(Trig_levelup_Func034Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A081')
else
call DoNothing()
endif
if(Trig_levelup_Func034Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'AEev')
else
call DoNothing()
endif
if(Trig_levelup_Func034Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A003')
else
call DoNothing()
endif
if(Trig_levelup_Func034Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func034Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func035C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func035Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func035Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A09F')
else
call DoNothing()
endif
if(Trig_levelup_Func035Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A03P')
else
call DoNothing()
endif
if(Trig_levelup_Func035Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'AEsh')
else
call DoNothing()
endif
if(Trig_levelup_Func035Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A03Q')
else
call DoNothing()
endif
if(Trig_levelup_Func035Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func035Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func036C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func036Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func036Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A06Y')
else
call DoNothing()
endif
if(Trig_levelup_Func036Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A071')
else
call DoNothing()
endif
if(Trig_levelup_Func036Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A01E')
else
call DoNothing()
endif
if(Trig_levelup_Func036Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A028')
else
call DoNothing()
endif
if(Trig_levelup_Func036Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func036Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func037C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func037Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func037Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A05C')
else
call DoNothing()
endif
if(Trig_levelup_Func037Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A01W')
else
call DoNothing()
endif
if(Trig_levelup_Func037Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A081')
else
call DoNothing()
endif
if(Trig_levelup_Func037Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A034')
else
call DoNothing()
endif
if(Trig_levelup_Func037Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func037Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func038C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func038Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func038Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A01I')
else
call DoNothing()
endif
if(Trig_levelup_Func038Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A094')
else
call DoNothing()
endif
if(Trig_levelup_Func038Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A05Y')
else
call DoNothing()
endif
if(Trig_levelup_Func038Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'ANdo')
else
call DoNothing()
endif
if(Trig_levelup_Func038Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func038Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func039C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func039Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func039Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A03E')
else
call DoNothing()
endif
if(Trig_levelup_Func039Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A02G')
else
call DoNothing()
endif
if(Trig_levelup_Func039Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A03D')
else
call DoNothing()
endif
if(Trig_levelup_Func039Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A093')
else
call DoNothing()
endif
if(Trig_levelup_Func039Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func039Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func040C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func040Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func040Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A09U')
else
call DoNothing()
endif
if(Trig_levelup_Func040Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A09K')
else
call DoNothing()
endif
if(Trig_levelup_Func040Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A02K')
else
call DoNothing()
endif
if(Trig_levelup_Func040Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A02L')
else
call DoNothing()
endif
if(Trig_levelup_Func040Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func040Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func041C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func041Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func041Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A053')
else
call DoNothing()
endif
if(Trig_levelup_Func041Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A07F')
else
call DoNothing()
endif
if(Trig_levelup_Func041Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A08R')
else
call DoNothing()
endif
if(Trig_levelup_Func041Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A05T')
else
call DoNothing()
endif
if(Trig_levelup_Func041Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func041Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func042C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func042Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func042Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A06W')
else
call DoNothing()
endif
if(Trig_levelup_Func042Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A035')
else
call DoNothing()
endif
if(Trig_levelup_Func042Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A06V')
else
call DoNothing()
endif
if(Trig_levelup_Func042Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A06X')
else
call DoNothing()
endif
if(Trig_levelup_Func042Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func042Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func043C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func043Func002Func002001()) then
set udg_alevel=1
else
call DoNothing()
endif
if(Trig_levelup_Func043Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A02H')
else
call DoNothing()
endif
if(Trig_levelup_Func043Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A086')
else
call DoNothing()
endif
if(Trig_levelup_Func043Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A08E')
else
call DoNothing()
endif
if(Trig_levelup_Func043Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A03K')
else
call DoNothing()
endif
if(Trig_levelup_Func043Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func043Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func044C()) then
if(Trig_levelup_Func044Func001001()) then
call SelectHeroSkill(GetTriggerUnit(),'A02M')
else
call DoNothing()
endif
if(Trig_levelup_Func044Func002001()) then
call SelectHeroSkill(GetTriggerUnit(),'A02M')
else
call DoNothing()
endif
if(Trig_levelup_Func044Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A02C')
else
call DoNothing()
endif
if(Trig_levelup_Func044Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'ANsi')
else
call DoNothing()
endif
if(Trig_levelup_Func044Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A073')
else
call DoNothing()
endif
if(Trig_levelup_Func044Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
else
call DoNothing()
endif
if(Trig_levelup_Func045C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func045Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func045Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'AEsh')
else
call DoNothing()
endif
if(Trig_levelup_Func045Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aven')
else
call DoNothing()
endif
if(Trig_levelup_Func045Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'Arsw')
else
call DoNothing()
endif
if(Trig_levelup_Func045Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A013')
else
call DoNothing()
endif
if(Trig_levelup_Func045Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func045Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func046C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func046Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func046Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A02J')
else
call DoNothing()
endif
if(Trig_levelup_Func046Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'AOhx')
else
call DoNothing()
endif
if(Trig_levelup_Func046Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A02N')
else
call DoNothing()
endif
if(Trig_levelup_Func046Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A095')
else
call DoNothing()
endif
if(Trig_levelup_Func046Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func046Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func047C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func047Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func047Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A02S')
else
call DoNothing()
endif
if(Trig_levelup_Func047Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A024')
else
call DoNothing()
endif
if(Trig_levelup_Func047Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A037')
else
call DoNothing()
endif
if(Trig_levelup_Func047Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A06F')
else
call DoNothing()
endif
if(Trig_levelup_Func047Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func047Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func048C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func048Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func048Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A09J')
else
call DoNothing()
endif
if(Trig_levelup_Func048Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A02V')
else
call DoNothing()
endif
if(Trig_levelup_Func048Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A00Y')
else
call DoNothing()
endif
if(Trig_levelup_Func048Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'ANms')
else
call DoNothing()
endif
if(Trig_levelup_Func048Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func048Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func049C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func049Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func049Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'AEbl')
else
call DoNothing()
endif
if(Trig_levelup_Func049Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A05D')
else
call DoNothing()
endif
if(Trig_levelup_Func049Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A03H')
else
call DoNothing()
endif
if(Trig_levelup_Func049Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A07K')
else
call DoNothing()
endif
if(Trig_levelup_Func049Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func049Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func050C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func050Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func050Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A00L')
else
call DoNothing()
endif
if(Trig_levelup_Func050Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A00V')
else
call DoNothing()
endif
if(Trig_levelup_Func050Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A00S')
else
call DoNothing()
endif
if(Trig_levelup_Func050Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A01L')
else
call DoNothing()
endif
if(Trig_levelup_Func050Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func050Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func051C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func051Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func051Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A01U')
else
call DoNothing()
endif
if(Trig_levelup_Func051Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A01Z')
else
call DoNothing()
endif
if(Trig_levelup_Func051Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A01V')
else
call DoNothing()
endif
if(Trig_levelup_Func051Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A07Z')
else
call DoNothing()
endif
if(Trig_levelup_Func051Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func051Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func052C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func052Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func052Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A0AJ')
else
call DoNothing()
endif
if(Trig_levelup_Func052Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A0A5')
else
call DoNothing()
endif
if(Trig_levelup_Func052Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A0A8')
else
call DoNothing()
endif
if(Trig_levelup_Func052Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A0AA')
else
call DoNothing()
endif
if(Trig_levelup_Func052Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'A0AG')
else
call DoNothing()
endif
if(Trig_levelup_Func052Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func053C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func053Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func053Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A046')
else
call DoNothing()
endif
if(Trig_levelup_Func053Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A04E')
else
call DoNothing()
endif
if(Trig_levelup_Func053Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A044')
else
call DoNothing()
endif
if(Trig_levelup_Func053Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A03Z')
else
call DoNothing()
endif
if(Trig_levelup_Func053Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func053Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func054C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func054Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func054Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A04Y')
else
call DoNothing()
endif
if(Trig_levelup_Func054Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A04X')
else
call DoNothing()
endif
if(Trig_levelup_Func054Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A04V')
else
call DoNothing()
endif
if(Trig_levelup_Func054Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A02Q')
else
call DoNothing()
endif
if(Trig_levelup_Func054Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func054Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func055C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func055Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func055Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A07Y')
else
call DoNothing()
endif
if(Trig_levelup_Func055Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A085')
else
call DoNothing()
endif
if(Trig_levelup_Func055Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A07N')
else
call DoNothing()
endif
if(Trig_levelup_Func055Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'AEsv')
else
call DoNothing()
endif
if(Trig_levelup_Func055Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func055Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func056C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func056Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func056Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A082')
else
call DoNothing()
endif
if(Trig_levelup_Func056Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A04W')
else
call DoNothing()
endif
if(Trig_levelup_Func056Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A083')
else
call DoNothing()
endif
if(Trig_levelup_Func056Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A088')
else
call DoNothing()
endif
if(Trig_levelup_Func056Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func056Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func057C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func057Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func057Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A0BK')
else
call DoNothing()
endif
if(Trig_levelup_Func057Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A0BH')
else
call DoNothing()
endif
if(Trig_levelup_Func057Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A0BG')
else
call DoNothing()
endif
if(Trig_levelup_Func057Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A0BP')
else
call DoNothing()
endif
if(Trig_levelup_Func057Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func057Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func058C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func058Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func058Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A06U')
else
call DoNothing()
endif
if(Trig_levelup_Func058Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A06O')
else
call DoNothing()
endif
if(Trig_levelup_Func058Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A06S')
else
call DoNothing()
endif
if(Trig_levelup_Func058Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A06R')
else
call DoNothing()
endif
if(Trig_levelup_Func058Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func058Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func059C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func059Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func059Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'ANhw')
else
call DoNothing()
endif
if(Trig_levelup_Func059Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A00C')
else
call DoNothing()
endif
if(Trig_levelup_Func059Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'ANr3')
else
call DoNothing()
endif
if(Trig_levelup_Func059Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A04S')
else
call DoNothing()
endif
if(Trig_levelup_Func059Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func059Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func060C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func060Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func060Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A09D')
else
call DoNothing()
endif
if(Trig_levelup_Func060Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'AHbz')
else
call DoNothing()
endif
if(Trig_levelup_Func060Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A0CE')
else
call DoNothing()
endif
if(Trig_levelup_Func060Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A066')
else
call DoNothing()
endif
if(Trig_levelup_Func060Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func060Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func061C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func061Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func061Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A06I')
else
call DoNothing()
endif
if(Trig_levelup_Func061Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A06G')
else
call DoNothing()
endif
if(Trig_levelup_Func061Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A06D')
else
call DoNothing()
endif
if(Trig_levelup_Func061Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func061Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func062C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func062Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func062Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A05F')
else
call DoNothing()
endif
if(Trig_levelup_Func062Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A05E')
else
call DoNothing()
endif
if(Trig_levelup_Func062Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A049')
else
call DoNothing()
endif
if(Trig_levelup_Func062Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A065')
else
call DoNothing()
endif
if(Trig_levelup_Func062Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func062Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
if(Trig_levelup_Func063C()) then
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_unspentskillpoints
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_alevel=GetRandomInt(0,udg_count)
if(Trig_levelup_Func063Func002Func002001()) then
set udg_alevel=3
else
call DoNothing()
endif
if(Trig_levelup_Func063Func002Func003001()) then
call SelectHeroSkill(GetTriggerUnit(),'A05V')
else
call DoNothing()
endif
if(Trig_levelup_Func063Func002Func004001()) then
call SelectHeroSkill(GetTriggerUnit(),'A060')
else
call DoNothing()
endif
if(Trig_levelup_Func063Func002Func005001()) then
call SelectHeroSkill(GetTriggerUnit(),'A05X')
else
call DoNothing()
endif
if(Trig_levelup_Func063Func002Func006001()) then
call SelectHeroSkill(GetTriggerUnit(),'A067')
else
call DoNothing()
endif
if(Trig_levelup_Func063Func002Func007001()) then
call SelectHeroSkill(GetTriggerUnit(),'Aamk')
else
call DoNothing()
endif
if(Trig_levelup_Func063Func002Func008001()) then
set udg_unspentskillpoints=(udg_unspentskillpoints+1)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
endfunction
function InitTrig_levelup takes nothing returns nothing
set gg_trg_levelup=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_levelup,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(gg_trg_levelup,Condition(function Trig_levelup_Conditions))
call TriggerAddAction(gg_trg_levelup,function Trig_levelup_Actions)
endfunction
function Trig_continuemovement_Func001Func001Func001Func001Func001Func002Func001C takes nothing returns boolean
if(not(udg_defendingsent==false)) then
return false
endif
if(not(udg_defendingundead==false)) then
return false
endif
return true
endfunction
function Trig_continuemovement_Func001Func001Func001Func001Func001Func002Func002Func001C takes nothing returns boolean
if(not(udg_defendingundead==true)) then
return false
endif
if(not(IsPlayerAlly(GetOwningPlayer(GetEnumUnit()),Player(6))==true)) then
return false
endif
return true
endfunction
function Trig_continuemovement_Func001Func001Func001Func001Func001Func002Func002C takes nothing returns boolean
if(not(udg_defendingsent==true)) then
return false
endif
if(not(IsPlayerAlly(GetOwningPlayer(GetEnumUnit()),Player(0))==true)) then
return false
endif
return true
endfunction
function Trig_continuemovement_Func001Func001Func001Func001Func001Func002C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit()))<(250+(GetHeroLevel(GetEnumUnit())*15)))) then
return false
endif
return true
endfunction
function Trig_continuemovement_Func001Func001Func001Func001Func001Func003001 takes nothing returns boolean
return(GetUnitCurrentOrder(GetEnumUnit())==String2OrderIdBJ("stop"))
endfunction
function Trig_continuemovement_Func001Func001Func001Func001Func001Func003002 takes nothing returns boolean
return(GetUnitCurrentOrder(GetEnumUnit())==String2OrderIdBJ(""))
endfunction
function Trig_continuemovement_Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not GetBooleanOr(Trig_continuemovement_Func001Func001Func001Func001Func001Func003001(),Trig_continuemovement_Func001Func001Func001Func001Func001Func003002())) then
return false
endif
return true
endfunction
function Trig_continuemovement_Func001Func001Func001Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit()))<(250+(GetHeroLevel(GetEnumUnit())*15)))) then
return false
endif
return true
endfunction
function Trig_continuemovement_Func001Func001Func001Func003Func001C takes nothing returns boolean
if(not(udg_defendingsent==false)) then
return false
endif
if(not(udg_defendingundead==false)) then
return false
endif
return true
endfunction
function Trig_continuemovement_Func001Func001Func001Func003Func002Func001C takes nothing returns boolean
if(not(udg_defendingundead==true)) then
return false
endif
if(not(IsPlayerAlly(GetOwningPlayer(GetEnumUnit()),Player(6))==true)) then
return false
endif
return true
endfunction
function Trig_continuemovement_Func001Func001Func001Func003Func002C takes nothing returns boolean
if(not(udg_defendingsent==true)) then
return false
endif
if(not(IsPlayerAlly(GetOwningPlayer(GetEnumUnit()),Player(0))==true)) then
return false
endif
return true
endfunction
function Trig_continuemovement_Func001Func001Func001Func003C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit()))<(250+(GetHeroLevel(GetEnumUnit())*15)))) then
return false
endif
return true
endfunction
function Trig_continuemovement_Func001Func001Func001C takes nothing returns boolean
if(not(udg_attacking[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]==false)) then
return false
endif
return true
endfunction
function Trig_continuemovement_Func001Func001C takes nothing returns boolean
if(not(GetPlayerController(GetOwningPlayer(GetEnumUnit()))==MAP_CONTROL_COMPUTER)) then
return false
endif
if(not(GetOwningPlayer(GetEnumUnit())!=Player(0))) then
return false
endif
if(not(GetOwningPlayer(GetEnumUnit())!=Player(6))) then
return false
endif
if(not(udg_moving[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]==false)) then
return false
endif
if(not(udg_ishealing[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]==false)) then
return false
endif
return true
endfunction
function Trig_continuemovement_Func001A takes nothing returns nothing
if(Trig_continuemovement_Func001Func001C()) then
if(Trig_continuemovement_Func001Func001Func001C()) then
if(Trig_continuemovement_Func001Func001Func001Func003C()) then
call IssuePointOrderLocBJ(GetEnumUnit(),"move",GetRectCenter(udg_lastsaferegion[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]))
else
if(Trig_continuemovement_Func001Func001Func001Func003Func001C()) then
call IssuePointOrderLocBJ(GetEnumUnit(),"attack",GetRectCenter(udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]))
else
call DoNothing()
endif
if(Trig_continuemovement_Func001Func001Func001Func003Func002C()) then
call IssuePointOrderLocBJ(GetEnumUnit(),"attack",GetRectCenter(udg_defendingattackregion[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]))
else
if(Trig_continuemovement_Func001Func001Func001Func003Func002Func001C()) then
call IssuePointOrderLocBJ(GetEnumUnit(),"attack",GetRectCenter(udg_defendingattackregion[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]))
else
call IssuePointOrderLocBJ(GetEnumUnit(),"attack",GetRectCenter(udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]))
endif
endif
endif
else
if(Trig_continuemovement_Func001Func001Func001Func001C()) then
call IssuePointOrderLocBJ(GetEnumUnit(),"move",GetRectCenter(udg_lastsaferegion[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]))
else
if(Trig_continuemovement_Func001Func001Func001Func001Func001C()) then
if(Trig_continuemovement_Func001Func001Func001Func001Func001Func002C()) then
call IssuePointOrderLocBJ(GetEnumUnit(),"move",GetRectCenter(udg_lastsaferegion[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]))
else
if(Trig_continuemovement_Func001Func001Func001Func001Func001Func002Func001C()) then
call IssuePointOrderLocBJ(GetEnumUnit(),"attack",GetRectCenter(udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]))
else
call DoNothing()
endif
if(Trig_continuemovement_Func001Func001Func001Func001Func001Func002Func002C()) then
call IssuePointOrderLocBJ(GetEnumUnit(),"attack",GetRectCenter(udg_defendingattackregion[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]))
else
if(Trig_continuemovement_Func001Func001Func001Func001Func001Func002Func002Func001C()) then
call IssuePointOrderLocBJ(GetEnumUnit(),"attack",GetRectCenter(udg_defendingattackregion[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]))
else
call IssuePointOrderLocBJ(GetEnumUnit(),"attack",GetRectCenter(udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]))
endif
endif
endif
else
call DoNothing()
endif
endif
endif
else
call DoNothing()
endif
endfunction
function Trig_continuemovement_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRectAll(GetPlayableMapRect()),function Trig_continuemovement_Func001A)
endfunction
function InitTrig_continuemovement takes nothing returns nothing
set gg_trg_continuemovement=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(gg_trg_continuemovement,26.00)
call TriggerAddAction(gg_trg_continuemovement,function Trig_continuemovement_Actions)
endfunction
function Trig_aiscourgedefend_Func002Func001001 takes nothing returns boolean
return(IsPlayerEnemy(GetOwningPlayer(GetEnumUnit()),Player(6))==true)
endfunction
function Trig_aiscourgedefend_Func002A takes nothing returns nothing
if(Trig_aiscourgedefend_Func002Func001001()) then
set udg_arandomnumber=(udg_arandomnumber+1)
else
call DoNothing()
endif
endfunction
function Trig_aiscourgedefend_Func003Func002Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(IsUnitAlly(GetEnumUnit(),Player(7))==true)) then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetEnumUnit()))==MAP_CONTROL_COMPUTER)) then
return false
endif
return true
endfunction
function Trig_aiscourgedefend_Func003Func002A takes nothing returns nothing
if(Trig_aiscourgedefend_Func003Func002Func001C()) then
call IssuePointOrderLocBJ(GetEnumUnit(),"attack",GetRectCenter(udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]))
else
call DoNothing()
endif
endfunction
function Trig_aiscourgedefend_Func003C takes nothing returns boolean
if(not(udg_arandomnumber==0)) then
return false
endif
return true
endfunction
function Trig_aiscourgedefend_Actions takes nothing returns nothing
set udg_arandomnumber=0
call ForGroupBJ(GetUnitsInRectAll(gg_rct_defendsc),function Trig_aiscourgedefend_Func002A)
if(Trig_aiscourgedefend_Func003C()) then
set udg_defendingundead=false
call ForGroupBJ(GetUnitsInRectAll(GetPlayableMapRect()),function Trig_aiscourgedefend_Func003Func002A)
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function InitTrig_aiscourgedefend takes nothing returns nothing
set gg_trg_aiscourgedefend=CreateTrigger()
call DisableTrigger(gg_trg_aiscourgedefend)
call TriggerRegisterTimerEventPeriodic(gg_trg_aiscourgedefend,20.00)
call TriggerAddAction(gg_trg_aiscourgedefend,function Trig_aiscourgedefend_Actions)
endfunction
function Trig_aisentdefend_Func002Func001001 takes nothing returns boolean
return(IsPlayerEnemy(GetOwningPlayer(GetEnumUnit()),Player(0))==true)
endfunction
function Trig_aisentdefend_Func002A takes nothing returns nothing
if(Trig_aisentdefend_Func002Func001001()) then
set udg_arandomnumber=(udg_arandomnumber+1)
else
call DoNothing()
endif
endfunction
function Trig_aisentdefend_Func003Func002Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(IsUnitAlly(GetEnumUnit(),Player(0))==true)) then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetEnumUnit()))==MAP_CONTROL_COMPUTER)) then
return false
endif
return true
endfunction
function Trig_aisentdefend_Func003Func002A takes nothing returns nothing
if(Trig_aisentdefend_Func003Func002Func001C()) then
call IssuePointOrderLocBJ(GetEnumUnit(),"attack",GetRectCenter(udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]))
else
call DoNothing()
endif
endfunction
function Trig_aisentdefend_Func003C takes nothing returns boolean
if(not(udg_arandomnumber==0)) then
return false
endif
return true
endfunction
function Trig_aisentdefend_Actions takes nothing returns nothing
set udg_arandomnumber=0
call ForGroupBJ(GetUnitsInRectAll(gg_rct_defendsent),function Trig_aisentdefend_Func002A)
if(Trig_aisentdefend_Func003C()) then
set udg_defendingsent=false
call ForGroupBJ(GetUnitsInRectAll(GetPlayableMapRect()),function Trig_aisentdefend_Func003Func002A)
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function InitTrig_aisentdefend takes nothing returns nothing
set gg_trg_aisentdefend=CreateTrigger()
call DisableTrigger(gg_trg_aisentdefend)
call TriggerRegisterTimerEventPeriodic(gg_trg_aisentdefend,21.00)
call TriggerAddAction(gg_trg_aisentdefend,function Trig_aisentdefend_Actions)
endfunction
function Trig_aidefendactivesc_Func003Func001Func004C takes nothing returns boolean
if(not(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit()))<(250+(GetHeroLevel(GetEnumUnit())*15)))) then
return false
endif
return true
endfunction
function Trig_aidefendactivesc_Func003Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(IsUnitAlly(GetEnumUnit(),Player(7))==true)) then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetEnumUnit()))==MAP_CONTROL_COMPUTER)) then
return false
endif
return true
endfunction
function Trig_aidefendactivesc_Func003A takes nothing returns nothing
if(Trig_aidefendactivesc_Func003Func001C()) then
set udg_lastsaferegion[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]=gg_rct_Hero_Creation_Evil
set udg_defendingattackregion[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]=gg_rct_udspawne
if(Trig_aidefendactivesc_Func003Func001Func004C()) then
call IssuePointOrderLocBJ(GetEnumUnit(),"move",GetRectCenter(udg_home[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]))
else
call IssuePointOrderLocBJ(GetEnumUnit(),"move",GetRectCenter(gg_rct_udspawne))
endif
else
call DoNothing()
endif
endfunction
function Trig_aidefendactivesc_Conditions takes nothing returns boolean
if(not(GetPlayerController(Player(7))==MAP_CONTROL_COMPUTER)) then
return false
endif
if(not(IsPlayerEnemy(GetOwningPlayer(GetTriggerUnit()),Player(6))==true)) then
return false
endif
if(not(udg_defendingundead==false)) then
return false
endif
return true
endfunction
function Trig_aidefendactivesc_Actions takes nothing returns nothing
set udg_defendingundead=true
call ForGroupBJ(GetUnitsInRectAll(GetPlayableMapRect()),function Trig_aidefendactivesc_Func003A)
call EnableTrigger(gg_trg_aiscourgedefend)
endfunction
function InitTrig_aidefendactivesc takes nothing returns nothing
set gg_trg_aidefendactivesc=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_aidefendactivesc,gg_rct_defendsc)
call TriggerAddCondition(gg_trg_aidefendactivesc,Condition(function Trig_aidefendactivesc_Conditions))
call TriggerAddAction(gg_trg_aidefendactivesc,function Trig_aidefendactivesc_Actions)
endfunction
function Trig_aidefendactivesent_Func002Func001Func004C takes nothing returns boolean
if(not(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit()))<(250+(GetHeroLevel(GetEnumUnit())*15)))) then
return false
endif
return true
endfunction
function Trig_aidefendactivesent_Func002Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(IsUnitAlly(GetEnumUnit(),Player(0))==true)) then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetEnumUnit()))==MAP_CONTROL_COMPUTER)) then
return false
endif
return true
endfunction
function Trig_aidefendactivesent_Func002A takes nothing returns nothing
if(Trig_aidefendactivesent_Func002Func001C()) then
set udg_lastsaferegion[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]=gg_rct_Hero_Creation_NE
set udg_defendingattackregion[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]=gg_rct_sentspawnb
if(Trig_aidefendactivesent_Func002Func001Func004C()) then
call IssuePointOrderLocBJ(GetEnumUnit(),"move",GetRectCenter(udg_home[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]))
else
call IssuePointOrderLocBJ(GetEnumUnit(),"move",GetRectCenter(gg_rct_sentspawnb))
endif
else
call DoNothing()
endif
endfunction
function Trig_aidefendactivesent_Conditions takes nothing returns boolean
if(not(GetPlayerController(Player(1))==MAP_CONTROL_COMPUTER)) then
return false
endif
if(not(IsPlayerEnemy(GetOwningPlayer(GetTriggerUnit()),Player(0))==true)) then
return false
endif
if(not(udg_defendingsent==false)) then
return false
endif
return true
endfunction
function Trig_aidefendactivesent_Actions takes nothing returns nothing
set udg_defendingsent=true
call ForGroupBJ(GetUnitsInRectAll(GetPlayableMapRect()),function Trig_aidefendactivesent_Func002A)
call EnableTrigger(gg_trg_aisentdefend)
endfunction
function InitTrig_aidefendactivesent takes nothing returns nothing
set gg_trg_aidefendactivesent=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_aidefendactivesent,gg_rct_defendsent)
call TriggerAddCondition(gg_trg_aidefendactivesent,Condition(function Trig_aidefendactivesent_Conditions))
call TriggerAddAction(gg_trg_aidefendactivesent,function Trig_aidefendactivesent_Actions)
endfunction
function Trig_aimoving_Func001Func001Func002Func001C takes nothing returns boolean
if(not(udg_defendingsent==false)) then
return false
endif
if(not(udg_defendingundead==false)) then
return false
endif
return true
endfunction
function Trig_aimoving_Func001Func001Func002Func002Func001C takes nothing returns boolean
if(not(udg_defendingundead==true)) then
return false
endif
if(not(IsPlayerAlly(GetOwningPlayer(GetEnumUnit()),Player(6))==true)) then
return false
endif
return true
endfunction
function Trig_aimoving_Func001Func001Func002Func002C takes nothing returns boolean
if(not(udg_defendingsent==true)) then
return false
endif
if(not(IsPlayerAlly(GetOwningPlayer(GetEnumUnit()),Player(0))==true)) then
return false
endif
return true
endfunction
function Trig_aimoving_Func001Func001Func002C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit()))<(250+(GetHeroLevel(GetEnumUnit())*15)))) then
return false
endif
return true
endfunction
function Trig_aimoving_Func001Func001C takes nothing returns boolean
if(not(GetPlayerController(GetOwningPlayer(GetEnumUnit()))==MAP_CONTROL_COMPUTER)) then
return false
endif
if(not(GetOwningPlayer(GetEnumUnit())!=Player(0))) then
return false
endif
if(not(GetOwningPlayer(GetEnumUnit())!=Player(6))) then
return false
endif
if(not(udg_moving[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]==false)) then
return false
endif
if(not(udg_ishealing[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]==false)) then
return false
endif
return true
endfunction
function Trig_aimoving_Func001A takes nothing returns nothing
if(Trig_aimoving_Func001Func001C()) then
if(Trig_aimoving_Func001Func001Func002C()) then
call IssuePointOrderLocBJ(GetEnumUnit(),"move",GetRectCenter(udg_lastsaferegion[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]))
else
if(Trig_aimoving_Func001Func001Func002Func001C()) then
call IssuePointOrderLocBJ(GetEnumUnit(),"attack",GetRectCenter(udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]))
else
call DoNothing()
endif
if(Trig_aimoving_Func001Func001Func002Func002C()) then
call IssuePointOrderLocBJ(GetEnumUnit(),"attack",GetRectCenter(udg_defendingattackregion[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]))
else
if(Trig_aimoving_Func001Func001Func002Func002Func001C()) then
call IssuePointOrderLocBJ(GetEnumUnit(),"attack",GetRectCenter(udg_defendingattackregion[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]))
else
call IssuePointOrderLocBJ(GetEnumUnit(),"attack",GetRectCenter(udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]))
endif
endif
endif
else
call DoNothing()
endif
endfunction
function Trig_aimoving_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRectAll(GetPlayableMapRect()),function Trig_aimoving_Func001A)
endfunction
function InitTrig_aimoving takes nothing returns nothing
set gg_trg_aimoving=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_aimoving,Player(1),"-getmoving",true)
call TriggerRegisterPlayerChatEvent(gg_trg_aimoving,Player(2),"-getmoving",true)
call TriggerRegisterPlayerChatEvent(gg_trg_aimoving,Player(3),"-getmoving",true)
call TriggerRegisterPlayerChatEvent(gg_trg_aimoving,Player(4),"-getmoving",true)
call TriggerRegisterPlayerChatEvent(gg_trg_aimoving,Player(5),"-getmoving",true)
call TriggerRegisterPlayerChatEvent(gg_trg_aimoving,Player(7),"-getmoving",true)
call TriggerRegisterPlayerChatEvent(gg_trg_aimoving,Player(8),"-getmoving",true)
call TriggerRegisterPlayerChatEvent(gg_trg_aimoving,Player(9),"-getmoving",true)
call TriggerRegisterPlayerChatEvent(gg_trg_aimoving,Player(10),"-getmoving",true)
call TriggerRegisterPlayerChatEvent(gg_trg_aimoving,Player(11),"-getmoving",true)
call TriggerAddAction(gg_trg_aimoving,function Trig_aimoving_Actions)
endfunction
function Trig_playerleft_Func004C takes nothing returns boolean
if(not(udg_booted[GetConvertedPlayerId(GetTriggerPlayer())]==true)) then
return false
endif
return true
endfunction
function Trig_playerleft_Func006Func001C takes nothing returns boolean
if(not(IsPlayerAlly(GetTriggerPlayer(),Player(0))==true)) then
return false
endif
return true
endfunction
function Trig_playerleft_Func006A takes nothing returns nothing
if(Trig_playerleft_Func006Func001C()) then
call IssuePointOrderLocBJ(GetEnumUnit(),"move",GetRectCenter(gg_rct_Hero_Creation_NE))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RemoveItem(UnitItemInSlotBJ(GetEnumUnit(),GetForLoopIndexA()))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call AdjustPlayerStateBJ((700*GetHeroLevel(GetEnumUnit())),GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)
else
call IssuePointOrderLocBJ(GetEnumUnit(),"move",GetRectCenter(gg_rct_Hero_Creation_Evil))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RemoveItem(UnitItemInSlotBJ(GetEnumUnit(),GetForLoopIndexA()))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call AdjustPlayerStateBJ((700*GetHeroLevel(GetEnumUnit())),GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endif
endfunction
function Trig_playerleft_Actions takes nothing returns nothing
call DisplayTimedTextToForce(GetPlayersAll(),10.00,(GetPlayerName(GetTriggerPlayer())+" Has Left The Game."))
call SetPlayerController(GetTriggerPlayer(),MAP_CONTROL_COMPUTER)
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+"'s character will be given to a computer to control."))
if(Trig_playerleft_Func004C()) then
call SetUnitOwner(udg_undercoverbrother[GetConvertedPlayerId(GetTriggerPlayer())],GetTriggerPlayer(),true)
call SetUnitPositionLoc(udg_undercoverbrother[GetConvertedPlayerId(GetTriggerPlayer())],GetDestructableLoc(udg_cage[GetConvertedPlayerId(GetTriggerPlayer())]))
call RemoveDestructable(udg_cage[GetConvertedPlayerId(GetTriggerPlayer())])
else
call DoNothing()
endif
call SetPlayerHandicapXPBJ(GetTriggerPlayer(),170.00)
call ForGroupBJ(GetUnitsOfPlayerAll(GetTriggerPlayer()),function Trig_playerleft_Func006A)
endfunction
function InitTrig_playerleft takes nothing returns nothing
set gg_trg_playerleft=CreateTrigger()
call TriggerRegisterPlayerEventLeave(gg_trg_playerleft,Player(1))
call TriggerRegisterPlayerEventLeave(gg_trg_playerleft,Player(2))
call TriggerRegisterPlayerEventLeave(gg_trg_playerleft,Player(3))
call TriggerRegisterPlayerEventLeave(gg_trg_playerleft,Player(4))
call TriggerRegisterPlayerEventLeave(gg_trg_playerleft,Player(5))
call TriggerRegisterPlayerEventLeave(gg_trg_playerleft,Player(7))
call TriggerRegisterPlayerEventLeave(gg_trg_playerleft,Player(8))
call TriggerRegisterPlayerEventLeave(gg_trg_playerleft,Player(9))
call TriggerRegisterPlayerEventLeave(gg_trg_playerleft,Player(10))
call TriggerRegisterPlayerEventLeave(gg_trg_playerleft,Player(11))
call TriggerAddAction(gg_trg_playerleft,function Trig_playerleft_Actions)
endfunction
function Trig_avoidsent_Func010Func007C takes nothing returns boolean
if(not(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))<(250+(GetHeroLevel(GetTriggerUnit())*15)))) then
return false
endif
return true
endfunction
function Trig_avoidsent_Func010C takes nothing returns boolean
if(not(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))<500)) then
return false
endif
return true
endfunction
function Trig_avoidsent_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_COMPUTER)) then
return false
endif
if(not(IsPlayerAlly(GetOwningPlayer(GetTriggerUnit()),Player(0))==true)) then
return false
endif
return true
endfunction
function Trig_avoidsent_Actions takes nothing returns nothing
if(Trig_avoidsent_Func010C()) then
set udg_attacking[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=false
call IssuePointOrderLocBJ(GetTriggerUnit(),"move",GetRectCenter(udg_lastsaferegion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
set udg_moving[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=true
call PolledWait(5.00)
set udg_moving[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=false
if(Trig_avoidsent_Func010Func007C()) then
call DoNothing()
else
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetRectCenter(udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
endif
else
call DoNothing()
endif
endfunction
function InitTrig_avoidsent takes nothing returns nothing
set gg_trg_avoidsent=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(gg_trg_avoidsent,900.00,gg_unit_uzig_0079)
call TriggerRegisterUnitInRangeSimple(gg_trg_avoidsent,900.00,gg_unit_u00D_0084)
call TriggerRegisterUnitInRangeSimple(gg_trg_avoidsent,900.00,gg_unit_uzg1_0086)
call TriggerRegisterUnitInRangeSimple(gg_trg_avoidsent,900.00,gg_unit_usep_0088)
call TriggerRegisterUnitInRangeSimple(gg_trg_avoidsent,900.00,gg_unit_usep_0089)
call TriggerRegisterUnitInRangeSimple(gg_trg_avoidsent,900.00,gg_unit_usep_0090)
call TriggerRegisterUnitInRangeSimple(gg_trg_avoidsent,900.00,gg_unit_utod_0091)
call TriggerRegisterUnitInRangeSimple(gg_trg_avoidsent,900.00,gg_unit_utod_0092)
call TriggerRegisterUnitInRangeSimple(gg_trg_avoidsent,900.00,gg_unit_utod_0093)
call TriggerAddCondition(gg_trg_avoidsent,Condition(function Trig_avoidsent_Conditions))
call TriggerAddAction(gg_trg_avoidsent,function Trig_avoidsent_Actions)
endfunction
function Trig_avoidundead_Func010Func007C takes nothing returns boolean
if(not(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))<(250+(GetHeroLevel(GetTriggerUnit())*15)))) then
return false
endif
return true
endfunction
function Trig_avoidundead_Func010C takes nothing returns boolean
if(not(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))<500)) then
return false
endif
return true
endfunction
function Trig_avoidundead_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_COMPUTER)) then
return false
endif
if(not(IsPlayerAlly(GetOwningPlayer(GetTriggerUnit()),Player(6))==true)) then
return false
endif
return true
endfunction
function Trig_avoidundead_Actions takes nothing returns nothing
if(Trig_avoidundead_Func010C()) then
set udg_attacking[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=false
call IssuePointOrderLocBJ(GetTriggerUnit(),"move",GetRectCenter(udg_lastsaferegion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
set udg_moving[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=true
call PolledWait(5.00)
set udg_moving[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=false
if(Trig_avoidundead_Func010Func007C()) then
call DoNothing()
else
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetRectCenter(udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
endif
else
call DoNothing()
endif
endfunction
function InitTrig_avoidundead takes nothing returns nothing
set gg_trg_avoidundead=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(gg_trg_avoidundead,900.00,gg_unit_e011_0031)
call TriggerRegisterUnitInRangeSimple(gg_trg_avoidundead,900.00,gg_unit_etrp_0033)
call TriggerRegisterUnitInRangeSimple(gg_trg_avoidundead,900.00,gg_unit_hC95_0034)
call TriggerRegisterUnitInRangeSimple(gg_trg_avoidundead,900.00,gg_unit_emow_0044)
call TriggerRegisterUnitInRangeSimple(gg_trg_avoidundead,900.00,gg_unit_eaom_0046)
call TriggerRegisterUnitInRangeSimple(gg_trg_avoidundead,900.00,gg_unit_eaom_0047)
call TriggerRegisterUnitInRangeSimple(gg_trg_avoidundead,900.00,gg_unit_eaoe_0048)
call TriggerRegisterUnitInRangeSimple(gg_trg_avoidundead,900.00,gg_unit_eaoe_0049)
call TriggerRegisterUnitInRangeSimple(gg_trg_avoidundead,900.00,gg_unit_eaoe_0050)
call TriggerAddCondition(gg_trg_avoidundead,Condition(function Trig_avoidundead_Conditions))
call TriggerAddAction(gg_trg_avoidundead,function Trig_avoidundead_Actions)
endfunction
function Trig_abilityattack_Func001Func001Func001C takes nothing returns boolean
if(not(udg_defendingsent==false)) then
return false
endif
if(not(udg_defendingundead==false)) then
return false
endif
return true
endfunction
function Trig_abilityattack_Func001Func001Func002Func001C takes nothing returns boolean
if(not(udg_defendingundead==true)) then
return false
endif
if(not(IsPlayerAlly(GetOwningPlayer(GetEnumUnit()),Player(6))==true)) then
return false
endif
return true
endfunction
function Trig_abilityattack_Func001Func001Func002C takes nothing returns boolean
if(not(udg_defendingsent==true)) then
return false
endif
if(not(IsPlayerAlly(GetOwningPlayer(GetEnumUnit()),Player(0))==true)) then
return false
endif
return true
endfunction
function Trig_abilityattack_Func001Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit()))<(250+(GetHeroLevel(GetEnumUnit())*15)))) then
return false
endif
return true
endfunction
function Trig_abilityattack_Func001A takes nothing returns nothing
if(Trig_abilityattack_Func001Func001C()) then
call IssuePointOrderLocBJ(GetEnumUnit(),"move",GetRectCenter(udg_lastsaferegion[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]))
else
if(Trig_abilityattack_Func001Func001Func001C()) then
call IssuePointOrderLocBJ(GetEnumUnit(),"attack",GetRectCenter(udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]))
else
call DoNothing()
endif
if(Trig_abilityattack_Func001Func001Func002C()) then
call IssuePointOrderLocBJ(GetEnumUnit(),"attack",GetRectCenter(udg_defendingattackregion[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]))
else
if(Trig_abilityattack_Func001Func001Func002Func001C()) then
call IssuePointOrderLocBJ(GetEnumUnit(),"attack",GetRectCenter(udg_defendingattackregion[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]))
else
call IssuePointOrderLocBJ(GetEnumUnit(),"attack",GetRectCenter(udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]))
endif
endif
endif
endfunction
function Trig_abilityattack_Conditions takes nothing returns boolean
if(not(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_COMPUTER)) then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
return true
endfunction
function Trig_abilityattack_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsOfPlayerAll(GetOwningPlayer(GetTriggerUnit())),function Trig_abilityattack_Func001A)
endfunction
function InitTrig_abilityattack takes nothing returns nothing
set gg_trg_abilityattack=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_abilityattack,EVENT_PLAYER_UNIT_SUMMON)
call TriggerRegisterAnyUnitEventBJ(gg_trg_abilityattack,EVENT_PLAYER_HERO_REVIVE_FINISH)
call TriggerRegisterAnyUnitEventBJ(gg_trg_abilityattack,EVENT_PLAYER_UNIT_SPELL_FINISH)
call TriggerRegisterAnyUnitEventBJ(gg_trg_abilityattack,EVENT_PLAYER_UNIT_SPELL_ENDCAST)
call TriggerAddCondition(gg_trg_abilityattack,Condition(function Trig_abilityattack_Conditions))
call TriggerAddAction(gg_trg_abilityattack,function Trig_abilityattack_Actions)
endfunction
function Trig_aistart_Func002Func002Func001Func003C takes nothing returns boolean
if(not(IsPlayerAlly(GetEnumPlayer(),Player(0))==true)) then
return false
endif
return true
endfunction
function Trig_aistart_Func002Func002Func001Func004Func001C takes nothing returns boolean
if(not(GetConvertedPlayerId(GetEnumPlayer())!=GetForLoopIndexA())) then
return false
endif
if(not(udg_playerheronumber[GetConvertedPlayerId(GetEnumPlayer())]==udg_playerheronumber[GetForLoopIndexA()])) then
return false
endif
return true
endfunction
function Trig_aistart_Func002Func002Func001C takes nothing returns boolean
if(not(GetEnumPlayer()!=Player(0))) then
return false
endif
if(not(GetEnumPlayer()!=Player(6))) then
return false
endif
if(not(GetPlayerController(GetEnumPlayer())==MAP_CONTROL_COMPUTER)) then
return false
endif
return true
endfunction
function Trig_aistart_Func002Func002A takes nothing returns nothing
if(Trig_aistart_Func002Func002Func001C()) then
if(Trig_aistart_Func002Func002Func001Func003C()) then
set udg_playerheronumber[GetConvertedPlayerId(GetEnumPlayer())]=GetRandomInt(1,60)
set udg_start=gg_rct_herospawnsent
else
set udg_playerheronumber[GetConvertedPlayerId(GetEnumPlayer())]=GetRandomInt(1,60)
set udg_start=gg_rct_herospawnud
endif
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_aistart_Func002Func002Func001Func004Func001C()) then
set udg_playerheronumber[GetConvertedPlayerId(GetEnumPlayer())]=GetRandomInt(1,60)
set bj_forLoopAIndex=0
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CreateNUnitsAtLoc(1,udg_RandHero[udg_playerheronumber[GetConvertedPlayerId(GetEnumPlayer())]],GetEnumPlayer(),GetRectCenter(udg_start),bj_UNIT_FACING)
else
call DoNothing()
endif
endfunction
function Trig_aistart_Func002C takes nothing returns boolean
if(not(udg_AROn==true)) then
return false
endif
return true
endfunction
function Trig_aistart_Func003Func002Func001Func003C takes nothing returns boolean
if(not(IsPlayerAlly(GetEnumPlayer(),Player(0))==true)) then
return false
endif
return true
endfunction
function Trig_aistart_Func003Func002Func001Func004Func001C takes nothing returns boolean
if(not(GetConvertedPlayerId(GetEnumPlayer())!=GetForLoopIndexA())) then
return false
endif
if(not(udg_playerheronumber[GetConvertedPlayerId(GetEnumPlayer())]==udg_playerheronumber[GetForLoopIndexA()])) then
return false
endif
return true
endfunction
function Trig_aistart_Func003Func002Func001C takes nothing returns boolean
if(not(GetEnumPlayer()!=Player(0))) then
return false
endif
if(not(GetEnumPlayer()!=Player(6))) then
return false
endif
if(not(GetPlayerController(GetEnumPlayer())==MAP_CONTROL_COMPUTER)) then
return false
endif
return true
endfunction
function Trig_aistart_Func003Func002A takes nothing returns nothing
if(Trig_aistart_Func003Func002Func001C()) then
if(Trig_aistart_Func003Func002Func001Func003C()) then
set udg_playerheronumber[GetConvertedPlayerId(GetEnumPlayer())]=GetRandomInt(31,60)
set udg_start=gg_rct_herospawnsent
else
set udg_playerheronumber[GetConvertedPlayerId(GetEnumPlayer())]=GetRandomInt(31,60)
set udg_start=gg_rct_herospawnud
endif
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_aistart_Func003Func002Func001Func004Func001C()) then
set udg_playerheronumber[GetConvertedPlayerId(GetEnumPlayer())]=GetRandomInt(31,60)
set bj_forLoopAIndex=0
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CreateNUnitsAtLoc(1,udg_heros[udg_playerheronumber[GetConvertedPlayerId(GetEnumPlayer())]],GetEnumPlayer(),GetRectCenter(udg_start),bj_UNIT_FACING)
else
call DoNothing()
endif
endfunction
function Trig_aistart_Func003C takes nothing returns boolean
if(not(udg_sentrandom==true)) then
return false
endif
return true
endfunction
function Trig_aistart_Func004Func002Func001Func003C takes nothing returns boolean
if(not(IsPlayerAlly(GetEnumPlayer(),Player(0))==true)) then
return false
endif
return true
endfunction
function Trig_aistart_Func004Func002Func001Func004Func001C takes nothing returns boolean
if(not(GetConvertedPlayerId(GetEnumPlayer())!=GetForLoopIndexA())) then
return false
endif
if(not(udg_playerheronumber[GetConvertedPlayerId(GetEnumPlayer())]==udg_playerheronumber[GetForLoopIndexA()])) then
return false
endif
return true
endfunction
function Trig_aistart_Func004Func002Func001C takes nothing returns boolean
if(not(GetEnumPlayer()!=Player(0))) then
return false
endif
if(not(GetEnumPlayer()!=Player(6))) then
return false
endif
if(not(GetPlayerController(GetEnumPlayer())==MAP_CONTROL_COMPUTER)) then
return false
endif
return true
endfunction
function Trig_aistart_Func004Func002A takes nothing returns nothing
if(Trig_aistart_Func004Func002Func001C()) then
if(Trig_aistart_Func004Func002Func001Func003C()) then
set udg_playerheronumber[GetConvertedPlayerId(GetEnumPlayer())]=GetRandomInt(1,60)
set udg_start=gg_rct_herospawnsent
else
set udg_playerheronumber[GetConvertedPlayerId(GetEnumPlayer())]=GetRandomInt(1,60)
set udg_start=gg_rct_herospawnud
endif
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_aistart_Func004Func002Func001Func004Func001C()) then
set udg_playerheronumber[GetConvertedPlayerId(GetEnumPlayer())]=GetRandomInt(1,60)
set bj_forLoopAIndex=0
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CreateNUnitsAtLoc(1,udg_RandHero[udg_playerheronumber[GetConvertedPlayerId(GetEnumPlayer())]],GetEnumPlayer(),GetRectCenter(udg_start),bj_UNIT_FACING)
else
call DoNothing()
endif
endfunction
function Trig_aistart_Func004C takes nothing returns boolean
if(not(udg_APOn==true)) then
return false
endif
return true
endfunction
function Trig_aistart_Func005Func002Func001Func003Func002001 takes nothing returns boolean
return(udg_playerheronumber[GetConvertedPlayerId(GetEnumPlayer())]>11)
endfunction
function Trig_aistart_Func005Func002Func001Func003Func004001 takes nothing returns boolean
return(udg_playerheronumber[GetConvertedPlayerId(GetEnumPlayer())]>11)
endfunction
function Trig_aistart_Func005Func002Func001Func003C takes nothing returns boolean
if(not(IsPlayerAlly(GetEnumPlayer(),Player(0))==true)) then
return false
endif
return true
endfunction
function Trig_aistart_Func005Func002Func001Func004Func001Func002001 takes nothing returns boolean
return(udg_playerheronumber[GetConvertedPlayerId(GetEnumPlayer())]>11)
endfunction
function Trig_aistart_Func005Func002Func001Func004Func001C takes nothing returns boolean
if(not(GetConvertedPlayerId(GetEnumPlayer())!=GetForLoopIndexA())) then
return false
endif
if(not(udg_playerheronumber[GetConvertedPlayerId(GetEnumPlayer())]==udg_playerheronumber[GetForLoopIndexA()])) then
return false
endif
return true
endfunction
function Trig_aistart_Func005Func002Func001C takes nothing returns boolean
if(not(GetEnumPlayer()!=Player(0))) then
return false
endif
if(not(GetEnumPlayer()!=Player(6))) then
return false
endif
if(not(GetPlayerController(GetEnumPlayer())==MAP_CONTROL_COMPUTER)) then
return false
endif
return true
endfunction
function Trig_aistart_Func005Func002A takes nothing returns nothing
if(Trig_aistart_Func005Func002Func001C()) then
if(Trig_aistart_Func005Func002Func001Func003C()) then
set udg_playerheronumber[GetConvertedPlayerId(GetEnumPlayer())]=GetRandomInt(1,30)
if(Trig_aistart_Func005Func002Func001Func003Func004001()) then
set udg_playerheronumber[GetConvertedPlayerId(GetEnumPlayer())]=GetRandomInt(31,60)
else
call DoNothing()
endif
set udg_start=gg_rct_herospawnsent
else
set udg_playerheronumber[GetConvertedPlayerId(GetEnumPlayer())]=GetRandomInt(1,30)
if(Trig_aistart_Func005Func002Func001Func003Func002001()) then
set udg_playerheronumber[GetConvertedPlayerId(GetEnumPlayer())]=GetRandomInt(31,60)
else
call DoNothing()
endif
set udg_start=gg_rct_herospawnud
endif
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_aistart_Func005Func002Func001Func004Func001C()) then
set udg_playerheronumber[GetConvertedPlayerId(GetEnumPlayer())]=GetRandomInt(1,30)
if(Trig_aistart_Func005Func002Func001Func004Func001Func002001()) then
set udg_playerheronumber[GetConvertedPlayerId(GetEnumPlayer())]=GetRandomInt(31,60)
else
call DoNothing()
endif
set bj_forLoopAIndex=0
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CreateNUnitsAtLoc(1,udg_RandHero[udg_playerheronumber[GetConvertedPlayerId(GetEnumPlayer())]],GetEnumPlayer(),GetRectCenter(udg_start),bj_UNIT_FACING)
else
call DoNothing()
endif
endfunction
function Trig_aistart_Func005C takes nothing returns boolean
if(not(udg_rangedrandom==true)) then
return false
endif
return true
endfunction
function Trig_aistart_Func006Func002Func001Func003C takes nothing returns boolean
if(not(IsPlayerAlly(GetEnumPlayer(),Player(0))==true)) then
return false
endif
return true
endfunction
function Trig_aistart_Func006Func002Func001Func004Func001C takes nothing returns boolean
if(not(GetConvertedPlayerId(GetEnumPlayer())!=GetForLoopIndexA())) then
return false
endif
if(not(udg_playerheronumber[GetConvertedPlayerId(GetEnumPlayer())]==udg_playerheronumber[GetForLoopIndexA()])) then
return false
endif
return true
endfunction
function Trig_aistart_Func006Func002Func001C takes nothing returns boolean
if(not(GetEnumPlayer()!=Player(0))) then
return false
endif
if(not(GetEnumPlayer()!=Player(6))) then
return false
endif
if(not(GetPlayerController(GetEnumPlayer())==MAP_CONTROL_COMPUTER)) then
return false
endif
return true
endfunction
function Trig_aistart_Func006Func002A takes nothing returns nothing
if(Trig_aistart_Func006Func002Func001C()) then
if(Trig_aistart_Func006Func002Func001Func003C()) then
set udg_playerheronumber[GetConvertedPlayerId(GetEnumPlayer())]=GetRandomInt(1,30)
set udg_start=gg_rct_herospawnsent
else
set udg_playerheronumber[GetConvertedPlayerId(GetEnumPlayer())]=GetRandomInt(1,30)
set udg_start=gg_rct_herospawnud
endif
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_aistart_Func006Func002Func001Func004Func001C()) then
set udg_playerheronumber[GetConvertedPlayerId(GetEnumPlayer())]=GetRandomInt(1,30)
set bj_forLoopAIndex=0
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CreateNUnitsAtLoc(1,udg_RandHero[udg_playerheronumber[GetConvertedPlayerId(GetEnumPlayer())]],GetEnumPlayer(),GetRectCenter(udg_start),bj_UNIT_FACING)
else
call DoNothing()
endif
endfunction
function Trig_aistart_Func006C takes nothing returns boolean
if(not(udg_scourgerandom==true)) then
return false
endif
return true
endfunction
function Trig_aistart_Func007Func004Func001Func003C takes nothing returns boolean
if(not(IsPlayerAlly(GetEnumPlayer(),Player(0))==true)) then
return false
endif
return true
endfunction
function Trig_aistart_Func007Func004Func001Func004Func001Func002C takes nothing returns boolean
if(not(IsPlayerAlly(GetEnumPlayer(),Player(0))==true)) then
return false
endif
return true
endfunction
function Trig_aistart_Func007Func004Func001Func004Func001C takes nothing returns boolean
if(not(GetConvertedPlayerId(GetEnumPlayer())!=GetForLoopIndexA())) then
return false
endif
if(not(udg_playerheronumber[GetConvertedPlayerId(GetEnumPlayer())]==udg_playerheronumber[GetForLoopIndexA()])) then
return false
endif
return true
endfunction
function Trig_aistart_Func007Func004Func001Func006001 takes nothing returns boolean
return(GetUnitTypeId(GetLastCreatedUnit())=='N00G')
endfunction
function Trig_aistart_Func007Func004Func001C takes nothing returns boolean
if(not(GetEnumPlayer()!=Player(0))) then
return false
endif
if(not(GetEnumPlayer()!=Player(6))) then
return false
endif
if(not(GetPlayerController(GetEnumPlayer())==MAP_CONTROL_COMPUTER)) then
return false
endif
return true
endfunction
function Trig_aistart_Func007Func004A takes nothing returns nothing
if(Trig_aistart_Func007Func004Func001C()) then
if(Trig_aistart_Func007Func004Func001Func003C()) then
set udg_playerheronumber[GetConvertedPlayerId(GetEnumPlayer())]=GetRandomInt(31,60)
set udg_start=gg_rct_herospawnsent
else
set udg_playerheronumber[GetConvertedPlayerId(GetEnumPlayer())]=GetRandomInt(1,30)
set udg_start=gg_rct_herospawnud
endif
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_aistart_Func007Func004Func001Func004Func001C()) then
if(Trig_aistart_Func007Func004Func001Func004Func001Func002C()) then
set udg_playerheronumber[GetConvertedPlayerId(GetEnumPlayer())]=GetRandomInt(31,60)
set bj_forLoopAIndex=0
else
set udg_playerheronumber[GetConvertedPlayerId(GetEnumPlayer())]=GetRandomInt(1,30)
set bj_forLoopAIndex=0
endif
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CreateNUnitsAtLoc(1,udg_RandHero[udg_playerheronumber[GetConvertedPlayerId(GetEnumPlayer())]],GetEnumPlayer(),GetRectCenter(udg_start),bj_UNIT_FACING)
if(Trig_aistart_Func007Func004Func001Func006001()) then
call UnitRemoveAbilityBJ('A00F',GetTriggerUnit())
else
call DoNothing()
endif
else
call DoNothing()
endif
endfunction
function Trig_aistart_Func007C takes nothing returns boolean
if(not(udg_APOn==false)) then
return false
endif
if(not(udg_rangedrandom==false)) then
return false
endif
if(not(udg_scourgerandom==false)) then
return false
endif
if(not(udg_sentrandom==false)) then
return false
endif
if(not(udg_AROn==false)) then
return false
endif
return true
endfunction
function Trig_aistart_Func008Func001Func001C takes nothing returns boolean
if(not(GetAIDifficulty(GetEnumPlayer())==AI_DIFFICULTY_NORMAL)) then
return false
endif
return true
endfunction
function Trig_aistart_Func008Func001Func002C takes nothing returns boolean
if(not(GetAIDifficulty(GetEnumPlayer())==AI_DIFFICULTY_INSANE)) then
return false
endif
return true
endfunction
function Trig_aistart_Func008Func001C takes nothing returns boolean
if(not(GetEnumPlayer()!=Player(0))) then
return false
endif
if(not(GetEnumPlayer()!=Player(6))) then
return false
endif
if(not(GetPlayerController(GetEnumPlayer())==MAP_CONTROL_COMPUTER)) then
return false
endif
return true
endfunction
function Trig_aistart_Func008A takes nothing returns nothing
if(Trig_aistart_Func008Func001C()) then
if(Trig_aistart_Func008Func001Func001C()) then
call SetPlayerHandicapXPBJ(GetEnumPlayer(),135.00)
else
call DoNothing()
endif
if(Trig_aistart_Func008Func001Func002C()) then
call SetPlayerHandicapXPBJ(GetEnumPlayer(),180.00)
else
call DoNothing()
endif
else
call DoNothing()
endif
endfunction
function Trig_aistart_Actions takes nothing returns nothing
set udg_playerheronumber[1]=39
if(Trig_aistart_Func002C()) then
call ForForce(GetPlayersAll(),function Trig_aistart_Func002Func002A)
else
call DoNothing()
endif
if(Trig_aistart_Func003C()) then
call ForForce(GetPlayersAll(),function Trig_aistart_Func003Func002A)
else
call DoNothing()
endif
if(Trig_aistart_Func004C()) then
call ForForce(GetPlayersAll(),function Trig_aistart_Func004Func002A)
else
call DoNothing()
endif
if(Trig_aistart_Func005C()) then
call ForForce(GetPlayersAll(),function Trig_aistart_Func005Func002A)
else
call DoNothing()
endif
if(Trig_aistart_Func006C()) then
call ForForce(GetPlayersAll(),function Trig_aistart_Func006Func002A)
else
call DoNothing()
endif
if(Trig_aistart_Func007C()) then
call ForForce(GetPlayersAll(),function Trig_aistart_Func007Func004A)
else
call DoNothing()
endif
call ForForce(GetPlayersAll(),function Trig_aistart_Func008A)
endfunction
function InitTrig_aistart takes nothing returns nothing
set gg_trg_aistart=CreateTrigger()
call TriggerRegisterTimerEventSingle(gg_trg_aistart,87.00)
call TriggerAddAction(gg_trg_aistart,function Trig_aistart_Actions)
endfunction
function Trig_flee_Func001Func002Func001Func003Func005C takes nothing returns boolean
if(not(udg_defendingsent==false)) then
return false
endif
if(not(udg_defendingundead==false)) then
return false
endif
return true
endfunction
function Trig_flee_Func001Func002Func001Func003Func006Func001C takes nothing returns boolean
if(not(udg_defendingundead==true)) then
return false
endif
if(not(IsPlayerAlly(GetOwningPlayer(GetTriggerUnit()),Player(6))==true)) then
return false
endif
return true
endfunction
function Trig_flee_Func001Func002Func001Func003Func006C takes nothing returns boolean
if(not(udg_defendingsent==true)) then
return false
endif
if(not(IsPlayerAlly(GetOwningPlayer(GetTriggerUnit()),Player(0))==true)) then
return false
endif
return true
endfunction
function Trig_flee_Func001Func002Func001Func003C takes nothing returns boolean
if(not(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))>=(250+(GetHeroLevel(GetTriggerUnit())*20)))) then
return false
endif
return true
endfunction
function Trig_flee_Func001Func002Func001C takes nothing returns boolean
if(not(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))>=(800+(GetHeroLevel(GetTriggerUnit())*20)))) then
return false
endif
return true
endfunction
function Trig_flee_Func001Func002Func002C takes nothing returns boolean
if(not(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))>=(200+(GetHeroLevel(GetTriggerUnit())*20)))) then
return false
endif
return true
endfunction
function Trig_flee_Func001Func002C takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_RANGED_ATTACKER)==true)) then
return false
endif
if(not(udg_attacking[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==false)) then
return false
endif
return true
endfunction
function Trig_flee_Func001Func003Func001C takes nothing returns boolean
if(not(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))>=(200+(GetHeroLevel(GetTriggerUnit())*20)))) then
return false
endif
return true
endfunction
function Trig_flee_Func001Func003Func002Func002Func001C takes nothing returns boolean
if(not(GetEnumUnit()!=GetTriggerUnit())) then
return false
endif
if(not(IsPlayerAlly(GetOwningPlayer(GetEnumUnit()),GetOwningPlayer(GetTriggerUnit()))==true)) then
return false
endif
return true
endfunction
function Trig_flee_Func001Func003Func002Func002A takes nothing returns nothing
if(Trig_flee_Func001Func003Func002Func002Func001C()) then
set udg_shouldmove[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=false
else
call DoNothing()
endif
endfunction
function Trig_flee_Func001Func003Func002Func003Func006C takes nothing returns boolean
if(not(udg_defendingsent==false)) then
return false
endif
if(not(udg_defendingundead==false)) then
return false
endif
return true
endfunction
function Trig_flee_Func001Func003Func002Func003Func007Func001C takes nothing returns boolean
if(not(udg_defendingundead==true)) then
return false
endif
if(not(IsPlayerAlly(GetOwningPlayer(GetTriggerUnit()),Player(6))==true)) then
return false
endif
return true
endfunction
function Trig_flee_Func001Func003Func002Func003Func007C takes nothing returns boolean
if(not(udg_defendingsent==true)) then
return false
endif
if(not(IsPlayerAlly(GetOwningPlayer(GetTriggerUnit()),Player(0))==true)) then
return false
endif
return true
endfunction
function Trig_flee_Func001Func003Func002Func003C takes nothing returns boolean
if(not(udg_shouldmove[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==true)) then
return false
endif
return true
endfunction
function Trig_flee_Func001Func003Func002C takes nothing returns boolean
if(not(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))>=(200+(GetHeroLevel(GetTriggerUnit())*20)))) then
return false
endif
return true
endfunction
function Trig_flee_Func001Func003C takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_MELEE_ATTACKER)==true)) then
return false
endif
if(not(udg_attacking[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==false)) then
return false
endif
return true
endfunction
function Trig_flee_Func001Func004001 takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='etrp')
endfunction
function Trig_flee_Func001Func004002 takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='uzg1')
endfunction
function Trig_flee_Func001Func009C takes nothing returns boolean
if(not(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))>=(200+(GetHeroLevel(GetTriggerUnit())*20)))) then
return false
endif
return true
endfunction
function Trig_flee_Func001C takes nothing returns boolean
if(not GetBooleanOr(Trig_flee_Func001Func004001(),Trig_flee_Func001Func004002())) then
return false
endif
return true
endfunction
function Trig_flee_Conditions takes nothing returns boolean
if(not(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_COMPUTER)) then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(udg_moving[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==false)) then
return false
endif
if(not(GetUnitTypeId(GetAttacker())!='unec')) then
return false
endif
if(not(GetUnitTypeId(GetAttacker())!='edry')) then
return false
endif
return true
endfunction
function Trig_flee_Actions takes nothing returns nothing
if(Trig_flee_Func001C()) then
set udg_attacking[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=false
call IssuePointOrderLocBJ(GetTriggerUnit(),"move",GetRectCenter(udg_lastsaferegion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
set udg_moving[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=true
call PolledWait(5.00)
set udg_moving[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=false
if(Trig_flee_Func001Func009C()) then
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetRectCenter(udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
else
call IssuePointOrderLocBJ(GetTriggerUnit(),"move",GetRectCenter(udg_lastsaferegion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
endif
else
if(Trig_flee_Func001Func002C()) then
if(Trig_flee_Func001Func002Func001C()) then
call DoNothing()
else
if(Trig_flee_Func001Func002Func001Func003C()) then
call IssuePointOrderLocBJ(GetTriggerUnit(),"move",GetRectCenter(udg_lastsaferegion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
set udg_moving[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=true
call PolledWait(5.00)
set udg_moving[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=false
if(Trig_flee_Func001Func002Func001Func003Func005C()) then
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetRectCenter(udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
else
call DoNothing()
endif
if(Trig_flee_Func001Func002Func001Func003Func006C()) then
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetRectCenter(udg_defendingattackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
else
if(Trig_flee_Func001Func002Func001Func003Func006Func001C()) then
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetRectCenter(udg_defendingattackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
else
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetRectCenter(udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
endif
endif
else
call IssuePointOrderLocBJ(GetTriggerUnit(),"move",GetRectCenter(udg_lastsaferegion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
endif
endif
else
if(Trig_flee_Func001Func002Func002C()) then
call DoNothing()
else
set udg_attacking[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=false
call IssuePointOrderLocBJ(GetTriggerUnit(),"move",GetRectCenter(udg_lastsaferegion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
endif
endif
if(Trig_flee_Func001Func003C()) then
if(Trig_flee_Func001Func003Func002C()) then
set udg_shouldmove[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=true
call ForGroupBJ(GetUnitsInRangeOfLocAll(200.00,GetUnitLoc(GetTriggerUnit())),function Trig_flee_Func001Func003Func002Func002A)
if(Trig_flee_Func001Func003Func002Func003C()) then
call IssuePointOrderLocBJ(GetTriggerUnit(),"move",GetRectCenter(udg_lastsaferegion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
set udg_moving[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=true
call PolledWait(5.00)
set udg_moving[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=false
if(Trig_flee_Func001Func003Func002Func003Func006C()) then
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetRectCenter(udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
else
call DoNothing()
endif
if(Trig_flee_Func001Func003Func002Func003Func007C()) then
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetRectCenter(udg_defendingattackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
else
if(Trig_flee_Func001Func003Func002Func003Func007Func001C()) then
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetRectCenter(udg_defendingattackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
else
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetRectCenter(udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
endif
endif
else
call DoNothing()
endif
else
call IssuePointOrderLocBJ(GetTriggerUnit(),"move",GetRectCenter(udg_lastsaferegion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
endif
else
if(Trig_flee_Func001Func003Func001C()) then
call DoNothing()
else
set udg_attacking[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=false
call IssuePointOrderLocBJ(GetTriggerUnit(),"move",GetRectCenter(udg_lastsaferegion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
endif
endif
endif
endfunction
function InitTrig_flee takes nothing returns nothing
set gg_trg_flee=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(gg_trg_flee,Player(1),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_flee,Player(2),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_flee,Player(3),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_flee,Player(4),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_flee,Player(5),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_flee,Player(7),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_flee,Player(8),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_flee,Player(9),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_flee,Player(10),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_flee,Player(11),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_flee,Condition(function Trig_flee_Conditions))
call TriggerAddAction(gg_trg_flee,function Trig_flee_Actions)
endfunction
function Trig_attack_Func001Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetEnumUnit()))==MAP_CONTROL_COMPUTER)) then
return false
endif
if(not(IsPlayerEnemy(GetOwningPlayer(GetEnumUnit()),GetOwningPlayer(GetTriggerUnit()))==true)) then
return false
endif
if(not(GetHeroLevel(GetEnumUnit())>=6)) then
return false
endif
if(not(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit()))>=600)) then
return false
endif
return true
endfunction
function Trig_attack_Func001A takes nothing returns nothing
if(Trig_attack_Func001Func001C()) then
call IssueTargetOrderBJ(GetEnumUnit(),"attack",GetTriggerUnit())
set udg_attacking[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]=true
else
call DoNothing()
endif
endfunction
function Trig_attack_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))<=(200+(GetHeroLevel(GetTriggerUnit())*20)))) then
return false
endif
return true
endfunction
function Trig_attack_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRangeOfLocAll(800.00,GetUnitLoc(GetTriggerUnit())),function Trig_attack_Func001A)
endfunction
function InitTrig_attack takes nothing returns nothing
set gg_trg_attack=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(gg_trg_attack,Player(1),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_attack,Player(2),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_attack,Player(3),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_attack,Player(4),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_attack,Player(5),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_attack,Player(7),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_attack,Player(8),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_attack,Player(9),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_attack,Player(10),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_attack,Player(11),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_attack,Condition(function Trig_attack_Conditions))
call TriggerAddAction(gg_trg_attack,function Trig_attack_Actions)
endfunction
function Trig_attackend_Func002Func001Func002Func001C takes nothing returns boolean
if(not(udg_defendingsent==false)) then
return false
endif
if(not(udg_defendingundead==false)) then
return false
endif
return true
endfunction
function Trig_attackend_Func002Func001Func002Func002Func001C takes nothing returns boolean
if(not(udg_defendingundead==true)) then
return false
endif
if(not(IsPlayerAlly(GetOwningPlayer(GetEnumUnit()),Player(6))==true)) then
return false
endif
return true
endfunction
function Trig_attackend_Func002Func001Func002Func002C takes nothing returns boolean
if(not(udg_defendingsent==true)) then
return false
endif
if(not(IsPlayerAlly(GetOwningPlayer(GetEnumUnit()),Player(0))==true)) then
return false
endif
return true
endfunction
function Trig_attackend_Func002Func001Func002C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit()))<(250+(GetHeroLevel(GetEnumUnit())*15)))) then
return false
endif
return true
endfunction
function Trig_attackend_Func002Func001C takes nothing returns boolean
if(not(udg_attacking[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]==true)) then
return false
endif
if(not(IsPlayerEnemy(GetOwningPlayer(GetEnumUnit()),GetOwningPlayer(GetTriggerUnit()))==true)) then
return false
endif
return true
endfunction
function Trig_attackend_Func002A takes nothing returns nothing
if(Trig_attackend_Func002Func001C()) then
set udg_attacking[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]=false
if(Trig_attackend_Func002Func001Func002C()) then
call IssuePointOrderLocBJ(GetEnumUnit(),"move",GetRectCenter(udg_lastsaferegion[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]))
else
if(Trig_attackend_Func002Func001Func002Func001C()) then
call IssuePointOrderLocBJ(GetEnumUnit(),"attack",GetRectCenter(udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]))
else
call DoNothing()
endif
if(Trig_attackend_Func002Func001Func002Func002C()) then
call IssuePointOrderLocBJ(GetEnumUnit(),"attack",GetRectCenter(udg_defendingattackregion[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]))
else
if(Trig_attackend_Func002Func001Func002Func002Func001C()) then
call IssuePointOrderLocBJ(GetEnumUnit(),"attack",GetRectCenter(udg_defendingattackregion[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]))
else
call IssuePointOrderLocBJ(GetEnumUnit(),"attack",GetRectCenter(udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]))
endif
endif
endif
else
call DoNothing()
endif
endfunction
function Trig_attackend_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
return true
endfunction
function Trig_attackend_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRectAll(GetPlayableMapRect()),function Trig_attackend_Func002A)
endfunction
function InitTrig_attackend takes nothing returns nothing
set gg_trg_attackend=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_attackend,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_attackend,Condition(function Trig_attackend_Conditions))
call TriggerAddAction(gg_trg_attackend,function Trig_attackend_Actions)
endfunction
function Trig_patrol_Func002C takes nothing returns boolean
if(not(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))<(250+(GetHeroLevel(GetEnumUnit())*15)))) then
return false
endif
return true
endfunction
function Trig_patrol_Conditions takes nothing returns boolean
if(not(udg_defendingundead==true)) then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_COMPUTER)) then
return false
endif
if(not(IsPlayerAlly(GetOwningPlayer(GetTriggerUnit()),Player(6))==true)) then
return false
endif
return true
endfunction
function Trig_patrol_Actions takes nothing returns nothing
set udg_defendingattackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=gg_rct_udspawnc
if(Trig_patrol_Func002C()) then
call IssuePointOrderLocBJ(GetTriggerUnit(),"move",GetRectCenter(udg_home[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
else
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetRectCenter(udg_defendingattackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
endif
endfunction
function InitTrig_patrol takes nothing returns nothing
set gg_trg_patrol=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_patrol,gg_rct_udspawne)
call TriggerAddCondition(gg_trg_patrol,Condition(function Trig_patrol_Conditions))
call TriggerAddAction(gg_trg_patrol,function Trig_patrol_Actions)
endfunction
function Trig_patrol1_Func002C takes nothing returns boolean
if(not(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))<(250+(GetHeroLevel(GetEnumUnit())*15)))) then
return false
endif
return true
endfunction
function Trig_patrol1_Conditions takes nothing returns boolean
if(not(udg_defendingundead==true)) then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_COMPUTER)) then
return false
endif
if(not(IsPlayerAlly(GetOwningPlayer(GetTriggerUnit()),Player(6))==true)) then
return false
endif
return true
endfunction
function Trig_patrol1_Actions takes nothing returns nothing
set udg_defendingattackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=gg_rct_AttackToScourge
if(Trig_patrol1_Func002C()) then
call IssuePointOrderLocBJ(GetTriggerUnit(),"move",GetRectCenter(udg_home[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
else
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetRectCenter(udg_defendingattackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
endif
endfunction
function InitTrig_patrol1 takes nothing returns nothing
set gg_trg_patrol1=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_patrol1,gg_rct_udspawna)
call TriggerAddCondition(gg_trg_patrol1,Condition(function Trig_patrol1_Conditions))
call TriggerAddAction(gg_trg_patrol1,function Trig_patrol1_Actions)
endfunction
function Trig_patrol2_Func002C takes nothing returns boolean
if(not(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))<(250+(GetHeroLevel(GetEnumUnit())*15)))) then
return false
endif
return true
endfunction
function Trig_patrol2_Conditions takes nothing returns boolean
if(not(udg_defendingundead==true)) then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_COMPUTER)) then
return false
endif
if(not(IsPlayerAlly(GetOwningPlayer(GetTriggerUnit()),Player(6))==true)) then
return false
endif
return true
endfunction
function Trig_patrol2_Actions takes nothing returns nothing
set udg_defendingattackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=gg_rct_udspawne
if(Trig_patrol2_Func002C()) then
call IssuePointOrderLocBJ(GetTriggerUnit(),"move",GetRectCenter(udg_home[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
else
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetRectCenter(udg_defendingattackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
endif
endfunction
function InitTrig_patrol2 takes nothing returns nothing
set gg_trg_patrol2=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_patrol2,gg_rct_AttackToScourge)
call TriggerAddCondition(gg_trg_patrol2,Condition(function Trig_patrol2_Conditions))
call TriggerAddAction(gg_trg_patrol2,function Trig_patrol2_Actions)
endfunction
function Trig_patrol3_Func002C takes nothing returns boolean
if(not(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))<(250+(GetHeroLevel(GetEnumUnit())*15)))) then
return false
endif
return true
endfunction
function Trig_patrol3_Conditions takes nothing returns boolean
if(not(udg_defendingundead==true)) then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_COMPUTER)) then
return false
endif
if(not(IsPlayerAlly(GetOwningPlayer(GetTriggerUnit()),Player(6))==true)) then
return false
endif
return true
endfunction
function Trig_patrol3_Actions takes nothing returns nothing
set udg_defendingattackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=gg_rct_udspawna
if(Trig_patrol3_Func002C()) then
call IssuePointOrderLocBJ(GetTriggerUnit(),"move",GetRectCenter(udg_home[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
else
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetRectCenter(udg_defendingattackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
endif
endfunction
function InitTrig_patrol3 takes nothing returns nothing
set gg_trg_patrol3=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_patrol3,gg_rct_udspawnc)
call TriggerAddCondition(gg_trg_patrol3,Condition(function Trig_patrol3_Conditions))
call TriggerAddAction(gg_trg_patrol3,function Trig_patrol3_Actions)
endfunction
function Trig_defendendundead_Func002Func001Func001C takes nothing returns boolean
if(not(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit()))<(250+(GetHeroLevel(GetEnumUnit())*15)))) then
return false
endif
return true
endfunction
function Trig_defendendundead_Func002Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(IsUnitAlly(GetEnumUnit(),Player(7))==true)) then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetEnumUnit()))==MAP_CONTROL_COMPUTER)) then
return false
endif
return true
endfunction
function Trig_defendendundead_Func002A takes nothing returns nothing
if(Trig_defendendundead_Func002Func001C()) then
if(Trig_defendendundead_Func002Func001Func001C()) then
call IssuePointOrderLocBJ(GetEnumUnit(),"move",GetRectCenter(udg_home[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]))
else
call IssuePointOrderLocBJ(GetEnumUnit(),"attack",GetRectCenter(udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]))
endif
else
call DoNothing()
endif
endfunction
function Trig_defendendundead_Actions takes nothing returns nothing
set udg_defendingundead=false
call ForGroupBJ(GetUnitsInRectAll(GetPlayableMapRect()),function Trig_defendendundead_Func002A)
endfunction
function InitTrig_defendendundead takes nothing returns nothing
set gg_trg_defendendundead=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_defendendundead,Player(7),"-attack",true)
call TriggerRegisterPlayerChatEvent(gg_trg_defendendundead,Player(8),"-attack",true)
call TriggerRegisterPlayerChatEvent(gg_trg_defendendundead,Player(9),"-attack",true)
call TriggerRegisterPlayerChatEvent(gg_trg_defendendundead,Player(10),"-attack",true)
call TriggerRegisterPlayerChatEvent(gg_trg_defendendundead,Player(11),"-attack",true)
call TriggerAddAction(gg_trg_defendendundead,function Trig_defendendundead_Actions)
endfunction
function Trig_defendundead_Func002Func001Func003C takes nothing returns boolean
if(not(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit()))<(250+(GetHeroLevel(GetEnumUnit())*15)))) then
return false
endif
return true
endfunction
function Trig_defendundead_Func002Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(IsUnitAlly(GetEnumUnit(),Player(7))==true)) then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetEnumUnit()))==MAP_CONTROL_COMPUTER)) then
return false
endif
return true
endfunction
function Trig_defendundead_Func002A takes nothing returns nothing
if(Trig_defendundead_Func002Func001C()) then
set udg_lastsaferegion[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]=gg_rct_Hero_Creation_Evil
set udg_defendingattackregion[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]=gg_rct_udspawne
if(Trig_defendundead_Func002Func001Func003C()) then
call IssuePointOrderLocBJ(GetEnumUnit(),"move",GetRectCenter(udg_home[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]))
else
call IssuePointOrderLocBJ(GetEnumUnit(),"move",GetRectCenter(gg_rct_udspawne))
endif
else
call DoNothing()
endif
endfunction
function Trig_defendundead_Actions takes nothing returns nothing
set udg_defendingundead=true
call ForGroupBJ(GetUnitsInRectAll(GetPlayableMapRect()),function Trig_defendundead_Func002A)
endfunction
function InitTrig_defendundead takes nothing returns nothing
set gg_trg_defendundead=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_defendundead,Player(7),"-defend",true)
call TriggerRegisterPlayerChatEvent(gg_trg_defendundead,Player(8),"-defend",true)
call TriggerRegisterPlayerChatEvent(gg_trg_defendundead,Player(9),"-defend",true)
call TriggerRegisterPlayerChatEvent(gg_trg_defendundead,Player(10),"-defend",true)
call TriggerRegisterPlayerChatEvent(gg_trg_defendundead,Player(11),"-defend",true)
call TriggerAddAction(gg_trg_defendundead,function Trig_defendundead_Actions)
endfunction
function Trig_aiundeadrevive_Func008001 takes nothing returns boolean
return(udg_random012==0)
endfunction
function Trig_aiundeadrevive_Func009001 takes nothing returns boolean
return(udg_random012==1)
endfunction
function Trig_aiundeadrevive_Func010001 takes nothing returns boolean
return(udg_random012==2)
endfunction
function Trig_aiundeadrevive_Func012001 takes nothing returns boolean
return(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))==R2I(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetTriggerUnit())))
endfunction
function Trig_aiundeadrevive_Func014C takes nothing returns boolean
if(not(udg_defendingundead==true)) then
return false
endif
return true
endfunction
function Trig_aiundeadrevive_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_COMPUTER)) then
return false
endif
if(not(IsPlayerAlly(GetOwningPlayer(GetTriggerUnit()),Player(6))==true)) then
return false
endif
return true
endfunction
function Trig_aiundeadrevive_Actions takes nothing returns nothing
set udg_home[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=gg_rct_Hero_Creation_Evil
set udg_lastsaferegion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=gg_rct_Hero_Creation_Evil
set udg_random012=GetRandomInt(0,2)
if(Trig_aiundeadrevive_Func008001()) then
set udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=gg_rct_Attack_Point_N
else
call DoNothing()
endif
if(Trig_aiundeadrevive_Func009001()) then
set udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=gg_rct_AttackToSentinel
else
call DoNothing()
endif
if(Trig_aiundeadrevive_Func010001()) then
set udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=gg_rct_Attack_Point_E
else
call DoNothing()
endif
set udg_ishealing[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=true
loop
exitwhen(Trig_aiundeadrevive_Func012001())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,5.00))
endloop
set udg_ishealing[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=false
if(Trig_aiundeadrevive_Func014C()) then
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetRectCenter(gg_rct_AttackToScourge))
else
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetRectCenter(udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
endif
endfunction
function InitTrig_aiundeadrevive takes nothing returns nothing
set gg_trg_aiundeadrevive=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_aiundeadrevive,gg_rct_Hero_Creation_Evil)
call TriggerAddCondition(gg_trg_aiundeadrevive,Condition(function Trig_aiundeadrevive_Conditions))
call TriggerAddAction(gg_trg_aiundeadrevive,function Trig_aiundeadrevive_Actions)
endfunction
function Trig_aiundeadredirectn_Func007C takes nothing returns boolean
if(not(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))<(250+(GetHeroLevel(GetTriggerUnit())*15)))) then
return false
endif
return true
endfunction
function Trig_aiundeadredirectn_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_COMPUTER)) then
return false
endif
if(not(IsPlayerAlly(GetOwningPlayer(GetTriggerUnit()),Player(6))==true)) then
return false
endif
if(not(udg_defendingundead==false)) then
return false
endif
return true
endfunction
function Trig_aiundeadredirectn_Actions takes nothing returns nothing
set udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=gg_rct_AttackToSentinel
set udg_lastsaferegion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=gg_rct_aiundeadsafew
if(Trig_aiundeadredirectn_Func007C()) then
call IssuePointOrderLocBJ(GetTriggerUnit(),"move",GetRectCenter(udg_home[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
else
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetRectCenter(udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
endif
endfunction
function InitTrig_aiundeadredirectn takes nothing returns nothing
set gg_trg_aiundeadredirectn=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_aiundeadredirectn,gg_rct_Attack_Point_N)
call TriggerAddCondition(gg_trg_aiundeadredirectn,Condition(function Trig_aiundeadredirectn_Conditions))
call TriggerAddAction(gg_trg_aiundeadredirectn,function Trig_aiundeadredirectn_Actions)
endfunction
function Trig_aiundeadresetsafen_Func003C takes nothing returns boolean
if(not(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))<(250+(GetHeroLevel(GetTriggerUnit())*15)))) then
return false
endif
return true
endfunction
function Trig_aiundeadresetsafen_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_COMPUTER)) then
return false
endif
if(not(IsPlayerAlly(GetOwningPlayer(GetTriggerUnit()),Player(6))==true)) then
return false
endif
if(not(udg_defendingundead==false)) then
return false
endif
return true
endfunction
function Trig_aiundeadresetsafen_Actions takes nothing returns nothing
set udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=gg_rct_Attack_Point_N
set udg_lastsaferegion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=gg_rct_Hero_Creation_Evil
if(Trig_aiundeadresetsafen_Func003C()) then
call IssuePointOrderLocBJ(GetTriggerUnit(),"move",GetRectCenter(udg_home[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
else
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetRectCenter(udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
endif
endfunction
function InitTrig_aiundeadresetsafen takes nothing returns nothing
set gg_trg_aiundeadresetsafen=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_aiundeadresetsafen,gg_rct_aiundeadsafew)
call TriggerAddCondition(gg_trg_aiundeadresetsafen,Condition(function Trig_aiundeadresetsafen_Conditions))
call TriggerAddAction(gg_trg_aiundeadresetsafen,function Trig_aiundeadresetsafen_Actions)
endfunction
function Trig_aiundeadredirecte_Func003C takes nothing returns boolean
if(not(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))<(250+(GetHeroLevel(GetTriggerUnit())*15)))) then
return false
endif
return true
endfunction
function Trig_aiundeadredirecte_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_COMPUTER)) then
return false
endif
if(not(IsPlayerAlly(GetOwningPlayer(GetTriggerUnit()),Player(6))==true)) then
return false
endif
if(not(udg_defendingundead==false)) then
return false
endif
return true
endfunction
function Trig_aiundeadredirecte_Actions takes nothing returns nothing
set udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=gg_rct_AttackToSentinel
set udg_lastsaferegion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=gg_rct_aiundeadsafewe
if(Trig_aiundeadredirecte_Func003C()) then
call IssuePointOrderLocBJ(GetTriggerUnit(),"move",GetRectCenter(udg_home[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
else
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetRectCenter(udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
endif
endfunction
function InitTrig_aiundeadredirecte takes nothing returns nothing
set gg_trg_aiundeadredirecte=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_aiundeadredirecte,gg_rct_Attack_Point_E)
call TriggerAddCondition(gg_trg_aiundeadredirecte,Condition(function Trig_aiundeadredirecte_Conditions))
call TriggerAddAction(gg_trg_aiundeadredirecte,function Trig_aiundeadredirecte_Actions)
endfunction
function Trig_resetsafee_Func003C takes nothing returns boolean
if(not(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))<(250+(GetHeroLevel(GetTriggerUnit())*15)))) then
return false
endif
return true
endfunction
function Trig_resetsafee_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_COMPUTER)) then
return false
endif
if(not(IsPlayerAlly(GetOwningPlayer(GetTriggerUnit()),Player(6))==true)) then
return false
endif
if(not(udg_defendingundead==false)) then
return false
endif
return true
endfunction
function Trig_resetsafee_Actions takes nothing returns nothing
set udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=gg_rct_Attack_Point_E
set udg_lastsaferegion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=gg_rct_Hero_Creation_Evil
if(Trig_resetsafee_Func003C()) then
call IssuePointOrderLocBJ(GetTriggerUnit(),"move",GetRectCenter(udg_home[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
else
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetRectCenter(udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
endif
endfunction
function InitTrig_resetsafee takes nothing returns nothing
set gg_trg_resetsafee=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_resetsafee,gg_rct_aiundeadsafewe)
call TriggerAddCondition(gg_trg_resetsafee,Condition(function Trig_resetsafee_Conditions))
call TriggerAddAction(gg_trg_resetsafee,function Trig_resetsafee_Actions)
endfunction
function Trig_patrolsent_Func002C takes nothing returns boolean
if(not(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))<(250+(GetHeroLevel(GetEnumUnit())*15)))) then
return false
endif
return true
endfunction
function Trig_patrolsent_Conditions takes nothing returns boolean
if(not(udg_defendingsent==true)) then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_COMPUTER)) then
return false
endif
if(not(IsPlayerAlly(GetOwningPlayer(GetTriggerUnit()),Player(0))==true)) then
return false
endif
return true
endfunction
function Trig_patrolsent_Actions takes nothing returns nothing
set udg_defendingattackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=gg_rct_sentspawnc
if(Trig_patrolsent_Func002C()) then
call IssuePointOrderLocBJ(GetTriggerUnit(),"move",GetRectCenter(udg_home[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
else
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetRectCenter(udg_defendingattackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
endif
endfunction
function InitTrig_patrolsent takes nothing returns nothing
set gg_trg_patrolsent=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_patrolsent,gg_rct_sentspawnb)
call TriggerAddCondition(gg_trg_patrolsent,Condition(function Trig_patrolsent_Conditions))
call TriggerAddAction(gg_trg_patrolsent,function Trig_patrolsent_Actions)
endfunction
function Trig_patrolsent1_Func002C takes nothing returns boolean
if(not(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))<(250+(GetHeroLevel(GetEnumUnit())*15)))) then
return false
endif
return true
endfunction
function Trig_patrolsent1_Conditions takes nothing returns boolean
if(not(udg_defendingsent==true)) then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_COMPUTER)) then
return false
endif
if(not(IsPlayerAlly(GetOwningPlayer(GetTriggerUnit()),Player(0))==true)) then
return false
endif
return true
endfunction
function Trig_patrolsent1_Actions takes nothing returns nothing
set udg_defendingattackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=gg_rct_AttackToSentinel
if(Trig_patrolsent1_Func002C()) then
call IssuePointOrderLocBJ(GetTriggerUnit(),"move",GetRectCenter(udg_home[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
else
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetRectCenter(udg_defendingattackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
endif
endfunction
function InitTrig_patrolsent1 takes nothing returns nothing
set gg_trg_patrolsent1=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_patrolsent1,gg_rct_sentspawne)
call TriggerAddCondition(gg_trg_patrolsent1,Condition(function Trig_patrolsent1_Conditions))
call TriggerAddAction(gg_trg_patrolsent1,function Trig_patrolsent1_Actions)
endfunction
function Trig_patrolsent2_Func002C takes nothing returns boolean
if(not(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))<(250+(GetHeroLevel(GetEnumUnit())*15)))) then
return false
endif
return true
endfunction
function Trig_patrolsent2_Conditions takes nothing returns boolean
if(not(udg_defendingsent==true)) then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_COMPUTER)) then
return false
endif
if(not(IsPlayerAlly(GetOwningPlayer(GetTriggerUnit()),Player(0))==true)) then
return false
endif
return true
endfunction
function Trig_patrolsent2_Actions takes nothing returns nothing
set udg_defendingattackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=gg_rct_sentspawnb
if(Trig_patrolsent2_Func002C()) then
call IssuePointOrderLocBJ(GetTriggerUnit(),"move",GetRectCenter(udg_home[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
else
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetRectCenter(udg_defendingattackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
endif
endfunction
function InitTrig_patrolsent2 takes nothing returns nothing
set gg_trg_patrolsent2=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_patrolsent2,gg_rct_AttackToSentinel)
call TriggerAddCondition(gg_trg_patrolsent2,Condition(function Trig_patrolsent2_Conditions))
call TriggerAddAction(gg_trg_patrolsent2,function Trig_patrolsent2_Actions)
endfunction
function Trig_patrolsent3_Func002C takes nothing returns boolean
if(not(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))<(250+(GetHeroLevel(GetEnumUnit())*15)))) then
return false
endif
return true
endfunction
function Trig_patrolsent3_Conditions takes nothing returns boolean
if(not(udg_defendingsent==true)) then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_COMPUTER)) then
return false
endif
if(not(IsPlayerAlly(GetOwningPlayer(GetTriggerUnit()),Player(0))==true)) then
return false
endif
return true
endfunction
function Trig_patrolsent3_Actions takes nothing returns nothing
set udg_defendingattackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=gg_rct_sentspawne
if(Trig_patrolsent3_Func002C()) then
call IssuePointOrderLocBJ(GetTriggerUnit(),"move",GetRectCenter(udg_home[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
else
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetRectCenter(udg_defendingattackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
endif
endfunction
function InitTrig_patrolsent3 takes nothing returns nothing
set gg_trg_patrolsent3=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_patrolsent3,gg_rct_sentspawnc)
call TriggerAddCondition(gg_trg_patrolsent3,Condition(function Trig_patrolsent3_Conditions))
call TriggerAddAction(gg_trg_patrolsent3,function Trig_patrolsent3_Actions)
endfunction
function Trig_defendendsent_Func002Func001Func001C takes nothing returns boolean
if(not(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit()))<(250+(GetHeroLevel(GetEnumUnit())*15)))) then
return false
endif
return true
endfunction
function Trig_defendendsent_Func002Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(IsUnitAlly(GetEnumUnit(),Player(0))==true)) then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetEnumUnit()))==MAP_CONTROL_COMPUTER)) then
return false
endif
return true
endfunction
function Trig_defendendsent_Func002A takes nothing returns nothing
if(Trig_defendendsent_Func002Func001C()) then
if(Trig_defendendsent_Func002Func001Func001C()) then
call IssuePointOrderLocBJ(GetEnumUnit(),"move",GetRectCenter(udg_home[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]))
else
call IssuePointOrderLocBJ(GetEnumUnit(),"attack",GetRectCenter(udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]))
endif
else
call DoNothing()
endif
endfunction
function Trig_defendendsent_Actions takes nothing returns nothing
set udg_defendingsent=false
call ForGroupBJ(GetUnitsInRectAll(GetPlayableMapRect()),function Trig_defendendsent_Func002A)
endfunction
function InitTrig_defendendsent takes nothing returns nothing
set gg_trg_defendendsent=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_defendendsent,Player(1),"-attack",true)
call TriggerRegisterPlayerChatEvent(gg_trg_defendendsent,Player(2),"-attack",true)
call TriggerRegisterPlayerChatEvent(gg_trg_defendendsent,Player(3),"-attack",true)
call TriggerRegisterPlayerChatEvent(gg_trg_defendendsent,Player(4),"-attack",true)
call TriggerRegisterPlayerChatEvent(gg_trg_defendendsent,Player(5),"-attack",true)
call TriggerAddAction(gg_trg_defendendsent,function Trig_defendendsent_Actions)
endfunction
function Trig_defendsent_Func002Func001Func003C takes nothing returns boolean
if(not(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit()))<(250+(GetHeroLevel(GetEnumUnit())*15)))) then
return false
endif
return true
endfunction
function Trig_defendsent_Func002Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(IsUnitAlly(GetEnumUnit(),Player(0))==true)) then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetEnumUnit()))==MAP_CONTROL_COMPUTER)) then
return false
endif
return true
endfunction
function Trig_defendsent_Func002A takes nothing returns nothing
if(Trig_defendsent_Func002Func001C()) then
set udg_lastsaferegion[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]=gg_rct_Hero_Creation_NE
set udg_defendingattackregion[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]=gg_rct_sentspawnb
if(Trig_defendsent_Func002Func001Func003C()) then
call IssuePointOrderLocBJ(GetEnumUnit(),"move",GetRectCenter(udg_home[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]))
else
call IssuePointOrderLocBJ(GetEnumUnit(),"move",GetRectCenter(gg_rct_sentspawnb))
endif
else
call DoNothing()
endif
endfunction
function Trig_defendsent_Actions takes nothing returns nothing
set udg_defendingsent=true
call ForGroupBJ(GetUnitsInRectAll(GetPlayableMapRect()),function Trig_defendsent_Func002A)
endfunction
function InitTrig_defendsent takes nothing returns nothing
set gg_trg_defendsent=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_defendsent,Player(1),"-defend",true)
call TriggerRegisterPlayerChatEvent(gg_trg_defendsent,Player(2),"-defend",true)
call TriggerRegisterPlayerChatEvent(gg_trg_defendsent,Player(3),"-defend",true)
call TriggerRegisterPlayerChatEvent(gg_trg_defendsent,Player(4),"-defend",true)
call TriggerRegisterPlayerChatEvent(gg_trg_defendsent,Player(5),"-defend",true)
call TriggerAddAction(gg_trg_defendsent,function Trig_defendsent_Actions)
endfunction
function Trig_aisentrevive_Func008001 takes nothing returns boolean
return(udg_random012==0)
endfunction
function Trig_aisentrevive_Func009001 takes nothing returns boolean
return(udg_random012==1)
endfunction
function Trig_aisentrevive_Func010001 takes nothing returns boolean
return(udg_random012==2)
endfunction
function Trig_aisentrevive_Func012001 takes nothing returns boolean
return(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))==R2I(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetTriggerUnit())))
endfunction
function Trig_aisentrevive_Func014C takes nothing returns boolean
if(not(udg_defendingsent==true)) then
return false
endif
return true
endfunction
function Trig_aisentrevive_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_COMPUTER)) then
return false
endif
if(not(IsPlayerAlly(GetOwningPlayer(GetTriggerUnit()),Player(0))==true)) then
return false
endif
return true
endfunction
function Trig_aisentrevive_Actions takes nothing returns nothing
set udg_lastsaferegion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=gg_rct_Hero_Creation_NE
set udg_home[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=gg_rct_Hero_Creation_NE
set udg_random012=GetRandomInt(0,2)
if(Trig_aisentrevive_Func008001()) then
set udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=gg_rct_Attack_Point_N
else
call DoNothing()
endif
if(Trig_aisentrevive_Func009001()) then
set udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=gg_rct_AttackToScourge
else
call DoNothing()
endif
if(Trig_aisentrevive_Func010001()) then
set udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=gg_rct_Attack_Point_E
else
call DoNothing()
endif
set udg_ishealing[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=true
loop
exitwhen(Trig_aisentrevive_Func012001())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,5.00))
endloop
set udg_ishealing[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=false
if(Trig_aisentrevive_Func014C()) then
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetRectCenter(gg_rct_AttackToSentinel))
else
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetRectCenter(udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
endif
endfunction
function InitTrig_aisentrevive takes nothing returns nothing
set gg_trg_aisentrevive=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_aisentrevive,gg_rct_Hero_Creation_NE)
call TriggerAddCondition(gg_trg_aisentrevive,Condition(function Trig_aisentrevive_Conditions))
call TriggerAddAction(gg_trg_aisentrevive,function Trig_aisentrevive_Actions)
endfunction
function Trig_aisentredirectn_Func007C takes nothing returns boolean
if(not(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))<(250+(GetHeroLevel(GetTriggerUnit())*15)))) then
return false
endif
return true
endfunction
function Trig_aisentredirectn_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_COMPUTER)) then
return false
endif
if(not(IsPlayerAlly(GetOwningPlayer(GetTriggerUnit()),Player(0))==true)) then
return false
endif
if(not(udg_defendingsent==false)) then
return false
endif
return true
endfunction
function Trig_aisentredirectn_Actions takes nothing returns nothing
set udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=gg_rct_AttackToScourge
set udg_lastsaferegion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=gg_rct_aisentsafew
if(Trig_aisentredirectn_Func007C()) then
call IssuePointOrderLocBJ(GetTriggerUnit(),"move",GetRectCenter(udg_home[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
else
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetRectCenter(udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
endif
endfunction
function InitTrig_aisentredirectn takes nothing returns nothing
set gg_trg_aisentredirectn=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_aisentredirectn,gg_rct_Attack_Point_N)
call TriggerAddCondition(gg_trg_aisentredirectn,Condition(function Trig_aisentredirectn_Conditions))
call TriggerAddAction(gg_trg_aisentredirectn,function Trig_aisentredirectn_Actions)
endfunction
function Trig_aisentresetsafen_Func003C takes nothing returns boolean
if(not(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))<(250+(GetHeroLevel(GetTriggerUnit())*15)))) then
return false
endif
return true
endfunction
function Trig_aisentresetsafen_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_COMPUTER)) then
return false
endif
if(not(IsPlayerAlly(GetOwningPlayer(GetTriggerUnit()),Player(0))==true)) then
return false
endif
if(not(udg_defendingsent==false)) then
return false
endif
return true
endfunction
function Trig_aisentresetsafen_Actions takes nothing returns nothing
set udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=gg_rct_Attack_Point_N
set udg_lastsaferegion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=gg_rct_Hero_Creation_NE
if(Trig_aisentresetsafen_Func003C()) then
call IssuePointOrderLocBJ(GetTriggerUnit(),"move",GetRectCenter(udg_home[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
else
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetRectCenter(udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
endif
endfunction
function InitTrig_aisentresetsafen takes nothing returns nothing
set gg_trg_aisentresetsafen=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_aisentresetsafen,gg_rct_aisentsafew)
call TriggerAddCondition(gg_trg_aisentresetsafen,Condition(function Trig_aisentresetsafen_Conditions))
call TriggerAddAction(gg_trg_aisentresetsafen,function Trig_aisentresetsafen_Actions)
endfunction
function Trig_aisentredirecte_Func003C takes nothing returns boolean
if(not(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))<(250+(GetHeroLevel(GetTriggerUnit())*15)))) then
return false
endif
return true
endfunction
function Trig_aisentredirecte_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_COMPUTER)) then
return false
endif
if(not(IsPlayerAlly(GetOwningPlayer(GetTriggerUnit()),Player(0))==true)) then
return false
endif
if(not(udg_defendingsent==false)) then
return false
endif
return true
endfunction
function Trig_aisentredirecte_Actions takes nothing returns nothing
set udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=gg_rct_AttackToScourge
set udg_lastsaferegion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=gg_rct_aisentsafewe
if(Trig_aisentredirecte_Func003C()) then
call IssuePointOrderLocBJ(GetTriggerUnit(),"move",GetRectCenter(udg_home[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
else
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetRectCenter(udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
endif
endfunction
function InitTrig_aisentredirecte takes nothing returns nothing
set gg_trg_aisentredirecte=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_aisentredirecte,gg_rct_Attack_Point_E)
call TriggerAddCondition(gg_trg_aisentredirecte,Condition(function Trig_aisentredirecte_Conditions))
call TriggerAddAction(gg_trg_aisentredirecte,function Trig_aisentredirecte_Actions)
endfunction
function Trig_aisentresetsafee_Func003C takes nothing returns boolean
if(not(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))<(250+(GetHeroLevel(GetTriggerUnit())*15)))) then
return false
endif
return true
endfunction
function Trig_aisentresetsafee_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true)) then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_COMPUTER)) then
return false
endif
if(not(IsPlayerAlly(GetOwningPlayer(GetTriggerUnit()),Player(0))==true)) then
return false
endif
if(not(udg_defendingsent==false)) then
return false
endif
return true
endfunction
function Trig_aisentresetsafee_Actions takes nothing returns nothing
set udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=gg_rct_Attack_Point_E
set udg_lastsaferegion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=gg_rct_Hero_Creation_NE
if(Trig_aisentresetsafee_Func003C()) then
call IssuePointOrderLocBJ(GetTriggerUnit(),"move",GetRectCenter(udg_home[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
else
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetRectCenter(udg_attackregion[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
endif
endfunction
function InitTrig_aisentresetsafee takes nothing returns nothing
set gg_trg_aisentresetsafee=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_aisentresetsafee,gg_rct_aisentsafewe)
call TriggerAddCondition(gg_trg_aisentresetsafee,Condition(function Trig_aisentresetsafee_Conditions))
call TriggerAddAction(gg_trg_aisentresetsafee,function Trig_aisentresetsafee_Actions)
endfunction
function Trig_attack_west_Func001001 takes nothing returns boolean
return(IsUnitAlly(GetTriggerUnit(),Player(0))==true)
endfunction
function Trig_attack_west_Conditions takes nothing returns boolean
if(not(IsUnitIdType(GetUnitTypeId(GetTriggerUnit()),UNIT_TYPE_HERO)!=true)) then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_COMPUTER)) then
return false
endif
return true
endfunction
function Trig_attack_west_Actions takes nothing returns nothing
if(Trig_attack_west_Func001001()) then
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetRectCenter(gg_rct_AttackToScourge))
else
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetRectCenter(gg_rct_AttackToSentinel))
endif
endfunction
function InitTrig_attack_west takes nothing returns nothing
set gg_trg_attack_west=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_attack_west,gg_rct_Attack_Point_N)
call TriggerAddCondition(gg_trg_attack_west,Condition(function Trig_attack_west_Conditions))
call TriggerAddAction(gg_trg_attack_west,function Trig_attack_west_Actions)
endfunction
function Trig_attack_center_Func003001 takes nothing returns boolean
return(IsUnitAlly(GetTriggerUnit(),Player(0))==true)
endfunction
function Trig_attack_center_Conditions takes nothing returns boolean
if(not(IsUnitIdType(GetUnitTypeId(GetTriggerUnit()),UNIT_TYPE_HERO)!=true)) then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_COMPUTER)) then
return false
endif
return true
endfunction
function Trig_attack_center_Actions takes nothing returns nothing
if(Trig_attack_center_Func003001()) then
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetRectCenter(gg_rct_AttackToScourge))
else
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetRectCenter(gg_rct_AttackToSentinel))
endif
endfunction
function InitTrig_attack_center takes nothing returns nothing
set gg_trg_attack_center=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_attack_center,gg_rct_AttackC)
call TriggerAddCondition(gg_trg_attack_center,Condition(function Trig_attack_center_Conditions))
call TriggerAddAction(gg_trg_attack_center,function Trig_attack_center_Actions)
endfunction
function Trig_attack_east_Func001001 takes nothing returns boolean
return(IsUnitAlly(GetTriggerUnit(),Player(0))==true)
endfunction
function Trig_attack_east_Conditions takes nothing returns boolean
if(not(IsUnitIdType(GetUnitTypeId(GetTriggerUnit()),UNIT_TYPE_HERO)!=true)) then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_COMPUTER)) then
return false
endif
return true
endfunction
function Trig_attack_east_Actions takes nothing returns nothing
if(Trig_attack_east_Func001001()) then
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetRectCenter(gg_rct_AttackToScourge))
else
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetRectCenter(gg_rct_AttackToSentinel))
endif
endfunction
function InitTrig_attack_east takes nothing returns nothing
set gg_trg_attack_east=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_attack_east,gg_rct_Attack_Point_E)
call TriggerAddCondition(gg_trg_attack_east,Condition(function Trig_attack_east_Conditions))
call TriggerAddAction(gg_trg_attack_east,function Trig_attack_east_Actions)
endfunction