Array
(
[scriptVersion] => 8
[oeValues] => Array
(
[auto] => Array
(
)
[Art] => ReplaceableTextures\CommandButtons\BTNForestTroll.blp
[turnRate] => 3
[dmgplus1] => 1671
[bldtm] => 1
[goldcost] => 1100
[sides1] => 1
[acquire] => 875
[upgrades] => Array
(
)
[Upgrade] => Array
(
)
[Name] => Forest Troll Goon
[weapTp1] => missile
[MissileHoming] => 1
[file] => units\creeps\ForestTroll\ForestTroll.mdl
[uberSplat] => YTDH
[Missileart] => Abilities\Weapons\Axe\AxeMissile.mdl
[Missilespeed] => 1500
[dice1] => 1
[RngBuff1] => 250
[modelScale] => 0.7
[rangeN1] => 875
[atkType1] => siege
[cool1] => 1.75
[Ubertip] => One bad dude you ain't wanna mess with!
[abilList] => Array
(
)
[buildingShadow] => Array
(
)
[targs1] => Array
(
)
[weapsOn] => 1
)
[settings] => Array
(
[balanceTip] => |cffFFFF00+10% |rdmg to orcs (|cffFFFF00+0.2%|r/lvl)|n|cffFFFF00+10% |rdmg to humanoids (|cffFFFF00+0.2%|r/lvl)
[abil_factor] => 0.75
[author] => Moppy
[alpha] => 255
[authorDisplay] => |c006969FFMoppy|r
[version] => 1.0
[element] => nature
[rarity] => rare
)
[effects] => Array
(
[0] => Array
(
[x] => 38.8367
[y] => -12.7763
[z] => 0
[scale] => 0.18
[rot] => 4.71239
[file] => Doodads\Ruins\Plants\Ruins_Shroom\Ruins_Shroom1.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[1] => Array
(
[x] => -26.6959
[y] => 28.5074
[z] => 0
[scale] => 0.3
[rot] => 4.71239
[file] => Doodads\Felwood\Props\FelwoodHollowStump\FelwoodHollowStump.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[2] => Array
(
[x] => -29.3117
[y] => 13.0983
[z] => 0
[scale] => 0.18
[rot] => 4.71239
[file] => Doodads\Ruins\Plants\Ruins_Shroom\Ruins_Shroom2.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[3] => Array
(
[x] => 46.136
[y] => -18.8046
[z] => 0
[scale] => 0.18
[rot] => 4.71239
[file] => Doodads\Ruins\Plants\Ruins_Shroom\Ruins_Shroom5.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[4] => Array
(
[x] => 43.661
[y] => 0.43656
[z] => 0
[scale] => 0.3
[rot] => 3.49066
[file] => Doodads\LordaeronSummer\Plants\RiverRushes\RiverRushes1.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[5] => Array
(
[x] => 34.5409
[y] => 24.0028
[z] => 0
[scale] => 0.3
[rot] => 3.14159
[file] => Doodads\Ruins\Plants\VinyPlant\VinyPlant1.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[6] => Array
(
[x] => -14.5536
[y] => -24.4711
[z] => 0
[scale] => 0.3
[rot] => 5.49779
[file] => Doodads\Ruins\Plants\VinyPlant\VinyPlant2.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[7] => Array
(
[x] => -27.0112
[y] => 25.5983
[z] => 19.2
[scale] => 0.3
[rot] => 2.05949
[file] => Doodads\Ruins\Plants\VinyPlant\VinyPlant3.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[8] => Array
(
[x] => 10.8217
[y] => -3.69052
[z] => 0
[scale] => 0.3
[rot] => 0.872665
[file] => Doodads\Ruins\Plants\VinyPlant\VinyPlant2.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[9] => Array
(
[x] => -23.8932
[y] => -36.0113
[z] => 0
[scale] => 0.18
[rot] => 0.785398
[file] => Doodads\Ruins\Plants\Ruins_Shroom\Ruins_Shroom5.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
)
[dmgTable] => Array
(
[0] => Array
(
[id] => MOD_DMG_TO_ORC
[base] => 0.1
[add] => 0.002
)
[1] => Array
(
[id] => MOD_DMG_TO_HUMANOID
[base] => 0.1
[add] => 0.002
)
)
[triggers] => Array
(
[0] => Array
(
[name] => On Attack
[code] => local Projectile p
set tower.userInt = tower.userInt + 1
if tower.userInt == 5 then
set p = Projectile.createFromUnitToUnit(moppy_troll_net, tower, 1, 0, tower, Event.getTarget(), true, false, false)
set tower.userInt = 0
endif
[values] => Array
(
[visible] => true
[icon] => ReplaceableTextures\CommandButtons\BTNEnsnare.blp
[name] => Weighted Throwing Net
[short_explain] => Every few attacks, throws a weighted net that deals additional damage around the main target and slows all enemies affected for a short duration.
[ONATTACK_chance] => 1.0
[ONATTACK_chanceLevelAdd] => 0.0
[long_explain] => Every |cffFFFF805th|r attack, throws a weighted net that deals an additional |cffFFFF8030%|r of the tower's attack damage in |cffFFFF80200|r range around the target and slows all enemies affected by |cffFFFF8030%|r for |cffFFFF802|r seconds. The counter resets to |cffFFFF800|r if there are no more enemies left in range.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.6%|r damage|n|cffFFFF80+0.6%|r slow
)
)
[1] => Array
(
[name] => Header
[code] => globals
//@export
BuffType moppy_troll_adrenaline_rush
//@export
BuffType moppy_troll_net_slow
//@export
ProjectileType moppy_troll_net
endglobals
//@export
function moppy_troll_net_throw takes Projectile p, Unit target returns nothing
local Tower t = p.getCaster()
local Iterate i = Iterate.overUnitsInRangeOfUnit(t, TARGET_TYPE_CREEPS, target, 200)
loop
set target = i.next()
exitwhen target == 0
call t.doAttackDamage(target, t.getCurrentAttackDamageWithBonus() * (t.userReal + (t.userReal2 * t.getLevel())), t.calcAttackMulticrit(0, 0, 0))
call moppy_troll_net_slow.applyCustomTimed(t, target, 1, t.userReal3)
endloop
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 m = Modifier.create()
local Modifier s = Modifier.create()
set moppy_troll_adrenaline_rush = BuffType.create(4.0, 0.0, true)
call m.addModification(MOD_ATTACKSPEED, 0.0, 0.001)
call m.addModification(MOD_DEBUFF_RESISTANCE, 0.5, 0.0)
call moppy_troll_adrenaline_rush.setBuffModifier(m)
call moppy_troll_adrenaline_rush.setBuffIcon('@@0@@')
call moppy_troll_adrenaline_rush.setStackingGroup("moppy_troll_adrenaline_rush")
set moppy_troll_net_slow = BuffType.create(0.0, 0.0, false)
call s.addModification(MOD_MOVESPEED, -0.3, -0.006)
call moppy_troll_net_slow.setBuffModifier(s)
call moppy_troll_net_slow.setBuffIcon('@@1@@')
set moppy_troll_net = ProjectileType.create("Abilities\\Spells\\Orc\\Ensnare\\EnsnareMissile.mdl", 50, 1500)
call moppy_troll_net.enableHoming(moppy_troll_net_throw, 0.0)
endfunction
[values] => Array
(
[visible] => false
[icon] =>
[name] =>
[short_explain] =>
[long_explain] =>
)
)
[2] => Array
(
[name] => On Damage
[code] => local real Rush = 1.5 + (tower.getLevel() * 0.03)
local integer Power = R2I (Rush / 0.001)
if tower.getBuffOfGroup("moppy_troll_adrenaline_rush") == 0 then
call moppy_troll_adrenaline_rush.applyCustomPower(tower, tower, tower.getLevel(), Power)
endif
[values] => Array
(
[ONDAMAGE_chance] => 0.15
[visible] => true
[icon] => ReplaceableTextures\CommandButtons\BTNBerserkForTrolls.blp
[name] => Adrenaline Rush
[short_explain] => The tower has a chance on hit to greatly increase its attack speed and debuff resistance for a short duration.
[ONDAMAGE_chanceLevelAdd] => 0.006
[long_explain] => The tower has a |cffFFFF8015%|r chance on hit to receive a burst of adrenaline, increasing attack speed by |cffFFFF80150%|r and debuff resistance by |cffFFFF8050%|r for |cffFFFF804|r seconds. Cannot retrigger while active!|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.6%|r chance|n|cffFFFF80+3%|r attack speed
)
)
[3] => Array
(
[name] => Periodic
[code] => local Iterate i = Iterate.overUnitsInRangeOfCaster(tower, TARGET_TYPE_CREEPS, 875)
local Unit u = i.next()
if u == 0 then
set tower.userInt = 0
endif
[values] => Array
(
[visible] => false
[PERIODIC_period] => 1.0
[icon] =>
[name] =>
[short_explain] =>
[long_explain] =>
)
)
[4] => Array
(
[name] => On Tower Creation
[code] => set tower.userReal = 0.3
set tower.userReal2 = 0.006
set tower.userReal3 = 2.0
set tower.userInt = 0 // Set throw net counter to 0 for newly built towers
[values] => Array
(
[visible] => false
[icon] =>
[name] =>
[short_explain] =>
[long_explain] =>
)
)
)
[abilities] => Array
(
)
[buffs] => Array
(
[0] => Array
(
[id] => @@0@@
[derivedFrom] => Bblo
[oeValues] => Array
(
[EditorName] => Adrenaline Rush
[Buffubertip] => Increased attack speed and debuff resistance.
[Bufftip] => Adrenaline Rush
[Buffart] => ReplaceableTextures\CommandButtons\BTNBerserkForTrolls.blp
)
)
[1] => Array
(
[id] => @@1@@
[derivedFrom] => Bens
[oeValues] => Array
(
[EditorName] => Weighted Throwing Net
[Buffubertip] => Slowed.
[TargetArt] => Abilities\Spells\Orc\Ensnare\ensnareTarget.mdl
[Bufftip] => Weighted Throwing Net
[Buffart] => ReplaceableTextures\CommandButtons\BTNEnsnare.blp
)
)
)
[units] => Array
(
)
[references] => Array
(
[0] => Array
(
[export] => true
[category] => global
[typ] => BuffType
[name] => moppy_troll_adrenaline_rush
)
[1] => Array
(
[export] => true
[category] => global
[typ] => BuffType
[name] => moppy_troll_net_slow
)
[2] => Array
(
[export] => true
[category] => global
[typ] => ProjectileType
[name] => moppy_troll_net
)
)
[lightning] => Array
(
)
)