/****************************************************************** * Shared prop script (alpha) v0.04a * Allows props to be "shared" i.e. props will rez while any one of a number of POSE/SYNC are playing for any avatar. * Also replaces the need for the "Rez Same Prop for Several Poses" script. * Requires [AV]prop script from AVsitter2 box 2.1-09 or later. * Shared props should use PROP3 in the AVpos notecard (a special prop type specifically for shared props). * Shared props can be set up in SITTER 0 section of the AVpos notecard in a regular setup prim, or in a dedicated rezzer prim. * Props for a specific sitter can use PROP, PROP1 or PROP2. * All props referenced by this script should be named different from pose names (unlike basic props, which do have names that match poses). ******************************************************************/ /****************************************************************** SITTER_SITTER_PROPS_N_POSES is your list of SITTER#, PROP names, and POSE/SYNC names the props are for. e.g: 0,"weights", "stand1,stand2" -1 for SITTER indicates the prop is for all sitters (i.e. shared prop, that should use PROP3 in the AVpos notecard). e.g: -1,"prop1", "sit1,sit2,sit3" "*" for POSE name indicates the prop should rez for all poses. ******************************************************************/ list SITTER_PROPS_N_POSES = [ -1,"prop1", "sit1,sit2,sit3", -1,"prop2", "sit4,sync2", -1,"prop3", "sync1,sync2", 0,"hat", "*", 0,"weights", "weights1,weights2", 1,"weights", "weights1,weights2" ]; /****************************************************************** * DON'T EDIT BELOW THIS UNLESS YOU KNOW WHAT YOU'RE DOING! ******************************************************************/ list SITTER_PRIMS; // which prims have AVsitter setups list SITTER_POSES_BY_PRIM; // which poses are playing for each sitter in each prim list SITTERS_BY_PRIM; // which sitters are occupied in each setup prim list REZZED; // which props are rezzed, for which avatars integer ANY_SITTERS; // if avatars are sitting rez_derez(){ integer i; for (i=0;i