Changes

Jump to navigation Jump to search

FF7/Field/Script/Opcodes/5D CMTRA

1,376 bytes added, 17:25, 14 September 2006
no edit summary
* Opcode: '''0x5D'''
* Short name: '''CMTRA'''
* Long name: Check Materia

==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0x5D
! width="50" | ''B1 / B2''
! width="50" | ''B3 / B4''
! width="40" | ''B5''
! width="40" | ''T''
! width="120" | ''AP''
! width="40" | ''U''
! width="40" | ''A''
|}

==== Arguments ====

* '''const Bit[4]''' ''B1'': Source bank 1, or zero if ''T'' is set as a constant value.
* '''const Bit[4]''' ''B2'': Source bank 2, or zero if this unit of ''AP'' is set as a constant value.
* '''const Bit[4]''' ''B3'': Source bank 3, or zero if this unit of ''AP'' is set as a constant value.
* '''const Bit[4]''' ''B4'': Source bank 4, or zero if this unit of ''AP'' is set as a constant value.
* '''const UByte''' ''T'': [[FF7/Field/Script/Materia ID|Type of materia]] to check, or source address 1.
* '''const UByte[3]''' ''AP'': Amount of AP the checked materia must have, or source addresses 2, 3 and 4.
* '''const UByte''' ''U'': Unknown.
* '''const UByte''' ''A'': Address to store amount of materia found.

==== Description ====

Places the amount of materia with specified type and AP into the bank and address specified.

==== Important Note ====

This opcode is '''not''' implemented in the PC version of the game, nor used in the PlayStation version.

Navigation menu