Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Looking for a Simple Script

Brianna Pfalz
Registered User
Join date: 1 Feb 2008
Posts: 6
10-05-2009 20:12
What I am looking for is a simple script that I can drop into a HUD. I use RLV and would like to be able to click the HUD to say "bpmenu" in local chat, so that I do not have to continually type it in to access the Open Collar menu.

Thanks!
Osprey Therian
I want capslocklock
Join date: 6 Jul 2004
Posts: 5,049
10-06-2009 00:33
Just make a gesture.
Pete Littlebird
Registered User
Join date: 30 Sep 2009
Posts: 44
10-06-2009 03:56
If you must have it scripted for a hud, the default new script in a object's contents takes you most of the way there; just change the word "Touched." to "bpmenu". You can delete the "state_entry" section.
Steven Broderick
Scripter / Builder
Join date: 14 Sep 2008
Posts: 20
Script
10-06-2009 06:52
Here is what the script should look like.

From: someone

default
{
touch_start(integer num)
{
llSay(0,"bpmenu";);
}
}
Kenda Raymaker
Registered User
Join date: 29 Sep 2008
Posts: 2
10-06-2009 09:05
a gesture would be a better way to go, linking it to one of F1 - F12.

the problem with using an HUD attachment as a repeater is that the script in the object (in this case, your collar) is dependent on the UUID detected from the speaker to know where to send the menu. this is why you don't get a menu when someone else tries to access it.

in short, since the HUD object is the one saying the command to call the menu, the menu is going to be sent to the HUD object's UUID, and not to yours. and since objects cant receive menus, it is pretty moot to try it like this.

there still is a way to do this if you are quite tenacious about it, but it would require sending your UUID along in the message, and re-scripting the scripts in the collar to interpret this new data sent. and the down side to that is every time there was an update, you would have to re-script the collar all over again.
Innula Zenovka
Registered User
Join date: 20 Jun 2007
Posts: 1,825
10-07-2009 09:16
From: Kenda Raymaker

there still is a way to do this if you are quite tenacious about it, but it would require sending your UUID along in the message, and re-scripting the scripts in the collar to interpret this new data sent. and the down side to that is every time there was an update, you would have to re-script the collar all over again.
The OP and I talked about this in-world yesterday. She wouldn't, in fact, need to send her uuid -- you can check that when the collar receives the message simply by saying
CODE
if(llGetOwnerKey(id)==llGetOwner()){ // then it's either a message from whoever's wearing me or from something she owns 
}
in the listen event, but, as you say, that would involve rewriting it each time there was an update. And finding where the Open Collar checks that would be fun -- the modular system they use is a bit difficult to figure out, I find.

We asked one of the developers, though, who said they're probably going to include a button in the next version of their AO hud that will bring up the wearer's collar menu.