Difference between revisions of "FF7/Field/Script/Opcodes/3A GOLDd"

From Final Fantasy Inside
< FF7‎ | Field‎ | Script‎ | Opcodes
Jump to navigation Jump to search
my_wiki>Synergy Blades
m (cap)
my_wiki>Lasyan3@hotmail.com
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="40" | ''B''
+
! 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 UByte''' ''B'': Source bank.
+
* '''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:54, 3 June 2011

  • 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.