You have to set the variables to text

I just found this site today, and I was excited to find this widget. However, I wasn't able to update the seconds variable using storyline triggers. In the instructions it says "You can also update the variable seconds1 for manual value assignment.", but it doesn't say how. Do I have to do this update using javascript. I tried just assigning the variable to different amounts, but it doesn't send the information to the widget and actually change it. I am trying to make it so a user can input the amount of time, and it will count down from there.



January 23, 2020, 11:26 am

Click for thumbs down.0Click for thumbs up.0#1

Jamie, the variable that holds seconds can be a number, it doesn't have to be text. One reason why assigning a new number of seconds doesn't seem to work can be because the timer is not running when you update the value. The TimerStart(); function would override your entry with the default setting you saved. You can try saving the user input, then when it's time, start the timer and update the variable value right after that.

Feel free to post a link to your .story file here, we'll fix it for you and explain what was wrong. You can use a service like Wetransfer or Dropbox to upload the file.

January 23, 2020, 12:55 pm

Click for thumbs down.0Click for thumbs up.0#2

Thanks! I have it working now after the updating the variable as suggested after the timer starts.

January 23, 2020, 2:52 pm

Click for thumbs down.0Click for thumbs up.0#3