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

            [targs1] => Array
                (
                )

            [goldcost] => 800
            [weapsOn] => 1
            [dice1] => 1
            [Missilespeed] => 1500
            [file] => units\creeps\JungleBeast\JungleBeast.mdl
            [atkType1] => siege
            [modelScale] => 0.8
            [weapTp1] => missile
            [acquire] => 850
            [rangeN1] => 850
            [upgrades] => Array
                (
                )

            [cool1] => 1.1
            [Ubertip] => This tower becomes enraged when it kills a unit and also gets stronger with every critical hit.
            [abilList] => Array
                (
                )

            [Name] => Jungle Stalker
            [Missileart] => Abilities\Weapons\AncientProtectorMissile\AncientProtectorMissile.mdl
            [Art] => ReplaceableTextures\CommandButtons\BTNJungleBeast.blp
            [buildingShadow] => Array
                (
                )

            [turnRate] => 0.8
            [blue] => 175
            [sides1] => 100
            [uberSplat] => OSMA
            [auto] => Array
                (
                )

            [dmgplus1] => 612
            [bldtm] => 1
        )

    [settings] => Array
        (
            [author] => Boekie
            [element] => nature
            [authorDisplay] => |cff00CD00Boekie|r
            [alpha] => 255
            [balanceTip] => |cffFFFF0015%|r crit chance (|cffFFFF00+0.5%|r/lvl)
            [rarity] => rare
            [version] => 1.0
            [abil_factor] => 0.7
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => 35.6386
                    [y] => -46.9797
                    [z] => 0
                    [scale] => 0.6
                    [rot] => 3.57793
                    [file] => Doodads\Ashenvale\Plants\AshenShrooms\AshenShrooms0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 100
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [1] => Array
                (
                    [x] => 30.0314
                    [y] => -33.0754
                    [z] => 0
                    [scale] => 0.5
                    [rot] => 1.69297
                    [file] => Doodads\Ashenvale\Water\AshenLillyPad\AshenLillyPad.mdl
                    [red] => 100
                    [green] => 255
                    [blue] => 150
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [2] => Array
                (
                    [x] => -48.1987
                    [y] => -31.444
                    [z] => 0
                    [scale] => 0.6
                    [rot] => 1.81514
                    [file] => Doodads\Ashenvale\Plants\AshenShrooms\AshenShrooms0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 100
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [3] => Array
                (
                    [x] => 15.6217
                    [y] => -8.983
                    [z] => 0
                    [scale] => 0.5
                    [rot] => 0.10472
                    [file] => Doodads\Ashenvale\Water\AshenLillyPad\AshenLillyPad.mdl
                    [red] => 100
                    [green] => 255
                    [blue] => 150
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [4] => Array
                (
                    [x] => -47.3488
                    [y] => 5.12986
                    [z] => 0
                    [scale] => 0.5
                    [rot] => 1.72788
                    [file] => Doodads\Ashenvale\Water\AshenLillyPad\AshenLillyPad.mdl
                    [red] => 100
                    [green] => 255
                    [blue] => 150
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [5] => Array
                (
                    [x] => -31.9877
                    [y] => 23.5926
                    [z] => 0
                    [scale] => 0.5
                    [rot] => 4.59022
                    [file] => Doodads\Ashenvale\Water\AshenLillyPad\AshenLillyPad.mdl
                    [red] => 100
                    [green] => 255
                    [blue] => 150
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [6] => Array
                (
                    [x] => 11.2053
                    [y] => 8.30583
                    [z] => 0
                    [scale] => 0.5
                    [rot] => 4.36332
                    [file] => Doodads\Ashenvale\Water\AshenLillyPad\AshenLillyPad.mdl
                    [red] => 100
                    [green] => 255
                    [blue] => 150
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [7] => Array
                (
                    [x] => 51.6797
                    [y] => 15.5051
                    [z] => 0
                    [scale] => 0.5
                    [rot] => 2.46091
                    [file] => Doodads\Ashenvale\Water\AshenLillyPad\AshenLillyPad.mdl
                    [red] => 100
                    [green] => 255
                    [blue] => 150
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [8] => Array
                (
                    [x] => 16.9813
                    [y] => -4.31084
                    [z] => 0
                    [scale] => 0.5
                    [rot] => 3.22886
                    [file] => Doodads\Ashenvale\Water\AshenLillyPad\AshenLillyPad.mdl
                    [red] => 100
                    [green] => 255
                    [blue] => 150
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [9] => Array
                (
                    [x] => -3.84868
                    [y] => -28.8667
                    [z] => 0
                    [scale] => 0.5
                    [rot] => 1.98968
                    [file] => Doodads\Ashenvale\Water\AshenLillyPad\AshenLillyPad.mdl
                    [red] => 100
                    [green] => 255
                    [blue] => 150
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [10] => Array
                (
                    [x] => -33.9016
                    [y] => -32.6244
                    [z] => 0
                    [scale] => 0.5
                    [rot] => 3.80482
                    [file] => Doodads\Ashenvale\Water\AshenLillyPad\AshenLillyPad.mdl
                    [red] => 100
                    [green] => 255
                    [blue] => 150
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [11] => Array
                (
                    [x] => 15.6899
                    [y] => 32.7358
                    [z] => 0
                    [scale] => 0.5
                    [rot] => 5.14872
                    [file] => Doodads\Ashenvale\Water\AshenLillyPad\AshenLillyPad.mdl
                    [red] => 100
                    [green] => 255
                    [blue] => 150
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [12] => Array
                (
                    [x] => -33.7288
                    [y] => 22.5083
                    [z] => 0
                    [scale] => 0.6
                    [rot] => 2.40856
                    [file] => Doodads\Ashenvale\Plants\AshenShrooms\AshenShrooms0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 100
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [13] => Array
                (
                    [x] => 5.53721
                    [y] => -34.8648
                    [z] => -6.4
                    [scale] => 0.6
                    [rot] => 2.3911
                    [file] => Doodads\Ashenvale\Plants\AshenShrooms\AshenShrooms0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 100
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [14] => Array
                (
                    [x] => 48.4254
                    [y] => 23.726
                    [z] => 0
                    [scale] => 0.6
                    [rot] => 0.907571
                    [file] => Doodads\Ashenvale\Plants\AshenShrooms\AshenShrooms0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 100
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

        )

    [dmgTable] => Array
        (
            [0] => Array
                (
                    [id] => MOD_ATK_CRIT_CHANCE
                    [base] => 0.1375
                    [add] => 0.005
                )

        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => On Tower Creation
                    [code] => local Tower preceding = Event.getPrecedingTower()  
    local real damageBonus 

    if(preceding.getFamily() == tower.getFamily()) then  
        set damageBonus = preceding.userReal 
        set tower.userReal = damageBonus 
        call tower.modifyProperty(MOD_DAMAGE_ADD_PERC, damageBonus)  
    else  
        set tower.userReal = 0.0 //Damage bonus  
    endif
                    [values] => Array
                        (
                            [icon] => 
                            [visible] => false
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [1] => Array
                (
                    [name] => On Damage
                    [code] => local real damageBonus

    if Event.isAttackDamageCritical() and tower.userReal <= 2 then 
        set tower.userReal = tower.userReal + 0.002
        call tower.modifyProperty(MOD_DAMAGE_ADD_PERC, 0.002)
    endif
                    [values] => Array
                        (
                            [ONDAMAGE_chance] => 1.0
                            [icon] => ReplaceableTextures\CommandButtons\BTNBattleRoar.blp
                            [visible] => true
                            [name] => Feral Aggression
                            [short_explain] => This tower gets stronger with every critical hit.
                            [ONDAMAGE_chanceLevelAdd] => 0.0
                            [long_explain] => On every critical hit this tower gains |cffFFFF80+0.2%|r bonus damage. This bonus is permanent and has a maximum of |cffFFFF80200%|r bonus damage.
                        )

                )

            [2] => Array
                (
                    [name] => On Tower Details
                    [code] => call boekie_jungle_stalker_values.setValue(0, formatPercent(tower.userReal, 1))
    return boekie_jungle_stalker_values
                    [values] => Array
                        (
                        )

                )

            [3] => Array
                (
                    [name] => Header
                    [code] => globals
        //@export
        BuffType boekie_rage_buff
        //@export
        MultiboardValues boekie_jungle_stalker_values
    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
        local Modifier m = Modifier.create()  
        call m.addModification(MOD_ATTACKSPEED,1.0,0.01)  
        set boekie_rage_buff = BuffType.create(0.0,0.0,true) //0.0 time since I will apply it custom timed  
        call boekie_rage_buff.setBuffModifier(m)  
        call boekie_rage_buff.setBuffIcon('@@0@@')
        
        set boekie_jungle_stalker_values = MultiboardValues.create(1)
        call boekie_jungle_stalker_values.setKey(0, "Damage Bonus")
	endfunction
                    [values] => Array
                        (
                            [icon] => 
                            [visible] => false
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [4] => Array
                (
                    [name] => On Kill
                    [code] => local integer lvl = tower.getLevel() 
    if tower.getBuffOfType(boekie_rage_buff) == 0 then  
        call boekie_rage_buff.applyCustomTimed(tower, tower, lvl, 3.0+0.05*lvl) 
    endif
                    [values] => Array
                        (
                            [icon] => ReplaceableTextures\CommandButtons\BTNVampiricAura.blp
                            [visible] => true
                            [name] => Bloodthirst
                            [short_explain] => When this tower kills a unit it gets enraged.
                            [long_explain] => Whenever this tower kills a unit it becomes enraged, gaining |cffFFFF80+100%|r attackspeed for |cffFFFF803|r seconds. Cannot retrigger while active!|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.05|r sec duration|n|cffFFFF80+1%|r attackspeed
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => Bblo
                    [oeValues] => Array
                        (
                            [Bufftip] => Bloodthirst
                            [Buffubertip] => This unit has Bloodthirst, its attackspeed is increased.
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNVampiricAura.blp
                            [EditorName] => Bloodthirst
                        )

                )

        )

    [units] => Array
        (
        )

    [references] => Array
        (
            [0] => Array
                (
                    [export] => true
                    [category] => global
                    [typ] => BuffType
                    [name] => boekie_rage_buff
                )

            [1] => Array
                (
                    [export] => true
                    [category] => global
                    [typ] => MultiboardValues
                    [name] => boekie_jungle_stalker_values
                )

        )

)