The Black Wyrm Lair Forums
The Black Wyrm's Lair Terms of Use Help Search Members Calendar

Welcome Guest ( Log In | Register )

> Dialogue File/WeiDU compilation problems
Sir_Carnifex
post Apr 19 2008, 12:04 AM
Post #1





Retired team member
Posts: 490
Joined: 8-April 08
From: U.S.A




Alright, here's my problem:

I have written out the dialogue file for an NPC following the instructions of a tutorial. Everything (to me anyway) looks like it's in place, but WeiDU keeps stopping the install when it runs into commands such as "DO" and "EXIT". If I remove the first one, it will get a little further and stop at the next. I have no idea why this happens (as I'm a total newbie to this). I'd post my code into a PM for someone who wants to see it (and help, not just see it!!!)

Thanks,
Carnifex



--------------------
"Once the game is over, the king and the pawn go back into the same box." - Italian Proverb

"I like criticism, but it must be my way." - Mark Twain

"A positive attitude may not solve all your problems, but it will annoy enough people to make it worth the effort." - Herm Albright
Go to the top of the page
 
Quote Post
 
Start new topic
Replies
Sir_Carnifex
post Apr 19 2008, 06:39 PM
Post #2





Retired team member
Posts: 490
Joined: 8-April 08
From: U.S.A




Very well. I shall post the code here with all text replaced with generic sentences! biggrin.gif

CODE
BEGIN CXHalbo

IF ~NumTimesTalkedTo(0)~ THEN BEGIN 1
SAY ~Insert text here.~
IF ~~ THEN REPLY ~Insert text here.~ GOTO 2
IF ~~ THEN REPLY ~Insert text here.~ GOTO 3
IF ~~ THEN REPLY ~Insert text here.~ GOTO 4
IF ~~ THEN REPLY ~Insert text here.~ DO ~EscapeArea()~ EXIT
END

IF ~~ THEN BEGIN 2
SAY ~Insert text here.~
IF ~~ THEN REPLY ~Insert text here.~ GOTO 5
IF ~~ THEN REPLY ~Insert text here.~ GOTO 6
IF ~~ THEN REPLY ~Insert text here.~ GOTO 4
IF ~~ THEN REPLY ~Insert text here.~ GOTO 8
IF ~~ THEN REPLY ~Insert text here.~ GOTO 6
END

IF ~~ THEN BEGIN 3
SAY ~Insert text here.~
IF ~~ THEN REPLY ~Insert text here.~ GOTO 2
END

IF ~~ THEN BEGIN 4
SAY ~Insert text here.~
IF ~~ THEN REPLY ~Insert text here.~ GOTO 6
IF ~~ THEN REPLY ~Insert text here.~ GOTO 8
END

IF ~~ THEN BEGIN 5
SAY ~Insert text here.~
IF ~~ THEN REPLY ~Insert text here.~ GOTO 6
IF ~~ THEN REPLY ~Insert text here.~ GOTO 4
END

IF ~~ THEN BEGIN 6
SAY ~Insert text here.~
IF ~~ THEN REPLY ~Insert text here.~ GOTO 7
IF ~~ THEN REPLY ~Insert text here.~ GOTO 7
IF ~~ THEN REPLY ~Insert text here.~ GOTO 8
END

IF ~~ THEN BEGIN 7
SAY ~Insert text here.~ DO ~SetGlobal("HalboJoined","LOCALS",1) JoinParty()~ EXIT
END

IF ~~ THEN BEGIN 8
SAY ~Insert text here.~ EXIT
END

IF ~NumTimesTalkedToGT(0)~ THEN BEGIN ExtraMeeting
SAY ~Insert text here.~
IF ~~ THEN REPLY ~Insert text here.~ DO ~SetGlobal("HalboJoined","LOCALS",1)
JoinParty()~ EXIT
IF ~~ THEN REPLY ~Insert text here.~ EXIT
END


BEGIN CXHalboP

IF ~Global("HalboJoined","LOCALS",1)~ THEN BEGIN LeaveGroup
SAY ~Insert text here.~
IF ~~ THEN REPLY ~Insert text here.~ DO ~JoinParty()~ EXIT
IF ~~ THEN REPLY ~Insert text here.~ EXIT
END

IF ~Global("HalboJoined","LOCALS",0)~ THEN BEGIN ComeBack
SAY ~Insert text here.~
IF ~~ THEN REPLY ~Insert text here.~ GOTO Comeback2
IF ~~ THEN REPLY ~Insert text here.~ EXIT
END

IF ~~ THEN BEGIN Comeback2
SAY ~Insert text here.~ DO ~SetGlobal("HalboJoined","LOCALS",1)
JoinParty()~ EXIT
END


For some reason WieDU says something is wrong with the 2nd "DO" (line 45 or something). When I remove that, it's then the "EXIT" following it, and so on.

Thanks in advance for any help.


--------------------
"Once the game is over, the king and the pawn go back into the same box." - Italian Proverb

"I like criticism, but it must be my way." - Mark Twain

"A positive attitude may not solve all your problems, but it will annoy enough people to make it worth the effort." - Herm Albright
Go to the top of the page
 
Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:



- Lo-Fi Version Time is now: 29th August 2025 - 11:07 AM