Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow toolset creation of Key-like behavior against tagged doors #1185

Merged
merged 2 commits into from
Nov 8, 2021

Conversation

HolmstN
Copy link

@HolmstN HolmstN commented Nov 6, 2021

Door

Variable Type Required Purpose
REQ_KEY_TAG string x Sets the item key to check in opening player's inventory
REQ_KEY_TIER int x Sets the tier the item key must match or exceed to open
REQ_KEY_FAIL_MSG string Optionally emits a message if the opening player is denied access

Key Item

Should have a Tag that matches the REQ_KEY_TAG of any door that it should open.

EG for the Jedi Temple, this may be called JEDI_KEY in both the Door Variable and Key Tag

Also has a variable:

Variable Type Required Purpose
TIER int x The value the OnOpen event checks when verifying whether the user can open a door

If the TAG matches, the door will then check against the TIER. If the TIER >= the REQ_KEY_TIER, then the door will open.

Relationship

Door Key (an NWN Item)
var: REQ_KEY_TAG tag
var: REQ_KEY_TIER var: TIER

@HolmstN HolmstN marked this pull request as ready for review November 7, 2021 03:41
Copy link
Owner

@zunath zunath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks for the extensive documentation.

@zunath zunath merged commit 740e21a into zunath:master Nov 8, 2021
@zunath zunath mentioned this pull request Jul 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants