Author Topic: EraseJournalEntry(~String~)  (Read 1007 times)

Guest

  • Guest
EraseJournalEntry(~String~)
« on: June 20, 2004, 12:01:07 PM »
If I don't want to compose a .tra file can I write in .D file:

DO ~EraseJournalEntry(~String~)~

where ~String~ has just a literal representation?

Offline Kismet

  • Devil's Minion #5
  • Global Moderator
  • Planewalker
  • *****
  • Posts: 653
  • Gender: Female
  • Veni; Vidi; Velcro.
    • Pocket Plane Group
Re: EraseJournalEntry(~String~)
« Reply #1 on: June 20, 2004, 12:28:55 PM »
No, or at least not with the last version of WeiDU that I used (v155 perhaps?).  You don't have to traify the whole mod, build a .tra file by hand just for journal entries.

If you add/erase journal entries via a script, you can use ~text~ rather than a .tra reference.
Cailean - An archer NPC for the insatiably nosy!  Guaranteed more fun than shampooing cats!

Offline japheth

  • PPG
  • Planewalker
  • *****
  • Posts: 143
Re: EraseJournalEntry(~String~)
« Reply #2 on: June 20, 2004, 12:40:11 PM »
I was able to do it with literal representations.  However, I had to use the % symbol rather than ~ or ".

Here's the test dialogue I used:

Code: [Select]
BEGIN ~japh~

IF ~~ jp1
SAY ~This is a test dialogue.~
IF ~~ THEN REPLY ~Oh yeah, test dialogue indeed.~ DO ~EraseJournalEntry(%The Night Time Is The Right Time

Blah, blah, blah.

Flippy, skippy, dippy.%)~ EXIT
END

And, after running weidu japh.d --tlkout dialog.tlk --out override and then decompiling the ensuing compiled dialogue, here's the output after decompiling:

Code: [Select]
// creator  : weidu (version 155)
// argument : JAPH.DLG
// game     : .
// source   : ./override/JAPH.DLG
// dialog   : ./dialog.tlk
// dialogF  : (none)

BEGIN ~JAPH~

IF ~~ THEN BEGIN 0 // from:
  SAY #74108 /* ~This is a test dialogue.~ */
  IF ~~ THEN REPLY #74109 /* ~Oh yeah, test dialogue indeed.~ */ DO ~EraseJournalEntry(74107)
~ EXIT
END

So, just use the % symbol as the delimeter when you want to use literal references for journal entries.

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

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:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: