Jump to content

Dialog not displaying owner name


Gunnar Korobase
 Share

You are about to reply to a thread that has been inactive for 3876 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

I am using a script that is asking a question through a dialog, gives 3 choices and when the right choice is selected opens (alpha and phantom) the door. When the script starts, the first line in the dialog box is the owner of the item (me) and the item name. Can I eliminate the owner name to be displayed?

I am not a scripter, I am a changer and putter together so I don't know if this is possible.. 

Here is the script: 

integer CHANNEL_DIALOG_BOX = 99999;
list lChoice = ["a", "b", "c"];
key sound = "sound1";

float vol = 1;
default{
state_entry()
{

llListen(CHANNEL_DIALOG_BOX, "", NULL_KEY, "");
}

touch_start(integer total_number)
{
key id = llDetectedKey(0);

llDialog(id, "
Who was the main leader of the group that founded the American Psychological Association?

a) G. Stanley Hall
b) John Dewey
c) Carl Rogers


Note: Feedback is displayed at the bottom left of the screen as chat message.
There is no time limit and you have unlimited tries..
", lChoice, CHANNEL_DIALOG_BOX);
}
listen(integer channel, string name, key id, string message)
{
if (llListFindList(lChoice, [message]) == 0)
{

llSay(0, ": Congratulations, your answer is correct, you may proceed through the labyrinth!");
llPlaySound(sound, vol);
llSetStatus(STATUS_PHANTOM, TRUE);
llSetAlpha(0.1,ALL_SIDES);
llSleep(10.0);
key sound = "slam";
llPlaySound(sound, vol);
llSetStatus(STATUS_PHANTOM, FALSE);
llSetAlpha(10.0,ALL_SIDES);

}
if (llListFindList(lChoice, [message]) == 1)
{
// do something here
key sound = "locked";
llSay(0, "Sorry, wrong answer.. Try again!");
llPlaySound(sound, vol);
}
if (llListFindList(lChoice, [message]) == 2)
{
// do something here
key sound = "locked";
llSay(0, "Sorry, wrong answer.. Try again!");
llPlaySound(sound, vol);
}
if (llListFindList(lChoice, [message]) == 3)
{
// do something here
}

}}

Link to comment
Share on other sites

If you deed the object to a group, the dialog would display the group name, which could be anything.

You may also get rid of the dialog window altogether and send your questions in chat  or IM with answers selections like: Say 'a' for choice a), 'b' for shoice b) and 'c' for choice c

Other than that not much could be done.

  • Like 1
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 3876 days.

Please take a moment to consider if this thread is worth bumping.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...