Anonymous

Changes

From Final Fantasy Inside

FF7/Field/Script/Opcodes/36 WSPCL

1,778 bytes added, 21:39, 18 August 2006
no edit summary
* Opcode: '''0x36'''
* Short name: '''WSPCL'''
* Long name: Window Special (Numerical Display)

==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0x36
! width="40" | ''W''
! width="40" | ''T''
! width="40" | ''X''
! width="40" | ''Y''
|}

==== Arguments ====

* '''const UByte''' ''W'': [[FF7/Field/Script/Opcodes/50 WINDOW|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 [[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]].

==== Display types ====

{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! style="background:rgb(204,204,204)" width="40" | ID
! style="background:rgb(204,204,204)" width="150" | Display Type
|-
| align="center" | 0
| None
|-
| align="center" | 1
| Clock (00:00)
|-
| align="center" | 2
| Scoreboard (000000)
|-
|}