Name | Type | is_array | initial_value |
be_AAhero | unit | Yes | |
be_AAheroface | integer | No | |
be_AAnum | integer | No | |
be_ADchain | integer | No | |
be_ADdummy | unit | Yes | |
be_ADgroup | group | No | |
be_ADhero | unit | Yes | |
be_ADloc | location | No | |
be_ADpos | location | No | |
be_ADunit | unit | No | |
be_AEdummy | unit | No | |
be_AEdummy2 | unit | No | |
be_AEgroup | group | No | |
be_AEManaCharge | real | No | |
be_AEManaTap | real | No | |
be_AEpos | location | No | |
be_AEtarget | location | No | |
be_ArVlocationcastingunit | location | No | |
be_ArVunitennemy500 | group | No | |
be_ASgroup | group | No | |
be_ATgroup | group | No | |
be_ATmana | real | No | |
be_ATplayer | force | No | |
be_ATwell | group | No | |
be_AVbasemana | real | No | |
be_CAnum | real | No | |
be_CDgroup | group | No | |
be_CDpoint | location | No | |
be_CoFgroup | group | No | |
be_EMcasterloc | location | No | |
be_EMdummy | unit | No | |
be_EMtargetloc | location | No | |
be_HNgroup | group | No | |
be_HNloc | location | No | |
be_HSally | group | No | |
be_HSeffect | effect | No | |
be_HSennemy | group | No | |
be_HStarget | location | No | |
be_MTdummy | unit | No | |
be_MTgroup | group | No | |
be_MTloc | location | No | |
be_SoEtargetpoint | location | No | |
be_SPpositioncaster | location | No | |
be_SPrangergroup | group | No | |
BloodElves | button | No | |
Continue | button | No | |
Ennemy | force | Yes | |
Ennemy2 | force | No | |
EnnemyLoop | integer | No | |
Gold_mine | group | Yes | |
GroupEnnemy | force | No | |
Human | button | No | |
HumanReady | integer | No | |
il_SCdummy | unit | No | |
il_SCgroup | group | No | |
il_SCgroup2 | group | No | |
il_SCtarget | location | No | |
Leave_Game | button | No | |
Menu_Time_Int | integer | No | |
NbofHuman | integer | No | |
Nightelf | button | No | |
NumberEnnemyGroup | integer | No | |
NumberPlayerLose | integer | No | |
NumPlayer | integer | Yes | |
Orc | button | No | |
PeonAngle | real | No | |
PeonLoc | location | Yes | |
PeonLocation | location | No | |
PeonPickedPos | location | No | |
PickLoop | integer | No | |
PickRace | string | Yes | |
Player | player | Yes | |
PlayerLoop | integer | No | |
PlayerLoseLoop | integer | No | |
PlayerReady | boolean | Yes | |
Plose | boolean | Yes | |
Point | real | No | |
Race | dialog | No | |
RaceLoop | integer | No | |
RaceType | string | Yes | |
Random | button | No | |
StartLoc | location | Yes | |
Undead | button | No | |
UnitInvis | group | No | |
Win | dialog | No |
function Trig_MagicMissile_Conditions takes nothing returns boolean
return GetSpellAbilityId() == 'A00W'
endfunction
function Trig_MagicMissile_Actions takes nothing returns nothing
local location casterloc = GetUnitLoc(GetSpellAbilityUnit())
local location targetloc = GetSpellTargetLoc()
local unit dummy
call UnitDamageTargetBJ( GetSpellAbilityUnit(), GetSpellAbilityUnit(), 200.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call AddSpecialEffectTargetUnitBJ( "origin", GetSpellAbilityUnit(), "Abilities\\Spells\\Other\\Charm\\CharmTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
// Dummy Caster
call CreateNUnitsAtLoc( 1, 'h01X', GetOwningPlayer(GetSpellAbilityUnit()), targetloc, bj_UNIT_FACING )
call UnitAddAbilityBJ( 'A00T', GetLastCreatedUnit() )
call UnitApplyTimedLifeBJ( 3.00, 'BTLF', GetLastCreatedUnit() )
set dummy = GetLastCreatedUnit()
// Waiting
call TriggerSleepAction( ( DistanceBetweenPoints(casterloc, targetloc) / 1000.00 ) )
// Take damage/effect
call AddSpecialEffectLocBJ( targetloc, "Objects\\Spawnmodels\\NightElf\\NEDeathMedium\\NEDeath.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call IssueImmediateOrderBJ( dummy, "thunderclap" )
set dummy = null
call RemoveLocation( casterloc )
call RemoveLocation( targetloc )
endfunction
//===========================================================================
function InitTrig_MagicMissile takes nothing returns nothing
set gg_trg_MagicMissile = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_MagicMissile, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_MagicMissile, Condition( function Trig_MagicMissile_Conditions ) )
call TriggerAddAction( gg_trg_MagicMissile, function Trig_MagicMissile_Actions )
endfunction
function Trig_Magic_Ward_Func003C takes nothing returns boolean
if ( ( GetIssuedOrderIdBJ() == String2OrderIdBJ("immolation") ) ) then
return true
endif
if ( ( GetIssuedOrderIdBJ() == String2OrderIdBJ("unimmolation") ) ) then
return true
endif
return false
endfunction
function Trig_Magic_Ward_Conditions takes nothing returns boolean
if ( not Trig_Magic_Ward_Func003C() ) then
return false
endif
return true
endfunction
function Trig_Magic_Ward_Actions takes nothing returns nothing
local unit MGunit
set MGunit = GetOrderedUnit()
if ( GetIssuedOrderIdBJ() == String2OrderIdBJ("immolation") ) then
call UnitAddAbilityBJ( 'A01S', MGunit )
call TriggerSleepAction( 0.50 )
loop
exitwhen ( UnitHasBuffBJ(MGunit, 'B00A') == false )
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL, 0.50))
endloop
call UnitRemoveAbilityBJ( 'A01S', MGunit )
else
call UnitRemoveAbilityBJ( 'A01S', MGunit )
endif
endfunction
//===========================================================================
function InitTrig_Magic_Ward takes nothing returns nothing
set gg_trg_Magic_Ward = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Magic_Ward, EVENT_PLAYER_UNIT_ISSUED_ORDER )
call TriggerAddCondition( gg_trg_Magic_Ward, Condition( function Trig_Magic_Ward_Conditions ) )
call TriggerAddAction( gg_trg_Magic_Ward, function Trig_Magic_Ward_Actions )
endfunction
function Trig_ArcaneDistortion_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01N' ) ) then
return false
endif
return true
endfunction
function Trig_ArcaneDistortion_Func003002002003001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_MAGIC_IMMUNE) == false )
endfunction
function Trig_ArcaneDistortion_Func003002002003002001 takes nothing returns boolean
return ( IsUnitAliveBJ(GetFilterUnit()) == true )
endfunction
function Trig_ArcaneDistortion_Func003002002003002002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_ArcaneDistortion_Func003002002003002002002 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(GetSpellAbilityUnit())) == true )
endfunction
function Trig_ArcaneDistortion_Func003002002003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_ArcaneDistortion_Func003002002003002002001(), Trig_ArcaneDistortion_Func003002002003002002002() )
endfunction
function Trig_ArcaneDistortion_Func003002002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_ArcaneDistortion_Func003002002003002001(), Trig_ArcaneDistortion_Func003002002003002002() )
endfunction
function Trig_ArcaneDistortion_Func003002002003 takes nothing returns boolean
return GetBooleanAnd( Trig_ArcaneDistortion_Func003002002003001(), Trig_ArcaneDistortion_Func003002002003002() )
endfunction
function Trig_ArcaneDistortion_Func006Func008C takes nothing returns boolean
if ( not ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) > 200.00 ) ) then
return false
endif
return true
endfunction
function Trig_ArcaneDistortion_Func006A takes nothing returns nothing
call SetUnitTimeScalePercent( GetEnumUnit(), 0.00 )
call PauseUnitBJ( true, GetEnumUnit() )
call SetUnitInvulnerable( GetEnumUnit(), true )
endfunction
function Trig_ArcaneDistortion_Func006B takes nothing returns nothing
call SetUnitInvulnerable( GetEnumUnit(), false )
call PauseUnitBJ( false, GetEnumUnit() )
call SetUnitTimeScalePercent( GetEnumUnit(), 100.00 )
call UnitRemoveBuffBJ( 'B011', GetEnumUnit() )
call AddSpecialEffectTargetUnitBJ( "chest", GetEnumUnit(), "Abilities\\Spells\\Human\\ManaFlare\\ManaFlareBoltImpact.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
if ( Trig_ArcaneDistortion_Func006Func008C() ) then
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - 200.00 ) )
else
call SetUnitLifeBJ( GetEnumUnit(), 1.00 )
endif
endfunction
function Trig_ArcaneDistortion_Func006C takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'h01G', GetOwningPlayer( udg_be_ADunit ), udg_be_ADpos, bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 3.00, 'BTLF', GetLastCreatedUnit() )
call UnitAddAbilityBJ( 'A01O', GetLastCreatedUnit() )
call IssueTargetOrderBJ( GetLastCreatedUnit(), "cripple", GetEnumUnit() )
endfunction
function Trig_ArcaneDistortion_Actions takes nothing returns nothing
local location loc
local group grp
local unit caster
set caster = GetSpellAbilityUnit()
set loc = GetUnitLoc( caster )
set grp = GetRandomSubGroup(12, GetUnitsInRangeOfLocMatching(500.00, loc, Condition(function Trig_ArcaneDistortion_Func003002002003)))
call ForGroupBJ( grp, function Trig_ArcaneDistortion_Func006A )
call TriggerSleepAction( 30.00 )
call ForGroupBJ( grp, function Trig_ArcaneDistortion_Func006B )
//
set udg_be_ADpos = loc
set udg_be_ADunit = caster
//
call ForGroupBJ( grp, function Trig_ArcaneDistortion_Func006C )
set udg_be_ADpos = null
set udg_be_ADunit = null
set caster = null
set loc = null
set grp = null
call RemoveLocation( udg_be_ADpos )
call RemoveLocation( loc )
call DestroyGroup ( grp )
endfunction
//===========================================================================
function InitTrig_ArcaneDistortion takes nothing returns nothing
set gg_trg_ArcaneDistortion = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_ArcaneDistortion, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_ArcaneDistortion, Condition( function Trig_ArcaneDistortion_Conditions ) )
call TriggerAddAction( gg_trg_ArcaneDistortion, function Trig_ArcaneDistortion_Actions )
endfunction
function Trig_Shadow_Charm_Func003C takes nothing returns boolean
if ( ( GetIssuedOrderIdBJ() == String2OrderIdBJ("immolation") ) ) then
return true
endif
if ( ( GetIssuedOrderIdBJ() == String2OrderIdBJ("unimmolation") ) ) then
return true
endif
return false
endfunction
function Trig_Shadow_Charm_Conditions takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A01I', GetOrderedUnit()) > 0 ) ) then
return false
endif
if ( not Trig_Shadow_Charm_Func003C() ) then
return false
endif
return true
endfunction
function Trig_Shadow_Charm_Actions takes nothing returns nothing
local unit SCunit
set SCunit = GetOrderedUnit()
if ( GetIssuedOrderIdBJ() == String2OrderIdBJ("immolation") ) then
call SetUnitVertexColorBJ( SCunit, 100, 100, 100, 50.00 )
call UnitAddAbilityBJ( 'A01L', SCunit )
call UnitAddAbilityBJ( 'A01K', SCunit )
call SetUnitAbilityLevelSwapped( 'A01K', SCunit, GetUnitAbilityLevelSwapped('A01I', SCunit) )
call TriggerSleepAction( 0.50 )
loop
exitwhen ( UnitHasBuffBJ(SCunit, 'B00Z') == false )
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL, 0.50))
endloop
call SetUnitVertexColorBJ( SCunit, 100, 100, 100, 0.00 )
call UnitRemoveAbilityBJ( 'A01L', SCunit )
call UnitRemoveAbilityBJ( 'A01K', SCunit )
else
call SetUnitVertexColorBJ( SCunit, 100, 100, 100, 0.00 )
call UnitRemoveAbilityBJ( 'A01L', SCunit )
call UnitRemoveAbilityBJ( 'A01K', SCunit )
endif
endfunction
//===========================================================================
function InitTrig_Shadow_Charm takes nothing returns nothing
set gg_trg_Shadow_Charm = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Shadow_Charm, EVENT_PLAYER_UNIT_ISSUED_ORDER )
call TriggerAddCondition( gg_trg_Shadow_Charm, Condition( function Trig_Shadow_Charm_Conditions ) )
call TriggerAddAction( gg_trg_Shadow_Charm, function Trig_Shadow_Charm_Actions )
endfunction
function Trig_Tidal_Aura_Actions takes nothing returns nothing
call IssueImmediateOrderBJ( null, "stop" )
endfunction
//===========================================================================
function InitTrig_Tidal_Aura takes nothing returns nothing
set gg_trg_Tidal_Aura = CreateTrigger( )
call TriggerAddAction( gg_trg_Tidal_Aura, function Trig_Tidal_Aura_Actions )
endfunction