Unfortunately, its not giving the notecards, I can't seem to figure out why...anyone have any tips on how to fix this?
this is the script below that I have done so far:
integer menu_handler;
integer menu_channel;
menu(key user,string title,list buttons)
{
menu_channel = (integer)(llFrand(99999.0) * -1);
menu_handler = llListen(menu_channel,"","",""
;llDialog(user,title,buttons,menu_channel);
llSetTimerEvent(5.0);
}
default
{
touch_start(integer t)
{
menu(llDetectedKey(0),"hello world",["test1","test2"]);//Names you want to show in the menu, also change the "hellow world" to what you would like it to say.
}
timer()
{
llSetTimerEvent(0.0);
llListenRemove(menu_handler);
}
listen(integer channel,string name,key id,string message)
{
if (channel == menu_channel)
{
if(message == "test1"
//Should match exactly to the names listed above for the menu{
llGiveInventory(llDetectedKey(0), "notecard name 1"
; //name of notecard to give}
else if(message == "test2"

{
llGiveInventory(llDetectedKey(0), "notecard name 2"
;}
}
}
}
