playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Join our
Discord Channel
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
How would I create a item randomizer?
« previous
next »
Print
Pages: [
1
]
Go Down
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
Logged
Fat Pug Studio
Beta Group
Hero Member
Posts: 1294
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.
Logged
Available for Playmaker work
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
How would I create a item randomizer?