Difference between revisions of "FF7/Field/Script/Opcodes/99 RANDOM"

From Final Fantasy Inside
< FF7‎ | Field‎ | Script‎ | Opcodes
Jump to navigation Jump to search
my_wiki>Synergy Blades
m
my_wiki>BukTop
m (3 revisions imported)
(No difference)

Revision as of 12:34, 4 April 2018

  • Opcode: 0x99
  • Short name: RANDOM
  • Long name: Random

Memory layout

0x99 B A

Arguments

  • const UByte B: Destination bank.
  • const UByte A: Destination address.

Description

Places a random 8-bit value into the destination bank and address specified. If you specify a 16-bit bank, only the lower byte is randomised.