wongerlt Posted July 13, 2017 Share Posted July 13, 2017 Hello. Example in one category i have 100 items with chance 1.5% for each item. But when i kill mob it always drop one of 100 items. if in category have 2 items then to drop item chance low. How work category? I want make chance for one category example 2% and then check again for items in catagory then drop. First check category chance if true then check all items chance in catagory. Quote Link to comment Share on other sites More sharing options...
0 SweeTs Posted July 13, 2017 Share Posted July 13, 2017 100 items * 1.5% = 150% chance in total. You exceeded the 100%. Quote Link to comment Share on other sites More sharing options...
0 Reborn12 Posted July 13, 2017 Share Posted July 13, 2017 (edited) Category 1 category 2 etc make each item his own category 100000 = 10% Edited July 13, 2017 by Reborn12 Quote Link to comment Share on other sites More sharing options...
0 wongerlt Posted July 13, 2017 Author Share Posted July 13, 2017 oh yes now i see _categoryChance += drop.getChance(); every drop chance add to categry chance. So i will need to edit code. Thanks. Quote Link to comment Share on other sites More sharing options...
Question
wongerlt
Hello.
Example in one category i have 100 items with chance 1.5% for each item. But when i kill mob it always drop one of 100 items.
if in category have 2 items then to drop item chance low.
How work category?
I want make chance for one category example 2% and then check again for items in catagory then drop.
First check category chance if true then check all items chance in catagory.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.