Name | Type | is_array | initial_value |
Caster | unit | Yes | |
Creep_Point | location | No | |
Group | group | Yes | |
h | integer | No | |
H_Ability | abilcode | Yes | |
H_Angle | real | Yes | |
H_BigStone | unit | Yes | |
H_Cast_Point | location | Yes | |
H_Chibacu | unit | Yes | |
H_Index | integer | No | |
H_Index_Max | integer | No | |
H_Knockback_Time | integer | Yes | |
H_KnockBackGroup | group | Yes | |
H_Loop | integervar | No | |
H_Move | location | Yes | |
H_Mui | integer | No | |
H_Picked_Point | location | Yes | |
H_Picked_Unit | unit | Yes | |
H_Pickedunit2 | unit | Yes | |
H_PickUpGroup | group | Yes | |
H_Point1 | location | Yes | |
H_Point2 | location | Yes | |
H_RandomNumber | real | Yes | |
H_Small_Stone | unit | Yes | |
H_Speed1 | real | Yes | |
H_Speed2 | real | Yes | |
H_Spell | integer | Yes | |
H_Spell_Last | integer | Yes | |
H_Stone_Size | integer | Yes | |
H_Stones_Create | location | Yes | |
H_StonesRemove | group | Yes | |
H_unit | unit | Yes | |
Hero | unit | Yes | |
KB_Angle | real | Yes | |
KB_Casters | unit | Yes | |
KB_CountBuffs | integer | No | |
KB_DestroyTrees | boolean | Yes | |
KB_EffectCounter | integer | Yes | |
KB_EffectCounter2 | integer | Yes | |
KB_Effects_1 | string | Yes | |
KB_Effects_2 | string | Yes | |
KB_GeneralIntegers | integervar | Yes | |
KB_KnockbackedUnits | group | No | |
KB_Levels | integer | Yes | |
KB_MaxDistance | real | Yes | |
KB_ReachedDistance | real | Yes | |
KB_ReducedReal | real | No | |
KB_ReduceSpeedReal | real | Yes | |
KB_SpecificSpeed | real | Yes | |
KB_StartPositions | location | Yes | |
KB_TempPoint | location | Yes | |
KB_TempReal | real | No | |
KB_TotalKnockUnits | integer | No | |
KB_Units | unit | Yes | |
KBA_Caster | unit | No | |
KBA_DestroyTrees | boolean | No | |
KBA_DistancePerLevel | real | No | |
KBA_Level | integer | No | |
KBA_SpecialEffects | string | Yes | |
KBA_Speed | real | No | |
KBA_StartingPosition | location | No | |
KBA_TargetUnit | unit | No | |
Point | location | Yes | |
Sample_Group | group | No | |
Sample_Point | location | No | |
Shira_TargetGroup | group | No | |
table | hashtable | No |
//TESH.scrollpos=-1
//TESH.alwaysfold=0
function Trig_Spawn_Creeps_Actions takes nothing returns nothing
local unit spawned
local real vx = GetRandomReal(GetRectMinX(bj_mapInitialPlayableArea), GetRectMaxX(bj_mapInitialPlayableArea))
local real vy = GetRandomReal(GetRectMinY(bj_mapInitialPlayableArea), GetRectMaxY(bj_mapInitialPlayableArea))
set spawned = CreateUnit(Player(PLAYER_NEUTRAL_AGGRESSIVE),ChooseRandomCreep(-1),vx,vy,0)
set spawned = null
endfunction
//===========================================================================
function InitTrig_Spawn_Creeps takes nothing returns nothing
local trigger createunits = CreateTrigger( )
call TriggerRegisterTimerEvent(createunits, 3.00, true)
call TriggerAddAction( createunits, function Trig_Spawn_Creeps_Actions )
set createunits = null
endfunction
//TESH.scrollpos=-1
//TESH.alwaysfold=0
function Trig_reset_Actions takes nothing returns nothing
local unit hero = gg_unit_H000_0001
call SetUnitState(hero, UNIT_STATE_LIFE, GetUnitState(hero, UNIT_STATE_MAX_LIFE) * RMaxBJ(0,100) * 0.01)
call SetUnitState(hero, UNIT_STATE_MANA, GetUnitState(hero, UNIT_STATE_MAX_MANA) * RMaxBJ(0,100) * 0.01)
call UnitResetCooldown( hero )
set hero = null
endfunction
//===========================================================================
function InitTrig_reset takes nothing returns nothing
local trigger resethero = CreateTrigger( )
call TriggerRegisterPlayerEvent(resethero, Player(0), EVENT_PLAYER_END_CINEMATIC)
call TriggerAddAction( resethero, function Trig_reset_Actions )
set resethero = null
endfunction
//TESH.scrollpos=-1
//TESH.alwaysfold=0
function Trig_Rinnegan_Conditions takes nothing returns boolean
return GetUnitAbilityLevel(GetTriggerUnit(), 'B000') > 0 and ( GetRandomInt(1, 100) <= 17 )
endfunction
function rineganpush takes nothing returns nothing
local timer w = GetExpiredTimer ()
local unit attacker = LoadUnitHandle(udg_table,GetHandleId(w),1)
local unit attacked = LoadUnitHandle(udg_table,GetHandleId(w),2)
local real timeleft = LoadReal(udg_table,GetHandleId(w),3)
local real ax = GetUnitX(attacker)
local real ay = GetUnitY(attacker)
local real dx = GetUnitX(attacked)
local real dy = GetUnitY(attacked)
local real angle = bj_RADTODEG * Atan2(dy - ay, dx - ax)
local real x = dx + 27 * Cos(angle * bj_DEGTORAD)
local real y = dy + 27 * Sin(angle * bj_DEGTORAD)
call SetUnitPosition(attacked,x,y)
if timeleft <= 0 then
call PauseUnit(attacked,false)
call SetUnitPathing(attacked,true)
call FlushChildHashtable(udg_table,GetHandleId(w))
set w = null
set attacker = null
set attacked = null
call DestroyTimer(GetExpiredTimer())
else
call SaveReal(udg_table,GetHandleId(w),3,timeleft - 2)
call DestroyEffect(AddSpecialEffect("Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl",dx,dy))
set w = null
set attacker = null
set attacked = null
endif
endfunction
function Trig_Rinnegan_Actions takes nothing returns nothing
local timer w = CreateTimer()
local unit attacker = GetTriggerUnit ()
local unit attacked = GetAttacker ()
local real timeleft = 10
call PauseUnit(attacked,true)
call SetUnitPathing(attacked,false)
call SaveUnitHandle(udg_table,GetHandleId(w),1,attacker)
call SaveUnitHandle(udg_table,GetHandleId(w),2,attacked)
call SaveReal(udg_table,GetHandleId(w),3,timeleft)
call TimerStart(w,0.02,true,function rineganpush)
set w = null
set attacker = null
set attacked = null
endfunction
//===========================================================================
function InitTrig_Rinnegan takes nothing returns nothing
local trigger Rinnegan = CreateTrigger( )
call Preload("Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl")
call TriggerRegisterAnyUnitEventBJ( Rinnegan, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( Rinnegan, Condition( function Trig_Rinnegan_Conditions ) )
call TriggerAddAction( Rinnegan, function Trig_Rinnegan_Actions )
set Rinnegan = null
endfunction