Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Is it possible to have an object read a story?

Asmita Frangilli
Registered User
Join date: 8 Dec 2006
Posts: 9
03-30-2008 05:49
Hi, Im hoping for a little help. I would like to create something (a prim or menu or HUD), that reads a story. Is it possible to have an object talk with pauses? I understand how to make the object whisper talk, I can create a HUD, I can create a menu - I just dont understand how to use those functions to operate a prim that would convey a very large amount of text. The text would need to have breaks within it to make it understandable and palatable. Using a HUD or menu is just a luxury at this point. My main objective is having a prim "talk" like I would if I were there to read the story myself.
Is this even possible? Thanks for any info you can give me :).
Imnotgoing Sideways
Can't outlaw cute! =^-^=
Join date: 17 Nov 2007
Posts: 4,694
03-30-2008 07:52
Totally. Notecard readers are common for classes and quiz events. I'm sure that there is a freebie somewhere and that the script would be really easy to write on your own without much work and wiki searching. (^_^)y
_____________________
Somewhere in this world; there is someone having some good clean fun doing the one thing you hate the most. (^_^)y


http://slurl.com/secondlife/Ferguson/54/237/94
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
I Got Bored!
03-30-2008 09:47
CODE

key kQuery;
integer pause = 2; // delay between lines
integer iLine = 0;
default
{
touch_start(integer num) // touch to start reading notecard
{
llSay(0, "Reading notecard...");
kQuery = llGetNotecardLine("My Notecard", iLine); // "My Notecard" is default change to what you like
}

dataserver(key query_id, string data)
{
if (query_id == kQuery)
{
if (data == EOF)
{

llSay(0, "No more lines in notecard, read " + (string)iLine + " lines."); // omit this is feel like it

}
else
{
llSay(0,data);
llSleep(pause);
iLine++;
kQuery = llGetNotecardLine("My Notecard", iLine); // change "My Notecard" to what notecard you have like above

}
}
}
}
Asmita Frangilli
Registered User
Join date: 8 Dec 2006
Posts: 9
03-30-2008 10:21
Thank you Guys so Much!

Thank You, Thank You, Thank You!
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
03-30-2008 11:47
you could even add a number as like the first character of the line in the notecard, and thus determine how long to display that line before reading in the next line.
_____________________

● Inworld Store: http://slurl.eclectic-randomness.com
● Website: http://www.eclectic-randomness.com
● Twitter: @WinterVentura