Difference between revisions of "059D"
Jump to navigation
Jump to search
(Created page with "{{Icon|VC}} {{Icon|SA}} '''SHUFFLE_CARD_DECKS''' <hr /> '''Description''' : Shuffle card decks '''Syntax''' : 059D: shuffle_card_decks [''int''] '''Parameter''' : [''int''] ::...") |
|||
Line 1: | Line 1: | ||
− | {{Icon|VC}} {{Icon|SA}} | + | {{OpCode |
− | + | | games = {{Icon|VC}} {{Icon|SA}} | |
− | + | | command = SHUFFLE_CARD_DECKS | |
− | + | | description = Shuffle card decks | |
− | + | | syntax1 = 059D: shuffle_card_decks [''int''] | |
− | + | | p1t = [''int''] | |
− | + | | p1d = 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 [[wikipedia:Standard 52-card deck|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. | + | 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 [[wikipedia:Standard 52-card deck|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 [[Referring to GTA Versions|PC v1.0 and v1.1]], and was never called in the original script. |
== Keywords == | == Keywords == | ||
Line 16: | Line 15: | ||
== Reference == | == Reference == | ||
* {{GTAF|post|194990|4055597}} | * {{GTAF|post|194990|4055597}} | ||
− | |||
− |
Revision as of 00:11, 11 October 2016
- 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