Jump to content

RLV & llDialog interaction


DR42
 Share

Recommended Posts

Interact how, exactly? You might need to clarify to get more specific tips.

RLV commands are fired out as llOwnerSay (or llSay if you're building for relays), and returns are handled by the listen event.

You can get a dialog to fire RLV commands on a dialog button press using code similar to... 

listen(integer channel, string name, key id, string message){    if(message == "Dialog Option 1")    {         llOwnerSay("@sendchat=n");    }    else if(message == "Dialog Option 2")    {         llOwnerSay("@sendchat=y");    }}

 Best of luck!

Link to comment
Share on other sites

  • 2 weeks later...

Not quite what I had in mind, but thanks.

I was wondering if there was a way to "grab" the information being used to generate the llDialog box, maybe as a Json encoded structure sent as a chat on a specific channel, and then to automate a reply (e.g. choose what button gets "clicked")

Also, is there an option to block the user from ever seeing the llDialog box in the first place?

I am making the assumption that I do not have control over the object raising the dialog.

 

TIA

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...