Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

how to get chat text to appear in white instead of green?

Chaz Longstaff
Registered User
Join date: 11 Oct 2006
Posts: 685
04-15-2009 23:15
as per what this product says...

https://www.xstreetsl.com/modules.php?name=Marketplace&file=item&ItemID=1345942

didn't know it was possible...

but of course once i read that it was possible, i started seeing it everywhere... one of those things....

trying to guess what it would be that has the 24 character limit....

(is it gesture generated?)
_____________________
Thread attempting to compile a list of which animations are freebies, and which are not:

http://forums.secondlife.com/showthread.php?t=265609
Cerise Sorbet
Registered User
Join date: 8 Jun 2008
Posts: 254
04-15-2009 23:40
llDialog?
Osprey Therian
I want capslocklock
Join date: 6 Jul 2004
Posts: 5,049
04-15-2009 23:44
" llDialog: button labels must be 24 or fewer characters long"
Chaz Longstaff
Registered User
Join date: 11 Oct 2006
Posts: 685
04-15-2009 23:48
ah yeah kk fair enough 24 chars so they getting llDialog to spit out to open chat you think?
_____________________
Thread attempting to compile a list of which animations are freebies, and which are not:

http://forums.secondlife.com/showthread.php?t=265609
Cerise Sorbet
Registered User
Join date: 8 Jun 2008
Posts: 254
04-15-2009 23:56
CODE

default
{
touch_start(integer total_number)
{
llDialog(llGetOwner(), "Tell me a story!", [
"in a shoe.", "happily ever after.", "on the lam.",
"ate them all. ", "turned them into toads.", "And they lived ",
"pigs ", "and the big bad wolf ", "and Goldilocks ",
"Once upon a time, ", "there were three, ", "bears "
], 0);
}
}
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
04-16-2009 05:54
or debug channel (which is wrapping to public in some cases)
_____________________
|
| . "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...
| -
Boss Spectre
Registered User
Join date: 5 Sep 2005
Posts: 229
04-16-2009 15:25
llDialog() on channel 0 shows up in chat centered on the location of the script... and chat dialogs can be sent to the object owner across sims, so you could also use this method to speak (in white) in chat from a completely different sim.

Freaks people out. ;)
~Boss
Chaz Longstaff
Registered User
Join date: 11 Oct 2006
Posts: 685
04-16-2009 17:52
From: Boss Spectre
so you could also use this method to speak (in white) in chat from a completely different sim.
~Boss


lost me.. how would that work?
_____________________
Thread attempting to compile a list of which animations are freebies, and which are not:

http://forums.secondlife.com/showthread.php?t=265609
Chaz Longstaff
Registered User
Join date: 11 Oct 2006
Posts: 685
04-16-2009 17:58
From: Boss Spectre
chat dialogs can be sent to the object owner across sims... ~Boss


new limits: ? "My testing shows the a Dialog box now works anywhere in the same Region as the object OR any region it hands you off to (e.g. the region you teleport to). It will not work for any subsequent hand offs. I have tested this with teleport only, I haven't tested it walking between regions. "

http://wiki.secondlife.com/wiki/LlDialog
_____________________
Thread attempting to compile a list of which animations are freebies, and which are not:

http://forums.secondlife.com/showthread.php?t=265609
Gearsawe Stonecutter
Over there
Join date: 14 Sep 2005
Posts: 614
04-16-2009 18:01
llDialog is like llRegionSay but llRegionSay does not work on chat channel 0. but llDialog does.
Day Oh
Registered User
Join date: 3 Feb 2007
Posts: 1,257
04-16-2009 19:10
The llDialog reply works, though LSL placed some harsh limits on the length of the button strings...

For the purpose of sending a generic greeting, a gesture works fine and can be bound to a key.

For a third possibility, you could give this a try:
llOwnerSay("secondlife:///app/chat/0/Hello" + llUnescapeURL("%c2%ao";) + "world";);
_____________________
SuezanneC Baskerville
Forums Rock!
Join date: 22 Dec 2003
Posts: 14,229
04-16-2009 19:29
From: Day Oh
For a third possibility, you could give this a try:
llOwnerSay("secondlife:///app/chat/0/Hello" + llUnescapeURL("%c2%ao";) + "world";);


That third possibility is making yellow text on my screen that says
"Object: secondlife:///app/chat/0/Hello*world".
_____________________
-

So long to these forums, the vBulletin forums that used to be at forums.secondlife.com. I will miss them.

I can be found on the web by searching for "SuezanneC Baskerville", or go to

http://www.google.com/profiles/suezanne

-

http://lindenlab.tribe.net/ created on 11/19/03.

Members: Ben, Catherine, Colin, Cory, Dan, Doug, Jim, Philip, Phoenix, Richard,
Robin, and Ryan

-
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
04-16-2009 19:32
From: SuezanneC Baskerville
That third possibility is making yellow text on my screen that says
"Object: secondlife:///app/chat/0/Hello*world".

now click it =)
_____________________
|
| . "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...
| -
Gearsawe Stonecutter
Over there
Join date: 14 Sep 2005
Posts: 614
04-16-2009 19:42
From: Void Singer
now click it =)


nifty
Gearsawe Stonecutter
Over there
Join date: 14 Sep 2005
Posts: 614
04-16-2009 19:46
Sweet! so this makes the owner say something on a defined channel. So if you had an attachments which listens on different channel you could make a script out all the different commands then you could just select the one you want.
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
04-16-2009 20:24
From: Gearsawe Stonecutter
Sweet! so this makes the owner say something on a defined channel. So if you had an attachments which listens on different channel you could make a script out all the different commands then you could just select the one you want.

actually it should make anyone that clicks it in the chat history window say it.

it's kinda like an optional poll that you only have to click a button for... then a single listening script could easile filter and gather the names of all the people that clicked it.
_____________________
|
| . "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...
| -
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
04-16-2009 20:45
From: Void Singer
now click it =)

strange. Nothing happens when I click it in chat history.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Chaz Longstaff
Registered User
Join date: 11 Oct 2006
Posts: 685
04-16-2009 21:27
From: Jesse Barnett
strange. Nothing happens when I click it in chat history.


yeah i'm lost about what in chat history is being clicked.
_____________________
Thread attempting to compile a list of which animations are freebies, and which are not:

http://forums.secondlife.com/showthread.php?t=265609
SuezanneC Baskerville
Forums Rock!
Join date: 22 Dec 2003
Posts: 14,229
04-16-2009 21:33
It worked for me.
_____________________
-

So long to these forums, the vBulletin forums that used to be at forums.secondlife.com. I will miss them.

I can be found on the web by searching for "SuezanneC Baskerville", or go to

http://www.google.com/profiles/suezanne

-

http://lindenlab.tribe.net/ created on 11/19/03.

Members: Ben, Catherine, Colin, Cory, Dan, Doug, Jim, Philip, Phoenix, Richard,
Robin, and Ryan

-
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
04-16-2009 21:34
very nice, you could easily generate a number of choices with the names already inserted, and without the string limit of dialog(it works on other channels too)

what does the "%c2%ao" do though?
_____________________
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
Day Oh
Registered User
Join date: 3 Feb 2007
Posts: 1,257
04-16-2009 21:53
From: Ruthven Willenov
what does the "%c2%ao" do though?


"*", or Alt+255, in place of space.. I don't think the forum likes that, but it seems to be fine to the compiler
_____________________
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
04-16-2009 22:13
so when generating a string, it would need to find the spaces, and replace them with the unescapeurl thing?
_____________________
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
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
04-16-2009 22:16
@Jesse:
standard client? do the app/teleport links in chat work for you?

From: Chaz Longstaff
yeah i'm lost about what in chat history is being clicked.

inworld chat history will have a link if you if you throw this in a script
llOwnerSay("secondlife:///app/chat/0/Hello" + llUnescapeURL("%c2%ao";) + "world";);

if you click the text that pops up in chat, you should say "Hello world" without having typed it. (shouldn't %A0 be enough? I think that's the non-breaking space...)
_____________________
|
| . "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...
| -
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
04-16-2009 22:29
it also works as:
llOwnerSay(llUnescapeURL("secondlife:///app/chat/0/Hello%c2%aoworld";));
_____________________
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
04-16-2009 22:53
hmm, i just wrote up a test script for a theory i had for generating the string:

CODE

string text = "honey bees love to gather nectar";
string insert = "%c2%ao";
default
{
state_entry()
{

integer len = llStringLength(text);
integer i;
for(i = 0;i<len;i++)
{
if(llGetSubString(text,i,i) == " "){
text = llDeleteSubString(text,i,i);
text = llInsertString(text,i,insert);
}
}
llOwnerSay(text);
}
}


it returns:

Object: honey%c2%aobees%c2%aolove%c2%aoto gather nectar

which made me realize, the string length obviously changes each time the space is replaces, so it would never make it to the end of the string, how would i make that work?

edit: nevermind, ran the for loop backwards and it worked just fine:

CODE

for(len;len> -1;len--)
{
if(llGetSubString(text,len,len) == " "){
text = llDeleteSubString(text,len,len);
text = llInsertString(text,len,insert);
}
}


Object: honey%c2%aobees%c2%aolove%c2%aoto%c2%aogather%c2%aonectar

but if anyone can figure out a more efficient way, let me know :-)
_____________________
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
1 2