Journal Entry editing

Started by Valiant, December 14, 2007, 08:13:53 PM

Previous topic - Next topic

Valiant

Hi folks,

this is for those who want to add some journal entries with their mods, but don´t know how to solve it. So I´m posting here one possible way.

BEGIN TRY01

IF ~NumTimesTalkedTo(0)~ THEN BEGIN Test
   SAY ~Hello!~
   IF ~~ THEN REPLY ~Hello!~  DO ~SetGlobal("EntryTest","GLOBAL",1)~
   UNSOLVED_JOURNAL %Quest Entry

This should be your quest entry.% EXIT
END

IF ~Global("EntryTest","GLOBAL",1)~ THEN BEGIN Test2
   SAY ~Hello again!~
   IF ~~ THEN REPLY ~Yeah, hi!~ DO ~EraseJournalEntry(%Quest Entry

This should be your quest entry.%)~
   SOLVED_JOURNAL ~Quest Done Entry

This should be your quest done entry. Hope it works!~ EXIT
END


Some may ask why those strange % signs are used. Well it is because WeiDU can´t parse something like this:

~EraseJournalEntry(~....~)~

During compiling dialog file you would get errors and dialong wouldn´t be compiled at all... This way you "cheat " it (not literally)...:)

I have attached the testing creature and a weidu dialog .d file. Try it yourself. Just put .cre file into override folder and using DLTCEP (most easiest way) compile the dialog .d file. Then fire up BG2 and CLUA console the testing creature into the game. Speak to it first time, then check journal QUEST part. Then speak again to it and check journal QUEST DONE part. You´ll see that the text from QUEST part is removed and QUEST DONE text about completed quest is added instead. It works like a charm.

You cannot view this attachment.You cannot view this attachment.
Valiant

Tower Of Deception creator.

Quick Reply

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name:
Email:
Shortcuts: ALT+S post or ALT+P preview