Post 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:
Subject:
Message icon:

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

shortcuts: hit alt+s to submit/post or alt+p to preview


Topic Summary

Posted by: erebusant
« on: May 18, 2008, 02:28:36 PM »

First, let me say that WeiDU is an absolutely -awesome- tool, I've been modding my brains out with it after I finally grokked it a few days ago, and it really is an amazing tool, thanks so much to all for developing it.  And I very much plan on making it up to the modding community :)  For those who don't know already... if you were planning on running through Planescape Torment any time soon... hold off for another month or two :)

Anyways - on to my point.  Took me a bit to figure out, but I believe I've detected an error in the WeiDU documentation, specifically the ALTER_TRANS tutorial.

It says these are some options::

# REPLY: The player’s reply, if any. i.e. "REPLY" ~REPLY #57922~
# JOURNAL: Can add or change the journal entry. i.e. "JOURNAL" ~JOURNAL @100~
# SOLVED_JOURNAL: Same as JOURNAL, except for entries into the solved section of the journal.
# UNSOLVED_JOURNAL: Same as JOURNAL, except for entries into the unsolved section of the journal.
# EPILOGUE: Specifies where the transition leads to (GOTO, EXTERN, or EXIT) i.e. EPILOGUE" ~EXTERN BVICONI 0~
# FLAGS: Used to set transition flags manually, though I can’t imagine why one would do this.


The examples for JOURNAL and REPLY, at least, are incorrect.  The words REPLY and JOURNAL should not be repeated within the tildes, and it will not function if you do so.  Working examples would be:

# REPLY: The player’s reply, if any. i.e. "REPLY" ~@57922~
# JOURNAL: Can add or change the journal entry. i.e. "JOURNAL" ~@100~

Took me a pretty good while to figure that out, heh.

(I'm doing PS:T which doesn't have translations, so I need to use @'s... I suspect it would need to be # signs for translations though)

Anyways, thanks all for the great work!  (sinks back into weidu oblivion)

Qwinn
So after a bit more experimentation using WeiDU v206 it appears the proper syntax for ALTER_TRANS uses a combination of @ and # to call a string from the same .tra file. My .d code that patches properly is as follows:
Code: [Select]
REPLACE_SAY JAHEIRAJ 358 @101

REPLACE_SAY KELDORJ 100 @102
REPLACE_SAY KELDORJ 101 @104

REPLACE_SAY EDWINJ 43 @103
REPLACE_SAY EDWINJ 44 @105

REPLACE_SAY MINSCJ 98 @106


REPLACE_SAY FIRKRA02 6 @107
ALTER_TRANS FIRKRA02 BEGIN 21 END BEGIN 0 END BEGIN ~UNSOLVED_JOURNAL~ ~#108~ END

ALTER_TRANS FIRKRA02 BEGIN 36 END BEGIN 2 END BEGIN ~REPLY~ ~#109~ END
Posted by: Qwinn
« on: April 21, 2008, 10:55:12 AM »

Awesome!  Thanks!

Qwinn
Posted by: the bigg
« on: April 21, 2008, 09:24:43 AM »

I wouldn't work on FLAGS if my life depended on it. I'll make it so that *_JOURNAL and REPLY on an empty string removes the feature.
Posted by: Qwinn
« on: April 21, 2008, 07:52:39 AM »

No thanks needed :)

If I may ask - is there any way to get that statement to remove a JOURNAL entry from a response altogether?  If I do:  BEGIN "JOURNAL" ~~ END, I get a new dialog.tlk entry that's blank, and a journal entry with nothing after it in the journal.

Would careful use of FLAGS do it, maybe?

Qwinn
Posted by: the bigg
« on: April 19, 2008, 12:07:35 PM »

OK, thanks.
Posted by: Qwinn
« on: April 19, 2008, 11:34:50 AM »

First, let me say that WeiDU is an absolutely -awesome- tool, I've been modding my brains out with it after I finally grokked it a few days ago, and it really is an amazing tool, thanks so much to all for developing it.  And I very much plan on making it up to the modding community :)  For those who don't know already... if you were planning on running through Planescape Torment any time soon... hold off for another month or two :)

Anyways - on to my point.  Took me a bit to figure out, but I believe I've detected an error in the WeiDU documentation, specifically the ALTER_TRANS tutorial.

It says these are some options::

# REPLY: The player’s reply, if any. i.e. "REPLY" ~REPLY #57922~
# JOURNAL: Can add or change the journal entry. i.e. "JOURNAL" ~JOURNAL @100~
# SOLVED_JOURNAL: Same as JOURNAL, except for entries into the solved section of the journal.
# UNSOLVED_JOURNAL: Same as JOURNAL, except for entries into the unsolved section of the journal.
# EPILOGUE: Specifies where the transition leads to (GOTO, EXTERN, or EXIT) i.e. EPILOGUE" ~EXTERN BVICONI 0~
# FLAGS: Used to set transition flags manually, though I can’t imagine why one would do this.


The examples for JOURNAL and REPLY, at least, are incorrect.  The words REPLY and JOURNAL should not be repeated within the tildes, and it will not function if you do so.  Working examples would be:

# REPLY: The player’s reply, if any. i.e. "REPLY" ~@57922~
# JOURNAL: Can add or change the journal entry. i.e. "JOURNAL" ~@100~

Took me a pretty good while to figure that out, heh.

(I'm doing PS:T which doesn't have translations, so I need to use @'s... I suspect it would need to be # signs for translations though)

Anyways, thanks all for the great work!  (sinks back into weidu oblivion)

Qwinn