Name | Type | is_array | initial_value |
bFireWin | boolean | No | |
bTreeWin | boolean | No | |
destroy_trees_point | location | No | |
HideTimer | timer | No | |
InfernalLandingVis | fogmodifier | Yes | |
InfernalReviveTime | integer | Yes | |
multiboard | multiboard | No | |
multiboard_data | force | Yes | |
multiboard_score | integer | Yes | |
multiboard_work | integer | No | 1 |
pg_Ents | force | No | |
pg_Infernals | force | No | |
PlayerStatus | integer | Yes | |
ResourceGainGold | integer | Yes | |
ResourceGainWood | integer | Yes | |
TreeWinTimer | timer | No | |
TreeWinTimerWindow | timerdialog | No | |
ua_EntAshes | unit | Yes | |
ua_Ents | unit | Yes | |
ua_Infernals | unit | Yes | |
ug_EntAshes | group | No | |
ug_Ents | group | No | |
ug_Infernals | group | No |
function Trig_Self_Destruct_Conditions takes nothing returns boolean
if ( GetSpellAbilityId() == 'A015' ) then
return true
endif
return false
endfunction
function Trig_Self_Destruct_Actions takes nothing returns nothing
local location point = GetUnitLoc(GetSpellAbilityUnit())
call KillUnit( GetSpellAbilityUnit() )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call TriggerSleepAction( 0.10 )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call TriggerSleepAction( 0.10 )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call TriggerSleepAction( 0.10 )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call TriggerSleepAction( 0.10 )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call TriggerSleepAction( 0.10 )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call TriggerSleepAction( 0.10 )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call TriggerSleepAction( 0.10 )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call TriggerSleepAction( 0.10 )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
endfunction
//===========================================================================
function InitTrig_Self_Destruct takes nothing returns nothing
set gg_trg_Self_Destruct = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Self_Destruct, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Self_Destruct, Condition( function Trig_Self_Destruct_Conditions ) )
call TriggerAddAction( gg_trg_Self_Destruct, function Trig_Self_Destruct_Actions )
endfunction