These forums are CLOSED. Please visit the new forums HERE
How do I?? |
|
|
Eclectic Wingtips
Registered User
Join date: 21 Dec 2007
Posts: 795
|
03-04-2008 16:25
I am opening a small gallery of my rl photography... mainly for my own interests... i doubt i will ever seel much, if anything... but i wanted a space to show them. Anyway i would like each of the photographs to give a note card when an avie left clicks it.... ummm how do i do that??
|
|
Oryx Tempel
Registered User
Join date: 8 Nov 2006
Posts: 7,663
|
03-04-2008 16:33
There are a bunch of free "notecard giver" scripts out there. I'll drop one on you in a second. Just pop the script and desired notecard into the "Contents" of the prim that shows your photograph, and voila.
_____________________
|
|
Joseph Abel
Leaves no pawprints...
Join date: 20 Aug 2006
Posts: 781
|
03-04-2008 16:33
Just did a real cursory search of the Scripting Library forum, and found this...I'm sure there are more in there.
Copy, and paste into a script, and drop into your prim. //------------------- NoteCard Giver V 1.0 by Russ Allen -------------------// //--------------------------------------------------------------------------// //-------------- Thanks to LSLEditor 2.4 and www.lslwiki.net ---------------// //--------------------------------------------------------------------------// //--------------------------------------------------------------------------// //----- I hope my comments have given enough information on configuring ----// //-------- this script. If you still need help contact me inworld. ---------// //--------------------------------------------------------------------------// //------ If you are looking to hire a scripter send me an IM I may be ------// //------ Available ------// //--------------------------------------------------------------------------// list given_to; integer range = 50; // Range form the object in which it will give the notecard. float rate = 5; // Rate in seconds of scan for people to give notecard too. Should increase with range. // NOTE: the lower it is the more laggy it is so think before you put it on 0.1. string notecard = "MyNotecard"; // The notecard to give (must be in objects inventory) integer time_or_length = TRUE; // Defines whether it resets the list specific amount of time (which you define in // reset_list_every) or when it reaches a certain length. // TRUE = time // FALSE = length // NOTE: The reason for reseting is so it does not use alot of memory and become // very laggy. float reset_list_every = 600; // Time in seconds before reseting the list. Only used if time_or_length is set // to TRUE integer max_length = 100; // Maximum length the list can reach before reseting. Only used if time_or_length is // set to FALSE integer progress = TRUE; // If set to TRUE it will talk more often saying what its doing like when it resets // the list etc. if its annoying just set it to FALSE integer current_number = 0; default { state_entry() { llSay(0, "Activated." ;llSensorRepeat("","","",range,PI,rate); llListen(0, "", llGetOwner(), "" ;if(time_or_length == TRUE) { llSetTimerEvent(reset_list_every); } } sensor(integer total_number) { while(current_number < total_number) { if(llListFindList(given_to, [llDetectedKey(current_number)] != -1) { llGiveInventory(llDetectedKey(current_number),note card); given_to += [llDetectedKey(current_number)]; } } current_number = 0; if(time_or_length == FALSE) { if(llGetListLength(given_to) >= max_length) { if(progress) { llSay(0, "Reseting list..." ;} given_to = []; } } } timer() { if(progress) { llSay(0, "Reseting list..." ;} given_to = []; } listen(integer channel, string name, key id, string message) { if(message == "help" ![]() { llOwnerSay("Here are a list of commands:" ;llOwnerSay("help" ;llOwnerSay("reset" ;} if(message == "reset" ![]() { given_to = []; } } } _____________________
Nimbus rated!!
So your final Nimbus Score is a grand total of 8.55. A magnificent achievement! |
|
Oryx Tempel
Registered User
Join date: 8 Nov 2006
Posts: 7,663
|
03-04-2008 16:36
Or for a shorter version...
default { state_entry() { llSetTouchText("Info" ; } touch_start(integer total_number) { llGiveInventory(llDetectedKey(0),llGetInventoryName(INVENTORY_NOTECARD,0)); } } Eclectic, I just sent you a script inworld. _____________________
|
|
Joseph Abel
Leaves no pawprints...
Join date: 20 Aug 2006
Posts: 781
|
03-04-2008 16:38
Or for a shorter version... D'oh!! _____________________
Nimbus rated!!
So your final Nimbus Score is a grand total of 8.55. A magnificent achievement! |
|
Eclectic Wingtips
Registered User
Join date: 21 Dec 2007
Posts: 795
|
03-04-2008 16:41
yay!! thank you oryx!!!!
|
|
Blaidd Tae
Freelance Consultant
Join date: 3 Jan 2007
Posts: 116
|
03-04-2008 20:25
oryx,
will that give everything in the contents tab besides the script or will that give everything including the script or just give 1 object other than the script? _____________________
SL Freelance Consultant
|
|
Oryx Tempel
Registered User
Join date: 8 Nov 2006
Posts: 7,663
|
03-04-2008 20:28
oryx, will that give everything in the contents tab besides the script or will that give everything including the script or just give 1 object other than the script? Just the notecard... see this line... llGiveInventory(llDetectedKey(0),llGetInventoryName(INVENTORY_NOTECARD,0)); I use it all the time to give details on an outfit for sale. _____________________
|
|
Blaidd Tae
Freelance Consultant
Join date: 3 Jan 2007
Posts: 116
|
03-04-2008 22:16
scripting newbie/idiot here
so do i have to name the notecard "INVENTORY_NOTECARD"? _____________________
SL Freelance Consultant
|
|
Ravenhurst Xeno
Consiracy with no purpose
Join date: 20 Jan 2007
Posts: 147
|
03-04-2008 22:23
scripting newbie/idiot here so do i have to name the notecard "INVENTORY_NOTECARD"? No, it will give out the first notecard in the item's inventory regardless of its name. |
|
Nika Talaj
now you see her ...
Join date: 2 Jan 2007
Posts: 5,449
|
03-04-2008 22:26
so do i have to name the notecard "INVENTORY_NOTECARD"? . |
|
Georgie Pashinin
Registered User
Join date: 9 Nov 2007
Posts: 30
|
03-05-2008 06:54
You could also contact Slade Pfeffer at the Riverbend Gallery.
She is doing the same thing as you and has a lovely galery space and works with several other artists displaying their pictures. Otherwise, good luck! Georgie |
|
Blaidd Tae
Freelance Consultant
Join date: 3 Jan 2007
Posts: 116
|
03-05-2008 07:10
thank you
![]() _____________________
SL Freelance Consultant
|