basic script for door+journal update

Post » Tue Mar 12, 2013 6:02 am

Good evening TES community,

First of all I have recently (together with my GF) starting to make mods for Morrowind. (she's doing the interior / ext, I'm doing the scripting / dialogues / NPC's / Quests etc.)
I have 0 experience when it comes to scripting but decided it might be nice to take on as a hobby.

My lack of knowledge on the scripting department however is preventing me to go forward.

What I would like:

A simple script that while opening a door gives a journal entry. (and most imporantly, does not keep doing/announcing it!)

My example:

begin SG_Harmonyif ( OnActivate == 1 )   Journal "SG_Harmony" 100endifend

This makes it so that I will get a Journal entry (SG_Harmony 100) but everytime I go in the door it keeps giving me a box saying: "Your journal has been updated."

Question:

How do I tell the script to only run something once and then not do it again? My idea was to put this script on the entry door.

But another example could be that touching a certain book would cause a journal update and all subsequent times will simply do nothing or actualy open the book. (or say "I've already gathered information from this book." in a message box)


Any help would be greatly appricated!

Thanks in advance,

Joost
User avatar
Michael Russ
 
Posts: 3380
Joined: Thu Jul 05, 2007 3:33 am

Return to III - Morrowind