dropsetdata#

For randomly selecting an item. Load with Game->LoadDropset().

Variables#

int[]

Items

int[]

Chances

int

NothingChance

Functions#

int

Choose()

Variable descriptions#

int[] Items 🔗 Source

The item IDs stored in this dropset.


int[] Chances 🔗 Source

The chances for each item to appear. These are not percentages, but weights; changing one will affect the odds of all of them.


int NothingChance 🔗 Source

The weighted value for no item being chosen at all.


Function descriptions#

int Choose() 🔗 Source

Randomly selects an item from the dropset, and returns its ID.