|
Dez Singh
NooB
Join date: 25 Apr 2007
Posts: 12
|
12-02-2007 09:20
I'm in some serious need for a script that is too complicated for me to write on my own. I've tried to find it for sale as well but I haven't found it anywhere.
So I turn to someone out there who knows more about scripting tan me, and who's willing to help me out!
I need a script that can trigger avatar animation via a separate channel in the chat.
So if I say "animation X" my avatar moves according to animation X.
I need the script to host several animations, round 5-10 should be fine.
Also, I don't want a menu popping up.
Please can someone help me on this? I'll be more than grateful!
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
12-02-2007 09:54
From: Dez Singh I'm in some serious need for a script that is too complicated for me to write on my own. I've tried to find it for sale as well but I haven't found it anywhere.
So I turn to someone out there who knows more about scripting tan me, and who's willing to help me out!
I need a script that can trigger avatar animation via a separate channel in the chat.
So if I say "animation X" my avatar moves according to animation X.
I need the script to host several animations, round 5-10 should be fine.
Also, I don't want a menu popping up.
Please can someone help me on this? I'll be more than grateful! search inworld for "WetIkon AO" the script is open source, and there is a sub scrip that does exactly what you want, you could easily tweak it for specific channels
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
Lear Cale
wordy bugger
Join date: 22 Aug 2007
Posts: 3,569
|
12-02-2007 09:56
If it's an item you wear, you can do this. Put all the animations in the object's contents.
Use llListen() to register to listen on the channel you want. Specify llGetOwner() as the key, so it only listens to the owner. Generally best to do this in the state_entry() handler.
Call llRequestPermissions(llGetOwner(), PERMISSIONS_TRIGGER_ANIMATION) in the attach() handler, when the passed key is not NULL_KEY. Normally when you call this you also have to have a run_time_permissions() event handler to find out whether the user accepted or not, but for a worn or sat on, this always succeeds and you don't have to.
In the listen() handler, call llGetInventoryType(message), where message is the argument from the listen() hander. If it returns INVENTORY_ANIMATION, then the message matched an animation, so you can start it by calling llStartAnimation(llGetOwner(), message). Save the anim name (message) in a global variable so you can stop it later.
In the attach() handler, if the passed key is NULL_KEY, this means the owner stopped wearing the object, so you want to stop the animation. Call llStopAnimation() and pass the saved animation name. You might also want to do this in the listen() handler if the passed message is "off" or "stop" something like that.
Have fun!
PS: if you want someone to write the script for you, post in Products Wanted.
|
|
Dez Singh
NooB
Join date: 25 Apr 2007
Posts: 12
|
Thank you!
12-02-2007 22:55
Thank you for your help! I got it working the way I'd hoped. *hugs everyone in the forum*
|