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:
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).
In the
dataserverevent (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.
In the
dataserverevent (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:
| Color | Vector 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 at1.0ensures 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?
No comments:
Post a Comment