forked from Steamodded/Wiki
-
Notifications
You must be signed in to change notification settings - Fork 0
SMODS.Stake
Casimir Eisenach edited this page Dec 17, 2024
·
4 revisions
-
Required parameters:
key-
applied_stakes: An array of keys of stakes that should also be applied when this stake is active. This is evaluated recursively to include all stakes applied by applied stakes, so you usually don't need to specify multiple stakes here.- Note: Key prefixing is applied to this option by default. If you're applying stakes from the base game or other mods, this can be adjusted by using
prefix_config.applied_stakes. For example,prefix_config = { applied_stakes = { mod = false } }will remove all mod prefixes. You can also specify this per index, e.g.prefix_config = { applied_stakes = { {}, { mod = false } } }to add a mod prefix to the first, but not the second entry.
- Note: Key prefixing is applied to this option by default. If you're applying stakes from the base game or other mods, this can be adjusted by using
-
Optional parameters (defaults):
atlas = 'chips'pos = { x = 0, y = 0 }-
sticker_atlas: The atlas to use for this stake's win sticker. -
sticker_pos: The sprite position for the win sticker. -
above_stake: The stake's key that this stake should appear directly above in the list. By default, your stake will be placed at the top of the list.- Note: Key prefixing is applied to this option by default. If you want your stake above a stake from the base game or other mods, this can be adjusted by using
prefix_config.above_stake. For example,prefix_config = { above_stake = { mod = false } }will remove the mod prefix.
- Note: Key prefixing is applied to this option by default. If you want your stake above a stake from the base game or other mods, this can be adjusted by using
-
colour = [white]: The colour used for this stake in the stake selection column. -
unlocked = false: Whether this stake should be unlocked by default. If this isfalse, the stake is unlocked by first winning a run on each of theapplied_stakes.
-
modifiers()- Used for applying changes to the game state when your stake is applied at the start of a run.
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.Rank and SMODS.Suit
- SMODS.Rarity
- SMODS.Seal
- SMODS.Sound
- SMODS.Stake
- SMODS.Sticker
- SMODS.Tag
Guides
- Your First Mod
- Mod Metadata
- Calculate Functions
- Perma-bonuses
- Logging
- Event Manager
- Localization
- Text Styling
- Mod functions
- UI Structure
- Utility Functions
Found an issue, or want to add something? Submit a PR to the Wiki repo.