note: using a resource trigger in an expansion can freeze up a script for zerg, if that trigger will make the AI build buildings when the expansion is destroyed and that trigger is set off. (the AI has no where to build)
Got a working example? I mean, that kind of makes sense, but I don't know how it's limited to resource triggers; that seems to imply that it wouldn't normally freeze when it tries to build on a destroyed expansion. That sort of thing seemed to happen a lot, regardless of the expansion logic in them.
This is just what i noticed writing my zerg script, I noticed it froze whenever it lost an expansion, so i removed a resource trigger for building lots of sunken colonies, and that fixed the problem. I can elaborate in a post if you want.
Let me know if you figure out how to make desoyed expansions not slow the AI down if it's just some trick with using the right set of commands. I couldn't do it; I ended up removing sunkens/drones past the natural expansion. :/