
1st problem is that I can't get my NPC to spawn - I've tried everything I can think of but can't seem to see the problem...
Copy of BR#AR0700.baf file
IF
Global("BR#BrageExists","AR0700",0)
THEN
RESPONSE #100
SetGlobal("BR#BrageExists","AR0700",1)
CreateCreature("BR#Brage",[2275.1369],4)
END
Copy of .tp2
BEGIN ~BrageNPC for BG2:SoA~
COPY ~BrageNPC\brageS.bmp~ ~override\brageS.bmp~
COMPILE ~BrageNPC\BR#Brage.d~
USING ~~
COMPILE ~BrageNPC\BR#AR0700.baf~
USING ~~
COPY ~BrageNPC\BR#Brage.cre~ ~override\BR#Brage.cre~
SAY NAME1 ~Brage~
SAY NAME2 ~Brage~
WRITE_ASCII 0x34 ~brageS~
WRITE_ASCII 0x250 ~BR#Brage~
WRITE_ASCII 0x2CC ~BR#Brage~
WRITE_ASCII 0x280 ~BR#Brage~
EXTEND_BOTTOM ~Ar0700.bcs~ ~BrageNPC\br#ar0700.bcs~
APPEND ~pdialog.2da~
~BR#Brage BR#BrageP BR#BrageJ BR#BrageD~
UNLESS ~BR#Brage~
UNLESS ~25POST~
APPEND ~pdialog.2da~
~BR#Brage BR#BrageP BR#BrageJ BR#BrageD BR#Bra25P BR#Bra25J BR#Bra25D BR#Bra25~
UNLESS ~BR#Brage~
IF ~25POST~
I think it's something to do with the EXTEND_BOTTOM line, but I can't seem to work it out...
2nd problem is that when the NPC is rejected before joining and re-spoken to he reverts to multi-player dialouge and dissapears. It works fine when he's joined tho so (once again) I'm assuming it's to do with the p dialouge...
Copy of BR#Brage.dlg (wasn't sure whether this should be at the bottom of the .d file or a new file in itself. Either way it dosn't work)
BEGIN BR#BrageP
IF ~Global("BrageJoined","LOCALS",1)~ THEN BEGIN KickOut
SAY ~Are you sure you want me to leave <CHARNAME>, for I will carry on
with my quest with or without you.~
IF ~~ THEN REPLY ~My apologies. Take no offence, I meant nothing by it.~
DO ~JoinParty()~ EXIT
IF ~~ THEN REPLY ~I am sure. Our paths may cross again captain, farewell.~ DO ~SetGlobal("BrageJoined","LOCALS",0)
~ EXIT
END
IF ~Global("BrageJoined","LOCALS",0)~ THEN BEGIN Rejoin
SAY ~Once again I see you before me <CHARNAME>, do you wish we travel
together again? I am acomplishing nothing here.~
IF ~~ THEN REPLY ~Then let us be off.~ DO ~SetGlobal("BrageJoined","LOCALS",1)
JoinParty()~ EXIT
IF ~~ THEN REPLY ~Unfortuantly I have no room for you at the moment, maybe
someother time.~ EXIT
END
I'm betting these are pretty simple,common errors, so I apologise for my ignorance beforehand.
