Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Trouble with object saying text

Frank Elderslie
Registered User
Join date: 26 Oct 2006
Posts: 8
12-30-2006 18:06
I am making an object which reads lines from a notecard into chat. It mostly works right, but every now and then I get an extra blank line or lines out of order. Any thoughts? Here's the code in question:

integer x;
integer length = llGetListLength(theText);
for (x = 0; x < length; x++)
{
llWhisper(0, llList2String(theText, x));
llSleep(1);
}


-Frank
2k Suisei
Registered User
Join date: 9 Nov 2006
Posts: 2,150
12-30-2006 18:13
The lines out of order could be due to lag. You'll find that your chat messages sometimes come out in the wrong order too. I thought LL had fixed this problem but it occured again tonight.

A good test is to type the alphabet in chat, one letter at a time. A (enter), B (enter) etc. You'll find that sometimes the letters come out in the wrong order :)
Frank Elderslie
Registered User
Join date: 26 Oct 2006
Posts: 8
12-31-2006 15:11
Thanks. I'll keep an eye on it, but not worry about it much then.

-Frank