Jump to content

can't get the kick-out dialogue to start


Tharlax

Recommended Posts

Hi!

 

I just made my first BG2 npc and everything works great except that the kick-out dialogue won't start. Instead when I kick him out of the party Talk2 starts ("You're back! Can I join now?"). Does anyone know why this is happening?

 

   BEGIN M#Johnny
   IF ~NumTimesTalkedTo(0)~ THEN BEGIN Talk1
   SAY ~Oh, hi <CHARNAME>!~
   IF ~~ THEN REPLY ~How do you know my name?~ GOTO HiThere
   IF ~~ THEN REPLY ~Go away, please.~ GOTO EndTalk
   END
   IF ~~ THEN BEGIN HiThere
   SAY ~I can't tell you that it's confidential. Anyway do you want me to join your party?~
   IF ~~ THEN REPLY ~Sure, why not?~
   DO ~SetGlobal("M#JohnnyJoined","LOCALS",1) JoinParty()~ EXIT
   IF ~~ THEN REPLY ~No thanks.~ EXIT
   END
   IF ~~ THEN BEGIN EndTalk
   SAY ~Are you a chicken? Chip, chip, chip, chip.~
   IF ~~ THEN EXIT
   END
   IF ~NumTimesTalkedToGT(0)~ THEN BEGIN Talk2
   SAY ~You're back! Can I join now?~
   IF ~~ THEN REPLY ~Sure, why not?~
   DO ~SetGlobal("M#JohnnyJoined","LOCALS",1) JoinParty()~ EXIT
   IF ~~ THEN REPLY ~No, thanks.~ EXIT
   END
   BEGIN M#JohnnyP
   IF ~Global("M#JohnnyJoined","LOCALS",1)~ THEN BEGIN LeaveGroup
   SAY ~What? You don't need me?~
   IF ~~ THEN REPLY ~My mistake, please stay.~
   DO ~JoinParty()~ EXIT
   IF ~~ THEN REPLY ~You suck. Bye.~ EXIT
   END
   IF ~Global("M#JohnnyJoined","LOCALS",0)~ THEN BEGIN ComeBack
   SAY ~You want me to rejoin?~
   IF ~~ THEN REPLY ~Welcome back.~
   DO ~SetGlobal("M#JohnnyJoined","LOCALS",1) JoinParty()~ EXIT
   IF ~~ THEN REPLY ~Nope, you still suck.~ EXIT
   END

Link to comment

make sure your dialog files are properly referenced in the correct 2da files. BG2 is supposed to auto change the dialog file upon kick out and joining.

 

Also try limiting the file name length to 8 characters max. M#JohnnyP is 9 characters long and the game may not be able to properly call it.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...