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

            [Art] => ReplaceableTextures\CommandButtons\BTNrune1.blp
            [dmgplus1] => 1256
            [bldtm] => 1
            [goldcost] => 2100
            [unitSound] => ArcaneVault
            [sides1] => 1
            [manaN] => 125
            [acquire] => 900
            [upgrades] => Array
                (
                )

            [Upgrade] => Array
                (
                )

            [Name] => Greater Rune Forge
            [weapTp1] => missile
            [MissileHoming] => 1
            [file] => .mdl
            [uberSplat] => YTDG
            [Missileart] => Abilities\Weapons\GryphonRiderMissile\GryphonRiderMissile.mdl
            [Missilespeed] => 1300
            [dice1] => 1
            [RngBuff1] => 250
            [regenMana] => 2
            [rangeN1] => 850
            [atkType1] => magic
            [cool1] => 1.7
            [Ubertip] => Why seek power when you can forge it?
            [scaleBull] => 0
            [abilList] => Array
                (
                )

            [customTeamColor] => 1
            [buildingShadow] => Array
                (
                )

            [targs1] => Array
                (
                )

            [weapsOn] => 1
        )

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

            [abil_factor] => 0.3
            [author] => Ashbringer
            [alpha] => 0
            [authorDisplay] => |cffff6600Ashbringer|r
            [version] => 1.0
            [element] => arcane
            [rarity] => rare
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => -0.676428
                    [y] => -15.5743
                    [z] => -12.8
                    [scale] => 0.11
                    [rot] => 1.5708
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 75
                    [green] => 25
                    [blue] => 75
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [1] => Array
                (
                    [x] => 0.300058
                    [y] => 15.6495
                    [z] => -12.8
                    [scale] => 0.11
                    [rot] => 4.71239
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 75
                    [green] => 25
                    [blue] => 75
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [2] => Array
                (
                    [x] => -0.317145
                    [y] => 47.8938
                    [z] => 0
                    [scale] => 0.21
                    [rot] => 0
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 55
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [3] => Array
                (
                    [x] => -0.179632
                    [y] => -48.0853
                    [z] => 0
                    [scale] => 0.21
                    [rot] => 0
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 55
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [4] => Array
                (
                    [x] => 48.393
                    [y] => 0.358846
                    [z] => 0
                    [scale] => 0.21
                    [rot] => 0
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 55
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [5] => Array
                (
                    [x] => -48.1252
                    [y] => -0.017359
                    [z] => 0
                    [scale] => 0.21
                    [rot] => 0
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 55
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [6] => Array
                (
                    [x] => -35.4847
                    [y] => 35.3982
                    [z] => 0
                    [scale] => 0.21
                    [rot] => 0
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 55
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [7] => Array
                (
                    [x] => 35.2692
                    [y] => 35.4577
                    [z] => 0
                    [scale] => 0.21
                    [rot] => 0
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 55
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [8] => Array
                (
                    [x] => 35.3192
                    [y] => -35.4309
                    [z] => 0
                    [scale] => 0.21
                    [rot] => 0
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 55
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [9] => Array
                (
                    [x] => -35.3883
                    [y] => -35.3475
                    [z] => 0
                    [scale] => 0.21
                    [rot] => 0
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 55
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [10] => Array
                (
                    [x] => -0.283621
                    [y] => -15.5674
                    [z] => -19.2
                    [scale] => 0.11
                    [rot] => 1.5708
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 75
                    [green] => 25
                    [blue] => 75
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [11] => Array
                (
                    [x] => 0.0637681
                    [y] => 15.7368
                    [z] => -19.2
                    [scale] => 0.11
                    [rot] => 4.71239
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 75
                    [green] => 25
                    [blue] => 75
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [12] => Array
                (
                    [x] => -0.0205553
                    [y] => -0.0765017
                    [z] => 25.6
                    [scale] => 0.75
                    [rot] => 4.17134
                    [file] => Objects\InventoryItems\runicobject\runicobject.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [13] => Array
                (
                    [x] => 40.6979
                    [y] => -42.8904
                    [z] => -6.4
                    [scale] => 0.06
                    [rot] => 2.3562
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 75
                    [green] => 25
                    [blue] => 75
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [14] => Array
                (
                    [x] => 0.0165444
                    [y] => 0.0152347
                    [z] => 0
                    [scale] => 0.295
                    [rot] => 0
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 55
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [15] => Array
                (
                    [x] => -0.332223
                    [y] => -57.0002
                    [z] => -6.4
                    [scale] => 0.06
                    [rot] => 1.5708
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 75
                    [green] => 25
                    [blue] => 75
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [16] => Array
                (
                    [x] => 0.0149856
                    [y] => 55.4343
                    [z] => -6.4
                    [scale] => 0.06
                    [rot] => 4.71239
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 75
                    [green] => 25
                    [blue] => 75
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [17] => Array
                (
                    [x] => 40.6216
                    [y] => 41.5297
                    [z] => -6.4
                    [scale] => 0.06
                    [rot] => 3.92699
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 75
                    [green] => 25
                    [blue] => 75
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [18] => Array
                (
                    [x] => 55.2741
                    [y] => -0.457254
                    [z] => -6.4
                    [scale] => 0.06
                    [rot] => 3.14159
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 75
                    [green] => 25
                    [blue] => 75
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [19] => Array
                (
                    [x] => -42.4704
                    [y] => -42.801
                    [z] => -6.4
                    [scale] => 0.06
                    [rot] => 0.785398
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 75
                    [green] => 25
                    [blue] => 75
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [20] => Array
                (
                    [x] => -59.0961
                    [y] => 0.521562
                    [z] => -6.4
                    [scale] => 0.06
                    [rot] => 0
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 75
                    [green] => 25
                    [blue] => 75
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [21] => Array
                (
                    [x] => -43.1839
                    [y] => 41.2634
                    [z] => -6.4
                    [scale] => 0.06
                    [rot] => 5.49779
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 75
                    [green] => 25
                    [blue] => 75
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [22] => Array
                (
                    [x] => 48.4676
                    [y] => 0.128628
                    [z] => 0
                    [scale] => 0.08
                    [rot] => 3.14159
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 55
                    [alpha] => 255
                    [pitch] => -1.57
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [23] => Array
                (
                    [x] => -48.6693
                    [y] => 0.242325
                    [z] => 0
                    [scale] => 0.08
                    [rot] => 0
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 55
                    [alpha] => 255
                    [pitch] => -1.57
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [24] => Array
                (
                    [x] => -35.2981
                    [y] => -35.7355
                    [z] => 0
                    [scale] => 0.08
                    [rot] => 0.785398
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 55
                    [alpha] => 255
                    [pitch] => -1.57
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [25] => Array
                (
                    [x] => 0.138769
                    [y] => -48.7467
                    [z] => 0
                    [scale] => 0.08
                    [rot] => 1.5708
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 55
                    [alpha] => 255
                    [pitch] => -1.57
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [26] => Array
                (
                    [x] => -35.4346
                    [y] => 35.2238
                    [z] => 0
                    [scale] => 0.08
                    [rot] => 5.49779
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 55
                    [alpha] => 255
                    [pitch] => -1.57
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [27] => Array
                (
                    [x] => 35.1896
                    [y] => -35.3442
                    [z] => 0
                    [scale] => 0.08
                    [rot] => 2.3562
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 55
                    [alpha] => 255
                    [pitch] => -1.57
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [28] => Array
                (
                    [x] => -0.172747
                    [y] => 48.358
                    [z] => 0
                    [scale] => 0.08
                    [rot] => 4.71239
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 55
                    [alpha] => 255
                    [pitch] => -1.57
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [29] => Array
                (
                    [x] => 35.5835
                    [y] => 35.8211
                    [z] => 0
                    [scale] => 0.08
                    [rot] => 3.92699
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 55
                    [alpha] => 255
                    [pitch] => -1.57
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [30] => Array
                (
                    [x] => -0.476767
                    [y] => -19.7452
                    [z] => 25.6
                    [scale] => 0.09
                    [rot] => 0
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 55
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [31] => Array
                (
                    [x] => -0.248533
                    [y] => 20.4806
                    [z] => 25.6
                    [scale] => 0.09
                    [rot] => 0
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 55
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [32] => Array
                (
                    [x] => 19.3151
                    [y] => 0.405576
                    [z] => 25.6
                    [scale] => 0.09
                    [rot] => 0
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 55
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [33] => Array
                (
                    [x] => -20.1857
                    [y] => 0.265953
                    [z] => 25.6
                    [scale] => 0.09
                    [rot] => 0
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 55
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [34] => Array
                (
                    [x] => -14.0006
                    [y] => 13.3572
                    [z] => 25.6
                    [scale] => 0.09
                    [rot] => 0.785398
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 55
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [35] => Array
                (
                    [x] => 13.8215
                    [y] => 13.6194
                    [z] => 25.6
                    [scale] => 0.09
                    [rot] => 0.785398
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 55
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [36] => Array
                (
                    [x] => 12.4299
                    [y] => -14.6352
                    [z] => 25.6
                    [scale] => 0.09
                    [rot] => 0.785398
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 55
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [37] => Array
                (
                    [x] => -14.5308
                    [y] => -13.4646
                    [z] => 25.6
                    [scale] => 0.09
                    [rot] => 0.785398
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 55
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [38] => Array
                (
                    [x] => 0.491602
                    [y] => 9.23117
                    [z] => -6.4
                    [scale] => 0.07
                    [rot] => 4.71239
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 55
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [39] => Array
                (
                    [x] => -0.521871
                    [y] => -9.39321
                    [z] => -6.4
                    [scale] => 0.07
                    [rot] => 1.5708
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 55
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

        )

    [dmgTable] => Array
        (
        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => On Attack
                    [code] => local Runes r = tower.userInt3
    local real charge = 10 + (tower.getLevel() * 0.4)
    
    call r.add_random_charge(tower, charge)
                    [values] => Array
                        (
                            [visible] => true
                            [icon] => ReplaceableTextures\CommandButtons\BTNrune1.blp
                            [name] => Runic Focus
                            [short_explain] => Chance on attack to generate charge.
                            [ONATTACK_chance] => 0.15
                            [ONATTACK_chanceLevelAdd] => 0.006
                            [long_explain] => Attacks have a |cffffff8015%|r chance to generate |cffffff8010|r charge for a random rune. Runes are considered charged when they have at least |cffffff80100|r charge and charge cannot exceed |cffffff80200|r.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.6%|r chance|n|cffFFFF80+0.4|r charge generated
                        )

                )

            [1] => Array
                (
                    [name] => Header
                    [code] => globals
        //@import
        BuffType ashbringer_rune_atkdmg
        //@import
        BuffType ashbringer_rune_atkspd
        //@import
        BuffType ashbringer_rune_trig
        //@import
        BuffType ashbringer_rune_mana
        //@import
        BuffType ashbringer_rune_itmch
        //@import
        BuffType ashbringer_rune_crtdmg
        //@import
        BuffType ashbringer_rune_buffdur
        //@import
        BuffType ashbringer_rune_crtch
    endglobals
    
    //@import
    struct Runes
        string array rune_model[11]
        integer array base_r[8]
        integer array base_g[8]
        integer array base_b[8]
        integer array bufftype[8]
        integer array current[8]
        real array charge[8]
        Effect array rune_fx[8]
        Effect array base_fx[8]
        integer array empty[8]
        integer array shuffled[8]
        
        method shuffle takes nothing returns nothing
        endmethod
        
        method setup takes Tower t returns nothing
        endmethod
        
        method update_rune takes integer i returns nothing
        endmethod
        
        method activate_rune takes integer i, real x, real y, integer fx returns nothing
        endmethod
        
        method add_even_charge takes Tower tower, real charge returns nothing
        endmethod
        
        method add_random_charge takes Tower tower, real charge returns nothing
        endmethod
        
        method activate_random takes Tower tower, integer max, real charge, integer power returns nothing
        endmethod
    endstruct
    
    //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] => true
                            [icon] => ReplaceableTextures\CommandButtons\BTNRune2.blp
                            [name] => Forged Runes
                            [short_explain] => Each rune grants an associated buff when activated.
                            [long_explain] => Each rune grants an associated buff when activated:|n|cffff0000Vex|r: |cffffff80+15%|r attack damage|n|cff00ffffTal|r: |cffffff80+15%|r attack speed|n|cffffff00Eth|r: |cffffff80+15%|r trigger chances|n|cffaaaaffNef|r: |cffffff80+15%|r mana regeneration|n|cffff66bbOrt|r: |cffffff80+7.5%|r item chance|n|cff00ff00Lem|r: |cffffff80+0.15x|r crit damage|n|cff8811ffJah|r: |cffffff80+15%|r buff duration|n|cffff6600Qol|r: |cffffff80+7.5%|r crit chance|n|n|cffff8000Level Bonus:|r|n|cffffff80+0.1%|r item chance/crit chance|n|cffffff80+0.2%|r other stats
                        )

                )

            [2] => Array
                (
                    [name] => On Tower Destruction
                    [code] => local integer i = 0
    local Runes r = tower.userInt3
    
    loop
        exitwhen i > 7
        call r.rune_fx[i].destroy()
        call r.base_fx[i].destroy()
        set i = i + 1
    endloop
    
    call r.destroy()
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [3] => Array
                (
                    [name] => Autocast
                    [code] => local Runes r = tower.userInt3
    
    call r.activate_random(tower, 3, 110 + (tower.getLevel() * 4), 75 + (tower.getLevel() * 1))
                    [values] => Array
                        (
                            [AUTOCAST_cooldown] => 3
                            [AUTOCAST_autoRange] => 900
                            [AUTOCAST_manacost] => 40
                            [icon] => ReplaceableTextures\CommandButtons\BTNStormRune.blp
                            [AUTOCAST_range] => 900
                            [AUTOCAST_targetType] => 0
                            [AUTOCAST_numBuffsBeforeIdle] => 0
                            [caster_art] => 
                            [long_explain] => Generate |cffffff80110|r charge evenly divided amongst all runes and then attempt to activate up to |cffffff803|r charged runes. Each activated rune grants its power to towers within |cffffff80150|r range for |cffffff805|r seconds. The activated runes become depleted, requiring |cffffff80100|r charge before they can be activated again.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+4|r charge generated|n|cffFFFF80+0.2|r seconds durationgenerated
                            [target_art] => 
                            [AUTOCAST_autocastType] => AC_TYPE_OFFENSIVE_IMMEDIATE
                            [AUTOCAST_buffType] => 0
                            [AUTOCAST_isExtended] => true
                            [name] => Rune Activation
                            [AUTOCAST_targetSelf] => false
                            [short_explain] => Activate some charged runes, granting their power to adjacent towers.
                        )

                )

            [4] => Array
                (
                    [name] => On Tower Creation
                    [code] => local Runes r = Runes.create()
            
    set tower.userInt3 = r
    set tower.userInt2 = 0
    
    call r.setup(tower)
                    [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] => ashbringer_rune_atkdmg
                )

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

            [2] => Array
                (
                    [export] => false
                    [category] => global
                    [typ] => BuffType
                    [name] => ashbringer_rune_trig
                )

            [3] => Array
                (
                    [export] => false
                    [category] => global
                    [typ] => BuffType
                    [name] => ashbringer_rune_mana
                )

            [4] => Array
                (
                    [export] => false
                    [category] => global
                    [typ] => BuffType
                    [name] => ashbringer_rune_itmch
                )

            [5] => Array
                (
                    [export] => false
                    [category] => global
                    [typ] => BuffType
                    [name] => ashbringer_rune_crtdmg
                )

            [6] => Array
                (
                    [export] => false
                    [category] => global
                    [typ] => BuffType
                    [name] => ashbringer_rune_buffdur
                )

            [7] => Array
                (
                    [export] => false
                    [category] => global
                    [typ] => BuffType
                    [name] => ashbringer_rune_crtch
                )

        )

    [lightning] => Array
        (
        )

)