scarycave Posted June 10, 2012 Share Posted June 10, 2012 I've begun working on a pre-existing mod to make the encounter more "Climatic", but a problem I'm having is that everytime I add a new endif statement the code goes wonky. I've dealt with it before, and I think it had something to do with a rouge Endif. The tool doesn't bring up any message about extra endifs, so it becomes a bit trouble some at times. Does anyone have any tips to help keep track of endifs? Link to comment Share on other sites More sharing options...
wetblanket Posted June 10, 2012 Share Posted June 10, 2012 Construction Set Extender *may* have something to help here, it's certainly helpful for modding in a multitude of other ways. Using an external editor such as Notepad++ with syntax highlighting (I can't remember where I got the TES syntax file from unfortunately) may help also. Link to comment Share on other sites More sharing options...
DrakeTheDragon Posted June 11, 2012 Share Posted June 11, 2012 A pretty basic straight-forward approach to getting opening and closing of so-called code 'brackets' right is proper "indentation". Begin If ; some code ElseIf ; some code ElseIf ; some code Else If ; some code ElseIf ; some code Else ; some code EndIf EndIf EndIf ; <- that one just sticks out like a red light End By properly indenting your code lines for example I for one will be able to quickly spot any bogus or missing EndIf in any code you post here. Link to comment Share on other sites More sharing options...
Recommended Posts