flrp's plugins
  • Hub
  • Free
    • Tracker
      • Installation & Dependencies
      • Permissions & Commands
      • Files
    • Economobs
      • Installation & Dependencies
      • Permissions, Commands, & Placeholders
      • Files
      • Tutorials
        • Understanding Loot and Loot Tables
        • Assigning Loot Tables
        • Loot Table Conditionals and Overrides
        • Managing Multiplier Groups
        • 1.0.0 Tutorials
          • Managing Rewards & Drop Weight
    • Econoblocks
      • Installation & Dependencies
      • Permissions & Commands
      • Files
      • Frequently Asked Questions
      • Tutorials
        • Understanding Loot and Loot Tables
        • Assigning Loot Tables
        • Loot Table Conditionals and Overrides
        • Managing Multiplier Groups
        • 1.0.0 Tutorials
          • Managing Rewards & Drop Weight
  • Premium
    • TrackerPlus
      • Installation & Dependencies
      • Permissions & Commands
      • Files
      • Frequently Asked Questions
      • Tutorials
        • Creating a Reward
    • Challenges
Powered by GitBook
On this page
  • Explanation
  • Examples

Was this helpful?

  1. Free
  2. Economobs
  3. Tutorials
  4. 1.0.0 Tutorials

Managing Rewards & Drop Weight

Previous1.0.0 TutorialsNextEconoblocks

Last updated 1 year ago

Was this helpful?

Explanation

First, let's understand how the format works.

mobs:
  ENTITY_TYPE: 
   - 'PAY WEIGHT' 

ENTITY_TYPE would be something like PIG or COW. You can find a list of valid entities .

PAY would be what the player would be paid if the roll lands.

WEIGHT would be the distribution value (or chance) of that reward.

To explain weight further, a weight is a piece of distribution. When the plugin rolls and picks a reward, it uses a "total weight" - adding all the reward weights together. For example: A reward with a weight of 20 in a total weight of 200, means it will have a 10% chance of dropping said reward. These weight values do not need to be within a 100 total weight. Use this weight system to your advantage.

Examples

mobs:
  PIG:
   - '10' 
# $10 with a weight of 100, will always drop

Values with no weight defined will assume Weight = 100

mobs:
  PIG:
   - '10' # $10 with a weight of 100
   - '20' # $20 with a weight of 100 
   
# 200 total weight | each value is 50% chance
mobs:
  PIG:
   - '10 80' # $10 with a weight of 80
   - '20 20' # $20 with a weight of 20 

# 100 total weight | $10 80% chance | $20 20% chance
mobs:
  PIG:
   - '10 10' # $10 with a weight of 10
   - '20 5' # $20 with a weight of 5 
   
# 15 total weight BUT set to 100 | $10 10% chance | $20 5% chance | $0 85% chance

Total weight under 100 will assume Total Weight = 100 This allows nothing to be dropped.

here