Below is a basic example of what an auto build script might look like. : This example is for educational purposes and might not work as-is in your game.
Here's a very basic, hypothetical example of a script you might use in Theme Park Tycoon 2 to auto-build a simple part (this is NOT an actual script for Theme Park Tycoon 2 but an educational example): Theme Park Tycoon 2 Auto Build Script Pastebin BEST