Name | Type | is_array | initial_value |
GR_Active | boolean | Yes | |
GR_CurEnergyLevel | real | Yes | |
GR_LeakPoint | location | Yes | |
GR_LoopIndex | integer | Yes | |
GR_Sfx | effect | Yes | |
GR_Speed | real | Yes | |
GR_TempGroup | group | No | |
GR_TempReal | real | Yes | |
GR_TempUnit | unit | No | |
GR_Unit | unit | Yes |
// A small respawn system made by hell gate
// i don't want to use Paladons PGS system because here you don't need JNGP to edit the spell
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
//also in normal jass....
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