feat(scripting): Phase 2 — behaviour & breadth (onTick/think, onDeath, quests, timers) #195
Labels
No labels
alpha:wave-0
alpha:wave-1
alpha:wave-2
alpha:wave-3
area:assets
area:combat
area:ecology
area:infra
area:render
area:scripting
area:ui
area:world
enhancement
epic
migration
post-alpha
roadmap
tech-debt
type:bug
type:chore
type:design
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
marco/IsoMmo#195
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Follow-up to #183 (Phase 1 shipped in #193). Grow the scripting layer from the
onUsespine to real behaviour.Scope
onTick/thinkcadence so a scripted creature's AI can run in Lua (mind the hot path — keep the tick cost bounded; the engine still drives movement).onDeath,onEnterTile,onQuestStep.scheduleverb, with reload cancels pending timers (the Phase-1 verification plan item that is N/A until timers exist).IScriptContextverbs as needed (each decorated → regeneratedapi.d.lua+ docs).Definition of Done (delta)
onDeathfires and is unit-tested; ascheduled timer runs and is cancelled on/reloadscripts(unit-tested).api.d.luaregenerates (drift-check green) anddocs/scripting.mdcovers them.