00:00 Previously, we created the option to attack, heal, or run away. It doesn’t do anything yet, but I’m going take this off still. And now we move into the conditionals. You don’t have to do this in the order, but I think it’ll work, so I’m just going to start with implementing attack.
It’s the player attacking and dealing damage to the monster. So I will not have to change
player_health, but I have to change
monster_health and subtract whatever damage gets calculated using
random. First, I need the conditional to say this option should trigger if the player pressed
A for attack.
Become a Member to join the conversation.