Help with my number game 2

I am trying to make a number game and it is going to be where you click a button then it will remember that and if that number is the same it gives you something.

Is this a duplicate of another help topic you made?
'Cause I remember seeing this earlier yesterday
Anyway, if you still need help on it, just bump it up after a day has passed

I still need help the solution makes no sense at all to me. do you think you can put pictures?

You mean it will save the number out of a randomly generated one?

no you choose a number on a button and it will rember that and if it is the same as the number the rng comes up with then they get somthing

So like there is button #1, button #2, button #3, etc., and an RNG button?

1 Like

yes that is how it is

then why did you mark it solution lol?

anyway i think u use a checker to check some conditions

altho im not entirely sure if thats what you’re asking for

I am trying it to remember the number it presses and remembers it and if it the same number the rng guessed then it gives them somthing

i think you send channel

guessed-number-{number}

for each button and then set a trigger to recieve for each guess. then set variable RNG-Guess to random 1-3 ( in the blocks ) and then if RNG-guess = the guessed number by player send on channel rng-guess-correct and do an inventory granter for rng-guess-correct

Ok Ill will check later

1 Like

sry i have to do class so i can’t send pics rn

Lol same here :sweat_smile: I am in science

1 Like

Make the buttons set a property to 1, 2, or 3, then make a rng generate a number from 1-3, then get the “If else” block in the same trigger as the rng and make it check if the random number = the property of the chosen number, if yes then it transmits on a channel that gives the player an item, if else then nothing.

Edit - @huyckkid14 yours never mentions a property
Edit 2 - I made images,




These three images are the settings & block code for the button and first trigger, You have to copy and paste this 2 times and change the channels and block code with “1” in it to “2” and in the next set “3”.



These images are for the rng and the settings of the trigger its in, the else part is left empty to do nothing if the number doesn’t match, you can change this if you want. In the block code the cut off property is the “Number” property, it just couldn’t fit on screen.

Edit 3 - @huyckkid14 this is lot more memory efficient…

1 Like

thats literally what i just said

does it need a property to function correctly? because I’m pretty sure itll work if it doesn’t have one

@PMorgan adding pictures

Thanks guys just add some picture









ignore the activity feed in three

edit: actually @JustAToaster posted the pics too. just use whatever u feel like is more helpful :slight_smile:

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.