Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Query on dataserver and notecard lists

Torin Golding
Misanthropic Humanist
Join date: 13 Sep 2005
Posts: 41
02-12-2006 23:03
I've not been able to figure this out with the wiki and by looking at the examples of scripts in my inventory.

Is there a quick, easy script that when a prim is clicked, it will read names on a notecard (the members of my group) and give an inventory item if the name of the person clicking the prim is on the list?

I basically want to distribute something to my group members in a centralized location, and I can't figure out the dataserver commands.

Any help greatly appreciated!

-T
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
02-13-2006 00:28
personally notecards are a pain in the ass for things like this, if your going to have access to the script i would suggest a lsl list

CODE


list users = ["user1","user2","ect"];

default
{
touch_start(integer touch)
{
key user = llDetectedKey(0);
if (llListFindList(users,llKey2Name(user)) != -1) llGiveInventory(user,"inventory");
else llSay(0,"sorry you are not on the list");
}
}



also you can just make the users activate their group tag and use llSameGroup, then you they or someone doesnt have to add a name every time someone gets added to the group
altho the user has to have the group active inorder to use it