Random Saying Module BRIGADOON-0004
Emit a random saying when the object is touched,
Loading...
Searching...
No Matches
sayings_module.lsl File Reference

Out a random selection from the Sayings when touched. More...

Go to the source code of this file.

Functions

 default ()
 

Variables

list public_sayings
 

Detailed Description

Out a random selection from the Sayings when touched.

Version
1.1
Author
River Drifter
Date
13-March-2025

Definition in file sayings_module.lsl.

Function Documentation

◆ default()

default ( )

Definition at line 46 of file sayings_module.lsl.

48{
49 state_entry()
50 {
51 llSay(PUBLIC_CHANNEL, "Themis has stirred from her slumber and listens to you.");
52 }
53
54 touch_start(integer total_number)
55 {
56 integer number_of_sayings = llGetListLength(public_sayings);
57 integer index = (integer)llFrand(number_of_sayings);
58 if (index > number_of_sayings) index = number_of_sayings;
59 llSay(PUBLIC_CHANNEL, llList2String(public_sayings, index));
60 }
61}
list public_sayings

References public_sayings.

Variable Documentation

◆ public_sayings

list public_sayings

Definition at line 9 of file sayings_module.lsl.

Referenced by default().