These forums are CLOSED. Please visit the new forums HERE
Multiple Animation Script Required |
|
|
Artemis Winthorpe
Registered User
Join date: 20 Apr 2006
Posts: 8
|
09-10-2006 07:56
Please help. I've made a heap of animations that i want to put in a prim. I want to be able to stand on the prim and using a drop down menu to change the animations without using balls. I have seen a few around but am not getting any answers. Where can i find a super easy script for this purpose? Any assistance is greatly appreciated. Thanks.
|
|
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
|
09-10-2006 09:13
Please help. I've made a heap of animations that i want to put in a prim. I want to be able to stand on the prim and using a drop down menu to change the animations without using balls. I have seen a few around but am not getting any answers. Where can i find a super easy script for this purpose? Any assistance is greatly appreciated. Thanks. Miffy Fluffy does a poseball one. check her profile for the latest version. I think it would be adapatable? |
|
Artemis Winthorpe
Registered User
Join date: 20 Apr 2006
Posts: 8
|
09-10-2006 15:27
Yes, i know she does one, but it seems overly complicated for the task at hand. I want one similiar to those 'dance balls' that activate your avi.
|
|
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
|
09-11-2006 03:01
Yes, i know she does one, but it seems overly complicated for the task at hand. I want one similiar to those 'dance balls' that activate your avi. Ah sorry misread what you actually wanted. Sounds like you want a menu driven version of the Animation player script by Teddy Wishbringer? How many Anim's are we talking about? If the animation names are meaning full, and not to long, you could just read them directly from the inventory and use them to populate the menu. The LLDialog limits the displayed menu text to around 12 characters per button. So if you have 'hundreds' of anims a hierarchal menu system would be useful. This would have (?) to be note card driven. |
|
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
|
Try This
09-11-2006 06:19
Dont have SL access so doing this dry.
Its a cobbled together version of my 'standard' menu system with a little bit of animation code lifted from Teddy Wishbringer's public Animation Player script. Let me know if it works! CODE
requires a notecard called "Contents List" with the following format CODE
There is an inbuild Dialog menu button limit of about 12 characters per string |
|
bucky Barkley
Registered User
Join date: 15 May 2006
Posts: 200
|
09-11-2006 09:53
There is an inbuild Dialog menu button limit of about 12 characters per string Just to add to that thought - one approach is to have the descriptions in a scrolled area at the top of the dialog (build up the "message" parameter), and then number the buttons. See "Bucky's Radio" as an example, or Pyske's security orb. The buttons start looking pretty busy/cramped if you try jam them full of descriptions. |
|
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
|
09-11-2006 10:01
Just to add to that thought - one approach is to have the descriptions in a scrolled area at the top of the dialog (build up the "message" parameter), and then number the buttons. See "Bucky's Radio" as an example, or Pyske's security orb. The buttons start looking pretty busy/cramped if you try jam them full of descriptions. Yes, what ever you do its a compromise. The scrolled area is I think 4 or 5 lines? enough for a little bit of text but as you say still cramped. May be we should ask for a 'proper' resource editor??? |
|
bucky Barkley
Registered User
Join date: 15 May 2006
Posts: 200
|
09-11-2006 10:19
Yes, what ever you do its a compromise. The scrolled area is I think 4 or 5 lines? enough for a little bit of text but as you say still cramped. May be we should ask for a 'proper' resource editor??? That would be grand ![]() I get 6 lines before it scrolls, and use up to ~35 chars per line. This gives me much more space to get descriptive (names of internet radio streams). Of course, this means maintaining a mapping between descriptions and numbered button inputs ... |
|
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
|
09-11-2006 16:24
That would be grand ![]() I get 6 lines before it scrolls, and use up to ~35 chars per line. This gives me much more space to get descriptive (names of internet radio streams). Of course, this means maintaining a mapping between descriptions and numbered button inputs ... 6 lines isnt bad, I thought it was less. I have a radio changer too, but just cram it all on the buttons. time for a rewrite!!! |
|
Artemis Winthorpe
Registered User
Join date: 20 Apr 2006
Posts: 8
|
09-13-2006 04:22
Hey Guys, ty for trying to help me. I copied and pasted the script you gave, but it is coming up with errors and unfortunately i am script illiterate and none of my friends with an inkling of script know-how are on atm.
At the moment it is saying: Error: Function call mismatches type or number of arguments in ---> (id) as below: { first -= pagesize; ShowMenu(id); } else if("Next" == message) |
|
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
|
Sorry!!!
09-13-2006 04:50
Hey Guys, ty for trying to help me. I copied and pasted the script you gave, but it is coming up with errors and unfortunately i am script illiterate and none of my friends with an inkling of script know-how are on atm. At the moment it is saying: Error: Function call mismatches type or number of arguments in ---> (id) as below: { first -= pagesize; ShowMenu(id); } else if("Next" == message) Sorry, my fault entirely. When I merged the animation code in to the menu system I should have changed all the calls to ShowMenu(id) to just ShowMenu(). Thats what happens when you try to rush! CODE // Animation Player v1.0 - Newgate Ludd Should we ok now, but I still haven't tried it in SL, been side tracked by a crematorium.... |
|
Artemis Winthorpe
Registered User
Join date: 20 Apr 2006
Posts: 8
|
09-13-2006 05:04
Oh no, I'm sorry to hear that. I got a friend to look at it, she took out the ID in (id). I added a contents list, but am stuck again as to what i should be putting in the script. I have it in an objet, with a couple animations and the contents list, but it doesn't do anything aside from say the animations are loaded... Perhaps when you do get a chance to come in game you would like to look at it for me? (o;
Thanks again for your help, i appreciate it a lot. |
|
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
|
09-13-2006 05:34
Oh no, I'm sorry to hear that. I got a friend to look at it, she took out the ID in (id). I added a contents list, but am stuck again as to what i should be putting in the script. I have it in an objet, with a couple animations and the contents list, but it doesn't do anything aside from say the animations are loaded... Perhaps when you do get a chance to come in game you would like to look at it for me? (o; Thanks again for your help, i appreciate it a lot. Well it SHOULD be triggered when you sit on it, if not then I've messed up the changed logic. I'm normally on somewhere between 20:00 - 00:00 GMT, midday - 4pm SLT (I think), so feel free to IM me. And its ok, its an in world crematorium for a horror / halloween area |
|
Artemis Winthorpe
Registered User
Join date: 20 Apr 2006
Posts: 8
|
09-13-2006 06:08
Thanks, i'll send you an IM in the morning if you are still on.. (o;
|
|
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
|
09-14-2006 05:29
Oh no, I'm sorry to hear that. I got a friend to look at it, she took out the ID in (id). I added a contents list, but am stuck again as to what i should be putting in the script. I have it in an objet, with a couple animations and the contents list, but it doesn't do anything aside from say the animations are loaded... Perhaps when you do get a chance to come in game you would like to look at it for me? (o; Thanks again for your help, i appreciate it a lot. I realise exactly what I've done, another case of not testing properly! The current code was adapted from a touch to a sit. It needs both to allow the user to select a different anim. Add the following code to the Running state CODE
This will redisplay the selection menu each time the prim is touched. |
|
Dante Breck
Spellchek Roxs
Join date: 29 Oct 2006
Posts: 113
|
01-15-2007 10:31
Just reading through this, does this start playing a default (or last played) animation or does it pop-up a menu upon sit to select which one to begin playing? Hmm and now just had an idea of playing a random animation upon sit ... hmmm.
|
|
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
|
01-15-2007 10:54
Just reading through this, does this start playing a default (or last played) animation or does it pop-up a menu upon sit to select which one to begin playing? Hmm and now just had an idea of playing a random animation upon sit ... hmmm. I think it was written to start a default animation when sat upon. |
|
Kathmandu Gilman
Fearful Symmetry Baby!
Join date: 21 May 2004
Posts: 1,418
|
03-17-2007 08:53
Hi there, I am having problems here. I am trying to get this to work but I am having no luck. I'm not real sporty with scripts which explains a lot
Could you post a version of the script with the addition placed? I tried inserting it into the running state but my av just sits. Also I get no menu option. Can you explain the content notecard a bit better? I need an example because what you have makes no sense to me. Is the actual name of the animation "sit 1" or "sit_on_ground"? Say for instance I want my first dance animation on my menu to be "Dance 1" and it is named in my inventory "slow dance 2" what should the notecard look like? Thanks a bunch _____________________
It may be true that the squeaky wheel gets the grease but it is also true that the squeaky wheel gets replaced at the first critical maintenance opportunity.
|
|
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
|
03-17-2007 14:18
Hi there, I am having problems here. I am trying to get this to work but I am having no luck. I'm not real sporty with scripts which explains a lot Could you post a version of the script with the addition placed? I tried inserting it into the running state but my av just sits. Also I get no menu option. Can you explain the content notecard a bit better? I need an example because what you have makes no sense to me. Is the actual name of the animation "sit 1" or "sit_on_ground"? Say for instance I want my first dance animation on my menu to be "Dance 1" and it is named in my inventory "slow dance 2" what should the notecard look like? Thanks a bunch As posted previously, the notecard format is as follows CODE
i.e. "SIT 1" will be displayed on the dialog button and play animation "sit_ground_one" when selected. i.e. for your example CODE
NOTE: the animation must be in the objects inventory not yours. Orginal Code updated: Also bug fixed. Unless a sit target has be added to the object, llAvatarOnSitTarget will return NULL_KEY regardless. CODE
|
|
JR Laszlo
Registered User
Join date: 29 Dec 2006
Posts: 8
|
Works Great Except for !!!!
03-19-2007 16:24
Im using this in a dance table and it all works great except for when dancers choose sit from the pie menu to get on the table and then choose and animation from the menu they start dancing on the floor and the table top is around their waist. How do I get the avies to dance on the table?
|
|
Kathmandu Gilman
Fearful Symmetry Baby!
Join date: 21 May 2004
Posts: 1,418
|
03-19-2007 17:22
Need to put the script into a separate poseball and use it to position the dancer.
_____________________
It may be true that the squeaky wheel gets the grease but it is also true that the squeaky wheel gets replaced at the first critical maintenance opportunity.
|
|
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
|
03-20-2007 00:46
Need to put the script into a separate poseball and use it to position the dancer. Nope just adjust the sit target vectorInstead of CODE llSitTarget(<0.,0.,0.1>,<0,0,0,90>); Try CODE llSitTarget(<0.,0.,1.0>,<0,0,0,90>); |
|
JR Laszlo
Registered User
Join date: 29 Dec 2006
Posts: 8
|
Got em on top!!!
03-20-2007 16:45
Yep, that did her. Kinda stumbled across that oone when comparing two scripts. Im also looking to make it group use only. I have figured out its an Integer group use line and is set to true or false from an old script but there has to be some action to boot people that arent group members in the script itself. So I'm hopin for some help again. I got the new integer line to compile and save but it didnt do anything to help of course since there is no script action to accomplish what its asking for now. These will be paid tables with a camping script to pay by time and a tip script as well so they have to be for group use only or I'll go broke. The last statement was from experience btw.
![]() |
|
JR Laszlo
Registered User
Join date: 29 Dec 2006
Posts: 8
|
Object Error ??
03-20-2007 17:13
getting an object error when a dancer sits on the table as follows:
Object: Couldn't find animation The menu works and they can choose a dance and start dancing but the script error remains. Is this the way I have the notecard set up. I removed everything except the top line ; Name,anim and then added the button names I wanted and the dance after the comma with no space like this: Button,myanimname etc listing 5 custom dances to choose from. It all works just gives this error when resetting the script [16:59] Object: Error - () Not an Animation. [17:10] Object: Error - () Not an Animation. [17:10] Object: Error - () Not an Animation. [17:10] Object: Error - () Not an Animation. [17:10] Object: Dance Table Loaded - 5 Available. and the above mentioned error when sittin on the object. |
|
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
|
03-22-2007 08:44
getting an object error when a dancer sits on the table as follows: Object: Couldn't find animation The menu works and they can choose a dance and start dancing but the script error remains. Is this the way I have the notecard set up. I removed everything except the top line ; Name,anim and then added the button names I wanted and the dance after the comma with no space like this: Button,myanimname etc listing 5 custom dances to choose from. It all works just gives this error when resetting the script [16:59] Object: Error - () Not an Animation. [17:10] Object: Error - () Not an Animation. [17:10] Object: Error - () Not an Animation. [17:10] Object: Error - () Not an Animation. [17:10] Object: Dance Table Loaded - 5 Available. and the above mentioned error when sittin on the object. drop a copy of your notecard on me in world, full mod please and I'll check it out for you |