#how would i make this so the match works for the randomized number output?

1 messages · Page 1 of 1 (latest)

somber thunder
#

What do you need exactly?

#

Just have _input look for a mouse press while your mouse is in bounds should be sufficient. You can use get_rect to find the area. This might be easier to do with a button depending on use case

dusk vapor
dusk vapor
white meadow
carmine lichenBOT
#
How to ask for help

Following these tips will increase your chance of getting good answers:

Include Details

Helpers need to know as much as possible about your problem. Try answering the following questions:

  • What are you trying to do? (show your node setup / code)
  • What is the expected result?
  • What is happening instead? (include any error messages)
  • What have you tried so far?
Respond to Helpers

Helpers often ask you questions to better understand your problem. Not answering them or saying "it's not relevant" is not helpful. Even if it is not directly relevant, there is a high chance the answer will give more context for the people that are helping you.

Don't be demanding

Please don't expect people to immediately help you. We all do this in our freetime. It may take some time until someone who can help you will answer.

somber thunder
#

randi_range() should help you with that

dusk vapor
#

Nancok

#

Chillax

dusk vapor
#

how would i make this so the match works for the randomized number output?

dusk vapor
somber thunder
# dusk vapor So ‘match randi_range’?

Nothing is stopping you from putting the randi_range directly in the match but I'd recommend creating the variable first like var selection:int = randi_range(1,5) or whatever. And to what Nancok said, we're both trying to help you and you made it very hard on both of us. We're working toward a common goal, but that's hard to do when you don't give us what we need to help you.

dusk vapor
somber thunder
#

You're welcome

white meadow
# dusk vapor Chillax

I am chill, but after seeing that you didn't get what i mean for 3 different messages. I tought it would be more efficient to use the bot's more extensive message.
It was either that or just ignoring the topic.

dusk vapor
#

Anyways I don’t want to get into any argument I understand that I made a mistake

dusk vapor
#

I was at camp for a week and am just in here again so I don’t have to look for this again