Introducing: The Item Randomizer Trigger! 4/10 🟨

Hello, Gimkitters! It’s me, Landyn, and I’ve got something for you. It’s my all-new Item Randomizer! I’ve seen a few guides on this, but the problem with those guides is that they’re not TRULY random. And my method is not only very random, but all it uses is 1 Button, 1 trigger and item granters! (And a good chunk of block code.) I call it: The Item Randomizer Trigger! (Super unique title, eh? :joy:) And it’s not only memory-friendly, but the randomness can actually be modified to make certain things more common and vice-versa! (See my Modifier Guide I posted earlier today) As always, El Goblino will help me out with this one, and let’s get started!

What You’ll Need
1 Button
1 Trigger
X Item Granters
OPTIONAL: 1 Notification
Step 1. Grab that button and have it say “Open Drawer.” Make it scope = global. Also make it transmit Random_Item and Deactivate on that very same channel.

Step 2. Grab that trigger and make it trigger when receiving on Random_Item. Make it NOT visible and NOT trigger on player collision. Make it player scope.

Step 3. Here’s where things get SUPER complicated. Go into the block code and do the “When Triggered…” block section. If you would just like to copy my code, then reference to the picture. If you want to know what you actually NEED to do, follow the instructions titled Code Instrux.


Screenshot 2024-09-19 2.19.55 PM

Code Instrux

Code Instrux: So, first off create a variable named Random_Item. Then, create a block. Set “Random_Item” to “Random Integer from 0 to 10.” Now, create an 11-if-long If Block, with each If checking to see if the variable “Random_Item” is a certain number. Make sure that each If checks a different number.
Now, under each If block, (in the “Do” section") make a “Broadcast Message On Channel ______” block. It does not matter what the channels are, as long as each channel ties to an item granter. (you’ll understand later, just trust me on this one.) BUT! Make sure that under the “If Random_Item = 0” block is broadcasts on “Nothing!” (Once again, just trust me. I know what I’m doing. I think. :grin:)

Step 4. Tie an item granter to each channel of the trigger. Say, if you wanted to grant a lockpick, have the trigger channel be “Get_Lockpick.” Note: for me, the lockpick was a black seed. and you’re basically done!

OPTIONAL: remember that “Nothing!” Channel I mentioned? well, grab that notification and have it send you the notification when receiving on “Nothing!” and have the text be “You found nothing! Hmmm…”

El Goblino Summary: Hola, amigo! This was a tough guide, dud! So let me break it down for you.
Basically, whenever you press the button, it’ll randomly give you either an item or cash. The randomizer is skewed to be more likely to give you moolah, but that can be changed; it’s completely up to you. Now, THAT is pretty easy for such a lot of code! Now, let’s hand it off to Landyn! Hasta luego!

Variations
The Encounter Randomizer

This variation is similar to the Item Randomizer, but it randomizes encounter that you can have with creatures/Entities. It also uses inequalities, not singular digits. Pretty simple!

Well, I hope you’ve enjoyed this short guide! I also hope you will utilize this guide and implement it into your own game! This is Landyn Speed, signing off!

Good guide!
But this had been made before…

(Also, hola, el goblino!)

4 Likes

Wait, what? I knew that other people had made something similar, but this one is almost identical to what mine was! Lemme speak to your manager, @Txme_Lxss! :slight_smile:

1 Like

Actually, hold up. That guide uses more memory! HAHAHA! My point still stands! I don’t have to delete this guide!
(That guide is still REALLY good, though. Allows more variety in the items!)

1 Like

remove all the tags from the guide.
this is just a randomizer that isn’t optimized.

3 Likes

Why? It’s something that can be implemented in almost any game, so it belongs in game concepts. I do agree, though, I need to take off the ideas tag. Literally ANY guide or help post could be considered an idea.

I removed them already.

1 Like

How did you edit my guide? That’s a little unnerving, knowing ppl could mess around with my stuff…

I’m a regular, that’s why.

1 Like

Oh…well, that’s good to know. Still, I would rather not you mess with my guide, it’s just a personal thing. It just makes my nervous…sorry!

Don’t worry, next time i will ask before i remove.

2 Likes

Thank you! I’m sorry if I’m acting like a Karen, like all “don’t mess with my stuff!” It’s just a personal preference

1 Like

I don’t really care anyway.

Also I use more memory since I have a chest system, not drawer.

Chest uses MULTIPLE rarities. Not just 1. So technically it could be the same amount of memory if I took only 1 rarity. But I also have heals too

I have another guide though hehe that’s the same as yours, so your not in the clear yet lol

(also wym by variety of items? cuz I think I have more, and also mine has inequalities)

3 Likes

Yours have a better variety in the items because of those rarity differences

Regulars can rename and recategorize any topic. Regulars can’t edit your post though, just those two things,

2 Likes

Phew! Thank you for letting me know.

1 Like

Can’t you just use inequalities to make this efficient? Also, I don’t really see how this is different from the fishing guide. Can you explain how?

2 Likes

I can’t say I know what you mean.

They are asking why don’t you use inequalities (<,>) to make the system use less blocks. They are also saying they don’t understand the difference between this and the Fishing Guide

1 Like

Well idk how inequalities would make it easier nor what “the fishing guide” is