Difference between revisions of "Cleaner MLP Say"

From Second Life Wiki
Jump to navigation Jump to search
m
m
Line 1: Line 1:
* Back to [[MLPV2]]
* Back to [[MLPV2_Addons]]


What this does:
What this does:

Revision as of 16:00, 24 March 2011

What this does:

Instead of users having their vision obscured by text like this covering half their screen:

[14:04] Animated Living Sofa Combo Couple & Solo 2.1e whispers: Lie F 1
[14:04] Animated Living Sofa Combo Couple & Solo 2.1e whispers: Lie F 2
[14:04] Animated Living Sofa Combo Couple & Solo 2.1e whispers: Lie 04
[14:04] Animated Living Sofa Combo Couple & Solo 2.1e whispers: Lie 05
[14:04] Animated Living Sofa Combo Couple & Solo 2.1e whispers: Lie 06


They see just this when selecting poses from the menu:


[14:04] Lie F 1
[14:04] Lie F 2
[14:04] Lie 04
[14:04] Lie 05
[14:04] Lie 06

This both gives them a less obstructed view of their surroundings, and lets their eyes pick out quickly just the essential information they need to see.

To make this change in your MLP products:

1) Locate the script called "~menu";
2) Open it to edit it;
3) Locate, in the top half of the script, the function called "say". It looks like this:

<lsl> say(string str) {

   if (menuusers) llWhisper(0,str);
   else llOwnerSay(str);

} </lsl>

4. Replace it with this, and save.

<lsl> say(string str) {

   string name = llGetObjectName();
   llSetObjectName("");
   if (menuusers) llWhisper(0, "/me " + str);
   else llOwnerSay("/me " + str);
   llSetObjectName(name);

} </lsl>