Changing state to disabled after selecting

Jan 13, 2016

Hi all,

I’m having an issue which I hope you can help with. It might sound a bit complicated so please bear with me!

In the attached story file there is a set of activities/buttons (Moodle 1, 2, 3, Party) which impact the meter at the bottom, done through variables and states i.e. clicking on an activity subtracts or adds to the ‘Happiness’ variable which in turn changes the state of the meter. This all works as it should.

What I want to be able to do is when the student selects the ‘boost’ button it then makes any activity button you select thereafter to have twice the effect it did before… BUT only for that one go. So the Boost button thereafter becomes disabled and all the buttons return to function as normal (bear in mind there are a few boost buttons so this function would need to be done a few times).

The way I had tried to implement this was to change the state of the button (Moodle 1 in the attached example) when the Boost is selected. But I can’t figure out how to change the state of the activities back to normal after ‘using the boost’ and then for that boost button to become disabled.

It would be great if the activity buttons could be disabled after selected too but that might be achieved through a different method.

Hope that makes sense and big thanks in advance for any help!

Thanks

Osman

4 Replies
Ashley Terwilliger-Pollard

Hi Osman,

I'm not sure I'm entirely clear on your set up - you'd like the "Boost" button when selected, to essentially double the variable impact when clicking on say the Moodle 1 button? I think you may need to look at doing it with a condition associated with the clicking of the Moodle 1 button's state and then if the Boost button is also in the state of X. 

You may also want to review the information here about the built in states and how they'll behave if you add them to your objects. The disabled state would stop a user from clicking on it, and then you'd need a way to reactivate it. 

Osman Javaid

Hi Ashley,

Thanks for getting back to me. Yep thats exactly what i've been trying. It is easy enough to change the way the Moodle button works once boost has been selected (as you say, with conditions etc) but then for the Boost button to become disabled and then the Moodle button to revert back to its normal state is where the problem occurs.

Any ideas on how this final step could be automated?

Thanks

Osman

Ashley Terwilliger-Pollard

Hi Osman,

I'd suspect it would need to be a whole other trigger to change the state based on those other conditions, and so then it would only occur once the initial change is made to the Moodle button. It's a bit more of a design focused question, so I'd defer to the community for their expertise on how to set this up. 

This discussion is closed. You can start a new discussion or contact Articulate Support.