![]() |
![]() ![]() ![]() ![]() ![]()
|
Author | Topic: Question concerning variables |
Tyrant |
![]() In my little example, I want the player to type any number from 1 to 20 by using the "Put what the player types next to ? string variable". The string variable is called #digit#. Now how can I check to see that the player only types a number from 1 to 20? I want to prevent the player from typing any letters or words, as well as any numbers less than 1 or greater than 20. Does Quest have a specific function for this? Thanks |
Alex |
![]() Anything that isn't a number should be evaluated as zero, so this should work: enter <digit> |
carlii |
![]() What a good idea Alex. Thanks! |