Defining a Classifier
Classifiers are essential for organizing and managing various item types, characteristics, and traits within your game. They allow you to categorize items into specific groups, making it easier to implement game mechanics and restrictions. Suppose you have a game where players can find items of various types and rarities. You might set up your classifiers as follows:Type
Classifier Option | Roll Numerator |
---|---|
gear | 1 |
enhancements | 1 |
currency | 1 |
Rarity
Classifier Option | Roll Numerator |
---|---|
common | 70 |
rare | 20 |
epic | 10 |
The roll numerator allows you to specify weight to each classifier option. This allows you to give higher probabilities to different options within a classifier
gear
option from the type
classifier.
This ensures that the only gear items with the specified rarity distribution will be returned.
By defining classifiers and using the Roll API effectively, you can create a more dynamic and rewarding item distribution system in your game.