Difference between revisions of "GetTableSize"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
Line 3: Line 3:
 
{{IE_EE_ex}}
 
{{IE_EE_ex}}
  
Loads a database from the CD which was created by the Event Databases spreadsheet and subsequently patched with FFTOrgASM.
+
Gets the size, or number of rows, of a table in the currently loaded database, so you can easily loop through all rows.
  
Alongside [[Event_Instruction_EF|{EF} {{IE_EF}}]], it allows to quickly load multiple variables with desired values with minimal event space use.
 
  
 +
See also: [[Event_Instruction_ED|{ED} {{IE_ED}}]] ― [[Event_Instruction_EF|{EF} {{IE_EF}}]]
  
See also: [[Event_Instruction_EF|{EF} {{IE_EF}}]]
 
  
 +
== Variable : Byte (hex) ==
 +
Variable to store the number of rows the Table holds.
  
== Sector Offset : Byte (unsigned) ==
 
Sector Offset of the desired Database as identified in the Event Databases spreadsheet.
 
  
 
+
== Table ID : Byte (hex) ==
== Sector Length : Byte (unsigned) ==
+
Table ID as defined in the "Table Index" sheet of the Event Databases spreadsheet for the currently loaded Database.
Sector Length of the desired Database as identified in the Event Databases spreadsheet.
 

Revision as of 07:24, 22 February 2021

{EE} GetTableSize

GetTableSize(xVR,xTB)

Gets the size, or number of rows, of a table in the currently loaded database, so you can easily loop through all rows.


See also: {ED} LoadDatabase{EF} FetchTableRow


Variable : Byte (hex)

Variable to store the number of rows the Table holds.


Table ID : Byte (hex)

Table ID as defined in the "Table Index" sheet of the Event Databases spreadsheet for the currently loaded Database.