Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

repeating dialog menue help please

Bizcut Vanbrugh
Registered User
Join date: 23 Jul 2006
Posts: 99
07-22-2007 17:51
hello to all you masterful scripters that are reading my post. i am needing hlep on how to make a dialog keep poping up after a choice is made. What i am doing is i have a random texture pop up on the face of the prim when touched and the choices are to rotate the texture on the prim. i have the randomness and the rotation figured out i just need to figure you how to make the dialog come back after it rotates the texture. i want it to come back until the done button is pushed. i am at work at the moment or i woul post the script i have so far but i am sure i can pick up some good advice from you all since i have explained it. an EXAMPLE script would be great so that i could learn from it. as well as other begining scripters. thanks again for you help in advance.
RJ Source
Green Sky Labs
Join date: 10 Jan 2007
Posts: 272
07-22-2007 18:13
In your listen event, where you check for the user's response to the dialog, just put another call to llDialog at the end after you've checked for all their responses, unless they press DONE.
Bizcut Vanbrugh
Registered User
Join date: 23 Jul 2006
Posts: 99
07-23-2007 05:54
sounds like a plan.
Tiarnalalon Sismondi
Registered User
Join date: 1 Jun 2006
Posts: 402
07-23-2007 07:31
To optimize, you might have it check:

if (msg == "Done";)
{
//turn off listen and do anything else you want to do when they're done.
}
else
{
if (msg == Response1)
//do stuff
else if (msg == Response2)
//do more stuff
llDialog(menustuff);
}

That way if they hit done, it just won't do anything but stop, and if they choose something else, then it will check all of the variables.
Bizcut Vanbrugh
Registered User
Join date: 23 Jul 2006
Posts: 99
07-23-2007 17:43
thanks .... i contacted a friend of a friend in world and they helped me to get the dialog/menu worked out. i do appericate the help.

BTW it was a it more diffacult then just droping a llDialog function after the if message = "whatever" but its worked out and at least functioning.