Hello all! Question from a programming novice. Say that your character has worked hard to irritate the clergy, sinking your “devout” stat way down below zero. Negative stats work fine in the stat chart, but the game breaks when I try to work them into an *if code like the following:
*if devout < -5 The priest stares at you with contempt and horror. "I recognize you, blasphemer!" *goto excommunication *elseif (devout > -6) and (devout < 25) The priest nods distractedly when you enter the temple but otherwise ignores you. *else "Brother! Welcome back to our congregation!" The priest ushers you warmly into the sanctuary.
This doesn’t work, of course… I assume because “-” can only mean minus, not negative.
None of my tortured configurations of parentheses could get ChoiceScript to recognize a negative number in my code. My stitch-up solution has been setting the baseline “devout” score so high that no amount of sacrilege can get you below zero… but I assume there’s another way of representing negative numbers in code? Maybe something totally obvious that I’ll be embarrassed to have missed?