Jump to content

Scripting problems.. PLEASE help someone!


Eriador

Recommended Posts

I tried to do following thing:

I'm making mod for Morrowind and I have this script problem; I made new note (Goodbye Note), and when I read it my Journal should be updated. Anyways, I can't get it working. I get message (when reading Goodbye note) "your journal is updated" but i can't pick up that note. If i click "Take", nothing happens.

Where is the problem?

 

I tried thiskinda script to that object (and lots of variations):

begin _GoodbyeNote

short DoOnce

if (DoOnce=0)
if ( OnActivate == 1 )
	journal "_Goodbye_note" 100
	set DoOnce to 1
endif
endif
activate

stopscript, _goodbyeNote

end _GoodbyeNote

...and I'm not sure what does that "stopscript" means..

Does it matter if journal or Goodbye Note ID or script starts with _ char?

Goodbye Notes ID is _goodbye_note.

 

HELP PLEASE!

 

Another thing (not so impotart right now):

------------------------------------------------

When game (with my mod) is loaded, no error message, but when i start new game i get warning message:

"Model Load Error: Meshes\Add Art File cannot load files in Meshes\Add Art File.

Will use the default Marker_Error.NIF"

 

Misc item (Jug) or something didn't look like it did earlier, now it looks VERY odd.. I removed those jugs

but there's more of them in original Morrowind..

 

If anyone can help, PLEASE do that. Script problem it priority problem becouse my mod works fine

even that warning message appears...

Link to comment
Share on other sites

Gabbe is correct - you would use StopScript to stop a global script once it's no longer needed. The script attached to your note is a local script, not a global one.

 

 

One thing I noticed is that you don't have the 'activate' instruction in the OnActivate statement.

 

 

I am not sure whether a journal ID can start with _ - try it out. If it doesn't work, prefix it with your initials.

 

 

No guarantee that this will work as I'm not very good at scripting, and I have a feeling that there is some complication with the OnActivate command where books and scrolls are concerned, but try something like this.

 

 

begin _GoodbyeNote

 

short DoOnce

 

if ( OnActivate == 1 )

if ( DoOnce == 0 )

journal "_Goodbye_note" 100

set DoOnce to 1

Activate

else

Activate

endif

endif

 

 

end

 

 

If there are any glaringly obvious faults in this, I'm sure Wookiee or Marxist male without a father will be along sooner or later to point them out and correct them, or to post a more elegant way of achieving the same objective :)

 

As I said - I'm not very good at scripting.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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