Antonis said:Hello, guys, one question. I am getting this error when I compile:But this is already declared in module constants quite clearly, like this: slot_town_merchant = 23Code:ERROR: Usage of unassigned local variable: :town_merchant
you are using a variable (":town_merchant") inside a loop/if-then-else (try_begin/try_end) without first giving it a value. Its a warning telling you this could be bad.
Example correct usage:
Code:
(assign, ":town_merchant", 0),
(try_begin),
....
(val_add, ":town_merchant", 10),
....
(try_end),
This can lead to a series of problems. Unexpected bugs (logic error) is the most common.
However if you (or any player) is using a Mac/Linux the engine handles those in a different way and can assign to it a negative max integer value. Thats how, as a example, those players can have a budget of -6 billions coins :XD