Log in

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 3rd id is the number that shows up in blue on each individual card (when show ids is turned on via debug). 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).