My code, super rough, looks like something like this (with the dashes removed and replaced with space, of course. I just put them there to indicated space numbers for this post).
----*if (enemy_hp > 1)
------You deal damage! (insert rest of damage code)
------*rand enemy_magic_attempt 1 5
------*if (enemy_magic_attempt = 5)
--------Code for enemy magic damage.
--------Code for enemy physical damage.
My problem is that, on line six of that code, I get the error saying increasing indent was not allowed, expecting 6 was 8. I’m assuming it meant I can’t indent that much. If so, how could I make this code differently?
It’s all there, everything for a working battle. I tested it and it works almost perfect. My problem is that, if I have to leave out the part that is indented “too far” then my enemies will be able to do one single attack, no magic attacks or critical hits. How can I change this?
Or have I simply messed up my code?