Name | Type | is_array | initial_value |
HM_Active | boolean | Yes | |
HM_Angle | real | Yes | |
HM_AngleChangeSpeed | real | Yes | |
HM_CurDistance | real | Yes | |
HM_Damage | real | Yes | |
HM_DamageDealer | unit | Yes | |
HM_DamageGroup | group | No | |
HM_LeakPoint | location | Yes | |
HM_LoopIndex | integer | Yes | |
HM_MaxDistance | real | Yes | |
HM_Missle | unit | Yes | |
HM_PinningDistance | real | Yes | |
HM_Speed | real | Yes | |
HM_TargetUnit | unit | Yes | |
HM_TempGroup | group | No | |
HM_TempReal | real | Yes |
function Trig_Diable_Actions takes nothing returns nothing
call FogEnableOff( )
call FogMaskEnableOff( )
endfunction
//===========================================================================
function InitTrig_Diable takes nothing returns nothing
set gg_trg_Diable = CreateTrigger( )
call TriggerAddAction( gg_trg_Diable, function Trig_Diable_Actions )
endfunction
function Trig_Creeps_Respawn_Func003C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetDyingUnit()) == Player(1) ) ) then
return false
endif
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_HERO) == false ) ) then
return false
endif
return true
endfunction
function Trig_Creeps_Respawn_Conditions takes nothing returns boolean
if ( not Trig_Creeps_Respawn_Func003C() ) then
return false
endif
return true
endfunction
function Trig_Creeps_Respawn_Actions takes nothing returns nothing
call TriggerSleepAction( 20.00 )
// i know it use a wait but it is only for the test map
call CreateNUnitsAtLoc( 1, GetUnitTypeId(GetDyingUnit()), GetOwningPlayer(GetDyingUnit()), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
endfunction
//===========================================================================
function InitTrig_Creeps_Respawn takes nothing returns nothing
set gg_trg_Creeps_Respawn = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Creeps_Respawn, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Creeps_Respawn, Condition( function Trig_Creeps_Respawn_Conditions ) )
call TriggerAddAction( gg_trg_Creeps_Respawn, function Trig_Creeps_Respawn_Actions )
endfunction
//TESH.scrollpos=0
//TESH.alwaysfold=0
function Trig_Auto_Spell_Cast_Func003C takes nothing returns boolean
if ( not ( IsUnitType(GetAttackedUnitBJ(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( IsUnitAlly(GetAttackedUnitBJ(), Player(1)) == true ) ) then
return false
endif
return true
endfunction
function Trig_Auto_Spell_Cast_Conditions takes nothing returns boolean
if ( not Trig_Auto_Spell_Cast_Func003C() ) then
return false
endif
return true
endfunction
function Trig_Auto_Spell_Cast_Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttackedUnitBJ()) == 'Hamg' ) ) then
return false
endif
return true
endfunction
function Trig_Auto_Spell_Cast_Func002Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttackedUnitBJ()) == 'Hmkg' ) ) then
return false
endif
return true
endfunction
function Trig_Auto_Spell_Cast_Func002Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttackedUnitBJ()) == 'Hlgr' ) ) then
return false
endif
return true
endfunction
function Trig_Auto_Spell_Cast_Func002C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttackedUnitBJ()) == 'Hpal' ) ) then
return false
endif
return true
endfunction
function Trig_Auto_Spell_Cast_Actions takes nothing returns nothing
if ( Trig_Auto_Spell_Cast_Func002C() ) then
call IssueImmediateOrderBJ( GetTriggerUnit(), "divineshield" )
else
if ( Trig_Auto_Spell_Cast_Func002Func001C() ) then
call IssuePointOrderLocBJ( GetTriggerUnit(), "shockwave", GetUnitLoc(GetAttacker()) )
else
if ( Trig_Auto_Spell_Cast_Func002Func001Func001C() ) then
call IssueImmediateOrderBJ( GetTriggerUnit(), "thunderclap" )
else
if ( Trig_Auto_Spell_Cast_Func002Func001Func001Func001C() ) then
call IssuePointOrderLocBJ( GetTriggerUnit(), "blizzard", GetUnitLoc(GetAttacker()) )
else
endif
endif
endif
endif
endfunction
//===========================================================================
function InitTrig_Auto_Spell_Cast takes nothing returns nothing
set gg_trg_Auto_Spell_Cast = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Auto_Spell_Cast, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Auto_Spell_Cast, Condition( function Trig_Auto_Spell_Cast_Conditions ) )
call TriggerAddAction( gg_trg_Auto_Spell_Cast, function Trig_Auto_Spell_Cast_Actions )
endfunction