10-03-2008 06:12
Trick or Treat Bowl
by Bloodsong Termagant
===============
For Gift options, visit my On Rez Shop:
http://shop.onrez.com/Bloodsong_Termagant
=============================
http://slurl.com/secondlife/Secret%20Smile/135/250/332


A Mod/Copy goodie giver for your shop or home. It gives a random gift from its inventory.

(oh, or stop by in world there to get a goodie from my bowl! ;) )

Features:--------------------------------------

* Click or Chat (or both) activated
* Mooch Suppression Mode -- prevents someone from getting unlimited Goodies
* Spoof Proof -- people cannot use scripted objects to get more Goodies
* Floating Text optional
* Set your own Phrase for Chat activation
* Keeps count of Goodies Given
* Dynamic Supply List updates as items are added (without losing Goodies Given count)
* Load with items you do not have copy permissions for -- they will be given out and Supply List will be updated -- great for getting rid of Yard Sale fodder!


Instructions:-----------------------------------

1: you dont need to use THIS candy bowl. just stick the script in any object you want. or you can modify this object.

2: stick the script in, then put in the objects you want to give out as treats.
note: if you want some objects to be more rare than others, put in multiple copies of the less rare ones.
also: if you place items in that you do not have copy permissions for, they will be given out, and the object count will be updated. (it will also be updated whenever you add anything.) BUT, the script will not be reset. therefore, the Goodies Given count and customer list will be saved.
(see below.)

3: click the object to access the setup menu. read the top part, it tells you the current settings.


Menu Controls:---------------------------------

MoochMode: (default TRUE)
toggle the "No Moochers" control from TRUE to FALSE and vice versa. when TRUE, each person will only be able to get one goodie until they fall off the customer list.
if FALSE, goodies will be given out every time.


MaxMoochers: (default 24)
select how long you want the list of past customers to be. the longer the list, the more time (actually the more people) a person has to wait to be able to get a goodie again.


TriggerType: (default Click)
select how to dispense Goodies:
Click -- on click
Chat -- on 'hearing' the trigger phrase in chat
Both -- either/or

FloatText: (default Off)
turn floating text on and off. this text will also appear in the object description, for people who have floating tips turned on.

SetPhrase: (default "Trick or Treat!")
enter your own trigger phrase on channel 1. the trigger is NOT case sensitive, but spaces and punctuation count. (leading spaces are truncated.)


Test:
this gives you a Goodie as if you had clicked on the object, but aren't the owner. note that Mooch Suppression applies to you, too.


Reset:
reset the script -- erases the Goodies Given count, the Customers List, and resets all values to defaults.


Help:
gives this notecard. i hope it is helping!


Enjoy!