
Syntax errors?
#1
Posted 21 March 2004 - 06:38 PM
I click on my "setup-mymod" (renamed from WeiDU), and the first few commands seem to run well.
Then when it's installing one of my .d files, I get this message:
Compiling 1 dialogue ...
[./override/TRIGGER.IDS] loaded, 7717 bytes
[TRIGGER.IDS] parsed
[./override/ACTION.IDS] loaded, 13067 bytes
[ACTION.IDS] parsed
[MulgoreXaviaNPC/xavia.d] PARSE ERROR at line 13 column 1-5
Near Text: ~ THEN BEGIN 1 // from:
SAY ~
syntax error
[MulgoreXaviaNPC/xavia.d] ERROR at line 13 column 1-5
Near Text: ~ THEN BEGIN 1 // from:
SAY ~
Parsing.Parse_error
ERROR: parsing [MulgoreXaviaNPC/xavia.d]: Parsing.Parse_error
Can anybody tell me how to fix this?
Thanks,
Grave
#2
-icelus-
Posted 21 March 2004 - 06:43 PM
#3
Posted 21 March 2004 - 07:40 PM
SAY ~Allow me to introduce myself. I am Xavia of Athkathla, and over there is my bodyguard and faithful companion, Mulgore of Luruar. Say hello, Mulgore.~
~ EXTERN ~MULGORE~ 0
END
I have a feeling it has something to do with EXTERN, but I'm not positive on that.
#4
Posted 21 March 2004 - 08:18 PM
IF ~~ THEN EXTERN MULGORE 0 (although you really shouldn't use numbers for statelabels but should use some descriptive text instead)
#5
Posted 22 March 2004 - 05:08 PM
Here is the part of the .d file it's saying is screwed up:
IF ~~ THEN BEGIN 1 // from:
SAY ~Please, allow me to introduce myself. I am Xavia of Athkathla, and over there is my bodyguard and faithful companion, Mulgore of Luruar. Say hello, Mulgore.~
IF ~~ THEN EXTERN MULGORE 0
END
Here is from the DEBUG file:
[MulgoreXaviaNPC/xavia.d] PARSE ERROR at line 13 column 1-5
Near Text: ~ THEN BEGIN 1 // from:
SAY ~
syntax error
[MulgoreXaviaNPC/xavia.d] ERROR at line 13 column 1-5
Near Text: ~ THEN BEGIN 1 // from:
SAY ~
Parsing.Parse_error
ERROR: parsing [MulgoreXaviaNPC/xavia.d]: Parsing.Parse_error
#6
Posted 22 March 2004 - 05:31 PM
BEGIN ~xavia~
#7
Posted 22 March 2004 - 05:45 PM

#8
Posted 22 March 2004 - 06:26 PM
#9
Posted 22 March 2004 - 08:10 PM

#10
Posted 22 March 2004 - 09:21 PM
#11
Posted 23 March 2004 - 03:07 AM
BEGIN ~XAVIA~
IF ~NumTimesTalkedTo(0)~ THEN BEGIN 0 // from:
SAY ~You... you're <CHARNAME>, are you not? I've been... dying... to finally meet you. You've made quite a name for yourself along the Sword Coast, and ever since I first heard about your adventures, well... I've had this burning desire to... meet you.~
IF ~~ THEN REPLY ~And who exactly are you?~ GOTO 1
IF ~~ THEN REPLY ~I don't have time to talk with the likes of you! Now be off ye little girl, lest I send you to meet your maker!~ GOTO Fight
IF ~~ THEN REPLY ~While I would love to sit over a frothy mug of ale and recant my recent adventures to you, alas I fear I do not have the time right now.~ GOTO Goodbye
IF ~~ THEN REPLY ~Let me guess, are you another assassin sent by the Iron Throne to dispatch me? It'll take more than a little girl with a dagger and her smelly half orc companion slouching next to her to take the likes of us out!~ GOTO 10
IF ~~ THEN DO ~SetGlobal("SpokeToXavia","GLOBAL",1)
END
IF ~~ THEN BEGIN 1 // from:
SAY ~Please, allow me to introduce myself. I am Xavia of Athkathla, and over there is my bodyguard and faithful companion, Mulgore of Luruar. Say hello, Mulgore.~
IF ~~ THEN EXTERN MULGORE 0
END
#12
Posted 23 March 2004 - 03:41 AM
i.e.
BEGIN ~XAVIA~
IF ~NumTimesTalkedTo(0)~ THEN BEGIN 0 // from:
SAY ~You... you're <CHARNAME>, are you not? I've been... dying... to finally meet you. You've made quite a name for yourself along the Sword Coast, and ever since I first heard about your adventures, well... I've had this burning desire to... meet you.~
IF ~~ THEN REPLY ~And who exactly are you?~ DO ~SetGlobal("SpokeToXavia","GLOBAL",1)~ GOTO 1
IF ~~ THEN REPLY ~I don't have time to talk with the likes of you! Now be off ye little girl, lest I send you to meet your maker!~ DO ~SetGlobal("SpokeToXavia","GLOBAL",1)~ GOTO Fight
IF ~~ THEN REPLY ~While I would love to sit over a frothy mug of ale and recant my recent adventures to you, alas I fear I do not have the time right now.~ DO ~SetGlobal("SpokeToXavia","GLOBAL",1)~ GOTO Goodbye
IF ~~ THEN REPLY ~Let me guess, are you another assassin sent by the Iron Throne to dispatch me? It'll take more than a little girl with a dagger and her smelly half orc companion slouching next to her to take the likes of us out!~ DO ~SetGlobal("SpokeToXavia","GLOBAL",1)~ GOTO 10
END
IF ~~ THEN BEGIN 1 // from:
SAY ~Please, allow me to introduce myself. I am Xavia of Athkathla, and over there is my bodyguard and faithful companion, Mulgore of Luruar. Say hello, Mulgore.~
IF ~~ THEN EXTERN MULGORE 0
END
// Oh and btw you were missing a tilde at the end of your DO list. Which I've corrected for you.
#13
Posted 23 March 2004 - 09:37 AM
BTW, do I have to add the DO command to every single reply? I just want to make sure before I go in and start modifying my .d files
#14
Posted 23 March 2004 - 10:43 AM
Why is this Hypnotoad video so popu... ALL GLORY TO THE HYPNOTOAD.
____
The Gibberlings Three - Home of IE Mods
The BG2 Fixpack - All the fixes of Baldurdash, plus a few hundred more. Now available, with more fixes being added in every release.
#15
Posted 23 March 2004 - 04:57 PM
But do I have to do this with EVERY REPLY in my entire .d file, or just for the first one? Or is it everytime a new dialog thread starts?
#16
Posted 23 March 2004 - 05:20 PM

Why is this Hypnotoad video so popu... ALL GLORY TO THE HYPNOTOAD.
____
The Gibberlings Three - Home of IE Mods
The BG2 Fixpack - All the fixes of Baldurdash, plus a few hundred more. Now available, with more fixes being added in every release.
#17
Posted 23 March 2004 - 06:22 PM
I've been tinkering with this for 30 minutes now, but can't figure it out. Here is the DEBUG message:
[MulgoreXaviaNPC/xavia.d] PARSE ERROR at line 70 column 1-2
Near Text: IF
syntax error
[MulgoreXaviaNPC/xavia.d] ERROR at line 70 column 1-2
Near Text: IF
Parsing.Parse_error
ERROR: parsing [MulgoreXaviaNPC/xavia.d]: Parsing.Parse_error
And here is where the problem lies:
IF ~~ THEN BEGIN Fight // from:
SAY ~You dare insult me! I shall drive this dagger deep into your black heart! Mulgore, let's get 'em!~
IF ~~ THEN DO ~ChangeEnemyAlly(Myself,EVILCUTOFF)~
IF ~~ THEN DO ~Attack(NearestEnemyOf(Myself))~
IF ~~ THEN EXTERN MULGORE 2
END
#18
-icelus-
Posted 23 March 2004 - 06:24 PM
#19
Posted 23 March 2004 - 07:15 PM
#20
-icelus-
Posted 23 March 2004 - 07:17 PM
IF ~~ THEN BEGIN Fight // from:
SAY ~You dare insult me! I shall drive this dagger deep into your black heart! Mulgore, let's get 'em!~
IF ~~ THEN DO ~ChangeEnemyAlly(Myself,EVILCUTOFF) Attack(NearestEnemyOf(Myself))~ EXTERN MULGORE 2
END