Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Greeting cards

Tim Tully
Registered User
Join date: 2 Feb 2006
Posts: 2
03-04-2006 15:30
I have seen a few opening greeting cards, but I cannot find out how to create one. Can anybody help me? I want to make some cards. Thanks for looking!
Torley Linden
Enlightenment!
Join date: 15 Sep 2004
Posts: 16,530
03-04-2006 18:11
Tim, I've seen some of those nifty cards myself, and I'd recommend that you let the creators know (right-click and EDIT the card then look next to Creator:) how much you enjoy them, and possibly if they could help you with how it's done. My curiosity along the same lines has not only led me to acquire technical knowledge, but priceless friendships in Second Life too.

I've moved your post to Scripting Tips so you can get more help with this from friendly fellow Resis.

Hope you can get greeting! :)
_____________________
Keknehv Psaltery
Hacker
Join date: 11 Apr 2005
Posts: 1,185
03-04-2006 20:05
Here's something that **should** work (I ran it through lslint, but I didn't test it in-world)

Okay, you make the greeting card look how you want, and then you drop a notecard inside. Then, put this script in the card as well. Set the "NOTECARD" value in the script to the actual name of the notecard, and set the "MESSAGE" to whatever you want the message to be.

CODE

default
{
on_rez( integer sparam )
{
llOwnerSay( "MESSAGE" );
llGiveInventory( llGetOwner(), "NOTECARD" );
}
}


When the card is rezzed, it sends the message to the owner (the rezzer of the card), and gives the notecard to them. If you don't want the message to be sent, simply delete the line with MESSAGE on it. Likewise, if you don't want the notecard to be given, delete that line.