Difference between revisions of "FF7/Field/Script/Opcodes/36 WSPCL"

From Final Fantasy Inside
< FF7‎ | Field‎ | Script‎ | Opcodes
Jump to navigation Jump to search
my_wiki>Synergy Blades
 
my_wiki>Synergy Blades
m (+wnumb)
Line 23: Line 23:
 
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 [[FF7/Field/Script/Opcodes/40 MESSAGE|MESSAGE]] or [[FF7/Field/Script/Opcodes/48 ASK|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.
 
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 [[FF7/Field/Script/Opcodes/40 MESSAGE|MESSAGE]] or [[FF7/Field/Script/Opcodes/48 ASK|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, use [[FF7/Field/Script/Opcodes/38 STTIM|STTIM]].
+
To set the time for the clock variant, use [[FF7/Field/Script/Opcodes/38 STTIM|STTIM]]. To set the number for the numerical display, use [[FF7/Field/Script/Opcodes/37 WNUMB|WNUMB]].
  
 
==== Display types ====
 
==== Display types ====

Revision as of 05:09, 4 September 2006

  • Opcode: 0x36
  • Short name: WSPCL
  • Long name: Window Special (Numerical Display)

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, use STTIM. To set the number for the numerical display, use WNUMB.

Display types

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