Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Multiple actions with single click

chendhil Highfield
Registered User
Join date: 21 Jul 2009
Posts: 11
11-10-2009 22:40
Hi, any one tell me script for "multiple actions with one single click"

Thanks in advance...
Viktoria Dovgal
Join date: 29 Jul 2007
Posts: 3,593
11-11-2009 00:56
You can just have the touch* events do more than one thing, or even have different scripts do different things when a touch comes in. I'm guessing that this isn't what you are after, though. Maybe you could offer an example of what you would like to do?
Paul Wardark
Wait, what?
Join date: 10 Jan 2009
Posts: 383
11-11-2009 01:59
Depends on the action. You can just stick a bunch of functions into a touch event.
_____________________
chendhil Highfield
Registered User
Join date: 21 Jul 2009
Posts: 11
Multiple actions with multiple prims on one click event
11-11-2009 04:10
Thanks for your reply...

For example ,if I click on a button, one prim(say A) should be activated(such as spinning ) and at the same time another prim(say B) should generate particles to another prim(say C),now C should give some animation stuf.

Please provide some sample script the same.
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
11-11-2009 04:38
AHA! You not only want multiple action, but you want them on multiple prims too;)

You can do that, it just includes more disciplines:

http://www.lslwiki.net/lslwiki/wakka.php?wakka=touch
http://www.lslwiki.net/lslwiki/wakka.php?wakka=llPassTouches
http://www.lslwiki.net/lslwiki/wakka.php?wakka=llMessageLinked
http://www.lslwiki.net/lslwiki/wakka.php?wakka=link_message
http://www.lslwiki.net/lslwiki/wakka.php?wakka=llListen
http://www.lslwiki.net/lslwiki/wakka.php?wakka=listen
http://www.lslwiki.net/lslwiki/wakka.php?wakka=llTargetOmega
http://www.lslwiki.net/lslwiki/wakka.php?wakka=llParticleSystem
http://www.lslwiki.net/lslwiki/wakka.php?wakka=llGiveInventory
etc.

You forgot to tell if the prims are linked or not. In fact you have told so little that nobody can make a script do what you have in mind

Happy scripting:)
_____________________
From Studio Dora
chendhil Highfield
Registered User
Join date: 21 Jul 2009
Posts: 11
11-11-2009 22:46
Hi,
Thanks for your reply.

I actually have a button. When i click on the button it should highlight another object out of many. I am highlighting that particular object by showing a rotating object on top of it using its visibility control through script. I also have a ppt slide presenter which shows different slides on each click. Now what i want is , when i click the button i want the particular to be highlighted using the rotating object and also the concerned slide should change in the PPT slide presenter. I am not able to make them work together( on a single click on the button).

Please guide me.
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
11-12-2009 06:08
If you wrote each of the various scripts you want to link together, it may be fairly straightforward for you to do what I think you are suggesting. If not, you'll have to study each of them to see where it's possible to put link_message events that pass triggers from one to another -- if you even have permission to modify those scripts. Take a good look at the sections of the wiki that Dora pointed you to.
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask.... ;)

Look for my work in XStreetSL at