DarthRevan101 104 Posted November 10, 2015 For a mod I'm working on, I need to make a situation where once the PC enters a certain planet, with a certain party member, during a certain part of a quest an NPC will appear when the module loads. Like when you here about Bastila's mother or Mission's brother. Where would I even start going about this? Quote Share this post Link to post Share on other sites
Fair Strides 509 Posted November 11, 2015 For a mod I'm working on, I need to make a situation where once the PC enters a certain planet, with a certain party member, during a certain part of a quest an NPC will appear when the module loads. Like when you here about Bastila's mother or Mission's brother. Where would I even start going about this? You would need the globals of the quest, and then you'd need to edit (decompile with DeNCS) the OnEnter script (check the .are or .ifo file) to check for the party member and the variables. Alternatively to the globals, you could check the journal's entry for a particular quest... Quote Share this post Link to post Share on other sites
DarthRevan101 104 Posted November 11, 2015 (edited) You would need the globals of the quest, and then you'd need to edit (decompile with DeNCS) the OnEnter script (check the .are or .ifo file) to check for the party member and the variables. Alternatively to the globals, you could check the journal's entry for a particular quest... In DeNCS I get this message; error cannot open actions file C:/windows/system32/nwsscript.nss Nevermind, according to the readme DeNCS only works for TSL.. Edited November 11, 2015 by DarthRevan101 Quote Share this post Link to post Share on other sites
Kexikus 995 Posted November 11, 2015 In DeNCS I get this message; error cannot open actions file C:/windows/system32/nwsscript.nss Nevermind, according to the readme DeNCS only works for TSL.. It works perfectly fine for K1 too, you just have to swap DeNCS' default nwsscript.nss (the TSL version) with the K1 version. I think it's in the main DeNCS installation folder. Quote Share this post Link to post Share on other sites
LiliArch 115 Posted November 11, 2015 Though if it tries to find it from C:/windows/system32/ folder, you must have something wrong... Quote Share this post Link to post Share on other sites
Hassat Hunter 571 Posted November 14, 2015 Alternatively you can always use a trigger to "fake it", but the onenter is advised. Quote Share this post Link to post Share on other sites
DrMcCoy 40 Posted November 20, 2015 decompile with DeNCS Btw, this might be relevant to your interests: I've been writing an NCS disassembler the last few weeks, which can disassemble all NCS scripts found in Neverwinter Nights to Dragon Age II, including KotOR and KotOR2. Doesn't need an nwscript.nss either. It's assembly output looks like this. It also does some stack analysis and marks subroutines with a full signature, i.e. the numer of arguments and their types, and the return type (or types, in case of a subroutine returning a struct). It can also create a DOT graph description file, which can be used by Graphviz to draw a control flow graph, like this here, which makes scripts either to understand, I find. I've also added a simple control structure analysis, which makes it detect do-while and while loops, as well as if and if-else. An artificial example would be here. The next step is adding simple C-like code generation, to expand it into a proper decompiler. I.e. the result will be something close to the original NWScript source. Minus variable names, of course. And it'll be a lot more verbose at first. And I'm not yet handling structs and vectors as joined either. There's no binary release yet, but the source can be found in the xoreos-tools repository. Specifically, ncsdis.cpp and the nwscript/ directory. Anybody interested in expanded this is of course always welcome; please feel free to contact me. I also have an assembler and a compiler (to replace the old OpenKnights nwnnsscomp in all its different flavours) on my TODO list; that'd be up for grabs too. Quote Share this post Link to post Share on other sites