Can click reward button multiple times

Announcements, support questions, and discussion for Quest Machine.
Post Reply
vectorfrog
Posts: 86
Joined: Mon May 02, 2022 12:16 am

Can click reward button multiple times

Post by vectorfrog »

Hi, I have a quest that offers a choice between two rewards. The player can click on the button to choose their reward. The problem I am having is the button can be clicked over, and over, giving the reward each time. The player can also click the other reward and get that one also, in addition to the already chosen reward. How can I make it so that the player can only click the button once, and only choose one reward?

Thanks!

Here is a screen of the setup:
Screen Shot 2022-05-10 at 7.16.40 AM.png
Screen Shot 2022-05-10 at 7.16.40 AM.png (44.08 KiB) Viewed 1037 times
User avatar
Tony Li
Posts: 22102
Joined: Thu Jul 18, 2013 1:27 pm

Re: Can click reward button multiple times

Post by Tony Li »

Hi,

Assign your reward buttons to a group:

buttonGroups.png
buttonGroups.png (46.12 KiB) Viewed 1032 times

This does two things:

1. Disables the bottom buttons (Back, Close) until you click one of the buttons in the group.

2. When you click a button in the group, it disables all of the buttons in the group and enables the bottom buttons.
vectorfrog
Posts: 86
Joined: Mon May 02, 2022 12:16 am

Re: Can click reward button multiple times

Post by vectorfrog »

That works for what I'm doing.

Thanks!
User avatar
Tony Li
Posts: 22102
Joined: Thu Jul 18, 2013 1:27 pm

Re: Can click reward button multiple times

Post by Tony Li »

Glad to help!
Post Reply