Skip to content

feat(lua,mods): NPC OMT movement & unload bindings, surv radio#8405

Open
shmakota wants to merge 11 commits intocataclysmbn:mainfrom
shmakota:survivor_radio
Open

feat(lua,mods): NPC OMT movement & unload bindings, surv radio#8405
shmakota wants to merge 11 commits intocataclysmbn:mainfrom
shmakota:survivor_radio

Conversation

@shmakota
Copy link
Copy Markdown
Collaborator

Purpose of change (The Why)

We need a bunch of hooks for NPC movement on the overmap for it to actually be useful. Also these are requirements for the survivor radio mod.

Describe the solution (The How)

Add bindings for getting, setting, and clearing the omt destination of NPCs, and signaling them to travel there

Also adds bindings for when creatures and NPCs are unloaded.

Describe alternatives you've considered

Testing

Try out the included survivor radio mod.

Additional context

image image image

Checklist

Mandatory

Optional

  • This PR adds/removes a mod.
    • I have added mods scope to the PR title.
    • The mod_name in data/mods/<mod_name> matches id in modinfo.json.
    • I have committed the output of deno task semantic.
  • This PR modifies lua scripts or the lua API.

@github-actions github-actions Bot added src changes related to source code. JSON related to game datas in JSON format. mods PR changes related to mods. lua PRs and issues related to Lua scripting labels Mar 29, 2026
@shmakota shmakota changed the title feat(lua): NPCs overmap movement & unload bindings, surv radio feat(lua,mods): NPC OMT movement & unload bindings, surv radio Mar 29, 2026
@autofix-ci
Copy link
Copy Markdown
Contributor

autofix-ci Bot commented Mar 29, 2026

Autofix has formatted code style violation in this PR.

I edit commits locally (e.g: git, github desktop) and want to keep autofix
  1. Run git pull. this will merge the automated commit into your local copy of the PR branch.
  2. Continue working.
I do not want the automated commit
  1. Format your code locally, then commit it.
  2. Run git push --force to force push your branch. This will overwrite the automated commit on remote with your local one.
  3. Continue working.

If you don't do this, your following commits will be based on the old commit, and cause MERGE CONFLICT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

JSON related to game datas in JSON format. lua PRs and issues related to Lua scripting mods PR changes related to mods. src changes related to source code.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant