I think I'm missing something.
From your tutorial I can easly see how to add mid-battle scripting, but I'm not finding anything how to edit a mid-battle script that's already in place (as you said, if i understood correctly, the one that de-activates the mega evolution after a certain treshold...
I'm trying to make a battle vs a mega pokemon, so I'm using the wildMegaEvolution script, but is there a way to remove the fact that after a certain damage the pokemon reverts back (or to edit that threshold) or to at least remove the text saying that "it can now be captured"?