Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Declare the main script variables.
- string TITLER_NAME = "";
- string TITLER_TEXT = "";
- vector TITLER_COLOR = <1.0, 1.0, 1.0>;
- default
- {
- state_entry()
- {
- // Get the object's name.
- TITLER_NAME = llList2String( llGetPrimitiveParams( [ PRIM_NAME ] ), 0 );
- // Apparently there's no switches in LSL?
- if (TITLER_NAME == "blue")
- {
- vector TITLER_COLOR = <0.5, 0, 1>;
- }
- if (TITLER_NAME == "pink")
- {
- vector TITLER_COLOR = <0.5, 0, 1>;
- }
- if (TITLER_NAME == "purple")
- {
- vector TITLER_COLOR = <0.694, 0.051, 0.788>;
- }
- if (TITLER_NAME == "white")
- {
- vector TITLER_COLOR = <1.0, 1.0, 1.0>;
- }
- // Get the object's description.
- TITLER_TEXT = llList2String( llGetPrimitiveParams( [ PRIM_DESC ] ), 0 );
- // Set the prim's text.
- llSetText(TITLER_TEXT, TITLER_COLOR, 1.0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement