![]() Note that with the script, the avatar does NOT have to be a member of group with information on how many gifts have been distributed. object in which this script has been placed clicks on it, a message appears ![]() This also keeps track of the number of gifts given away. that there's a limit of one gift per person If the same avatar tries to obtain the gift a second time, he or she is gently told Once the avatar is given the gift, their key is saved Updated: VER 1.1 //Added ability to count number of gifts given away GENERAL GIFT GIVER - Restricts One Gift to Each Customer You’ll find directions in the code below, if you’d like to give the customer a notecard along with the gift boxīe sure to copy everything between the two lines. Place the gift box in the contents of gift object poster. In the contents of the gift box, place the items that you are giving the customer, along with your landmark, of course. You can make it look nice by using a wrapping paper texture and adding a ribbon and bow. The object, in this case, will be a poster with information on your gift – and for simplicity sake, I’ll call this the “gift poster object.” I added the gift giving portion of it, but it’s Void’s work that keeps a list of avatars who have already received gifts. I have adapted a script that was written by Void Singer ( ), who has made a number of generous contributions to the Second Life community. This script also does something else that other gift giver scripts don’t do: it will keep track of how many gifts have been given out. Then, if they try to obtain the gift a second time, a friendly note reminds them that there’s a limit of one gift per customer. When a customer receives the gift, the script remembers their key. If you would like require that the avatar be a member of your group, and also limit them to one gift, see this script. The avatar receiving the gift does not have to be a member of a group. If you are giving away really nice gifts, particularly “no copy” type gifts, you may want to limit it to one gift per customer. This script allows you to give a gift to a customer (or visitor), but the customer is only allowed to receive the gift once.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |