I'm just going to repost my old post here, because I left some things out of it anyways.
-----------------
Yes, I have successfully been able to add and delete journal entries using
WeiDU. It's relatively simple. Just make sure to use the *exact* same string within your tp2 so
WeiDU knows to replace your placeholder with the string's string reference.
Example:
BEGIN JIM
IF ~NumTimesTalkedTo(0)~ THEN BEGIN JIM1
SAY ~Hey, can you help me find my rabbit?~
IF ~~ THEN REPLY ~Sure Jim.~ DO ~AddJournalEntry(99999,QUEST)
SetGlobal("JimRabbitQuest","GLOBAL",1)~ EXIT
END
IF ~Global("JimRabbitQuest","GLOBAL",1)~ THEN BEGIN JIM2
SAY ~Have you found my rabbit?~
IF ~Global("RabbitFound","GLOBAL",1)~ THEN REPLY ~Yep, it's right here.~ DO ~EraseJournalEntry(99999)
AddJournalEntry(99998,QUEST_DONE)
SetGlobal("JimRabbitQuest","GLOBAL",2)~ EXIT
IF ~~ THEN REPLY ~Nope, sorry Jimbo.~ EXIT
END
IF ~Global("JimRabbitQuest","GLOBAL",2)~ THEN BEGIN JIM3
SAY ~Thanks again for saving my rabbit.~
IF ~~ THEN REPLY ~No problem Jim.~ EXIT
END
And then within your .tp2 file (the .tp2 file is the file you set up for installing your mod on the end users machine) you issue this statement.
COMPILE ~jim.d~
COPY ~override/jim.dlg~ ~override/jim.dlg~
REPLACE ~99999~ ~Finding Jim's Rabbit
You've been sent on a mission of the upmost importance. You need to find Jim's rabbit before the carrot stocks become completely depleted.~
REPLACE ~99998~ ~The Rabbit is Found
We've found Jim's rabbit. The carrot stocks are saved. Hazzah!~
So this will add the string specified to the dialog.tlk and then replace all instances of 99999 within jim.dlg with the updated string reference, as well as replacing 99998 with the QUEST_DONE journal string.
You can just follow this formula throughout your whole dialog but just decrease the numbers for different journal entries. (99997, 99996, etc.)
Note: When your journal entries are added to the game, it displays the first line in the dialog window, so it's best to set up your entries like this:
REPLACE ~99999~ ~This is the heading that appears in red or blue or green
This is the rest of the journal entry. Blah, blah blah.~