• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[JASS] Item Pools

Status
Not open for further replies.
Level 16
Joined
Mar 3, 2006
Messages
1,564
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