Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Making a menu

Over Sleeper
I Dream in LSL
Join date: 12 Jan 2006
Posts: 141
04-02-2006 17:52
Does anyone have a really simple menu script I could build off of? I see there's one on WIKI but I was wondering if there's something much simpler. LOL
Over Sleeper
I Dream in LSL
Join date: 12 Jan 2006
Posts: 141
04-03-2006 12:26
:)
Adman Drake
Registered User
Join date: 9 Feb 2006
Posts: 96
04-03-2006 13:21
From: Over Sleeper
Does anyone have a really simple menu script I could build off of? I see there's one on WIKI but I was wondering if there's something much simpler. LOL


Menu script? Like what, exactly...?

I think there's one on the wiki... :)
Over Sleeper
I Dream in LSL
Join date: 12 Jan 2006
Posts: 141
04-03-2006 16:15
Is that the only one there is floating around? The one on th WIKI? If so, I guessI can use it,but I was lloking for somethind less complicated. LOL
Compulsion Overdrive
lazy ass
Join date: 10 Jul 2005
Posts: 83
04-04-2006 04:34
a simple menu

CODE


list buttons = ["num 1","num 2","num 3"]; //add more as needed


default
{

state_entry()
{
llListen(100, "", NULL_KEY, "" );
}
touch_start(integer total_number)
{
//if (llGetOwner() == llDetectedKey(0)) //un-comment for owner only menu
llDialog(llDetectedKey(0),"menu",buttons,100);
}
listen( integer channel, string name, key id, string message )
{
//change the strings to whatever the buttons are labeled as
if (message == "num 1"){
//do stuff
}else if (message == "num 2"){
//do stuff
}else if (message == "num 3"){
//do stuff
}
}
}