059D

From GTAMods Wiki
Revision as of 03:08, 13 August 2015 by Spaceeinstein (talk | contribs) (Created page with "{{Icon|VC}} {{Icon|SA}} '''SHUFFLE_CARD_DECKS''' <hr /> '''Description''' : Shuffle card decks '''Syntax''' : 059D: shuffle_card_decks [''int''] '''Parameter''' : [''int''] ::...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Vice City San Andreas SHUFFLE_CARD_DECKS


Description

Shuffle card decks

Syntax

059D: shuffle_card_decks [int]

Parameter

[int]
Integer value (between 0 and 6)

This opcode generates arrays of randomly ordered numbers between 1 and 52, the number of arrays determined by the value of this opcode. The arrays simulate the random order when shuffling a deck of 52 cards. Opcode 059E is used to read the elements of the arrays. A value of 0 clears the deck by filling the arrays with the number 0.

Keywords

shuffle, card, deck, decks

Reference