Jump to content

Owner Only Dialog Object Giver (Auto)


Summer Logan
 Share

You are about to reply to a thread that has been inactive for 3494 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

I already have a script that you can place multiple objects in the contents folder of an object and when anyone touches it a dialog comes up and asks what do you want listing all the possiblities. 

The problem with my version is anyone can touch it and get items...I want to know what and where inside the script can I change it so that only the owner of the script can get items. Would be funny if I could also make it so that anyone else other than the owner touches it they get something in local that says, "no no no" lol

Link to comment
Share on other sites

Ok it had touch_start and I changed llDetectedKey(0) to llGetOwner

 

Currently now when anyone touches it the owner gets the dialog.

 

I just want to fix it now so that only the owner gets the dialog on the owners touch and whenever someone else touches it nothing happens. Should I change touch_start to just touch?

Link to comment
Share on other sites

Ahyeah, that's not what I said.

You changed the llDetectedKey(0) inside the llDialog call.

What you need is to insert and if check before the llDialog call.

A statement, such as the following:-

 

if(llDetectedKey(0) == llGetOwner()){    //The user touching me is my owner, so do Dialog}else{    //The user touching me IS NOT my owner, so say 'no no no'}

 You then need to fill the true half of this check with the llDialog functions.

Please see the SL Wiki page on IF if you're unfamiliar with how this works.

P.S. Touch and touch_start are not identical. Touch responds to mouse_down OR mouse_up (during a click), whereas touch_start only reacts to mouse_down.

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 3494 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...