This may be kind of a dunce question, but it sapped about 4 hours of my time last night trying to figure it out. I have a group of custom races defined in my racialtypes.2da that I want to check via scripting- so when someone clicks on something or uses a given spell, it’ll check their racial type and modify the effects.
However when I attempt to do this via script, I get an unknown constant error. I kind of expected that because there isn’t a definition of what this racial type is, but when I attempt to define it with something like:
const string racialtype_aasimar;
I get nothing.
I’ve attempted (unsuccessfully) to get nwscript to return the race of the PC as well using a switch statement with the standard racial types as well. I was trying to figure out what NWN saw this PC as, but it just doesn’t give me anything back at all.
Is this stuff hard coded and I’m just spinning my wheels or is my approach way off?