Name | Type | is_array | initial_value |
AMD1B | location | Yes | |
AMD1B_Cnt | integer | No | |
AMD1NB | location | Yes | |
AMD1NB_Cnt | integer | No | |
AOM_Damage | integer | No | |
AttackForce | group | No | |
AttackForceElite | group | No | |
Counter | integer | No | |
CountGameOver | timerdialog | No | |
CountPandora | timerdialog | No | |
DialogBDiff | button | Yes | |
DialogDiff | dialog | No | |
DifficultyLevel | integer | No | |
FP_Cnt1 | integer | No | |
FP_Cnt2 | integer | No | |
FP_SFX1 | effect | Yes | |
FP_SFX2 | effect | Yes | |
GameOver | timer | No | |
Group | group | No | |
GSAmount | integer | No | |
GSBoolStat | boolean | No | |
GSCombo | integer | No | |
GSTimer | timer | No | |
Loop1 | integervar | No | |
P2 | location | No | |
P3 | location | No | |
PandoraIn | timer | No | |
Point | location | No | |
Point2 | location | No | |
TheEnemies | force | No | |
TimeBoard | multiboard | No | |
TimeMinute | integer | No | |
TimerReal | real | No | |
TimeSecond | integer | No | |
TMAngle | real | No | |
TMCaster | unit | No | |
TMDest | unit | No | |
TMGroup | group | No | |
TMLevel | integer | No | |
TMMaxRange | real | No | |
TMPoint | location | No | |
TMPoint2 | location | No | |
TMRange | real | No | |
TMSpeed | real | No | |
TP_Cnt1 | integer | No | |
TP_Cnt2 | integer | No | |
TP_SFX1 | effect | Yes | |
TP_SFX2 | effect | Yes | |
TS_Cnt | integer | No | |
TS_Loop | integer | No | |
TS_SFX | effect | Yes | |
TS_Timer | timer | No | |
Vis | fogmodifier | Yes |
function Trig_Balance_Func005C takes nothing returns boolean
if ( ( GetUnitTypeId(GetTrainedUnit()) == 'HAAA' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetTrainedUnit()) == 'H000' ) ) then
return true
endif
return false
endfunction
function Trig_Balance_Conditions takes nothing returns boolean
if ( not Trig_Balance_Func005C() ) then
return false
endif
return true
endfunction
function Trig_Balance_Func001A takes nothing returns nothing
call SetPlayerUnitAvailableBJ( GetUnitTypeId(GetTrainedUnit()), false, GetEnumPlayer() )
endfunction
function Trig_Balance_Func003A takes nothing returns nothing
call SetPlayerHandicapBJ( GetEnumPlayer(), ( GetPlayerHandicapBJ(GetEnumPlayer()) + 250.00 ) )
endfunction
function Trig_Balance_Actions takes nothing returns nothing
call ForForce( GetPlayersAll(), function Trig_Balance_Func001A )
set udg_TheEnemies = GetPlayersEnemies(GetTriggerPlayer())
call ForForce( udg_TheEnemies, function Trig_Balance_Func003A )
call DestroyForce( udg_TheEnemies )
endfunction
//===========================================================================
function InitTrig_Balance takes nothing returns nothing
set gg_trg_Balance = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Balance, EVENT_PLAYER_UNIT_TRAIN_FINISH )
call TriggerAddCondition( gg_trg_Balance, Condition( function Trig_Balance_Conditions ) )
call TriggerAddAction( gg_trg_Balance, function Trig_Balance_Actions )
endfunction
function Trig_Challenge_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetTriggerUnit()) != 'HAAA' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetTriggerUnit()) != 'H000' ) ) then
return false
endif
return true
endfunction
function Trig_Challenge_Func006A takes nothing returns nothing
call SetPlayerHandicapBJ( GetEnumPlayer(), ( GetPlayerHandicapBJ(GetEnumPlayer()) + 10.00 ) )
endfunction
function Trig_Challenge_Actions takes nothing returns nothing
set udg_TheEnemies = GetPlayersAllies(GetTriggerPlayer())
call ForForce( udg_TheEnemies, function Trig_Challenge_Func006A )
call DestroyForce( udg_TheEnemies )
endfunction
//===========================================================================
function InitTrig_Challenge takes nothing returns nothing
set gg_trg_Challenge = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Challenge, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Challenge, Condition( function Trig_Challenge_Conditions ) )
call TriggerAddAction( gg_trg_Challenge, function Trig_Challenge_Actions )
endfunction
function Trig_Spell_Inits_Actions takes nothing returns nothing
set udg_TMSpeed = 100.00
set udg_TMPoint = GetRectCenter(GetPlayableMapRect())
call CreateNUnitsAtLoc( 1, 'hpea', Player(PLAYER_NEUTRAL_PASSIVE), udg_TMPoint, bj_UNIT_FACING )
set udg_TMDest = GetLastCreatedUnit()
call ShowUnitHide( udg_TMDest )
call RemoveLocation( udg_TMPoint )
endfunction
//===========================================================================
function InitTrig_Spell_Inits takes nothing returns nothing
set gg_trg_Spell_Inits = CreateTrigger( )
call TriggerAddAction( gg_trg_Spell_Inits, function Trig_Spell_Inits_Actions )
endfunction
function Trig_Death_Knock_Conditions takes nothing returns boolean
if ( not ( UnitHasBuffBJ(GetTriggerUnit(), 'B004') == true ) ) then
return false
endif
return true
endfunction
function Trig_Death_Knock_Actions takes nothing returns nothing
set udg_Point = GetUnitLoc(GetTriggerUnit())
set udg_Point2 = PolarProjectionBJ(udg_Point, 100.00, GetUnitFacing(GetAttacker()))
call SetUnitPositionLoc( GetTriggerUnit(), udg_Point2 )
call RemoveLocation( udg_Point )
call RemoveLocation( udg_Point2 )
endfunction
//===========================================================================
function InitTrig_Death_Knock takes nothing returns nothing
set gg_trg_Death_Knock = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Death_Knock, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Death_Knock, Condition( function Trig_Death_Knock_Conditions ) )
call TriggerAddAction( gg_trg_Death_Knock, function Trig_Death_Knock_Actions )
endfunction
function Trig_Thunder_Check_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A000' ) ) then
return false
endif
return true
endfunction
function Trig_Thunder_Check_Func003C takes nothing returns boolean
if ( not ( IsTerrainPathableBJ(udg_TMPoint2, PATHING_TYPE_WALKABILITY) == true ) ) then
return false
endif
return true
endfunction
function Trig_Thunder_Check_Actions takes nothing returns nothing
set udg_TMPoint = GetUnitLoc(GetTriggerUnit())
set udg_TMPoint2 = GetSpellTargetLoc()
if ( Trig_Thunder_Check_Func003C() ) then
call ResetUnitAnimation( GetTriggerUnit() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_022" )
call TriggerSleepAction( 1.00 )
call SetUnitManaBJ( GetTriggerUnit(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetTriggerUnit()) + ( 125.00 + ( 25.00 * I2R(GetUnitAbilityLevelSwapped('A000', GetTriggerUnit())) ) ) ) )
else
call EnableTrigger( gg_trg_Thunder_Move )
call DisplayTextToForce( GetPlayersAll(), ( "the time to the target point is " + R2S(( DistanceBetweenPoints(udg_TMPoint, udg_TMPoint2) / udg_TMSpeed )) ) )
call DisplayTextToForce( GetPlayersAll(), ( "range between the target and hero's position is " + R2S(DistanceBetweenPoints(udg_TMPoint, udg_TMPoint2)) ) )
endif
call RemoveLocation( udg_TMPoint )
call RemoveLocation( udg_TMPoint2 )
endfunction
//===========================================================================
function InitTrig_Thunder_Check takes nothing returns nothing
set gg_trg_Thunder_Check = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Thunder_Check, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Thunder_Check, Condition( function Trig_Thunder_Check_Conditions ) )
call TriggerAddAction( gg_trg_Thunder_Check, function Trig_Thunder_Check_Actions )
endfunction
function Trig_Thunder_Move_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A000' ) ) then
return false
endif
return true
endfunction
function Trig_Thunder_Move_Func010C takes nothing returns boolean
if ( not ( DistanceBetweenPoints(udg_TMPoint, udg_TMPoint2) >= udg_TMMaxRange ) ) then
return false
endif
return true
endfunction
function Trig_Thunder_Move_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
set udg_TMLevel = GetUnitAbilityLevelSwapped('A000', GetTriggerUnit())
set udg_TMAngle = GetUnitFacing(GetTriggerUnit())
set udg_TMPoint = GetUnitLoc(GetTriggerUnit())
set udg_TMPoint2 = GetSpellTargetLoc()
set udg_TMCaster = GetTriggerUnit()
set udg_TMMaxRange = ( 1000.00 * I2R(udg_TMLevel) )
call SetUnitPathing( udg_TMCaster, false )
call SetUnitVertexColorBJ( udg_TMCaster, 100, 100, 100, 100.00 )
if ( Trig_Thunder_Move_Func010C() ) then
set udg_TMRange = udg_TMMaxRange
else
set udg_TMRange = DistanceBetweenPoints(udg_TMPoint, udg_TMPoint2)
endif
call RemoveLocation( udg_TMPoint )
call RemoveLocation( udg_TMPoint2 )
call EnableTrigger( gg_trg_TM_Loop )
endfunction
//===========================================================================
function InitTrig_Thunder_Move takes nothing returns nothing
set gg_trg_Thunder_Move = CreateTrigger( )
call DisableTrigger( gg_trg_Thunder_Move )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Thunder_Move, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Thunder_Move, Condition( function Trig_Thunder_Move_Conditions ) )
call TriggerAddAction( gg_trg_Thunder_Move, function Trig_Thunder_Move_Actions )
endfunction
function Trig_TM_Loop_Func001Func014002003 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(udg_TMCaster)) == true )
endfunction
function Trig_TM_Loop_Func001Func018Func006C takes nothing returns boolean
if ( not ( GetRandomInt(1, 100) >= 99 ) ) then
return false
endif
return true
endfunction
function Trig_TM_Loop_Func001Func018A takes nothing returns nothing
call UnitDamageTargetBJ( udg_TMCaster, GetEnumUnit(), ( 100.00 * I2R(udg_TMLevel) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call AddSpecialEffectTargetUnitBJ( "origin", GetEnumUnit(), "Abilities\\Spells\\Orc\\Purge\\PurgeBuffTarget.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set udg_Point = PolarProjectionBJ(udg_TMPoint, udg_TMSpeed, udg_TMAngle)
call SetUnitPositionLoc( GetEnumUnit(), udg_Point )
if ( Trig_TM_Loop_Func001Func018Func006C() ) then
call KillUnit( GetTriggerUnit() )
call CreateTextTagUnitBJ( "TRIGSTR_021", GetTriggerUnit(), 0, 15.00, 100.00, 0.00, 0.00, 0 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 5 )
else
endif
endfunction
function Trig_TM_Loop_Func001Func019Func002C takes nothing returns boolean
if ( not ( GetUnitCurrentOrder(udg_TMDest) == OrderId("harvest") ) ) then
return false
endif
return true
endfunction
function Trig_TM_Loop_Func001Func019A takes nothing returns nothing
call IssueTargetOrder( udg_TMDest, "harvest", GetEnumDestructable() )
if ( Trig_TM_Loop_Func001Func019Func002C() ) then
call KillDestructable( GetEnumDestructable() )
else
endif
endfunction
function Trig_TM_Loop_Func001C takes nothing returns boolean
if ( not ( udg_TMRange > 0.00 ) ) then
return false
endif
return true
endfunction
function Trig_TM_Loop_Actions takes nothing returns nothing
if ( Trig_TM_Loop_Func001C() ) then
set udg_TMPoint = GetUnitLoc(udg_TMCaster)
set udg_TMPoint2 = PolarProjectionBJ(udg_TMPoint, udg_TMSpeed, udg_TMAngle)
set udg_TMRange = ( udg_TMRange - udg_TMSpeed )
call SetUnitPositionLoc( udg_TMCaster, udg_TMPoint2 )
set udg_TMGroup = GetUnitsInRangeOfLocMatching(300.00, udg_TMPoint, Condition(function Trig_TM_Loop_Func001Func014002003))
call SetUnitAnimation( udg_TMCaster, "attack" )
call AddSpecialEffectLocBJ( udg_TMPoint, "Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call ForGroupBJ( udg_TMGroup, function Trig_TM_Loop_Func001Func018A )
call EnumDestructablesInCircleBJ( 300.00, udg_TMPoint, function Trig_TM_Loop_Func001Func019A )
call DestroyGroup( udg_TMGroup )
call RemoveLocation( udg_TMPoint )
call RemoveLocation( udg_TMPoint2 )
else
call SetUnitVertexColorBJ( udg_TMCaster, 100, 100, 100, 0.00 )
call SetUnitPathing( udg_TMCaster, true )
set udg_TMPoint = GetUnitLoc(udg_TMCaster)
call AddSpecialEffectLocBJ( udg_TMPoint, "Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl" )
call RemoveLocation( udg_TMPoint )
set udg_TMAngle = 0.00
set udg_TMCaster = null
set udg_TMLevel = 0
call DisableTrigger( GetTriggeringTrigger() )
endif
endfunction
//===========================================================================
function InitTrig_TM_Loop takes nothing returns nothing
set gg_trg_TM_Loop = CreateTrigger( )
call DisableTrigger( gg_trg_TM_Loop )
call TriggerRegisterTimerEventPeriodic( gg_trg_TM_Loop, 0.04 )
call TriggerAddAction( gg_trg_TM_Loop, function Trig_TM_Loop_Actions )
endfunction
function Trig_Field_of_Firebolts_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00F' ) ) then
return false
endif
return true
endfunction
function Trig_Field_of_Firebolts_Func002002003 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(GetTriggerUnit())) == true )
endfunction
function Trig_Field_of_Firebolts_Func004A takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'h00C', GetOwningPlayer(GetTriggerUnit()), udg_Point, bj_UNIT_FACING )
call IssueTargetOrder( GetLastCreatedUnit(), "firebolt", GetEnumUnit() )
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetLastCreatedUnit() )
endfunction
function Trig_Field_of_Firebolts_Actions takes nothing returns nothing
set udg_Point = GetUnitLoc(GetSpellTargetUnit())
set udg_Group = GetUnitsInRangeOfLocMatching(700.00, udg_Point, Condition(function Trig_Field_of_Firebolts_Func002002003))
call TriggerSleepAction( 1.00 )
call ForGroupBJ( udg_Group, function Trig_Field_of_Firebolts_Func004A )
call RemoveLocation( udg_Point )
call DestroyGroup( udg_Group )
endfunction
//===========================================================================
function InitTrig_Field_of_Firebolts takes nothing returns nothing
set gg_trg_Field_of_Firebolts = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Field_of_Firebolts, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Field_of_Firebolts, Condition( function Trig_Field_of_Firebolts_Conditions ) )
call TriggerAddAction( gg_trg_Field_of_Firebolts, function Trig_Field_of_Firebolts_Actions )
endfunction