• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] Item Pools

Status
Not open for further replies.
set the chance to 0.00

That's a vague solution.

JASS:
function DropItem takes nothing returns nothing
     local itempool ip = CreateItemPool()
     call ItemPoolAddItemType(ip, 'I001', 1)
     call ItemPoolAddItemType(ip, 'I002', 1)
     call ItemPoolAddItemType(ip, 'I003', 1)
     call ItemPoolAddItemType(ip, 'I004', 1)
endfunction

That means that 'I001' , 'I002' , 'I003' and 'I004' all have equal chance 25% of being dropped, 0 chance means that the item has no chance of dropping but what I wanted is that the 4 items has 20% chance (total 80%) of dropping and the remaining 20% is not to drop any item. I hope you understand what I need.
 
Status
Not open for further replies.
Top