scene-set-door-state
Open, close, or lock a door on the scene. Get wall IDs from scene-get → walls[] where door=1 (normal door) or door=2 (secret door). Door states: 0=closed, 1=open, 2=locked. To let a token walk through a locked door: scene-set-door-state(wallId, 0) to unlock, then token-move with canOpenDoors=true. Secret doors (door=2) cannot be opened by token-move even with canOpenDoors — use scene-set-door-state directly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | Door state: 0=closed, 1=open, 2=locked | |
| wallId | Yes | Wall ID of the door (from scene-get → walls[].id where door >= 1) | |
| sceneId | No | Scene ID (uses active scene if omitted) |