I've developed a few shape-shifting animal forms for my Druid Mod, and the casting of these spells has a possibility of a CTD, especially when cast outdoors because of all the processing going on already by the game engine for guard patrols, wolves chasing deer, the bandit killing the boar half a mile away, etc. etc. My animal form has a pretty big GameMode script attached to it, and I'm guessing that this is the problem (I don't know what else it could be). While debugging, I've found I can eliminate the CTDs by placing a message box right before I Enable the animal form in the spell script.
I suppose this allows the game engine some kind of a breather before it enables the animal form. Of course, I'd rather not have this message box in the finished product. Is there a way accomplish the same thing without an ugly message box every time I cast the spell?