Several functions use a default parameter of OBJECT_INVALID in NWN.Core. This is inconsistent with the default parameter in NWScript. One example of this is GetLastOpenedBy()
In NWScript, the parameter's default value is OBJECT_SELF but in NWN.Core, it's OBJECT_INVALID. This can lead to misunderstandings as you move between contexts.
I understand there's not currently a constant value for OBJECT_SELF which makes this challenging to implement. If this isn't possible, consider implementing a conversion of OBJECT_INVALID -> OBJECT_SELF at runtime for the functions where this is the case.
Several functions use a default parameter of OBJECT_INVALID in NWN.Core. This is inconsistent with the default parameter in NWScript. One example of this is GetLastOpenedBy()
In NWScript, the parameter's default value is OBJECT_SELF but in NWN.Core, it's OBJECT_INVALID. This can lead to misunderstandings as you move between contexts.
I understand there's not currently a constant value for OBJECT_SELF which makes this challenging to implement. If this isn't possible, consider implementing a conversion of OBJECT_INVALID -> OBJECT_SELF at runtime for the functions where this is the case.