Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llOwnerSay Can you stop it putting the objects name on screen?

Piggie Paule
Registered User
Join date: 22 Jul 2008
Posts: 675
08-23-2009 10:34
When you use the llSay or llOwnerSay command, before the text you want to display it puts the name of the item (prim) at the start.

Is there any way to stop this happening?

Or some other command that will pass text to your screen from your script.

For example, say you have something called "Wonderfull Giant Glowing Chandelier" and you are adjusting the brightness of it.

You might end up on screen with messages such as:

Wonderfull Giant Glowing Chandelier: Brightness = 1
Wonderfull Giant Glowing Chandelier: Brightness = 2
Wonderfull Giant Glowing Chandelier: Brightness = 3
Wonderfull Giant Glowing Chandelier: Brightness = 4

As you touch the item and your script cycles thru the levels.

When all you really want on screen as you click your prim light is:

Brightness = 1
Brightness = 2
Brightness = 3
Brightness = 4

You are looking at it, clicking on it and you don't need to be told on screen the name of it again and again.

Anyway around this?

Thanks :)
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
08-23-2009 10:38
you would need to temporarily change the name to "" and then if you want to get rid of the colon you need to use /me before the message. ie:

CODE

default
{
touch_start(integer num)
{
string name = llGetObjectName();
llOwnerSay("/me Touched");
llSetObjectName(name);
}
}


this (untested) little script should just say the word Touched in the chat without a name or colon before it. you might want to put a delay before reverting the name back to the original
_____________________
Dark Heart Emporium

http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=133020

want more layers for tattoos, specifically for the head? vote here
http://jira.secondlife.com/browse/VWR-1449?

llDetectedCollision* Functions similar to touch
http://jira.secondlife.com/browse/SVC-3369
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
08-23-2009 11:05
Forgot a line:

CODE
default {
touch_start(integer num) {
string name = llGetObjectName();
llSetObjectName("");
llOwnerSay("/me Touched");
llSetObjectName(name);
}
}
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
08-23-2009 12:21
You really need to llSetObjectName() to the first word od what you want to say, no?

llSetObjectName("Brightness";);
llSay(0,"/me 1";);

etc...
_____________________
Argent Stonecutter - http://globalcausalityviolation.blogspot.com/

"And now I'm going to show you something really cool."

Skyhook Station - http://xrl.us/skyhook23
Coonspiracy Store - http://xrl.us/coonstore
Piggie Paule
Registered User
Join date: 22 Jul 2008
Posts: 675
08-23-2009 12:39
Thanks to you both for this help and sample code.

Very much appreciated.
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
08-23-2009 15:36
From: Argent Stonecutter
You really need to llSetObjectName() to the first word od what you want to say, no?

llSetObjectName("Brightness";);
llSay(0,"/me 1";);

etc...

you can, but not really, i think it will just leave a space at the beginning with my method, but if it's ownersay, is it that big of a deal?
_____________________
Dark Heart Emporium

http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=133020

want more layers for tattoos, specifically for the head? vote here
http://jira.secondlife.com/browse/VWR-1449?

llDetectedCollision* Functions similar to touch
http://jira.secondlife.com/browse/SVC-3369
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
08-23-2009 15:37
From: Talarus Luan
Forgot a line:

CODE
default {
touch_start(integer num) {
string name = llGetObjectName();
llSetObjectName("");
llOwnerSay("/me Touched");
llSetObjectName(name);
}
}

whoops, yep, thanks :-)
_____________________
Dark Heart Emporium

http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=133020

want more layers for tattoos, specifically for the head? vote here
http://jira.secondlife.com/browse/VWR-1449?

llDetectedCollision* Functions similar to touch
http://jira.secondlife.com/browse/SVC-3369