Press 0 to get out of the functions. Im sorry for those who have encountered the event bug where you could not attack after you won. I recommend for now you just stop the project, and restart it. Press arrow keys to move in battle and space to attack. Press p in characters to select characters. Just type it in.
Thanks me for all coding, thanks pebsscratchcoding for part of brik ideas. Thanks pvz heroes for some inspiration and music.