Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make an unboxing system ? [closed]

Asked by
Hrooc -5
3 years ago

Hello I'm currently working on a game, and I need to make an unboxing system. When unboxing, you will get items (tools) based on their rarities.

There are 5 rarities : - Common (50%) - Uncommon (30%) - Rare (15%) - Super-rare (4%) - Ultimate (1%)

0
Please read the rules. Post what you have coded so far and need help debugging. This is not a request site. CMVProduction 25 — 3y

Closed as Not Constructive by BunnyFilms1, Xapelize, Shounak123, imKirda, Cynical_Innovation, and Speedmask

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 3 years ago

This is not a request site, though I will provide you with the basic ideas for an unboxing system. Create tables for each rarity with the corresponding tools in each one. Create a randomizer that picks a random number between 1 and 100. If the number is 1-50, then it is common, 51-80 is uncommon, 81-95 is rare, 96-99 is super rare, 100 is ultimate. Then use another number randomizer to pick a number between 1 and the number of tools corresponding to the randomly selected rarity.

Ad