*input_number (negative numbers)

I’m trying to use the *input_number tool, but for the task I’m using it for, the minimum number needs to be a negative number. Unfortunately, when I try to set the minimum number as a negative number, it doesn’t seem to work. For example:

*input_number strength 0 10

works just fine, but:

*input_number strength -10 10

comes up with the error, “startup line 35: Invalid expression at char 10, expected NUMBER, STRING, VAR or PARENTHETICAL, was OPERATOR

Anybody know if there’s any way to allow the minimum value on an *input_number to be a negative number?

@Avery_Moore
Edit: Solved it.

*temp test 0
*input_number test (0-10) 10

test = ${test}
1 Like

Perfect! Thank you so much! :grin:

1 Like

Just don’t use negative numbers. ChoiceScript doesn’t work well with negative numbers.