Jump to content

Morrowind Script error EXPRESSION problem.


bahamutskingdom

Recommended Posts

I just finished creating a new town the player builds at Fort Firemoth. I thought it would be cool to have as part of your reward, a weekly salary of 150 from the new mine.

When I got that far into the quest, and met the person to pay me I got this:

Script Error: EXPRESSION in FM_Paid

 

FM_Paid is the title of the script itself. I have never had an error go to the actual script. Usually it has to do with an object it is attached to or something of that nature. Also mistypings in the script itself. Neither of these apply as far as I know. (Typing is good)

Here is the script:

 

begin FM_Paid

 

short daysPassed

short myDay

 

if ( daysPassed == 0 )

set myDay to Day

set daysPassed to 1

endif

 

if ( myDay != Day )

set myDay to Day

set daysPassed to daysPassed +1 )

endif

 

if ( daysPassed > 7 )

set Firemoth_Money to 1

MessageBox "Blah blah blah"
set daysPassed to 0

endif

 

end

 

The global is Firemoth_Money. It is set to short, with a value of 0.

The script is not attached to anyone/anything, though it is supposed to StartScript "FM_Paid" via the greeting box.
I also have it AddTopic "weekly payment" just because my topics like to disappear from time to time.

 

I am stumped....can anyone tell me where or what the error is meaning?

Edited by bahamutskingdom
Link to comment
Share on other sites

What I mean is..."DAY" is what...a global? a float?

 

Day is a global from the vanilla content.

I know it is used, as is daysPassed in making the strongholds. This script is actually partly derived from that script.

Link to comment
Share on other sites

There is mismatched parantheses in your script, which the CS won't catch sometime ad the game sometimes catches.

 

Its better to do scripting MWEdit. It says its in beta, but scripting is good in there with its color coded sytax and superior error checking.

 

Also, you don't have to declare "dayspassed", since its a global.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...