Name | Type | is_array | initial_value |
AllPickButton | button | Yes | |
AllPickDialog | dialog | No | |
check | real | No | |
CloseBlackBag | item | Yes | |
Combine_Charged_Items | boolean | No | |
Combine_Charges_Max | integer | No | |
Corpses | integer | No | |
Creep_Positions | location | Yes | |
Creep_Types | unitcode | Yes | |
CreepItems | itemcode | Yes | |
CreepItemsCount | integer | No | |
DeathMatch | integer | Yes | |
DialogButtonOther | button | Yes | |
DialogButtons | button | Yes | |
DialogOtherModes | dialog | No | |
dist | real | No | |
dist2 | real | No | |
DragEffect | effect | No | |
DragGroup | group | No | |
DragUnit | unit | No | |
End_Game_If_All_Gone | boolean | No | |
facing | real | No | |
Game_Minutes | integer | No | |
Game_Seconds | integer | No | |
Game_Time | timer | No | |
GameMode | integer | No | |
GameModes | dialog | No | |
Hero_Revive_Time_Factor | real | No | |
Heroes_All | unitcode | Yes | |
Heroes_Scourge | unitcode | Yes | |
Heroes_Sentinel | unitcode | Yes | |
Hostile_Revive_Time | real | No | |
Illusionist | unit | No | |
IllussionGroup | group | No | |
ItemDrop | integer | Yes | |
ItemDropCount | integer | No | |
ItemInBlackBag | item | Yes | |
Kill | integer | Yes | |
LastHeroStanding | force | No | |
LeaderboardScourge | leaderboard | No | |
LeaderboardSentinel | leaderboard | No | |
LoopCreep | integer | No | |
LoopRandom | integer | No | |
LoopSuper | integer | No | |
MODE | integer | No | |
MODE_AllRandom_AllPick | integer | No | 1 |
MODE_Normal | integer | No | 0 |
MODE_Reverse | integer | No | 2 |
movedistance | real | No | |
MoveMent | unit | No | |
Movement_Speed | integer | No | |
MoveMentTyp | unitcode | No | |
Multiboard_Clock | integer | No | |
Multiboard_ShowDeaths | boolean | No | true |
Multiboard_Spots | integer | Yes | |
MultiCatcher | unit | Yes | |
Odd_Man_Out | force | No | |
OmnislashMaster | unit | No | |
OpenedBlackBag | item | Yes | |
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 | |
pointofabilitycast | location | No | |
pointofcaster | location | No | |
position1 | real | No | |
position2 | real | No | |
Random_Hero | integer | No | |
RandomData_All | integer | Yes | |
RandomData_Scourge | integer | Yes | |
RandomData_Sentinel | integer | Yes | |
RandomSound | integer | No | |
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 | |
SpecialEffect | effect | No | |
Super_Chances | integer | Yes | |
Super_Creeps | unitcode | Yes | |
Super_Creeps_On | boolean | No | |
Super_Names | string | Yes | |
Super_Regions | rect | Yes | |
superslammer | unit | No | |
SuperSound | integer | No | |
TempCastingPointForText | location | No | |
TempInteger | integer | No | |
TempReal | real | No | |
TimeModeTime | timer | No | |
UberMode_On | boolean | No | |
UltraShortMode_On | boolean | No | |
UnitGroup | group | No | |
x_value | real | No | |
y_value_flyingheight | real | No |
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
function Trig_Death_Sounds_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ())) > 0 ) ) then
return false
endif
if ( not ( GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ())) <= 12 ) ) then
return false
endif
return true
endfunction
function Trig_Death_Sounds_Func002Func001Func001Func001Func001Func001Func002Func001Func001C takes nothing returns boolean
if ( not ( udg_Kill[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] == 9 ) ) then
return false
endif
return true
endfunction
function Trig_Death_Sounds_Func002Func001Func001Func001Func001Func001Func002Func001C takes nothing returns boolean
if ( not ( udg_Kill[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] == 8 ) ) then
return false
endif
return true
endfunction
function Trig_Death_Sounds_Func002Func001Func001Func001Func001Func001Func002C takes nothing returns boolean
if ( not ( udg_Kill[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] == 7 ) ) then
return false
endif
return true
endfunction
function Trig_Death_Sounds_Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( udg_Kill[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] == 6 ) ) then
return false
endif
return true
endfunction
function Trig_Death_Sounds_Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( udg_Kill[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] == 5 ) ) then
return false
endif
return true
endfunction
function Trig_Death_Sounds_Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( udg_Kill[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Death_Sounds_Func002Func001Func001C takes nothing returns boolean
if ( not ( udg_Kill[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Death_Sounds_Func002Func001C takes nothing returns boolean
if ( not ( udg_Kill[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Death_Sounds_Func002C takes nothing returns boolean
if ( not ( udg_Kill[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Death_Sounds_Func003Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( udg_Kill[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] == 18 ) ) then
return false
endif
return true
endfunction
function Trig_Death_Sounds_Func003Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( udg_Kill[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] == 17 ) ) then
return false
endif
return true
endfunction
function Trig_Death_Sounds_Func003Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( udg_Kill[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] == 16 ) ) then
return false
endif
return true
endfunction
function Trig_Death_Sounds_Func003Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( udg_Kill[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] == 15 ) ) then
return false
endif
return true
endfunction
function Trig_Death_Sounds_Func003Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( udg_Kill[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] == 14 ) ) then
return false
endif
return true
endfunction
function Trig_Death_Sounds_Func003Func001Func001Func001C takes nothing returns boolean
if ( not ( udg_Kill[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] == 13 ) ) then
return false
endif
return true
endfunction
function Trig_Death_Sounds_Func003Func001Func001C takes nothing returns boolean
if ( not ( udg_Kill[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] == 12 ) ) then
return false
endif
return true
endfunction
function Trig_Death_Sounds_Func003Func001C takes nothing returns boolean
if ( not ( udg_Kill[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] == 11 ) ) then
return false
endif
return true
endfunction
function Trig_Death_Sounds_Func003C takes nothing returns boolean
if ( not ( udg_Kill[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] == 10 ) ) then
return false
endif
return true
endfunction
function Trig_Death_Sounds_Actions takes nothing returns nothing
set udg_Kill[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] = ( udg_Kill[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] + 1 )
if ( Trig_Death_Sounds_Func002C() ) then
call PlaySoundBJ( gg_snd_haha )
call DisplayTextToForce( GetPlayersAll(), ( ( udg_Player_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] + GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())) ) + "|r: Haha!" ) )
else
if ( Trig_Death_Sounds_Func002Func001C() ) then
call PlaySoundBJ( gg_snd_doublekill )
call DisplayTextToForce( GetPlayersAll(), ( ( udg_Player_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] + GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())) ) + " |rjust got a Doublekill!" ) )
else
if ( Trig_Death_Sounds_Func002Func001Func001C() ) then
call PlaySoundBJ( gg_snd_multikill )
call DisplayTextToForce( GetPlayersAll(), ( ( udg_Player_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] + GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())) ) + " |rgot a Multikill!!!!" ) )
else
if ( Trig_Death_Sounds_Func002Func001Func001Func001C() ) then
call PlaySoundBJ( gg_snd_ultrakill )
call DisplayTextToForce( GetPlayersAll(), ( ( udg_Player_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] + GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())) ) + " |ris a Ultrakiller!!!" ) )
else
if ( Trig_Death_Sounds_Func002Func001Func001Func001Func001C() ) then
call PlaySoundBJ( gg_snd_au )
call DisplayTextToForce( GetPlayersAll(), ( ( udg_Player_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] + GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())) ) + " |rdamages many enemys!" ) )
else
if ( Trig_Death_Sounds_Func002Func001Func001Func001Func001Func001C() ) then
call DisplayTextToForce( GetPlayersAll(), ( ( udg_Player_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] + GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())) ) + " |ris always stay'in alive!" ) )
call PlaySoundBJ( gg_snd_stayinalive )
else
if ( Trig_Death_Sounds_Func002Func001Func001Func001Func001Func001Func002C() ) then
call PlaySoundBJ( gg_snd_impressive )
call DisplayTextToForce( GetPlayersAll(), ( ( udg_Player_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] + GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())) ) + " |ris IMPRESSIVE!!!" ) )
else
if ( Trig_Death_Sounds_Func002Func001Func001Func001Func001Func001Func002Func001C() ) then
call PlaySoundBJ( gg_snd_unstoppable )
call DisplayTextToForce( GetPlayersAll(), ( ( udg_Player_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] + GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())) ) + " |ris untroppable! Someone KILL him!!! ..really.." ) )
else
if ( Trig_Death_Sounds_Func002Func001Func001Func001Func001Func001Func002Func001Func001C() ) then
call PlaySoundBJ( gg_snd_monsterkill )
call DisplayTextToForce( GetPlayersAll(), ( ( udg_Player_Colors[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] + GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())) ) + " |rHOLY SHIT! He is a Monsterkiller!!" ) )
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
if ( Trig_Death_Sounds_Func003C() ) then
call PlaySoundBJ( gg_snd_haha )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())) + ": Haha!" ) )
else
if ( Trig_Death_Sounds_Func003Func001C() ) then
call PlaySoundBJ( gg_snd_doublekill )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())) + " got a doublekill!" ) )
else
if ( Trig_Death_Sounds_Func003Func001Func001C() ) then
call PlaySoundBJ( gg_snd_multikill )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())) + " has git a Multikill!!!" ) )
else
if ( Trig_Death_Sounds_Func003Func001Func001Func001C() ) then
call PlaySoundBJ( gg_snd_ultrakill )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())) + " has git a Ultrakill!!!" ) )
else
if ( Trig_Death_Sounds_Func003Func001Func001Func001Func001C() ) then
call PlaySoundBJ( gg_snd_au )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())) + " damges many enemys!" ) )
else
if ( Trig_Death_Sounds_Func003Func001Func001Func001Func001Func001C() ) then
call PlaySoundBJ( gg_snd_stayinalive )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())) + " is always stayin alive!" ) )
else
if ( Trig_Death_Sounds_Func003Func001Func001Func001Func001Func001Func001C() ) then
call PlaySoundBJ( gg_snd_impressive )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())) + " is IMPRESSIVE!" ) )
else
if ( Trig_Death_Sounds_Func003Func001Func001Func001Func001Func001Func001Func001C() ) then
call PlaySoundBJ( gg_snd_unstoppable )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())) + " is unstoppable!" ) )
else
if ( Trig_Death_Sounds_Func003Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
call PlaySoundBJ( gg_snd_monsterkill )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())) + " defeat enemy in the shortrst time!" ) )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())) + " defeat enemy in the shortrst time!" ) )
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
call TriggerSleepAction( 660.00 )
set udg_Kill[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] = 0
endfunction
//===========================================================================
function InitTrig_Death_Sounds takes nothing returns nothing
set gg_trg_Death_Sounds = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Death_Sounds, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Death_Sounds, Condition( function Trig_Death_Sounds_Conditions ) )
call TriggerAddAction( gg_trg_Death_Sounds, function Trig_Death_Sounds_Actions )
endfunction