Build.Remainder:Int                        (read/write)

Remaining amount after partial build. If an operation like BuildFactories cannot finish completely, because of lacking resources or room, it can be told to build as much as possible instead of failing using the "n" flag. In this case, it stores the amount of structures not built in this variable.

If a local variable Build.Remainder is visible, the result is stored in that instead of the global one. It is therefore a good idea to define a local variable to capture results without disturbing or being disturbed by other scripts.

This is a testing version.
It may be incomplete, and have more bugs (or features) than the public live version at planetscentral.com.