Brokem Scripts

General discussion regarding the OpenMW project.
For technical support, please use the Support subforum.
User avatar
Zini
Posts: 5538
Joined: 06 Aug 2011, 15:16

Re: Brokem Scripts

Post by Zini »

Yes, I figured that much. The question is what MW does with this broken script.
User avatar
raevol
Posts: 3093
Joined: 07 Aug 2011, 01:12
Location: Caldera

Re: Brokem Scripts

Post by raevol »

Zini wrote:The question is what MW does with this broken script.
Image
User avatar
MiroslavR
Posts: 156
Joined: 12 Feb 2014, 17:45

Re: Brokem Scripts

Post by MiroslavR »

Zini wrote:Yes, I figured that much. The question is what MW does with this broken script.
Well, MW seems to ignore that part and continue executing the script. I've tested this in-game with my own script.
User avatar
Zini
Posts: 5538
Joined: 06 Aug 2011, 15:16

Re: Brokem Scripts

Post by Zini »

Okay. Thanks. That has been taken care of.
maqifrnswa
Posts: 180
Joined: 14 Jan 2013, 03:57

Re: Brokem Scripts

Post by maqifrnswa »

Zini wrote:I m starting to wonder how Morrowind.esm can work at all.
Funny, I always was amazed about that - it's seems to be held together with duck tape and bubblegum where bugs have become features...

Great job tackling this mess! Thank you!
User avatar
MiroslavR
Posts: 156
Joined: 12 Feb 2014, 17:45

Re: Brokem Scripts

Post by MiroslavR »

Zini wrote:

Code: Select all

else set MatchMakeGoval to 8
The script language generally does not allow multiple instructions in the same line.

Code: Select all

Short test

If ( OnActivate == 1 )
	set test to 1
	if ( test == 2 )
		set test to 3
	else set test to 4
		MessageBox "first %G", test
	endif

	MessageBox "second %G", test
endif
This little piece of code attached to a book outputs first 1 and second 1.
User avatar
Zini
Posts: 5538
Joined: 06 Aug 2011, 15:16

Re: Brokem Scripts

Post by Zini »

Okay. Workaround is in place.
User avatar
Zini
Posts: 5538
Joined: 06 Aug 2011, 15:16

Re: Brokem Scripts

Post by Zini »

A particularly bad one: sotha_alma

Please someone tell me that this isn't working in MW either. Because right now I don't know how to make that compile without breaking other stuff.
User avatar
MiroslavR
Posts: 156
Joined: 12 Feb 2014, 17:45

Re: Brokem Scripts

Post by MiroslavR »

What's wrong with sotha_alma? The script compiles without errors, is definitely used in the game at the end of Tribunal's main quest line, and seems to work just fine.
User avatar
Zini
Posts: 5538
Joined: 06 Aug 2011, 15:16

Re: Brokem Scripts

Post by Zini »

This line:

Code: Select all

else ( state == 100 )
?
Post Reply