[Question] Can XP drops have a chance less than 100%
donqixot opened this issue ยท 4 comments
I understand it is possible to specify XP drops with minimum of 1. But what if you want only 20% chance of XP drops? Can I use fractions?
To clarify, you want some number of XP to drop only 20% of the time?
Also, if you're interested, I now have a discord for my mods: discord.gg/HY69E8X
Yes, it is possible.
You want to have two items in your drop list. The first item will contain the XP you want to drop, and a selector with a weight. The second item will be empty, and have a selector with a different weight.
This describes the selector and XP object: https://dropt.readthedocs.io/en/latest/json/syntax/#iruledrop
It'll be similar to the first example on this page, but instead of a dye item you'd use the XP object.
Let me know if you would like further assistance.