I made a combat system a little while ago and just “finished” on a character. I was very wrong, it seems like this specific passage every now and then just skips your turn. No math is made, no text is shown. It just successfully checks if the enemy has more than 0 Health and just continues. Nothing shows up except to continue.
<table align="center">
<tr>
<td>
[img[images/Voxiremise epe.jpg]]
<br>
HP: $SBHealth/100
<tr>
<td>Basic</td>
<td></td><td></td><td></td><td></td>
<td>Advanced</td>
<td></td><td></td><td></td><td></td>
<td width="150%">Ultimate</td>
</tr>
</td>
<td width="60%" align="center">
<!--Text and math goes here-->
<<set _ATKDice to random(1,20)>>
<<if _ATKDice + $ATKBonus < $EArmorClass>>
You enter a state of rage, wildly attacking every enemy in battle, but they dodged.
<<elseif _ATKDice + 4 >= $EArmorClass>>
<<set _FightDamage to random(10,35)>>
<<set $EHP to $EHP - _FightDamage>>
You enter a state of rage as you wildly attack the stone rat
with anything you can think of, dealing _FightDamage Damage,
the stone rat has $EHP Health left.
<</if>>
<br>
<<if $EHP > 0>>
[[Continue Thy Battle->NEW Stone Rat EATK V]]
<<elseif $EHP <= 0>>
<<set _EnergyGain to random(5,10)>>
<<set $SBEnergy to $SBEnergy+_EnergyGain+5>>
<<set _CoinGain to random(5,15)>>
<<set $SBCoins to $SBCoins + _CoinGain>>
You hath thlaughtered thy shtone rat, gaining _EnergyGain
Energy and _CoinGain Coins.
<br> [[Restart->NEW Combat Variables]]
<</if>>
</td>
<td>
[img[images/picturenotfound.jpg]]
<br>
HP: $EHP/50
</td>
</tr>
</table>
This is the code I have written, please explain why it doesn’t work I have not been able to figure this out. I cannot recreate this problem for the life of me.
