drop_weighted_random_item

Drops one item chosen from a weighted list at the trigger location.

Categories: inventory

Required arguments

Key(s)DescriptionType
itemsA list of weighted item groups. Each entry has a weight and an items list.DYNAMIC

items entries

KeyDescriptionTypeRequired
itemsThe items in this group, in eco item lookup format.STRING_LISTyes
weightThe relative weight of this group when choosing what to drop.DOUBLEyes

Trigger parameters required

  • LOCATION

Example

effects:
  - id: drop_weighted_random_item
    args:
      items: 
        - items: <value>
          weight: <value>

Behaviour

SettingValue
Run orderNORMAL
Supports delaytrue
Reloads on plugin reloadtrue