Author Topic: Bug/Request: ADD_TRANS_ACTION and Add/EraseJournalEntry() - v182  (Read 1045 times)

Offline Ascension64

  • Planewalker
  • *****
  • Posts: 472
I have been working on a journal entry system for BGT-WeiDU where completing quests in the BG1 portion of the game would result in a dialogue-mediated removal of quest journal entries, and in some cases, the addition of quest-done journal entries.  To do this, I have been using ADD_TRANS_ACTION in conjunction with EraseJournalEntry() and AddJournalEntry().  As an example, a typical file modification would look like:

//Modify.D

ADD_TRANS_ACTION ~TEST~
BEGIN 0 END
BEGIN 0 END
~AddJournalEntry(@10001,QUEST_DONE)
EraseJournalEntry(@10000)~

//setup.tra
@10000 = ~This also rocks!~
@10001 = ~This rocks!~

I have also tried the following:

//Modify.D
ADD_TRANS_ACTION ~TEST~
BEGIN 0 END
BEGIN 0 END
~AddJournalEntry("This rocks!",QUEST)
EraseJournalEntry("This also rocks!")~

It seems that WeiDU 182 does not evaluate the .tra references, nor does it evaluate stringText, in Add/EraseJournalEntry() in the context of ADD_TRANS_ACTION.  Therefore, in both cases, Action 0 of TEST.DLG would read:

AddJournalEntry("This rocks!",QUEST)
EraseJournalEntry("This also rocks!")

Or:

AddJournalEntry(@10001,QUEST_DONE)
EraseJournalEntry(@10000)

Obviously, Add/EraseJournalEntry() in an outside context works perfectly.  Therefore, if I have not missed anything, is it possible to add evaluation of stringText and .tra references in the context of ADD_TRANS_ACTION in a future version of WeiDU?
« Last Edit: June 03, 2005, 07:23:11 PM by Ascension64 »

Offline weimer

  • Moderator
  • Planewalker
  • *****
  • Posts: 2222
  • Gender: Male
    • WeiDU and Weimer Mods
Re: Bug/Request: ADD_TRANS_ACTION and Add/EraseJournalEntry() - v182
« Reply #1 on: June 12, 2005, 05:10:28 PM »
Fixed (one word typo in which I was "processing the @'s" but then throwing away the result).

Offline Ascension64

  • Planewalker
  • *****
  • Posts: 472
Re: Bug/Request: ADD_TRANS_ACTION and Add/EraseJournalEntry() - v182
« Reply #2 on: June 12, 2005, 07:57:00 PM »
Thanks, Wes.  8)

 

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)?: