Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Communication between 2 prims

Merv Writer
Registered User
Join date: 5 Apr 2007
Posts: 47
10-06-2009 17:45
Hi there.

I am looking for pieces of sls code to add to my 'tip jar' script.
(I am a complete noob if it comes to sl scripting, so please help me with where to put it and such - normally when I try to add lines from other scripts I get Syntax Errors)

I want the tip jar script to detect if someone is sitting on an object (like a dance pole) and if so I want it to pay the avatar who 'sits' there every L$ people put in the tip jar, and not pay the owner (me) like the script is doing now. This so people do not have to rez their own tip jars and everyone can use the tip jar already present. All objects (dance pole, tip jar and other things) are linked to eachother, and I want the tip jar script to only communicate with the dance pole that is linked to it, so I can have multiple dance poles where people can dance for tips.

Well that is the basic idea, I hope it is clear. I know it is possible, but haven't got a clue how to accomplish this.

Thank you very much.
Merv
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
10-06-2009 19:30
you might be better off buying some already made, there are some really good ones out there.

if you really want to script this yourself, i would start with some more basic scripting projects to get some more knowledge in lsl.

the basic layout of the script sounds like
dancer sits down
someone pays tipjar
the tipjar gives the money to the dancer. that should be fairly easy if the jar is linked to the pole, because the money would go to the same object and you could send a link message to the tip jar if you want it to display the amount
_____________________
Dark Heart Emporium

http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=133020

want more layers for tattoos, specifically for the head? vote here
http://jira.secondlife.com/browse/VWR-1449?

llDetectedCollision* Functions similar to touch
http://jira.secondlife.com/browse/SVC-3369