Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

How can I change the pie menu for the object

Jano Debevec
Registered User
Join date: 28 May 2007
Posts: 87
06-29-2009 00:44
I want to change in pie menu Sit Here to Test for the one object. It is possible. What must I do for that?
Osprey Therian
I want capslocklock
Join date: 6 Jul 2004
Posts: 5,049
06-29-2009 01:03
Well, be aware I'm a scripting dunce, but you can use llSetSitText and string the text like this I think:

string SitText="Test";

and in the actual working part of the script:

llSetSitText(SitText);
Ee Maculate
Owner of Fourmile Castle
Join date: 11 Jan 2007
Posts: 919
06-29-2009 01:49
You can do the same thing with llSetTouchText to change the "touch" option on the pie menu...
Jano Debevec
Registered User
Join date: 28 May 2007
Posts: 87
06-29-2009 04:14
From: Osprey Therian
You can use llSetSitText and string the text like this I think:

string SitText="Test";

and in the actual working part of the script:

llSetSitText(SitText);[/QUOT]

How can I get the llSetSitText or llSetTouchText
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
06-29-2009 04:38
From: Jano Debevec
How can I get the llSetSitText or llSetTouchText
If you mean how can the script find out what's already set, unfortunately it can't. These are properties of the prim when set, but they aren't retrievable by llGetPrimitiveParams().

This usually isn't a problem in practice, however, because any script that modifies them can keep track of what string it has used in setting them (either in a global variable, or in script state). If you set them to "" (the empty string), they revert to the default "Sit Here" and "Touch" strings.
Jano Debevec
Registered User
Join date: 28 May 2007
Posts: 87
06-29-2009 05:48
Are all that mean that I can't change the text in Pia menu because I don't have the rights for that.

But it must be possible because I saw the Pia menu where changed Sit here with Teleport.
Rhonda Huntress
Kitteh Herder
Join date: 21 Dec 2008
Posts: 1,823
06-29-2009 05:56
Yes it is done with a script contained in the object.

For information on scripting, LSL wiki is a good start.