059E

From GTAMods Wiki
Revision as of 00:32, 11 October 2016 by Spaceeinstein (talk | contribs)
(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 gets 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. For Vice City, this opcode only exists on the PC v1.0 and v1.1, and was never called in the original script.

Keywords

store, get, fetch, card, deck, decks

Reference