Array
(
    [scriptVersion] => 7
    [oeValues] => Array
        (
            [Art] => ReplaceableTextures\CommandButtons\BTNMagicLariet.blp
            [auto] => Array
                (
                )

            [dmgplus1] => 1412
            [bldtm] => 1
            [goldcost] => 2400
            [unitSound] => PocketFactory
            [sides1] => 1
            [Upgrade] => Array
                (
                )

            [acquire] => 900
            [upgrades] => Array
                (
                )

            [Name] => Supercollider
            [weapTp1] => missile
            [MissileHoming] => 1
            [file] => Doodads\Cityscape\Props\FountainRuined\FountainRuined.mdl
            [Missilespeed] => 1500
            [Missileart] => Abilities\Weapons\DruidoftheTalonMissile\DruidoftheTalonMissile.mdl
            [dice1] => 1
            [RngBuff1] => 250
            [green] => 240
            [modelScale] => 0.35
            [rangeN1] => 900
            [atkType1] => normal
            [cool1] => 1
            [Ubertip] => Gains a lot of speed and damage on each attack, while losing the bonus on kill.
            [blue] => 240
            [abilList] => Array
                (
                )

            [buildingShadow] => Array
                (
                )

            [targs1] => Array
                (
                )

            [weapsOn] => 1
        )

    [settings] => Array
        (
            [balanceTip] => Array
                (
                )

            [abil_factor] => 0.58
            [author] => the_red_terror
            [alpha] => 255
            [authorDisplay] => the_red_terror
            [version] => 1.0
            [element] => iron
            [rarity] => rare
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => -0.117503
                    [y] => 2.35471
                    [z] => 6.4
                    [scale] => 0.7
                    [rot] => 3.19395
                    [file] => Abilities\Spells\Orc\SpiritLink\SpiritLinkTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [1] => Array
                (
                    [x] => 4.61018
                    [y] => -14.6321
                    [z] => 44.8
                    [scale] => 0.15
                    [rot] => 2.08689
                    [file] => units\critters\HighElfPeasant\HighElfPeasant.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [2] => Array
                (
                    [x] => -4.62431
                    [y] => -45.1923
                    [z] => -0.000000953674
                    [scale] => 0.15
                    [rot] => 0.800016
                    [file] => Doodads\Ruins\Terrain\RuinsWall135\RuinsWall1350.mdl
                    [red] => 255
                    [green] => 200
                    [blue] => 200
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [3] => Array
                (
                    [x] => 6.4232
                    [y] => 53.5732
                    [z] => -0.000000953674
                    [scale] => 0.15
                    [rot] => 3.92092
                    [file] => Doodads\Ruins\Terrain\RuinsWall135\RuinsWall1350.mdl
                    [red] => 255
                    [green] => 200
                    [blue] => 200
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [4] => Array
                (
                    [x] => 3.42344
                    [y] => -45.1923
                    [z] => -0.000000953674
                    [scale] => 0.15
                    [rot] => 3.93265
                    [file] => Doodads\Ruins\Terrain\RuinsWall135\RuinsWall1350.mdl
                    [red] => 255
                    [green] => 200
                    [blue] => 200
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [5] => Array
                (
                    [x] => -0.493627
                    [y] => 51.7274
                    [z] => -0.000000953674
                    [scale] => 0.15
                    [rot] => 0.822049
                    [file] => Doodads\Ruins\Terrain\RuinsWall135\RuinsWall1350.mdl
                    [red] => 255
                    [green] => 200
                    [blue] => 200
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [6] => Array
                (
                    [x] => -47.7404
                    [y] => 5.94369
                    [z] => -0.000000953674
                    [scale] => 0.15
                    [rot] => 5.46423
                    [file] => Doodads\Ruins\Terrain\RuinsWall135\RuinsWall1350.mdl
                    [red] => 255
                    [green] => 200
                    [blue] => 200
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [7] => Array
                (
                    [x] => 47.3064
                    [y] => 7.61503
                    [z] => -0.000000953674
                    [scale] => 0.15
                    [rot] => 5.4692
                    [file] => Doodads\Ruins\Terrain\RuinsWall135\RuinsWall1350.mdl
                    [red] => 255
                    [green] => 200
                    [blue] => 200
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [8] => Array
                (
                    [x] => 47.9843
                    [y] => 0.901661
                    [z] => -0.000000953674
                    [scale] => 0.15
                    [rot] => 2.33029
                    [file] => Doodads\Ruins\Terrain\RuinsWall135\RuinsWall1350.mdl
                    [red] => 255
                    [green] => 200
                    [blue] => 200
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [9] => Array
                (
                    [x] => -36.7174
                    [y] => -33.6879
                    [z] => 6.4
                    [scale] => 0.1
                    [rot] => 0.0441689
                    [file] => Doodads\Ruins\Terrain\RuinsWall135\RuinsWall1350.mdl
                    [red] => 255
                    [green] => 200
                    [blue] => 200
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [10] => Array
                (
                    [x] => 34.7153
                    [y] => -33.6879
                    [z] => 6.4
                    [scale] => 0.1
                    [rot] => 1.59398
                    [file] => Doodads\Ruins\Terrain\RuinsWall135\RuinsWall1350.mdl
                    [red] => 255
                    [green] => 200
                    [blue] => 200
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [11] => Array
                (
                    [x] => -47.467
                    [y] => 3.4085
                    [z] => -0.000000953674
                    [scale] => 0.15
                    [rot] => 2.32018
                    [file] => Doodads\Ruins\Terrain\RuinsWall135\RuinsWall1350.mdl
                    [red] => 255
                    [green] => 200
                    [blue] => 200
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [12] => Array
                (
                    [x] => 40.8421
                    [y] => 39.8869
                    [z] => 6.4
                    [scale] => 0.1
                    [rot] => 3.14159
                    [file] => Doodads\Ruins\Terrain\RuinsWall135\RuinsWall1350.mdl
                    [red] => 255
                    [green] => 200
                    [blue] => 200
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [13] => Array
                (
                    [x] => -34.0468
                    [y] => 41.6909
                    [z] => 6.4
                    [scale] => 0.1
                    [rot] => 1.52293
                    [file] => Doodads\Ruins\Terrain\RuinsWall135\RuinsWall1350.mdl
                    [red] => 255
                    [green] => 200
                    [blue] => 200
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [14] => Array
                (
                    [x] => 0.722512
                    [y] => 0.480133
                    [z] => 0
                    [scale] => 0.22
                    [rot] => 4.43314
                    [file] => buildings\other\ElvenGuardFireTower\ElvenGuardFireTower.mdl
                    [red] => 240
                    [green] => 240
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => true
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [15] => Array
                (
                    [x] => 0.489552
                    [y] => 5.35238
                    [z] => -12.8
                    [scale] => 0.13
                    [rot] => 1.5005
                    [file] => Doodads\Dungeon\Structures\DungeonArchway45\DungeonArchway45.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [16] => Array
                (
                    [x] => -0.844459
                    [y] => 5.35237
                    [z] => -12.8
                    [scale] => 0.13
                    [rot] => 3.1853
                    [file] => Doodads\Dungeon\Structures\DungeonArchway45\DungeonArchway45.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

        )

    [dmgTable] => Array
        (
        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => On Attack
                    [code] => local integer lvl = tower.getLevel()
        call tower.modifyProperty(MOD_DAMAGE_ADD_PERC,0.04+(lvl*0.001))
        call tower.modifyProperty(MOD_ATTACKSPEED,0.04+(lvl*0.001))
        set tower.userReal = tower.userReal+(0.04+(lvl*0.001))
            call redterror_energy_rotation(tower)
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => Every attack increases attack speed and damage.
                            [ONATTACK_chance] => 1.0
                            [ONATTACK_chanceLevelAdd] => 0.0
                            [long_explain] => Every attack increases attack speed and damage by |cffFFFF804%|r. |n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.1%|r attack speed and damage
                        )

                )

            [1] => Array
                (
                    [name] => Header
                    [code] => globals
        MultiboardValues Red_Terror_Values
    endglobals

    
    //Do not remove or rename this function!
    //Put your initialization tasks here, this function will be called on map init

    //@import 
        function redterror_energy_rotation takes Tower tower returns nothing 
        endfunction

    
    private function init takes nothing returns nothing
            set Red_Terror_Values = MultiboardValues.create(1)
            call Red_Terror_Values.setKey(0, "Acceleration")
    endfunction
                    [values] => Array
                        (
                            [visible] => true
                            [icon] => ReplaceableTextures\CommandButtons\BTNMagicLariet.blp
                            [name] => Energy Acceleration
                            [short_explain] => Every attack increases attack speed and damage.
                            [long_explain] => Every attack increases attack speed and damage by |cffFFFF804%|r. |n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.1%|r attack speed and damage
                        )

                )

            [2] => Array
                (
                    [name] => On Tower Details
                    [code] => call Red_Terror_Values.setValue(0, R2SW((tower.userReal*100),1,1))
        return Red_Terror_Values
                    [values] => Array
                        (
                            [0] => Array
                                (
                                    [_value] => 0
                                    [typ] => string
                                )

                        )

                )

            [3] => Array
                (
                    [name] => On Kill
                    [code] => local integer lvl = tower.getLevel()
            call  SFXAtUnit("Abilities\\Spells\\Orc\\FeralSpirit\\feralspiritdone.mdl",Event.getTarget().getUnit())
                call tower.modifyProperty(MOD_DAMAGE_ADD_PERC,-(tower.userReal))
                call tower.modifyProperty(MOD_ATTACKSPEED,-(tower.userReal))
                call cb_stun.applyOnlyTimed(tower,tower,2)
                set tower.userReal = 0
                    call redterror_energy_rotation(tower)
//different SFX?
                    [values] => Array
                        (
                            [visible] => true
                            [icon] => ReplaceableTextures\CommandButtons\BTNManaDrain.blp
                            [name] => Errant Tachyons
                            [short_explain] => On kill, tower is stunned and the bonus from Energy Acceleration is lost.
                            [long_explain] => On kill, this tower is stunned for |cffFFFF802|r seconds and the bonus from Energy Acceleration is lost.
                        )

                )

            [4] => Array
                (
                    [name] => On Tower Destruction
                    [code] => local Effect e = tower.userInt2
    call e.destroy()
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [5] => Array
                (
                    [name] => On Tower Creation
                    [code] => local Effect e = Effect.createAnimatedScaled("Abilities\\Spells\\Orc\\SpiritLink\\SpiritLinkTarget.mdl",tower.getX(), tower.getY(), 8.0, 0.0, 1.50)
    set tower.userInt2 = e
    set tower.userReal = 0
    call redterror_energy_rotation(tower)
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
        )

    [units] => Array
        (
        )

    [references] => Array
        (
        )

)