Array
(
[scriptVersion] => 7
[oeValues] => Array
(
[Name] => Golden Decoration
[Art] => ReplaceableTextures\CommandButtons\BTNImbuedMasonry.blp
[Ubertip] => This decoration is so expensive that it is only used by kings.
[abilList] => Array
(
)
)
[settings] => Array
(
[author] => Boekie
[authorDisplay] => |cff00CD00Boekie|r
[balanceTip] => |n|cffFFFF00+10% |rbounty collected (|cffFFFF00+0.4%|r/lvl)
[rarity] => unique
[goldcost] => 851
[version] => 1.0
)
[dmgTable] => Array
(
[0] => Array
(
[id] => MOD_BOUNTY_RECEIVED
[base] => 0.1
[add] => 0.004
)
)
[triggers] => Array
(
[0] => Array
(
[name] => On Item Creation
[code] => set itm.userReal = 0
[values] => Array
(
[visible] => false
[name] =>
[goldcost] => 0
[explain] =>
)
)
[1] => Array
(
[name] => On Tower Details
[code] => call InterestBonusMB.setValue(0, formatPercent(itm.userReal, 3))
return InterestBonusMB
[values] => Array
(
[0] => Array
(
[_value] => 0
[typ] => string
)
)
)
[2] => Array
(
[name] => On Item Pickup
[code] => local Tower tower = itm.getCarrier()
set itm.userReal = 0.004 * (tower.getGoldcost() / 2500.0)
call itm.getOwner().modifyInterestRate(itm.userReal)
[values] => Array
(
[visible] => true
[name] => Rich
[goldcost] => 750
[explain] => Whilst carried by a tower, this item increases the interest rate of the player by |cffFFFF80[0.4 x carrier's goldcost / 2500]%|r.
)
)
[3] => Array
(
[name] => Header
[code] => globals
MultiboardValues InterestBonusMB
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 InterestBonusMB = MultiboardValues.create(1)
call InterestBonusMB.setKey(0,"Interest Bonus")
endfunction
[values] => Array
(
[visible] => false
[name] =>
[goldcost] => 0
[explain] =>
)
)
[4] => Array
(
[name] => On Item Drop
[code] => call itm.getOwner().modifyInterestRate(-itm.userReal)
[values] => Array
(
[visible] => false
[name] =>
[goldcost] => 0
[explain] =>
)
)
)
[abilities] => Array
(
)
[buffs] => Array
(
)
[units] => Array
(
)
[references] => Array
(
)
)