feat(bridge): the faction table and an event's escort, ally and tether (runicnpc stage 5) #23
Reference in New Issue
Block a user
No description provided.
Delete Branch "feat/runicnpc-stage5"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
The bridge's half of RunicNPC stage 5 (docs
runicnpc/PLAN.md, PROTOCOL.md §19.13). Joins protocol 13 (D253); no message changes shape.npc.profilesanswers with RunicNPC's faction table;npc.profiles.settakesfactionsbesideprofilesand sets it first (RunicNpc_SetFactions). A refused table comes back asfactionsRefused, the old one kept (D254).world.placewith aprofiletakesescort(a Steam id; not on the server →escort-offline, retried),ally({kind: clan|player, id}) andtether(the run's own zone that holds the point, elseno-zone), and gives each NPC its orders throughRunicNpc_Escort,_Allyand_Tether. All or nothing, as before: a refused order removes every NPC the step placed (D269, D270, D272).RunicNpcApiNeeded = 4,runicnpc_api = 4inoverlay.toml(checkPlugin.jsholds them equal).Tested
Compiled and loaded on both rigs. Walked from the site: an event's guards on Carbon carried the pushed faction, the ally and the run's own zone as their tether, and were given back at teardown; an escort who was not on the server failed the step with this bridge's sentence.
node scripts/checkPlugin.jspasses.Checklist
Claude Code (Claude Opus 5.5). The commit carries theCo-Authored-Bytrailer.🤖 Generated with Claude Code
https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY
- npc.profiles answers with RunicNPC's faction table, and npc.profiles.set pushes one beside the profiles (RunicNpc_SetFactions), set first so the profiles are checked against it; a refused table comes back as factionsRefused and the old one is kept (D254); - world.place with a profile takes escort (a Steam id; the player must be on, else escort-offline), ally ({kind: clan|player, id}) and tether (the run's own zone that holds the point, else no-zone), and gives each NPC its orders through RunicNpc_Escort, _Ally and _Tether. All or nothing: an order RunicNPC refuses removes every NPC the step placed (D269, D270, D272); - the RunicNPC API the bridge needs is 4 (overlay.toml runicnpc_api = 4). Compiled on the Oxide rig. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY