Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

New XyText: XyzzyText

Gigs Taggart
The Invisible Hand
Join date: 12 Feb 2006
Posts: 406
05-24-2007 09:32
Hello everyone. Thraxis Epsilon and I have rewritten Xytext with some very neat new features, the primary one being the ability to control an entire linkset from one script!


See here:
https://wiki.secondlife.com/wiki/XyzzyText
_____________________
Baron Hauptmann
Just Designs / Scripter
Join date: 29 Oct 2005
Posts: 358
limitations?
07-25-2007 08:41
Hi! I'm using xyzzy text in a HUD I'm developing. It seems that it works well until I add a 6th row of text. Is there a limitation somewhere that I'm missing?

Also, I've tried to poke around the wiki and forums, and haven't been able to find out what the "display_extended" does.

Any help?
Baron
Dominique Laville
Registered User
Join date: 24 Apr 2008
Posts: 84
06-05-2008 06:36
Hello, I'm using Xyzzy text and I would like to know how to handle more than 2 lines. I added a third line and I modified the code as follow, but I can't display the text on the third line. Could you help me ?

listen(integer channel,string name, key id, string message)
{



if (gToggle==0)
llMessageLinked(LINK_THIS,DISPLAY_STRING,message,"0";);

if (gToggle==1)
llMessageLinked(LINK_THIS,DISPLAY_STRING,message,"1";);

if (gToggle==2)
llMessageLinked(LINK_THIS,DISPLAY_STRING,message,"2";);



gToggle=(gToggle+1)%3;

}


PS: Furthermore, I noticed that it is important in which order I select the labels, to display the text in order.

thanks,
Patrick
Haruki Watanabe
llSLCrash(void);
Join date: 28 Mar 2007
Posts: 434
06-05-2008 13:27
From: Dominique Laville

PS: Furthermore, I noticed that it is important in which order I select the labels, to display the text in order.


Sorry for going on with the necropost...

Dominique - that's what I thought, too at first... but the manual for using this script is kinda poor, they simply forgot to tell you that:

When you linked the prims together, you have to issue a «RESCAN_LINKSET» to the whole thing, that'll bring the prims into order. So issue this command first: llMessageLinked(LINK_THIS, RESCAN_LINKSET, "", "0";); - this should do the trick...

However, I'm struggling a little myself with this thing... Did anyone get the Fade-thingy to work? I tried llMessageLinked(LINK_THIS, SET_FADE_OPTIONS, "1,1.0", "0";); and llMessageLinked(LINK_THIS, SET_FADE_OPTIONS, "TRUE,1.0", "0";); but it doesn't work...

The action that would trigger the fade is in PassToRender(...)
CODE

if (render == 3)
RenderWithEffects(link,TextToRender);


But render == 3 never is true, because the command is never issued like that in the rest of the script...


Also the DISPLAY_EXTENDED is a little miracle... I tried to say «hello\eKitty» but the line still get's truncated...
Dominique Laville
Registered User
Join date: 24 Apr 2008
Posts: 84
06-05-2008 23:58
Hey,

Ya, llMessageLinked put in the right order the prisms, thanks.

But, I solved by changing the llMessageLinked parameter to "-1" !! Why does it start from -1 ? I will try to add the fourth line and the fifth one to see what's happen

llMessageLinked(LINK_THIS, RESCAN_LINKSET, "", "0";);

if (gToggle==0)
llMessageLinked(LINK_THIS,DISPLAY_STRING,message,"-1";);
if (gToggle==1)
llMessageLinked(LINK_THIS,DISPLAY_STRING,message,"0";);
if (gToggle==2)
llMessageLinked(LINK_THIS,DISPLAY_STRING,message,"1";);
AlieneilA Aker
Registered User
Join date: 30 Apr 2008
Posts: 26
06-16-2008 19:03
This is how I handled multiple rows, I used 4...

CODE

listen(integer channel,string name, key id, string message)
{
// If you add more than 4 rows, add additional else if statements and change the incremets accordingly.
if (gToggle == 0) {
++gToggle;
llMessageLinked(LINK_THIS,DISPLAY_STRING,name + ":"+ message,"0");
}
else if (gToggle == 1) {
++gToggle;
llMessageLinked(LINK_THIS,DISPLAY_STRING,name + ":"+ message,"1");
}
else if (gToggle == 2) {
++gToggle;
llMessageLinked(LINK_THIS,DISPLAY_STRING,name + ":"+ message,"2");
}
else {
gToggle=!gToggle;
llMessageLinked(LINK_THIS,DISPLAY_STRING,name + ":"+ message,"3");
}

}