Jump to content

exist this function or no ?


azro Maktoum
 Share

You are about to reply to a thread that has been inactive for 4403 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

i just had this issue and to solve i used  llTextBox in a touch event

 

string Owner;default{    state_entry()    {        llOwnerSay("Touch To Open Chat");    }    touch_start(integer total_number)    {        Owner = llGetOwner();        llTextBox(Owner,"Type Mesg ",-321);    }}

 now when you touch it a diolog box opens and what ever you type is sent on chann -321 hope this helps

Link to comment
Share on other sites

Do you mean something like this?

default{    state_entry()    {        llSensorRepeat("","",AGENT,10.0,PI,2.0);    }    sensor (integer num)    {        llListen(0,"","","");    }        no_sensor()    {        state no_listen;    }        listen(integer channel, string name, key id, string msg)    {        if (llToLower(llStringTrim(msg,STRING_TRIM)) == "hello")        {            llSay(0,"Salud.");        }    }}state no_listen{    state_entry()    {        //This state just cancels the llListen in state default        state default;    }}

 It only knows one word, so it's a pretty dumb script, but at least it's smart enough to stop listening if there's no one within 10 m.

 

Link to comment
Share on other sites

The problem is that you say you want to hide what an avatar says without using a non-public channel and without using llTextBox().  Sorry but that's how SL works and there's nothing scripting can do about it.  Similarly you can't make a gesture trigger without a shortcut - how would it know when it was meant to work?

If you think not showing your text is important enough you can write a custom viewer that will intercept and translate the text, then only send the translation to SL.  Within SL your options remain public chat, non-public chat (eg; /5), llTextBox(), a triggered gesture (which could only do one phrase) or a 'phrasebook' menu system that would let you select a pre-defined phrase.

Link to comment
Share on other sites

  • 1 month later...

Or a combination of the above! I wrote a roleplaying HuD which uses a triggered gesture to redirect that chat to a private channel, which the HuD listened to and processed. It was a one time set up for each player to set their gestures to their personally assigned channel number. the HuD let them select which character they were playing, changed the HuD's name to that character's name and repeated the text so that what they said was said by their character name (this was before there were Display names) rather than their avatar name.... I could easily have added the option to translate with Google Translation... So all they had to to instead of typing say /5 (and risk interactions with other scripts using low chat channels, we were able to use much higher safer chat channels and no one had to remember the channel numbers, just easy to type gesture triggers like '' (two single quotes) before their character's dialog. I think that is about as easy as you can get to accomplish the goal of hiding the original chat, but still requires the speaker to type a trigger at the start... I think some TPVs had a box at the end of their chat bar you could set to a nonzero chat channel, if you could convince your customers to use that it might work (assuming it didn't reset the box each time, I don't remember how that worked)

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4403 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...