The Binding of Isaac: Rebirth

The Binding of Isaac: Rebirth

Fake ID
Spawning a card through a callback?
I really like this card! Crawlspaces and black markets are something I get excited about whenever they come up in a run, so I love having another avenue to get there. The only issue I have with the mod is that it spawns way too often in normal runs.

I saw a great tutorial at https://youtu.be/NKVHseDk2LU?list=PLKQ0xZyS4-66IbMbHpCU1p7NNbj50h7ly that covers the new MC_GET_CARD callback that the game uses when giving the player a card from chests, sacks, or the Deck of Cards item.

The only thing they don't cover there is how to get the right range of ID numbers to choose from. They use
Card.NUM_CARDS
in the video, but to include modded cards you'd want to call
Isaac.GetItemConfig():GetCards().Size
to get "the number of available card IDs, including cards from mods".

I hope that helps. Fake ID will be an always-on mod for me, if the card spawning issue gets sorted out!
< >
Showing 1-2 of 2 comments
Little Bell  [developer] 6 Apr, 2017 @ 8:58pm 
Thanks for bringing this new callback to my attention. I'm currently working on incorporating this into the mod however I'm not sure if "Isaac.GetItemConfig():GetCards().Size" is correct as it seems to give me the error "bad argument #1 to 'RandomInt' (number expected, got userdata)". Also interestingly enough the documentation for the CardList page is missing both in the on file website and the one hosted on themoddingofissac website. Assuming that it's the same as the other lists then the method you described should work but for some reason it doesn't. Anyway I'll keep looking around as for solutions and hopefully update the mod sometime soon. Thank you for your help and feedback!
j.scott.jewell 7 Apr, 2017 @ 3:42am 
yeah, the documentation for the various Lists is sparse at best. GetCards().Size has been an int for me, but the Isaac namespace has a lot of weird peccadilloes about where you use colons vs. periods for various things.

Best of luck with the update. Thanks for a great mod!
< >
Showing 1-2 of 2 comments
Per page: 1530 50