Difference between revisions of "FF7/Field/Script/Opcodes/3A GOLDd"
Jump to navigation
Jump to search
my_wiki>Synergy Blades |
m (4 revisions imported) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 13: | Line 13: | ||
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;" | {| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;" | ||
! width="40" | 0x3A | ! width="40" | 0x3A | ||
− | ! width=" | + | ! width="50" | ''B / 0'' |
! width="40" | ''A'' | ! width="40" | ''A'' | ||
! width="120" | ''0'' | ! width="120" | ''0'' | ||
Line 27: | Line 27: | ||
Decrease by an amount found in memory: | Decrease by an amount found in memory: | ||
− | * '''const | + | * '''const Bit[4]''' ''B'': Source bank. |
* '''const UByte''' ''A'': Source address. | * '''const UByte''' ''A'': Source address. | ||
* '''const UByte[3]''' ''0'': Three zero bytes. | * '''const UByte[3]''' ''0'': Three zero bytes. | ||
Line 34: | Line 34: | ||
Decreases the amount of gil by a constant amount, or by an amount found in the source bank ''B'' and address ''A''. | Decreases the amount of gil by a constant amount, or by an amount found in the source bank ''B'' and address ''A''. | ||
+ | |||
+ | The total gil is capped below by 0; attempts to decrement further will fail. |
Latest revision as of 05:16, 23 May 2019
- Opcode: 0x3A
- Short name: GOLDd
- Long name: Gil Down
Memory layout
0x3A | 0 | A |
---|
0x3A | B / 0 | A | 0 |
---|
Arguments
Decrease by a constant amount:
- const UByte 0: Zero.
- const ULong A: Amount to increase.
Decrease by an amount found in memory:
- const Bit[4] B: Source bank.
- const UByte A: Source address.
- const UByte[3] 0: Three zero bytes.
Description
Decreases the amount of gil by a constant amount, or by an amount found in the source bank B and address A.
The total gil is capped below by 0; attempts to decrement further will fail.