Meara's World

LSL Info Giver

This is a generic information giver. It gives the first LM, NC, and Object in inventory. There are options to require group (like a group gift) and options to give items in a folder (useful if you want to group a NC, gift, and LM together).

Code

How to Use the Script

By default this script will give the first Object, LM, and NC in the inventory to the toucher, as well as a greeting to the toucher.


  1. Load up to one of each (Object/LM/NC) - missing items will be skipped.
  2. Customize the greeting in MESSAGE_TO_TOUCHER.
    1. Change to FALSE if you do not want to send a message to the toucher

      integer SEND_MESSAGE_ON_TOUCH = TRUE;

    2. Change this message to customize the message that gets sent to the person who touches the object.

      string MESSAGE_TO_TOUCHER = "Thank you for visiting!";

  3. If you prefer to give a named folder (best for multiple items), set GIVE_ALL_ITEMS_AS_FOLDER = TRUE and update FOLDER_NAME.
    1. Change to TRUE if you want a folder with all of the item's contents to go to the toucher.

      integer GIVE_ALL_ITEMS_AS_FOLDER = FALSE;

    2. Customize the name of the folder to send.

      string FOLDER_NAME = "A Gift for You";

  4. Set group gift if needed.
    • Change to TRUE if this giver should only work for group members.

      integer GROUP_ONLY = FALSE;