FF7/Field/Script/Opcodes/36 WSPCL

From Final Fantasy Inside
< FF7‎ | Field‎ | Script‎ | Opcodes
Revision as of 05:16, 23 May 2019 by BukTop (talk | contribs) (5 revisions imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
  • Opcode: 0x36
  • Short name: WSPCL
  • Long name: Window Special (Numerical Display)

Contents

Memory layout

0x36 W T X Y

Arguments

  • const UByte W: WINDOW ID to apply the change to.
  • const UByte T: Type of display.
  • const UByte X: X-coordinate of the numerical display, relative to the top-left of the window.
  • const UByte Y: Y-coordinate of the numerical display, relative to the top-left of the window.

Description

Creates a numerical display inside the given window. The display can be either in the form of a clock, or a scoreboard with six digits. This only creates the numerical display; to actually show it, a MESSAGE or ASK command needs to be issued. Using a blank line of dialog will allow you to create a numerical display in the top-left of the window without field dialog hidden behind it. Alternatively, dialog can be shown along with the display by placing the display in an appropriate area of the window.

To set the time for the clock variant, STTIM is used. To set the number for the numerical display, WNUMB is used.

Display types

ID Display Type
0 None
1 Clock (00:00)
2 Numeric (000000)