I want to make object giver that will give out an object if the person puts in the right note card, so basically a person comes up to the object drops in their note card and gets the give an object.
How would I go a bout scripting this?
Thanks
These forums are CLOSED. Please visit the new forums HERE
is this even possible? |
|
|
Justice Bulloch
Registered User
Join date: 21 Sep 2007
Posts: 9
|
02-03-2009 12:54
I want to make object giver that will give out an object if the person puts in the right note card, so basically a person comes up to the object drops in their note card and gets the give an object.
How would I go a bout scripting this? Thanks |
|
Gordon Wendt
404 - User not found
Join date: 10 May 2006
Posts: 1,024
|
02-03-2009 12:56
I don't see why it wouldn't be possible but it would be an absolute pain to code. If you want someone to script this for you then go to the products wanted forum and ask since that's the proper place to ask, it probably won't be cheap though.
_____________________
|
|
Lennard Lopez
Registered User
Join date: 9 Oct 2007
Posts: 52
|
02-03-2009 13:01
It doesn't have to be very difficult. But first, what is the right notecard? Is it the name of the card? Or is it what's in it?
|
|
Destiny Niles
Registered User
Join date: 23 Aug 2006
Posts: 949
|
02-03-2009 13:07
I want to make object giver that will give out an object if the person puts in the right note card, so basically a person comes up to the object drops in their note card and gets the give an object. How would I go a bout scripting this? Thanks Allow give intentory so that someone can drop the notecard in. If you want to read the notecard use llGetNotecardLine You might also want to put in an inventory clean up function to delete bad notecards You will also need to either use touch function to find out who drop the card in since you cannot tell from any inventory functions. If it's a one time give, do a giveinventory, wait a couple of seconds then die. |
|
Lennard Lopez
Registered User
Join date: 9 Oct 2007
Posts: 52
|
02-03-2009 14:41
You will also need to either use touch function to find out who drop the card in since you cannot tell from any inventory functions. You can use llGetInventoryCreator |
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
02-03-2009 15:56
You can use llGetInventoryCreator The problem with that approach is that a lot of folks get notecards from other people. No really. They do. ![]() |
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
02-04-2009 04:28
actually creator along with properties and content sould be a good way of limiting 'right' to cards created by a single person, and given out with specific information... like say gift certificates? getting the source of the drop is still an issue though.
_____________________
|
| . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - |
|
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
|
02-04-2009 04:50
actually creator along with properties and content sould be a good way of limiting 'right' to cards created by a single person, and given out with specific information... like say gift certificates? getting the source of the drop is still an issue though. Just in case you missed what Void said, I'll translate. When you give an inventory item to a box, The owner of that inventory item changes, to the same as the owner of the box. Meaning that there's no way to know who dropped the card in the box. Worse.. if you give out example notecards.. like say membership applications.. 99.999% of the time, they're going to enter their details into your notecard, so the creator will be you. Notecards are a terrible way to do gift certificates, because notecards can be read, copied, and reconstructed. How hard is it to get a full perms notecard from the same creator, then just paste the right text into it? I don't know what the OP's intended function is.. but an inventory drop on an object is a really "lacking" area of LSL.. there's got to be another way to do what the OP is after without relying on the inventory drop. _____________________
![]() ● Inworld Store: http://slurl.eclectic-randomness.com ● Website: http://www.eclectic-randomness.com ● Twitter: @WinterVentura |
|
Vivito Volare
meddler
Join date: 10 Nov 2006
Posts: 41
|
02-04-2009 09:26
first, I would make sure that it is clear to the people dropping the notecards to stick to specific format. This would be the biggest issue I think you would encounter: Making sure that something that is the human-readable right answer is script-readable as such.
the basic outline I would follow would be on start- clear any dropped inventory, verify that there is something to give out. (reads in answer key if it is in a separate notecard) user clicks object object requests notecard from user, locks out all other users allow the object to receive inventory check for notecard item read notecard to list string compare each list element against answerkey Correct? Then give item. Else, tell user "sorry, wrong" delete notecard unlocks for any user to use |
|
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
|
02-04-2009 09:33
The problem with that approach is that a lot of folks get notecards from other people. No really. They do. ![]() _____________________
Argent Stonecutter - http://globalcausalityviolation.blogspot.com/
"And now I'm going to show you something really cool." Skyhook Station - http://xrl.us/skyhook23 Coonspiracy Store - http://xrl.us/coonstore |
|
ElQ Homewood
Sleeps Professionally
Join date: 25 Apr 2007
Posts: 280
|
02-04-2009 12:00
You can use llGetInventoryCreator yeah, I dunno about you guys, but I've been having the worst time with llGetInventoryCreator lately..the script can't see it..and neither can you when it's in the object's inventory..maybe broken? |