Array
(
    [scriptVersion] => 7
    [oeValues] => Array
        (
            [RngBuff1] => 250
            [MissileHoming] => 1
            [Upgrade] => Array
                (
                )

            [targs1] => Array
                (
                )

            [animProps] => work
            [goldcost] => 4400
            [weapsOn] => 1
            [dice1] => 1
            [Missilespeed] => 1500
            [moveHeight] => 40
            [file] => buildings\nightelf\ChimaeraRoost\ChimaeraRoost.mdl
            [manaN] => 2000
            [atkType1] => magic
            [modelScale] => 0.3
            [weapTp1] => missile
            [acquire] => 1000
            [rangeN1] => 1000
            [upgrades] => Array
                (
                )

            [cool1] => 0.7
            [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.The second generation can be the end of the world...
            [regenMana] => 16
            [abilList] => Array
                (
                )

            [Name] => Electric Death
            [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+100 |rmana/lvl|n|cffFFFF00+3 |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
                )

            [3] => Array
                (
                    [x] => -6.21136
                    [y] => 8.84704
                    [z] => 51.2
                    [scale] => 0.2
                    [rot] => 3.07208
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -0.5
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [4] => Array
                (
                    [x] => 12.2357
                    [y] => 11.1538
                    [z] => 51.2
                    [scale] => 0.2
                    [rot] => 0
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -0.5
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [5] => Array
                (
                    [x] => 4.26444
                    [y] => 21.5768
                    [z] => 51.2
                    [scale] => 0.2
                    [rot] => 1.5708
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -0.5
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [6] => Array
                (
                    [x] => 2.72915
                    [y] => -2.78151
                    [z] => 51.2
                    [scale] => 0.2
                    [rot] => 4.71239
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -0.5
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [7] => Array
                (
                    [x] => 0.429263
                    [y] => 11.056
                    [z] => 57.6
                    [scale] => 0.8
                    [rot] => 3.80482
                    [file] => Abilities\Spells\Orc\LightningShield\LightningShieldTarget.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] => 100
                )

            [1] => Array
                (
                    [id] => MOD_MANA_REGEN
                    [base] => 0
                    [add] => 3
                )

        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => Header
                    [code] => globals
        //@import
        ProjectileType tomy_EnergeticWeaponPT 
        //@import 
        BuffType tomy_EnergyAbsorptionTargetBT 
        //@import 
        BuffType tomy_EnergyAbsorptionCasterBT 
        //@import 
        BuffType tomy_SlowBT
    endglobals
    
    //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
	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 |cffFFFF801000|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+50|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
                            [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
                        )

                )

            [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 = 1000.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
        (
        )

    [units] => Array
        (
        )

    [references] => Array
        (
            [0] => Array
                (
                    [export] => false
                    [category] => global
                    [typ] => ProjectileType
                    [name] => tomy_EnergeticWeaponPT
                )

            [1] => Array
                (
                    [export] => false
                    [category] => global
                    [typ] => BuffType
                    [name] => tomy_EnergyAbsorptionTargetBT
                )

            [2] => Array
                (
                    [export] => false
                    [category] => global
                    [typ] => BuffType
                    [name] => tomy_EnergyAbsorptionCasterBT
                )

            [3] => Array
                (
                    [export] => false
                    [category] => global
                    [typ] => BuffType
                    [name] => tomy_SlowBT
                )

        )

)