playMaker

Author Topic: How would I create a item randomizer?  (Read 478 times)

sneekyo

  • Playmaker Newbie
  • *
  • Posts: 4
How would I create a item randomizer?
« 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

Fat Pug Studio

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
    • Fat Pug Studio
Re: How would I create a item randomizer?
« Reply #1 on: January 28, 2022, 02:33:57 PM »
Use Send Random Event, set weights (0.1, 0.3, 0.3, 0.3) and voila.
Available for Playmaker work