default
{
state_entry() {
llSetTimerEvent(5*60);
}
timer() {
// speak out loud!
llSay(0,"testing 123"
;}
}
These forums are CLOSED. Please visit the new forums HERE
Announcing Script HELP |
|
|
Shayna Korobase
Registered User
Join date: 8 May 2007
Posts: 454
|
12-22-2008 04:43
I know this is siple but obviously too hard for me. I want a script to say a few lines on a timer instesad of just one line. How can I set it to say multiple lines one at a time? Heres the basic script with a single test123 line.
default { state_entry() { llSetTimerEvent(5*60); } timer() { // speak out loud! llSay(0,"testing 123" ;} } |
|
Laurence Corleone
Registered User
Join date: 12 Oct 2006
Posts: 126
|
12-22-2008 04:51
_____________________
There are no stupid questions, just stupid people.
|
|
SuezanneC Baskerville
Forums Rock!
Join date: 22 Dec 2003
Posts: 14,229
|
12-22-2008 05:19
Adding another llSay would make it say more than one line.
default { state_entry() { llSetTimerEvent(5*60); } timer() { // speak out loud! llSay(0,"testing 123" ;llSay(0, "testing 456" ;} } Or if you just want to have the text come out on more than one line you use a \n to make a new line. as in llSay(0, "line one\nline two" ;or you can just space it like this, if I read the SL wiki correctly: llSay ( 0, "this is line one this is line two this is line three" ); _____________________
-
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 - |
|
Shayna Korobase
Registered User
Join date: 8 May 2007
Posts: 454
|
12-22-2008 05:42
This was perfect thank you! |
|
Pedro McMillan
SLOODLE Developer
Join date: 28 Jul 2007
Posts: 231
|
12-22-2008 06:03
llSay(0,"testing 123" ;llSay(0, "testing 456" ;My experience is that you can't be guaranteed of the order the messages will arrive in that way. |
|
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
|
12-22-2008 06:20
list messages = [ "message 1", "message 2", "message 3" ];
integer message = 0; ... timer() { if (message >= llGetListLength(messages)) { llSetTimerEvent(0); return; } llSay(llList2String(messages, message++)); } _____________________
Argent Stonecutter - http://globalcausalityviolation.blogspot.com/
"And now I'm going to show you something really cool." Skyhook Station - http://xrl.us/skyhook23 Coonspiracy Store - http://xrl.us/coonstore |
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
12-22-2008 07:51
My experience is that you can't be guaranteed of the order the messages will arrive in that way. I think they are generally well-ordered. The same probably isn't true of llInstantMessage(), but the local chat commands should be fine. If in doubt, you could always put a small sleep inbetween (even 0.05 seconds should do it, so you know the messages are separated by at least one server frame). |
|
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
|
12-22-2008 08:39
Depending on the network behavior, chat messages from people and objects can actually get out of order by several seconds.
_____________________
Argent Stonecutter - http://globalcausalityviolation.blogspot.com/
"And now I'm going to show you something really cool." Skyhook Station - http://xrl.us/skyhook23 Coonspiracy Store - http://xrl.us/coonstore |