Difference between revisions of "Cleaner MLP Say"

From Second Life Wiki
Jump to navigation Jump to search
(New page: 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<br />...)
 
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
* Back to [[MLPV2_Addons]]
Note that this is built-in behavior as of MLPV2.4m
What this does:
What this does:


Line 45: Line 48:
}
}
</lsl>
</lsl>
[[Category:MLPV2]]

Latest revision as of 08:42, 25 December 2011

Note that this is built-in behavior as of MLPV2.4m

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>