// :CATEGORY:AO // :NAME:ZHAO-II AO for Second life // :AUTHOR:Chloe1982 Constantine and others // :CREATED:2014-01-30 19:59:33 // :EDITED:2014-01-30 19:59:33 // :ID:1016 // :NUM:1572 // :REV:1.0 // :WORLD:Second Life // :DESCRIPTION: // ZHAO=II compatible AO using the new LSL Animation functions, timer is now used only to detect swimming // :CODE: // As an exercise, I took a version of ZHAO II core and rewrote it to be compatible with a linked message interface, but used the new functions; // It still needs to poll for swimming but I figured that could be done at a much slower rate than normally used in an AO. // I had to forgo the ability to replace the typing anim since that would require a faster timer. // The new animation override functions don't allow for stacking anims in the way you used to with the , separator so that was given up. // Finally, in the interests of cramming the core into a single 16k LSL compiled script I didn't implement the timing option for the different anims; // it could certainly be done, I just chose not to do so! // ZHAO-II-core - Ziggy Puff, 07/07 ///////////////////////////////////////////////////////////////////////////////////////////////////// // Evie Moriguchi/Edie Shoreland, 10/05/15 - Allow (but ignore) any [ Typing ] animations // included in notecards without the script sending an error message. // [No need to edit the "Default" notecard, Making it easier to dump ZHAO // contents from an older ZHAO into a bot friendly single prim style AO. // Put all animations (including the typing ones), this script, and the // unedited "Default" notecard into a prim and reset the script.] // Fixed so sitOverride == FALSE actually turns off the sitting override // [Sit Override OFF is just the better option for bots and NPCs, no more // weird glitchy sits while two priority 3 animations fight it out.] // // Chloe1982 Constantine, 05/08/13 - Modified/Updated to use the new LSL Animation functions, timer is // now used only to detect swimming (timerEventLength) // // Ziggy, 07/16/07 - Warning instead of error on 'no animation in inventory', that way SL's built-in // anims can be used // // Ziggy, 07/14/07 - 2 bug fixes. Listens aren't being reset on owner change, and a typo in the // ground sit animation code // // Ziggy, 06/07: // Reduce script count, since idle scripts take up scheduler time // Tokenize notecard reader, to simplify notecard setup // Remove scripted texture changes, to simplify customization by animation sellers // Fennec Wind, January 18th, 2007: // Changed Walk/Sit/Ground Sit dialogs to show animation name (or partial name if too long) // and only show buttons for non-blank entries. // Fixed minor bug in the state_entry, ground sits were not being initialized. // // // Dzonatas Sol, 09/06: Fixed forward walk override (same as previous backward walk fix). // // Based on Francis Chung's Franimation Overrider v1.8 // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. ///////////////////////////////////////////////////////////////////////////////////////////////////// // Main engine script - receives link messages from any interface script. Handles the core AO work // // Interface definition: The following link_message commands are handled by this script. All of // these are sent in the string field. All other fields are ignored // // ZHAO_RESET Reset script // ZHAO_LOAD| Load specified notecard // ZHAO_NEXTSTAND Switch to next stand // ZHAO_STANDTIME|