-
Notifications
You must be signed in to change notification settings - Fork 90
SMODS.Achievement
Casimir Eisenach edited this page Jan 22, 2025
·
3 revisions
-
Required parameters:
-
key
, -
loc_txt
or localization entry (reference)- Rather than a
text
table,loc_txt
should contain adescription
table. When using localization files, the name should be placed inmisc.achievement_names[key]
, the description should be placed inmisc.achievement_descriptions[key]
.
- Rather than a
-
-
Optional parameters (defaults):
-
atlas = 'Joker', pos = { x = 1, y = 0 }, hidden_pos = { x = 0, y = 0 }
(reference)-
pos
is used when the achievement has been earned,hidden_pos
if it has not been earned.
-
-
earned
: Achievement is considered "earned". Achievement will stay earned on loaded profiles unlessreset_on_startup
is true -
reset_on_startup
: Unearns the achievement if already earned on profile load -
bypass_all_unlocked = false
: Achievement cannot be earned if "Unlock All" button was pressed on current profile -
hidden_name = true
: Hides the name of the achievement if not earned -
hidden_text
: Hides the description of the achievement if not earned
-
-
unlock_condition(self, args) -> bool
- Runs every time
check_for_unlock
is called. Returns true if the achievement should be earned.
- Runs every time
Game Objects
- API Documentation
- SMODS.Achievement
- SMODS.Atlas
- SMODS.Blind
- SMODS.Center
- SMODS.Challenge
- SMODS.DeckSkin
- SMODS.DrawStep
- SMODS.Gradient
- SMODS.https
- SMODS.Keybind
- SMODS.Language
- SMODS.ObjectType
- SMODS.PokerHand
- SMODS.Rarity
- SMODS.Seal
- SMODS.Sound
- SMODS.Stake
- SMODS.Sticker
- SMODS.Suit and SMODS.Rank
- SMODS.Tag
Guides
- Your First Mod
- Mod Metadata
- Calculate Functions
- Perma-bonuses
- Logging
- Event Manager
- Localization
- Mod functions
- UI Structure
- Utility Functions
Found an issue, or want to add something? Submit a PR to the Wiki repo.