Wednesday, December 5, 2007

Menu Script

Here's my script for a menu where you can choose to receive a notecard or goto a webpage. Make sure when you put it in an object you place the notecard you want to dispense inside the object also. Thanks for the help ben

// when touched, present two menu choices to give notecard and load URL

integer CHANNEL = 42; // dialog channel
list MENU_MAIN = ["Website", "Notecard"]; // the main menu
key id;

default {
state_entry() {
llListen(CHANNEL, "", NULL_KEY, ""); // listen for dialog answers (from multiple users)

touch_start(integer total_number)
id = llDetectedKey(0);
llDialog(id, "What do you want to do?", MENU_MAIN, CHANNEL); // present dialog on click

listen(integer channel, string name, key id, string message)

if (message == "Website")

llLoadURL(id, "", ""); //load webpage
else if (message == "Notecard")

llGiveInventory(id, "Info"); //give notecard

Tuesday, December 4, 2007


i made a few more models. A fat model and a skinny model.