So figuring it was something I did, I copy and pasted the script from the wiki into a prim and get the same thing.
(from the wiki)
PHP
list colourchoices = ["-", "Red", "Green", "Yellow"];
string msg = "Please make a choice.";
key ToucherID;
integer channel_dialog;
integer listen_id;
default{
state_entry() {
channel_dialog = ( -1 * (integer)("0x"+llGetSubString((string)llGetKey(),-5,-1)) );
}
touch_start(integer total_number) {
ToucherID = llDetectedKey(0);
llDialog(ToucherID, msg,colourchoices, channel_dialog);
listen_id = llListen( channel_dialog, "", ToucherID, ""
;llSetTimerEvent(60); //HERE WE SET A TIME LIMIT
}
listen(integer channel, string name, key id, string choice) {
if (choice == "-"
{llDialog(ToucherID, msg,colourchoices, channel_dialog);
}
else if (choice == "Red"
{//do something
}
else if (choice == "Green"
{//do something
}
else {
//do something else.
}
llListenRemove(listen_id);
}
timer() { //TIME’S UP!
llListenRemove(listen_id);
llWhisper(0, "Sorry. You snooze; you lose."
;}
}
/PHP
what is wrong? does it need another llSetTimerEvent(0)?
Thanks for any help
Lyndz
