Array
(
[scriptVersion] => 7
[oeValues] => Array
(
[Name] => Bloodthirsty Wheel of Fortune
[Art] => ReplaceableTextures\CommandButtons\BTNArcaneVault.blp
[Ubertip] => This wheel can only be spun when oiled with a victim's blood.
[abilList] => Array
(
)
)
[settings] => Array
(
[author] => Palandu
[authorDisplay] => |cffbdb76bPalandu|r
[balanceTip] => Array
(
)
[rarity] => rare
[goldcost] => 540
[version] => 1.0
)
[dmgTable] => Array
(
)
[triggers] => Array
(
[0] => Array
(
[name] => On Item Creation
[code] => set itm.userReal=0.0
[values] => Array
(
[visible] => false
[name] =>
[goldcost] => 0
[explain] =>
)
)
[1] => Array
(
[name] => On Tower Details
[code] => call slotMachineMB.setValue(0, formatPercentAddColor(itm.userReal, 0))
return slotMachineMB
[values] => Array
(
[0] => Array
(
[_value] => 0
[typ] => string
)
)
)
[2] => Array
(
[name] => On Item Pickup
[code] => if itm.userReal !=0.0 then
call itm.getCarrier().modifyProperty(MOD_ITEM_CHANCE_ON_KILL, itm.userReal)
endif
[values] => Array
(
[visible] => false
[name] =>
[goldcost] => 0
[explain] =>
)
)
[3] => Array
(
[name] => Header
[code] => globals
MultiboardValues slotMachineMB
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 slotMachineMB = MultiboardValues.create(1)
call slotMachineMB.setKey(0,"Wheel of Fortune Bonus")
endfunction
[values] => Array
(
[visible] => false
[name] =>
[goldcost] => 540
[explain] =>
)
)
[4] => Array
(
[name] => On Item Drop
[code] => if itm.userReal !=0.0 then
call itm.getCarrier().modifyProperty(MOD_ITEM_CHANCE_ON_KILL, -1*itm.userReal)
endif
[values] => Array
(
[visible] => false
[name] =>
[goldcost] => 0
[explain] =>
)
)
[5] => Array
(
[name] => On Kill
[code] => local Tower t
set t = itm.getCarrier()
if t.calcChance(0.25) then
if ModuloInteger(GetRandomInt(1,99),3) == 0 then //lower chance
if(itm.userReal >= -0.12) then
set itm.userReal = itm.userReal - 0.03
call t.modifyProperty(MOD_ITEM_CHANCE_ON_KILL, -0.03)
call t.getOwner().displaySmallFloatingText("Item Chance Lowered!",t,255, 0, 0,30)
endif
else //raise chance
if(itm.userReal <= 0.27) then
set itm.userReal = itm.userReal + 0.03
call t.modifyProperty(MOD_ITEM_CHANCE_ON_KILL, 0.03)
call t.getOwner().displaySmallFloatingText("Item Chance Raised!",t,0, 0, 255,30)
endif
endif
endif
[values] => Array
(
[visible] => true
[name] => Wheel of Fortune
[goldcost] => 0
[explain] => With every kill there is a |cffFFFF8025%|r chance to spin the wheel. Every spin will either increase (|cffFFFF8066%|r fixed chance) or decrease (|cffFFFF8033%|r fixed chance) the item find bonus by |cffFFFF803%|r. Total range: |cffFFFF80-15%|r to |cffFFFF80+30%|r. The bonus is bound to the item.
)
)
)
[abilities] => Array
(
)
[buffs] => Array
(
)
[units] => Array
(
)
[references] => Array
(
)
)