Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Pay HUD?

Cantar Delcon
Registered User
Join date: 27 Nov 2006
Posts: 4
12-27-2006 13:22
Hi all,

Thank you for such helpful and useful posts, it has really helped a novice learn the beginnings of lsl.

I built and scripted a HUD as a notecard vendor. Works perfectly when rezd.

When attached the "pay" option disappears. I have not found any reason why.

Is it simply that you can't pay HUDs?

Thanks,
Cantar
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
12-27-2006 13:25
If you right click on any attachment, you only get Detach, Drop and Edit. I'm not sure what will happen if you edit the object (probably rez it on the ground first) and set the touch action to Pay (I think this is in the Main or the Object tab of the edit window, it's not a script thing). If it works, then touching it might make you pay the object, but it might not send a touch_start to the script any more. Try it and see what happens :)
Cantar Delcon
Registered User
Join date: 27 Nov 2006
Posts: 4
Pay doesn't work
12-27-2006 13:53
Hey Ziggy, thanks for the tip.
I ahve tried that and it doesnt work. You are left with the three options you mentioned.
any other ideas?
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
12-27-2006 14:02
Well, if you set it through the edit window, then you need to left click on the attachment, not right click. So the pie menu isn't involved. AFAIK, you can't do anything to make other options show up in the pie menu.
Cantar Delcon
Registered User
Join date: 27 Nov 2006
Posts: 4
left click
12-27-2006 14:38
Unfortunately the left click to pay option does not happen when it is aatched as a HUD,
one person in world suggested I have HUD res an object to pay

Good idea but I'm concerned people will leave objects lying all over the place

Perhaps there is a way to auto delete object once it has been used as a vendor?

-Cantar
Champie Jack
Registered User
Join date: 6 Dec 2003
Posts: 1,156
12-27-2006 14:47
From: Cantar Delcon
Unfortunately the left click to pay option does not happen when it is aatched as a HUD,
one person in world suggested I have HUD res an object to pay

Good idea but I'm concerned people will leave objects lying all over the place

Perhaps there is a way to auto delete object once it has been used as a vendor?

-Cantar


Yes! You can use llDie
From: someone
Deletes the object that contains the script. That means if the prim containing this script is part of a linkset, all the prims will be deleted, regardless of whether or not the prim is the root or a child in the linkset. To delete just one prim from a linkset, first detach it with llBreakLink.


From: someone
Q: How do I make my object delete itself after a certain period of time?
A: Use llSleep or the timer event.


I'd like to suggest that you allow only the owner of the object to pay it. If you want to allow someone other than the owner, there are ways to do that too. Let us know if you need any other suggestions, or if ONLY the owner will be paying the object.

I had to link to a WIKI mirror because the main WIKI is down. I'll change the link later when the main wiki is up.

Good Luck with your project!
Cantar Delcon
Registered User
Join date: 27 Nov 2006
Posts: 4
12-27-2006 16:26
Thank You!

llDie will work for now
I will rez the object and use llDie to delete it.

I'll post a final result when it's all said and done.

-Cantar