Skip to content

feat(editor): author NPC actions in game - #14

Merged
lusu007 merged 1 commit into
mainfrom
feat/ingame-npc-actions
Sep 8, 2026
Merged

feat(editor): author NPC actions in game#14
lusu007 merged 1 commit into
mainfrom
feat/ingame-npc-actions

Conversation

@lusu007

@lusu007 lusu007 commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add /scene npc <id> action set <trigger> <action-key> for catalog-backed, parameterless application actions
  • preserve conditional, timed, native, and other-trigger bindings while replacing only the simple application-action binding
  • add document-pinned completion, dedicated permission, and normal undo/redo/save integration

Verification

  • ./gradlew spotlessCheck check --console=plain
  • independent code review: no findings

This intentionally does not add arbitrary commands, URLs, or generic action-argument authoring.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 8, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-08T19:58:08.452997Z bec86cb PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@lusu007
lusu007 merged commit ec9e41e into main Sep 8, 2026
2 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bec86cba0e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

binding.conditions.isEmpty() &&
binding.cooldownMillis == 0L &&
binding.debounceMillis == 0L &&
binding.actions.all { it is ApplicationAction }

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve unverified application-action bindings

When an NPC has an unconditional, untimed binding for this trigger containing an unknown action or catalog-invalid arguments, this predicate still classifies the binding as replaceable and silently deletes it. Other mutations deliberately preserve such actions as READ_ONLY_APPLICATION_ACTION, so setting a different valid action can unexpectedly discard data the editor cannot safely interpret; reject the edit or only replace bindings whose existing application actions are verified.

Useful? React with 👍 / 👎.

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.

1 participant