News:

Simutrans Forum Archive
A complete record of the old Simutrans Forum.

[Script Tool] Global variables always return to their starting value

Started by Yona-TYT, October 28, 2022, 07:07:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Yona-TYT

If I define a global variable "count <- 0" then run the tool and perform an increment "count++", when I release the click the variable will return to zero.

Try here: test_tool_err.zip

Edit.
I confirm that with the one-click tools there are no problems.


Dwachs

Parsley, sage, rosemary, and maggikraut.