Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Script for personalizing greeting card

Cienna Rossini
Registered User
Join date: 24 Mar 2007
Posts: 29
12-23-2009 12:09
looking for a scrpt that announces in chat a greeting when the card is touched.
Pete Olihenge
Registered User
Join date: 9 Nov 2009
Posts: 315
12-23-2009 12:44
Rez a prim, go to its contents tab and create a new script. The new script will make the prim say "Touched" when you click on it. Edit the script to make the message more personal.
Cienna Rossini
Registered User
Join date: 24 Mar 2007
Posts: 29
personlaized script
12-23-2009 12:55
From: Pete Olihenge
Rez a prim, go to its contents tab and create a new script. The new script will make the prim say "Touched" when you click on it. Edit the script to make the message more personal.


Ty.... and i am script challenged... I have no idea how to do this.. what to put in...
Laurie Stilman
Registered User
Join date: 11 Apr 2006
Posts: 45
12-23-2009 13:21
If you're looking for help figuring out what to put in the scipt, you're in the right place. Start by doing what Pete suggested and, if you can't figure out to to proceed, continue asking questions. If, on the other hand, you just want a pre-made script that does what you want, you should ask on Products Wanted instead.
Pete Olihenge
Registered User
Join date: 9 Nov 2009
Posts: 315
12-23-2009 14:08
Right-click on the new script in the prim's contents and select open. Look at the script (it really is very short, simple and self-explanatory). You will see a line that says:

llSay (0, "Touched";);

Replace the word "Touched" with something like:

llSay (0, "Congratulations! You are now a scripter!";);

You can put almost anything you like inside the quotation marks, but do keep all the puctuation outside the quotes as it is. Save it. Fingers crossed so there won't be any errors. Click on the prim.
Cienna Rossini
Registered User
Join date: 24 Mar 2007
Posts: 29
personlaized script
12-23-2009 14:15
ty for taking the time to help me... sooooo appreciated.. :)
Happy holidays :))..will give it a go
Johan Laurasia
Fully Rezzed
Join date: 31 Oct 2006
Posts: 1,394
12-24-2009 23:16
you can put stuff outside the quotes as well to get even more personalized, such as:

llSay (0,"Merry Christmas " + llDetectedName(0) + ", and Happy New Year too!";);

Which, if I were to touch it would then say:

Merry Christmas Johan Laurasia, and Happy New Year too!

Notice the space after the word Christmas so that the word Christmas does not butt up against the name of the avatar.