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

            [targs1] => Array
                (
                )

            [goldcost] => 1500
            [dice1] => 1
            [castpt] => 0.9
            [Missilespeed] => 1500
            [file] => units\human\HeroBloodElf\HeroBloodElf.mdl
            [manaN] => 40
            [atkType1] => normal
            [modelScale] => 0.55
            [weapTp1] => missile
            [acquire] => 900
            [rangeN1] => 900
            [upgrades] => Array
                (
                )

            [cool1] => 2.5
            [Ubertip] => This ancient library uses its knowledge to increase experience gain.
            [green] => 200
            [regenMana] => 2
            [abilList] => Array
                (
                )

            [mana0] => 5
            [Name] => Library of Alexandria
            [Missileart] => Abilities\Weapons\MurgulMagicMissile\MurgulMagicMissile.mdl
            [Art] => ReplaceableTextures\CommandButtons\BTNSorceressMaster.blp
            [red] => 150
            [buildingShadow] => Array
                (
                )

            [blue] => 150
            [sides1] => 1
            [auto] => Array
                (
                )

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

    [settings] => Array
        (
            [author] => Boekie
            [element] => astral
            [authorDisplay] => |cff00CD00Boekie|r
            [alpha] => 255
            [balanceTip] => |cffFFFF00+4% |rmana regen/lvl
            [rarity] => unique
            [version] => 1.0
            [abil_factor] => 0
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => 50.4393
                    [y] => 44.7556
                    [z] => 76.8
                    [scale] => 0.2
                    [rot] => 4.93928
                    [file] => Abilities\Weapons\SpiritOfVengeanceMissile\SpiritOfVengeanceMissile.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [1] => Array
                (
                    [x] => 48.8699
                    [y] => -16.982
                    [z] => 0
                    [scale] => 0.15
                    [rot] => 0.686901
                    [file] => Doodads\Ruins\Props\RuinsObelisk\RuinsObelisk0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [2] => Array
                (
                    [x] => 3.85221
                    [y] => 50.1702
                    [z] => 0
                    [scale] => 0.15
                    [rot] => 4.69836
                    [file] => Doodads\Ruins\Structures\RuinsArchway0_\RuinsArchway0_0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [3] => Array
                (
                    [x] => 54.6381
                    [y] => -2.16197
                    [z] => 0
                    [scale] => 0.15
                    [rot] => 3.18545
                    [file] => Doodads\Ruins\Structures\RuinsArchway0_\RuinsArchway0_0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [4] => Array
                (
                    [x] => -47.9955
                    [y] => 2.47752
                    [z] => 0
                    [scale] => 0.15
                    [rot] => 6.24954
                    [file] => Doodads\Ruins\Structures\RuinsArchway0_\RuinsArchway0_0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [5] => Array
                (
                    [x] => -44.1734
                    [y] => -16.2946
                    [z] => 0
                    [scale] => 0.15
                    [rot] => 5.48709
                    [file] => Doodads\Ruins\Props\RuinsObelisk\RuinsObelisk0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [6] => Array
                (
                    [x] => 49.2341
                    [y] => -5.0707
                    [z] => 38.4
                    [scale] => 0.17
                    [rot] => 2.54818
                    [file] => Objects\InventoryItems\tomeBrown\tomeBrown.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [7] => Array
                (
                    [x] => -43.6238
                    [y] => -6.81895
                    [z] => 44.8
                    [scale] => 0.17
                    [rot] => 4.81711
                    [file] => Objects\InventoryItems\tomeBrown\tomeBrown.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [8] => Array
                (
                    [x] => 49.262
                    [y] => -4.63239
                    [z] => 0
                    [scale] => 0.2
                    [rot] => 5.41646
                    [file] => Doodads\Ruins\Props\RuinsObelisk\RuinsObelisk0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [9] => Array
                (
                    [x] => 27.312
                    [y] => 55.1137
                    [z] => 0
                    [scale] => 0.3
                    [rot] => 4.70715
                    [file] => Doodads\Ruins\Props\LibraryShelf\LibraryShelf1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [10] => Array
                (
                    [x] => -24.3175
                    [y] => 52.9262
                    [z] => 0
                    [scale] => 0.3
                    [rot] => 4.74323
                    [file] => Doodads\Ruins\Props\LibraryShelf\LibraryShelf1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [11] => Array
                (
                    [x] => 2.04596
                    [y] => 53.6546
                    [z] => 0
                    [scale] => 0.3
                    [rot] => 4.71752
                    [file] => Doodads\Ruins\Props\LibraryShelf\LibraryShelf1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [12] => Array
                (
                    [x] => -43.4047
                    [y] => -4.19361
                    [z] => 0
                    [scale] => 0.2
                    [rot] => 5.52267
                    [file] => Doodads\Ruins\Props\RuinsObelisk\RuinsObelisk0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [13] => Array
                (
                    [x] => 36.1078
                    [y] => 34.6182
                    [z] => 0
                    [scale] => 0.35
                    [rot] => 4.59022
                    [file] => buildings\other\BookOfSummoning\BookOfSummoning.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 150
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [14] => Array
                (
                    [x] => -29.7345
                    [y] => 31.0609
                    [z] => 0
                    [scale] => 0.35
                    [rot] => 6.09424
                    [file] => buildings\other\BookOfSummoning\BookOfSummoning.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 150
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [15] => Array
                (
                    [x] => 4.08596
                    [y] => -35.4997
                    [z] => 0
                    [scale] => 0.35
                    [rot] => 2.3814
                    [file] => buildings\other\BookOfSummoning\BookOfSummoning.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 150
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [16] => Array
                (
                    [x] => -17.7667
                    [y] => -56.1476
                    [z] => 12.8
                    [scale] => 0.15
                    [rot] => 1.97222
                    [file] => Objects\InventoryItems\Glyph\Glyph.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [17] => Array
                (
                    [x] => 28.4268
                    [y] => -56.1476
                    [z] => 12.8
                    [scale] => 0.15
                    [rot] => 2.3562
                    [file] => Objects\InventoryItems\Glyph\Glyph.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [18] => Array
                (
                    [x] => -42.8171
                    [y] => 43.4672
                    [z] => 83.2
                    [scale] => 0.2
                    [rot] => 4.2237
                    [file] => Abilities\Weapons\SpiritOfVengeanceMissile\SpiritOfVengeanceMissile.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [19] => Array
                (
                    [x] => 27.5527
                    [y] => -55.6664
                    [z] => 0
                    [scale] => 0.3
                    [rot] => 4.74561
                    [file] => Doodads\Ruins\Props\RuinsTrash\RuinsTrash0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [20] => Array
                (
                    [x] => -17.7942
                    [y] => -54.7025
                    [z] => 0
                    [scale] => 0.3
                    [rot] => 4.77666
                    [file] => Doodads\Ruins\Props\RuinsTrash\RuinsTrash0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

        )

    [dmgTable] => Array
        (
            [0] => Array
                (
                    [id] => MOD_MANA_REGEN_PERC
                    [base] => 0
                    [add] => 0.04
                )

        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => Header
                    [code] => globals
        BuffType boekie_divine_aura
        BuffType boekie_divine2Buff
    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()
        set boekie_divine_aura = BuffType.createAuraEffectType(true)
        call m.addModification(MOD_EXP_GRANTED,0.30,0.01)
        call boekie_divine_aura.setBuffModifier(m)
        call boekie_divine_aura.setBuffIcon('@@0@@')
        
        set m = Modifier.create()
        set boekie_divine2Buff = BuffType.create(10.00, 0.2, true)  
        call m.addModification(MOD_EXP_RECEIVED, 1.00, 0.02)  
        call boekie_divine2Buff.setBuffModifier(m)
        call boekie_divine2Buff.setBuffIcon('@@1@@')
	endfunction
                    [values] => Array
                        (
                            [icon] => 
                            [visible] => false
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [1] => Array
                (
                    [name] => Periodic
                    [code] => local Iterate inRange = Iterate.overUnitsInRangeOfCaster(tower,TARGET_TOWERS,500) 
    local integer numResults = 0
    local Unit result = 0
    local Unit next
    local integer lvl = tower.getLevel()
    local unit u
    
    set result = inRange.nextRandom()

    if result != 0 then
        call result.addExp(2 + lvl * 0.2)
        set u = result.getUnit()
        call SFXAtUnit("Abilities\\Spells\\Human\\Invisibility\\InvisibilityTarget.mdl", u)
        set u = null
        call inRange.destroy()
    endif
                    [values] => Array
                        (
                            [icon] => ReplaceableTextures\CommandButtons\BTNSpellBookBLS.blp
                            [visible] => true
                            [PERIODIC_period] => 5
                            [name] => Divine Knowledge
                            [short_explain] => Grants experience to nearby random towers.
                            [long_explain] => Every |cffFFFF805|r seconds this tower grants |cffFFFF802|r experience to a random tower in |cffFFFF80500|r range.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.2|r experience
                        )

                )

            [2] => Array
                (
                    [name] => Autocast
                    [code] => call tower.addExp(2)
    call boekie_divine2Buff.apply(tower,Event.getTarget(),tower.getLevel()) //if there is anything inside this function, the buff has to be applied manually
                    [values] => Array
                        (
                            [caster_art] => Abilities\Spells\Items\AIim\AIimTarget.mdl
                            [icon] => ReplaceableTextures\CommandButtons\BTNManual3.blp
                            [AUTOCAST_cooldown] => 5
                            [AUTOCAST_numBuffsBeforeIdle] => 0
                            [AUTOCAST_isExtended] => false
                            [long_explain] => Adds a buff to the targeted tower which lasts |cffFFFF8010|r seconds. The buff increases the amount of experience the tower gains by |cffFFFF80100%|r. This tower gains |cffFFFF802|r experience every time it casts this buff. |n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.2|r seconds duration |r|n|cffFFFF80+2%|r experience gain.
                            [AUTOCAST_autocastType] => AC_TYPE_ALWAYS_BUFF
                            [AUTOCAST_manacost] => 30
                            [AUTOCAST_range] => 500
                            [AUTOCAST_buffType] => boekie_divine2Buff
                            [name] => Divine Teachings
                            [AUTOCAST_targetSelf] => false
                            [short_explain] => Increases the experience gain of a tower. This tower gains experience on every cast.
                            [AUTOCAST_targetType] => TARGET_TYPE_TOWERS
                            [target_art] => Abilities\Spells\Other\Charm\CharmTarget.mdl
                            [AUTOCAST_autoRange] => 500
                        )

                )

            [3] => Array
                (
                    [name] => Tower Aura
                    [code] => Array
                        (
                        )

                    [values] => Array
                        (
                            [icon] => ReplaceableTextures\CommandButtons\BTNTome.blp
                            [visible] => true
                            [AURA_auraEffect] => boekie_divine_aura
                            [AURA_power] => 0
                            [long_explain] => Increases the experience gain from creeps in |cffFFFF80900|r range by |cffFFFF8030%|r. |n|n|cffFF8000Level Bonus:|r|n+|cffFFFF801%|r experience
                            [AURA_level] => 0
                            [AURA_auraRange] => 900
                            [AURA_targetType] => TARGET_TYPE_CREEPS
                            [AURA_levelAdd] => 1
                            [AURA_powerAdd] => 1
                            [name] => Divine Research
                            [AURA_targetSelf] => false
                            [short_explain] => Increases the experience creeps give.
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => BHad
                    [oeValues] => Array
                        (
                            [Bufftip] => Divine Research
                            [Buffubertip] => This unit is under the effects of Divine Research; it gives more experience.
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNTome.blp
                            [TargetArt] => Abilities\Spells\Other\GeneralAuraTarget\GeneralAuraTarget.mdl
                            [EditorName] => Divine Research
                        )

                )

            [1] => Array
                (
                    [id] => @@1@@
                    [derivedFrom] => Bfzy
                    [oeValues] => Array
                        (
                            [Bufftip] => Divine Teachings
                            [Buffubertip] => This unit is getting smarter. It gains bonus experience.
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNManual3.blp
                            [TargetArt] => Abilities\Spells\Orc\FeralSpirit\feralspiritdone.mdl
                            [EditorName] => Divine Teachings
                        )

                )

        )

    [units] => Array
        (
        )

    [references] => Array
        (
        )

)