Get Random Item

MP3 Get Random Item

Event Type
  1. Landing Event
  2. Passing Event
Input Required
No
Programming Language
MIPS (Assembly)
Source
Custom-Made
This event gives the current player one of five random but equally likely items. It is simple to customize to give one of any number of items with any distribution of chance. For example:

50% to get a Mushroom, 50% to get a Poison Mushroom
10% to get a Skeleton Key, 20% to get a Warp Block, 30% to get a Dueling Glove, 35% to get a Reverse Mushroom and 5% to get a Barter Box
95% to get a Wacky Watch, 5% to get nothing

The code has plenty of comments explaining how it works and how to change it. Hope this helps you create an awesome board with a ton of items in it! Large chunks of code was taken from the custom events written by PartyPlanner64, so kudos to them.
Downloads
237
Views
564
Rating
0.00 star(s) 0 ratings
Creator
Gwonam
Version
1.0
First release
Last update

More from Gwonam:

Back
Top