5rTZpq Posted September 20, 2020 Posted September 20, 2020 Hi, I'm trying to make new force powers. For that, I have edited k_inc_force,nss. Yet when I try to compile k_sp1_generic.nss (k_inc_force and k_inc_debug are in the same folder), I get this.... --------------------------- Compiler output --------------------------- Lookup path root set to: D:\KotOR2\ Loaded nwscript.nss from D:\KotOR2\override/ Compiling: k_sp2_generic.nss Loaded k_inc_debug.nss from D:\KotOR2\override/ Loaded k_inc_force.nss from D:\KotOR2\override/ Loaded k_inc_debug.nss from D:\KotOR2\override/ Loaded k_inc_force.nss from D:\KotOR2\override/ k_inc_force.nss(5948): Error: Undeclared identifier "FORCE_POWER_INCINERATION" k_inc_force.nss(6088): Error: Undeclared identifier "FORCE_POWER_COMBUSTION" Compilation aborted with errors Total Execution time = 31 ms --------------------------- OK --------------------------- How do I declare the force power names? Before you answer, it is not a problem of my actual changes to the script. Any changes to force power names (new or old) lead to the undeclared identifier error. I'm using kotor tool for compilation. Quote
DarthParametric Posted September 20, 2020 Posted September 20, 2020 Vanilla Force power values are declared in nwscript.nss. If you have added new ones (the errors are not vanilla powers) and want to use a constant then you need to declare it one of the scripts you are compiling (doesn't matter which, as the compiler will pull it in from an include if it is there). The value is an INT, derived from the row ID in spells.2da. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.