Author Topic: *P.d issue  (Read 2981 times)

Offline flameswing

  • Planewalker
  • *****
  • Posts: 12
*P.d issue
« on: August 27, 2007, 09:22:24 AM »
Ok...i have tried every way i could think of to fix this, but couldn't think of all that many.

I have my basic NPC in the game, all fine and lovely...but i tested the booting her out of the party bit...after i remove her from the party, she doesn't start the "why are you booting me?" dialog, and my player character goes to speak to her and gets "Varsa has nothing to say to you."
Could anyone possibly think of why this may be?
Yes, it's in the *P.d file, and yes i have WeiDu appending it into the pdialog.2da file, which it seems to do fine.

the *P.d name is:

X7VarsaP

the text within that file is:

BEGIN X7VarsaP

IF ~Global("VarsaJoined","LOCALS",1)~ THEN BEGIN KickOut
SAY ~You don't want me along anymore?~
IF ~~ THEN REPLY ~Of course I do! Come on, we have a lot to do.~ DO ~JoinParty()~ EXIT
IF ~~ THEN REPLY ~Sorry Varsa. It's just not working having you along.~ DO ~SetGlobal("VarsaJoined","LOCALS",0)~ EXIT
END

The relevant pdialog.2da lines are:
X7VarsaNPC X7VarsaP X7VarsaJ X7VarsaD X7Var25P X7Var25J X7Var25D X7Var25

All help greatly appreciated. Thanks all :)

IF ~Global("VarsaJoined","LOCALS",0)~ THEN BEGIN Rejoin
SAY ~<She smiles> What, want me back in your little band of heroes?~
IF ~~ THEN REPLY ~Sure do. It became clear that you were a vital addition to the team. Welcome back.~ DO ~SetGlobal("VarsaJoined","LOCALS",1)
JoinParty()~ EXIT
IF ~~ THEN REPLY ~Ah sorry Varsa, not right at the minute.~ EXIT
END

Offline Kulyok

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 6253
  • Gender: Female
  • The perfect moment is now.
Re: *P.d issue
« Reply #1 on: August 27, 2007, 10:09:09 AM »
Try leaving VarsaJoined variable alone and introduce KickedOut variable instead:

IF ~Global("KickedOut","LOCALS",0)~ THEN BEGIN KickOut
...

- and you set KickedOut to 1 if she leaves.

Also, check your joining dialogue: it might be that you set VarsaJoined variable to 1 _after_ JoinParty() command, in which case the variable will not be set.

Offline flameswing

  • Planewalker
  • *****
  • Posts: 12
Re: *P.d issue
« Reply #2 on: August 28, 2007, 01:56:57 AM »
ummm ok so i tried that, and it didn't work...same thing, i boot her and she has nothing to day to me...

here's an example of my joinparty thingo
 IF ~~ THEN BEGIN Thankyou
SAY ~That's very kind of you...It would be my pleasure to accompany you. <She smiles> My name is Varsa.~ IF ~~ THEN DO ~SetGlobal("VarsaJoined","LOCALS",1)
JoinParty()~
EXIT
END

i checked to make sure the setglobal was before joinparty, it was.

so i changed my *P.d file to look like this:

BEGIN X7VarsaP

IF ~Global("KickOut","LOCALS",0)~ THEN BEGIN KickOut
SAY ~You don't want me along anymore?~
IF ~~ THEN REPLY ~Of course I do! Come on, we have a lot to do.~ DO ~JoinParty()~ EXIT
IF ~~ THEN REPLY ~Sorry Varsa. It's just not working having you along.~ DO ~SetGlobal("KickOut","LOCALS",1)~ EXIT
END

IF ~Global("KickOut","LOCALS",1)~ THEN BEGIN Rejoin
SAY ~<She smiles> What, want me back in your little band of heroes?~
IF ~~ THEN REPLY ~Sure do. It became clear that you were a vital addition to the team. Welcome back.~ DO ~SetGlobal("KickOut","LOCALS",0)
JoinParty()~ EXIT
IF ~~ THEN REPLY ~Ah sorry Varsa, not right at the minute.~ EXIT
END


but to no avail! is it possible that it might be something to do with the .CRE? (and if so, what?)

Offline Kulyok

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 6253
  • Gender: Female
  • The perfect moment is now.
Re: *P.d issue
« Reply #3 on: August 28, 2007, 02:00:24 AM »
X7VarsaNPC - this filename is invalid; it has over eight characters.

Try changing it to X7Varsa, both in your pdialog line and in your .cre, and see what happens.

Offline flameswing

  • Planewalker
  • *****
  • Posts: 12
Re: *P.d issue
« Reply #4 on: August 28, 2007, 02:25:57 AM »
ok tried that and she still doesn't have anything to say to me...DAMN HER!
Any other thoughts? If not, thanks very much for your help anyway :)

Offline Kulyok

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 6253
  • Gender: Female
  • The perfect moment is now.
Re: *P.d issue
« Reply #5 on: August 28, 2007, 03:20:47 AM »
Did you edit BEGIN X7Varsa in her joining dialogue, too?

And you'll have to re-spawn her(enter an area with her for the first time) all over again to check that, too.

Offline flameswing

  • Planewalker
  • *****
  • Posts: 12
