059E

From GTAMods Wiki
Revision as of 03:26, 13 August 2015 by Spaceeinstein (talk | contribs) (Created page with "{{Icon|VC}} {{Icon|SA}} '''FETCH_NEXT_CARD''' <hr /> '''Description''' : Fetch next card '''Syntax''' : 059E: get_card_to [''var''] '''Parameter''' : [''var''] :: Variable to...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Vice City San Andreas FETCH_NEXT_CARD


Description

Fetch next card

Syntax

059E: get_card_to [var]

Parameter

[var]
Variable to store the integer value

This opcode stores the value of the element in an array generated by opcode 059D, which means a value between 1 and 52 is possible to get. This simulates the fetching of a card from a randomly shuffled deck of 52 cards. Each time the opcode is called, it iterates through the array. When it reaches the end of the array, it moves onto the next array if it exists. When it finishes all available arrays, it returns back to the first array and repeats the process. If the deck is cleared, it gets the value 0.

Keywords

store, get, fetch, card, deck, decks

Reference