Advertisement
Guest User

Untitled

a guest
Oct 19th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. // Declare the main script variables.
  2. string TITLER_NAME = "";
  3. string TITLER_TEXT = "";
  4. vector TITLER_COLOR = <1.0, 1.0, 1.0>;
  5.  
  6. default
  7. {
  8. state_entry()
  9. {
  10. // Get the object's name.
  11. TITLER_NAME = llList2String( llGetPrimitiveParams( [ PRIM_NAME ] ), 0 );
  12.  
  13. // Apparently there's no switches in LSL?
  14. if (TITLER_NAME == "blue")
  15. {
  16. vector TITLER_COLOR = <0.5, 0, 1>;
  17. }
  18.  
  19. if (TITLER_NAME == "pink")
  20. {
  21. vector TITLER_COLOR = <0.5, 0, 1>;
  22. }
  23.  
  24. if (TITLER_NAME == "purple")
  25. {
  26. vector TITLER_COLOR = <0.694, 0.051, 0.788>;
  27. }
  28.  
  29. if (TITLER_NAME == "white")
  30. {
  31. vector TITLER_COLOR = <1.0, 1.0, 1.0>;
  32. }
  33.  
  34. // Get the object's description.
  35. TITLER_TEXT = llList2String( llGetPrimitiveParams( [ PRIM_DESC ] ), 0 );
  36.  
  37. // Set the prim's text.
  38. llSetText(TITLER_TEXT, TITLER_COLOR, 1.0);
  39. }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement