HTML [Twine] Combat - How does one do it?

Iron Cunny

Newbie
May 24, 2020
82
30
I'm returning to my Twine game and I have a thing I realized: I know jack shit about how to do combat. Also I'm working on no budget so I can't really... you know... buy things to help me. I am wondering if some of you have any advice.
 

Greeedium

Newbie
Dec 17, 2021
40
24
Well, it depends on what type of combat you want.

Assuming that you're doing Twine you will probably choose to do turn-based combat.

Turn-based combat is actually very simple.

The first step is to enter a "Combat Loop"

Every Turn goes a little like this.
1. Check if you or your enemy is dead.
2. You/Enemy have a turn, that deals damage/Lust/ Whatever you desire.
3. Swap, so its the Enemys/Your Turn.

If you keep at it, you will have a never-ending loop of actions between Player, Enemy.

Once you reach 0 hp you want to navigate to a Passage "You Lost" and if you won you want to go "You won" Passage.