Letter of Luck
An interactive game called "Letter of Luck", designed for virtual environments like Second Life. The goal is to reward avatars whose names start with a specific letter or number, chosen randomly or sequentially.
Main Features:
Random or sequential selection of a letter (A-Z), symbol (?) or number (0~9), with an option to allow or disallow numbers.
Countdown timer with a visual display of the remaining time.
Dynamic texture swapping on the object to display the current letter or number.
Prize delivery system:
Delivers inventory objects randomly, sequentially, or as a fixed prize.
Customizable announcements via:
Shout, Say, Whisper, or Silent (off).
Option to restrict participation to members of a specific group.
"More Luck" system, favoring a specific letter by increasing its chances of being drawn.
Optional notifications to the owner when someone wins.
Settings via Link Message:
Activate or deactivate the game (on / off).
Full script reset (reset).
Set countdown time (num = 1).
Enable/disable "More Luck" for a specific letter (num = 2).
Require group membership (num = 3).
Set chat mode (num = 4 — shout, say, whisper, off).
Set prize delivery mode (num = 5 — random or in order).
Allow or disallow numbers (num = 6 — on/off).
Force a manual win, manually change the letter, or set it to "?" (num = 7).
How It Works:
The game selects a random letter.
Avatars touch the object.
If the first letter of the avatar's name matches the current letter (or if it's "?"), they win the prize.
If the current character is 0~9, avatars whose names start with any numeric digit can win.
If no one wins within the set time, the game switches to a new letter and a new prize.
Visual Interface:
The script uses texture offsets to display the current letter and the remaining time.
Specific textures must be placed in the object's contents for it to function correctly.
Notes:
You must add object-type prizes (INVENTORY_OBJECT) to the object's contents.
You also need to add the appropriate textures for each letter and the time panel.
If there are no prizes or missing textures, the script will notify the owner and restart.
