Heey again,
I feel like I'm a regular in this forum now...
Anyway, I'm wondering if it's possible to establish a maximum value to a variable.
I'm using Twine 2 and Sugarcube 2.18.
My idea is to create a variable to describe a relationship status between two characters. I was thinking of something from 0 to 10, where 0 was the worse the relationship could be at, and 10 the best. And I was thinking throughout the story, depending on the choices made, to simply use something like <<set $relationship ++ >>. But I didn't want the value to ever surpass the 10. How do I do that without having to always go check if the variable is at 10 yet??
I don't know if I was really clear, but I'd appreciate any help
I feel like I'm a regular in this forum now...
Anyway, I'm wondering if it's possible to establish a maximum value to a variable.
I'm using Twine 2 and Sugarcube 2.18.
My idea is to create a variable to describe a relationship status between two characters. I was thinking of something from 0 to 10, where 0 was the worse the relationship could be at, and 10 the best. And I was thinking throughout the story, depending on the choices made, to simply use something like <<set $relationship ++ >>. But I didn't want the value to ever surpass the 10. How do I do that without having to always go check if the variable is at 10 yet??
I don't know if I was really clear, but I'd appreciate any help