Name | Type | is_array | initial_value |
AllPlayer | force | No | |
AM | unit | No | |
AOEPPA | unit | No | |
AOEPPAdmg | unit | No | |
AOESM | location | No | |
AOESNS | location | No | |
AOESNSMU | unit | No | |
AOESSOD | location | No | |
AOESWW | location | No | |
attacker_multi | unit | Yes | |
BreakingGround | effect | No | |
BSP | location | No | |
Caster | unit | No | |
CasterOfAOESHS | unit | No | |
CasterP | unit | No | |
ChargeCaster | unit | No | |
ChargeTarget | unit | No | |
CSACP | location | No | |
CSUS | unit | No | |
DAC | unit | No | |
DAT | unit | No | |
dummyAOESSS | unit | No | |
Dust_int | integer | No | |
Earth_quakeeffect_multi | effect | Yes | |
effect_multi | effect | Yes | |
Eye_Angle | real | No | |
FireArt | effect | No | |
FireCaster | unit | No | |
Flying_unit | group | No | |
FOB1 | unit | No | |
FOB2 | unit | No | |
FOB3 | unit | No | |
ice1 | unit | No | |
ice2 | unit | No | |
ice3 | unit | No | |
ice4 | unit | No | |
ice5 | unit | No | |
Kills | integer | Yes | |
KillsLeaderboard | leaderboard | No | |
KnockBackTimer | timer | No | |
KnockDistance | real | No | |
KnockedEffect | effect | No | |
KnockedUnit | unit | No | |
KnockFacing | real | No | |
KnockingUnit | unit | No | |
KnockPoint | location | No | |
KnockSecondPoint | location | No | |
l1 | lightning | No | |
l1_Copy | lightning | No | |
l1_Copy_Copy | lightning | No | |
l1_Copy_Copy_10 | lightning | No | |
l1_Copy_Copy_11 | lightning | No | |
l1_Copy_Copy_12 | lightning | No | |
l1_Copy_Copy_13 | lightning | No | |
l1_Copy_Copy_2 | lightning | No | |
l1_Copy_Copy_3 | lightning | No | |
l1_Copy_Copy_4 | lightning | No | |
l1_Copy_Copy_5 | lightning | No | |
l1_Copy_Copy_6 | lightning | No | |
l1_Copy_Copy_7 | lightning | No | |
l1_Copy_Copy_8 | lightning | No | |
l1_Copy_Copy_9 | lightning | No | |
lightning1 | lightning | No | |
lightning1_Copy | lightning | No | |
lightning1_Copy_2 | lightning | No | |
lightning1_Copy_3 | lightning | No | |
lightning1_Copy_4 | lightning | No | |
lightning1_Copy_5 | lightning | No | |
lightning1_Copy_6 | lightning | No | |
lightning1_Copy_7 | lightning | No | |
LotusAngle | real | No | |
LotusCaster | unit | No | |
LotusDummy | unit | No | |
LotusFade | real | No | |
LotusPoint | location | No | |
LotusTarget | unit | No | |
MC | unit | No | |
Messages | string | Yes | |
MT | unit | No | |
NS1 | unit | No | |
NS1_Copy | unit | No | |
NS1_Copy_2 | unit | No | |
NS1_Copy_3 | unit | No | |
NS1_Copy_4 | unit | No | |
NS1_Copy_5 | unit | No | |
NS1_Copy_6 | unit | No | |
NS1_Copy_7 | unit | No | |
P1 | location | No | |
P2 | location | No | |
Palantir | unit | No | |
PlayerNames | string | Yes | |
PLMC | location | No | |
PLMC_Copy | location | No | |
point | location | No | |
Ponit_victim_multi | location | Yes | |
PortalP | location | No | |
RAA | location | No | |
Ripple | unit | No | |
ROR | unit | No | |
ROR1 | unit | No | |
ROR2 | unit | No | |
ROR3 | unit | No | |
ROR4 | unit | No | |
ROR5 | unit | No | |
ROR6 | unit | No | |
ROR7 | unit | No | |
ROT | location | No | |
Score | integer | Yes | |
SOD1 | location | No | |
SOD1_Copy | location | No | |
SOD1_Copy_2 | location | No | |
SOD1_Copy_3 | location | No | |
SODarray | lightning | Yes | |
SODCaster | unit | No | |
SODmain | location | No | |
SoDtg | unit | No | |
Stomp_Location | location | No | |
Stomper | unit | No | |
STSF | location | No | |
STSFc | unit | No | |
STSFt | unit | No | |
t1 | trigger | No | |
t1_Copy | trigger | No | |
t1_Copy_2 | trigger | No | |
t1_Copy_3 | trigger | No | |
t1_Copy_4 | trigger | No | |
t1_Copy_5 | trigger | No | |
t1_Copy_6 | trigger | No | |
t1_Copy_7 | trigger | No | |
t1_Copy_8 | trigger | No | |
Target | unit | No | |
targetAOESGD | unit | No | |
Timer | timer | No | |
TotalMessages | integer | Yes | |
UC | location | No | |
UC1 | location | No | |
unitAOESNO | unit | No | |
Victim_multi | unit | Yes | |
Way1 | unit | No | |
Way2 | unit | No | |
WTF | unit | No |
//TESH.scrollpos=8
//TESH.alwaysfold=0
function Trig_Set_gold_Actions takes nothing returns nothing
call SetPlayerStateBJ( Player(0), PLAYER_STATE_RESOURCE_GOLD, 550 )
call SetPlayerStateBJ( Player(1), PLAYER_STATE_RESOURCE_GOLD, 550 )
call SetPlayerStateBJ( Player(2), PLAYER_STATE_RESOURCE_GOLD, 550 )
call SetPlayerStateBJ( Player(3), PLAYER_STATE_RESOURCE_GOLD, 550 )
call SetPlayerStateBJ( Player(4), PLAYER_STATE_RESOURCE_GOLD, 550 )
call SetPlayerStateBJ( Player(5), PLAYER_STATE_RESOURCE_GOLD, 550 )
call SetPlayerStateBJ( Player(6), PLAYER_STATE_RESOURCE_GOLD, 550 )
call SetPlayerStateBJ( Player(7), PLAYER_STATE_RESOURCE_GOLD, 550 )
call SetPlayerStateBJ( Player(8), PLAYER_STATE_RESOURCE_GOLD, 550 )
call SetPlayerStateBJ( Player(9), PLAYER_STATE_RESOURCE_GOLD, 550 )
call SetPlayerStateBJ( Player(10), PLAYER_STATE_RESOURCE_GOLD, 550 )
call SetPlayerStateBJ( Player(11), PLAYER_STATE_RESOURCE_GOLD, 550 )
endfunction
//===========================================================================
function InitTrig_Set_gold takes nothing returns nothing
set gg_trg_Set_gold = CreateTrigger( )
call TriggerAddAction( gg_trg_Set_gold, function Trig_Set_gold_Actions )
endfunction
function Trig_visions_Actions takes nothing returns nothing
// Vision Reg 1
call CreateFogModifierRectBJ( true, Player(0), FOG_OF_WAR_VISIBLE, gg_rct_Vision_Reg_1 )
call CreateFogModifierRectBJ( true, Player(1), FOG_OF_WAR_VISIBLE, gg_rct_Vision_Reg_1 )
call CreateFogModifierRectBJ( true, Player(2), FOG_OF_WAR_VISIBLE, gg_rct_Vision_Reg_1 )
call CreateFogModifierRectBJ( true, Player(3), FOG_OF_WAR_VISIBLE, gg_rct_Vision_Reg_1 )
call CreateFogModifierRectBJ( true, Player(4), FOG_OF_WAR_VISIBLE, gg_rct_Vision_Reg_1 )
call CreateFogModifierRectBJ( true, Player(5), FOG_OF_WAR_VISIBLE, gg_rct_Vision_Reg_1 )
call CreateFogModifierRectBJ( true, Player(6), FOG_OF_WAR_VISIBLE, gg_rct_Vision_Reg_1 )
call CreateFogModifierRectBJ( true, Player(7), FOG_OF_WAR_VISIBLE, gg_rct_Vision_Reg_1 )
call CreateFogModifierRectBJ( true, Player(8), FOG_OF_WAR_VISIBLE, gg_rct_Vision_Reg_1 )
call CreateFogModifierRectBJ( true, Player(9), FOG_OF_WAR_VISIBLE, gg_rct_Vision_Reg_1 )
call CreateFogModifierRectBJ( true, Player(10), FOG_OF_WAR_VISIBLE, gg_rct_Vision_Reg_1 )
call CreateFogModifierRectBJ( true, Player(11), FOG_OF_WAR_VISIBLE, gg_rct_Vision_Reg_1 )
// Vision Reg 3
call CreateFogModifierRectBJ( true, Player(0), FOG_OF_WAR_VISIBLE, gg_rct_Vision_Reg_3 )
call CreateFogModifierRectBJ( true, Player(1), FOG_OF_WAR_VISIBLE, gg_rct_Vision_Reg_3 )
call CreateFogModifierRectBJ( true, Player(2), FOG_OF_WAR_VISIBLE, gg_rct_Vision_Reg_3 )
call CreateFogModifierRectBJ( true, Player(3), FOG_OF_WAR_VISIBLE, gg_rct_Vision_Reg_3 )
call CreateFogModifierRectBJ( true, Player(4), FOG_OF_WAR_VISIBLE, gg_rct_Vision_Reg_3 )
call CreateFogModifierRectBJ( true, Player(5), FOG_OF_WAR_VISIBLE, gg_rct_Vision_Reg_3 )
call CreateFogModifierRectBJ( true, Player(6), FOG_OF_WAR_VISIBLE, gg_rct_Vision_Reg_3 )
call CreateFogModifierRectBJ( true, Player(7), FOG_OF_WAR_VISIBLE, gg_rct_Vision_Reg_3 )
call CreateFogModifierRectBJ( true, Player(8), FOG_OF_WAR_VISIBLE, gg_rct_Vision_Reg_3 )
call CreateFogModifierRectBJ( true, Player(9), FOG_OF_WAR_VISIBLE, gg_rct_Vision_Reg_3 )
call CreateFogModifierRectBJ( true, Player(10), FOG_OF_WAR_VISIBLE, gg_rct_Vision_Reg_3 )
call CreateFogModifierRectBJ( true, Player(11), FOG_OF_WAR_VISIBLE, gg_rct_Vision_Reg_3 )
endfunction
//===========================================================================
function InitTrig_visions takes nothing returns nothing
set gg_trg_visions = CreateTrigger( )
call TriggerAddAction( gg_trg_visions, function Trig_visions_Actions )
endfunction
function Trig_Exp_Actions takes nothing returns nothing
call SetPlayerHandicapXPBJ( Player(0), 200.00 )
call SetPlayerHandicapXPBJ( Player(1), 200.00 )
call SetPlayerHandicapXPBJ( Player(2), 200.00 )
call SetPlayerHandicapXPBJ( Player(3), 200.00 )
call SetPlayerHandicapXPBJ( Player(4), 200.00 )
call SetPlayerHandicapXPBJ( Player(5), 200.00 )
call SetPlayerHandicapXPBJ( Player(6), 200.00 )
call SetPlayerHandicapXPBJ( Player(7), 200.00 )
call SetPlayerHandicapXPBJ( Player(8), 200.00 )
call SetPlayerHandicapXPBJ( Player(9), 200.00 )
call SetPlayerHandicapXPBJ( Player(10), 200.00 )
call SetPlayerHandicapXPBJ( Player(11), 200.00 )
endfunction
//===========================================================================
function InitTrig_Exp takes nothing returns nothing
set gg_trg_Exp = CreateTrigger( )
call TriggerAddAction( gg_trg_Exp, function Trig_Exp_Actions )
endfunction
function Trig_Gravity_Desforation_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A003' ) ) then
return false
endif
return true
endfunction
function Trig_Gravity_Desforation_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'n027', GetOwningPlayer(GetSpellAbilityUnit()), GetUnitLoc(GetSpellTargetUnit()), bj_UNIT_FACING )
set udg_targetAOESGD = GetLastCreatedUnit()
call UnitApplyTimedLifeBJ( 1.50, 'BTLF', udg_targetAOESGD )
endfunction
//===========================================================================
function InitTrig_Gravity_Desforation takes nothing returns nothing
set gg_trg_Gravity_Desforation = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Gravity_Desforation, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Gravity_Desforation, Condition( function Trig_Gravity_Desforation_Conditions ) )
call TriggerAddAction( gg_trg_Gravity_Desforation, function Trig_Gravity_Desforation_Actions )
endfunction
function Trig_Arctic_Field_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00A' ) ) then
return false
endif
return true
endfunction
function Trig_Arctic_Field_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'nfrm', GetOwningPlayer(GetSpellAbilityUnit()), GetUnitLoc(GetSpellAbilityUnit()), bj_UNIT_FACING )
set udg_ice5 = GetLastCreatedUnit()
call CreateNUnitsAtLoc( 1, 'nfrm', GetOwningPlayer(GetSpellAbilityUnit()), PolarProjectionBJ(GetUnitLoc(GetSpellAbilityUnit()), 300.00, 90.00), bj_UNIT_FACING )
set udg_ice1 = GetLastCreatedUnit()
call CreateNUnitsAtLoc( 1, 'nfrm', GetOwningPlayer(GetSpellAbilityUnit()), PolarProjectionBJ(GetUnitLoc(GetSpellAbilityUnit()), 300.00, 270.00), bj_UNIT_FACING )
set udg_ice2 = GetLastCreatedUnit()
call CreateNUnitsAtLoc( 1, 'nfrm', GetOwningPlayer(GetSpellAbilityUnit()), PolarProjectionBJ(GetUnitLoc(GetSpellAbilityUnit()), 300.00, 360.00), bj_UNIT_FACING )
set udg_ice3 = GetLastCreatedUnit()
call CreateNUnitsAtLoc( 1, 'nfrm', GetOwningPlayer(GetSpellAbilityUnit()), PolarProjectionBJ(GetUnitLoc(GetSpellAbilityUnit()), 300.00, 180.00), bj_UNIT_FACING )
set udg_ice4 = GetLastCreatedUnit()
call UnitApplyTimedLifeBJ( 1.50, 'BTLF', udg_ice5 )
call UnitApplyTimedLifeBJ( 1.50, 'BTLF', udg_ice1 )
call UnitApplyTimedLifeBJ( 1.50, 'BTLF', udg_ice2 )
call UnitApplyTimedLifeBJ( 1.50, 'BTLF', udg_ice3 )
call UnitApplyTimedLifeBJ( 1.50, 'BTLF', udg_ice4 )
endfunction
//===========================================================================
function InitTrig_Arctic_Field takes nothing returns nothing
set gg_trg_Arctic_Field = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Arctic_Field, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Arctic_Field, Condition( function Trig_Arctic_Field_Conditions ) )
call TriggerAddAction( gg_trg_Arctic_Field, function Trig_Arctic_Field_Actions )
endfunction
//TESH.scrollpos=0
//TESH.alwaysfold=0
function Trig_Nova_Storm_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00E' ) ) then
return false
endif
return true
endfunction
function Trig_Nova_Storm_Actions takes nothing returns nothing
set udg_AOESNS = GetUnitLoc(GetSpellAbilityUnit())
call PauseUnitBJ( true, GetSpellAbilityUnit() )
call CreateNUnitsAtLoc( 1, 'h00F', GetOwningPlayer(GetSpellAbilityUnit()), udg_AOESNS, bj_UNIT_FACING )
set udg_AOESNSMU = GetLastCreatedUnit()
call TriggerSleepAction( 1.00 )
call AddSpecialEffectLocBJ( udg_AOESNS, "Abilities\\Spells\\Orc\\Purge\\PurgeBuffTarget.mdl" )
call TriggerSleepAction( 0.30 )
call AddSpecialEffectLocBJ( udg_AOESNS, "Abilities\\Spells\\Orc\\Purge\\PurgeBuffTarget.mdl" )
call TriggerSleepAction( 0.30 )
call AddSpecialEffectLocBJ( udg_AOESNS, "Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl" )
call TriggerSleepAction( 0.30 )
call AddSpecialEffectLocBJ( udg_AOESNS, "Abilities\\Spells\\Orc\\Purge\\PurgeBuffTarget.mdl" )
call TriggerSleepAction( 0.30 )
call AddSpecialEffectLocBJ( udg_AOESNS, "Abilities\\Spells\\Orc\\Purge\\PurgeBuffTarget.mdl" )
call TriggerSleepAction( 0.30 )
call AddSpecialEffectLocBJ( udg_AOESNS, "Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl" )
call TriggerSleepAction( 0.75 )
call CreateNUnitsAtLoc( 1, 'h00F', GetOwningPlayer(GetSpellAbilityUnit()), PolarProjectionBJ(udg_AOESNS, 750.00, 90.00), bj_UNIT_FACING )
set udg_NS1 = GetLastCreatedUnit()
call CreateNUnitsAtLoc( 1, 'h00F', GetOwningPlayer(GetSpellAbilityUnit()), PolarProjectionBJ(udg_AOESNS, 750.00, 270.00), bj_UNIT_FACING )
set udg_NS1_Copy = GetLastCreatedUnit()
call CreateNUnitsAtLoc( 1, 'h00F', GetOwningPlayer(GetSpellAbilityUnit()), PolarProjectionBJ(udg_AOESNS, 750.00, 360.00), bj_UNIT_FACING )
set udg_NS1_Copy_2 = GetLastCreatedUnit()
call CreateNUnitsAtLoc( 1, 'h00F', GetOwningPlayer(GetSpellAbilityUnit()), PolarProjectionBJ(udg_AOESNS, 750.00, 180.00), bj_UNIT_FACING )
set udg_NS1_Copy_3 = GetLastCreatedUnit()
call AddLightningLoc( "AFOD", udg_AOESNS, GetUnitLoc(udg_NS1) )
set udg_lightning1 = GetLastCreatedLightningBJ()
call AddLightningLoc( "AFOD", udg_AOESNS, GetUnitLoc(udg_NS1_Copy) )
set udg_lightning1_Copy = GetLastCreatedLightningBJ()
call AddLightningLoc( "AFOD", udg_AOESNS, GetUnitLoc(udg_NS1_Copy_2) )
set udg_lightning1_Copy_2 = GetLastCreatedLightningBJ()
call AddLightningLoc( "AFOD", udg_AOESNS, GetUnitLoc(udg_NS1_Copy_3) )
set udg_lightning1_Copy_3 = GetLastCreatedLightningBJ()
call TriggerSleepAction( 3.00 )
call CreateNUnitsAtLoc( 1, 'h00F', GetOwningPlayer(GetSpellAbilityUnit()), PolarProjectionBJ(udg_AOESNS, 250.00, 45.00), bj_UNIT_FACING )
set udg_NS1_Copy_4 = GetLastCreatedUnit()
call CreateNUnitsAtLoc( 1, 'h00F', GetOwningPlayer(GetSpellAbilityUnit()), PolarProjectionBJ(udg_AOESNS, 250.00, 135.00), bj_UNIT_FACING )
set udg_NS1_Copy_5 = GetLastCreatedUnit()
call CreateNUnitsAtLoc( 1, 'h00F', GetOwningPlayer(GetSpellAbilityUnit()), PolarProjectionBJ(udg_AOESNS, 250.00, 225.00), bj_UNIT_FACING )
set udg_NS1_Copy_6 = GetLastCreatedUnit()
call CreateNUnitsAtLoc( 1, 'h00F', GetOwningPlayer(GetSpellAbilityUnit()), PolarProjectionBJ(udg_AOESNS, 250.00, 315.00), bj_UNIT_FACING )
set udg_NS1_Copy_7 = GetLastCreatedUnit()
call AddLightningLoc( "AFOD", udg_AOESNS, GetUnitLoc(udg_NS1_Copy_4) )
set udg_lightning1_Copy_4 = GetLastCreatedLightningBJ()
call AddLightningLoc( "AFOD", udg_AOESNS, GetUnitLoc(udg_NS1_Copy_5) )
set udg_lightning1_Copy_5 = GetLastCreatedLightningBJ()
call AddLightningLoc( "AFOD", udg_AOESNS, GetUnitLoc(udg_NS1_Copy_6) )
set udg_lightning1_Copy_6 = GetLastCreatedLightningBJ()
call AddLightningLoc( "AFOD", udg_AOESNS, GetUnitLoc(udg_NS1_Copy_7) )
set udg_lightning1_Copy_7 = GetLastCreatedLightningBJ()
call TriggerSleepAction( 3.00 )
call SetUnitPositionLoc( udg_NS1_Copy_4, PolarProjectionBJ(udg_AOESNS, 500.00, 45.00) )
call SetUnitPositionLoc( udg_NS1_Copy_5, PolarProjectionBJ(udg_AOESNS, 500.00, 135.00) )
call SetUnitPositionLoc( udg_NS1_Copy_6, PolarProjectionBJ(udg_AOESNS, 500.00, 225.00) )
call SetUnitPositionLoc( udg_NS1_Copy_7, PolarProjectionBJ(udg_AOESNS, 500.00, 315.00) )
call MoveLightningLoc( udg_lightning1_Copy_4, udg_AOESNS, GetUnitLoc(udg_NS1_Copy_4) )
call MoveLightningLoc( udg_lightning1_Copy_5, udg_AOESNS, GetUnitLoc(udg_NS1_Copy_5) )
call MoveLightningLoc( udg_lightning1_Copy_6, udg_AOESNS, GetUnitLoc(udg_NS1_Copy_6) )
call MoveLightningLoc( udg_lightning1_Copy_7, udg_AOESNS, GetUnitLoc(udg_NS1_Copy_7) )
call TriggerSleepAction( 3.00 )
call SetUnitPositionLoc( udg_NS1_Copy_4, PolarProjectionBJ(udg_AOESNS, 750.00, 45.00) )
call SetUnitPositionLoc( udg_NS1_Copy_5, PolarProjectionBJ(udg_AOESNS, 750.00, 135.00) )
call SetUnitPositionLoc( udg_NS1_Copy_6, PolarProjectionBJ(udg_AOESNS, 750.00, 225.00) )
call SetUnitPositionLoc( udg_NS1_Copy_7, PolarProjectionBJ(udg_AOESNS, 750.00, 315.00) )
call MoveLightningLoc( udg_lightning1_Copy_4, udg_AOESNS, GetUnitLoc(udg_NS1_Copy_4) )
call MoveLightningLoc( udg_lightning1_Copy_5, udg_AOESNS, GetUnitLoc(udg_NS1_Copy_5) )
call MoveLightningLoc( udg_lightning1_Copy_6, udg_AOESNS, GetUnitLoc(udg_NS1_Copy_6) )
call MoveLightningLoc( udg_lightning1_Copy_7, udg_AOESNS, GetUnitLoc(udg_NS1_Copy_7) )
call PauseUnitBJ( false, GetSpellAbilityUnit() )
call TriggerSleepAction( 5.00 )
call RemoveUnit( udg_NS1 )
call RemoveUnit( udg_NS1_Copy )
call RemoveUnit( udg_NS1_Copy_2 )
call RemoveUnit( udg_NS1_Copy_3 )
call RemoveUnit( udg_NS1_Copy_4 )
call RemoveUnit( udg_NS1_Copy_5 )
call RemoveUnit( udg_NS1_Copy_6 )
call RemoveUnit( udg_NS1_Copy_7 )
call RemoveUnit( udg_AOESNSMU )
call DestroyLightningBJ( udg_lightning1 )
call DestroyLightningBJ( udg_lightning1_Copy )
call DestroyLightningBJ( udg_lightning1_Copy_2 )
call DestroyLightningBJ( udg_lightning1_Copy_3 )
call DestroyLightningBJ( udg_lightning1_Copy_4 )
call DestroyLightningBJ( udg_lightning1_Copy_5 )
call DestroyLightningBJ( udg_lightning1_Copy_6 )
call DestroyLightningBJ( udg_lightning1_Copy_7 )
endfunction
//===========================================================================
function InitTrig_Nova_Storm takes nothing returns nothing
set gg_trg_Nova_Storm = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Nova_Storm, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Nova_Storm, Condition( function Trig_Nova_Storm_Conditions ) )
call TriggerAddAction( gg_trg_Nova_Storm, function Trig_Nova_Storm_Actions )
endfunction
function Trig_Nova_Storm_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00E' ) ) then
return false
endif
return true
endfunction
function Trig_Nova_Storm_1_Actions takes nothing returns nothing
call AddWeatherEffectSaveLast( GetPlayableMapRect(), 'RAhr' )
call EnableWeatherEffect( GetLastCreatedWeatherEffect(), true )
call TriggerSleepAction( 10.00 )
call EnableWeatherEffect( GetLastCreatedWeatherEffect(), false )
endfunction
//===========================================================================
function InitTrig_Nova_Storm_1 takes nothing returns nothing
set gg_trg_Nova_Storm_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Nova_Storm_1, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Nova_Storm_1, Condition( function Trig_Nova_Storm_1_Conditions ) )
call TriggerAddAction( gg_trg_Nova_Storm_1, function Trig_Nova_Storm_1_Actions )
endfunction
function Trig_Revive_Leaving_Func002001 takes nothing returns boolean
return ( IsUnitType(GetEnteringUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Revive_Leaving_Func002002 takes nothing returns boolean
return ( IsUnitType(GetEnteringUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Revive_Leaving_Conditions takes nothing returns boolean
if ( not GetBooleanAnd( Trig_Revive_Leaving_Func002001(), Trig_Revive_Leaving_Func002002() ) ) then
return false
endif
return true
endfunction
function Trig_Revive_Leaving_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetEnteringUnit(), GetRandomLocInRect(gg_rct_GetInMap) )
endfunction
//===========================================================================
function InitTrig_Revive_Leaving takes nothing returns nothing
set gg_trg_Revive_Leaving = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Revive_Leaving, gg_rct_BackToWar )
call TriggerAddCondition( gg_trg_Revive_Leaving, Condition( function Trig_Revive_Leaving_Conditions ) )
call TriggerAddAction( gg_trg_Revive_Leaving, function Trig_Revive_Leaving_Actions )
endfunction
function Trig_Revive_Space_enter_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetEnteringUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Revive_Space_enter_Actions takes nothing returns nothing
call SetUnitInvulnerable( GetEnteringUnit(), true )
endfunction
//===========================================================================
function InitTrig_Revive_Space_enter takes nothing returns nothing
set gg_trg_Revive_Space_enter = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Revive_Space_enter, gg_rct_InvuernableReg )
call TriggerAddCondition( gg_trg_Revive_Space_enter, Condition( function Trig_Revive_Space_enter_Conditions ) )
call TriggerAddAction( gg_trg_Revive_Space_enter, function Trig_Revive_Space_enter_Actions )
endfunction
function Trig_Revive_leaver_Actions takes nothing returns nothing
call SetUnitInvulnerable( GetLeavingUnit(), false )
endfunction
//===========================================================================
function InitTrig_Revive_leaver takes nothing returns nothing
set gg_trg_Revive_leaver = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Revive_leaver, gg_rct_InvuernableReg )
call TriggerAddAction( gg_trg_Revive_leaver, function Trig_Revive_leaver_Actions )
endfunction