Array
(
[scriptVersion] => 8
[oeValues] => Array
(
[auto] => Array
(
)
[Art] => ReplaceableTextures\CommandButtons\BTNSpawningGrounds.blp
[dmgplus1] => 1143
[bldtm] => 1
[goldcost] => 1750
[sides1] => 900
[Missilearc] => 0.3
[manaN] => 100
[acquire] => 850
[upgrades] => Array
(
)
[Upgrade] => Array
(
)
[Name] => Whimsical Wishing Well
[weapTp1] => missile
[MissileHoming] => 1
[file] => .mdl
[uberSplat] => YTDG
[Missilespeed] => 1100
[Missileart] => Abilities\Weapons\WaterElementalMissile\WaterElementalMissile.mdl
[dice1] => 1
[RngBuff1] => 250
[regenMana] => 1
[modelScale] => 0.1
[rangeN1] => 850
[atkType1] => magic
[cool1] => 1.6
[Ubertip] => This strange well suddenly appeared in the middle of town, seemingly out of nowhere. From deep within, the sounds of festive music and cheerful laughter echo up.
[abilList] => Array
(
)
[buildingShadow] => Array
(
)
[targs1] => Array
(
)
[weapsOn] => 1
)
[settings] => Array
(
[balanceTip] => Array
(
)
[abil_factor] => 0.45
[author] => Moppy
[alpha] => 255
[authorDisplay] => |c006969FFMoppy|r
[version] => 1.0
[element] => arcane
[rarity] => unique
)
[effects] => Array
(
[0] => Array
(
[x] => -22.8375
[y] => -8.23811
[z] => -32
[scale] => 0.5
[rot] => 3.49066
[file] => Doodads\Felwood\Plants\FelwoodBush\FelwoodBush0.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[1] => Array
(
[x] => -5.34293
[y] => 1.60303
[z] => 0
[scale] => 0.75
[rot] => 4.71239
[file] => Doodads\LordaeronSummer\Structures\well\well.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[2] => Array
(
[x] => 0.660145
[y] => 3.63371
[z] => 0
[scale] => 0.6
[rot] => 3.92699
[file] => Doodads\Cinematic\GlowingRunes\GlowingRunes4.mdl
[red] => 255
[green] => 1
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[3] => Array
(
[x] => 16.9589
[y] => 9.24407
[z] => -38.4
[scale] => 0.5
[rot] => 2.61799
[file] => Doodads\Felwood\Plants\FelwoodBush\FelwoodBush0.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[4] => Array
(
[x] => -9.40159
[y] => -25.5334
[z] => 0
[scale] => 0.3
[rot] => 4.71239
[file] => Doodads\Felwood\Plants\FelwoodShrooms\FelwoodShrooms1.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[5] => Array
(
[x] => 26.4192
[y] => -12.0817
[z] => 0
[scale] => 0.3
[rot] => 3.75246
[file] => Doodads\Felwood\Plants\FelwoodShrooms\FelwoodShrooms0.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[6] => Array
(
[x] => 1.84599
[y] => 0.203986
[z] => 38.4
[scale] => 0.4
[rot] => 1.8326
[file] => Abilities\Weapons\DragonHawkMissile\DragonHawkMissile.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[7] => Array
(
[x] => 0.943893
[y] => 5.76385
[z] => 0.000000953674
[scale] => 0.6
[rot] => 3.92699
[file] => Doodads\Cinematic\GlowingRunes\GlowingRunes4.mdl
[red] => 255
[green] => 1
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
)
[dmgTable] => Array
(
)
[triggers] => Array
(
[0] => Array
(
[name] => Header
[code] => globals
BuffType moppy_wishing_well_item_chance_buff
BuffType moppy_wishing_well_item_quality_buff
BuffType moppy_wishing_well_aura
endglobals
private function moppy_wishing_well_proc takes Buff b returns nothing
local integer randomSpellID = GetRandomInt(1, 3)
local Tower caster = b.getCaster()
local Tower buffed = b.getBuffedUnit()
if buffed.calcChance((0.15 + (0.003 * caster.getLevel())) * buffed.getBaseAttackspeed()) then
if randomSpellID == 1 then
call buffed.addExp(1.0)
elseif randomSpellID == 2 then
call moppy_wishing_well_item_chance_buff.applyCustomTimed(caster, buffed, 1, 5)
elseif randomSpellID == 3 then
call moppy_wishing_well_item_quality_buff.applyCustomTimed(caster, buffed, 1, 5)
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 c = Modifier.create()
local Modifier q = Modifier.create()
local Modifier a = Modifier.create()
set moppy_wishing_well_item_chance_buff = BuffType.create(0.0, 0.0, true)
call c.addModification(MOD_ITEM_CHANCE_ON_KILL, 0.15, 0.0)
call moppy_wishing_well_item_chance_buff.setBuffModifier(c)
call moppy_wishing_well_item_chance_buff.setBuffIcon('@@1@@')
set moppy_wishing_well_item_quality_buff = BuffType.create(0.0, 0.0, true)
call q.addModification(MOD_ITEM_QUALITY_ON_KILL , 0.25, 0.0)
call moppy_wishing_well_item_quality_buff.setBuffModifier(q)
call moppy_wishing_well_item_quality_buff.setBuffIcon('@@2@@')
set moppy_wishing_well_aura = BuffType.createAuraEffectType(true)
call moppy_wishing_well_aura.addEventOnAttack(moppy_wishing_well_proc, 1.0, 0.0)
call moppy_wishing_well_aura.setBuffModifier(a)
call moppy_wishing_well_aura.setBuffIcon('@@0@@')
endfunction
[values] => Array
(
[visible] => false
[icon] =>
[name] =>
[short_explain] =>
[long_explain] =>
)
)
[1] => Array
(
[name] => Tower Aura
[code] => Array
(
)
[values] => Array
(
[AURA_powerAdd] => 0
[visible] => true
[AURA_auraEffect] => moppy_wishing_well_aura
[AURA_levelAdd] => 0
[AURA_power] => 1
[icon] => ReplaceableTextures\CommandButtons\BTNDispelMagic.blp
[AURA_targetType] => TARGET_TYPE_TOWERS
[long_explain] => Towers within |cffFFFF80300|r range have a |cffFFFF8015%|r attackspeed adjusted chance to randomly receive one of the following benefits:|n|n|cffFF8000Oghma's Inspiration:|r |cffFFFF8033%|r chance to gain |cffFFFF801|r experience|n|cffFF8000Waukeen's Shrewdness:|r |cffFFFF8033%|r chance to increase item chance by |cffFFFF8015%|r for |cffFFFF805|r seconds|n|cffFF8000Gond's Expertise:|r |cffFFFF8033%|r chance to increase item quality by |cffFFFF8025%|r for |cffFFFF805|r seconds|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.3%|r chance
[AURA_targetSelf] => true
[name] => Whimsical Fortune
[AURA_level] => 1
[short_explain] => Towers within range have a chance on attack to randomly gain experience or temporarily boost either their item chance or item quality.
[AURA_auraRange] => 300
)
)
)
[abilities] => Array
(
)
[buffs] => Array
(
[0] => Array
(
[id] => @@0@@
[derivedFrom] => BHab
[oeValues] => Array
(
[EditorName] => Whimsical Fortune Aura
[Buffubertip] => Under the influence of Whimsical Fortune
[TargetArt] => Array
(
)
[Bufftip] => Whimsical Fortune Aura
[Buffart] => ReplaceableTextures\CommandButtons\BTNDispelMagic.blp
)
)
[1] => Array
(
[id] => @@1@@
[derivedFrom] => BHab
[oeValues] => Array
(
[EditorName] => Whimsical Fortune Item Chance
[Buffubertip] => Increased Item Chance
[TargetArt] => Array
(
)
[Bufftip] => Whimsical Fortune Item Chance
[Buffart] => ReplaceableTextures\CommandButtons\BTNDispelMagic.blp
)
)
[2] => Array
(
[id] => @@2@@
[derivedFrom] => BHab
[oeValues] => Array
(
[EditorName] => Whimsical Fortune Item Quality
[Buffubertip] => Increased Item Quality
[TargetArt] => Array
(
)
[Bufftip] => Whimsical Fortune Item Quality
[Buffart] => ReplaceableTextures\CommandButtons\BTNDispelMagic.blp
)
)
)
[units] => Array
(
)
[references] => Array
(
)
[lightning] => Array
(
)
)