Array
(
[scriptVersion] => 7
[oeValues] => Array
(
[RngBuff1] => 250
[MissileHoming] => 1
[Upgrade] => Array
(
)
[targs1] => Array
(
)
[goldcost] => 1500
[weapsOn] => 1
[dice1] => 1
[Missilespeed] => 10000
[file] => Doodads\Ruins\Plants\RuinsTreeDoodad\RuinsTreeDoodad0.mdl
[modelScale] => 0.6
[atkType1] => siege
[weapTp1] => missile
[acquire] => 500
[rangeN1] => 825
[upgrades] => Array
(
)
[cool1] => 3
[Ubertip] => Fall, fall, fall, little nuts, right on the heads of the little noobs...
[abilList] => Array
(
)
[Name] => Coconut Sapling
[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+30% |rdmg to orcs (|cffFFFF00+1%|r/lvl)|n|cffFFFF00+20% |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] => 128
[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] => 121.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] => 7.88169
[y] => 19.9129
[z] => 128
[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
)
)
[dmgTable] => Array
(
[0] => Array
(
[id] => MOD_DMG_TO_ORC
[base] => 0.3
[add] => 0.01
)
[1] => Array
(
[id] => MOD_DMG_TO_HUMANOID
[base] => 0.2
[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.80
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
//@export
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, 150.00 )
local real dmg = 1625.00 + I2R( caster.getLevel() ) * 162.50
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 )
set cedi_Coco_Buff = BuffType.create( 1.5, 0.00, true )
call cedi_Coco_Buff.setBuffIcon( '@@0@@' )
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 |cffFFFF8020%|r. Each coconut deals |cffFFFF801625|r spelldamage in |cffFFFF80150|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+162.5|r damage
)
)
)
[abilities] => Array
(
)
[buffs] => Array
(
[0] => Array
(
[id] => @@0@@
[derivedFrom] => Binf
[oeValues] => Array
(
[Bufftip] => Coconutted
[Buffubertip] => This unit can't get stunned by Coco Sapling or Palm for 1.5 seconds.
[Buffart] => ReplaceableTextures\CommandButtons\BTNAcorn.blp
[TargetArt] => Array
(
)
[EditorName] => Coconutted
)
)
)
[units] => Array
(
)
[references] => Array
(
[0] => Array
(
[export] => true
[category] => global
[typ] => BuffType
[name] => cedi_Coco_Buff
)
)
)