Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Hi All, Need advice re script to allow me to display poetry.

Caz Lobo
Registered User
Join date: 18 Dec 2005
Posts: 2
04-03-2006 01:29
I am looking for a way to allow folk to click on a book and for them to be able to a) either have a notecard come up which displays my poetry, or, b) that when they click the book, the poetry is displayed in the chat box automatically, (same as instuctions are for doors, etc) but slower, to give the reader time to read just one line at a time.
I am an absolute beginner at scripting and would be grateful for any help any kind person can offer.
Many Thanks.
Caz
Pericat Aquitaine
Registered User
Join date: 26 Feb 2006
Posts: 24
simple note card giver
04-03-2006 03:29
This should do ya:

CODE

default {
touch_start(integer total_number) {
key avatar;
avatar = llDetectedKey(0);
if (avatar != NULL_KEY) {
llGiveInventory(avatar, "note card");
}
}
}


Where I have note card in quotes, leave the quotes and replace with the name of your note card.

Put the script in a prim of your choice. Then exit build/edit, click on the prim, should give you the notecard.

If I've left anything out, I'm sure someone will weigh in with corrections. :)
_____________________
I like ducks. They're just so... ducky.
Caz Lobo
Registered User
Join date: 18 Dec 2005
Posts: 2
Thanks Peri.
04-03-2006 07:11
Much appreciated. Not quite there yet, but i will be! Thanks for your time.
Caz
Caoimhe Armitage
Script Witch
Join date: 7 Sep 2004
Posts: 117
A Poetry Reader
04-03-2006 12:45
I have just the thing your looking for :) Well maybe.

I have a poetry reader script which allows a selection from the books table of contents and then pushes the text out either via chat or IM. Using the messaging systems is different from a notecard because it comes out slower and IMO more closely approximates the experience of a poetry reading. YMMV.

IM me in-world if you are interested.