It'd be an interesting mod indeed, but not exactly the most ideal playthrough for me, that's something personal now so don't mind me.
Of course it isn't for everyone; no mod is. It's not going to be all-inclusive to begin with, though, anyway. I'm just trying to change it so that things like doors remaining locked until everything in the room is dead go away on the main line quests. You can still get violent if you want to; the mod won't take that away.
Anyhow, here is the revised code, hopefully made a little more readable after following cmorgan's example. I'm still not clear on the transition away from Caehan 6 (fixed from my previous error of Caehan 7). I checked the other places where I reverted back to the vanilla game, and they were all correctly called.
BEGINCODE
/* Altered dialogue for Jaylos/Caehan/Gracen scene in Five Flagons Inn Chapter 3 */
/* Scene progresses as in vanilla game until the conversation progresses to the following point:*/
/* Diverted from Caehan.dlg state 6, so the transition goes directly there. */
/* I've kept the options for the old behavior by copying the original replies as the first four in the reply list for the top-level dialogue below. */
/* Those first four replies are sent back to the original dialogue (Jaylos.dlg) */
/* This is proposed as a new dialogue named nkJaylos.dlg, i.e. not APPENDed to any existing dialogue (unless that is the only way to do it?) */
ALTER_TRANS CAEHAN // Caehan.dlg
BEGIN 6 END // 6
/* Does this divert from ~CAEHAN~ 6 ? It should be the only diversion away from the original. */
BEGIN 1 END // 1
/* There is only this one transition, so hopefully this is correct? */
BEGIN //
/* Not sure if the end of the transition should still go here or not. Will it transition if so? Or will putting it after the changes cause the dialogue to revert back to the original after it should have stopped altogether? */
IF ~~ nkJaylos
SAY ~[JAYLOS] All right, everyone, just calm down.~ /* copied from original */
++ ~[PC] You don't know the naa-aame, you don't know the naa-aame.~ EXTERN ~JAYLOS~ 13 /* copied from original */
+ ~Gender(Player1,FEMALE)~ + ~[PC] Maybe I know the name very, very well! Maybe it's MY name! Maybe I'm the contact!~ EXTERN ~JAYLOS~ 15 /* copied from original */
+ ~Gender(Player1,MALE)~ + ~[PC] Maybe I know the name very, very well! Maybe it's MY name! Maybe I'm the contact!~ EXTERN ~CAEHAN~ 7 /* copied from original */
++ ~[PC] Listen to your pal, friend. You are in big trouble.~ EXTERN ~JAYLOS~ 2 /* copied from original */
++ ~[PC] How DO I know you really know the name? You could just be trying to get me to talk.~ + nkJaylos1 /* only new response */
END
IF ~~ nkJaylos1
SAY ~[JAYLOS] I guess we'll find out soon enough.~
IF ~~ THEN DO ~SetGlobal("JaylosSpawn",AR0511",2)CreateCreature("BODFGT03",[652.814],10) + nkJaylos2
END
IF ~~ nkJaylos2
/* Not sure if Gracen should be called by his creature name, BODFGT03, or his actual name in [GRACEN] wherever he speaks */
SAY ~[GRACEN] What's going on here? I'm Gracen. Were all of you to meet me here?~
++ ~[PC] WE were. I don't know what these two are doing.~ + nkJaylos3
++ ~[PC] Actually, we're here to teach you a lesson for crossing the Shadow Thieves.~ + nkJaylos5
++ ~[PC] What happened to using your name for the password?~ + nkJaylos4
END
IF ~~ nkJaylos3
SAY ~[JAYLOS] Now wait just a minute! WE were here first!~
= ~[GRACEN] Keep your voices down! We should not wait here long. Your new berth is beneath the graveyard district, behind the blue stone doors.~
++ ~[PC] That's all we needed to know. Now you shall feel the wrath of the Shadow Thieves.~ EXTERN ~Bodfgt03~ 7 /* copied from original */
++ ~[PC] Might I ask what our reward was to be again? I would like it clarified.~ EXTERN ~Bodfgt03~ 8 /* copied from original */
++ ~[PC] Well, we shall be on our way, then.~ /* only new response */
IF ~~ JOURNAL ENTRY ~Aran's tasks to receive the Shadow Thieves' aid
I have successfully posed as a defector from the Shadow Thieves and met the contact, although I have learned little beyond the fact that the rival guild is based in the Graveyard District. Hopefully, this is all the information that Aran Linvail requires.~ EXIT
/* Gracen does not respond if he is fooled; he, Jaylos, and Caehan simply leave */
END
IF ~~ nkJaylos4
SAY ~[JAYLOS] I knew you didn't know the name, SPY!~
++ ~[PC] No, you are the spies! Let's get them, Gracen!~ EXTERN ~Bodfgt03~ 2 /* copied from original */
END
IF ~~ nkJaylos5
SAY ~[GRACEN] I shall make sure you cannot report what you have seen! Time to die, fools!~
IF ~~ JOURNAL ENTRY ~Aran's tasks to receive the Shadow Thieves' aid
The defectors from the Shadow Thieves have been killed and the contact who had come to collect them attacked me. I discovered that the rival guild is based in the Graveyard District, but little else. Hopefully, this is all the information that Aran Linvail requires.~ EXIT
/* This journal entry is copied from the original. Alternatively it can EXTERN back to it, but I don't know how to reference an external response */
END
/* All EXTERN calls go back to the original dialogue and end in a fight */
/* In all cases the line going to the EXTERN was lifted verbatim from the original */
ENDCODE
I am hoping this clears up the problem where the dialogue was sent to the Bodfgt03 selection where the PC has to guess Gracen's name. Guessing his name shouldn't arise with the dialogue options given above.
THANK YOU TO EVERYONE FOR YOUR HELP!
Edited by Carinna, 13 December 2009 - 08:31 AM.