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

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

            [Upgrade] => Array
                (
                )

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

            [buildingShadow] => Array
                (
                )

            [targs1] => Array
                (
                )

            [weapsOn] => 1
        )

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

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => 53.8443
                    [y] => -0.224694
                    [z] => 0
                    [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
                )

            [1] => Array
                (
                    [x] => 48.9151
                    [y] => 14.887
                    [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
                )

            [2] => Array
                (
                    [x] => 45.4777
                    [y] => -15.8739
                    [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
                )

            [3] => Array
                (
                    [x] => -25.0377
                    [y] => 6.37158
                    [z] => 0
                    [scale] => 0.48
                    [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
                )

            [4] => Array
                (
                    [x] => -42.519
                    [y] => -9.24871
                    [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
                )

            [5] => Array
                (
                    [x] => 6.38859
                    [y] => -39.0141
                    [z] => 0
                    [scale] => 0.54
                    [rot] => 4.71239
                    [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
                )

            [6] => Array
                (
                    [x] => -8.2975
                    [y] => 34.5422
                    [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
                )

            [7] => Array
                (
                    [x] => 1.94159
                    [y] => -36.7342
                    [z] => 0
                    [scale] => 0.3
                    [rot] => 3.14159
                    [file] => Doodads\Ruins\Plants\VinyPlant\VinyPlant1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [8] => Array
                (
                    [x] => 4.19938
                    [y] => -4.64627
                    [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
                )

            [9] => Array
                (
                    [x] => -18.7581
                    [y] => 23.3704
                    [z] => 0
                    [scale] => 0.2625
                    [rot] => 1.5708
                    [file] => Doodads\Felwood\Props\FelwoodLogAngled\FelwoodLogAngled.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [10] => Array
                (
                    [x] => -9.61567
                    [y] => -25.2576
                    [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
                )

            [11] => Array
                (
                    [x] => -32.598
                    [y] => 7.3602
                    [z] => 6.4
                    [scale] => 0.3
                    [rot] => 3.14159
                    [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
                )

            [12] => Array
                (
                    [x] => 39.9676
                    [y] => -4.16546
                    [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] => -30.9691
                    [y] => -17.9799
                    [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] => 15.0112
                    [y] => 12.2756
                    [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
                )

        )

    [dmgTable] => Array
        (
            [0] => Array
                (
                    [id] => MOD_DMG_TO_ORC
                    [base] => 0.15
                    [add] => 0.003
                )

            [1] => Array
                (
                    [id] => MOD_DMG_TO_HUMANOID
                    [base] => 0.15
                    [add] => 0.003
                )

        )

    [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 |cffFFFF8040%|r of the tower's attack damage in |cffFFFF80200|r range around the target and slows all enemies affected by |cffFFFF8030%|r for |cffFFFF802.5|r seconds. The counter resets to |cffFFFF800|r if there are no more enemies left in range.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.8%|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.0 + (tower.getLevel() * 0.04)
    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 |cffFFFF80200%|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+4%|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.4
    set tower.userReal2 = 0.008
    set tower.userReal3 = 2.5
    set tower.userInt = 0 // Set throw net counter to 0 for newly built towers
                    [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
        (
        )

)