Array
(
[scriptVersion] => 7
[oeValues] => Array
(
[RngBuff1] => 250
[MissileHoming] => 1
[Upgrade] => Array
(
)
[targs1] => Array
(
)
[goldcost] => 3500
[weapsOn] => 1
[dice1] => 1
[Missilespeed] => 1500
[file] => units\creeps\BronzeDragon\BronzeDragon.mdl
[moveHeight] => 200
[manaN] => 1100
[atkType1] => normal
[dmgpt1] => 0.96
[modelScale] => 0.7
[weapTp1] => missile
[acquire] => 1500
[rangeN1] => 1500
[upgrades] => Array
(
)
[cool1] => 1.5
[Ubertip] => Brrizzl fizzl.
[regenMana] => 10
[abilList] => @@1@@
[launchZ] => -20
[Name] => Scales
[Missileart] => Abilities\Weapons\Bolt\BoltImpact.mdl
[launchY] => 60
[Art] => ReplaceableTextures\CommandButtons\BTNAdvancedReinforcedHides.blp
[buildingShadow] => Array
(
)
[unitSound] => DragonSpawn
[turnRate] => 0.5
[sides1] => 9
[uberSplat] => OSMA
[auto] => Array
(
)
[dmgplus1] => 842
[bldtm] => 1
)
[settings] => Array
(
[author] => cedi
[element] => storm
[authorDisplay] => DreamStrider
[alpha] => 255
[balanceTip] => |cffFFFF00+20% |rdmg to air (|cffFFFF00+0.8%|r/lvl)
[rarity] => unique
[version] => 1.0
[abil_factor] => 0.2
)
[effects] => Array
(
[0] => Array
(
[x] => 5.85742
[y] => 9.68595
[z] => -19.2
[scale] => 0.45
[rot] => 2.05949
[file] => Doodads\Barrens\Rocks\Barrens_Spires\Barrens_Spires1.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[1] => Array
(
[x] => 12.6404
[y] => 4.52901
[z] => -19.2
[scale] => 0.45
[rot] => 0.373474
[file] => Doodads\Barrens\Rocks\Barrens_Spires\Barrens_Spires1.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[2] => Array
(
[x] => -8.38532
[y] => 11.3471
[z] => -19.2
[scale] => 0.45
[rot] => 4.74066
[file] => Doodads\Barrens\Rocks\Barrens_Spires\Barrens_Spires1.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[3] => Array
(
[x] => 0.0253811
[y] => 5.38554
[z] => 38.4
[scale] => 0.8
[rot] => 4.2586
[file] => Objects\InventoryItems\ThunderLizardEgg\ThunderLizardEgg.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[4] => Array
(
[x] => 19.9158
[y] => 8.55852
[z] => 38.4
[scale] => 0.8
[rot] => 2.77507
[file] => Objects\InventoryItems\ThunderLizardEgg\ThunderLizardEgg.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
)
[dmgTable] => Array
(
[0] => Array
(
[id] => MOD_DMG_TO_AIR
[base] => 0.2
[add] => 0.008
)
)
[triggers] => Array
(
[0] => Array
(
[name] => On Tower Creation
[code] => set tower.userInt = tower.getOwner().getTeam().getLevel()
set tower.userInt2 = 0
set tower.userInt3 = 0
[values] => Array
(
[icon] =>
[visible] => false
[name] =>
[short_explain] =>
[long_explain] =>
)
)
[1] => Array
(
[name] => On Damage
[code] => call ELEC.apply( tower, Event.getTarget(), tower.getLevel() )
[values] => Array
(
[ONDAMAGE_chance] => 0.2
[icon] => ReplaceableTextures\CommandButtons\BTNLightningShield.blp
[visible] => true
[name] => Electrify
[short_explain] => Whenever this tower damages a creep, it has a chance to electrify it. This tower will periodically deal damage to creeps near the electrified target.
[ONDAMAGE_chanceLevelAdd] => 0.008
[long_explain] => Whenever this tower damages a creep, it has a |cffFFFF8020%|r chance to electrify it for |cffFFFF805|r seconds. Each second, all creeps in |cffFFFF80225|r range of the electrified unit take |cffFFFF80900|r spell damage.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.8%|r chance|n|cffFFFF80+36|r spell damage per second
)
)
[2] => Array
(
[name] => On Damage
[code] => call overchargeDamage(tower,Event.getTarget(),tower.getLevel())
[values] => Array
(
[ONDAMAGE_chance] => 1.00
[icon] => ReplaceableTextures\CommandButtons\BTNPurge.blp
[visible] => true
[name] => Overcharge
[short_explain] => Whenever this tower deals damage with its attacks or other abilities it has a chance to strike the target with a lightning.
[ONDAMAGE_chanceLevelAdd] => 0.00
[long_explain] => Whenever this tower deals damage with its attacks or its other innate abilities it has a |cffFFFF8025%|r chance to deal |cffFFFF80900|r spell damage to the damaged unit. Overcharge can trigger itself, but the chance to do so is decreased by |cffFFFF805%|r for each time it retriggers.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+36|r spell damage|n|cffFFFF80+1%|r chance
)
)
[3] => Array
(
[name] => On Tower Details
[code] => call MB.setValue( 0, formatPercent( tower.userInt3 * 1.66/100,2 ) )
call MB.setValue( 1, formatPercent( tower.userInt3 * 1.66/100,2 ) )
call MB.setValue( 2, formatPercent( tower.userInt3 * 0.125/100,2 ) )
return MB
[values] => Array
(
[0] => Array
(
[_value] => 0
[typ] => string
)
)
)
[4] => Array
(
[name] => Header
[code] => globals
Cast TUNDER
BuffType ELEC
MultiboardValues MB
endglobals
function overchargeDamage takes Tower tower, Creep targ, integer level returns nothing
local unit u = targ.getUnit()
local integer i = 0
loop
exitwhen GetWidgetLife( u ) <= 0.405
if tower.calcChance( ( 0.25 + level / 100.00 ) - i * 0.05 ) then
call DestroyEffect( AddSpecialEffectTarget( "Abilities\\Spells\\Other\\Monsoon\\MonsoonBoltTarget.mdl", u, "origin" ) )
call tower.doSpellDamage( targ, 900.0 + level * 36.0, tower.calcSpellCritNoBonus() )
else
exitwhen true
endif
set i = i + 1
endloop
set u = null
endfunction
function overchargeA takes SpellDummy D returns nothing
local Tower tower = D.getCaster()
call overchargeDamage(tower,Event.getTarget(),tower.getLevel())
endfunction
function elec takes Buff B returns nothing
local Tower tower = B.getCaster()
local Unit targ = B.getBuffedUnit()
local Iterate I = Iterate.overUnitsInRangeOfUnit( tower, TARGET_TYPE_CREEPS, targ, 225.0 )
local real dmg = 900.0 + 36.0 * tower.getLevel()
local Unit U
loop
set U = I.next()
exitwhen U == 0
if U != targ then
call tower.doSpellDamage( U, dmg, tower.calcSpellCritNoBonus() )
call overchargeDamage(tower,U,tower.getLevel())
endif
endloop
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
set TUNDER = Cast.create( '@@0@@', "forkedlightning", 2.0 )
call TUNDER.setSourceHeight( 300.00 )
call TUNDER.setDamageEvent( overchargeA )
set ELEC = BuffType.create( 5.0, 0.00, false )
call ELEC.setBuffIcon( '@@2@@' )
call ELEC.addPeriodicEvent( elec, 1.0 )
set MB = MultiboardValues.create( 3 )
call MB.setKey( 0, "Spell Damage Bonus" )
call MB.setKey( 1, "Spell Crit Damage Bonus" )
call MB.setKey( 2, "Spell Crit Chance Bonus" )
endfunction
[values] => Array
(
[icon] =>
[visible] => false
[name] =>
[short_explain] =>
[long_explain] =>
)
)
[5] => Array
(
[name] => Periodic
[code] => local Iterate I
local Unit U
if tower.userInt2 == 1 then
set I = Iterate.overUnitsInRangeOfCaster( tower, TARGET_TYPE_CREEPS, 1500.00 )
set U = I.next()
if U != 0 then
call TUNDER.targetCastFromCaster( tower, U, 1300.00 + tower.getLevel() * 52.0, tower.calcSpellCritNoBonus() )
call I.destroy()
endif
endif
[values] => Array
(
[icon] =>
[visible] => false
[PERIODIC_period] => 0.33
[name] =>
[short_explain] =>
[long_explain] =>
)
)
[6] => Array
(
[name] => Autocast
[code] => local Effect E = Effect.createScaled( "Abilities\\Spells\\Human\\CloudOfFog\\CloudOfFog.mdl", tower.getX(), tower.getY(), 300.00, 0.00, 0.60 )
local integer UID = tower.getUID()
call E.setLifetime( 10.0 )
set tower.userInt2 = 1
call TriggerSleepAction( 10.0 )
if UID == tower.getUID() then
set tower.userInt2 = 0
endif
[values] => Array
(
[caster_art] =>
[icon] => ReplaceableTextures\CommandButtons\BTNMonsoon.blp
[AUTOCAST_cooldown] => 10.5
[AUTOCAST_numBuffsBeforeIdle] => 0
[AUTOCAST_isExtended] => false
[long_explain] => Summons a storm cloud which attacks units in |cffFFFF801500|r range. Every |cffFFFF800.33|r seconds the cloud attacks up to |cffFFFF803|r targets with forked lightning. Each lightning deals |cffFFFF801300|r spell damage. Lightmare lasts |cffFFFF8010|r seconds and does not benefit from buff duration.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+52|r spell damage
[AUTOCAST_autocastType] => AC_TYPE_OFFENSIVE_IMMEDIATE
[AUTOCAST_manacost] => 1000
[AUTOCAST_range] => 1500.0
[AUTOCAST_buffType] => 0
[name] => Lightmare
[AUTOCAST_targetSelf] => true
[short_explain] => Summons a very strong storm that deals high spell damage to many enemies in range multiple times over a duration.
[AUTOCAST_targetType] => 0
[target_art] =>
[AUTOCAST_autoRange] => 1500.00
)
)
[7] => Array
(
[name] => On Attack
[code] => local integer i = tower.getOwner().getTeam().getLevel()
local integer i2 = i
if i > tower.userInt then
set i = i - tower.userInt
set tower.userInt3 = tower.userInt3 + i
call tower.modifyProperty( MOD_SPELL_DAMAGE_DEALT, i / 60.00 )
call tower.modifyProperty( MOD_SPELL_CRIT_DAMAGE, i / 60.00 )
call tower.modifyProperty( MOD_SPELL_CRIT_CHANCE, i / 800.00 )
set tower.userInt = i2
endif
[values] => Array
(
[icon] => ReplaceableTextures\CommandButtons\BTNBronzeDragon.blp
[visible] => true
[name] => I Scale
[short_explain] => I get stronger when my enemies get stronger.
[ONATTACK_chance] => 1.0
[ONATTACK_chanceLevelAdd] => 0.0
[long_explain] => This tower gains |cffFFFF801.66%|r spell damage, spell crit damage and |cffFFFF800.125%|r spell crit chance for each level the player survives.
)
)
)
[abilities] => Array
(
[0] => Array
(
[id] => @@0@@
[derivedFrom] => ANfl
[oeValues] => Array
(
[Name] => Tunderstorm
[Art] => ReplaceableTextures\CommandButtons\BTNMonsoon.blp
[hero] => 0
[DataC1] => 1500
[levels] => 1
[targs1] => ground,enemies,air
[Cost1] => 0
[Rng1] => 1500
[DataA1] => 1
[DataD1] => 1000
)
)
[1] => Array
(
[id] => @@1@@
[derivedFrom] => Alit
[oeValues] => Array
(
[Art] => Array
(
)
[targs1] => ground,enemies,air
[Unubertip] => -HIDE-
)
)
)
[buffs] => Array
(
[0] => Array
(
[id] => @@2@@
[derivedFrom] => Blsh
[oeValues] => Array
(
[Bufftip] => Electrified
[Buffubertip] => This unit damages other nearby units.
[Buffart] => ReplaceableTextures\CommandButtons\BTNLightningShield.blp
[EditorName] => Electrified
)
)
)
[units] => Array
(
)
[references] => Array
(
)
)