Changes
Jump to navigation
Jump to search
no edit summary
* Opcode: '''0x7F'''
* Short name: '''RDMSD'''
* Long name: Seed Random Generator
==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0x7F
! width="40" | ''B''
! width="40" | ''S''
|}
==== Arguments ====
* '''const UByte''' ''B'': Source bank, or zero if ''S'' is specified as a literal value.
* '''const UByte''' ''S'': Seed for the random generator, or address for the seed if ''B'' is non-zero.
==== Description ====
Seeds the random number generator used by [[FF7/Field/Script/Opcodes/99 RANDOM|RANDOM]]. The lower four bits of the arguments are used as the seed value by altering the offset used to take a value from the table of pseudo-random numbers.
* Short name: '''RDMSD'''
* Long name: Seed Random Generator
==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0x7F
! width="40" | ''B''
! width="40" | ''S''
|}
==== Arguments ====
* '''const UByte''' ''B'': Source bank, or zero if ''S'' is specified as a literal value.
* '''const UByte''' ''S'': Seed for the random generator, or address for the seed if ''B'' is non-zero.
==== Description ====
Seeds the random number generator used by [[FF7/Field/Script/Opcodes/99 RANDOM|RANDOM]]. The lower four bits of the arguments are used as the seed value by altering the offset used to take a value from the table of pseudo-random numbers.