FYI :: if it tickles your fancy, as it does mine, the "action" code can be compressed
down to a single line in lite-c....
//originally
// these 3 lines have to be added to every entity that needs to be recorded
max_ents += 1; // get a unique entity number
my.skill99 = max_ents; // and store it inside skill99
play(my.skill99); // put this line here
//becomes
// now its just this one line, and it still does everything the old one did.
play((my.skill99=max_ents++));
and before you ask, "yes", the doubled brackets ARE required.
And Im pretty certaing you could just put
play(max_ents++);in the action if you put
my.skill99 = max_ents;into the first line of the 'play' function...