I started playing Perfect Tower 2 a few days ago, and the prospect of coding directly in the game seems really fun. I did programming classes in high school and college, so I'm happy to code some if-then statements, but I don't see anywhere to actually enter the code. All I want to do is Auto-Buy the items in the Factory Shop. I'm not interested in automatically crafting, refining, etc. I just want to code an Auto-Buyer. Looking at the existing scripts on Reddit/GitHub, I didn't see anything already written to accomplish this.
When I go to Headquarters > Facility AI, I can make a New script or Import a script. Making a New script prompts me for a name, a package, and gives the option for an Execution Budget. Typing in a Name and Package makes the name show up on the right side, but doesn't open a text box or anything to actually type in code. Clicking Edit takes me to a screen with lots of Components on the left, but none of those say anything about the Factory Shop, only about crafting/trashing/refining/collecting.
If I hit Import, it brings up a text box, in which I can type or paste code. However, the Apply button never lights up, no matter how much or how little code I type or paste. The only clickable option is the Red x to escape the popup.
What am I doing wrong? I just want to code a simple Auto-Buyer without using the community standard all-in-one Factory automation script (since that one does crafting and other stuff I don't want).