Jump to content

llDialog to auto cancel after timer expires?


Syaoran Nyoki
 Share

You are about to reply to a thread that has been inactive for 4440 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Hey y'all,

I am making a quiz game using llDialog to deliver the questions. Easy enough. I am giving the user 60 seconds to answer. As of right now when the 60 seconds is expired the dialog is still active. I need to tell the dialog to either cancel or ignore or make it so any button pushed after the timer expired is not counted. Any of those options are acceptable. I've seen many code examples today but none that deal with this issue. Any ideas?

Link to comment
Share on other sites

You can do what you say by making the listener inactive after 60 seconds:
The dialog menu will still be on the client's screen, you can't close that, but that is not what your question is about?
Even though it stays on the client's screen all buttons pressed after the listener is stopped are ignored

You use llListenRemove() or a change af state to to turn off the listener

  • Like 1
Link to comment
Share on other sites

It can be done, but you need a hud that mimics a menu, it is just a hud that can change shape and looks like a menu, you just send a string to it like you do a dialog, it rearranges the child prims to be buttons, you then have live contact with it and can even change the button text while displayed and the text, also you can close it, every person playing the game would need one, plus it can be regionsay so cover the whole region.

  • Like 1
Link to comment
Share on other sites

Only 1 menu dialog can be open at a time from an object. so another solution would be to use a second dialogue in your timer event saying "Your time has expired" with just the option to "Close" with no listen event associated with it. Then when the time runs out, the question dialogue is replaced with the timed out dialogue.

 

  • Like 1
Link to comment
Share on other sites


Lucinda Bulloch wrote:

It can be done, but you need a hud that mimics a menu, it is just a hud that can change shape and looks like a menu, you just send a string to it like you do a dialog, it rearranges the child prims to be buttons, you then have live contact with it and can even change the button text while displayed and the text, also you can close it, every person playing the game would need one, plus it can be regionsay so cover the whole region.

dialogger is a free, open-source HUD that does this.   buttons and sliders can be created with link or chat messages.

It is the foundation for primcontrol.   You can get the combined primcontrol/dialogger/charttracker HUD by joining the group "Navigator Users" inworld, and collect a primcontrol beta from the group notices.

Documentation is on the wiki: http://wiki.secondlife.com/wiki/Dialogger

  • Like 1
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4440 days.

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
 Share

×
×
  • Create New...