GameMaker Touhou Engine   Home   Downloads   Documentation


A script that randomly generates an array of items.

Returns: An array of the generated items. (Object Reference Array)




This script has a variable number of arguments. First, list the items you want to make sure are present in the array (not mandatory).
Then, to let the script know you've listed all of them, pass -1 as the next argument, and then pass amount of additional items you want. The rest of the arguments are listed in pairs, M and N.
M will signify an item (reference to object) and N signifies it's "likelihood" of dropping. For example:


Means that out of five items, a power item will show up two thirds of the time, while a point item will show up one third of the time, on average.