Jump to content


Abeternal

Member Since 11 Apr 2015
Offline Last Active May 14 2018 07:26 PM

Topics I've Started

Multiple NPC Banter

16 May 2015 - 02:39 PM

I have a problem with multiple NPC's chatting... These are all NPC's I created and installed into the game. Their Banter with the PC works perfectly, using the J-file and SAY structure. Their banters with other NPC's (ex. Keldorn) using the B-file and CHAIN also work.

 

Where things go weird is when they talk to one another. I use CHAIN in the B-file, identical to the functioning Keldorn Banters; I have followed the syntax and examples (such as Branwen) exactly. I get the banters to start correctly, i.e. first line, but then, as soon as I reference the replying NPC's B-file (ex: == BJULIEN ~Reply here~) the conversation displaces itself to the first available state in that NPC's banter file, instead of moving the the next line in the current exchange.

 

It doesn't do this for Keldorn, though the syntax is identical. Is there something wrong with the Banter Files themselves? Do I need to add an append somewhere? Why are these things not in the tutorials? Does it have something to do with the fact that all these NPC's are installed by me, instead of being present in the game already?

 

Here is an example:

CHAIN

IF ~InParty("Brennic")
InParty("Julien")
InParty("Rinn")
!StateCheck("Brennic",CD_STATE_NOTVALID)
!StateCheck("Rinn",CD_STATE_NOTVALID)
!StateCheck("Julien",CD_STATE_NOTVALID)
See("Julien")
See("Rinn")
Global("BrennicJulienTalk","GLOBAL",1)~
THEN BBrenn BrennicJulien1

~Hi.~ [Brennas]

DO ~SetGlobal("BrennicJulienTalk","GLOBAL",2)~

== BJulien ~What are you doing?~ [Julienja]

== BBrenn ~Do you know Shakespeare?~ [Brennat]

== BJulien ~I'm gonna be sick.~ [Julienjb]

 

The conversation carries on after this...

EXIT

 

 

I get the first line from Brennic. However, instead of Julien saying his next line, a reply comes from a conversation in his B-file instead, and the rest of the conversation then follows that route to its conclusion over there. Why does it do that? How do I fix it?


Multiple Character installation problem

15 May 2015 - 10:25 PM

I have made four custom joinable NPC's for BGT: BG1. I have encountered a weird problem when installing them though. Installing one character by itself seems impossible without the Banter Files of the others being present already. They share Banters and there are calls from the CHAINs in the B-files to the B-files of the others. However, since these are not present in the game yet, the character cannot be installed.

 

I get the following error message: ERROR locating resource for 'CHAIN3' Resource [BJULIEN.DLG] not found in KEY file: [./chitin.key] ERROR: preprocessing APPEND_EARLY [Brennic/BBrenn.d]: Failure("resource [BJULIEN.DLG] not found for 'CHAIN3'")

 

"Brennic" and "Julien" are two of my NPC's. Now obviously the BJulien.dlg won't be in the KEY file since I haven't installed him yet. Point is, I can't install him for I just get the reverse error message, i.e. BBrenn.dlg is missing, when I try. The only reason for this that I can figure out is that they have references in their B-files for the other NPC's B-file. I have managed to install all four by BEGIN BJulien etc. entries in the TP2 of the first one I install. The others then install just fine, but I have trouble running their banters (strange errors occur).

 

Is there any way I can install an NPC who references B-files of other NPC's who do not exist in the game yet?