Array
(
    [scriptVersion] => 8
    [oeValues] => Array
        (
            [auto] => Array
                (
                )

            [Art] => ReplaceableTextures\CommandButtons\BTNForestTroll.blp
            [turnRate] => 3
            [dmgplus1] => 4345
            [bldtm] => 1
            [goldcost] => 3300
            [sides1] => 1
            [acquire] => 875
            [upgrades] => Array
                (
                )

            [Upgrade] => Array
                (
                )

            [Name] => Forest Troll Gang Leader
            [weapTp1] => missile
            [MissileHoming] => 1
            [file] => units\creeps\ForestTrollTrapper\ForestTrollTrapper.mdl
            [uberSplat] => YTDH
            [Missileart] => Abilities\Weapons\Axe\AxeMissile.mdl
            [Missilespeed] => 1500
            [dice1] => 1
            [RngBuff1] => 250
            [modelScale] => 0.9
            [rangeN1] => 875
            [atkType1] => siege
            [cool1] => 1.75
            [Ubertip] => One big, bad, NASTY dude you ABSOLUTELY ain't wanna mess with!
            [abilList] => Array
                (
                )

            [buildingShadow] => Array
                (
                )

            [targs1] => Array
                (
                )

            [weapsOn] => 1
        )

    [settings] => Array
        (
            [balanceTip] => |cffFFFF00+20% |rdmg to orcs (|cffFFFF00+0.4%|r/lvl)|n|cffFFFF00+20% |rdmg to humanoids (|cffFFFF00+0.4%|r/lvl)
            [abil_factor] => 0.65
            [author] => Moppy
            [alpha] => 255
            [authorDisplay] => |c006969FFMoppy|r
            [version] => 1.0
            [element] => nature
            [rarity] => rare
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => -34.2682
                    [y] => -16.3108
                    [z] => 0
                    [scale] => 0.24
                    [rot] => 2.44346
                    [file] => Doodads\Ruins\Plants\Ruins_Shroom\Ruins_Shroom1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [1] => Array
                (
                    [x] => -12.4978
                    [y] => 36.7259
                    [z] => 0
                    [scale] => 0.6
                    [rot] => 4.71239
                    [file] => Doodads\LordaeronSummer\Props\SkullonStick\SkullonStick0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [2] => Array
                (
                    [x] => -41.4045
                    [y] => 9.00184
                    [z] => 0
                    [scale] => 0.18
                    [rot] => 4.71239
                    [file] => Doodads\Ruins\Plants\Ruins_Shroom\Ruins_Shroom2.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [3] => Array
                (
                    [x] => -30.34
                    [y] => -28.1006
                    [z] => 0
                    [scale] => 0.18
                    [rot] => 4.71239
                    [file] => Doodads\Ruins\Plants\Ruins_Shroom\Ruins_Shroom5.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [4] => Array
                (
                    [x] => 46.0843
                    [y] => 14.3221
                    [z] => 0
                    [scale] => 0.54
                    [rot] => 4.71239
                    [file] => Doodads\Ashenvale\Plants\AshenShrooms\AshenShrooms0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [5] => Array
                (
                    [x] => 49.2283
                    [y] => -7.04462
                    [z] => 0
                    [scale] => 0.3
                    [rot] => 1.22173
                    [file] => Doodads\Ashenvale\Plants\AshenShrooms\AshenShrooms1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [6] => Array
                (
                    [x] => 36.1299
                    [y] => -25.9413
                    [z] => 0
                    [scale] => 0.6
                    [rot] => 4.61074
                    [file] => Doodads\Ashenvale\Plants\AshenShrooms\AshenShrooms2.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [7] => Array
                (
                    [x] => -32.3859
                    [y] => 25.9541
                    [z] => 0
                    [scale] => 0.36
                    [rot] => 3.49066
                    [file] => Doodads\LordaeronSummer\Plants\RiverRushes\RiverRushes1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [8] => Array
                (
                    [x] => -33.7742
                    [y] => 24.1056
                    [z] => 0
                    [scale] => 0.3
                    [rot] => 1.5708
                    [file] => Doodads\Felwood\Props\FelwoodHollowStump\FelwoodHollowStump.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [9] => Array
                (
                    [x] => -29.1311
                    [y] => -19.2015
                    [z] => 0
                    [scale] => 0.3
                    [rot] => 5.49779
                    [file] => Doodads\Ruins\Plants\VinyPlant\VinyPlant2.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [10] => Array
                (
                    [x] => 29.5465
                    [y] => 38.245
                    [z] => 0
                    [scale] => 0.42
                    [rot] => 1.5708
                    [file] => Doodads\Felwood\Props\FelwoodHollowStump\FelwoodHollowStump.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [11] => Array
                (
                    [x] => 21.1216
                    [y] => -27.4074
                    [z] => 0
                    [scale] => 0.3
                    [rot] => 2.05949
                    [file] => Doodads\Ruins\Plants\VinyPlant\VinyPlant3.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [12] => Array
                (
                    [x] => -12.8796
                    [y] => -34.472
                    [z] => 0
                    [scale] => 0.3
                    [rot] => 2.05949
                    [file] => Doodads\Ruins\Plants\VinyPlant\VinyPlant3.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [13] => Array
                (
                    [x] => 0.11326
                    [y] => -41.4102
                    [z] => 0
                    [scale] => 0.36
                    [rot] => 4.71239
                    [file] => Doodads\Ashenvale\Plants\AshenShrooms\AshenShrooms3.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [14] => Array
                (
                    [x] => 42.2612
                    [y] => 20.3903
                    [z] => 0
                    [scale] => 0.36
                    [rot] => 3.49066
                    [file] => Doodads\LordaeronSummer\Plants\RiverRushes\RiverRushes1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [15] => Array
                (
                    [x] => -4.38602
                    [y] => 1.71844
                    [z] => 0
                    [scale] => 0.3
                    [rot] => 0.872665
                    [file] => Doodads\Ruins\Plants\VinyPlant\VinyPlant2.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [16] => Array
                (
                    [x] => -24.8831
                    [y] => -17.7368
                    [z] => 0
                    [scale] => 0.36
                    [rot] => 3.49066
                    [file] => Doodads\LordaeronSummer\Plants\RiverRushes\RiverRushes1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [17] => Array
                (
                    [x] => -33.745
                    [y] => 21.3013
                    [z] => 6.4
                    [scale] => 0.3
                    [rot] => 2.05949
                    [file] => Doodads\Ruins\Plants\VinyPlant\VinyPlant3.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [18] => Array
                (
                    [x] => -37.0488
                    [y] => 24.6016
                    [z] => 19.2
                    [scale] => 0.18
                    [rot] => 4.71239
                    [file] => Doodads\Ruins\Plants\Ruins_Shroom\Ruins_Shroom1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [19] => Array
                (
                    [x] => 5.27927
                    [y] => 31.5371
                    [z] => 0
                    [scale] => 0.51
                    [rot] => 0.872665
                    [file] => Doodads\LordaeronSummer\Plants\RiverRushes\RiverRushes1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [20] => Array
                (
                    [x] => 25.8077
                    [y] => 34.5304
                    [z] => 38.4
                    [scale] => 0.42
                    [rot] => 4.71239
                    [file] => Doodads\LordaeronSummer\Props\SkullPile\SkullPile2.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [21] => Array
                (
                    [x] => -0.496605
                    [y] => 42.0879
                    [z] => 12.8
                    [scale] => 0.3
                    [rot] => 4.71239
                    [file] => Doodads\Ruins\Plants\Ruins_Shroom\Ruins_Shroom5.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

        )

    [dmgTable] => Array
        (
            [0] => Array
                (
                    [id] => MOD_DMG_TO_ORC
                    [base] => 0.2
                    [add] => 0.004
                )

            [1] => Array
                (
                    [id] => MOD_DMG_TO_HUMANOID
                    [base] => 0.2
                    [add] => 0.004
                )

        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => On Attack
                    [code] => local Projectile p
    set tower.userInt = tower.userInt + 1
    
    if tower.userInt == 5 then
        set p = Projectile.createFromUnitToUnit(moppy_troll_net, tower, 1, 0, tower, Event.getTarget(), true, false, false)
        set tower.userInt = 0
    endif
                    [values] => Array
                        (
                            [visible] => true
                            [icon] => ReplaceableTextures\CommandButtons\BTNEnsnare.blp
                            [name] => Weighted Throwing Net
                            [short_explain] => Every few attacks, throws a weighted net that deals additional damage around the main target and slows all enemies affected for a short duration.
                            [ONATTACK_chance] => 1.0
                            [ONATTACK_chanceLevelAdd] => 0.0
                            [long_explain] => Every |cffFFFF805th|r attack, throws a weighted net that deals an additional |cffFFFF8050%|r of the tower's attack damage in |cffFFFF80200|r range around the target and slows all enemies affected by |cffFFFF8030%|r for |cffFFFF803|r seconds. The counter resets to |cffFFFF800|r if there are no more enemies left in range.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+1%|r damage|n|cffFFFF80+0.6%|r slow
                        )

                )

            [1] => Array
                (
                    [name] => Header
                    [code] => globals
        //@import
        BuffType moppy_troll_adrenaline_rush
        //@import
        BuffType moppy_troll_net_slow
        //@import
        ProjectileType moppy_troll_net
    endglobals
    
    //@import
    function moppy_troll_net_throw takes Projectile p, Unit target returns nothing
    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
	endfunction
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [2] => Array
                (
                    [name] => On Damage
                    [code] => local real Rush = 2.5 + (tower.getLevel() * 0.05)
    local integer Power = R2I (Rush / 0.001)
    if tower.getBuffOfGroup("moppy_troll_adrenaline_rush") == 0 then
        call moppy_troll_adrenaline_rush.applyCustomPower(tower, tower, tower.getLevel(), Power)
    endif
                    [values] => Array
                        (
                            [ONDAMAGE_chance] => 0.15
                            [visible] => true
                            [icon] => ReplaceableTextures\CommandButtons\BTNBerserkForTrolls.blp
                            [name] => Adrenaline Rush
                            [short_explain] => The tower has a chance on hit to greatly increase its attack speed and debuff resistance for a short duration.
                            [ONDAMAGE_chanceLevelAdd] => 0.006
                            [long_explain] => The tower has a |cffFFFF8015%|r chance on hit to receive a burst of adrenaline, increasing attack speed by |cffFFFF80250%|r and debuff resistance by |cffFFFF8050%|r for |cffFFFF804|r seconds. Cannot retrigger while active!|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.6%|r chance|n|cffFFFF80+5%|r attack speed
                        )

                )

            [3] => Array
                (
                    [name] => Periodic
                    [code] => local Iterate i = Iterate.overUnitsInRangeOfCaster(tower, TARGET_TYPE_CREEPS, 875)
    local Unit u = i.next()
    
        if u == 0 then
            set tower.userInt = 0
        endif
                    [values] => Array
                        (
                            [visible] => false
                            [PERIODIC_period] => 1.0
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [4] => Array
                (
                    [name] => On Tower Creation
                    [code] => set tower.userReal = 0.5
    set tower.userReal2 = 0.01
    set tower.userReal3 = 3.0
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
        )

    [units] => Array
        (
        )

    [references] => Array
        (
            [0] => Array
                (
                    [export] => false
                    [category] => global
                    [typ] => BuffType
                    [name] => moppy_troll_adrenaline_rush
                )

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

            [2] => Array
                (
                    [export] => false
                    [category] => global
                    [typ] => ProjectileType
                    [name] => moppy_troll_net
                )

        )

    [lightning] => Array
        (
        )

)