Logo ZeroTerminal.com
Dance ball script with menu

script

 

 

Really useful script to make yours and other people's avatars dance (or animate). It doesn't work for couples, but it comes really handy for clubs or even private parties at your house.

 

You can add up to 11 dancing animations in it, and by clicking on the prim, the avatar will get a blue menu with different options. There's a list of the animations inside the prim and buttons that will help you choose which one you want.

 

To use it, please rezz any prim you want your animating ball to be, texture as you want, and add the animations into the contents. Once done, just add this script inside the contents of the prim, and voilà, you can start dancing!

 

To start dancing, you will have to touch the prim, which will give you different options (the dance animations in fact) and pick one. To change to another dance or just stop dancing, touch the prim again and choose the new dance animation or press the STOP button.

 

Please copy the next text into a new script in-world:

 

 

You must register before you can view this text. Please register and Login


        llDialog(llDetectedKey(0), dances, dance_buttons, chat_channel);
    }
    
    listen(integer channel, string name, key id, string message)
    {
        if(message == "STOP")
            dance_number = -1;
        else
            dance_number = (integer)message - 1;
        llRequestPermissions(id, PERMISSION_TRIGGER_ANIMATION);
    }
    
    changed(integer change)
    {
        if(change & CHANGED_INVENTORY)
            llResetScript();
    }
    
    run_time_permissions(integer perms)
    {
        if(perms & PERMISSION_TRIGGER_ANIMATION)
        {
            stopAllDances();
            if(dance_number > -1)
            {
                llStartAnimation(llGetInventoryName(INVENTORY_ANIMATION, dance_number));
            }
        }
    }
}

Vote:
Post comment

Comments:

 
  #1 Author: mosthatedbish  
 
 
 
 



Group: Members
Register: 20.07.2010
oh i have this one it doesnt work on the site im tryin to use it on. thanx anyways
 
 
Articles: 6 | Comments: 16    

 
 
  #2 Author: Juan  
 
 
 
 



Group: Moderator
Register: 23.12.2010
Are scripts enabled at the place you are wanting to use it? It worked for me :S
 
 
Articles: 174 | Comments: 34    

 
 
  #3 Author: BlackSun  
 
 
 
 



Group: Members
Register: 28.11.2010
Mosthatedbish , i have a working version of it with animations in sl , pm me your avatar name i will send it to you in sl.
 
 
Articles: 3 | Comments: 3    

 
 
  #4 Author: zodiac  
 
 
 
 



Group: Members
Register: 24.06.2010
i'm trying to use this script in Avination and it doesn't work :((
 
 
Articles: 0 | Comments: 1    

 

Information

Would you like to leave your comment? Please Login to your account to leave comments. Don't have an account? You can create a free account now.

Advertisements

User panel


Vote


Less than a month
More than a month
More than 3 months
More than a year


Popular downloads

Stats

Members 87250 (+1)
Posts 578 (+0)
Comments 334 (+0)
Online members 1