//This script was originally designed for gachas using AVSitter, but is also ideal for
//objects that can be modified containing AVpos notecards that cannot be edited or
//for AVpos notecards (like ones in gacha items) that you may not want to edit.
//CHANGE THE NAMES IN ani_names TO THE NAMES OF ANIMATIONS IN THE SIT MENU/AVpos NOTECARD
//YOU WANT TO RANDOMLY CYCLE THROUGH. (You can add more names, just use quotation marks.)
list ani_names = ["Male_01", "Male_05", "Male_06", "Male_10", "Female_05", "Female_06", "Female_08", "Male_08"];
//CHANGE THE INTEGER IN Tcycle TO THE NUMBER OF SECONDS YOU WANT BETWEEN ANIMATION AND
//POSE CHANGES.
integer Tcycle = 110;
float randomFloat;
string aniname;
integer aninumber;
integer synched;
default
{
state_entry()
{
synched = llGetListLength(ani_names);
llSetTimerEvent(Tcycle);
}
timer()
{
randomFloat = llFrand(synched);
aninumber = (integer)randomFloat;
aniname = llList2String(ani_names, aninumber);
llMessageLinked(LINK_SET,90000,aniname,"0");
}
changed(integer change)
{
if (change & CHANGED_INVENTORY) llResetScript();
}
}
Comments
0 B
|👍
/👎
0 B
|👍
/👎
0 B
|👍
/👎