Name | Type | is_array | initial_value |
AgiIncrease | real | Yes | |
AmountOfUnits | integer | No | |
AncalagonAgiGain | real | No | |
AncalagonIntGain | real | No | |
AncalagonStrGain | real | No | |
AssasinationTarget | unit | No | |
BaragAgiGain | real | No | |
BaragIntGain | real | No | |
BaragStrGain | real | No | |
BaseUpgrade | unitcode | Yes | |
BlueUnits | unitcode | Yes | |
BlueUnitType | unitcode | Yes | |
BoltCaster | unit | No | |
BoltDamage | real | No | |
BoltTarget | unit | No | |
BoneArmorGroup | group | No | |
Bonus | integer | No | |
Bounty | integer | Yes | |
Building | unit | Yes | |
BuildPoint | location | Yes | |
Caster | unit | No | |
CasterOwner | player | No | |
ChooseTimer | timer | No | |
CooldownTimer | timer | Yes | |
CrewPirate | group | No | |
DarkPactReal | real | No | |
Dialog1 | dialog | Yes | |
Dialog11 | button | Yes | |
Dialog12 | button | Yes | |
Dialog13 | button | Yes | |
Dialog2 | dialog | Yes | |
DialogAgi1 | button | Yes | |
DialogAgi2 | button | Yes | |
DialogAgi3 | button | Yes | |
DialogInt1 | button | Yes | |
DialogInt2 | button | Yes | |
DialogStr1 | button | Yes | |
DialogStr2 | button | Yes | |
DialogStr3 | button | Yes | |
Distance | real | No | |
Duration | real | No | |
Effect | unit | Yes | |
Effect1 | effect | Yes | |
Effect2 | effect | Yes | |
Effect3 | effect | Yes | |
Facing | real | No | |
FactionChosen | boolean | No | |
FactionDialog | dialog | Yes | |
FactionDialogButton | button | Yes | |
FashAgiGain | real | No | |
FashIntGain | real | No | |
FashStrGain | real | No | |
FighterAgi | real | No | |
FighterInt | real | No | |
FighterStr | real | No | |
FistGroup | group | No | |
FullRandomTrue | boolean | No | |
GregAgiGain | real | No | |
GregIntGain | real | No | |
GregStrGain | real | No | |
Group | group | No | |
Group2 | group | No | |
Hero | unit | Yes | |
HeroicTimer | timer | Yes | |
HeroType | unitcode | Yes | |
Income | integer | No | |
InfernoCaster | unit | No | |
InfernoPlayer | player | No | |
InfernoWindow | timerdialog | Yes | |
Integer | integer | Yes | |
IntIncrease | real | Yes | |
IntPowerCaster | unit | No | |
IntPowerTarget | unit | No | |
JackAgiGain | real | No | |
JackIntGain | real | No | |
JackStrGain | real | No | |
Knockback | unit | Yes | |
KnockbackAngle | real | Yes | |
KnockbackTime | real | Yes | |
Level | integer | No | |
LewisAgiGain | real | No | |
LewisIntGain | real | No | |
LewisStrGain | real | No | |
LightCharge | boolean | Yes | |
Lightning | lightning | No | |
LightningChargeBase | unit | Yes | |
LightningChargeTimer | timer | Yes | |
LightningChargeTimerWindow | timerdialog | Yes | |
ManipItem | item | No | |
MissionCaster | unit | Yes | |
MissionLevel | integer | Yes | |
MissionPlayer | player | Yes | |
MissionTarget | unit | Yes | |
MissionTargetPre | group | No | |
MissionTimer | timer | Yes | |
MissionTimerWindow | timerdialog | Yes | |
NesNumber | integer | No | |
NoCooldown | unit | Yes | |
Objective | unit | Yes | |
PlayDeaths | integer | Yes | |
PlayerFountain | rect | Yes | |
PlayerGroup | force | No | |
PlayerNumber | integer | No | |
PlayerOwnGroup | group | Yes | |
PlayerReal | real | Yes | |
PlayStatus | string | Yes | |
PosAlt | location | No | |
PosAlt2 | location | No | |
PosAltArr | location | Yes | |
Position | location | No | |
RaceVote | integer | Yes | |
RandomClass | boolean | No | |
RandomNumber | integer | No | |
RandomVote | integer | No | |
Real | real | No | |
RealAlt | real | No | |
RedackAgiGain | real | No | |
RedackIntGain | real | No | |
RedackStrGain | real | No | |
RedUnits | unitcode | Yes | |
RedUnitType | unitcode | Yes | |
Regain | group | No | |
Region | rect | No | |
ReviveTimer | timer | Yes | |
SameChar | trigger | No | |
SameCharBoolean | boolean | No | |
SameClass | unitcode | No | hpea |
SendUnits | boolean | No | |
Skill | abilcode | Yes | |
SkillLevel | integer | No | |
Sound | sound | Yes | |
SpiritWolvesGroup | group | No | |
SpreePlayer | player | No | |
SpreeString | string | No | |
StartingGold | integer | No | |
StrIncrease | real | Yes | |
String | string | Yes | |
Studded | group | No | |
Target | unit | Yes | |
TempInteger | integer | No | |
TempInteger2 | integer | No | |
TempOrder | ordercode | No | |
TestTimer | timer | No | |
TheDrainerGroup | group | No | |
Time | real | No | |
Trigger | trigger | Yes | |
TriggeringPlayer | player | No | |
UnitSpawn | timer | No | |
UnitType | unitcode | Yes | |
Value | real | No | |
VoteNumber | integer | No | |
WeakenLevel | integer | No | |
WeakenRealCurrent | real | No | |
WeakenRealMinus | real | No | |
Weather | weathereffect | Yes | |
WrathTarget | unit | Yes |
function Trig_Firebolt_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02P' ) ) then
return false
endif
return true
endfunction
function Trig_Firebolt_Actions takes nothing returns nothing
local unit Caster
local unit BoltTarget
local real BoltDamage
set Caster = GetSpellAbilityUnit()
set BoltTarget = GetSpellTargetUnit()
set BoltDamage = ( 6.00 * I2R(GetUnitAbilityLevelSwapped('A02P', Caster)) )
call PolledWait( 1.00 )
call UnitDamageTargetBJ( Caster, BoltTarget, BoltDamage, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_FIRE )
call PolledWait( 1.00 )
call UnitDamageTargetBJ( Caster, BoltTarget, BoltDamage, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_FIRE )
set Caster = null
set BoltTarget = null
endfunction
//===========================================================================
function InitTrig_Firebolt takes nothing returns nothing
set gg_trg_Firebolt = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Firebolt, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Firebolt, Condition( function Trig_Firebolt_Conditions ) )
call TriggerAddAction( gg_trg_Firebolt, function Trig_Firebolt_Actions )
endfunction
function Trig_Necromancy_Conditions takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A04W', GetKillingUnitBJ()) > 0 ) ) then
return false
endif
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_MECHANICAL) == false ) ) then
return false
endif
if ( not ( IsUnitEnemy(GetDyingUnit(), GetOwningPlayer(GetKillingUnitBJ())) == true ) ) then
return false
endif
return true
endfunction
function Trig_Necromancy_Func001C takes nothing returns boolean
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_HERO) == false ) ) then
return false
endif
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_STRUCTURE) == false ) ) then
return false
endif
if ( not ( GetRandomInt(1, 100) <= ( GetUnitAbilityLevelSwapped('A04W', GetKillingUnitBJ()) * 15 ) ) ) then
return false
endif
return true
endfunction
function Trig_Necromancy_Func002Func008C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A04W', GetKillingUnitBJ()) == 4 ) ) then
return false
endif
if ( not ( GetRandomInt(1, 100) <= 20 ) ) then
return false
endif
return true
endfunction
function Trig_Necromancy_Func002C takes nothing returns boolean
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetRandomInt(1, 100) <= ( GetUnitAbilityLevelSwapped('A04W', GetKillingUnitBJ()) * 30 ) ) ) then
return false
endif
return true
endfunction
function Trig_Necromancy_Actions takes nothing returns nothing
if ( Trig_Necromancy_Func001C() ) then
set udg_PosAlt = GetUnitLoc(GetDyingUnit())
call RemoveUnit( GetDyingUnit() )
call CreateNUnitsAtLoc( 1, 'uske', GetOwningPlayer(GetKillingUnitBJ()), udg_PosAlt, bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 60, 'Brai', GetLastCreatedUnit() )
call RemoveLocation(udg_PosAlt)
set udg_PosAlt = GetUnitLoc(GetDyingUnit())
call AddSpecialEffectLocBJ( udg_PosAlt, "Abilities\\Spells\\Undead\\RaiseSkeletonWarrior\\RaiseSkeleton.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call RemoveLocation(udg_PosAlt)
else
endif
if ( Trig_Necromancy_Func002C() ) then
set udg_PosAlt = GetUnitLoc(GetDyingUnit())
call CreateNUnitsAtLoc( 1, 'uske', GetOwningPlayer(GetKillingUnitBJ()), udg_PosAlt, bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 60, 'Brai', GetLastCreatedUnit() )
call RemoveLocation(udg_PosAlt)
set udg_PosAlt = GetUnitLoc(GetDyingUnit())
call AddSpecialEffectLocBJ( udg_PosAlt, "Abilities\\Spells\\Undead\\RaiseSkeletonWarrior\\RaiseSkeleton.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
if ( Trig_Necromancy_Func002Func008C() ) then
call RemoveLocation(udg_PosAlt)
set udg_PosAlt = GetUnitLoc(GetDyingUnit())
call CreateNUnitsAtLoc( 1, 'uske', GetOwningPlayer(GetKillingUnitBJ()), udg_PosAlt, bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 60, 'Brai', GetLastCreatedUnit() )
call RemoveLocation(udg_PosAlt)
set udg_PosAlt = GetUnitLoc(GetDyingUnit())
call AddSpecialEffectLocBJ( udg_PosAlt, "Abilities\\Spells\\Undead\\RaiseSkeletonWarrior\\RaiseSkeleton.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
else
endif
call RemoveLocation(udg_PosAlt)
else
endif
endfunction
//===========================================================================
function InitTrig_Necromancy takes nothing returns nothing
set gg_trg_Necromancy = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Necromancy, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Necromancy, Condition( function Trig_Necromancy_Conditions ) )
call TriggerAddAction( gg_trg_Necromancy, function Trig_Necromancy_Actions )
endfunction
function Trig_Movement_Actions takes nothing returns nothing
local integer i = 3
loop
exitwhen i > 10
call SetUnitX(udg_Effect[i], GetUnitX(udg_Hero[i]))
call SetUnitY(udg_Effect[i], GetUnitY(udg_Hero[i]))
set i = i + 1
endloop
endfunction
//===========================================================================
function InitTrig_Movement takes nothing returns nothing
set gg_trg_Movement = CreateTrigger()
call TriggerRegisterTimerEvent(gg_trg_Movement, 0.05, true)
call TriggerAddAction(gg_trg_Movement, function Trig_Movement_Actions)
endfunction
function Force_Exec takes nothing returns nothing
local player p = GetEnumPlayer()
if udg_Income > 0 then
call SetPlayerState(p, PLAYER_STATE_GOLD_GATHERED, GetPlayerState(p, PLAYER_STATE_GOLD_GATHERED) + udg_Income)
endif
call SetPlayerState(p, PLAYER_STATE_RESOURCE_GOLD, GetPlayerState(p, PLAYER_STATE_RESOURCE_GOLD) + udg_Income)
set p = null
endfunction
function Trig_Income_Buildings_Actions takes nothing returns nothing
local force f
if GetUnitState(udg_Building[17], UNIT_STATE_LIFE) > 0 then
set f = CreateForce()
call ForceEnumAllies(f, Player(0), null)
call ForForce(f, function Force_Exec)
call DestroyForce(f)
set f = null
endif
if GetUnitState(udg_Building[19], UNIT_STATE_LIFE) > 0 then
set f = CreateForce()
call ForceEnumAllies(f, Player(1), null)
call ForForce(f, function Force_Exec)
call DestroyForce(f)
set f = null
endif
call DisplayTextToForce( GetPlayersAll(), ( "You have recieved " + ( I2S(udg_Income) + " Gold from you faction. Use it with knowledge." ) ) )
endfunction
//===========================================================================
function InitTrig_Income_Buildings takes nothing returns nothing
set gg_trg_Income_Buildings = CreateTrigger()
call TriggerRegisterTimerEvent(gg_trg_Income_Buildings, 100, true)
call TriggerAddAction(gg_trg_Income_Buildings, function Trig_Income_Buildings_Actions)
endfunction