A thin query layer designed for use from Simulacrum's run_javascript tool.
Provides simplified, serializable summaries of common game state without
requiring knowledge of deep schema paths.
Usage (in run_javascript):
game.bms.ai.actor("Name or ID") → vitals, resources, attributes
game.bms.ai.combat() → tracker state (non-empty downs)
game.bms.ai.actors() → all actors, brief
game.bms.ai.items(actor) → actor's items by type
Type Declaration
_resolve: function
_resolve(nameOrId:string):any
Find an actor by name or ID.
Parameters
nameOrId: string
Returns any
actor: function
actor(actorOrId:any):object
Summarise an actor's vitals, resources, and attributes.
Parameters
actorOrId: any
Returns object
actors: function
actors():object[]
Brief list of all world actors.
Returns object[]
combat: function
combat():string|object
Summarise the active combat tracker.
Returns only downs that have at least one action or effect.
BMS AI Helpers — game.bms.ai
A thin query layer designed for use from Simulacrum's run_javascript tool. Provides simplified, serializable summaries of common game state without requiring knowledge of deep schema paths.
Usage (in run_javascript): game.bms.ai.actor("Name or ID") → vitals, resources, attributes game.bms.ai.combat() → tracker state (non-empty downs) game.bms.ai.actors() → all actors, brief game.bms.ai.items(actor) → actor's items by type