I would say that's a bit advanced for a beginner.
One of the easiest ways to learn would be to import my game into Twine and looking through my code to see how made it work.
I'm not sure if that works with the browser version of Twine though.
What I'd say you should focus on right now is just getting the basics of writing down and learning how they work before trying to make battle systems