Array
(
[scriptVersion] => 7
[oeValues] => Array
(
[Name] => Jah'Rakal's Fury
[Art] => ReplaceableTextures\CommandButtons\BTNBerserkForTrolls.blp
[Ubertip] => The essence of Jah'rakal.
[abilList] => Array
(
)
)
[settings] => Array
(
[author] => Der_kleine_Tomy
[authorDisplay] => |cffff0000Der_kleine_Tomy|r
[balanceTip] => Array
(
)
[rarity] => unique
[goldcost] => 1000
[version] => 1.0
)
[dmgTable] => Array
(
)
[triggers] => Array
(
[0] => Array
(
[name] => On Item Creation
[code] => set itm.userReal = 0.00
set itm.userInt = 0
[values] => Array
(
[visible] => false
[name] =>
[goldcost] => 0
[explain] =>
)
)
[1] => Array
(
[name] => On Tower Details
[code] => call tomy_jahrakal_values.setValue(0, I2S(R2I(itm.userReal * 100)) + "%") // No decimal places
return tomy_jahrakal_values
[values] => Array
(
[visible] => false
[name] =>
[goldcost] => 0
[explain] =>
)
)
[2] => Array
(
[name] => On Item Pickup
[code] => // Add bonus
call itm.getCarrier().modifyProperty(MOD_ATTACKSPEED, itm.userReal)
[values] => Array
(
[visible] => false
[name] =>
[goldcost] => 0
[explain] =>
)
)
[3] => Array
(
[name] => Header
[code] => globals
MultiboardValues tomy_jahrakal_values
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
set tomy_jahrakal_values = MultiboardValues.create(1)
call tomy_jahrakal_values.setKey(0, "Attackspeed Increase")
endfunction
[values] => Array
(
[visible] => false
[name] =>
[goldcost] => 0
[explain] =>
)
)
[4] => Array
(
[name] => On Item Drop
[code] => // Remove bonus
call itm.getCarrier().modifyProperty(MOD_ATTACKSPEED, -itm.userReal)
[values] => Array
(
[visible] => false
[name] =>
[goldcost] => 0
[explain] =>
)
)
[5] => Array
(
[name] => On Attack
[code] => // If last target == current target
if itm.userInt == Event.getTarget() then
if itm.userReal != 1.00 and itm.userReal + 0.02 > 1.00 then // 100% attackspeed limit
// Add the remaining bonus (99% -> 101%; limit -> 100%; add 100% - 99% = 1%)
call itm.getCarrier().modifyProperty(MOD_ATTACKSPEED, 1.00 - itm.userReal)
set itm.userReal = 1.00
else
// Add bonus
call itm.getCarrier().modifyProperty(MOD_ATTACKSPEED, 0.02)
set itm.userReal = itm.userReal + 0.02
endif
else
// Save current target
set itm.userInt = Event.getTarget()
// Temp variable to store the current bonus
set itm.userReal2 = itm.userReal
// Calculate the new bonus (Current bonus * (50% + towerlevel%))
set itm.userReal = itm.userReal * (50.0 + itm.getCarrier().getLevel()) / 100
// Change the bonus (new Bonus - current Bonus)
call itm.getCarrier().modifyProperty(MOD_ATTACKSPEED, itm.userReal - itm.userReal2)
endif
[values] => Array
(
[visible] => true
[name] => Fervor
[goldcost] => 1000
[explain] => Each subsequent attack on the same target increases the carrier's attackspeed by |cffFFFF802%|r up to a maximum of |cffFFFF80100%|r. Whenever the carrier acquires a new target, the bonus is reduced by |cffFFFF8050%|r. The bonus is bound to the item.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80-1%|r bonus reduction
[ONATTACK_chance] => 1.0
[ONATTACK_chanceLevelAdd] => 0.0
)
)
)
[abilities] => Array
(
)
[buffs] => Array
(
)
[units] => Array
(
)
[references] => Array
(
)
)