Me again.
I finally managed to get my NPC working. But for some reason the 'P' dialog file doesn't work. When I reform my party and remove the character I get the BG2 standard built in dialog when talking to them.
My TP2 file has this:
COMPILE ~Gutts\G_Gutts.d~
USING ~~
COMPILE ~Gutts\G_GuttsP.d~
USING ~~
COMPILE ~Gutts\G_Gutts.baf~
EXTEND_BOTTOM ~AR0602.bcs~ ~Gutts\G_AR0602.baf~
APPEND ~pdialog.2da~
~G_Gutts G_GuttsP G_GuttsJ G_GuttsD G_Gut25P G_Gut25J G_Gut25D G_Gutt25~
UNLESS ~G_Gutts~
UNLESS ~25POST~
My G_GuttsP.d file is:
BEGIN ~G_GuttsP~
IF ~Global("GuttsJoined","LOCALS",1)~ THEN BEGIN KickOut
SAY ~Since you don't need me I will search on my own.~
IF ~~ THEN REPLY ~No, please stay. We still need you.~ DO ~JoinParty()~ EXIT
IF ~~ THEN REPLY ~Goodbye.?~ GOTO GuttsLeave
END
IF ~~ THEN BEGIN GuttsLeave
SAY ~...~
IF ~~ THEN DO ~SetGlobal("GuttsJoined","LOCALS",0)~ EXIT
END
IF ~Global("GuttsJoined","LOCALS",0)~ THEN BEGIN Rejoin
SAY ~You again.~
IF ~~ THEN REPLY ~Will you join us again?~ GOTO GuttsRejoin
IF ~~ THEN REPLY ~Sorry to disturb you, we'll be off.~ EXIT
END
IF ~~ THEN BEGIN GuttsRejoin
SAY ~I havn't found any leads yet, I will join you for now.~
IF ~~ THEN REPLY ~~ DO ~SetGlobal("GuttsJoined","LOCALS",1) JoinParty()~ EXIT
END
I also tried by putting the contents of G_Gutts.d and G_GuttsP.d (the only .d files I have) together into the single G_Gutts.d file and then deleted G_GuttsP.d but no change (mods seem to use both methods, so it should be OK). Anyone know what the problem is?