Morrowind Mod talk:If

The UESPWiki – Your source for The Elder Scrolls since 1995
Jump to: navigation, search

Somebody suggested I post this here:

I just ran into a problem that I didn't see in the doc.s. I had an "if" block that was too long for the interpreter. It compiled ok, but it just stopped processing the script each frame as it encountered this block. When I split it at 88 lines, 2817 characters (exact numbers probably needless) everything was OK again.

Since I haven't used this site before, and I hope I've come to the right area...

--

Dave Humphrey says:

Yes, if I recall correctly an if block is limited to 255 compiled commands which are difficult to convert in the number of lines as each line may end up as one or several commands when compiled. The 255 line limit is just for each block, i.e. if you had an if block with 200 commands followed an elseif with 100 commands and an else with 50 commands, you'd be fine.

You can also use MWEdit to testing compiled your scripts and get more detailed error messages. It will catch and tell about most problems like this one.

forum link