The 3 different ids
Every card has 3 different id’s.
internal_card_id isn’t visible anywhere. It’s some mysterious array of id’s that the computer keeps for each card. When a card is in your deck or graveyard, it is referred to by this id.
id is the csv id. To go between the 2 you can use:
internal_card_id = get_internal_card_id_from_csv_id( CSV_ID )
and
csv_id = cards_data[ INTERTAL_CARD_ID ].id
cards_data represents what shows up on the Magic.exe tab of the editor, so the id there is the csv id.
The number that shows up in blue on each individual card is the 3rd id. This id is different for each instance of a card in a game (ex: 2 Grizzly Bears will have different ids). This is represented by the variable ‘card’ in the code. To get the csv id from that, use get_id(player, card).
