Name | Type | is_array | initial_value |
AntiSpells | boolean | No | |
ArenaAvailable | integer | No | |
ArenaBoolean | boolean | No | |
ArenaEnd | boolean | No | |
ArenaHero | unit | Yes | |
ArenaPool1 | group | No | |
ArenaPool2 | group | No | |
ArenaPool3 | group | No | |
ArenaPool4 | group | No | |
ArenaTempPoint | location | No | |
ArenaTimer | timer | No | |
ArenaUnitBoolean | boolean | Yes | |
Available | unit | Yes | |
BagClose1 | itemcode | Yes | |
BagClose10 | itemcode | Yes | |
BagClose11 | itemcode | Yes | |
BagClose12 | itemcode | Yes | |
BagClose2 | itemcode | Yes | |
BagClose3 | itemcode | Yes | |
BagClose4 | itemcode | Yes | |
BagClose5 | itemcode | Yes | |
BagClose6 | itemcode | Yes | |
BagClose7 | itemcode | Yes | |
BagClose8 | itemcode | Yes | |
BagClose9 | itemcode | Yes | |
BagOpen1 | itemcode | Yes | |
BagOpen10 | itemcode | Yes | |
BagOpen11 | itemcode | Yes | |
BagOpen12 | itemcode | Yes | |
BagOpen2 | itemcode | Yes | |
BagOpen3 | itemcode | Yes | |
BagOpen4 | itemcode | Yes | |
BagOpen5 | itemcode | Yes | |
BagOpen6 | itemcode | Yes | |
BagOpen7 | itemcode | Yes | |
BagOpen8 | itemcode | Yes | |
BagOpen9 | itemcode | Yes | |
BeforeBattleLoc | location | Yes | |
BladeMasterShadow | unit | Yes | |
BMVisibility | fogmodifier | No | |
c | location | No | |
Caster | unit | No | |
CasterUnit | unit | No | |
CinematicHero | unit | Yes | |
ContendingPlayer | string | Yes | |
DamageGroup | group | Yes | |
DummyUnit | unit | Yes | |
DyingUnit | unit | No | |
ForceFour | force | No | |
ForceOne | force | No | |
ForceThree | force | No | |
ForceTwo | force | No | |
grouplocalgroup | group | No | |
grouplocalunit | unit | No | |
Hero | unit | Yes | |
HeroKills | integer | Yes | |
HeroRevivable | unit | No | |
HeroTrack | integer | No | |
Income | integer | Yes | |
L | location | No | |
LightingType | lightningtype | Yes | |
LivesF1 | integer | No | |
LivesF2 | integer | No | |
localinteger | integer | No | |
localunit | unit | No | |
LocPoint1 | location | No | |
LocPoint2 | location | No | |
LocPoint3 | location | No | |
LocReal | real | No | |
Mount | unit | Yes | |
Mountunit | unit | Yes | |
Multiboard | multiboard | No | |
Numberi | integer | No | |
p | location | Yes | |
PlayerCount | integer | No | |
PlayerStartups1 | force | No | |
PlayerStartups2 | force | No | |
PointVar | location | No | |
RandomHero | unitcode | Yes | |
RealVar | real | No | |
RealVar2 | real | No | |
RedGuy1 | unit | No | |
RedGuy2 | unit | No | |
RedGuyMain | unit | No | |
RedLight1 | lightning | No | |
RedLight2 | lightning | No | |
Sethero | unit | Yes | |
Shadow1Timer | timer | No | |
Shadow2Timer | timer | No | |
Shadow3Timer | timer | No | |
Shadow4Timer | timer | No | |
Shadow5Timer | timer | No | |
Smasher | unit | No | |
SpecialEffect | effect | No | |
SpecialEffect2 | effect | No | |
Speed | real | No | |
Target | location | No | |
TargetUnit | unit | No | |
TeamHere | boolean | Yes | true |
TechType | unit | Yes | |
TempGroup | group | No | |
TempPoint | location | No | |
TempPoint2 | location | No | |
TempUnitGroup | group | No | |
ThunderCaster | unit | No | |
ThunderEffect | lightning | Yes | |
ThunderEffect_Copy | lightning | Yes | |
ThunderPoint | location | No | |
TimerWindow | timerdialog | No | |
TypeNumba | integer | No | |
UnitKills | integer | Yes | |
UnitPoint | unit | No | |
UnitVar | unit | No | |
Victim | unit | No | |
VisibleArena | fogmodifier | Yes | |
WinningHero | unit | No |
function Trig_Web_of_Vengeance takes nothing returns nothing
local integer localinteger
local location temppoint
local effect drageffect
local unit dragunit
local unit lastunit
local unit localunit
local group affectedunits = CreateGroup()
local group casters = CreateGroup()
local group shackletrack = CreateGroup()
local group localgroup = CreateGroup()
local timer time = CreateTimer()
if (GetSpellAbilityId()=='A04N') then
set dragunit=GetSpellAbilityUnit()
call PauseUnit(dragunit, true)
set drageffect = AddSpecialEffectTarget("Abilities\\Spells\\Orc\\Voodoo\\VoodooAura.mdl", dragunit, "origin")
call TimerStart(time, 1., false, null)
loop
exitwhen TimerGetRemaining(time)==0.
call TriggerSleepAction(1)
endloop
set temppoint = GetUnitLoc(dragunit)
call GroupEnumUnitsInRangeOfLoc(localgroup, temppoint, 550, null)
loop
set localunit = FirstOfGroup(localgroup)
exitwhen localunit == null
if(IsPlayerEnemy(GetOwningPlayer(dragunit), GetOwningPlayer(localunit))) and (not(GetWidgetLife(localunit) <= 0)) then
call GroupAddUnit(shackletrack, localunit)
endif
call GroupRemoveUnit(localgroup, localunit)
endloop
call DestroyGroup(localgroup)
call GroupAddGroup(shackletrack, affectedunits)
loop
set localunit = FirstOfGroup(shackletrack)
exitwhen localunit == null
set lastunit = CreateUnit(GetOwningPlayer(dragunit), 'h005', GetLocationX(temppoint), GetLocationY(temppoint), bj_UNIT_FACING )
call GroupAddUnit(casters, lastunit)
call UnitAddAbility(lastunit, 'A04O')
call SetUnitAbilityLevel(lastunit, 'A04O', GetUnitAbilityLevel(dragunit, 'A04N'))
call IssueTargetOrder(lastunit, "magicleash", localunit)
call GroupRemoveUnit(shackletrack, localunit)
endloop
call RemoveLocation(temppoint)
set localinteger = 1
loop
exitwhen localinteger > 5
if (udg_AntiSpells) then
loop
set localunit = FirstOfGroup(casters)
exitwhen localunit==null
call RemoveUnit(localunit)
call GroupRemoveUnit(casters, localunit)
endloop
loop
set localunit = FirstOfGroup(affectedunits)
exitwhen localunit == null
set temppoint = GetUnitLoc(localunit)
call DestroyEffect(AddSpecialEffectLoc("Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl", temppoint))
call RemoveLocation(temppoint)
call GroupRemoveUnit(affectedunits, localunit)
endloop
call RemoveLocation(temppoint)
call DestroyEffect(drageffect)
call DestroyTimer(time)
call DestroyGroup(affectedunits)
call DestroyGroup(casters)
call DestroyGroup(shackletrack)
call DestroyGroup(localgroup)
set drageffect = null
set temppoint = null
set dragunit = null
set lastunit = null
set localunit = null
set affectedunits = null
set casters = null
set shackletrack = null
set localgroup = null
return
endif
call TimerStart(time, 1, false, null)
loop
exitwhen TimerGetRemaining(time)==0.
call TriggerSleepAction(.1)
endloop
set localinteger = localinteger + 1
endloop
call TimerStart(time, .8, false, null)
loop
exitwhen TimerGetRemaining(time)==0.
call TriggerSleepAction(.1)
endloop
loop
set localunit = FirstOfGroup(casters)
exitwhen localunit==null
call RemoveUnit(localunit)
call GroupRemoveUnit(casters, localunit)
endloop
loop
set localunit = FirstOfGroup(affectedunits)
exitwhen localunit==null
set temppoint = GetUnitLoc(localunit)
call DestroyEffect(AddSpecialEffectLoc("Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl", temppoint))
call RemoveLocation(temppoint)
call GroupRemoveUnit(affectedunits, localunit)
endloop
call PauseUnit(dragunit, false)
endif
call RemoveLocation(temppoint)
call DestroyEffect(drageffect)
call DestroyTimer(time)
call DestroyGroup(affectedunits)
call DestroyGroup(casters)
call DestroyGroup(shackletrack)
call DestroyGroup(localgroup)
set drageffect = null
set temppoint = null
set dragunit = null
set lastunit = null
set localunit = null
set affectedunits = null
set casters = null
set shackletrack = null
set localgroup = null
endfunction
//================================================================
function InitTrig_Web_of_Vengeance takes nothing returns nothing
set gg_trg_Web_of_Vengeance = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ(gg_trg_Web_of_Vengeance, EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddAction(gg_trg_Web_of_Vengeance, function Trig_Web_of_Vengeance)
endfunction
function Trig_Nether takes nothing returns nothing
local integer localinteger
local unit localunit
if (GetSpellAbilityId()=='A000') then
set localinteger = 1
set localunit = GetSpellTargetUnit()
loop
exitwhen localinteger > 3
if (GetUnitAbilityLevelSwapped('A000',GetSpellAbilityUnit())==localinteger) then
call AddSpecialEffectLocBJ( GetUnitLoc(localunit), "Doodads\\Cinematic\\Lightningbolt\\Lightningbolt.mdl" )
call UnitDamageTargetBJ(GetSpellAbilityUnit(), localunit, ( I2R(udg_localinteger) * 100.00 ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endif
set localinteger = localinteger + 1
endloop
endif
endfunction
//===========================================================================
function InitTrig_Nether_Summoning takes nothing returns nothing
set gg_trg_Nether_Summoning = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ(gg_trg_Nether_Summoning, EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddAction(gg_trg_Nether_Summoning, function Trig_Nether)
endfunction