There seems to be an error on line 633. There's a dot pretending to be a comma in this piece of code:
print("BCC: This script is estimating this ("+opp+") monster's HP as "+monster_attack()+" - "+monster_hp()+".". "purple");
Many thanks for this wonderful script by the way, it's better at...