Name | Type | is_array | initial_value |
absoluteFreezeLoc | location | No | |
aimedShotCnt | integer | No | |
aimedShotDmg | real | No | |
azGroup | group | No | |
azSfxArray | effect | Yes | |
azSfxCnt | integer | No | |
balanceOfBloodCount | integer | No | |
balanceOfBloodSumm | real | No | |
blackArrowDmg | real | No | |
blackArrowKilledUnitHp | real | No | |
blackArrowOwner | unit | No | |
bloodBalanceArray | unit | Yes | |
bloodBalanceArrayCount | integer | No | |
bloodRageCaster | unit | No | |
bloodRageCurrent | integer | No | |
bosses | trigger | Yes | |
bossesLevels | integer | Yes | |
bossIdx | integer | No | |
breathOfFrostLoc | location | No | |
bulkTraningDamage | integer | No | |
cnt | integer | No | |
cnt2 | integer | No | |
creepsGroup | group | No | |
crippleCasters | unit | Yes | |
crippleCastersIdx | integer | No | |
crpCnt | integer | No | |
crusherCalled | boolean | No | |
crusherItemsCnt | integer | No | |
crystallBallAttacker | unit | No | |
crystallBallDamage | integer | No | |
currentLevel | integer | No | 0 |
curseOfDegradationLevel | integer | No | |
deathResistanceLevel | integer | No | |
deathResistanceOwner | unit | No | |
deathWishCounter | integer | No | |
deathWishLevel | real | No | |
deathWishNextTarget | unit | No | |
difficulty | integer | No | 1 |
drIndex | integer | No | |
dwCaster | unit | No | |
dwTarget | unit | No | |
elementalStormCaster1 | unit | No | |
elementalStormCaster2 | unit | No | |
elementalStormPoint | location | No | |
elementalStormPointCaster | location | No | |
esIndex | integer | No | |
finalRevengeLoc | location | No | |
fleshReaperCaster | unit | No | |
fleshReaperDmg | real | No | |
fleshReaperTarget | unit | No | |
frostBoltBounceCounter | integer | No | |
frostBoltTarget | unit | No | |
hasteCnt | integer | No | |
hasteOfHatredCaster | unit | No | |
healCaster | unit | No | |
healCasterDisturber | unit | No | |
heroes | unit | Yes | |
heroesCount | integer | No | |
holyShieldInit | boolean | No | |
homePortalLocations | location | Yes | |
iceSphereOwner | unit | No | |
iceSphereUnit | unit | No | |
iceStormCreationPoint | location | No | |
itemParts | itemcode | Yes | |
itemPartsCount | integer | Yes | |
itemResult | itemcode | Yes | |
itemSlotArray | integer | Yes | |
itemsTotal | integer | No | |
lastLifeValue | real | No | |
leftPlayer | integer | No | |
levelTimer | timer | No | |
lifeEssenseUser | unit | No | |
massShacklesCasters | unit | Yes | |
massShacklesCount | integer | No | |
massShacklesLocation | location | No | |
massShacklesTarget | unit | No | |
maxPlayers | integer | No | 6 |
mirrorShieldCaster | unit | No | |
mirrorShieldPending | integer | No | |
mirrorShieldTarget | unit | No | |
moneyAdd | real | No | |
moneyMul | real | No | 1.00 |
playersCount | integer | No | |
ragedLightningCaster | unit | No | |
ragedLightningCount | integer | No | |
ragedLightningLevel | integer | No | |
ragedLightningTarget | unit | No | |
receiptIndex | integer | Yes | |
receiptPlayer | force | No | |
receiptPlayerIdx | integer | No | |
receiptText | string | No | |
reviveTime | real | No | |
score | integer | No | |
secretsHints | string | Yes | |
secretsHintsCount | integer | No | |
sheepAuraLevel | integer | No | |
sheepAuraOwner | unit | No | |
sourceOfLifeCaster | unit | No | |
sourceOfLifeUnit | unit | No | |
spawnBoss | boolean | No | |
spawnCountAdditional | integer | Yes | |
spawnCountMain | integer | Yes | |
spawnCountSecondary | integer | Yes | |
spawnCreepsAdditional | unitcode | Yes | |
spawnCreepsMain | unitcode | Yes | |
spawnCreepsSecondary | unitcode | Yes | |
spawnTimer | timer | No | |
specialEvent | integer | No | |
spellShieldCaster | unit | No | |
startNextLevel | boolean | No | |
stinkingArmorAutocast | boolean | No | |
stinkingArmorLevel | integer | No | |
superCreep | integer | No | |
uncontrollableRageTarget | unit | No | |
unholyAuraDummy | unit | No | |
unholyAuraOrder | ordercode | No | |
unholyAuraOwner | unit | No | |
unholyShieldDamage | real | No | |
uubLocation | location | No | |
waveNumber | integer | No | |
waveUpgrades | techcode | Yes | |
x | integer | No |
function Trig_Stinking_Armor_Conditions takes nothing returns boolean
if ( not ( UnitHasBuffBJ(GetTriggerUnit(), 'B006') == true ) ) then
return false
endif
if ( not ( UnitHasBuffBJ(GetAttacker(), 'B01Y') == false ) ) then
return false
endif
return true
endfunction
function Trig_Stinking_Armor_Actions takes nothing returns nothing
local location l= GetUnitLoc(GetAttacker())
local unit u = CreateUnitAtLoc( GetOwningPlayer(GetAttackedUnitBJ()),'e00L', l, bj_UNIT_FACING )
call SetUnitAbilityLevelSwapped( 'A02G', u, udg_stinkingArmorLevel )
call IssueTargetOrderBJ( u, "drunkenhaze", GetAttacker() )
call RemoveLocation(l)
set u = null
endfunction
//===========================================================================
function InitTrig_Stinking_Armor takes nothing returns nothing
set gg_trg_Stinking_Armor = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stinking_Armor, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Stinking_Armor, Condition( function Trig_Stinking_Armor_Conditions ) )
call TriggerAddAction( gg_trg_Stinking_Armor, function Trig_Stinking_Armor_Actions )
endfunction
function Trig_IceSphereTimer_Func002001003001 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) == Player(7) )
endfunction
function Trig_IceSphereTimer_Func002001003002 takes nothing returns boolean
return ( IsUnitAliveBJ(GetFilterUnit()) == true )
endfunction
function Trig_IceSphereTimer_Func002001003 takes nothing returns boolean
return GetBooleanAnd( Trig_IceSphereTimer_Func002001003001(), Trig_IceSphereTimer_Func002001003002() )
endfunction
function Trig_IceSphereTimer_Func002Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 100) <= 20 ) ) then
return false
endif
return true
endfunction
function Trig_IceSphereTimer_Func002A takes nothing returns nothing
local location l = GetUnitLoc(GetEnumUnit())
local unit u
if ( Trig_IceSphereTimer_Func002Func001C() ) then
set u = CreateUnitAtLoc( GetOwningPlayer(udg_iceSphereUnit),'e00X', l, bj_UNIT_FACING )
call SetUnitAbilityLevelSwapped( 'A05R', u, GetUnitAbilityLevelSwapped('A05M', udg_iceSphereOwner) )
call IssueTargetOrderBJ( u, "entanglingroots", GetEnumUnit() )
else
endif
call RemoveLocation(l)
set u = null
endfunction
function Trig_IceSphereTimer_Actions takes nothing returns nothing
local location l = GetUnitLoc(udg_iceSphereUnit)
local boolexpr be = Condition(function Trig_IceSphereTimer_Func002001003)
local group g = GetUnitsInRangeOfLocMatching(200.00, l, be)
call ForGroupBJ( g, function Trig_IceSphereTimer_Func002A )
call DestroyGroup(g)
call RemoveLocation(l)
call DestroyBoolExpr(be)
endfunction
//===========================================================================
function InitTrig_IceSphereTimer takes nothing returns nothing
set gg_trg_IceSphereTimer = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_IceSphereTimer, 2 )
call TriggerAddAction( gg_trg_IceSphereTimer, function Trig_IceSphereTimer_Actions )
endfunction
function Trig_AimedShot_Conditions takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A055', GetAttacker()) > 0 ) ) then
return false
endif
return true
endfunction
function Trig_AimedShot_Actions takes nothing returns nothing
local unit u1= GetAttackedUnitBJ()
local location l1 = GetUnitLoc(u1)
local unit u2= GetAttacker()
local location l2 = GetUnitLoc(u2)
set udg_aimedShotCnt = ( udg_aimedShotCnt + 1 )
if ( udg_aimedShotCnt >= ( 7 - GetUnitAbilityLevelSwapped('A055', u2) ) ) then
call PolledWait( ( DistanceBetweenPoints(l1, l2) / 900.00 ) )
set udg_aimedShotDmg = I2R(( GetHeroStatBJ(bj_HEROSTAT_AGI, u2, true) * 2 ))
call UnitDamageTargetBJ( u2, u1, udg_aimedShotDmg, ATTACK_TYPE_CHAOS, DAMAGE_TYPE_POISON )
set udg_aimedShotCnt = 0
call AddSpecialEffectTargetUnitBJ( "chest", GetAttackedUnitBJ(), "Objects\\Spawnmodels\\Human\\HumanBlood\\HumanBloodFootman.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
else
endif
call RemoveLocation (l1)
call RemoveLocation (l2)
set u1 = null
set u2 = null
endfunction
//===========================================================================
function InitTrig_AimedShot takes nothing returns nothing
set gg_trg_AimedShot = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_AimedShot, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_AimedShot, Condition( function Trig_AimedShot_Conditions ) )
call TriggerAddAction( gg_trg_AimedShot, function Trig_AimedShot_Actions )
endfunction
function Trig_Black_Arrow_SummonDie_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'n007' ) ) then
return false
endif
return true
endfunction
function Trig_Black_Arrow_SummonDie_Func003001003 takes nothing returns boolean
return ( IsUnitAlly(GetFilterUnit(), Player(7)) == true )
endfunction
function Trig_Black_Arrow_SummonDie_Func003Func001C takes nothing returns boolean
if ( not ( IsUnitAliveBJ(GetEnumUnit()) == true ) ) then
return false
endif
if ( not ( IsUnitType(GetEnumUnit(), UNIT_TYPE_HERO) == false ) ) then
return false
endif
return true
endfunction
function Trig_Black_Arrow_SummonDie_Func003A takes nothing returns nothing
if ( Trig_Black_Arrow_SummonDie_Func003Func001C() ) then
call UnitDamageTargetBJ( udg_blackArrowOwner, GetEnumUnit(), udg_blackArrowDmg, ATTACK_TYPE_CHAOS, DAMAGE_TYPE_POISON )
call AddSpecialEffectLocBJ( GetUnitLoc(GetEnumUnit()), "Objects\\Spawnmodels\\Naga\\NagaBlood\\NagaBloodWindserpent.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
else
endif
endfunction
function Trig_Black_Arrow_SummonDie_Actions takes nothing returns nothing
local location l = GetUnitLoc(GetDyingUnit())
local boolexpr be = Condition(function Trig_Black_Arrow_SummonDie_Func003001003)
local group g = GetUnitsInRangeOfLocMatching(300.00, l, be)
set udg_blackArrowDmg = ( udg_blackArrowKilledUnitHp * ( 0.07 * ( 1 + I2R(GetUnitAbilityLevelSwapped('A057', udg_blackArrowOwner)) ) ) )
set bj_wantDestroyGroup = true
call ForGroupBJ( g, function Trig_Black_Arrow_SummonDie_Func003A )
call RemoveLocation(l)
call DestroyGroup(g)
call DestroyBoolExpr(be)
endfunction
//===========================================================================
function InitTrig_Black_Arrow_SummonDie takes nothing returns nothing
set gg_trg_Black_Arrow_SummonDie = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Black_Arrow_SummonDie, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Black_Arrow_SummonDie, Condition( function Trig_Black_Arrow_SummonDie_Conditions ) )
call TriggerAddAction( gg_trg_Black_Arrow_SummonDie, function Trig_Black_Arrow_SummonDie_Actions )
endfunction
function Trig_Life_Essense_Actions takes nothing returns nothing
local location l1 = GetUnitLoc(GetDyingUnit())
local location l2 = GetUnitLoc(udg_lifeEssenseUser)
if ( DistanceBetweenPoints(l1, l2) <= 700.00 ) then
call SetUnitLifeBJ( udg_lifeEssenseUser, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_lifeEssenseUser) + ( GetUnitStateSwap(UNIT_STATE_MAX_LIFE, GetDyingUnit()) * ( 0.05 * I2R(GetUnitAbilityLevelSwapped('A04O', udg_lifeEssenseUser)) ) ) ) )
call AddSpecialEffectTargetUnitBJ( "origin", udg_lifeEssenseUser, "Abilities\\Spells\\Undead\\VampiricAura\\VampiricAuraTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
else
endif
call RemoveLocation(l1)
call RemoveLocation(l2)
endfunction
//===========================================================================
function InitTrig_Life_Essense takes nothing returns nothing
set gg_trg_Life_Essense = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Life_Essense, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddAction( gg_trg_Life_Essense, function Trig_Life_Essense_Actions )
endfunction
function Trig_Crystal_Ball_Conditions takes nothing returns boolean
if ( not ( UnitHasBuffBJ(GetAttacker(), 'B021') == true ) ) then
return false
endif
if ( not ( GetRandomInt(1, 100) <= 10 ) ) then
return false
endif
return true
endfunction
function Trig_Crystal_Ball_Func004001003001 takes nothing returns boolean
return ( IsUnitAliveBJ(GetFilterUnit()) == true )
endfunction
function Trig_Crystal_Ball_Func004001003002 takes nothing returns boolean
return ( IsUnitAlly(GetFilterUnit(), Player(7)) == true )
endfunction
function Trig_Crystal_Ball_Func004001003 takes nothing returns boolean
return GetBooleanAnd( Trig_Crystal_Ball_Func004001003001(), Trig_Crystal_Ball_Func004001003002() )
endfunction
function Trig_Crystal_Ball_Func004A takes nothing returns nothing
call UnitDamageTargetBJ( udg_crystallBallAttacker, GetEnumUnit(), I2R(udg_crystallBallDamage), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call AddSpecialEffectLocBJ( GetUnitLoc(GetEnumUnit()), "Abilities\\Weapons\\Bolt\\BoltImpact.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endfunction
function Trig_Crystal_Ball_Actions takes nothing returns nothing
local unit u1=GetAttacker()
local unit u2=GetAttackedUnitBJ()
local location l1=GetUnitLoc(u1)
local location l2=GetUnitLoc(u2)
local group g
set udg_crystallBallDamage = 5*GetHeroStatBJ(bj_HEROSTAT_INT, u1, true)
call PolledWait( 0.2+( DistanceBetweenPoints(l1, l2) / 900.00 ) )
set g=GetUnitsInRangeOfLocMatching(250.00, l2, Condition(function Trig_Crystal_Ball_Func004001003))
set udg_crystallBallAttacker=u1
call ForGroupBJ( g, function Trig_Crystal_Ball_Func004A )
call RemoveLocation(l1)
call RemoveLocation(l2)
call DestroyGroup(g)
set u1 = null
set u2 = null
endfunction
//===========================================================================
function InitTrig_Crystal_Ball takes nothing returns nothing
set gg_trg_Crystal_Ball = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Crystal_Ball, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Crystal_Ball, Condition( function Trig_Crystal_Ball_Conditions ) )
call TriggerAddAction( gg_trg_Crystal_Ball, function Trig_Crystal_Ball_Actions )
endfunction
function Trig_Bone_Armor_Conditions takes nothing returns boolean
if ( not ( UnitHasBuffBJ(GetAttackedUnitBJ(), 'B020') == true ) ) then
return false
endif
if ( not ( GetRandomInt(1, 100) <= 5 ) ) then
return false
endif
return true
endfunction
function Trig_Bone_Armor_Actions takes nothing returns nothing
local unit u = GetAttackedUnitBJ()
local effect e
call SetUnitLifeBJ( u, ( GetUnitStateSwap(UNIT_STATE_LIFE, u) + ( GetUnitStateSwap(UNIT_STATE_MAX_LIFE, u) * 0.05 ) ) )
// set e = AddSpecialEffectTargetUnitBJ( "head", u, "Abilities\\Spells\\Human\\Heal\\HealTarget.mdl" )
set e = AddSpecialEffectTargetUnitBJ( "origin", u, "Objects\\Spawnmodels\\Human\\HumanLargeDeathExplode\\HumanLargeDeathExplode.mdl" )
call PolledWait( 1.00 )
call DestroyEffectBJ( e )
set u = null
set e = null
endfunction
//===========================================================================
function InitTrig_Bone_Armor takes nothing returns nothing
set gg_trg_Bone_Armor = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Bone_Armor, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Bone_Armor, Condition( function Trig_Bone_Armor_Conditions ) )
call TriggerAddAction( gg_trg_Bone_Armor, function Trig_Bone_Armor_Actions )
endfunction
function Trig_Sould_Destroyer_Attack_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetAttacker(), 'I02W') == true ) ) then
return false
endif
if ( not ( GetRandomInt(1, 100) <= 10 ) ) then
return false
endif
return true
endfunction
function Trig_Sould_Destroyer_Attack_Func005C takes nothing returns boolean
if ( not ( UnitHasBuffBJ(GetAttackedUnitBJ(), 'B01Z') == true ) ) then
return false
endif
return true
endfunction
function Trig_Sould_Destroyer_Attack_Actions takes nothing returns nothing
local unit u = GetAttackedUnitBJ()
local unit att = GetAttacker()
local location l = GetUnitLoc(u)
local unit caster
set caster = CreateUnitAtLoc(GetOwningPlayer(att), 'e00M', l , bj_UNIT_FACING )
call IssueTargetOrderBJ( caster, "soulburn", u )
call SetUnitVertexColorBJ( u, 100, 0.00, 0.00, 0 )
call PolledWait( 3.00 )
if ( UnitHasBuffBJ(u, 'B01Z') == true ) then
call SetUnitVertexColorBJ( u, 100, 100.00, 100.00, 0 )
else
endif
set u = null
set caster = null
set att = null
call RemoveLocation(l)
endfunction
//===========================================================================
function InitTrig_Soul_Destroyer_Attack takes nothing returns nothing
set gg_trg_Soul_Destroyer_Attack = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Soul_Destroyer_Attack, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Soul_Destroyer_Attack, Condition( function Trig_Sould_Destroyer_Attack_Conditions ) )
call TriggerAddAction( gg_trg_Soul_Destroyer_Attack, function Trig_Sould_Destroyer_Attack_Actions )
endfunction