|
Expressions can't subtract a negative number
Issue Type: |
Status: |
Priority: |
Date Submitted: |
Votes: |
Bug |
Completed |
Critical |
Thu 12th Dec 2013 |
2 votes
 |
|
Found in version: |
Last Updated: |
Completed in version: |
Date Completed: |
Track Changes: |
5.0.31.4 |
Sat 22nd Feb 2014 |
5.0.32 |
Sat 22nd Feb 2014 |
Log In |
|
saabie | | Thu 12th Dec 2013 13:42 |
I was using the following function:
%NumberAsText[%Player%.Location.s_FloorNum-%number%]%
But if %number% is negative then it gives a "bad expression" ADRIFT error:
%Player%.Location.s_FloorNum--%number%
Putting brackets around %number%:
%NumberAsText[%Player%.Location.s_FloorNum-(%number%)]%
did not work either.
|
|
Campbell | | Sat 22nd Feb 2014 17:18 |
Expressions themselves can handle this ok, the problem is with Item Functions. It was reading - as a continuation of the function name, and failing to parse. Fixed. |
|