Array
(
[scriptVersion] => 7
[oeValues] => Array
(
[Name] => Backpack
[Art] => ReplaceableTextures\CommandButtons\BTNPackBeast.blp
[Ubertip] => Sometimes a useful item is found in this backpack.
[abilList] => Array
(
)
)
[settings] => Array
(
[author] => Boekie
[authorDisplay] => |cff00CD00Boekie|r
[balanceTip] => Array
(
)
[rarity] => unique
[goldcost] => 150
[version] => 1.0
)
[dmgTable] => Array
(
)
[triggers] => Array
(
[0] => Array
(
[name] => On Item Creation
[code] => set itm.userInt = 0 //Total items found
[values] => Array
(
[visible] => false
[name] =>
[goldcost] => 0
[explain] =>
)
)
[1] => Array
(
[name] => On Tower Details
[code] => call boekie_backpackMB.setValue(0, I2S(itm.userInt))
return boekie_backpackMB
[values] => Array
(
[0] => Array
(
[_value] => 0
[typ] => string
)
)
)
[2] => Array
(
[name] => Header
[code] => globals
BuffType boekie_backpackBuff
MultiboardValues boekie_backpackMB
endglobals
function backpackKill takes Buff B returns nothing
local Tower tower = B.getBuffedUnit()
local Creep creep = Event.getTarget()
local Item itm = B.userInt
call creep.dropItem(tower,false)
call tower.getOwner().displaySmallFloatingText("Backpacked!",tower,255, 165, 0,30)
set itm.userInt = itm.userInt + 1
call B.removeBuff()
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 boekie_backpackBuff = BuffType.create(0, 0, true)
call boekie_backpackBuff.setBuffIcon('@@0@@')
call boekie_backpackBuff.addEventOnKill(backpackKill)
set boekie_backpackMB = MultiboardValues.create(1)
call boekie_backpackMB.setKey(0,"Items Backpacked")
endfunction
[values] => Array
(
[visible] => false
[name] =>
[goldcost] => 0
[explain] =>
)
)
[3] => Array
(
[name] => Autocast
[code] => local Unit tower = itm.getCarrier()
set boekie_backpackBuff.applyOnlyTimed(tower, tower, 1000).userInt = itm
[values] => Array
(
[caster_art] =>
[AUTOCAST_cooldown] => 150
[AUTOCAST_numBuffsBeforeIdle] => 0
[goldcost] => 150
[AUTOCAST_isExtended] => false
[AUTOCAST_autocastType] => AC_TYPE_ALWAYS_IMMEDIATE
[AUTOCAST_manacost] => 0
[AUTOCAST_range] => 0
[AUTOCAST_buffType] => 0
[name] => Search For Item
[AUTOCAST_targetSelf] => true
[AUTOCAST_targetType] => 0
[explain] => Every |cffFFFF80150|r seconds the next kill will drop an item for sure.
[target_art] =>
[AUTOCAST_autoRange] => 0
)
)
)
[abilities] => Array
(
)
[buffs] => Array
(
[0] => Array
(
[id] => @@0@@
[derivedFrom] => Bfrz
[oeValues] => Array
(
[Bufftip] => Ready to pack!
[Buffubertip] => The next creep killed by this tower will drop an item for sure.
[Buffart] => ReplaceableTextures\CommandButtons\BTNPackBeast.blp
[TargetArt] => Buildings\Other\BarrelsUnit0\BarrelsUnit0
[EditorName] => Backpack Buff
)
)
)
[units] => Array
(
)
[references] => Array
(
)
)