Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Microphone/host/chat script for hud

Edwina Heron
Registered User
Join date: 17 Jun 2007
Posts: 2
05-01-2009 17:19
I'm working on a hud. I would like a button that operates like all the event/host huds I've seen, and chats pre scripted comments. I plan to use this for things like health reset, title changes etc.

Does anyone have any suggestions?
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
05-01-2009 19:03
comments are often done via notecards and notecard reader functions (various examples on wiki and the forums

repeaters for chat passed through them are done via llRegion say, with objects father out than chat range repeating what they hear
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
ElQ Homewood
Sleeps Professionally
Join date: 25 Apr 2007
Posts: 280
05-02-2009 00:26
yes, you are going to need to use a notecard for persistent data, any variables your user will need to supply. Check out llGetNotecardLine and dataserver in the wiki for reading variable data from a notecard. Also, if there's going to be interaction between the hud and others, such as the host huds I make, you'll want to check out llSensor, llSensorRepeat, and sensor in the wiki. If the hud is only going to affect the wearer of the hud, you won't need this.

To have the hud interact with other objects, you'll need to use llListen and listen, or set up communication between a server (either inworld or offworld) and your hud, which will relay to the other objects. Really just depends on what you intend to do with the hud and what the communications are for, what information is being passed. I guess you could use llEmail but I honestly haven't used that very much and so I'm not sure how reliable it is from a hud - somebody else here might know though. My huds generally use llInstantMessage to communicate with the wearer, sensors to choose communications with other avatars, but then that's really all an event host really needs.

Hope this helps!