Weird problem with number variable
Posted: Sat Sep 07, 2019 10:37 am
Hey, I have an issue with a number variable that I can't figure out.
I have a variable "Gold", which I set to 3. I then have a dialogue entry: "Here's a bag of gold", which should be available whenever your Gold variable is equal or greater than 1.
The condition on the dialogue entry is:
Variable["Gold"] >=1
And the script is:
Variable["Gold"] = Variable["Gold"] - 1
However, when I tested this, for some reason is is deducting 2 Gold each time you pick that dialogue entry.
Have I made a really obvious mistake or is something weird going on?
I have a variable "Gold", which I set to 3. I then have a dialogue entry: "Here's a bag of gold", which should be available whenever your Gold variable is equal or greater than 1.
The condition on the dialogue entry is:
Variable["Gold"] >=1
And the script is:
Variable["Gold"] = Variable["Gold"] - 1
However, when I tested this, for some reason is is deducting 2 Gold each time you pick that dialogue entry.
Have I made a really obvious mistake or is something weird going on?