Sunday, May 3, 2026

Script Colors

 In this script, Lady Kati Evans, the text color is controlled by the vector (the numbers inside the angle brackets < >) within the llSetText functions.

In Linden Scripting Language (LSL), colors are defined using RGB (Red, Green, Blue) values on a scale from 0.0 to 1.0.

Where to find it

There are three places in your script where the color is set:

  1. In the state_entry (The "Ready" message):

    llSetText("Setting Up, Ready in one minute.", <0,1,1>, 1.0);

    • The <0,1,1> here represents Cyan (0% Red, 100% Green, 100% Blue).

  2. In the dataserver event (The "ONLINE" message):

    llSetText(user_name + "\nis ONLINE...", <0.000, 0.455, 0.851>, 1.0);

    • The <0.000, 0.455, 0.851> is a specific shade of Azure/Blue.

  3. In the dataserver event (The "OFFLINE" message):

    llSetText(user_name + "\nis OFFLINE...", <0.000, 0.455, 0.851>, 1.0);

    • This currently uses the same Azure/Blue as the online message.


How to change it

If you want to change the color, you just need to swap those three numbers. Here are a few common color vectors you can use:

ColorVector Code
White<1.0, 1.0, 1.0>
Red<1.0, 0.0, 0.0>
Green<0.0, 1.0, 0.0>
Blue<0.0, 0.0, 1.0>
Yellow<1.0, 1.0, 0.0>
Pink<1.0, 0.5, 0.8>

Quick Tip: The last number in the function (the 1.0) controls the alpha (transparency). Keeping it at 1.0 ensures the text is fully solid and easy to read.

Are you looking to change the text to a specific color for the "Offline" status to make it stand out more?

ColorVector Code
White<1.0, 1.0, 1.0>
Red<1.0, 0.0, 0.0>
Green<0.0, 1.0, 0.0>
Blue<0.0, 0.0, 1.0>
Yellow<1.0, 1.0, 0.0>
Pink<1.0, 0.5, 0.8>