Post reply

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.
Name:
Email:
Subject:
Message icon:

Verification:
Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?:

shortcuts: hit alt+s to submit/post or alt+p to preview


Topic Summary

Posted by: Ghreyfain
« on: November 21, 2004, 09:04:56 AM »

Now that I've updated it, I definitely recommend checking out my Beginning NPC Tutorial. ;)
Posted by: Codger
« on: November 20, 2004, 09:34:04 PM »

Thank you  ;D

Problem solved.

It was actually the interdia bit. I hadn't included it because a few of the tp2s I had checked didn't have it, and since I didn't know what it did I assumed it was some optional advanced function.
Posted by: Ghreyfain
« on: November 20, 2004, 06:52:48 PM »

A quick check-list of common mistakes for you:

 - Is the Death Variable/Script Name in your .cre file actually "G_Gutts".  That is what you need to enter into the first column in the interdia.2da appending bit.
 - Did you make sure to turn off "Export Allowed" in the flags section of the .cre?  If it's there, take it off.
 - Are you working from a saved game?  Fairly certain this isn't the culprit, but if neither of the above is the problem, you could try starting a new game and CLUAing your NPC in, then getting him to join and leave.
Posted by: Codger
« on: November 20, 2004, 06:26:18 PM »

Me again.  ;D

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?