Одна из причин этого — слишком длинные вычисления: такое может произойти со слишком длинной цепочкой сложений (например, сложение более 20 переменных в одной строке кода), что приведет к вылету при загрузке мода. Если это происходит, разбейте вычисления на несколько строк.
На самом деле проблемы могут в моделях (ниф файлах), а равно еще в неопределенном кол-ве причин.
Впрочем если шла отладка скриптов, то вероятность вылета именно на этом этапе, выше, чем если "редактировали ниф файлы и вдруг!"(С)
Crash to desktop when executing the script
There are unfortunately a great number of possible causes. Many are connected with not having "do once" conditions (e.g. calling certain functions every frame). Other known problems: Removing objects with running scripts from within their own script. Using Equip on anything but potions (fixed with Tribunal). Casting targeted spells from an activator (fixed with Tribunal). Using AIActivate on teleport doors that lead outside of the active cell. Trying to use PlaceItem with the same Object ID the script is running on. Using SetDelete on a non-disabled object or an object with a targeted script running on it.
Crash to Desktop (CTD) upon loading the plugin
One reported reason is overlong calculations: there appears to be an issue with very long additions (e.g. adding up more than 20 variables in one line of code) that causes a mod to CTD upon loading. If this happens, split the calculations to several lines.