I'm having a problem with a script I've been writing.
I use the following trigger to get a number in representing the number of a certain potion in a container.
It sends the number to a script and puts it into a variable. I created another variable:
Then later in the scrip I compare the two like this:
Where sanctuary is the number brought in from the trigger. Even when sanctuary is clearly less then 1500, it doesn't go through the if code. Can anyone help?
I use the following trigger to get a number in representing the number of a certain potion in a container.
^\s*(a|an)\s*(sanctuary|bless|fly|armor|protection|true|create|alertness|dispel|grounding|heal|cure|empty)\s*(blindness|poison|magic|spring|sight|)\s*(potion|flask)\s*\(\s*(\d+)\s*\)\s*$It sends the number to a script and puts it into a variable. I created another variable:
maxLong = 1500Then later in the scrip I compare the two like this:
if sanctuary < max long thenWhere sanctuary is the number brought in from the trigger. Even when sanctuary is clearly less then 1500, it doesn't go through the if code. Can anyone help?