TwineFray: A Battle System for Twine · OhioFi.com
ohiofi.com/blog/twine-battleIn this post, I'm going to cover one way to create a battle with an enemy in Twine. Let's start with the variables. The only variable that is really needed is $health, but to make things more interesting, we will also create a few different ways to attack the enemy and a way to buy more health. We should set up these values at the beginning of the game. Players will start the game with the ability to punch or kick but will not have any other weapons.