Difference between revisions of "FF7/Field/Script/Opcodes/5A CKITM"

From Final Fantasy Inside
< FF7‎ | Field‎ | Script‎ | Opcodes
Jump to navigation Jump to search
my_wiki>Synergy Blades
 
m (4 revisions imported)
 
(3 intermediate revisions by 2 users not shown)
Line 7: Line 7:
 
! width="40" | 0x5A
 
! width="40" | 0x5A
 
! width="40" | ''B''
 
! width="40" | ''B''
! width="40" | ''I''
+
! width="80" | ''I''
 
! width="40" | ''A''
 
! width="40" | ''A''
 
|}
 
|}
Line 16: Line 16:
 
* '''const UShort''' ''I'': [[FF7/Field/Item ID|Item ID]] to check.
 
* '''const UShort''' ''I'': [[FF7/Field/Item ID|Item ID]] to check.
 
* '''const UByte''' ''A'': Address to store result.
 
* '''const UByte''' ''A'': Address to store result.
 
  
 
==== Description ====
 
==== Description ====
  
 
Copies the amount of item '''I''' the player has in their inventory, to the bank and address specified.
 
Copies the amount of item '''I''' the player has in their inventory, to the bank and address specified.

Latest revision as of 05:17, 23 May 2019

  • Opcode: 0x5A
  • Short name: CKITM
  • Long name: Check Item

Memory layout

0x5A B I A

Arguments

  • const UByte B: Bank to store result.
  • const UShort I: Item ID to check.
  • const UByte A: Address to store result.

Description

Copies the amount of item I the player has in their inventory, to the bank and address specified.