I am making a game dealing with four different attacks, it is my crummy Pokemon ripoff, but when I play and use one of the attacks for the first time, the enemy's health doesn't change. It only happens with one attack called "stab".
set /p attack= I will...
if '%Attack%'=='firebolt' set /a mana=%mana%-40-%exp% & set /a monsterhealth=%monsterhealth%-60-%exp% & echo You set ablaze the %monster%! & goto cam
if '%Attack%'=='block' goto ctblockm & echo You stand ready to block!
if '%Attack%'=='regeneratemana' set /a mana=%mana%+40 & echo You have regenerated 40 points of Mana by using your special ability! & goto cam
if '%Attack%'=='stab' goto stabm
if not '%Attack%'==[['firebolt']]-o[['stab']]-o[['block']]-o[['regeneratemana']] echo check spelling
if '%mana%' lss 1 goto nomanam
pause
goto cm
:stabm
set max1=4
set min1=1
Set /A dmg=%random% %% (max1 - min1 + 1)+ min1 & echo you ready your blade for a lethal strike!
if '%dmg%'=='1' set stabdmg=30 & set /a monsterhealth=%monsterhealth%-%stabdmg%-%exp% & echo You strike!
if '%dmg%'=='2' set stabdmg=30 & set /a monsterhealth=%monsterhealth%-%stabdmg%-%exp% & echo You strike!
if '%dmg%'=='3' set stabdmg=30 & set /a monsterhealth=%monsterhealth%-%stabdmg%-%exp% & echo You strike!
if '%dmg%'=='4' set stabdmg=50 & set /a monsterhealth=%monsterhealth%-%stabdmg%-%exp% & echo critical hit!
goto cam
If you want me to edit it for more detail, please ask me to in the comments. Thank you!