059D
Revision as of 00:11, 11 October 2016 by Spaceeinstein (talk | contribs)
- 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. The arrays do not reset when loading different game sessions so they carry over. For Vice City, this opcode only exists on the PC v1.0 and v1.1, and was never called in the original script.
Keywords
shuffle, card, deck, decks