Skipping "Your journal has been updated" message

Post » Thu May 03, 2012 5:45 am

Hello,

I'm new at modding but my intuition tells me global variables should be avoided whenever possible.

In my case I can't use locals to keep track of some quest progress, is using journal updates any better than globals ? (taking into account the journal entry already exists and has a value, so it doesn't even create a new variable)

If so, is there any way to get an empty journal update (it doesn't appear in the journal, that much is possible) WITHOUT the "Your journal has been updated" message appearing for the player ?

I don't want to clutter the journal with small stuff, and I don't want to tell the player his journal has been updated when there's nothing new in it.
User avatar
Nitol Ahmed
 
Posts: 3321
Joined: Thu May 03, 2007 7:35 am

Post » Thu May 03, 2012 10:39 am

The message does not appear when you issue the empty Journal command from dialogue's action box.
User avatar
Micah Judaeah
 
Posts: 3443
Joined: Tue Oct 24, 2006 6:22 pm

Post » Thu May 03, 2012 3:30 am

It's no big deal to have a Global Variable updating - you are only changing it's value from 1 to 2 or 2 to 3 - the modder who made the farming mod once wrote he had something like 400 Globals in action and couldn't see an impact on performance.

Journal updates can be useful to the player though in knowing what they are supposed to be doing on the quest - otherwise you can use notes - so the player picks up a note or an object that gives them a clue as to what they are doing next - it is always good to remember that players don't always complete the quest in the way we write it - they might save the game and not play for a month or more then they come back and wonder what to do next or they start the quest but then wander off and do a fighter's guild quest and by the time they want to do your quest again they need some clue as to what to do - so the journal can be really useful for that.
User avatar
Rude Gurl
 
Posts: 3425
Joined: Wed Aug 08, 2007 9:17 am

Post » Thu May 03, 2012 2:33 am

Indeed, by not adding empty journal entries at all the JournalIndex gets updated but gives no message.

And good to know about globals, though in my case the JournalIndex behaves just like one.

Thanks for the replies!
User avatar
Kortknee Bell
 
Posts: 3345
Joined: Tue Jan 30, 2007 5:05 pm

Post » Wed May 02, 2012 6:40 pm

Just in case you ever need to hide a message in the future, you can use three empty MessageBoxes to push it "off" the screen.
User avatar
Siobhan Wallis-McRobert
 
Posts: 3449
Joined: Fri Dec 08, 2006 4:09 pm

Post » Thu May 03, 2012 7:30 am

SetJournalIndex, "ID_quest", index


This will help you absolutely!
User avatar
Solène We
 
Posts: 3470
Joined: Tue Mar 27, 2007 7:04 am

Post » Thu May 03, 2012 11:05 am

There are places in scripts where you can't use a journal entry to detect what is going on - the game doesn't like it. In that case you should probably use a global. But journal entries are great for making dialog work correctly, and then you can use the dialog to call the script you need.
User avatar
Greg Cavaliere
 
Posts: 3514
Joined: Thu Nov 01, 2007 6:31 am

Post » Wed May 02, 2012 8:44 pm

Yes. I have long considered empty journal entries as free globals. And even if global variables do not tax system resources it is still gratifying to achieve so elegant solution. There are a few things you should understand before you settle on this approach.

First: SetJournalIndex is a Tribunal function. Using it will introduce an expansion dependency for your mod.

Second: SetJournalIndex can create some unexpected results (potentially quest-breaking) if the player reloads a save without quitting Morrowind. Here is an http://www.yacoby.net/es/forum/11/8579511215803460.html examining the problem. It is only an issue if the journal is set before a normal journal entry is made for the quest.
User avatar
Marta Wolko
 
Posts: 3383
Joined: Mon Aug 28, 2006 6:51 am

Post » Wed May 02, 2012 11:11 pm

Very interesting... thanks for all the info.
User avatar
Tom
 
Posts: 3463
Joined: Sun Aug 05, 2007 7:39 pm


Return to III - Morrowind