Redraw the scene
SCRIPT_DRAW_SCENE · opcode 0xe4 · 1 byte
Script virtual machine · Opcode list · Messages and scene redraw
Redraws the dungeon view.
Encoding
| Offset | Type | Field | Meaning |
|---|---|---|---|
| 0 | u8 | opcode | 0xe4 |
The instruction has no operands.
Behavior
The handler calls the scene-redraw routine with the value 1. It draws the view from the party's current block and facing into a work page. It then waits for any flash to end and, after a step of the player, until four ticks have passed since the previous step's redraw. Next it copies the view to the screen (not while resting), plays a pending block sound and draws the compass (not while a dialogue or the spell book is open). The pending scene update is then cleared.1
Observed use
The reference scripts contain 178 instructions of this kind.