int count;
if (get_property("lastEncounter")=="monster")
count = count +1
if my_adventures() == 0
print ("I've encountered " + count + " monsters that I'm tracking today");
int counta;
int countb;
int countc;
if (get_property("lastEncounter")=="monster a")
counta = counta + 1
if (get_property("lastEncounter")=="monster b")
countb = countb + 1
if (get_property("lastEncounter")=="monster c")
countc = countc + 1
if my_adventures() == 0
print("I've encountered " + counta + " monster a, " + countb + " monster b, " + countc " monster c today");
I would think the best way of doing what you want is by parsing the session_logs().
You can then find the encounters, determine if they have been defeated, and you could record free and/or multi-stage fights.
I will leave the how as an exercise for the reader.
string LastAdvTxt() {
string lastlog = session_logs(1)[0];
int nowmark = max(last_index_of(lastlog,"["+my_turncount()+"]"),last_index_of(lastlog,"["+(my_turncount()+1)+"]"));
return substring(lastlog,nowmark);
}