steph Arnott Posted January 23, 2016 Share Posted January 23, 2016 May seem a silly question, but does the menu timer still count down after selecting the ignore? Link to comment Share on other sites More sharing options...
Rolig Loon Posted January 23, 2016 Share Posted January 23, 2016 Whenever you write llSetTimerEvent() to start a timer in a script, the first thing you should think about is how to stop it. If you don't stop it on purpose, a timer will keep ticking until the script is reset. It will persist across state changes, even. So, if you open a dialog box and start a timer, write a llSetTimerEvent(20.0) statement right after it and then write a timer event with llSetTimerEvent(0.0) as the first command so that the timer stops in 20 seconds if someone has ignored the dialog or clicked Ignore. Also, put llSetTimerEvent(0.0) at the top of your listen event so that the timer stops if someone does click a button. You might want to put it just before the llDialog statement too, just in case the timer is already running. And finally, if you are going to change states, put it in a state_exit event. Link to comment Share on other sites More sharing options...
steph Arnott Posted January 23, 2016 Author Share Posted January 23, 2016 So the timer is paused until the next touch event? Link to comment Share on other sites More sharing options...
Rolig Loon Posted January 23, 2016 Share Posted January 23, 2016 Not unless you paused it. Link to comment Share on other sites More sharing options...
steph Arnott Posted January 23, 2016 Author Share Posted January 23, 2016 OK, i will re phrase the question. The timer is set say at 30 sec and llSetTimer(0.0) is at the end of the script. Does the timer still count to zero if the ignore is selected? Link to comment Share on other sites More sharing options...
Rolig Loon Posted January 23, 2016 Share Posted January 23, 2016 Yes. Link to comment Share on other sites More sharing options...
steph Arnott Posted January 23, 2016 Author Share Posted January 23, 2016 thankyou. Link to comment Share on other sites More sharing options...
Nova Convair Posted January 23, 2016 Share Posted January 23, 2016 Pressing the "ignore" button has the same effect as doing nothing - for the script - and for the avatar it just closes the dialog window but sends no info about that. There is no way for the script to see if the dialog window is open or not. So using a timer is recommended. Link to comment Share on other sites More sharing options...
steph Arnott Posted January 23, 2016 Author Share Posted January 23, 2016 Jest clears the user interface, was just not 100% sure. Link to comment Share on other sites More sharing options...
Phil Deakins Posted January 23, 2016 Share Posted January 23, 2016 I know you have your answer already but surely it's easy enough to see it for yourself, by setting the timer running when the dialog opens, and then saying something on the Timer() event. If you click the Ignore button before the timer has run down, you should still see what it says at the Timer() event, after the dialog has gone from the screen. Link to comment Share on other sites More sharing options...
steph Arnott Posted January 23, 2016 Author Share Posted January 23, 2016 i tried that, it gave no indication, bt i may have not coded the output correctly, was just needing a confirmation by others.Sometimes i can get the wrong impression, so was better to confirm. If you get what i mean. Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now