Difference between revisions of "FF7/Field/Script/Opcodes/5D CMTRA"
Jump to navigation
Jump to search
my_wiki>Myst6re (Bank 5) |
my_wiki>BukTop (Created page with "* Opcode: '''0x5D''' * Short name: '''CMTRA''' * Long name: Check Materia ==== Memory layout ==== {| style="border: 1px solid black; border-collapse: collapse" border="1"...") |
||
Line 3: | Line 3: | ||
* Long name: Check Materia | * Long name: Check Materia | ||
− | ==== Memory layout ==== | + | ==== Memory layout ==== |
− | {| border="1" cellspacing="1" cellpadding="3 | + | |
+ | {| style="border: 1px solid black; border-collapse: collapse" border="1" cellspacing="1" cellpadding="3" | ||
! width="40" | 0x5D | ! width="40" | 0x5D | ||
! width="50" | ''B1 / B2'' | ! width="50" | ''B1 / B2'' | ||
Line 15: | Line 16: | ||
|} | |} | ||
− | ==== Arguments ==== | + | ==== Arguments ==== |
− | * '''const Bit[4]''' ''B1'': Source bank 1, or zero if ''T'' is set as a constant value. | + | * '''const Bit[4]''' ''B1''<nowiki>: Source bank 1, or zero if </nowiki>''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]''' ''B2''<nowiki>: Source bank 2, or zero if this unit of </nowiki>''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]''' ''B3''<nowiki>: Source bank 3, or zero if this unit of </nowiki>''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 Bit[4]''' ''B4''<nowiki>: Source bank 4, or zero if this unit of </nowiki>''AP'' is set as a constant value. |
− | * '''const UByte''' ''B5'': Bank to store ''A''. | + | * '''const UByte''' ''B5''<nowiki>: Bank to store </nowiki>''A''. |
− | * '''const UByte''' ''T'': [[FF7/Field/Script/ | + | * '''const UByte''' ''T''<nowiki>: </nowiki>[[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[3]''' ''AP''<nowiki>: Amount of AP the checked materia must have, or source addresses 2, 3 and 4. </nowiki> |
− | * '''const UByte''' ''U'': Unknown. | + | * '''const UByte''' ''U''<nowiki>: Unknown. </nowiki> |
− | * '''const UByte''' ''A'': Address to store amount of materia found. | + | * '''const UByte''' ''A''<nowiki>: Address to store amount of materia found. </nowiki> |
− | ==== Description ==== | + | ==== Description ==== |
Places the amount of materia with specified type and AP into the bank and address specified. | Places the amount of materia with specified type and AP into the bank and address specified. | ||
− | ==== Important Note ==== | + | ==== Important Note ==== |
This opcode is '''not''' implemented in the PC version of the game, nor used in the PlayStation version. | This opcode is '''not''' implemented in the PC version of the game, nor used in the PlayStation version. |
Revision as of 18:12, 24 March 2018
- Opcode: 0x5D
- Short name: CMTRA
- Long name: Check Materia
Memory layout
0x5D | B1 / B2 | B3 / B4 | B5 | T | AP | U | 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 B5: Bank to store A.
- const UByte T: 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.