02-05-2010 14:48
For a while now I have been attempting to tackle some scripts that have to do with XY Text... First time around, I had basic problems like trying to get the text to wrap to the next line automatically, and even get the text to display on all of my lines in the first place. I came to the forums and got some help.

Then another point in time, my friend wanted me to gather song and artist data from his DJing web server. I wanted to put these 2 scripts together, and have a board that displays the information in XY Text.

I can put these 2 scripts together pretty easily, and display the information on the board. However, it will display the information like right after another and it is all "jumbled". If you understand what I am saying, how would I make it so I can have a format for my information. Such as if I have a 4 row board, how could I edit the script to put the song title and artist information on the first 2 rows, and the third row is empty, then the status on the 4th row. This way, it will be a lot cleaner looking.

I used the XYZZY Text method for this, by naming each prim that displays information.
Link: http://wiki.secondlife.com/wiki/XyzzyText

This is the usage script that I am using, thanks to Void. :D

listen(integer channel,string name, key id, string message)
{
message = message;
integer maxPerLine = 35 - 1; //-- replace 5 with your character max
do{
llMessageLinked( LINK_THIS, DISPLAY_STRING, llGetSubString( message, 0, maxPerLine - 1 ), (string)(gToggle++ % max) ); // max = max number of lines.
message = llDeleteSubString( message, 0, maxPerLine );
}while (message);
}
//////

I tried to use regular XYText 1.5, because with that method I have to stick a script inside of the prim that displays text. Then I set the usuage and Display prim, to a unique "DISPLAY_STRING" number. This way, I can set where I want the information to go, however, I have no idea how to link more than one prim together and get the text to flow between them. When I try to link Multiple prims together, the text just repeats on each prim.

Link to the XYText I used to get my scripts from: http://wiki.secondlife.com/wiki/XyText_1.5

I hope this was not to long, and I hope everyone understands what I am asking / saying here. Thanks...