Quantcast
Channel: Help! with 2.0 - Twine Forum
Viewing all articles
Browse latest Browse all 1844

[Harlowe] Checking a variable to see if it's between two numbers

$
0
0
I'm making a game based around a character's opinion of you, and I'd like to have three possible outcomes: they LOVE you ($opinion > 6), they HATE you ($opinion < 2), or they're AMBIVALENT ($opinion between 2 and 6).

I'm not sure what expressions to use in order to check for something that is BETWEEN two numbers!

I've even tried an inelegant solution of just duplicating (if: $opinion = 2), (if: $opinion = 3), etc all the way up to 6, but that results in the following error: (if:)'s 1st value is an assignment operation, but should be a boolean.►

Viewing all articles
Browse latest Browse all 1844

Trending Articles