As many modders know, Isaacs Mod API does not have a way to check whether any achievement, character, collectible, etc. is unlocked or not. This library allows you to do just that.
First, all functions are located in KZLibs.AchievementChecker
so you may create a local variable pointing to that.
Most functions use one of the game's mod API ENUMS as it's only parameter.
Using any invalid (outside of range) value as a parameter will return nil
.
You can chack whether any of the 637 achievements are unlocked using isAchievementUnlocked(<num>)
, where the parameter is the numerical id of the achievements.
To check for collectible items, use isCollectibleUnlocked(<CollectibleType>)
.
Use isPlayerUnlocked(<PlayerType>)
.
Use isTrinketUnlocked(<TrinketType>)
.
Use isPlayerUnlocked(<Card>)
.
Use isPlayerUnlocked(<PillEffect>)
.