Skip to main content

Redraw the scene

SCRIPT_DRAW_SCENE · opcode 0xe4 · 1 byte

Script virtual machine · Opcode list · Messages and scene redraw

Redraws the dungeon view.

Encoding​

OffsetTypeFieldMeaning
0u8opcode0xe4

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.

Sources​

Footnotes​

  1. Handler for 0xe4 and the overlay scene-redraw routine. Comparative source: oeob_drawScene in REF-SCUMM-003. Usage comes from decoding the scripts reachable in the 16 reference INF files. ↩