Twine Version: 2.3.16
Story Format: Sugarcube
I am getting an unexpected error when going through my combat passage. It doesn’t happen everytime, but every like 5 or 6 go rounds, this error pops up, so I think it may have something to do with the crit roll variable, but I can’t seem to figure out why it isn’t working. The actual error says "<>: bad conditional expression in <> clause (#2): Unexpected string. " (First bracket has if in it, second bracket has elseif in it, dunno why it’s not showing up here)
And here is the actual block of code that is getting the error.
<<if $critroll <= $playercritchance>> <<set $enemyHP to $enemyHP -= ($primarystat * 3)>> <<print '$name delivers a critical strike! $enemyname takes ($primarystat * 3) damage!'>> <<elseif ($roll1 + $playerhit) >= ($roll2 + $enemyevasion)>> <<set $enemyHP to $enemyHP -= ($playerweapondamage + $roll3)>> <<print '$name connects with a powerful swing! $enemyname takes $playerweapondamage + $roll3 damage!'>> <<elseif print '$name misses!'>> <</if>>
Any help would be appreciated, this has me stumped.