I'll PM it to you. Since I don't know how to recreate it I'll just send you my project. The problem is on line 28 - the program won't even run, there's a runaway loop on line 28. Since I just restarted Construct all of the affected events show up properly, but as you mess with events they mess up. This happens if you restart Construct or not. Line 28 however is messed up right after you load the save.
This is what I'm talking about: "ChosenDirection" 0 "None" - where 0 means "is equal to" since "is equal to" is the first thing on the list, and I guess the list is 0 indexed. It happens more and more as you mess with the program.
What I just did, and you'll notice this if you check out the MacroGenerator Object and the list of Globals...is create all the Globals as private variables on that object, and through a lot of Find and Replace and manual editing, replace any instance of a global, with a reference to this object and it's private variables. Globals aren't necessary for the generation process since I only do it once. The problem is I guess I messed up somewhere cause line 28 is a runaway loop. While I was replacing, all these numbers started popping up and since I understood the problem I could check the index of what variable I wanted and replace it, but I guess I messed up at some point.
Anyway long story short - it'd be easier to identify where I messed up if it wasn't doing that.
Sending you the link Ash.
EDIT: Line 81 also results in a runaway loop, if I toggle events 28 and 81 the program runs, but those events are really important. Line 81 is also messed up. It looks like this:
Comparison: (Abs(MacroGenerator('ResidentialX') - MacroGenerator('IndustrialX')) + Abs(MacroGenerator('ResidentialY')-MacroGenerator('IndustrialY'))) / 2 [color=#FF0000:86rvvszv]3[/color:86rvvszv] (Abs(MacroGenerator('CommercialX') - MacroGenerator('ResidentialX')) + Abs(MacroGenerator('CommercialY')-MacroGenerator('ResidentialY'))) / 2
That's two distance calculations - distance on an array - being compared. (I generally want residential to be further from industrial than it is to commercial.) The 3 is the comparison, I made it red to be easier to see.