Re: *P.d issue
« Reply #6 on: August 28, 2007, 03:31:10 AM »
yep, and yep. Done both of those :(
 ???

Offline Kulyok

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 6253
  • Gender: Female
  • The perfect moment is now.
Re: *P.d issue
« Reply #7 on: August 28, 2007, 03:37:17 AM »
And you actually reinstalled the mod and everything?

Post your full .tp2, then.

Offline flameswing

  • Planewalker
  • *****
  • Posts: 12
Re: *P.d issue
« Reply #8 on: August 28, 2007, 03:49:17 AM »
yep. here goes.

BACKUP ~X7VarsaTheNPC\backup~
AUTHOR ~StephHill~
BEGIN ~Varsa the NPC for BG2:SOA~

COPY ~X7VarsaTheNPC\X7Varsa.cre~ ~override\X7Varsa.cre~
SAY NAME1 ~Varsa~
SAY NAME2 ~Varsa~
SAY SELECT_COMMON4 ~Yes?~ [Varsa1]
SAY SELECT_COMMON5 ~Give the word.~ [Varsa2]
SAY SELECT_COMMON6 ~Point the way.~ [Varsa3]
SAY SELECT_ACTION1 ~I'm on it.~ [Varsa4]
SAY SELECT_ACTION2 ~As you wish.~ [Varsa5]


COMPILE ~X7VarsaTheNPC\X7Varsa.d~

COMPILE ~X7VarsaTheNPC\X7Varsa.baf~


EXTEND_TOP ~AR0406.bcs~ ~X7VarsaTheNPC\AR0406.baf~

APPEND ~PDIALOG.2DA~
~X7Varsa X7VarsaP X7VarsaJ X7VarsaD X7Var25P X7Var25J X7Var25D X7Var25~
UNLESS ~X7Varsathefighter~

APPEND ~INTERDIA.2DA~
~X7Varsa X7VarsaB X7VarB25~
UNLESS ~X7Varsa~

Offline Kulyok

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 6253
  • Gender: Female
  • The perfect moment is now.
Re: *P.d issue
« Reply #9 on: August 28, 2007, 04:15:56 AM »
You're not compiling X7VarsaP.d or any other dialogue files than X7Varsa.d anywhere.

Offline flameswing

  • Planewalker
  • *****
  • Posts: 12
Re: *P.d issue
« Reply #10 on: August 28, 2007, 04:18:33 AM »
oh!! Well how damnably silly of me. Thank you very much, I'll go to now and do that.
Thanks for your help, Kulyok...how tedious for you....such a stupid thing.
My apologies, and THANKYOU!

Offline flameswing

  • Planewalker
  • *****
  • Posts: 12
Re: *P.d issue
« Reply #11 on: August 28, 2007, 04:31:26 AM »
*inhales deeply* ...ok...so i added compile commands to the .TP2....
nada. nothing! * :'(



TP2 now looks like this:

BACKUP ~X7VarsaTheNPC\backup~
AUTHOR ~StephHill~
BEGIN ~Varsa the NPC for BG2:SOA~

COPY ~X7VarsaTheNPC\X7Varsa.cre~ ~override\X7Varsa.cre~
SAY NAME1 ~Varsa~
SAY NAME2 ~Varsa~
SAY SELECT_COMMON4 ~Yes?~ [Varsa1]
SAY SELECT_COMMON5 ~Give the word.~ [Varsa2]
SAY SELECT_COMMON6 ~Point the way.~ [Varsa3]
SAY SELECT_ACTION1 ~I'm on it.~ [Varsa4]
SAY SELECT_ACTION2 ~As you wish.~ [Varsa5]


COMPILE ~X7VarsaTheNPC\X7Varsa.d~

COMPILE ~X7VarsaTheNPC\X7Varsa.baf~


COMPILE ~X7VarsaTheNPC\X7VarsaP.d~
COMPILE ~X7VarsaTheNPC\X7VarsaD.d~
COMPILE ~X7VarsaTheNPC\X7VarsaJ.d~
COMPILE ~X7VarsaTheNPC\X7VarsaB.d~

EXTEND_TOP ~AR0406.bcs~ ~X7VarsaTheNPC\AR0406.baf~

APPEND ~PDIALOG.2DA~
~X7Varsa X7VarsaP X7VarsaJ X7VarsaD X7Var25P X7Var25J X7Var25D X7Var25~
UNLESS ~X7Varsathefighter~

APPEND ~INTERDIA.2DA~
~X7Varsa X7VarsaB X7VarB25~
UNLESS ~X7Varsa~



I think the reason i can't talk to her post-booting is because she doesn't talk to me straight after to set the global thingy such that i CAN talk to her...the one tht sets KickOut to 1 just doesn't happen...*sniffles*
« Last Edit: August 28, 2007, 04:36:29 AM by flameswing »

Offline Kulyok

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 6253
  • Gender: Female
  • The perfect moment is now.
Re: *P.d issue
« Reply #12 on: August 28, 2007, 12:08:06 PM »
Your .p file doesn't append properly. I do not know, why. Try copy-pasting these tp2 lines from a working NPC mod(use their format, but your own names).
UNLESS ~X7Varsathefighter~ - you might want to change it to X7Varsa, too.

At this point, I'd seriously consider whether you'd like to attempt to make it work on your own, or continue asking for advice every time you have to troubleshoot something. I'd suggest the first route.

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

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:
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)?: