I’m trying to get a companion creature “locked” into a polymorph. As far as I understand, I need to set the “nLocked” parameter to True, but even though I do it, the script gives me an Undeclared Identifier error for it.
When it says to set a parameter to anything you do not need to have an assignment to do it. Rather you place the variable or value that the parameter uses into that slot in the function call.
[shameless self promotion] While I realise that you are on NwN 2 and I wrote it primarily for NwN, I still honestly think this ebook that I wrote would be of use to you - TR’s Basics - Variables, Types and Functions (TBC).