Pourcentage of chance to obtain an object

Discussion in 'Plugin Development' started by ScopeTowel, Apr 11, 2020.

Thread Status:
Not open for further replies.
  1. Offline

    ScopeTowel

    Good evening, today I would like to know how to make percentages, imagine that we have

    ITEM 1: 30% chance of obtaining it

    ITEM 2: 35% chance of keeping it

    ITEM 3: 30% chance of obtaining it

    ITEM 4: 5% chance of obtaining it

    How can I do it easily and optimize? because there is a way to put, say 30 times object 1, 5 times object 4, etc., but it's not very optimal, so how do you do that?
     
  2. There are a lot of tutorials and other threads asking for the exact same. Try a simple google search, I'm sure you'll find what you're looking for.
     
Thread Status:
Not open for further replies.

Share This Page