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
 
my_wiki>Synergy Blades
m (cap)
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.

Revision as of 02:53, 8 September 2006

  • Opcode: 0x3A
  • Short name: GOLDd
  • Long name: Gil Down

Memory layout

0x3A 0 A


0x3A B 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 UByte 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.