Difference between revisions of "Set"

1 byte added ,  03:46, 17 April 2006
m
no edit summary
imported>JOG
m (clarifications about using "-" as operator or sign)
imported>JOG
m
Line 9: Line 9:
  set stage to getstage quest1 + 10
  set stage to getstage quest1 + 10


As you see, when you put a minus right in front of a variable it will be negated. To acomplish this, the parser needs you to put spaces arount all minuses that are actually operators instead of signs. If you use "a-b" in the above example, the script doesn't compile; it needs to be "a - b".
As you see, when you put a minus right in front of a variable the variable will be negated. To acomplish this, the parser needs you to put spaces arount all minuses that are operators instead of signs. If you use "a-b" in the above example, the script doesn't compile; it needs to be "a - b".




[[Category:Commands]]
[[Category:Commands]]
Anonymous user