Name | Type | is_array | initial_value |
Blitz | group | No | |
Blitz_punkt | location | No | |
Combine_Charged_Items | boolean | No | |
Combine_Charges_Max | integer | No | |
Creep_Positions | location | Yes | |
Creep_Types | unitcode | Yes | |
CreepItems | itemcode | Yes | |
CreepItemsCount | integer | No | |
DeathMatch | integer | Yes | |
Eis | group | No | |
Eis_punkt | location | No | |
EmpoweringCaster | unit | No | |
End_Game_If_All_Gone | boolean | No | |
explosions_groesse | real | No | |
Feuer | group | No | |
Feuer_punkt | location | No | |
Game_Minutes | integer | No | |
Game_Seconds | integer | No | |
Game_Time | timer | No | |
GameMode | integer | No | |
goblinP | unit | No | |
Grok | unitcode | No | oosc |
Grunt | unit | No | |
Hero_Revive_Time_Factor | real | No | |
Heroes_All | unitcode | Yes | |
Heroes_Scourge | unitcode | Yes | |
Heroes_Sentinel | unitcode | Yes | |
Hostile_Revive_Time | real | No | |
ItemDrop | integer | Yes | |
ItemDropCount | integer | No | |
KodoBeast | unit | No | |
LastHeroStanding | force | No | |
LeaderboardScourge | leaderboard | No | |
LeaderboardSentinel | leaderboard | No | |
LoopCreep | integer | No | |
LoopRandom | integer | No | |
LoopSuper | integer | No | |
Luna | unitcode | No | E00M |
LunarCaster | unit | No | |
MODE_AllRandom_AllPick | integer | No | 1 |
MODE_Normal | integer | No | 0 |
MODE_Reverse | integer | No | 2 |
Multiboard_Clock | integer | No | |
Multiboard_ShowDeaths | boolean | No | true |
Multiboard_Spots | integer | Yes | |
nagaP | unit | No | |
NALASIA | itemcode | No | I009 |
Odd_Man_Out | force | No | |
Player | player | No | |
Player_Already_Picked | integer | Yes | |
Player_Colors | string | Yes | |
Player_Starting_Gold | integer | No | |
PlayerNames | string | Yes | |
Players | force | No | |
PlayersCount | integer | No | |
PlayersScourge | force | No | |
PlayersScourgeCount | integer | No | |
PlayersScourgePlaying | force | No | |
PlayersScourgeReverse | force | No | |
PlayersSentinel | force | No | |
PlayersSentinelCount | integer | No | |
PlayersSentinelPlaying | force | No | |
PlayersSentinelReverse | force | No | |
Point | location | No | |
POLARIS | itemcode | No | I00A |
Random_Hero | integer | No | |
RandomData_All | integer | Yes | |
RandomData_Scourge | integer | Yes | |
RandomData_Sentinel | integer | Yes | |
RandomTotal_All | integer | No | |
RandomTotal_Scourge | integer | No | |
RandomTotal_Sentinel | integer | No | |
Repick_Cost_Ammount | integer | No | |
RevivableHeroes | group | No | |
RevivableTimersWindows | timerdialog | Yes | |
ReviveTimers | timer | Yes | |
RiverItems | itemcode | Yes | |
RiverItemsCount | integer | No | |
RiverItemsRegions | location | Yes | |
RiverItemsRegionsCount | integer | No | |
RiverItemsTaken | boolean | Yes | |
Score_Deaths | integer | Yes | |
Score_Kills | integer | Yes | |
ShortMode_On | boolean | No | |
Sort_Board_By_Kills | boolean | No | |
SpiritualKnight | unit | No | |
SpiritualKnight1 | unit | No | |
Super_Chances | integer | Yes | |
Super_Creeps | unitcode | Yes | |
Super_Creeps_On | boolean | No | |
Super_Names | string | Yes | |
Super_Regions | rect | Yes | |
TempInteger | integer | No | |
TempReal | real | No | |
Trioblitz | real | No | |
Trioeis | real | No | |
TrioFeuer | real | No | |
Triogramm | group | No | |
Triogramm_punkt | location | No | |
UberMode_On | boolean | No | |
UltraShortMode_On | boolean | No | |
UnitGroup | group | No |
function Trig_Scatter_Shot_Conditions takes nothing returns boolean
return GetSpellAbilityId() == 'A034'
endfunction
function Trig_Scatter_Shot_Actions takes nothing returns nothing
local location Target = GetSpellTargetLoc()
local unit Caster = GetTriggerUnit()
local player CasterOwner = GetOwningPlayer(Caster)
local integer i = 1
local location Random
local unit Dummy
local integer ScatterAmount = 4 + ( 4 * GetUnitAbilityLevelSwapped('A034', Caster) )
call TriggerSleepAction( 0.25 )
loop
exitwhen i > ScatterAmount
set Dummy = CreateUnit (CasterOwner,'e00L',GetUnitX(Caster),GetUnitY(Caster),bj_UNIT_FACING)
set Random = PolarProjectionBJ(Target,GetRandomDirectionDeg(),GetRandomDirectionDeg())
call IssuePointOrder(Dummy, "attackground", GetLocationX(Random),GetLocationY(Random) )
call RemoveLocation ( Random )
call UnitApplyTimedLife( Dummy, 'BTLF', 0.50 )
set i = i + 1
endloop
call RemoveLocation( Target )
set Target = null
set Random = null
set Caster = null
set Dummy = null
set CasterOwner = null
endfunction
//===========================================================================
function InitTrig_Scatter_Shot takes nothing returns nothing
set gg_trg_Scatter_Shot = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Scatter_Shot, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Scatter_Shot, Condition( function Trig_Scatter_Shot_Conditions ) )
call TriggerAddAction( gg_trg_Scatter_Shot, function Trig_Scatter_Shot_Actions )
endfunction
function Trig_Freezing_Field_Conditions takes nothing returns boolean
return GetSpellAbilityId() == 'A03D'
endfunction
function Freezing_Field_Effects takes nothing returns nothing
local timer t = GetExpiredTimer()
local unit caster = GetHandleUnit(t, "caster")
local unit u
local location l = PolarProjectionBJ(GetUnitLoc(caster), GetRandomReal(50.00, 600.00), GetRandomReal(0, 360.00))
if GetUnitCurrentOrder(caster) == String2OrderIdBJ("channel") then
set u = CreateUnit(GetOwningPlayer(caster),'u00K',GetLocationX(l),GetLocationY(l),bj_UNIT_FACING )
call SetUnitPathing( u, false )
call SetUnitAbilityLevelSwapped( 'A03C', u, GetUnitAbilityLevelSwapped('A03D', caster) )
call IssueTargetOrderBJ( u, "frostnova", u )
call UnitApplyTimedLife( u, 'BTLF', 1.00 )
endif
call RemoveLocation(l)
set t = null
set caster = null
set l = null
set u = null
endfunction
function Trig_Freezing_Field_Actions takes nothing returns nothing
local timer t = CreateTimer()
local unit caster = GetTriggerUnit()
call SetHandleHandle(t, "caster", caster)
call TimerStart(t, 0.100, true, function Freezing_Field_Effects)
call TriggerSleepAction(3.00)
call FlushHandleLocals(t)
call PauseTimer(t)
call DestroyTimer(t)
set t = null
set caster = null
endfunction
//===========================================================================
function InitTrig_Freezing_Field takes nothing returns nothing
set gg_trg_Freezing_Field = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Freezing_Field, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Freezing_Field, Condition( function Trig_Freezing_Field_Conditions ) )
call TriggerAddAction( gg_trg_Freezing_Field, function Trig_Freezing_Field_Actions )
endfunction
function Trig_Echo_Slam_Conditions takes nothing returns boolean
return GetSpellAbilityId() == 'A035'
endfunction
function Echo_Group takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(GetTriggerUnit())) == true )
endfunction
function Trig_Echo_Slam_Actions takes nothing returns nothing
local location l = GetUnitLoc(GetTriggerUnit())
local group g
local unit u
local unit v
call TriggerSleepAction(.25)
set g = GetUnitsInRangeOfLocMatching(500, l, Condition(function Echo_Group))
loop
set u = FirstOfGroup(g)
exitwhen u ==null
call GroupRemoveUnit(g,u)
set v = CreateUnit(GetOwningPlayer(GetTriggerUnit()),'n002',GetUnitX(u), GetUnitY(u), bj_UNIT_FACING)
call SetUnitAbilityLevelSwapped( 'A022', v, GetUnitAbilityLevelSwapped('A035', GetTriggerUnit()) )
call IssueImmediateOrder(v,"fanofknives")
call UnitApplyTimedLife(v,'BTLF',1.00)
endloop
call RemoveLocation(l)
set l = null
call DestroyGroup(g)
set g = null
set v = null
endfunction
//===========================================================================
function InitTrig_Echo_Slam takes nothing returns nothing
set gg_trg_Echo_Slam = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Echo_Slam, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Echo_Slam, Condition( function Trig_Echo_Slam_Conditions ) )
call TriggerAddAction( gg_trg_Echo_Slam, function Trig_Echo_Slam_Actions )
endfunction
function Trig_Ravage_Conditions takes nothing returns boolean
return GetSpellAbilityId() == 'A036'
endfunction
function Trig_Ravage_Actions takes nothing returns nothing
local location l = GetUnitLoc(GetTriggerUnit())
local integer i = 1
local unit u
local player p = GetOwningPlayer(GetTriggerUnit())
loop
exitwhen i > 16
set u = CreateUnit( p, 'n00Q', GetLocationX(l), GetLocationY(l), bj_UNIT_FACING )
call SetUnitAbilityLevelSwapped( 'A01G', u, GetUnitAbilityLevelSwapped('A036', GetTriggerUnit()) )
call IssuePointOrderLoc( u, "impale", PolarProjectionBJ(l, 100.00, ( 22.50 * i )) )
call UnitApplyTimedLife( u, 'BTLF', 1.00 )
set i = i + 1
endloop
call RemoveLocation(l)
set l = null
set p = null
set u = null
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_Sprout_Conditions takes nothing returns boolean
return GetSpellAbilityId() == 'A009'
endfunction
function Trig_Sprout_Actions takes nothing returns nothing
local destructable array D
local integer i = 1
local location l = GetUnitLoc(GetTriggerUnit())
call CreateFogModifierRadiusLoc( GetOwningPlayer(GetTriggerUnit()), FOG_OF_WAR_VISIBLE, l, 1000.00,true, true )
call RemoveLocation(l)
set l = GetUnitLoc(GetSpellTargetUnit())
loop
exitwhen i > 8
call CreateDestructableLoc( 'LTlt', PolarProjectionBJ(l, 130.00, ( i * 45.00 )), GetRandomDirectionDeg(), 1, 0 )
set D[i] = GetLastCreatedDestructable()
set i = i + 1
endloop
call TriggerSleepAction( ( 2.00 + I2R(GetUnitAbilityLevelSwapped('A009', GetTriggerUnit())) ) )
set i = 1
loop
exitwhen i > bj_forLoopAIndexEnd
call KillDestructable( D[i] )
set i = i + 1
endloop
call DestroyFogModifier( GetLastCreatedFogModifier() )
call TriggerSleepAction( 3.00 )
set i = 1
loop
exitwhen i > 8
call RemoveDestructable( D[i] )
set D[i] =null
set i = i + 1
endloop
call RemoveLocation(l)
set l = null
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_Revive_Creeps_Actions takes nothing returns nothing
local integer CUSTOM
set CUSTOM = GetUnitUserData(GetDyingUnit())
call TriggerSleepAction( udg_Hostile_Revive_Time )
call CreateNUnitsAtLoc( 1, udg_Creep_Types[CUSTOM], Player(PLAYER_NEUTRAL_AGGRESSIVE), udg_Creep_Positions[CUSTOM], bj_UNIT_FACING )
call SetUnitUserData( GetLastCreatedUnit(), CUSTOM )
endfunction
//===========================================================================
function InitTrig_Revive_Creeps takes nothing returns nothing
set gg_trg_Revive_Creeps = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Revive_Creeps, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddAction( gg_trg_Revive_Creeps, function Trig_Revive_Creeps_Actions )
endfunction
function Trig_Combine_Items_Conditions takes nothing returns boolean
if ( not ( GetItemCharges(GetManipulatedItem()) > 0 ) ) then
return false
endif
if ( not ( udg_Combine_Charged_Items == true ) ) then
return false
endif
return true
endfunction
function Trig_Combine_Items_Actions takes nothing returns nothing
local integer ITEMCOUNT
local integer ITEMLOOP
local integer CHARGES
local integer MAXIMUM
local item NEWITEM
local unit OURUNIT
set MAXIMUM = udg_Combine_Charges_Max
set ITEMCOUNT = 0
set ITEMLOOP = 0
set CHARGES = 0
set NEWITEM = GetManipulatedItem()
set OURUNIT = GetManipulatingUnit()
loop
exitwhen ITEMLOOP > 6
if ((GetItemTypeId(NEWITEM)) == (GetItemTypeId(UnitItemInSlotBJ(OURUNIT, ITEMLOOP)))) then
if ((GetItemCharges(UnitItemInSlotBJ(OURUNIT, ITEMLOOP)) + GetItemCharges(NEWITEM)) <= MAXIMUM) then
if not ( (UnitItemInSlotBJ(OURUNIT, ITEMLOOP)) == (NEWITEM)) then
set CHARGES = (GetItemCharges(UnitItemInSlotBJ(OURUNIT, ITEMLOOP))) + GetItemCharges(NEWITEM)
call SetItemCharges( UnitItemInSlotBJ(OURUNIT, ITEMLOOP), CHARGES )
call RemoveItem( NEWITEM )
set ITEMLOOP=7
endif
endif
endif
if ( ITEMLOOP < 7 ) then
set ITEMLOOP = ITEMLOOP + 1
endif
endloop
endfunction
//===========================================================================
function InitTrig_Combine_Charged_Items takes nothing returns nothing
set gg_trg_Combine_Charged_Items = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Combine_Charged_Items, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Combine_Charged_Items, Condition( function Trig_Combine_Items_Conditions ) )
call TriggerAddAction( gg_trg_Combine_Charged_Items, function Trig_Combine_Items_Actions )
endfunction