Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: sneekyo on January 28, 2022, 12:34:20 PM

Title: How would I create a item randomizer?
Post by: sneekyo on January 28, 2022, 12:34:20 PM
My idea is to have a vending machine. The player can hit a UI button and randomly an item will fall out of the machine for the player to pick up.

I want to have a 10% chance of a secret weapon, and then 30% chance for 3 other items.

I'm new to playmaker and I'm wondering how this would be possible.

Any help is greatly appreciated.

-Seth
Title: Re: How would I create a item randomizer?
Post by: ... on January 28, 2022, 02:33:57 PM
Use Send Random Event, set weights (0.1, 0.3, 0.3, 0.3) and voila.