Do something on event

Would that directly modify default game files? I’m hoping to develop a mod that doesn’t directly alter the base game files. I would like to document the stats for each of a player’s tames in an array and update them only as they change. So I thought responding to existing events would be cleanest.