So basically I need a randomizer where the player buys the randomizer to activates and then it gives them a random thing. I have been trying to make one but I always fail. I NEED PICTURES!
Please search before you post. I found a guide that might help you.
it does not have pictures, but you can fill in the blanks with some trial and error.
Ok I’ll check. (20 characters)
I have been trying trial and error for a very long time and even tried with other guides just not working like in other games.
Use multiple item granters, each linked to a channel. Place an item granter that grants nothing, and put a block inside(the code). Use a number (like 100) to set chances and make it pick a random number when they buy something.
Let me show you:
The middle one is supposed to be empty, ignore it.
Each granter on either side has a chance to be granted.
(Its linked to wire pulse btw)
@THE_LEGEND
COuld you explain in more detail… I’m a bit not smart so I don’t really understand the coding part ![]()
Oh the coding part basically chooses a random integer from 1-100. If the number is less than or equal to 30, it grants money. However, if its greater than 31 but less than 40, it will grant corn, so on and so forth.
This way, I can divide each chance into progressively smaller sections, starting with more common items near the top and rarer ones near the bottom.
OOHHHH okay thanshk you
This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.

