Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

dialog menu not chatting

Cypher Ragu
[Mad Scientist]
Join date: 6 Jul 2008
Posts: 174
08-26-2008 13:13
Hey, I've been having some issues with a dialog menu script. It seems that the script isn't chatting which choice has been selected like it should.

When I change a few things within the script and then save it again, it works fine until I
re-rez it (at which point the problem repeats).

This only seems to happen when the script is placed in a child prim, when it's in the root prim it works fine. I've asked a few people in world and they're all puzzled.

The script is as follows:
-----------
list choices = ["-", "-", "-", "Close Hatch", "Countdown", "Jettison" ];
string msg = "\nAURORA-OS-1\nOperating System\n---------------------\nReady for input...";

key ToucherID;
integer channel_dialog;
integer listen_id;
default{
state_entry() {

llListen(6, "", (llGetOwner()), "";);

}

touch_start(integer total_number) {
ToucherID = llDetectedKey(0);
llDialog(ToucherID, msg,choices, 6);

}


listen(integer channel, string name, key id, string choice) {
if (choice == "Countdown";) {
llSay(0, "Beginning pre-flight checks...";);
llMessageLinked(LINK_ROOT, 0, "check", "";);
}
else if (choice == "Close Hatch";) {
llSay(0, "Closing hatch...";);
llMessageLinked(LINK_ALL_OTHERS, 0, "close", "";);
}
else if (choice == "Jettison";) {
llSay(0, "--Going into re-entry mode--";);
}
else {
llDialog(ToucherID, msg,choices, channel_dialog);
}
}

}
----------

Thanks in advance.
Meade Paravane
Hedgehog
Join date: 21 Nov 2006
Posts: 4,845
08-26-2008 13:35
edit: Viktoria's response below is more likely the cause of your headaches..
_____________________
Tired of shouting clubs and lucky chairs? Vote for llParcelSay!!!
- Go here: http://jira.secondlife.com/browse/SVC-1224
- If you see "if you were logged in.." on the left, click it and log in
- Click the "Vote for it" link on the left
Viktoria Dovgal
Join date: 29 Jul 2007
Posts: 3,593
08-26-2008 13:41
How big is this thing? There is a current problem with large linksets, the chat originates from the prim containing the script but listens happen from the root prim, and sometimes this behavior only turns up after re-rezzing. That is supposed to be fixed at some point, meanwhile you'll need to rearrange things so that scripted things generating dialogs are near enough to the root to avoid this.

http://jira.secondlife.com/browse/SVC-2133
http://jira.secondlife.com/browse/VWR-2923
Meade Paravane
Hedgehog
Join date: 21 Nov 2006
Posts: 4,845
08-26-2008 13:46

Ooooo.. Good catch! I hadn't heard about that one before.

Fix pending since May 8th.. :\
_____________________
Tired of shouting clubs and lucky chairs? Vote for llParcelSay!!!
- Go here: http://jira.secondlife.com/browse/SVC-1224
- If you see "if you were logged in.." on the left, click it and log in
- Click the "Vote for it" link on the left
Cypher Ragu
[Mad Scientist]
Join date: 6 Jul 2008
Posts: 174
08-26-2008 14:34
that must be it, the object is a 27-prim rocket that has to be at least 25 meters tall. The root prim is at the bottom, and the menu prim is at the very top... Thanks a lot for your help. i'll see if I can change the arrangement of it.