Simutrans Tools
Know our tools that can help you to create add-ons, install and customize Simutrans.

[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.


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:

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


Parsley, sage, rosemary, and maggikraut.