Name | Type | is_array | initial_value |
AllRandom_On_Off | integer | No | |
AllRandom_Player | integer | No | |
Blade_Dance_Effect | effect | No | |
Blade_Dance_Multiplier | integer | No | 1 |
Blade_Dance_Target | unit | No | |
Blade_Dance_Timer | timer | No | |
Blade_Dancer | unit | No | |
BloodFlameEffect | effect | Yes | |
Casino_Amount_Dialog | dialog | No | |
Casino_Gold_100 | button | No | |
Casino_Gold_150 | button | No | |
Casino_Gold_200 | button | No | |
Casino_Gold_250 | button | No | |
Casino_Gold_300 | button | No | |
Casino_Gold_Amount | integer | No | |
Casino_Interval_1Min | button | No | |
Casino_Interval_2Min | button | No | |
Casino_Interval_3Min | button | No | |
Casino_Interval_4Min | button | No | |
Casino_Interval_5Min | button | No | |
Casino_Interval_6Min | button | No | |
Casino_Interval_Dialog | dialog | No | |
Casino_Winner | player | No | |
ChaosNexus | unit | Yes | |
Charge_Caster | unit | No | |
Charge_Target | location | No | |
Charge_Timer | timer | No | |
Chrono_effect | effect | No | |
Chrono_Timer | timer | No | |
Chrono_Timer2 | timer | No | |
Chronoshifter | unit | No | |
Combat_Exp_Timer | timer | No | |
CombExpAg | effect | No | |
CombExpStr | effect | No | |
ConsumeSpirit_Heal | integer | No | |
Creep_Respawn_Positions | location | Yes | |
D_ward | unit | No | |
D_ward_Caster | unit | No | |
D_ward_Target | location | No | |
D_ward_Timer | timer | No | |
DaggerBond_Target | unit | No | |
Daggerbond_Timer | timer | No | |
Dark_Players | force | No | |
Deathwall | unit | No | |
DeathwallEffect | effect | Yes | |
DeathwallEffectNumber | integer | No | 1 |
Deathwave_Angle | integer | No | |
Dislocator | group | No | |
Disrupt_Rift_Center | location | No | |
Disruptor | unit | No | |
Dragontounge_Caster | unit | No | |
Dragontounge_Effect | effect | No | |
Dragontounge_Flames | group | No | |
Dragontounge_Target | location | No | |
Eclipse_regen | timer | No | |
Era_Dialog | dialog | No | |
ExpRate_150 | button | No | |
ExpRate_200 | button | No | |
ExpRate_250 | button | No | |
ExpRate_300 | button | No | |
Fadestar_Damage | integer | No | |
FreePick_On_Off | integer | No | |
Genburst | timer | No | |
Hero_To_Revive | unit | Yes | |
Hero_To_Revive_Timer | timer | Yes | |
Hero_To_Revive_Timer_Window | timerdialog | Yes | |
InfHungerCaster | group | No | |
InfHungerTarget | group | No | |
LeaverMoneyDivide | force | No | |
LeyLightning1 | lightning | No | |
LeyLightning2 | lightning | No | |
LeyLightning3 | lightning | No | |
LeyLightning4 | lightning | No | |
LeyLightning5 | lightning | No | |
LeyLightTime | timer | No | |
LeyTarget1 | unit | No | |
LeyTarget2 | unit | No | |
LeyTarget3 | unit | No | |
LeyTarget4 | unit | No | |
LeyTarget5 | unit | No | |
Light_Players | force | No | |
Megablast | location | No | |
Megablast_caster | unit | No | |
Mindwave | group | No | |
Monster | group | No | |
Mystic | unit | No | |
Necro_Corpse | location | No | |
Necromancer | unit | No | |
Nocta | group | No | |
Omniquake_Caster | unit | No | |
Overblast_caster | unit | No | |
Overblast_Count | integer | No | |
Overblast_Damage | integer | No | |
Overblast_Text | texttag | No | |
Overblast_Wisp | unit | No | |
P10_Kills | integer | No | |
P11_Kills | integer | No | |
P12_Kills | integer | No | |
P1_Kills | integer | No | |
P2_Kills | integer | No | |
P3_Kills | integer | No | |
P4_Kills | integer | No | |
P5_Kills | integer | No | |
P6_Kills | integer | No | |
P7_Kills | integer | No | |
P8_Kills | integer | No | |
P9_Kills | integer | No | |
PhoenixArrow | unit | No | |
PhoenixArrowTargetAngle | real | No | |
Player_Colors | string | Yes | |
PredatorCursedUnit | group | No | |
PredatorCurser | group | No | |
PredatorTimer | timer | No | |
Pyrachno | unit | No | |
RageclawDruid | unit | No | |
Random_HeroType | unitcode | Yes | |
RandomHero_Number | integer | No | |
Replenish_Caster | unit | No | |
Replenish_Target | unit | No | |
Sand_Knock_time | timer | No | |
sand_slammed | group | No | |
Sand_Slammer | unit | No | |
Sand_Slammer_Point | location | No | |
Sathra | group | No | |
Shade | unit | No | |
ShadeAssassin | unit | No | |
ShadowVeil | timer | No | |
Smuggler_Timer | timer | No | |
SoulCatcher | unit | No | |
SoulCount | integer | No | |
SoulCount_Number | texttag | No | |
SpellHelper_Blind | unit | No | |
Stasis_Timer | timer | No | |
Stasis_Victim | group | No | |
StingerCaster | group | No | |
StingerStrikeTarget | group | No | |
StingerStrikeTime | timer | No | |
StonePanda | group | No | |
StormThreshold | unit | Yes | |
Tauren_Merc | unit | No | |
Tidal_Charge_Caster | unit | No | |
Tidal_Charge_Target | location | No | |
Tidal_Charge_Timer | timer | No | |
Tidal_splash | effect | No | |
Time_Passed | integer | No | |
Total_Num_Players | integer | No | |
Tremor_Caster | unit | No | |
Tremor_Centre | location | No | |
Tremor_Multiplier | integer | No | 1 |
Whirlpool | location | No | |
Whirlpool_Caster | unit | No | |
Whirlpool_Victims | group | No |
constant function CreepRespawnDelay takes nothing returns real
return 90.0 //The respawn duration in seconds -- set this!
endfunction
//---Creep Respawn System---
function CR_H2I takes handle h returns integer
return h
return 0
endfunction
function SetCreepRespawnPoints takes nothing returns nothing
local group g = CreateGroup()
local unit u = null
call GroupEnumUnitsOfPlayer(g,Player(12),null)
loop
set u = FirstOfGroup(g)
call GroupRemoveUnit(g,u)
exitwhen u == null
call StoreReal(InitGameCache("CR"), I2S(CR_H2I(u)), "RespawnX", GetUnitX(u))
call StoreReal(InitGameCache("CR"), I2S(CR_H2I(u)), "RespawnY", GetUnitY(u))
call StoreReal(InitGameCache("CR"), I2S(CR_H2I(u)), "RespawnFacing", GetUnitFacing(u))
endloop
call DestroyGroup(g)
set g = null
endfunction
function RespawnCreeps takes nothing returns nothing
local unit u = GetTriggerUnit()
local real x = GetStoredReal(InitGameCache("CR"), I2S(CR_H2I(u)), "RespawnX")
local real y = GetStoredReal(InitGameCache("CR"), I2S(CR_H2I(u)), "RespawnY")
local real f = GetStoredReal(InitGameCache("CR"), I2S(CR_H2I(u)), "RespawnFacing")
call TriggerSleepAction(CreepRespawnDelay())
set u = CreateUnit(Player(12), GetUnitTypeId(u), x, y, f)
call StoreReal(InitGameCache("CR"), I2S(CR_H2I(u)), "RespawnX", x)
call StoreReal(InitGameCache("CR"), I2S(CR_H2I(u)), "RespawnY", y)
call StoreReal(InitGameCache("CR"), I2S(CR_H2I(u)), "RespawnFacing", f)
set u = null
endfunction
//===========================================================================
function InitTrig_CreepRespawn takes nothing returns nothing
call SetCreepRespawnPoints()
set gg_trg_CreepRespawn = CreateTrigger()
call TriggerRegisterPlayerUnitEvent(gg_trg_CreepRespawn, Player(12), EVENT_PLAYER_UNIT_DEATH, null)
call TriggerAddAction(gg_trg_CreepRespawn, function RespawnCreeps)
endfunction