Using the pause command I found that the error is in the first line of this code:
if %choice% == 1 if %energy% => %m2enc% set /a enemhp=%enemhp%-%m1hpd%+%earmr%
pause
set /a energy= %energy%-%m1enc%
set /a hp= %hp%-%edefense%
set /a defense= %defense%+1
goto battle
So don't say that I forgot to set the energy and the m2enc, because I did just in a different section, I also tried replacing %energy%
with 10
and m2enc%
with 1
and it still didn't work, I tried replacing the =>
with >=
and with LSQ
(apparently an alternative for less than or equal too) So I would like to know whats wrong with this part.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…