Array
(
[scriptVersion] => 7
[oeValues] => Array
(
[RngBuff1] => 250
[MissileHoming] => 1
[Upgrade] => Array
(
)
[targs1] => Array
(
)
[animProps] => work
[goldcost] => 2200
[weapsOn] => 1
[dice1] => 1
[Missilespeed] => 1500
[moveHeight] => 40
[file] => buildings\nightelf\ChimaeraRoost\ChimaeraRoost.mdl
[manaN] => 1000
[atkType1] => magic
[modelScale] => 0.3
[weapTp1] => missile
[acquire] => 1000
[rangeN1] => 1000
[upgrades] => Array
(
)
[cool1] => 0.8
[Ubertip] => This deadly thing was invented by the dwarves to aid them in the long war against the orcs. However they never ended up using it, as it consumes far too much energy.
[regenMana] => 8
[abilList] => Array
(
)
[Name] => Ball Lightning Accelerator
[Art] => ReplaceableTextures\CommandButtons\BTNPriestAdept.blp
[buildingShadow] => Array
(
)
[turnRate] => 0.05
[sides1] => 1
[auto] => Array
(
)
[dmgplus1] => 0
[bldtm] => 1
[maxPitch] => -90
)
[settings] => Array
(
[author] => cedi
[element] => iron
[authorDisplay] => cedi
[alpha] => 255
[balanceTip] => |cffFFFF00+50 |rmana/lvl|n|cffFFFF00+1 |rmana regen/lvl
[rarity] => unique
[version] => 1.0
[abil_factor] => 0.00
)
[effects] => Array
(
[0] => Array
(
[x] => 7.59634
[y] => 8.79418
[z] => -192
[scale] => 2
[rot] => 3.10669
[file] => Doodads\Cityscape\Props\CrystalLamp\CrystalLamp.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[1] => Array
(
[x] => 7.1969
[y] => 10.6072
[z] => 32
[scale] => 0.75
[rot] => 6.23083
[file] => Doodads\Cityscape\Props\CrystalShield\CrystalShield.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => -3.14
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[2] => Array
(
[x] => 0.933381
[y] => 11.9289
[z] => 38.4
[scale] => 1
[rot] => 3.05433
[file] => Doodads\Cityscape\Props\MagicRunes\MagicRunes0.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
)
[dmgTable] => Array
(
[0] => Array
(
[id] => MOD_MANA
[base] => 0
[add] => 50
)
[1] => Array
(
[id] => MOD_MANA_REGEN
[base] => 0
[add] => 1
)
)
[triggers] => Array
(
[0] => Array
(
[name] => Header
[code] => globals
//@export
ProjectileType tomy_EnergeticWeaponPT
//@export
BuffType tomy_EnergyAbsorptionTargetBT
//@export
BuffType tomy_EnergyAbsorptionCasterBT
//@export
BuffType tomy_SlowBT
endglobals
function EnergeticWeaponCollision takes Projectile p, Unit target returns nothing
local Unit caster = p.getCaster()
local real slow = ( p.userReal / 4000.00)
local unit u = target.getUnit()
local lightning lightningEffect = AddLightningEx("FORK", false, p.x + 50.0 * Cos(p.direction* bj_DEGTORAD), p.y + 50.0 * Sin(p.direction* bj_DEGTORAD), p.z + 60.0, GetUnitX(u), GetUnitY(u), GetUnitFlyHeight(u))
if (slow > 20) then
set slow = 20
endif
call p.doSpellDamage(target, p.userReal)
call tomy_SlowBT.applyCustomTimed( caster, target, R2I(slow * 10), 1.50 + 0.04 * caster.getLevel() )
call SFXAtUnit("Abilities\\Spells\\Orc\\Purge\\PurgeBuffTarget.mdl", u)
call TriggerSleepAction(0.20)
call DestroyLightning(lightningEffect)
set u = null
set lightningEffect = null
endfunction
//Do not remove or rename this function!
//Put your initialization tasks here, this function will be called on map init
private function init takes nothing returns nothing
local Modifier m = Modifier.create()
// ======= Energy Absorption Target =======
call m.addModification( MOD_ATTACKSPEED, -0.1, 0.001 )
set tomy_EnergyAbsorptionTargetBT = BuffType.create(8.00, 0.00, false)
call tomy_EnergyAbsorptionTargetBT.setBuffModifier( m )
call tomy_EnergyAbsorptionTargetBT.setBuffIcon( '@@0@@' )
// ======= Energy Absorption Caster =======
set m = Modifier.create()
call m.addModification(MOD_MANA_REGEN, 0.00, 0.04)
set tomy_EnergyAbsorptionCasterBT = BuffType.create(8.00, 0.00, true)
call tomy_EnergyAbsorptionCasterBT.setBuffModifier( m )
call tomy_EnergyAbsorptionCasterBT.setBuffIcon( '@@2@@' )
// ======= Energetic Weapon =======
set tomy_EnergeticWeaponPT = ProjectileType.createRanged("Abilities\\Weapons\\FarseerMissile\\FarseerMissile.mdl", 1000.0, 650.0)
call tomy_EnergeticWeaponPT.enableCollision( EnergeticWeaponCollision, 250.00, TARGET_CREEPS, false )
// ======= Slow =======
set m = Modifier.create()
call m.addModification( MOD_MOVESPEED, -0.00, -0.001 )
set tomy_SlowBT = BuffType.create( 1.5, 0.04, false )
call tomy_SlowBT.setBuffIcon( '@@1@@' )
call tomy_SlowBT.setBuffModifier( m )
endfunction
[values] => Array
(
[icon] => ReplaceableTextures\CommandButtons\BTNWispSplode.blp
[visible] => true
[name] => Energetic Weapon
[short_explain] => The Accelerator attacks with special bullets which deal high damage and slow all units in a row.
[long_explain] => The Accelerator attacks with energetic missiles, which deal |cffFFFF80500|r plus |cffFFFF803|r times the current mana as spell damage to all units in |cffFFFF80250|r range of the missile. Additionally, the missile slows all units by |cffFFFF801%|r for each |cffFFFF804000|r damage it deals to a creep for |cffFFFF801.5|r seconds. Cannot slow by more than |cffFFFF8020%|r. Each attack consumes |cffFFFF8020%|r of this tower's current mana.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+25|r spell damage|n|cffFFFF80+5%|r mana converted to damage|n|cffFFFF80+0.04|r seconds slow duration
)
)
[1] => Array
(
[name] => Autocast
[code] => local integer numTowers = 0
local integer lvl = tower.getLevel()
local Unit u
local Iterate it = Iterate.overUnitsInRangeOfCaster(tower, TARGET_TOWERS, 1000.0)
loop
set u = it.next()
exitwhen u == 0
if u != tower then
set numTowers = numTowers + 1
call tomy_EnergyAbsorptionTargetBT.apply(tower, u, lvl)
endif
endloop
if numTowers > 0 then
call tomy_EnergyAbsorptionCasterBT.apply(tower, tower, (50 + lvl) * numTowers)
endif
[values] => Array
(
[caster_art] =>
[icon] => ReplaceableTextures\CommandButtons\BTNManaDrain.blp
[AUTOCAST_cooldown] => 40.00
[AUTOCAST_numBuffsBeforeIdle] => 0
[AUTOCAST_isExtended] => false
[long_explain] => Decreases the attackspeed of all towers in |cffFFFF801000|r range by |cffFFFF8010%|r. Increases the mana regeneration of the Accelerator by |cffFFFF802|r mana per second for each weakened tower. Both effects last |cffFFFF808|r seconds|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80-0.1%|r attackspeed weakening|n|cffFFFF80+0.04|r mana per second
[AUTOCAST_autocastType] => AC_TYPE_OFFENSIVE_IMMEDIATE
[AUTOCAST_manacost] => 0
[AUTOCAST_range] => 1000.0
[AUTOCAST_buffType] => 0
[name] => Energy Absorb
[AUTOCAST_targetSelf] => false
[short_explain] => Absorbs the energy of nearby towers.
[AUTOCAST_targetType] => 0
[target_art] =>
[AUTOCAST_autoRange] => 1000.0
)
)
[2] => Array
(
[name] => On Attack
[code] => local unit u = tower.getUnit()
local unit t = Event.getTarget().getUnit()
local Projectile p
local real angle = Atan2(GetUnitY( t ) - GetUnitY( u ), GetUnitX( t ) - GetUnitX( u ))
local real mana = GetUnitState(u, UNIT_STATE_MANA)
set p = Projectile.create(tomy_EnergeticWeaponPT, tower, 1.00, tower.calcSpellCritNoBonus(), GetUnitX( u ) + Cos( angle ) * 110.00, GetUnitY( u ) + Sin( angle ) * 110.00, 40.00, angle * bj_RADTODEG )
set p.userReal = 500.00 * (1.00 + tower.getLevel() * 0.05) + mana * (3.00 + tower.getLevel() * 0.05 )
set p.z = 10.0
call p.setScale( 2.00 )
call SetUnitState( u, UNIT_STATE_MANA, mana * 0.80 )
set u = null
set t = null
[values] => Array
(
[icon] =>
[visible] => false
[name] =>
[short_explain] =>
[ONATTACK_chance] => 1.0
[ONATTACK_chanceLevelAdd] => 0.0
[long_explain] =>
)
)
)
[abilities] => Array
(
)
[buffs] => Array
(
[0] => Array
(
[id] => @@0@@
[derivedFrom] => BHfs
[oeValues] => Array
(
[Bufftip] => Weakened
[Buffubertip] => This unit has decreased attackspeed.
[Buffart] => ReplaceableTextures\CommandButtons\BTNManaDrain.blp
[TargetArt] => Abilities\Spells\Other\Drain\ManaDrainCaster.mdl
[EditorName] => Weakened
)
)
[1] => Array
(
[id] => @@1@@
[derivedFrom] => BHfs
[oeValues] => Array
(
[Bufftip] => Electrified
[Targetattach] => chest
[Buffubertip] => This unit is slowed.
[Buffart] => ReplaceableTextures\CommandButtons\BTNPurge.blp
[TargetArt] => Abilities\Spells\Orc\Purge\PurgeBuffTarget.mdl
[EditorName] => Electrified
)
)
[2] => Array
(
[id] => @@2@@
[derivedFrom] => BHfs
[oeValues] => Array
(
[Bufftip] => Energy Absorption
[Buffubertip] => This unit has increased mana regeneration.
[Buffart] => ReplaceableTextures\CommandButtons\BTNManaDrain.blp
[TargetArt] => Abilities\Spells\Other\Drain\ManaDrainTarget.mdl
[EditorName] => Energy Absorption
)
)
)
[units] => Array
(
)
[references] => Array
(
[0] => Array
(
[export] => true
[category] => global
[typ] => ProjectileType
[name] => tomy_EnergeticWeaponPT
)
[1] => Array
(
[export] => true
[category] => global
[typ] => BuffType
[name] => tomy_EnergyAbsorptionTargetBT
)
[2] => Array
(
[export] => true
[category] => global
[typ] => BuffType
[name] => tomy_EnergyAbsorptionCasterBT
)
[3] => Array
(
[export] => true
[category] => global
[typ] => BuffType
[name] => tomy_SlowBT
)
)
)