Jump to content


Jepsolon

Member Since 14 Feb 2004
Offline Last Active Mar 16 2004 12:53 PM

Topics I've Started

Journal entry problem

15 February 2004 - 10:08 AM

Here is a bit of code I made: (# in parenthesis is the line number)

(253)
IF ~~ THEN BEGIN 30 // from: 4.7 10.7 25.8 26.8 27.8 28.8 29.8
SAY ~Very well. I shall wait here for you a while.~
IF ~~ THEN UNSOLVED_JOURNAL ~The fighter awaits my answer. He has asked me to make up my mind as soon as possible.~ EXIT
END

(258)
IF ~~ THEN BEGIN 31 // from: 14.2
SAY ~I am in need of able men, but I am not desperate for them.~
IF ~~ THEN REPLY ~Yeah, yeah, yeah, let's just get to it.~ DO ~SetGlobal("fighterJoined","LOCALS",1) JoinParty~
IF ~~ THEN UNRESOLVED_JOURNAL ~Looks like I'm stuck with the fighter.~ EXIT
IF ~~ THEN REPLY ~Bah! I have no for you.~
IF ~~ THEN JOURNAL ~I told the fighter go sod off. Bah!~ EXIT
END

And this is the reply WeiDU gave me:

D:\Games\Baldurs Gate II - Throne of Bhaal>weidu --tlkout dialog.tlk valren01.d
[weidu] WeiDU version 148
[./CHITIN.KEY] 182 BIFFs, 41793 resources
[./dialog.tlk.old] 74157 string entries
[TRIGGER.IDS] parsed
[ACTION.IDS] parsed

[action list near line 134, column 147 of valren01.d] PARSE WARNING at line 134
column 135-143
Near Text:
syntax error

[action list near line 144, column 65 of valren01.d] PARSE WARNING at line 144 c
olumn 53-61
Near Text:
syntax error

[action list near line 260, column 113 of valren01.d] PARSE WARNING at line 260
column 101-109
Near Text:
syntax error

[valren01.d] PARSE ERROR at line 261 column 3-4
Near Text: IF
syntax error

[valren01.d] ERROR at line 261 column 3-4
Near Text: IF
Parsing.Parse_error
ERROR: parsing [valren01.d]: Parsing.Parse_error

ERROR: Parsing.Parse_error


Please help.

-Jepsolon

TEXT confusion

14 February 2004 - 05:26 PM

I've been reading the tutorials on how to do dialog. Look at this:

IF ~NumTimesTalkedTo(0)~ THEN BEGIN 0 // from:
SAY #28655 /* ~Who is it? Might I ask why you have disturbed my
meditations? My creative muse must be gently awakened, and your
stomping about is simply not conducive to this.~ [SARLES02] */
IF ~~ THEN REPLY #28656 /* ~My apologies. I will leave you to your
thinking.~ */ GOTO 1
IF ~~ THEN REPLY #28657 /* ~I apologize, but I have come to request your
talent on a commissioned artwork.~ */
DO ~SetGlobal("TalkedToSarles","GLOBAL",1)~ GOTO 2
END

and

SAY ~One~ = ~Two~ = ~Three~


In the first piece of code there is /* */ at the beginning of the text to be displayed, but this is not the case with the second piece of code. I also read that these marks can be used to comment, but that shouldn't be the case here; in this case weidu is meant to recognize the text. So is it necessary or not? If no, then why use it?

-Jepsolon