Skip to content

Make default parameters consistent with NWScript #63

@zunath

Description

@zunath

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions