Rurokenrox91 Posted February 28, 2007 Share Posted February 28, 2007 Ok, thanks for the help with the .bcs. I'll haveta figure out the .tlk file. Link to comment
Jenova Posted March 2, 2007 Share Posted March 2, 2007 Ok, so I have a very noobish question. I already have the *.d file ready and begin making the *.cre file. Now this is where I get stuck. I open up NearInfinity and follow the tutorial. "10) Scroll down until you get to Override Script: type in K#John (or whatever your npc's filename is)" Huh? I can type my file name but I can't make NearInfinity find it, I got a list of in-game (I guess) *.bcs files to choose from and can't do anything do make it I#Saman (the name of the file I made). The same is with the Death Variable and Dialog. Some help, for a poor noob, please? Link to comment
Miloch Posted March 2, 2007 Share Posted March 2, 2007 It won't be able to find the files until you install them into your override. You would need code in your TP2 similar to the following: COPY ~YourMod/scripts/i#saman.baf~ ~YourMod/scripts/i#saman.baf~ COMPILE ~YourMod/scripts/i#saman.baf~ //automatically compiles .bcs to override If you don't actually have a script yet, just leave it blank until you do. Dialog compilation should be similar, though I don't know the exact syntax offhand. As for death variable, that is not an actual file. You should be able to just set that to whatever you want to refer to (usually same as your CRE file name). Link to comment
pro5 Posted March 2, 2007 Share Posted March 2, 2007 Right-click the field you want to edit and choose "Edit as String". Don't forget that all resrefs cannot be longer than 8 characters. Link to comment
Jenova Posted March 2, 2007 Share Posted March 2, 2007 Can't believe it, it actually worked! Thank's guys! Link to comment
Ebola Bear Posted December 15, 2007 Share Posted December 15, 2007 So... I've been following along with this tutorial (and a couple of others like it elsewhere) and have hit a snag. I've got the NPC in the game. She spawns right, she does her intro dialogue right. Then I kick her out, and she doesn't use the parting dialogue that I so lovingly coded for her. I invite her back into the party, and she persists in not using it. She uses instead some generic dialogue that I don't recognize. I wonder if anyone might have any bright ideas about what could be going wrong? Here's the contents of my .d file, if it helps: BEGIN EBJes IF ~NumTimesTalkedTo(0)~ THEN BEGIN Talk1 SAY ~Hi ho, travelers! Jessica's the name, adventuring's the game! You look like an interesting sort... Might I ask your name?~ IF ~~ THEN REPLY ~I am <CHARNAME>, strange one.~ GOTO HiThere IF ~~ THEN REPLY ~I'm sorry, I don't have time to talk to you right now.~ GOTO NiceEnd IF ~~ THEN REPLY ~I'm afraid I don't have the time to chat with crazies today, toots.~ GOTO RudeEnd END IF ~~ THEN BEGIN HiThere SAY ~You look like you're headed someplace exciting. Mind if I tag along?~ IF ~~ THEN REPLY ~Certainly.~ DO ~SetGlobal("JessJoined","LOCALS",1) JoinParty()~ EXIT IF ~~ THEN REPLY ~Not now, I'm afraid. Perhaps another day.~ EXIT IF ~~ THEN REPLY ~I most certainly DO mind, nutjob. Bugger off.~ EXIT END IF ~~ THEN BEGIN RudeEnd SAY ~Hmmf! Have it your way, then!~ IF ~~ THEN EXIT END IF ~~ THEN BEGIN NiceEnd SAY ~Very well then. I'll just, eh, keep hanging around right here, I guess.~ IF ~~ THEN EXIT END IF ~NumTimesTalkedToGT(0)~ THEN BEGIN Talk2 SAY ~Well hello again, Big Important Adventurers! Feel like bringing me along this time? You won't regret it! (She brandishes her swords wildly, grinning and winking at you between the bright, flashing blades)~ IF ~~ THEN REPLY ~Why, of course! How can I turn you down after such an impressive display?~ DO ~SetGlobal("JessJoined","LOCALS",1) JoinParty()~ EXIT IF ~~ THEN REPLY ~Hmmm... Nope. Still not interested.~ EXIT END BEGIN EBJesP IF ~Global("JessJoined","LOCALS",1)~ THEN BEGIN LeaveGroup SAY ~What's going on? I thought we were having fun?~ IF ~~ THEN REPLY ~We sure were. Let's keep going.~ DO ~JoinParty()~ EXIT IF ~~ THEN REPLY ~Maybe you were... But the fun faded for me some time ago. Run along, now.~ DO ~SetGlobal("JessJoined","LOCALS",0)~ EXIT END IF ~Global("JessJoined","LOCALS",0)~ THEN BEGIN ComeBack SAY ~So... Shall we re-start the party? (hot dance move)~ IF ~~ THEN REPLY ~Hell yeah. Welcome back, baby.~ DO ~SetGlobal("JessJoined","LOCALS",1) JoinParty()~ EXIT IF ~~ THEN REPLY ~I hate your little dance with every fiber of my being, Jessica. Stay away from me.~ EXIT END It's the "EBJesP" that I think isn't working, I guess, although... If the global "JessJoined" isn't getting set properly, that might produce my problem, right? I'm very much in the dark here, and any suggestions would be appreciated. Link to comment
Mike1072 Posted December 15, 2007 Share Posted December 15, 2007 Is the 'Export Allowed' flag set in your NPC's .cre file? Using Near Infinity, under the 'Flags' entry, be sure that 'Export Allowed (11)' is unchecked. Link to comment
Kulyok Posted December 15, 2007 Share Posted December 15, 2007 Check your .tp2 file and make sure her dialogue files get appended to pdialog.2da properly. I'd also recommend to check for KickOutVar=0 in her parting dialogue(the way NPC mods usually do it), instead of checking for JoinedVar=1. Link to comment
Ebola Bear Posted December 15, 2007 Share Posted December 15, 2007 Hey, appreciate the suggestions! Sadly, the variable switching didn't work for me. I changed instances of "JessJoined" to "JessKickedOut" in the parting dialogue portion, and switched the ones to zeros and vice-versa. Still not working, in-game I get the same generic dialogue from the npc on kicking-out/re-joining. I think the pdialogue.2da is getting appended properly... After install I checked with NI and found all my variables slapped on the bottom of the file there. If it helps, here is the appending portion of the .tp2: APPEND ~pdialog.2da~~EBJes EBJesP EBJesJ EBJesD EBJes25P EBJes25J EBJes25D EBJes25~ UNLESS ~EBJes~ APPEND ~interdia.2da~ ~EBJes EBJesB EBJesB25~ UNLESS ~EBJes~ Does this look right? I feel like there must be something simple that I'm screwing up, like a typo or something, but I can't for the life of me find it. Link to comment
berelinde Posted December 15, 2007 Share Posted December 15, 2007 What DV are you assigning to the CRE? How are you doing so? Link to comment
Ebola Bear Posted December 15, 2007 Share Posted December 15, 2007 The DV is set to "EBJes". I used NI. Link to comment
Kulyok Posted December 15, 2007 Share Posted December 15, 2007 Do you have other mods installed? Particularly Virtue - it shouldn't be installed _before_ any mods. But anyway, have you tried it on a clean install? Link to comment
Ebola Bear Posted December 15, 2007 Share Posted December 15, 2007 Perhaps I should have... I haven't got Virtue, but I do have the G3Fixpack, Tweaks, DungeonBeGone, Level1NPCs, and Fade. Link to comment
Ebola Bear Posted December 15, 2007 Share Posted December 15, 2007 AHA!!! I just uninstalled Level1NPCs and re-installed my NPC and the parting dialogue worked! Damn... Well, let that be a lesson to me. Thanks, Kulyok. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.