Newbie here. Make a sign clickable?
|
|
DragonLady Merlin
Registered User
Join date: 2 Mar 2007
Posts: 59
|
04-18-2007 13:19
Hi! I'm new to all of this, and I just need to know how to make a sign interactive. How do I make the script that allows someone to right-click for a notecard or folder of information. For that matter, how do I make the notecard or the folder? I've been working on putting together a sewing group, and want to be able to do this so I can put up signs with the rules and product information and such. I will take a class in building starting next week, and I think this is only thing I need to be able to do right away. I assume there's a finished script somewhere that does this? If so, where can I get a copy & how do I use it? Thanks in advance for any help at all.  DL
|
|
Calveen Kline
In pursuit of Happiness
Join date: 5 Jan 2007
Posts: 682
|
04-18-2007 14:34
There is a script called GiveAllInventory. You can try IM the guys at the Builders Exchange group, someone can give you a copy... Once you have this, you only need to copy it from your inventory into the Objects folder of the prim in question.
|
|
Ceera Murakami
Texture Artist / Builder
Join date: 9 Sep 2005
Posts: 7,750
|
04-18-2007 14:56
IM me in world, and I'll give you a notecard giver script. It will only give out notecards that are in the prim, when the prim is touched. I also have a script that gives all of the stuff in the prim, but which is careful to exclude giving itself. Somewhat handy. With a little effort I could also locate and give to you a script that excludes specific things, like one that gives anything except any scripts. That way both the contents giver script and perhaps a hover text script could be excluded, while giving the touching person the notecards, landmark and free t-shirt in the prim. 
_____________________
Sorry, LL won't let me tell you where I sell my textures and where I offer my services as a sim builder. Ask me in-world.
|
|
Woopsy Dazy
Registered User
Join date: 12 Nov 2006
Posts: 173
|
04-18-2007 15:01
Come on, giving a notecard is no secret. From http://lslwiki.net Q: How do I just make a script that just gives someone the only object/notecard/texture in inventory? A: Simple, do this: default { touch_start(integer total_number) { // to give a different inventory item type, // replace "INVENTORY_OBJECT" with "INVENTORY_NOTECARD", etc. llGiveInventory(llDetectedKey(0),llGetInventoryName(INVENTORY_OBJECT, 0)); }
|
|
DragonLady Merlin
Registered User
Join date: 2 Mar 2007
Posts: 59
|
04-18-2007 15:53
Thanks, Whoopsy Dazy.  How do I make the notecard? I can't seem to find anything that lets me do that, but I'm just blind. 
|
|
DragonLady Merlin
Registered User
Join date: 2 Mar 2007
Posts: 59
|
04-18-2007 16:03
Never mind, I figured out how to make the notecard.  But...that script gives me a syntax error. ??? Ceera, I will IM you, too. Thanks, everyone, for the help so far.
|
|
DragonLady Merlin
Registered User
Join date: 2 Mar 2007
Posts: 59
|
04-18-2007 16:42
Okay, I got it partly figured out.  I used this script, which I found in my inventory: default { touch_start(integer total_number) { llGiveInventory(llDetectedKey(0), "New Note"  ; } } But how can I edit it to give a whole folder with stuff? I'd like to include a note or two, a landmark, and maybe a free t-shirt. Do I add extra scripts like this: default { touch_start(integer total_number) { llGiveInventory(llDetectedKey(0), "New Note"  ; } { llGiveInventory(llDetectedKey(1), "landmark"  ; } { llGiveInventory(llDetectedKey(2), "T-shirt"  ; } } Or is there another way to package everything? I can't seem to drop a whole folder in there, but maybe I'm just doing it wrong or SL isn't responding very well right now?
|
|
Sterling Whitcroft
Registered User
Join date: 2 Jul 2006
Posts: 678
|
Forum Postings occasionallyhave Typos
04-18-2007 18:57
Woopsy's code has a typo. The extra spaces in "llGetInventoryNam e" in the llGiveInventory function.
When code is posted and displayed from the forums, these extra spaces sometimes creep in. When you copy them to your own scripts, always scan the pasted code for the extra spaces. Syntax errors will result. Usually the SL script compiler will tell you the line number of the error.
|
|
Ceera Murakami
Texture Artist / Builder
Join date: 9 Sep 2005
Posts: 7,750
|
04-18-2007 20:39
I got her taken care of in-world. Gave her a "Give all contents, set to any user" script, and told her how to set it up.
_____________________
Sorry, LL won't let me tell you where I sell my textures and where I offer my services as a sim builder. Ask me in-world.
|