Array
(
[scriptVersion] => 8
[oeValues] => Array
(
[auto] => Array
(
)
[Art] => ReplaceableTextures\CommandButtons\BTNHeroArchMage.blp
[turnRate] => 3
[dmgplus1] => 6255
[bldtm] => 1
[goldcost] => 3250
[unitSound] => HeroArchMage
[sides1] => 1
[Missilearc] => 0.15
[manaN] => 300
[acquire] => 900
[upgrades] => Array
(
)
[Upgrade] => Array
(
)
[Name] => Archmage
[weapTp1] => msplash
[MissileHoming] => 1
[file] => units\human\HeroArchMage\HeroArchMage.mdl
[uberSplat] => YTDG
[Harea1] => 200
[Missilespeed] => 1600
[Missileart] => Abilities\Weapons\RedDragonBreath\RedDragonMissile.mdl
[dice1] => 1
[RngBuff1] => 250
[regenMana] => 4
[Hfact1] => 0.5
[modelScale] => 0.42
[rangeN1] => 900
[atkType1] => pierce
[cool1] => 2.6
[Ubertip] => Respect his authority.
[scaleBull] => 0
[abilList] => Array
(
)
[moveHeight] => 41
[customTeamColor] => 1
[buildingShadow] => Array
(
)
[targs1] => Array
(
)
[weapsOn] => 1
[teamColor] => 1
)
[settings] => Array
(
[balanceTip] => |cffCCFF00Splash attack:|n |cffFFFF00200|r AoE: |cffFFFF0050%|r damage|r
[abil_factor] => 0.7
[author] => Ashbringer
[alpha] => 255
[authorDisplay] => |cffff6600Ashbringer|r
[version] => 1.0
[element] => arcane
[rarity] => unique
)
[effects] => Array
(
[0] => Array
(
[x] => -38.6744
[y] => -37.9476
[z] => 32
[scale] => 0.4
[rot] => 0.724843
[file] => Doodads\LordaeronSummer\Props\Brazier\Brazier
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[1] => Array
(
[x] => -38.4325
[y] => 39.4323
[z] => 32
[scale] => 0.4
[rot] => 5.49603
[file] => Doodads\LordaeronSummer\Props\Brazier\Brazier
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[2] => Array
(
[x] => 0.276003
[y] => 11.5835
[z] => 12.8
[scale] => 0.15
[rot] => 4.71239
[file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
[red] => 55
[green] => 55
[blue] => 255
[alpha] => 255
[pitch] => -1.56
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[3] => Array
(
[x] => 37.4024
[y] => 41.5745
[z] => 32
[scale] => 0.4
[rot] => 4.03085
[file] => Doodads\LordaeronSummer\Props\Brazier\Brazier
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[4] => Array
(
[x] => 37.6104
[y] => -37.0364
[z] => 32
[scale] => 0.4
[rot] => 2.35815
[file] => Doodads\LordaeronSummer\Props\Brazier\Brazier
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[5] => Array
(
[x] => -11.6454
[y] => 1.07579
[z] => 12.8
[scale] => 0.15
[rot] => 0
[file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
[red] => 55
[green] => 55
[blue] => 255
[alpha] => 255
[pitch] => -1.56
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[6] => Array
(
[x] => 11.3471
[y] => 0.321227
[z] => 12.8
[scale] => 0.15
[rot] => 3.14159
[file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
[red] => 55
[green] => 55
[blue] => 255
[alpha] => 255
[pitch] => -1.56
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[7] => Array
(
[x] => -0.574309
[y] => -10.1865
[z] => 12.8
[scale] => 0.15
[rot] => 1.5708
[file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
[red] => 55
[green] => 55
[blue] => 255
[alpha] => 255
[pitch] => -1.56
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[8] => Array
(
[x] => -46.5954
[y] => -0.978839
[z] => 38.4
[scale] => 0.2
[rot] => 3.31613
[file] => Objects\InventoryItems\runicobject\runicobject.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[9] => Array
(
[x] => -0.297318
[y] => 47.4204
[z] => 38.4
[scale] => 0.2
[rot] => 3.31613
[file] => Objects\InventoryItems\runicobject\runicobject.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[10] => Array
(
[x] => -0.0515101
[y] => 40.1338
[z] => 0
[scale] => 0.25
[rot] => 4.71239
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[11] => Array
(
[x] => -31.9769
[y] => 40.0709
[z] => 0
[scale] => 0.25
[rot] => 4.71239
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[12] => Array
(
[x] => -38.6371
[y] => 0.194526
[z] => 0
[scale] => 0.25
[rot] => 3.14159
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[13] => Array
(
[x] => -38.6999
[y] => 32.1199
[z] => 0
[scale] => 0.25
[rot] => 3.14159
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[14] => Array
(
[x] => 38.894
[y] => -0.018427
[z] => 0
[scale] => 0.25
[rot] => 3.14159
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[15] => Array
(
[x] => 38.8312
[y] => 31.907
[z] => 0
[scale] => 0.25
[rot] => 3.14159
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[16] => Array
(
[x] => 45.5168
[y] => -0.850412
[z] => 38.4
[scale] => 0.2
[rot] => 3.31613
[file] => Objects\InventoryItems\runicobject\runicobject.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[17] => Array
(
[x] => -0.236176
[y] => -46.3877
[z] => 38.4
[scale] => 0.2
[rot] => 3.31613
[file] => Objects\InventoryItems\runicobject\runicobject.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[18] => Array
(
[x] => -38.6833
[y] => -31.7245
[z] => 0
[scale] => 0.25
[rot] => 3.14159
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[19] => Array
(
[x] => -38.6371
[y] => 0.194526
[z] => 19.2
[scale] => 0.25
[rot] => 3.14159
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[20] => Array
(
[x] => 31.8676
[y] => 40.0875
[z] => 0
[scale] => 0.25
[rot] => 4.71239
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[21] => Array
(
[x] => -0.0515101
[y] => 40.1338
[z] => 19.2
[scale] => 0.25
[rot] => 4.71239
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[22] => Array
(
[x] => 38.8478
[y] => -31.9375
[z] => 0
[scale] => 0.25
[rot] => 3.14159
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[23] => Array
(
[x] => 38.894
[y] => -0.0184245
[z] => 19.2
[scale] => 0.25
[rot] => 3.14159
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[24] => Array
(
[x] => -38.2836
[y] => -38.0772
[z] => -19.2
[scale] => 0.45
[rot] => 0
[file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[25] => Array
(
[x] => -38.3458
[y] => 39.6244
[z] => -19.2
[scale] => 0.45
[rot] => 0
[file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[26] => Array
(
[x] => 37.8995
[y] => 40.0162
[z] => -19.2
[scale] => 0.45
[rot] => 0
[file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[27] => Array
(
[x] => 37.7623
[y] => -37.5863
[z] => -19.2
[scale] => 0.45
[rot] => 0
[file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[28] => Array
(
[x] => -13.9078
[y] => 0.380048
[z] => -19.2
[scale] => 0.1
[rot] => 0
[file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[29] => Array
(
[x] => 13.5817
[y] => -0.553279
[z] => -19.2
[scale] => 0.1
[rot] => 3.14159
[file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[30] => Array
(
[x] => -0.0701431
[y] => 0.0790313
[z] => -12.8
[scale] => 0.6
[rot] => 0
[file] => Doodads\Cityscape\Structures\City_LowWall_ShortEndCap\City_LowWall_ShortEndCap.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[31] => Array
(
[x] => -0.0760658
[y] => -0.230271
[z] => -6.4
[scale] => 0.85
[rot] => 4.99164
[file] => Abilities\Spells\Human\Brilliance\Brilliance.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[32] => Array
(
[x] => -18.4448
[y] => -26.6485
[z] => 32
[scale] => 0.3
[rot] => 1.50098
[file] => Doodads\Ruins\Plants\Ruins_Lilypad\Ruins_Lilypad1.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[33] => Array
(
[x] => 27.6705
[y] => 18.4112
[z] => 32
[scale] => 0.3
[rot] => 5.35816
[file] => Doodads\Ruins\Plants\Ruins_Lilypad\Ruins_Lilypad0.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[34] => Array
(
[x] => -24.5338
[y] => 13.6563
[z] => 32
[scale] => 0.45
[rot] => 4.99164
[file] => Doodads\Ruins\Water\BubbleGeyser\BubbleGeyser.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[35] => Array
(
[x] => 0.0446224
[y] => -38.7719
[z] => 0
[scale] => 0.25
[rot] => 4.71239
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[36] => Array
(
[x] => -31.8808
[y] => -38.8347
[z] => 0
[scale] => 0.25
[rot] => 4.71239
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[37] => Array
(
[x] => 31.9637
[y] => -38.8181
[z] => 0
[scale] => 0.25
[rot] => 4.71239
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[38] => Array
(
[x] => 0.0446224
[y] => -38.7719
[z] => 19.2
[scale] => 0.25
[rot] => 4.71239
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[39] => Array
(
[x] => -31.8808
[y] => -38.8347
[z] => 19.2
[scale] => 0.25
[rot] => 4.71239
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[40] => Array
(
[x] => 31.9637
[y] => -38.8181
[z] => 19.2
[scale] => 0.25
[rot] => 4.71239
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[41] => Array
(
[x] => -31.9769
[y] => 40.0709
[z] => 19.2
[scale] => 0.25
[rot] => 4.71239
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[42] => Array
(
[x] => 31.8676
[y] => 40.0875
[z] => 19.2
[scale] => 0.25
[rot] => 4.71239
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[43] => Array
(
[x] => 38.8312
[y] => 31.907
[z] => 19.2
[scale] => 0.25
[rot] => 3.14159
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[44] => Array
(
[x] => 38.8478
[y] => -31.9375
[z] => 19.2
[scale] => 0.25
[rot] => 3.14159
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[45] => Array
(
[x] => -38.6999
[y] => 32.1199
[z] => 19.2
[scale] => 0.25
[rot] => 3.14159
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[46] => Array
(
[x] => -38.6833
[y] => -31.7245
[z] => 19.2
[scale] => 0.25
[rot] => 3.14159
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[47] => Array
(
[x] => 18.9111
[y] => -19.0453
[z] => 25.6
[scale] => 0.45
[rot] => 2.45176
[file] => Abilities\Spells\NightElf\MoonWell\MoonWellTarget.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[48] => Array
(
[x] => -16.0402
[y] => 23.7474
[z] => 25.6
[scale] => 0.45
[rot] => 4.42368
[file] => Abilities\Spells\NightElf\MoonWell\MoonWellTarget.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[49] => Array
(
[x] => 12.2353
[y] => 14.8399
[z] => 25.6
[scale] => 0.45
[rot] => 1.65258
[file] => Abilities\Spells\NightElf\MoonWell\MoonWellTarget.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[50] => Array
(
[x] => -15.8977
[y] => -17.682
[z] => 25.6
[scale] => 0.45
[rot] => 3.3464
[file] => Abilities\Spells\NightElf\MoonWell\MoonWellTarget.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
)
[dmgTable] => Array
(
)
[triggers] => Array
(
[0] => Array
(
[name] => On Attack
[code] => local Creep target = Event.getTarget()
local real x
local real y
local Effect e
local real angle
local integer further_closer
if tower.userInt > 0 then
set further_closer = GetRandomInt(0, 1)
set tower.userInt = tower.userInt - 1
set x = target.getX()
set y = target.getY()
if further_closer == 0 then
set further_closer = -1
endif
set angle = bj_RADTODEG * Atan2(tower.getY() - y, tower.getX() - x)
set angle = ModuloReal(GetRandomReal(angle-20, angle+20), 360)
set x = x + (I2R(further_closer) * GetRandomReal(100, 150)) * Cos(Deg2Rad(angle))
set y = y + (I2R(further_closer) * GetRandomReal(100, 150)) * Sin(Deg2Rad(angle))
set e = Effect.createAnimatedScaled("units\\human\\WaterElemental\\WaterElemental.mdx", x, y, 0.0, 270.0, 0.9)
//call e.setTeamcolor(GetPlayerColor(tower.getOwner().getThePlayer()))
set e.userInt = 1
set e.userInt2 = tower.getUID()
set e.userReal = x
set e.userReal2 = y
set e.userReal3 = (10 + (tower.getLevel() * 0.4)) * tower.getProp_BuffDuration()
call e.setAnimationSpeed(3)
call e.setAnimation("birth")
call TriggerSleepAction(0.3)
call ashbringer_waterele_tick(tower, e)
endif
[values] => Array
(
[visible] => false
[icon] => ReplaceableTextures\CommandButtons\BTNElementalConvergence.blp
[name] =>
[short_explain] =>
[ONATTACK_chance] => 1.0
[ONATTACK_chanceLevelAdd] => 0
[long_explain] =>
)
)
[1] => Array
(
[name] => Header
[code] => globals
BuffType ashbringer_brilliance_aura
BuffType ashbringer_teleport_buff
ProjectileType ashbringer_waterele_missile
endglobals
function ashbringer_waterele_tick takes Tower t, Effect e returns nothing
local Iterate i
local Creep next = 0
local real speed = (1 + t.getProp_Attackspeed())
local real period = RMaxBJ(2 / RMinBJ(RMaxBJ(speed, 0.5), 5), 0.3)
local real angle
local real distance
if (e.userReal3 + 0.2) > period and t.getUID() == e.userInt2 then
if e.userInt3 != 0 then
set next = e.userInt3
if next.getUID() > 0 and not next.isBanished() then
set distance = DistanceBetweenPoints(Location(e.userReal, e.userReal2), GetUnitLoc(next.getUnit()))
if distance > 600 then
set next = 0
set e.userInt3 = 0
endif
else
set next = 0
set e.userInt3 = 0
endif
endif
if next == 0 then
set i = Iterate.overUnitsInRange(t, TARGET_TYPE_CREEPS, e.userReal, e.userReal2, 600)
loop
set next = i.next()
exitwhen (next != 0 and not next.isBanished()) or next == 0
endloop
if next != 0 then
call i.destroy()
endif
endif
if next !=0 then
set e.userInt = 1
set e.userInt3 = next
set angle = bj_RADTODEG * Atan2(next.getY() - e.userReal2, next.getX() - e.userReal)
call e.setFacing(angle)
call e.setAnimationSpeed(1.167/period)
call e.setAnimation("attack")
call TriggerSleepAction(0.2)
set period = period - 0.2
if next.getUID() >= 0 then
call Projectile.createFromPointToUnit(ashbringer_waterele_missile, t, 0.0, 0.0, e.userReal, e.userReal2, 30, next, true, false, false)
endif
else
if e.userInt == 1 then
call e.setAnimationSpeed(1.0)
call e.setAnimation("stand")
endif
set e.userInt = 0
endif
set e.userReal3 = e.userReal3 - period
call TriggerSleepAction(period)
call ashbringer_waterele_tick(t, e)
else
call e.setAnimationSpeed(1.0)
call e.setAnimation("death")
call TriggerSleepAction(1.5)
call e.destroy()
endif
endfunction
function ashbringer_waterele_hit takes Projectile p, Creep c returns nothing
local Tower t = p.getCaster()
local integer level = t.getLevel()
local real damage = t.getCurrentAttackDamageWithBonus() * (0.6 + (level * 0.012))
call Effect.createSimpleOnUnit("Abilities\\Spells\\Other\\CrushingWave\\CrushingWaveDamage.mdl", c, "origin").destroy()
call t.doAttackDamage(c, damage, t.calcAttackMulticrit(0, 0, 0))
endfunction
function ashbringer_teleport_create takes Buff b returns nothing
local Creep c = b.getBuffedUnit()
set b.userReal = c.getX()
set b.userReal2 = c.getY()
endfunction
function ashbringer_teleport_cleanup takes Buff b returns nothing
local Tower t = b.getCaster()
local Creep c = b.getBuffedUnit()
local real distance = DistanceBetweenPoints(GetUnitLoc(t.getUnit()), GetUnitLoc(c.getUnit()))
if distance > 800 and c.getUID() > 0 then
if t.calcChance(0.075 + (t.getLevel() * 0.003)) then
//call Effect.createSimpleAtUnit("Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl", c).setLifetime(3.0)
call SetUnitX(c.getUnit(), b.userReal)
call SetUnitY(c.getUnit(), b.userReal2)
call Effect.createSimpleOnUnit("Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl", c, "origin").setLifetime(3.0)
endif
endif
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
local Modifier mod = Modifier.create()
set ashbringer_brilliance_aura = BuffType.createAuraEffectType(true)
call ashbringer_brilliance_aura.setBuffIcon('@@0@@')
call mod.addModification(MOD_MANA_REGEN_PERC, 0.15, 0.006)
call ashbringer_brilliance_aura.setBuffModifier(mod)
set ashbringer_teleport_buff = BuffType.create(3, 0, false)
call ashbringer_teleport_buff.setBuffIcon('@@1@@')
call ashbringer_teleport_buff.addEventOnCreate(ashbringer_teleport_create)
call ashbringer_teleport_buff.addEventOnCleanup(ashbringer_teleport_cleanup)
set ashbringer_waterele_missile = ProjectileType.create("Abilities\\Weapons\\WaterElementalMissile\\WaterElementalMissile.mdl", 3.0, 1300)
call ashbringer_waterele_missile.enableHoming(ashbringer_waterele_hit, 0.0)
endfunction
[values] => Array
(
[visible] => false
[icon] =>
[name] =>
[short_explain] =>
[long_explain] =>
)
)
[2] => Array
(
[name] => On Damage
[code] => local Creep c = Event.getTarget()
local Buff b = c.getBuffOfType(ashbringer_teleport_buff)
if b!=0 then
call b.setRemainingDuration(3.0)
else
call ashbringer_teleport_buff.apply(tower, c, tower.getLevel())
endif
[values] => Array
(
[ONDAMAGE_chance] => 1.0
[visible] => true
[icon] => ReplaceableTextures\CommandButtons\BTNMassTeleport.blp
[name] => Teleport
[short_explain] => Recently damaged enemies have a chance to be teleported back when they move out of range.
[ONDAMAGE_chanceLevelAdd] => 0.0
[long_explain] => Enemies hit will be marked for |cffffff803|r seconds. If the mark expires while the target is out attack range, there is a |cffffff807.5%|r chance that the target will be teleported back to the location they were at when the mark was first applied.|n|n|cffFF8000Level Bonus:|r|n|cffffff80+0.3%|r chance
)
)
[3] => Array
(
[name] => Tower Aura
[code] => Array
(
)
[values] => Array
(
[AURA_powerAdd] => 1
[visible] => true
[AURA_auraEffect] => ashbringer_brilliance_aura
[AURA_levelAdd] => 1
[AURA_power] => 0
[icon] => ReplaceableTextures\CommandButtons\BTNBrilliance.blp
[AURA_targetType] => TARGET_TYPE_TOWERS
[long_explain] => Increases mana regeneration of towers within |n|cffffff80350|r range by |cffffff8015%|r.|n|n|cffFF8000Level Bonus:|r|n|cffffff80+0.6%|r mana regeneration
[AURA_targetSelf] => true
[name] => Brilliance Aura
[AURA_level] => 0
[short_explain] => Increases mana regeneration of nearby towers.
[AURA_auraRange] => 350
)
)
[4] => Array
(
[name] => Autocast
[code] => set tower.userInt = tower.userInt + 1
[values] => Array
(
[AUTOCAST_cooldown] => 2
[AUTOCAST_autoRange] => 1000
[AUTOCAST_manacost] => 120
[icon] => ReplaceableTextures\CommandButtons\BTNSummonWaterElemental.blp
[AUTOCAST_range] => 1000
[AUTOCAST_targetType] => 0
[AUTOCAST_numBuffsBeforeIdle] => 0
[caster_art] =>
[long_explain] => Summon a Water Elemental near the next attack target. Water Elementals attack a nearby enemy every |cffffff802|r seconds, dealing |cffffff8060%|r of the Archmage's attack damage and last |cffffff8010|r seconds. Water Elementals inherit Archmage's attack speed and their duration is extended by buff duration.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+1.2%|r spell damage|n|cffFFFF80+0.4|r seconds duration
[target_art] =>
[AUTOCAST_autocastType] => AC_TYPE_OFFENSIVE_IMMEDIATE
[AUTOCAST_buffType] => 0
[AUTOCAST_isExtended] => false
[name] => Summon Water Elemental
[AUTOCAST_targetSelf] => false
[short_explain] => Summons a water elemental to attack nearby enemies.
)
)
[5] => Array
(
[name] => On Tower Creation
[code] => call SetUnitColor(tower.getUnit(), ConvertPlayerColor(1))
set tower.userInt = 0
[values] => Array
(
[visible] => false
[icon] =>
[name] =>
[short_explain] =>
[long_explain] =>
)
)
)
[abilities] => Array
(
)
[buffs] => Array
(
[0] => Array
(
[id] => @@0@@
[derivedFrom] => Binf
[oeValues] => Array
(
[Targetattach] => Array
(
)
[Buffubertip] => Increased mana regeneration.
[TargetArt] => Array
(
)
[Bufftip] => Brilliance Aura
[Buffart] => ReplaceableTextures\CommandButtons\BTNBrilliance.blp
)
)
[1] => Array
(
[id] => @@1@@
[derivedFrom] => Binf
[oeValues] => Array
(
[Targetattach] => Array
(
)
[Buffubertip] => Chance to be teleported back.
[TargetArt] => Array
(
)
[Bufftip] => Teleport
[Buffart] => ReplaceableTextures\CommandButtons\BTNMassTeleport.blp
)
)
)
[units] => Array
(
)
[references] => Array
(
)
[lightning] => Array
(
)
)