To clarify, I have two NPC's here Venduris and Zaeron who are standing beside one other. Now, I just want Zaeron to make a small comment during Vend's dialogue with the Protagonist and then the focus should return to Vend. Now, since I couldn't get it to work in the main VENDURIS.D (and as mentioned above, that file is getting quite big) I have created two new sample dialogue files VEND.DLG and ZAERON.DLG and assigned them to theirs respective CRE's for testing. here's what they look like:
//VEND.D BEGIN ~VEND~ IF ~NumTimesTalkedTo(0)~ THEN BEGIN 1 SAY ~This is a small example for testing EXTERN.~ IF ~~ THEN REPLY ~Let's do it!~ GOTO 2 IF ~~ THEN REPLY ~No, exit please.~ EXIT END IF ~~ THEN BEGIN 2 SAY ~Ok, now let's see if EXTERN works.~ IF ~~ THEN EXTERN ~ZAERON~ 1 END IF ~~ THEN BEGIN 3 SAY ~Well it should be working now.~ IF ~~ THEN REPLY ~I hope so.~ EXIT END
// ZAERON.D BEGIN ~ZAERON~ IF ~True()~ THEN BEGIN 1 SAY ~Come on you dammed thing...work already!~ IF ~~ THEN EXTERN ~VEND~ 3 END
Then, I compile both files wish the standard:
weidu vend.d --tlkout dialog.tlk weidu zaeron.d --tlkout dialog.tlkand then I copy the newly created VEND.DLG and ZAERON.DLG to my BG2\override folder. Then I summon both creatures, first Zaeron then Vend. Then Vend initiates dialogue and after I chose option 1 and the 'Ok, now let's see if EXTERN works' dialogue shows up the game crashes with this message:
BGMAIN caused an invalid page fault in
module BGMAIN.EXE at 015f:004e77f3...etc.
*Sigh* I'm guessing that I'm doing something very basic very wrong here







