Array
(
[scriptVersion] => 7
[oeValues] => Array
(
[RngBuff1] => 250
[MissileHoming] => 1
[Upgrade] => Array
(
)
[targs1] => Array
(
)
[goldcost] => 3000
[weapsOn] => 1
[dice1] => 1
[Missilespeed] => 10000
[file] => Doodads\Ruins\Plants\RuinsTreeDoodad\RuinsTreeDoodad0.mdl
[modelScale] => 0.7
[atkType1] => siege
[weapTp1] => missile
[acquire] => 825
[rangeN1] => 825
[upgrades] => Array
(
)
[cool1] => 3
[Ubertip] => Fall, fall, fall, little nuts, right on the heads of the little noobs...
[abilList] => Array
(
)
[Name] => Monkey Boogie Palm
[Art] => ReplaceableTextures\CommandButtons\BTNAcorn.blp
[buildingShadow] => Array
(
)
[unitSound] => Array
(
)
[sides1] => 1
[uberSplat] => ESMB
[auto] => Array
(
)
[dmgplus1] => 0
[bldtm] => 1
)
[settings] => Array
(
[author] => cedi
[element] => nature
[authorDisplay] => cedi
[alpha] => 255
[balanceTip] => |cffFFFF00+50% |rdmg to orcs (|cffFFFF00+1%|r/lvl)|n|cffFFFF00+40% |rdmg to humanoids (|cffFFFF00+1%|r/lvl)
[rarity] => rare
[version] => 1.0
[abil_factor] => 0.00
)
[effects] => Array
(
[0] => Array
(
[x] => 18.3507
[y] => -0.505442
[z] => 0
[scale] => 0.7
[rot] => 4.60355
[file] => Doodads\Ruins\Plants\Ruins_Shrub\Ruins_Shrub0.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[1] => Array
(
[x] => -18.3354
[y] => 1.99455
[z] => 0
[scale] => 0.7
[rot] => 6.26681
[file] => Doodads\Ruins\Plants\Ruins_Shrub\Ruins_Shrub0.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[2] => Array
(
[x] => 14.4849
[y] => -30.8601
[z] => 160
[scale] => 0.3
[rot] => 0.750492
[file] => abilities\weapons\catapult\catapultmissile.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => true
[animation] => Array
(
)
[aniSpeed] => 0
)
[3] => Array
(
[x] => -34.0336
[y] => -11.4038
[z] => 153.6
[scale] => 0.3
[rot] => 0.750492
[file] => abilities\weapons\catapult\catapultmissile.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => true
[animation] => Array
(
)
[aniSpeed] => 0
)
[4] => Array
(
[x] => 11.5795
[y] => 41.3212
[z] => 160
[scale] => 0.3
[rot] => 0.750492
[file] => abilities\weapons\catapult\catapultmissile.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => true
[animation] => Array
(
)
[aniSpeed] => 0
)
[5] => Array
(
[x] => -4.68591
[y] => -1.56823
[z] => 160
[scale] => 0.2
[rot] => 4.73176
[file] => units\creeps\Sasquatch\Sasquatch.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[6] => Array
(
[x] => -4.51906
[y] => -24.8296
[z] => 0
[scale] => 0.2
[rot] => 1.42375
[file] => units\creeps\Sasquatch\Sasquatch.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[7] => Array
(
[x] => 25.5105
[y] => 26.2452
[z] => 0
[scale] => 0.2
[rot] => 0.0914604
[file] => units\creeps\Sasquatch\Sasquatch.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
)
[dmgTable] => Array
(
[0] => Array
(
[id] => MOD_DMG_TO_ORC
[base] => 0.5
[add] => 0.01
)
[1] => Array
(
[id] => MOD_DMG_TO_HUMANOID
[base] => 0.4
[add] => 0.01
)
)
[triggers] => Array
(
[0] => Array
(
[name] => On Damage
[code] => local real chance = 1.00
local integer casts = 0
local Unit u = Event.getTarget()
local Projectile p
local real x = u.getX()
local real y = u.getY()
local real range
local real angle
loop
if tower.calcChance( chance ) then
set casts = casts + 1
set chance = chance * 0.83
else
exitwhen true
endif
endloop
loop
exitwhen casts <= 0
set range = GetRandomReal( 0.00, 300.00 )
set angle = GetRandomReal( 0.00, 360.00 ) * bj_DEGTORAD
set p = Projectile.create( cedi_Coco, tower, 1.00, tower.calcSpellCritNoBonus(), x + Cos( angle ) * range, y + Sin( angle ) * range, 1000.00, 0.00 )
call p.setScale( 0.30 )
call p.setGravity( GetRandomReal( 1.00, 1.50 ) )
set casts = casts - 1
endloop
[values] => Array
(
[ONDAMAGE_chance] => 1.0
[icon] =>
[visible] => false
[name] =>
[short_explain] =>
[ONDAMAGE_chanceLevelAdd] => 0.0
[long_explain] =>
)
)
[1] => Array
(
[name] => Header
[code] => globals
ProjectileType cedi_Coco
//@import
BuffType cedi_Coco_Buff
endglobals
function cedi_Coco_Impact takes Projectile p returns nothing
local Unit target
local Unit caster = p.getCaster()
local Iterate I = Iterate.overUnitsInRange( caster, TARGET_CREEPS, p.x, p.y, 190.00 )
local real dmg = 2600.00 + I2R( caster.getLevel() ) * 260.00
call DestroyEffect( AddSpecialEffect( "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl", p.x, p.y ) )
loop
set target = I.next()
exitwhen target == 0
call caster.doSpellDamage( target, dmg, caster.calcSpellCritNoBonus() )
if ( target.getBuffOfType( cedi_Coco_Buff ) == 0 ) then
call cb_stun.applyOnlyTimed( caster, target, 0.5 )
call cedi_Coco_Buff.applyOnlyTimed( caster, target, 1.5 )
endif
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
set cedi_Coco = ProjectileType.create( "abilities\\weapons\\catapult\\catapultmissile.mdl", 4.00, 0.00 )
call cedi_Coco.enablePhysics( 0, cedi_Coco_Impact, -15.00, 0, 1.00 )
endfunction
[values] => Array
(
[icon] => ReplaceableTextures\CommandButtons\BTNAcorn.blp
[visible] => true
[name] => Coconut Rain
[short_explain] => Coconuts fall down from the sky and do some damage.
[long_explain] => Each time this tower attacks there is a chance to drop multiple coconuts. The chance to drop a coconut is |cffFFFF80100%|r for the 1st one and after each coconut the chance is decreased by |cffFFFF8017%|r. Each coconut deals |cffFFFF802600|r spelldamage in |cffFFFF80190|r AoE and stuns for |cffFFFF800.5|r seconds. Hit units are immune to the stun of this ability for the next |cffFFFF801.5|r seconds.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+260|r damage
)
)
)
[abilities] => Array
(
)
[buffs] => Array
(
)
[units] => Array
(
)
[references] => Array
(
[0] => Array
(
[export] => false
[category] => global
[typ] => BuffType
[name] => cedi_Coco_Buff
)
)
)