Random number variable working randomly

Nov 06, 2020

Hi,

I'm trying to make a speech exercise where two random number variables build a funny sentence, but it's working very randomly now. Pushing the numbered buttons should give a random pic but often nothing happens at all. The buttons need to have a disabled state, otherwise the pics would pile up if you accidentally push the buttons before choosing correct/false -button and closing the layers.  Help, please!

2 Replies
OWEN HOLT

I think I see what is happening. Your show layer triggers are based on the variable changing. But, what happens if the random number is drawn consecutively? If the value doesn't actually change, then no layer will be shown. 

Add 2 triggers on to your "Correct" and "Incorrect buttons" and move them to the top of the trigger order for each button:


Set Subjecti to value 0 When the user clicks Button X
Set Verbi to value 0 When the user clicks Button X

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