Intro:
This is my full-perms redistributable AO script.
Why make it so open? ZHAO has been the standard in SL for many years, but relies on an old outdated script method that is a bit slow, and breaks in no-script areas. It needs to be phased out. This is my idea for a phase out.
I've made it an open script so that people can take it, improve it, and hand it out with their animation kits - much as they do with the old ZHAO.
I'm hoping people like this and spread it around, but given how long it's been that ZHAO has been dominant, I don't expect this to take over any time soon...
That said, if you're using an AO that breaks in a no-script zone, you need to switch off of it... Not need as in "you're a lag monster", just need as in... why live with that hassle? The code to let AOs keep working even in no-script areas was added to SL in 2013... and 7.7 years later still almost no one has upgraded... /sigh...
So take my code, make it your idea of better if you want, and let's get into the current decade at least...
There are 2 scripts in here:
MyCyclingAO_v1.0
MyCyclingAOTypingVersion_v1.0
The second one is to be used if you use typing animations, but will give errors if you use it without having typing animations setup in the 'Default' notecard.
This is a radically different kind of AO that you might be used to.
- It sets your animation state, not your animation. So it will keep working when you go to a no-script area, and even if you take i off. It just won't change animations while in no-script or detached.
- It changes your animation state random every 'about 45 seconds'
- It has no buttons, and can be hidden off screen.
- everything works through chat commands on "channel 3" - you can edit the script to change this channel to something else... I made it '3' because that's super fast to type in.
- you can always get the instructions by typing "/3" and hitting enter.
- It works as a regular AO, plus dance AO, plus typing AO
- currently it lacks a swimming AO.
- it uses extremely low script time and has active memory management to keep a very low footprint.
Setup:
Short version, more detailed breakdown in the notecard:
1. Rez a prim.
2. Put all the animations from your old ZHAO AO into the prim.
3. Put the notecard of your old ZAHO AO that is named 'Default' into the prim.
4. Put the script 'MyCyclingAO' into the prim, or 'MyCyclingAOTypingVersion' if you have typing animations.
5. Take the prim into inventory.
6. Attach the prim to a HUD Spot.
7. Edit it and use your mouse scroll wheel to 'scroll back' so you can see the 'edge of your normal screen'. Drag the prim to outside of there so it's 'usually hidden'.
8. A bunch of stuff will spam you in a private chat in the 'Nearby Chat' window...
9. When the spam is done... type '/3' and hit return
10. It will now spam the instructions on how to use the AO.
- Somewhere in this process you MIGHT get a popup asking for permission to animate you, if it's from this prim, accept it / allow it.
I apologize for the config notecard being named Default. This was a VERY BAD decision made by ZHAO years ago, and I was very tempted to fix it to something that made sense like 'Config' or 'Configuration'... but doing so would have complicated things for people coming over from ZHAO.
The script ends with:
/*
* v1.0 Written by Pussycat Catnap
* You may redistribute this or make new versions as long as you keep the version
* history credits here, adding your own versions below those before you.
* Always keep this script itself full-perms, though you can place it inside
* items with more restricted perms
*/
+-----INSTRUCTIONS-------------------------+
To control your AO type a request on channel /3
These are the options:
/3 list
- Get a list of all animations for your current position.
/3 random
/3 next
- Switch to a random or next animation depending on mode.
- Can also just type /3 r or /3 n
/3 0 to /3 #
- Switch to a specific animation.
- get the number from /3 list
/3 on
/3 off
- Toggle the AO between on and off.
/3 sit on/3 sit off
- Toggle the sitting AO on or off.
- furniture works reliably when this is off. When on it will only override furniture if
- your AO animation was originally made with higher priority than the furniture.
/3 verbose or /3 v
- Toggle the AO between verbose and silent modes
/3 dance or /3 d
- Toggle the dance system on or off.
/3 dance list or /3 d l
- Get a list of dance styles.
/3 dance # or /3 d #
- Switch to the #'d dance style.
/3 kbs
- get current memory usage for your AO.
/3 mode
- switch AO between 'random timer', 'sequential timer', and
- 'stay in current' modes. Each use moves to next mode..
/3 boot
- reBoot the entire AO script (runs llResetScript(), then reloads notecard).
For all 'word' options only the first letter is actually required, such as '/3 o' or '/3 s', Numbers require the full number.
+------------------------------------------+
- llSetAnimationOverride
- Dance HUD
- AO
- ZHAO
- AnimationOverride
One Day In
Too early for a final review, but my initial impression is I like it for several reasons. First, it's designed to take up 0 real estate on screen. Everything can happen via chat commands and thus gestures. second, it's very low lag so far. Third, it's easier to change poses and it seems to eliminate a need for a dance hud as well. I believe the cycle time is about 45 seconds on pose changes and I would like to be able to set a longer time. other than that, so far I'm very impressed.
Walk Stutters
Unfortunately if you have additional objects that animate on walk (wings, tail, walking sticks, etc) it will cause the walk to freeze up. Otherwise it's a good little AO.
Excellent script - loved the free prim too
All my alts are now using this script for their AO. It's easy to use, and the notes clear any lingering AO mystique. A big improvement on the regular antique Zhao script. May not be as full featured as Firestorm's built-in, but I find it easier to use, and has the big advantage that you can change it by RLVa script too.