Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Dialog Menu Problem!

Ludvaig Lindman
Registered User
Join date: 2 Feb 2007
Posts: 78
07-08-2007 10:48
Hi, I'm very new to scripting and I thought, that maybe someone could please help me with my problem.

The situation is as follows:

I got an object. Inside this object there are 3 Scripts. Script A, B and C.

If I click on this object, I want a dialog menu to appear that allows me to choose between 2 options.

Option1: Execute Script A and Script B

Option2: Execute Script C

I think this is rather simple to do if you know scripting. I do understand playing around with dialog menus a bit, but i could not solve this problem.

Thanks for any help.
Deanna Trollop
BZ Enterprises
Join date: 30 Jan 2006
Posts: 671
07-08-2007 12:27
When your listen event handler receives a reply from the user, send a link message to the appropriate script(s).

lslwiki.net/lslwiki/wakka.php?wakka=llMessageLinked
Shadow Subagja
Registered User
Join date: 29 Apr 2007
Posts: 354
07-08-2007 13:47
yeah have the 'main script' contain a touch event in its current state, where you can launch the dialog, then llMessageLinked to send a notification to the other scripts about what to do. That should work quite well.

llMessageLinked(LINK_ALL_OTHERS, integer num, string str, key id)

each of those scripts can have an event handler in their current states:

link_message(integer sender_num, integer num, string str, key id)

and compare the message "str" or integer "num" with something you've set up to trigger the behavior that you want.