basically, what I am doing is setting an object to listen
CODE
default
state_entry()
{
llListen(0, "", llGetOwner, "command");
}
listen(integer chan, string name, key id, string message)
{
if (id !=llGetOwner) // this is where I want to add some other qualifiers, such as
// the other authorized users. Not sure how to do it though :/
{
llSay(0, "I shall not listen to you!");
return;
}
else
{
llSay(0, "What is thy bidding?"); // this is just in here for example from the top of my
// head. but this is where it would do whatever it
// needs to do when the command is spoken by
// either the owner or authorized users.
}
}
This is my first question.
I want to allow the owner to set other users via a notecard
I am guessing that I would use a "llCSV2List(my_notecard)" to create a list of authorized
users, of course after setting the script to read the notecard.
Am I correct in assumin this?
Second question is:
should I just have the script pull each name out of the list
ie
CODE
HOST1 = llList2String(list, 0);
HOST2 = llList2String(list, 1);
// and so on?
I hope this makes sense... writing it out actually helped me to understand what I am saying a little better!
Thanks!
- Artemis