Name | Type | is_array | initial_value |
AngleVar04 | real | No | |
BlastedGroup | group | Yes | |
BlueHero | unit | No | |
BlueKills | integer | No | |
Boomer | unit | No | |
BS_Angle | real | Yes | |
BS_Distance | real | Yes | |
BS_Group | group | Yes | |
BS_Height | real | Yes | |
BS_Hero | unit | Yes | |
BS_Off | boolean | Yes | |
BS_Point | location | Yes | |
BS_Speed | real | Yes | |
BS_StartHeight | real | Yes | |
CasterPoint | location | No | |
CastingPoint | location | No | |
Distance | real | Yes | |
DistanceCheck | real | Yes | |
DmgDealer | unit | Yes | |
Effect_Time | real | No | |
EffectPoint | location | No | |
F_Integers | integer | Yes | |
F_ReachedFading | real | Yes | |
F_Time | real | Yes | |
F_Unit | unit | Yes | |
FA_Time | real | No | |
FA_Unit | unit | No | |
Fire_Effect | effect | No | |
Fire_Effect_Array | effect | Yes | |
Fire_Integer_Array | integer | Yes | |
Fire_Real_Time | real | Yes | |
Fire_Time | real | Yes | |
FireWall_Left | integervar | No | |
FireWall_Location | location | No | |
FireWall_Right | integervar | No | |
GreenHero | unit | No | |
GreenKills | integer | No | |
GreyHero | unit | No | |
GreyKills | integer | No | |
GunFireDmg | real | Yes | |
GunHelicopter | unit | Yes | |
HasHouse | boolean | Yes | |
HasWepon | boolean | Yes | |
HelicopterAngle | real | Yes | |
HelicopterHF | real | Yes | |
HelicopterMovePoint | location | No | |
HelicopterPoint | location | No | |
HelicopterSpeed | real | Yes | |
HelicopterTF | real | Yes | |
index | integer | Yes | |
IsDead | boolean | Yes | |
JD_Angle | real | Yes | |
JD_Animations | string | Yes | |
JD_Distances | real | Yes | |
JD_Effect | string | Yes | |
JD_Group | group | No | |
JD_HighSettings | real | Yes | |
JD_Integers | integer | Yes | |
JD_JumpHigh | real | Yes | |
JD_ReachedDistance | real | Yes | |
JD_RealTimer | real | Yes | |
JD_SpeedUnits | real | Yes | |
JD_TempPoint | location | Yes | |
JD_TreesDestroy | boolean | Yes | |
JD_Unit | unit | Yes | |
JDA_Animation | string | No | |
JDA_AnimationSpeed | real | No | |
JDA_Collusion | boolean | No | |
JDA_DestroyTrees_Dash | boolean | No | |
JDA_JumpHigh_Distance | real | No | |
JDA_SpecialEffect | string | No | |
JDA_Speed | real | No | |
JDA_TargetPoint | location | No | |
JDA_Unit | unit | No | |
KB_Angle | real | Yes | |
KB_Casters | unit | Yes | |
KB_CountBuffs | integer | No | |
KB_DestroyTrees | boolean | Yes | |
KB_EffectCounter | integer | Yes | |
KB_EffectCounter2 | integer | Yes | |
KB_Effects_1 | string | Yes | |
KB_Effects_2 | string | Yes | |
KB_GeneralIntegers | integervar | Yes | |
KB_KnockbackedUnits | group | No | |
KB_Levels | integer | Yes | |
KB_MaxDistance | real | Yes | |
KB_ReachedDistance | real | Yes | |
KB_ReducedReal | real | No | |
KB_ReduceSpeedReal | real | Yes | |
KB_SpecificSpeed | real | Yes | |
KB_StartPositions | location | Yes | |
KB_TempPoint | location | Yes | |
KB_TempReal | real | No | |
KB_TotalKnockUnits | integer | No | |
KB_Units | unit | Yes | |
KBA_Caster | unit | No | |
KBA_DestroyTrees | boolean | No | |
KBA_DistancePerLevel | real | No | |
KBA_Level | integer | No | |
KBA_SpecialEffects | string | Yes | |
KBA_Speed | real | No | |
KBA_StartingPosition | location | No | |
KBA_TargetUnit | unit | No | |
LbHero | unit | No | |
LeapTarget | unit | No | |
LeapTargetground | location | No | |
LightblueKills | integer | No | |
Meteor_Location | location | No | |
Meteor_Point2 | location | No | |
NEWheros | unit | Yes | |
NEWhouses | unit | Yes | |
NuclearFlame_Area | real | No | |
NuclearFlame_Location | location | No | |
OrangeHero | unit | No | |
OrangeKills | integer | No | |
PD_Angle | real | Yes | |
PD_Distances | real | Yes | |
PD_Integers | integer | Yes | |
PD_ReachedDistance | real | Yes | |
PD_RealTimer | real | Yes | |
PD_SpeedUnits | real | Yes | |
PD_TempPoint | location | Yes | |
PD_TestGroup | group | No | |
PD_TreesDestroy | boolean | Yes | |
PD_Unit | unit | Yes | |
PinkHero | unit | No | |
PinkKills | integer | No | |
PlayersLeft | integer | No | |
PurpleHero | unit | No | |
PurpleKills | integer | No | |
RedHero | unit | No | |
RedKills | integer | No | |
Sample_Group | group | No | |
Sample_Point | location | No | |
SendPoint | location | No | |
TealHero | unit | No | |
TealKills | integer | No | |
TempGroup | group | No | |
TempLoc36 | location | No | |
TempLoc37 | location | No | |
TempPlayerGroup | force | No | |
TempPoint | location | No | |
TempUnit | unit | No | UnitNull |
UC_Counter | integer | Yes | |
UC_Groups | group | Yes | |
UC_Inv | boolean | Yes | |
UC_SETTINGS_AreaOfEffect | real | Yes | |
UC_SETTINGS_Collosion | boolean | No | |
UC_SETTINGS_DestroyTrees_Dash | boolean | No | |
UC_SETTINGS_Invulnerable | boolean | No | |
UC_SETTINGS_Speed | real | No | |
UC_Target | unit | No | |
UC_TempPoint | location | Yes | |
UnitVarCaster8 | unit | No | |
Wave | integer | No | 1 |
WindCut | effect | Yes | |
YellowHero | unit | No | |
YellowKills | integer | No | |
ZombieTotal | integer | No | |
ZombieTotals | multiboard | No |
function Trig_Camera_Movement_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "You are the last hope of the human race, Your stuck on the outskirts of Calgary AB. A military expariment known as Project Z was expelled from a local military testing ground, and has quickly spread throughout the world. A cure is being develloped, but only if you can hold off the expariments until then. Defend the your house Lab with your life! I wish I had spell check!" )
call PanCameraTo(-1704,-1884)
endfunction
//===========================================================================
function InitTrig_Camera_Movement takes nothing returns nothing
set gg_trg_Camera_Movement = CreateTrigger( )
call TriggerAddAction( gg_trg_Camera_Movement, function Trig_Camera_Movement_Actions )
endfunction
function CreateIfPlaying takes nothing returns nothing
local unit u
local player p = GetEnumPlayer()
if(GetPlayerSlotState(p) == PLAYER_SLOT_STATE_PLAYING and (p == Player(0) or IsPlayerAlly(p,Player(0)))) then
set u = CreateUnit(GetEnumPlayer(),'H000',-1704,-1884,0)
set udg_NEWheros[GetPlayerId(GetEnumPlayer())] = u
call SetPlayerState(GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD, 100)
call UnitAddItemById(u,'I004')
endif
set p = null
set u = null
endfunction
function Trig_Create_Players_Actions takes nothing returns nothing
call ForForce(GetPlayersAll(), function CreateIfPlaying)
endfunction
//===========================================================================
function InitTrig_Create_Players takes nothing returns nothing
set gg_trg_Create_Players = CreateTrigger( )
call TriggerAddAction( gg_trg_Create_Players, function Trig_Create_Players_Actions )
endfunction
function Trig_Bounties_Actions takes nothing returns nothing
call SetPlayerState(Player(10), PLAYER_STATE_GIVES_BOUNTY, 1)
endfunction
//===========================================================================
function InitTrig_Bounties takes nothing returns nothing
set gg_trg_Bounties = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Bounties, 3.00 )
call TriggerAddAction( gg_trg_Bounties, function Trig_Bounties_Actions )
endfunction
function Trig_Ping_Actions takes nothing returns nothing
local group g = CreateGroup()
local unit u
call GroupEnumUnitsOfPlayer(g, Player(10), null)
loop
set u = FirstOfGroup(g)
exitwhen u == null
call PingMinimapLocForForceEx( GetPlayersAll(), GetUnitLoc(u), 1, bj_MINIMAPPINGSTYLE_ATTACK, 100, 100, 100 )
call GroupRemoveUnit(g,u)
endloop
call DestroyGroup(g)
set g = null
endfunction
//===========================================================================
function InitTrig_Ping takes nothing returns nothing
set gg_trg_Ping = CreateTrigger( )
call DisableTrigger( gg_trg_Ping )
call TriggerRegisterPlayerChatEvent( gg_trg_Ping, Player(0), "-ping", true )
call TriggerAddAction( gg_trg_Ping, function Trig_Ping_Actions )
endfunction
function Trig_NoTK_Conditions takes nothing returns boolean
return IsUnitAlly(GetTriggerUnit(), GetOwningPlayer(GetAttacker()))
endfunction
function Trig_NoTK_Actions takes nothing returns nothing
call IssueImmediateOrder( GetAttacker(), "stop" )
endfunction
//===========================================================================
function InitTrig_NoTK takes nothing returns nothing
set gg_trg_NoTK = CreateTrigger( )
call DisableTrigger( gg_trg_NoTK )
call TriggerRegisterAnyUnitEventBJ( gg_trg_NoTK, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_NoTK, Condition( function Trig_NoTK_Conditions ) )
call TriggerAddAction( gg_trg_NoTK, function Trig_NoTK_Actions )
endfunction
function Trig_Set_Houses_JASS_Conditions takes nothing returns boolean
return GetUnitTypeId(GetConstructedStructure()) == 'h017'
endfunction
function Trig_Set_Houses_JASS_Actions takes nothing returns nothing
local player p = GetOwningPlayer(GetConstructedStructure())
set udg_NEWhouses[GetPlayerId(p)] = GetConstructedStructure()
set udg_HasHouse[GetPlayerId(p)] = true
set p = null
endfunction
//===========================================================================
function InitTrig_Create_House takes nothing returns nothing
set gg_trg_Create_House = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Create_House, EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerAddCondition( gg_trg_Create_House, Condition( function Trig_Set_Houses_JASS_Conditions ) )
call TriggerAddAction( gg_trg_Create_House, function Trig_Set_Houses_JASS_Actions )
endfunction
function Trig_Ressurrection_JASS_Conditions takes nothing returns boolean
return IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) and( IsUnitAlly(GetTriggerUnit(), Player(0)))
endfunction
function defeater takes nothing returns nothing
call CustomDefeatBJ( GetEnumPlayer(), "All hope for humanity is lost!" )
endfunction
function Trig_Ressurrection_JASS_Actions takes nothing returns nothing
local unit u = GetDyingUnit()
local player p = GetOwningPlayer(u)
local integer id = GetPlayerId(p)
local boolean dead
local group g = CreateGroup()
if (not udg_HasHouse[id]) then
call DisplayTextToPlayer(p,0,0,"Sorry but you died without a house and are permanetly dead. feel free to stay and watch")
set dead = true
else
call TriggerSleepAction(30)
if (udg_HasHouse[id]) then
call ReviveHeroLoc(u, GetUnitLoc(udg_NEWhouses[id]), true)
else
set dead = true
endif
endif
if(dead) then
set udg_PlayersLeft = udg_PlayersLeft -1
call CreateFogModifierRectBJ( true, p, FOG_OF_WAR_VISIBLE, GetPlayableMapRect() )
set g = GetUnitsOfPlayerAll(p)
loop
set u = FirstOfGroup(g)
exitwhen u == null
call SetUnitExploded(u,true)
call KillUnit(u)
call GroupRemoveUnit(g,u)
endloop
endif
if(dead and udg_PlayersLeft == 0) then
call CustomDefeatBJ(Player(0), "All hope for humanity is lost!")
call ForForce( GetPlayersAllies(Player(0)), function defeater)
endif
call DestroyGroup (g)
set u = null
set p = null
set g = null
endfunction
//===========================================================================
function InitTrig_Hero_Death takes nothing returns nothing
set gg_trg_Hero_Death = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Hero_Death, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Hero_Death, Condition( function Trig_Ressurrection_JASS_Conditions ) )
call TriggerAddAction( gg_trg_Hero_Death, function Trig_Ressurrection_JASS_Actions )
endfunction
function Trig_House_Death_Conditions takes nothing returns boolean
return GetUnitTypeId(GetTriggerUnit()) == 'h017'
endfunction
function Trig_House_Death_Actions takes nothing returns nothing
set udg_HasHouse[GetPlayerId(GetOwningPlayer(GetTriggerUnit()))] = false
endfunction
//===========================================================================
function InitTrig_House_Death takes nothing returns nothing
set gg_trg_House_Death = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_House_Death, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_House_Death, Condition( function Trig_House_Death_Conditions ) )
call TriggerAddAction( gg_trg_House_Death, function Trig_House_Death_Actions )
endfunction
function Trig_Send_JASS_Actions takes nothing returns nothing
local group g = CreateGroup()
local unit u
local integer a
local real x
local real y
call GroupEnumUnitsOfPlayer(g, Player(10), null)
loop
set a = GetRandomInt(0,9)
exitwhen udg_NEWheros[a] != null and GetUnitState(udg_NEWheros[a], UNIT_STATE_LIFE) > 0
call TriggerSleepAction(.5)
endloop
set y = GetUnitY(udg_NEWheros[a])
set x = GetUnitX(udg_NEWheros[a])
loop
set u = FirstOfGroup(g)
exitwhen u == null
call IssuePointOrder(u,"attack",x,y)
call GroupRemoveUnit(g,u)
endloop
call DestroyGroup(g)
set g = null
set u = null
endfunction
//===========================================================================
function InitTrig_Send_JASS takes nothing returns nothing
set gg_trg_Send_JASS = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Send_JASS, 20.00 )
call TriggerAddAction( gg_trg_Send_JASS, function Trig_Send_JASS_Actions )
endfunction
function Trig_Jump_JASS_Conditions takes nothing returns boolean
return GetUnitTypeId(GetTriggerUnit()) == 'u007'
endfunction
function Trig_Jump_JASS_Actions takes nothing returns nothing
local unit u = GetAttacker()
call IssuePointOrder(GetTriggerUnit(),"breathoffire", GetUnitX(u),GetUnitY(u) )
set u = null
endfunction
//===========================================================================
function InitTrig_Jump_JASS takes nothing returns nothing
set gg_trg_Jump_JASS = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Jump_JASS, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Jump_JASS, Condition( function Trig_Jump_JASS_Conditions ) )
call TriggerAddAction( gg_trg_Jump_JASS, function Trig_Jump_JASS_Actions )
endfunction
function Trig_Devotion_JASS_Conditions takes nothing returns boolean
return udg_Wave >= 5 and GetUnitTypeId(GetTriggerUnit()) == 'u009'
endfunction
function Trig_Devotion_JASS_Actions takes nothing returns nothing
call UnitAddAbility(GetTriggerUnit(),'ACav')
endfunction
//===========================================================================
function InitTrig_Devotion_JASS takes nothing returns nothing
set gg_trg_Devotion_JASS = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Devotion_JASS, GetPlayableMapRect() )
call TriggerAddCondition( gg_trg_Devotion_JASS, Condition( function Trig_Devotion_JASS_Conditions ) )
call TriggerAddAction( gg_trg_Devotion_JASS, function Trig_Devotion_JASS_Actions )
endfunction
function Trig_Explode_Copy_Conditions takes nothing returns boolean
return GetUnitTypeId(GetDyingUnit()) == 'u00A'
endfunction
function Trig_Explode_Copy_Actions takes nothing returns nothing
local unit u = GetDyingUnit()
local real x = GetUnitX(u)
local real y = GetUnitY(u)
call DestroyEffect(AddSpecialEffect("Units\\Undead\\Abomination\\AbominationExplosion.mdl",x,y))
call DestroyEffect(AddSpecialEffect("Objects\\Spawnmodels\\Human\\HCancelDeath\\HCancelDeath.mdl",x,y))
call UnitDamagePoint(u,.5,350,x,y, 500, false,true, ATTACK_TYPE_SIEGE, DAMAGE_TYPE_FIRE, WEAPON_TYPE_WHOKNOWS)
set u = null
endfunction
//===========================================================================
function InitTrig_Explode_JASS takes nothing returns nothing
set gg_trg_Explode_JASS = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Explode_JASS, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Explode_JASS, Condition( function Trig_Explode_Copy_Conditions ) )
call TriggerAddAction( gg_trg_Explode_JASS, function Trig_Explode_Copy_Actions )
endfunction