Array
(
[scriptVersion] => 7
[oeValues] => Array
(
[RngBuff1] => 250
[MissileHoming] => 1
[Upgrade] => Array
(
)
[targs1] => Array
(
)
[goldcost] => 3200
[weapsOn] => 1
[dice1] => 1
[Missilespeed] => 1000
[file] => Doodads\Ruins\Plants\Ruins_Shroom\Ruins_Shroom1.mdl
[manaN] => 60
[atkType1] => magic
[modelScale] => 1.25
[weapTp1] => missile
[Missilearc] => 0.2
[acquire] => 900
[rangeN1] => 900
[upgrades] => Array
(
)
[cool1] => 0.9
[Ubertip] => A humongous mushroom emanating mystical powers.
[green] => 50
[regenMana] => 4
[abilList] => Array
(
)
[launchZ] => 100
[Name] => Magic Mushroom
[Missileart] => Abilities\Spells\Items\HealingSalve\HealingSalveTarget.mdl
[Art] => ReplaceableTextures\CommandButtons\BTNThunderLizardEgg.blp
[buildingShadow] => Array
(
)
[unitSound] => Array
(
)
[sides1] => 100
[uberSplat] => ESMA
[auto] => Array
(
)
[dmgplus1] => 1512
[bldtm] => 1
)
[settings] => Array
(
[author] => drol
[element] => nature
[authorDisplay] => |cffcc6600drol|r
[alpha] => 255
[balanceTip] => |cffFFFF00+0.16 |rmana regen/lvl
[rarity] => unique
[version] => 1.0
[abil_factor] => 0.5
)
[effects] => Array
(
[0] => Array
(
[x] => -19.0167
[y] => 11.7423
[z] => 102.4
[scale] => 1
[rot] => 4.62512
[file] => Abilities\Spells\NightElf\FaerieDragonInvis\FaerieDragon_Invis.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[1] => Array
(
[x] => 47.9478
[y] => 8.59071
[z] => 19.2
[scale] => 1
[rot] => 2.16421
[file] => Abilities\Spells\NightElf\FaerieDragonInvis\FaerieDragon_Invis.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[2] => Array
(
[x] => -48.4707
[y] => 1.37796
[z] => 0
[scale] => 0.6
[rot] => 5.72468
[file] => Doodads\Ruins\Plants\Ruins_Shroom\Ruins_Shroom0.mdl
[red] => 255
[green] => 50
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[3] => Array
(
[x] => -4.95322
[y] => -23.1444
[z] => 0
[scale] => 0.6
[rot] => 5.0091
[file] => Doodads\Ruins\Plants\Ruins_Shroom\Ruins_Shroom0.mdl
[red] => 255
[green] => 50
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[4] => Array
(
[x] => 15.2301
[y] => 26.5115
[z] => 0
[scale] => 0.6
[rot] => 0.279253
[file] => Doodads\Ruins\Plants\Ruins_Shroom\Ruins_Shroom0.mdl
[red] => 255
[green] => 50
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[5] => Array
(
[x] => -39.5837
[y] => 2.75794
[z] => 0
[scale] => 1
[rot] => 4.99164
[file] => Abilities\Spells\NightElf\FaerieDragonInvis\FaerieDragon_Invis.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[6] => Array
(
[x] => -15.2513
[y] => 29.3427
[z] => 0
[scale] => 0.6
[rot] => 0.628319
[file] => Doodads\Ruins\Plants\Ruins_Shroom\Ruins_Shroom0.mdl
[red] => 255
[green] => 50
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[7] => Array
(
[x] => 41.6144
[y] => -6.86304
[z] => 0
[scale] => 0.6
[rot] => 2.82743
[file] => Doodads\Ruins\Plants\Ruins_Shroom\Ruins_Shroom0.mdl
[red] => 255
[green] => 50
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[8] => Array
(
[x] => -6.81207
[y] => -47.8565
[z] => 0
[scale] => 0.6
[rot] => 1.74533
[file] => Doodads\Ruins\Plants\Ruins_Shroom\Ruins_Shroom0.mdl
[red] => 255
[green] => 50
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[9] => Array
(
[x] => 4.93659
[y] => -29.8506
[z] => 0
[scale] => 1
[rot] => 1.09956
[file] => Abilities\Spells\NightElf\FaerieDragonInvis\FaerieDragon_Invis.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[10] => Array
(
[x] => -8.73428
[y] => -1.87872
[z] => 0
[scale] => 0.4
[rot] => 3.54302
[file] => Abilities\Spells\NightElf\EntangleMine\Roots.mdl
[red] => 255
[green] => 50
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[11] => Array
(
[x] => -57.4728
[y] => -0.77695
[z] => 0
[scale] => 0.2
[rot] => 0
[file] => Abilities\Spells\NightElf\EntangleMine\Roots.mdl
[red] => 255
[green] => 50
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[12] => Array
(
[x] => 7.53251
[y] => -46.9554
[z] => 0
[scale] => 0.2
[rot] => 0
[file] => Abilities\Spells\NightElf\EntangleMine\Roots.mdl
[red] => 255
[green] => 50
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[13] => Array
(
[x] => 20.3677
[y] => 34.3189
[z] => 0
[scale] => 0.6
[rot] => 4.71239
[file] => Doodads\Ruins\Plants\Ruins_Shrub\Ruins_Shrub1.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[14] => Array
(
[x] => 40.4237
[y] => -38.7737
[z] => 0
[scale] => 0.6
[rot] => 0.20944
[file] => Doodads\Ruins\Plants\Ruins_Shrub\Ruins_Shrub1.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[15] => Array
(
[x] => -17.5512
[y] => -56.7749
[z] => 0
[scale] => 0.6
[rot] => 4.66003
[file] => Doodads\Ruins\Plants\Ruins_Shrub\Ruins_Shrub1.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[16] => Array
(
[x] => -45.2105
[y] => -4.92364
[z] => 0
[scale] => 0.6
[rot] => 5.14872
[file] => Doodads\Ruins\Plants\Ruins_Shrub\Ruins_Shrub1.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
)
[dmgTable] => Array
(
[0] => Array
(
[id] => MOD_MANA_REGEN
[base] => 0
[add] => 0.16
)
)
[triggers] => Array
(
[0] => Array
(
[name] => On Tower Creation
[code] => set tower.userInt = 0 // number of succesful growths
set tower.userInt2 = 0 // used for spelldamage attack on autocast
set tower.userReal = 0.
[values] => Array
(
[icon] =>
[visible] => false
[name] =>
[short_explain] =>
[long_explain] =>
)
)
[1] => Array
(
[name] => On Damage
[code] => if tower.userInt2 != 0 and Event.isMainTarget() then
set tower.userInt2 = 0
call drol_mushroomDebuff.apply(tower, Event.getTarget(), tower.getLevel())
call Event.getTarget().modifyProperty(MOD_SPELL_DAMAGE_RECEIVED, 0.1)
call tower.doSpellDamage(Event.getTarget(),Event.damage*(1.+tower.getLevel()*0.01),tower.calcSpellCrit(0.2+tower.getLevel()*0.008,0))
set Event.damage = 0
endif
[values] => Array
(
[ONDAMAGE_chance] => 1.0
[icon] =>
[visible] => false
[name] =>
[short_explain] =>
[ONDAMAGE_chanceLevelAdd] => 0.0
[long_explain] =>
)
)
[2] => Array
(
[name] => On Tower Details
[code] => call drol_mushroomMultiboardValue.setValue(0,I2S(tower.userInt))
call drol_mushroomMultiboardValue.setValue(1,I2S(R2I(tower.userReal * 100.)) + "%")
return drol_mushroomMultiboardValue
[values] => Array
(
)
)
[3] => Array
(
[name] => Header
[code] => globals
//@export
BuffType drol_mushroomGrowth
//@export
BuffType drol_mushroomBuff
//@export
BuffType drol_mushroomDebuff
//@export
MultiboardValues drol_mushroomMultiboardValue
endglobals
//Do not remove or rename this function!
//Put your initialization tasks here, this function will be called on map init
private function init takes nothing returns nothing
local Modifier m = Modifier.create()
local Modifier mm = Modifier.create()
set drol_mushroomGrowth = BuffType.createAuraEffectType( true )
set drol_mushroomBuff = BuffType.create( 5, 0.2, true)
set drol_mushroomDebuff = BuffType.create( 3600, 0, false )
call mm.addModification(MOD_SPELL_DAMAGE_DEALT,0.25,0.01)
call mm.addModification(MOD_TRIGGER_CHANCES,0.25,0.01)
call drol_mushroomGrowth.setBuffIcon( '@@0@@' )
call drol_mushroomBuff.setBuffIcon( '@@1@@' )
call drol_mushroomDebuff.setBuffIcon( '@@2@@' )
call drol_mushroomGrowth.setBuffModifier(m)
call drol_mushroomBuff.setBuffModifier(mm)
call drol_mushroomBuff.setStackingGroup("drol_mushroomBuff")
set drol_mushroomMultiboardValue = MultiboardValues.create(2)
call drol_mushroomMultiboardValue.setKey(0,"Growths")
call drol_mushroomMultiboardValue.setKey(1,"Spell Damage")
endfunction
[values] => Array
(
[icon] => ReplaceableTextures\CommandButtons\BTNHeartOfAszune.blp
[visible] => true
[name] => Fungus Strike
[short_explain] => When this tower casts Mystical Trance it deals its damage as spell damage.
[long_explain] => After casting Mystical Trance the Mushroom's next attack will deal |cffFFFF80100%|r of its damage as spell damage with an additional |cffFFFF8020%|r chance to crit. Additionally makes the target creep receive |cffFFFF8010%|r more damage from spells. This effect is permanent and stacks.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+1%|r spell damage|n|cffFFFF80+0.8%|r spell crit chance
)
)
[4] => Array
(
[name] => Periodic
[code] => local integer lvl = tower.getLevel()
local real growth
local Effect targetEffect
if (tower.calcChance(0.4) and tower.userInt < 40) then
call tower.modifyProperty(MOD_SPELL_DAMAGE_DEALT, 0.03+(lvl*0.0012))
set tower.userReal = tower.userReal + 0.03 + lvl * 0.0012
set targetEffect = Effect.createScaled("Abilities\\Spells\\NightElf\\TargetArtLumber\\TargetArtLumber.mdl", GetUnitX(tower.getUnit()), GetUnitY(tower.getUnit()), 30, 0, 1.4)
call targetEffect.setLifetime(1.0)
set tower.userInt = tower.userInt + 1
set growth = 1.25 + tower.userInt * 0.015
call SetUnitScale(tower.getUnit(), growth, growth, growth)
endif
call Event.getCurrentPeriodicEvent().enableAdvanced(20 - lvl*0.4, false)
[values] => Array
(
[icon] => ReplaceableTextures\CommandButtons\BTNRejuvenation.blp
[visible] => true
[PERIODIC_period] => 20
[name] => Rapid Growth
[short_explain] => The mushroom has a chance every few seconds to increase its spell damage permanently.
[long_explain] => Every |cffFFFF8020|r seconds the Mushroom has a |cffFFFF8040%|r chance to grow, permanently gaining |cffFFFF803%|r bonus spell damage. Maximum of |cffFFFF8040|r succesful growths.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80-0.4|r seconds|n|cffFFFF80+0.12%|r bonus spell damage
)
)
[5] => Array
(
[name] => Autocast
[code] => set tower.userInt2 = 1
call drol_mushroomBuff.applyCustomTimed(tower,Event.getTarget(),tower.getLevel(),5. + tower.getLevel()*0.2)
[values] => Array
(
[caster_art] => Abilities\Spells\Items\AIre\AIreTarget.mdl
[icon] => ReplaceableTextures\CommandButtons\BTNWandOfShadowSight.blp
[AUTOCAST_cooldown] => 2
[AUTOCAST_numBuffsBeforeIdle] => 1
[AUTOCAST_isExtended] => false
[long_explain] => Buffs a tower in |cffFFFF80500|r range, increasing its spell damage and trigger chances by |cffFFFF8025%|r. Lasts |cffFFFF805|r seconds.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.2|r sec duration|n|cffFFFF80+1%|r spell damage|n|cffFFFF80+1%|r trigger chances
[AUTOCAST_autocastType] => AC_TYPE_OFFENSIVE_BUFF
[AUTOCAST_manacost] => 50
[AUTOCAST_range] => 500
[AUTOCAST_buffType] => drol_mushroomBuff
[name] => Mystical Trance
[AUTOCAST_targetSelf] => true
[short_explain] => Applies a buff to a tower in range which increases spell damage and trigger chances. Also triggers Fungus Strike when cast.
[AUTOCAST_targetType] => TARGET_TYPE_TOWERS
[target_art] =>
[AUTOCAST_autoRange] => 500
)
)
)
[abilities] => Array
(
)
[buffs] => Array
(
[0] => Array
(
[id] => @@0@@
[derivedFrom] => BHab
[oeValues] => Array
(
[Bufftip] => Magic Spores
[Targetattach] => Array
(
)
[Buffubertip] => This tower deals increased spell damage and has increased trigger chances.
[Buffart] => ReplaceableTextures\CommandButtons\BTNWandOfNeutralization.blp
[TargetArt] => Array
(
)
)
)
[1] => Array
(
[id] => @@1@@
[derivedFrom] => BHab
[oeValues] => Array
(
[Bufftip] => Mystical Trance
[Targetattach] => Array
(
)
[Buffubertip] => This tower deals increased spell damage and has increased chance to trigger his abilities.
[Buffart] => ReplaceableTextures\CommandButtons\BTNWandOfShadowSight.blp
[TargetArt] => Array
(
)
)
)
[2] => Array
(
[id] => @@2@@
[derivedFrom] => BHab
[oeValues] => Array
(
[Bufftip] => Fungus Strike
[Targetattach] => Array
(
)
[Buffubertip] => This creep receives additional spell damage.
[Buffart] => ReplaceableTextures\CommandButtons\BTNHeartOfAszune.blp
[TargetArt] => Array
(
)
)
)
)
[units] => Array
(
)
[references] => Array
(
[0] => Array
(
[export] => true
[category] => global
[typ] => BuffType
[name] => drol_mushroomGrowth
)
[1] => Array
(
[export] => true
[category] => global
[typ] => BuffType
[name] => drol_mushroomBuff
)
[2] => Array
(
[export] => true
[category] => global
[typ] => BuffType
[name] => drol_mushroomDebuff
)
[3] => Array
(
[export] => true
[category] => global
[typ] => MultiboardValues
[name] => drol_mushroomMultiboardValue
)
)
)