Difference between revisions of "FF7/Field/Script/Opcodes/48 ASK"

From Final Fantasy Inside
< FF7‎ | Field‎ | Script‎ | Opcodes
Jump to navigation Jump to search
my_wiki>Halkun
 
m (4 revisions imported)
 
(3 intermediate revisions by 2 users not shown)
Line 16: Line 16:
 
==== Arguments ====
 
==== Arguments ====
  
* '''const UByte''' ''Bank'': Bank to put line selected.
+
* '''const UByte''' ''Bank'': Bank to put line number selected.
 
* '''const UByte''' ''Win'': Window ID to place the question in. (Initialized with WINDOW)
 
* '''const UByte''' ''Win'': Window ID to place the question in. (Initialized with WINDOW)
 
* '''const UByte''' ''Mess'': Which dialog to display from dialog table.
 
* '''const UByte''' ''Mess'': Which dialog to display from dialog table.
* '''const UByte''' ''First'': Line where first question is.
+
* '''const UByte''' ''First'': Line from dialog where the first question is.
* '''const UByte''' ''Last'': Line where last question is.
+
* '''const UByte''' ''Last'': Line from dialog where the last question is.
 
* '''const UByte''' ''Addr'': Address in bank where line selected is written.
 
* '''const UByte''' ''Addr'': Address in bank where line selected is written.
 
  
 
==== Description ====
 
==== Description ====
 
The ASK command opens a window with a set of choices to be picked with the "selector finger". If ASK is called on an open window ID, the window will shrink closed and re-open with the new data.
 
The ASK command opens a window with a set of choices to be picked with the "selector finger". If ASK is called on an open window ID, the window will shrink closed and re-open with the new data.

Latest revision as of 05:16, 23 May 2019

  • Opcode: 0x48
  • Short name: ASK
  • Long name: Ask Question

Memory layout

0x48 Bank Win Mess First Last Addr

Arguments

  • const UByte Bank: Bank to put line number selected.
  • const UByte Win: Window ID to place the question in. (Initialized with WINDOW)
  • const UByte Mess: Which dialog to display from dialog table.
  • const UByte First: Line from dialog where the first question is.
  • const UByte Last: Line from dialog where the last question is.
  • const UByte Addr: Address in bank where line selected is written.

Description

The ASK command opens a window with a set of choices to be picked with the "selector finger". If ASK is called on an open window ID, the window will shrink closed and re-open with the new data.