Array
(
[scriptVersion] => 7
[oeValues] => Array
(
[Ubertip] => Made from a mysterious material.
[Art] => ReplaceableTextures\CommandButtons\BTNNagaWeaponUp3.blp
[abilList] => Array
(
)
[Name] => Dark Matter Trident
)
[settings] => Array
(
[balanceTip] => Array
(
)
[goldcost] => 410
[author] => cedi
[authorDisplay] => cedi
[version] => 1.0
[rarity] => unique
)
[dmgTable] => Array
(
)
[triggers] => Array
(
[0] => Array
(
[name] => Header
[code] => globals
BuffType neg
BuffType pos
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()
call m.addModification( MOD_MOVESPEED, 0.0, -0.0002 )
set neg = BuffType.create( 2.5, 0.0, false )
call neg.setBuffIcon( '@@0@@' )
call neg.setBuffModifier( m )
set m = Modifier.create()
call m.addModification( MOD_ATTACKSPEED, 0.0, 0.0002 )
set pos = BuffType.create( 2.5, 0.0, true )
call pos.setBuffIcon( '@@1@@' )
call pos.setBuffModifier( m )
endfunction
[values] => Array
(
[explain] => Whenever the carrier of this item hits a creep, the carrier gains |cffFFFF802%|r attackspeed and the creep is slowed by |cffFFFF802%|r. Both effects are attackspeed adjusted, last |cffFFFF805|r seconds and stack up to |cffFFFF8020|r times.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.1|r second duration
[visible] => true
[goldcost] => 410
[name] => Drain Physical Energy
)
)
[1] => Array
(
[name] => On Damage
[code] => local Buff B
local Tower T
local Creep C
local integer levelAdd
local real dur
if Event.isMainTarget() then
set T = itm.getCarrier()
set C = Event.getTarget()
set levelAdd = R2I(100.0 * T.getCurrentAttackspeed())
set dur = 5 + 0.1 * T.getLevel()
set B = T.getBuffOfType(pos)
if B != 0 then
call pos.applyCustomTimed(T, T, IMinBJ(levelAdd + B.getLevel(), 2000), dur)
else
call pos.applyCustomTimed(T, T, levelAdd, dur)
endif
set B = C.getBuffOfType(neg)
if B != 0 then
call neg.applyCustomTimed(T, C, IMinBJ(levelAdd + B.getLevel(), 2000), dur)
else
call neg.applyCustomTimed(T, C, levelAdd, dur)
endif
endif
[values] => Array
(
[explain] =>
[ONDAMAGE_chance] => 1.0
[visible] => false
[goldcost] => 0
[name] =>
[ONDAMAGE_chanceLevelAdd] => 0.0
)
)
)
[abilities] => Array
(
)
[buffs] => Array
(
[0] => Array
(
[id] => @@0@@
[derivedFrom] => BHfs
[oeValues] => Array
(
[Targetattach] => origin
[EditorName] => Physical Energy Drained
[Buffubertip] => This unit has decreased movement speed.
[TargetArt] => Abilities\Spells\Human\slow\slowtarget.mdl
[Targetattachcount] => 1
[Bufftip] => Physical Energy Drained
[Buffart] => ReplaceableTextures\CommandButtons\BTNNagaWeaponUp3.blp
)
)
[1] => Array
(
[id] => @@1@@
[derivedFrom] => BHfs
[oeValues] => Array
(
[Targetattach] => origin
[EditorName] => Physical Energy Drained
[Buffubertip] => This tower has increased attackspeed.
[TargetArt] => Abilities\Spells\Human\slow\slowtarget.mdl
[Targetattachcount] => 1
[Bufftip] => Physical Energy Drained
[Buffart] => ReplaceableTextures\CommandButtons\BTNNagaWeaponUp3.blp
)
)
)
[units] => Array
(
)
[references] => Array
(
)
)