Difference between revisions of "FF7/Field/Script/Opcodes/39 GOLDu"
Jump to navigation
Jump to search
my_wiki>Synergy Blades m (cap) |
my_wiki>Lasyan3@hotmail.com m |
||
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" | 0x39 | ! width="40" | 0x39 | ||
− | ! width=" | + | ! width="50" | ''B / 0'' |
! width="40" | ''A'' | ! width="40" | ''A'' | ||
! width="120" | ''0'' | ! width="120" | ''0'' | ||
Line 27: | Line 27: | ||
Increase by an amount found in memory: | Increase 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. |
Revision as of 19:55, 3 June 2011
- Opcode: 0x39
- Short name: GOLDu
- Long name: Gil Up
Memory layout
0x39 | 0 | A |
---|
0x39 | B / 0 | A | 0 |
---|
Arguments
Increase by a constant amount:
- const UByte 0: Zero.
- const ULong A: Amount to increase.
Increase 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
Increases 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 above by 0xFFFFFFFF; attempts to increment further will fail.