Array
(
[scriptVersion] => 8
[oeValues] => Array
(
[Farea1] => 225
[auto] => Array
(
)
[Art] => ReplaceableTextures\CommandButtons\BTNCritterChicken.blp
[dmgplus1] => 1253
[bldtm] => 1
[goldcost] => 1400
[unitSound] => Wolf
[sides1] => 10
[Missilearc] => 0.1
[manaN] => 70
[launchZ] => 75
[acquire] => 800
[upgrades] => Array
(
)
[Upgrade] => Array
(
)
[Name] => Polymorphic Anomaly
[weapTp1] => msplash
[impactZ] => 60
[file] => units\critters\Sheep\Sheep.mdl
[MissileHoming] => 1
[Harea1] => 300
[uberSplat] => YTDG
[Missilespeed] => 1000
[Missileart] => Abilities\Spells\Human\Polymorph\PolyMorphTarget.mdl
[Qarea1] => 375
[Qfact1] => 0.5
[dice1] => 1
[RngBuff1] => 250
[regenMana] => 2
[Hfact1] => 0.75
[rangeN1] => 800
[atkType1] => chaos
[cool1] => 2.7
[Ubertip] => To know its true form is to know madness.
[abilList] => Array
(
)
[moveHeight] => 25
[buildingShadow] => Array
(
)
[targs1] => Array
(
)
[weapsOn] => 1
)
[settings] => Array
(
[balanceTip] => |cffCCFF00Splash attack:|n |cffFFFF00225|r AoE: |cff00FF00100%|r damage|r|n |cffFFFF00300|r AoE: |cffFFFF0075%|r damage|r|n |cffFFFF00375|r AoE: |cffFF800050%|r damage|r
[abil_factor] => 0.4
[author] => Ashbringer
[alpha] => 0
[authorDisplay] => |cffff6600Ashbringer|r
[version] => 1.0
[element] => arcane
[rarity] => unique
)
[effects] => Array
(
[0] => Array
(
[x] => -0.303634
[y] => 0.67683
[z] => 0
[scale] => 0.2
[rot] => 1.59174
[file] => Doodads\Cityscape\Props\FountainRuined\FountainRuined.mdl
[red] => 1
[green] => 1
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[1] => Array
(
[x] => -49.7086
[y] => -50.4472
[z] => -12.8
[scale] => 0.2
[rot] => 0.785398
[file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
[red] => 25
[green] => 135
[blue] => 135
[alpha] => 255
[pitch] => -0.79
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[2] => Array
(
[x] => 50.9592
[y] => -50.8323
[z] => -12.8
[scale] => 0.2
[rot] => 2.3562
[file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
[red] => 25
[green] => 135
[blue] => 135
[alpha] => 255
[pitch] => -0.79
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[3] => Array
(
[x] => 53.45
[y] => 51.0353
[z] => -12.8
[scale] => 0.2
[rot] => 3.92699
[file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
[red] => 25
[green] => 135
[blue] => 135
[alpha] => 255
[pitch] => -0.79
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[4] => Array
(
[x] => -50.4948
[y] => 50.2036
[z] => -12.8
[scale] => 0.2
[rot] => 5.49779
[file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
[red] => 25
[green] => 135
[blue] => 135
[alpha] => 255
[pitch] => -0.79
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[5] => Array
(
[x] => -1.16464
[y] => 11.6254
[z] => 19.2
[scale] => 1.25
[rot] => 4.71239
[file] => Abilities\Spells\NightElf\SpiritOfVengeance\SpiritOfVengeanceOrbs1.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => -2
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 3
)
[6] => Array
(
[x] => -0.498752
[y] => -15.6611
[z] => 32
[scale] => 2.1
[rot] => 1.5708
[file] => Abilities\Spells\NightElf\SpiritOfVengeance\SpiritOfVengeanceOrbs1.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => -2
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 3
)
[7] => Array
(
[x] => -26.5793
[y] => -27.056
[z] => 19.2
[scale] => 0.5
[rot] => 4.43583
[file] => Abilities\Spells\NightElf\SpiritOfVengeance\SpiritOfVengeanceOrbs2.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 3
)
[8] => Array
(
[x] => 26.4575
[y] => -25.7114
[z] => 19.2
[scale] => 0.5
[rot] => 5.92439
[file] => Abilities\Spells\NightElf\SpiritOfVengeance\SpiritOfVengeanceOrbs2.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 3
)
[9] => Array
(
[x] => 27.7873
[y] => 25.4364
[z] => 19.2
[scale] => 0.5
[rot] => 1.25158
[file] => Abilities\Spells\NightElf\SpiritOfVengeance\SpiritOfVengeanceOrbs2.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 3
)
[10] => Array
(
[x] => -27.4112
[y] => 27.1599
[z] => 19.2
[scale] => 0.5
[rot] => 2.76148
[file] => Abilities\Spells\NightElf\SpiritOfVengeance\SpiritOfVengeanceOrbs2.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 3
)
[11] => Array
(
[x] => 0.173547
[y] => 41.1666
[z] => 0
[scale] => 0.04
[rot] => 4.71239
[file] => Doodads\Cityscape\Structures\Archway1\Archway1.mdl
[red] => 25
[green] => 135
[blue] => 135
[alpha] => 255
[pitch] => -0.79
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[12] => Array
(
[x] => -42.5632
[y] => -0.0504909
[z] => 0
[scale] => 0.04
[rot] => 0
[file] => Doodads\Cityscape\Structures\Archway1\Archway1.mdl
[red] => 25
[green] => 135
[blue] => 135
[alpha] => 255
[pitch] => -0.79
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[13] => Array
(
[x] => 42.621
[y] => -0.248719
[z] => 0
[scale] => 0.04
[rot] => 3.14159
[file] => Doodads\Cityscape\Structures\Archway1\Archway1.mdl
[red] => 25
[green] => 135
[blue] => 135
[alpha] => 255
[pitch] => -0.79
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[14] => Array
(
[x] => -0.0577169
[y] => 0.979373
[z] => 6.4
[scale] => 1.1
[rot] => 2.37365
[file] => Abilities\Spells\Other\GeneralAuraTarget\GeneralAuraTarget.mdl
[red] => 1
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[15] => Array
(
[x] => -9.59818
[y] => -38.5334
[z] => -6.4
[scale] => 0.15
[rot] => 4.71239
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 25
[green] => 25
[blue] => 75
[alpha] => 255
[pitch] => -0.79
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[16] => Array
(
[x] => 9.49091
[y] => -38.5769
[z] => -6.4
[scale] => 0.15
[rot] => 4.71239
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 25
[green] => 25
[blue] => 75
[alpha] => 255
[pitch] => -0.79
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[17] => Array
(
[x] => 28.4546
[y] => -38.4711
[z] => -6.4
[scale] => 0.15
[rot] => 4.71239
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 25
[green] => 25
[blue] => 75
[alpha] => 255
[pitch] => -0.79
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[18] => Array
(
[x] => -28.7053
[y] => -38.5835
[z] => -6.4
[scale] => 0.15
[rot] => 4.71239
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 25
[green] => 25
[blue] => 75
[alpha] => 255
[pitch] => -0.79
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[19] => Array
(
[x] => -9.24044
[y] => 36.5905
[z] => -6.4
[scale] => 0.15
[rot] => 1.5708
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 25
[green] => 25
[blue] => 75
[alpha] => 255
[pitch] => -0.79
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[20] => Array
(
[x] => 9.84865
[y] => 36.6339
[z] => -6.4
[scale] => 0.15
[rot] => 1.5708
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 25
[green] => 25
[blue] => 75
[alpha] => 255
[pitch] => -0.79
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[21] => Array
(
[x] => 28.8124
[y] => 36.5282
[z] => -6.4
[scale] => 0.15
[rot] => 1.5708
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 25
[green] => 25
[blue] => 75
[alpha] => 255
[pitch] => -0.79
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[22] => Array
(
[x] => -28.3476
[y] => 36.6405
[z] => -6.4
[scale] => 0.15
[rot] => 1.5708
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 25
[green] => 25
[blue] => 75
[alpha] => 255
[pitch] => -0.79
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[23] => Array
(
[x] => -38.0028
[y] => 9.69589
[z] => -6.4
[scale] => 0.15
[rot] => 3.14159
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 25
[green] => 25
[blue] => 75
[alpha] => 255
[pitch] => -0.79
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[24] => Array
(
[x] => -38.0463
[y] => -9.39319
[z] => -6.4
[scale] => 0.15
[rot] => 3.14159
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 25
[green] => 25
[blue] => 75
[alpha] => 255
[pitch] => -0.79
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[25] => Array
(
[x] => -37.9405
[y] => -28.3569
[z] => -6.4
[scale] => 0.15
[rot] => 3.14159
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 25
[green] => 25
[blue] => 75
[alpha] => 255
[pitch] => -0.79
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[26] => Array
(
[x] => -38.0529
[y] => 28.8031
[z] => -6.4
[scale] => 0.15
[rot] => 3.14159
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 25
[green] => 25
[blue] => 75
[alpha] => 255
[pitch] => -0.79
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[27] => Array
(
[x] => 38.073
[y] => 9.32423
[z] => -6.4
[scale] => 0.15
[rot] => 6.28319
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 25
[green] => 25
[blue] => 75
[alpha] => 255
[pitch] => -0.79
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[28] => Array
(
[x] => 38.1164
[y] => -9.76486
[z] => -6.4
[scale] => 0.15
[rot] => 6.28319
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 25
[green] => 25
[blue] => 75
[alpha] => 255
[pitch] => -0.79
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[29] => Array
(
[x] => 38.0107
[y] => -28.7286
[z] => -6.4
[scale] => 0.15
[rot] => 6.28319
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 25
[green] => 25
[blue] => 75
[alpha] => 255
[pitch] => -0.79
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[30] => Array
(
[x] => 38.123
[y] => 28.4314
[z] => -6.4
[scale] => 0.15
[rot] => 6.28319
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 25
[green] => 25
[blue] => 75
[alpha] => 255
[pitch] => -0.79
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[31] => Array
(
[x] => -0.0629177
[y] => 0.883835
[z] => 0
[scale] => 0.21
[rot] => 4.71239
[file] => Doodads\Ruins\Props\Ruins_NagaCircle\Ruins_NagaCircle.mdl
[red] => 1
[green] => 1
[blue] => 1
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[32] => Array
(
[x] => 44.0506
[y] => -43.8636
[z] => -6.4
[scale] => 0.22
[rot] => 5.49779
[file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
[red] => 25
[green] => 25
[blue] => 75
[alpha] => 255
[pitch] => -0.3
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[33] => Array
(
[x] => 46.0971
[y] => 43.9763
[z] => -6.4
[scale] => 0.22
[rot] => 0.785398
[file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
[red] => 25
[green] => 25
[blue] => 75
[alpha] => 255
[pitch] => -0.3
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[34] => Array
(
[x] => -43.3678
[y] => 42.6469
[z] => -6.4
[scale] => 0.22
[rot] => 2.3562
[file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
[red] => 25
[green] => 25
[blue] => 75
[alpha] => 255
[pitch] => -0.3
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[35] => Array
(
[x] => -42.409
[y] => -43.2782
[z] => -6.4
[scale] => 0.22
[rot] => 3.92699
[file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
[red] => 25
[green] => 25
[blue] => 75
[alpha] => 255
[pitch] => -0.3
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[36] => Array
(
[x] => -0.163799
[y] => -34.2973
[z] => -6.4
[scale] => 0.22
[rot] => 4.71239
[file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
[red] => 25
[green] => 25
[blue] => 75
[alpha] => 255
[pitch] => -0.3
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[37] => Array
(
[x] => -32.387
[y] => 0.100785
[z] => -6.4
[scale] => 0.22
[rot] => 3.14159
[file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
[red] => 25
[green] => 25
[blue] => 75
[alpha] => 255
[pitch] => -0.3
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[38] => Array
(
[x] => -0.20686
[y] => 31.1109
[z] => -6.4
[scale] => 0.22
[rot] => 1.5708
[file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
[red] => 25
[green] => 25
[blue] => 75
[alpha] => 255
[pitch] => -0.3
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[39] => Array
(
[x] => 32.8964
[y] => -0.146246
[z] => -6.4
[scale] => 0.22
[rot] => 0.000000119209
[file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
[red] => 25
[green] => 25
[blue] => 75
[alpha] => 255
[pitch] => -0.3
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[40] => Array
(
[x] => -50.4983
[y] => -51.1317
[z] => 32
[scale] => 0.25
[rot] => 0.771969
[file] => Abilities\Weapons\FarseerMissile\FarseerMissile.mdl
[red] => 255
[green] => 1
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[41] => Array
(
[x] => -0.1128
[y] => -47.1669
[z] => 32
[scale] => 0.25
[rot] => 1.49716
[file] => Abilities\Weapons\FarseerMissile\FarseerMissile.mdl
[red] => 255
[green] => 1
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[42] => Array
(
[x] => 51.0716
[y] => -50.774
[z] => 32
[scale] => 0.25
[rot] => 2.31029
[file] => Abilities\Weapons\FarseerMissile\FarseerMissile.mdl
[red] => 255
[green] => 1
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[43] => Array
(
[x] => 43.2167
[y] => -0.322321
[z] => 32
[scale] => 0.25
[rot] => 3.09812
[file] => Abilities\Weapons\FarseerMissile\FarseerMissile.mdl
[red] => 255
[green] => 1
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[44] => Array
(
[x] => -42.7063
[y] => -0.268574
[z] => 32
[scale] => 0.25
[rot] => 0.0362653
[file] => Abilities\Weapons\FarseerMissile\FarseerMissile.mdl
[red] => 255
[green] => 1
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[45] => Array
(
[x] => -0.0632207
[y] => 40.1567
[z] => 32
[scale] => 0.25
[rot] => 4.80333
[file] => Abilities\Weapons\FarseerMissile\FarseerMissile.mdl
[red] => 255
[green] => 1
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[46] => Array
(
[x] => -49.2928
[y] => 48.767
[z] => 32
[scale] => 0.25
[rot] => 5.5517
[file] => Abilities\Weapons\FarseerMissile\FarseerMissile.mdl
[red] => 255
[green] => 1
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[47] => Array
(
[x] => 52.578
[y] => 50.4038
[z] => 32
[scale] => 0.25
[rot] => 3.92587
[file] => Abilities\Weapons\FarseerMissile\FarseerMissile.mdl
[red] => 255
[green] => 1
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[48] => Array
(
[x] => -0.0199214
[y] => -43.0284
[z] => 0
[scale] => 0.04
[rot] => 1.5708
[file] => Doodads\Cityscape\Structures\Archway1\Archway1.mdl
[red] => 25
[green] => 135
[blue] => 135
[alpha] => 255
[pitch] => -0.79
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
)
[dmgTable] => Array
(
)
[triggers] => Array
(
[0] => Array
(
[name] => Header
[code] => globals
BuffType ashbringer_polymorph_buff
endglobals
struct Polymorphs
string array m[22]
real array s[22]
endstruct
function ashbringer_polymorph_update takes Tower tower returns nothing
local integer next
local Effect e = tower.userInt3
local Polymorphs p = tower.userInt2
local real fly = 0
loop
set next = GetRandomInt(0, 12)
exitwhen next != tower.userInt
endloop
//if next >= 13 then
// set fly = 10.0
//endif
call e.destroy()
set e = Effect.createScaled(p.m[next], tower.getX(), tower.getY(), 25.0+fly, 270.0, p.s[next])
call e.noDeathAnimation()
call Effect.createScaled("Abilities\\Spells\\Human\\Polymorph\\PolyMorphDoneGround.mdl", tower.getX(), tower.getY(), 25.0+fly, 270.0, 2.0).setLifetime(2.0)
set tower.userInt = next
set tower.userInt3 = e
endfunction
function ashbringer_polymorph_default takes Buff b, Tower t, Creep c returns nothing
local Polymorphs p = t.userInt2
local Effect e
local integer model = GetRandomInt(0, 22)
call Effect.createSimpleAtUnit("Abilities\\Spells\\Human\\Polymorph\\PolyMorphDoneGround.mdl", c).setLifetime(2.0)
set e = Effect.createScaled(p.m[model], c.getX(), c.getY(), 0, GetUnitFacing(c.getUnit()), c.getDefaultScale())
call e.noDeathAnimation()
set b.userInt = e
set b.userInt2 = 1
call SetUnitVertexColor(c.getUnit(), 255, 255, 255, 0)
//call BJDebugMsg(p.m[model])
endfunction
function ashbringer_polymorph_start takes Buff b returns nothing
local Creep c = b.getBuffedUnit()
local Tower t = b.getCaster()
local integer random
local Iterate i
local Creep next
local Playor pl = t.getOwner()
local Buff existing
local real chance = t.userReal + (t.getLevel() * t.userReal2)
if c.getSize() == SIZE_NORMAL or c.getSize() == SIZE_MASS then
//call BJDebugMsg(R2S(0.1 + (t.getLevel() * 0.002)) + "% lethal: " + I2S(random))
if t.calcChance(chance) then
set b.userInt2 = 0
set random = GetRandomInt(0, 2)
//call BJDebugMsg(R2S(chance) + "% lethal: " + I2S(random))
if random == 0 then //gold
call SetUnitVertexColor(c.getUnit(), 255, 255, 255, 0)
set random = t.getLevel() + c.getSpawnLevel() + 10
set random = GetRandomInt(random/2, random)
call Effect.createSimpleAtUnit("Abilities\\Spells\\Other\\Transmute\\PileofGold.mdl", c).setLifetime(4.0)
call pl.giveGold(random, c.getUnit(), true, true)
//call pl.displayFloatingText(I2S(random), t, 0, 255, 0)
call t.killInstantly(c)
elseif random == 1 then //item
call SetUnitVertexColor(c.getUnit(), 255, 255, 255, 0)
call c.dropItem(t, false)
call Effect.createColored("Abilities\\Spells\\Orc\\FeralSpirit\\feralspiritdone.mdl", c.getX(), c.getY(), c.getZ(), 270, 1.0, 255, 55, 255, 255).setLifetime(2.0)
call pl.displayFloatingText("Transmute!", c, 255, 115, 255)
call t.killInstantly(c)
elseif random >= 2 then
call ashbringer_polymorph_default(b, t, c)
//find a nearby unit without debuff
set i = Iterate.overUnitsInRangeOfCaster(c, TARGET_TYPE_CREEPS + TARGET_TYPE_SIZE_NORMAL + TARGET_TYPE_SIZE_MASS, 300)
set random = 0
loop
set next = i.nextRandom()
exitwhen next == 0 or random == 1
if next != 0 and next != c then
set existing = next.getBuffOfType(ashbringer_polymorph_buff)
if existing == 0 then
call ashbringer_polymorph_buff.apply(t, next, t.getLevel())
set random = 1
endif
endif
endloop
endif
else
call ashbringer_polymorph_default(b, t, c)
endif
else
call b.removeBuff()
endif
endfunction
function ashbringer_polymorph_end takes Buff b returns nothing
local Creep c = b.getBuffedUnit()
local Effect e = b.userInt
if b.userInt2 == 1 then
if c.getSize() == SIZE_NORMAL or c.getSize() == SIZE_MASS then
call e.destroy()
call SetUnitVertexColor(c.getUnit(), 255, 255, 255, 255)
call Effect.createSimpleAtUnit("Abilities\\Spells\\Human\\Polymorph\\PolyMorphDoneGround.mdl", c).setLifetime(2.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
set ashbringer_polymorph_buff = BuffType.createDuplicate(cb_stun, 5, 0.1, false)
call ashbringer_polymorph_buff.setBuffIcon('@@0@@')
call ashbringer_polymorph_buff.addEventOnCreate(ashbringer_polymorph_start)
call ashbringer_polymorph_buff.addEventOnCleanup(ashbringer_polymorph_end)
endfunction
[values] => Array
(
[visible] => false
[icon] =>
[name] =>
[short_explain] =>
[long_explain] =>
)
)
[1] => Array
(
[name] => On Spell Target
[code] => local Unit caster = Event.getTarget()
local AutocastType ac = Event.getAutocastType()
local Buff b
local BuffType bt
local Iterate i
local Unit next
local Tower target = 0
if caster.isATower() and ac != 0 and not ac.isItemAutocast() then
set bt = ac.getBuffType()
if bt != 0 then
set i = Iterate.overUnitsInRangeOfCaster(tower, TARGET_TYPE_TOWERS, 450)
loop
set next = i.nextRandom()
exitwhen next==0 or target!=0
if next != tower and next != caster then
set target = next
set b = tower.getBuffOfType(bt)
endif
endloop
if next != 0 then
call i.destroy()
endif
endif
endif
//apply the buff after delay
if target != 0 then
call TriggerSleepAction(0.1)
if b == 0 then
set b = tower.getBuffOfType(bt)
endif
call bt.applyAdvanced(caster, target, b.getLevel(), b.getPower(), b.getRemainingDuration()+0.1)
call Effect.createSimpleAtUnit("Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageCaster.mdl", tower).setLifetime(2.0)
call Effect.createSimpleAtUnit("Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageCaster.mdl", target).setLifetime(2.0)
call Effect.createSimpleAtUnit("Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageCaster.mdl", caster).setLifetime(2.0)
endif
call ashbringer_polymorph_update(tower)
[values] => Array
(
[visible] => true
[icon] => ReplaceableTextures\CommandButtons\BTNInvisibility.blp
[name] => Duplication
[short_explain] => Autocast buffs cast on this tower are duplicated to a random nearby tower.
[long_explain] => Autocast buffs cast on this tower are duplicated to a random nearby tower within |cffFFFF80450|r range. Cannot duplicate onto the buff caster.
)
)
[2] => Array
(
[name] => On Tower Destruction
[code] => local Effect e = tower.userInt3
call e.destroy()
[values] => Array
(
[visible] => false
[icon] =>
[name] =>
[short_explain] =>
[long_explain] =>
)
)
[3] => Array
(
[name] => Periodic
[code] => local Item itm
local boolean done = false
local integer i = 0
local real gold
local Playor p = tower.getOwner()
call ashbringer_polymorph_update(tower)
loop
exitwhen i > 5 or done==true
if tower.calcChance(0.01) then
set itm = tower.getHeldItem(i)
if itm !=0 then
set gold = itm.getLevel() * 4
set gold = GetRandomReal(gold/2, gold)
set done = true
if gold > 0 then
call Effect.createSimpleAtUnit("Abilities\\Spells\\Other\\Transmute\\PileofGold.mdl", tower).setLifetime(4.0)
call p.giveGold(gold, tower.getUnit(), true, true)
call itm.drop()
call RemoveItem(itm.getItem())
call itm.destroy()
endif
endif
endif
set i = i + 1
endloop
[values] => Array
(
[visible] => true
[PERIODIC_period] => 8
[icon] => ReplaceableTextures\CommandButtons\BTNTransmute.blp
[name] => Transmute
[short_explain] => This tower sometimes accidentally turns equipped items into gold.
[long_explain] => This tower sometimes accidentally turns equipped items into a random amount of gold. Higher level items can reward more gold.
)
)
[4] => Array
(
[name] => Autocast
[code] => Array
(
)
[values] => Array
(
[AUTOCAST_cooldown] => 4
[AUTOCAST_autoRange] => 700
[AUTOCAST_manacost] => 40
[icon] => ReplaceableTextures\CommandButtons\BTNDisenchant.blp
[AUTOCAST_range] => 800
[AUTOCAST_targetType] => TARGET_TYPE_CREEPS + TARGET_TYPE_SIZE_NORMAL + TARGET_TYPE_SIZE_MASS
[AUTOCAST_numBuffsBeforeIdle] => 1
[caster_art] =>
[long_explain] => Turn a Normal or Mass creep into a critter or object, stunning it for |cffFFFF803.0|r seconds. The spell has a |cffFFFF8010%|r chance to become unstable and instantly kill the target by turning it into either items or gold.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.08|r seconds |n|cffFFFF80+0.2%|r unstable chance
[target_art] =>
[AUTOCAST_autocastType] => AC_TYPE_OFFENSIVE_BUFF
[AUTOCAST_buffType] => ashbringer_polymorph_buff
[AUTOCAST_isExtended] => false
[name] => Unstable Polymorph
[AUTOCAST_targetSelf] => false
[short_explain] => Changes the shape of a lesser enemy, stunning it. Sometimes haphazardly turns the creep into an item or gold.
)
)
[5] => Array
(
[name] => On Tower Creation
[code] => local Polymorphs p = Polymorphs.create()
local Effect e
set p.m[0] = "units\\critters\\Sheep\\Sheep.mdl"
set p.m[1] = "units\\critters\\EasterChicken\\EasterChicken.mdx"
set p.m[2] = "units\\critters\\EasterRabbit\\EasterRabbit.mdx"
set p.m[3] = "units\\critters\\SpiderCrab\\SpiderCrab.mdx"
set p.m[4] = "units\\critters\\Frog\\Frog.mdx"
set p.m[5] = "units\\critters\\Penguin\\Penguin.mdx"
set p.m[6] = "units\\critters\\HermitCrab\\HermitCrab.mdx"
set p.m[7] = "units\\critters\\Pig\\Pig.mdx"
set p.m[8] = "units\\critters\\Seal\\Seal.mdx"
set p.m[9] = "units\\critters\\BlackStagMale\\BlackStagMale.mdx"
set p.m[10] = "units\\critters\\Raccoon\\Raccoon.mdx"
set p.m[11] = "units\\critters\\BrownWolf\\BrownWolf.mdx"
set p.m[12] = "units\\critters\\Skink\\Skink.mdx"
set p.m[13] = "Doodads\\Dungeon\\Props\\Chair\\Chair.mdl"
set p.m[14] = "Doodads\\Dungeon\\Props\\Table\\Table.mdl"
set p.m[15] = "Doodads\\LordaeronSummer\\Props\\ArcheryRange\\ArcheryRange.mdl"
set p.m[16] = "Doodads\\Felwood\\Plants\\FelwoodBush\\FelwoodBush0.mdl"
set p.m[17] = "Doodads\\Ashenvale\\Plants\\AshenShrooms\\AshenShrooms1.mdl"
set p.m[18] = "Doodads\\Ruins\\Plants\\VinyPlant\\VinyPlant2.mdl"
set p.m[19] = "Doodads\\Ruins\\Plants\\Ruins_Flower\\Ruins_Flower0.mdl"
set p.m[20] = "Doodads\\LordaeronSummer\\Props\\Brazier\\Brazier.mdl"
set p.m[21] = "Buildings\\Other\\BarrelsUnit0\\BarrelsUnit0.mdl"
set p.s[0] = 1.2
set p.s[1] = 1.2
set p.s[2] = 1.2
set p.s[3] = 1.0
set p.s[4] = 1.0
set p.s[5] = 1.0
set p.s[6] = 1.0
set p.s[7] = 1.0
set p.s[8] = 1.0
set p.s[9] = 1.0
set p.s[10] = 1.0
set p.s[11] = 1.0
set p.s[12] = 1.0
set p.s[13] = 1.0
set p.s[14] = 1.0
set p.s[15] = 1.0
set p.s[15] = 1.0
set p.s[16] = 0.8
set p.s[17] = 1.0
set p.s[18] = 1.0
set p.s[19] = 1.0
set p.s[20] = 1.0
set p.s[21] = 1.0
set e = Effect.createScaled(p.m[0], tower.getX(), tower.getY(), 25, 270, p.s[0])
call e.noDeathAnimation()
set tower.userInt = 0
set tower.userInt2 = p
set tower.userInt3 = e
set tower.userReal = 0.1
set tower.userReal2 = 0.002
[values] => Array
(
[visible] => false
[icon] =>
[name] =>
[short_explain] =>
[long_explain] =>
)
)
)
[abilities] => Array
(
)
[buffs] => Array
(
[0] => Array
(
[id] => @@0@@
[derivedFrom] => Bply
[oeValues] => Array
(
[0] =>
ReplaceableTextures\CommandButtons\BTNPolymorph.blp
)
)
)
[units] => Array
(
)
[references] => Array
(
)
[lightning] => Array
(
)
)