Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

And For My Next Project I Need...

Kyle Kamachi
Registered User
Join date: 4 Feb 2007
Posts: 16
06-22-2007 15:30
I need someone to point me in the right direction, i need to know what ll script object to use if i want, when someone clicks my object, a popup box in the top right to come up with a little discription and 10 buttons, 0-9 where people can push them and after they pus 10 random numbers the box goes away and the script continues with those 10 random numbers they pressed to now be in a variable i can use elsewhere in the script...lol if that didnt confuse you =D
Brin Allen
Registered User
Join date: 25 May 2007
Posts: 10
Hehe...
06-22-2007 16:16
Here ya go - a nice messy script for you to rip bits out of. Hope it helps.

integer one;
integer two;
integer three;
integer four;
integer five;
integer six;
integer seven;
integer eight;
integer nine;
integer ten;
integer count = 1;
list numbers = ["0","1","2","3","4","5","6","7","8","9"];
key av;
dialog()
{
llDialog(av,"Click a number!",numbers,123123);
}
default
{
state_entry()
{
llListen(123123,"","","";);
}

touch_start(integer num_detected)
{
av = llDetectedKey(0);
dialog();
}
listen(integer channel, string name, key id, string message)
{
if(count==1) one = (integer)message;
else if(count==2) two = (integer)message;
else if(count==3) three = (integer)message;
else if(count==4) four = (integer)message;
else if(count==5) five = (integer)message;
else if(count==6) six = (integer)message;
else if(count==7) seven = (integer)message;
else if(count==8) eight = (integer)message;
else if(count==9) nine = (integer)message;
else if(count==10) ten = (integer)message;
++count;
if(count!=10) dialog();
else count=1
}
}
DoteDote Edison
Thinks Too Much
Join date: 6 Jun 2004
Posts: 790
06-22-2007 16:29
http://wiki.secondlife.com/wiki/Dialog_NumberPad