|
Rock Vacirca
riches to rags
Join date: 18 Oct 2006
Posts: 1,093
|
10-13-2008 09:03
Hi,
My scripting skills are quite basic, so go easy on me:
Has anyone come across a SIMPLE dance machine? All the sample scripts I have looked at so far are way to complicated for me to have a play with and develop to suit my needs. They have multiple page dialogs, and other bells and whistles which I simply don't understand
What I need is a simple script that when put in a prim, along with 10 dances, will either:
a) Present a menu to choose any of the 10 dances
or
b) Play each dance for 10 seconds and move to the next, on to the end, then loop all over again.
Anyone seen such a dance machine scripts?
Thanks
Rock
|
|
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
|
10-13-2008 09:17
The basic Solop Server script is in the library at /15/28/26552/1.html. It's a bit more complicated than it really needs to be, but it should give you an idea how these things work. Note that one must have a separate script for each simultaneous dancer in order to maintain PERMISSION_TRIGGER_ANIMATION, and without that permission, the script can't stop the animation on a dancer. (It would be pretty weird for the danceball to ask the dancer for permission to animate their avatar when they just asked to stop dancing.) I suspect every scripter who's used that script eventually ended up replacing almost all the code with more efficient implementation choices, but it's whence many of us started, and I don't know of a newer script that's been open sourced.
|