- Required parameters:
keyloc_txtor localization entry (reference)- The only supported field is
name. In localization files, it is set by referring tomisc.challenge_names[key].
- The only supported field is
- Optional parameters (defaults):
rules: Custom rules and modifiers for the challenge.rules.custom: Expects a list of tables with anidand optionally avaluefield (defaults totrue). SetsG.GAME.modifiers[id] = value. Text for each rule should be stored inG.localization.misc.v_text['ch_c_'..id],valueis passed as a variable. The following custom rule keys are defined by the base game:all_eternal,chips_dollar_cap,daily,debuff_played_cards,discard_cost,flipped_cards,inflation,minus_hand_size_per_X_dollar,no_extra_hand_money,no_interest,no_reward,no_reward_specific,no_shop_jokers,none,set_eternal_ante,set_joker_slots_ante,set_seed.
rules.modifiers: Expects a list of tables with anidand avaluefield. Sets each corresponding base modifier to the given value. The following modifiers are supported:dollars,discards,hands,reroll_cost,joker_slots,consumable_slots,hand_size.
jokers: Expects a list of tables that represent jokers added at the start of the run. Each table can have the following fields:id(required): The key of the joker to create.edition: The edition of the joker, if any, given without thee_prefix.eternal: If the joker is eternal.pinned: If the joker is pinned.
consumeables: Behaves likejokers, but for consumables.- Supports all fields of
jokersexceptpinned.
- Supports all fields of
vouchers: Behaves likejokers, but for vouchers redeemed at the start of the run.- Supports the same fields as
consumeables, buteditionandeternalhave no functional effect beyond displaying in the preview UI.
- Supports the same fields as
restrictions: Contains information about objects that are banned in this challenge.restrictions.banned_cards: Expects a list of tables with keys to ban in theiridfields.- This can be used to ban jokers, consumables, vouchers and booster packs.
- If a table has an
idsfield containing a list of center keys, onlyidis shown as banned in the challenge UI, but all of theidsare banned.
restrictions.banned_tags: Expects a list of tables with valid tag keys in theiridfields.restrictions.banned_other: Expects a list of tables with valid keys in theiridfield and atypestring with the value'blind'.- Despite the name, the UI for this only supports using this to ban blinds.
- Functionally, all three options achieve the same task of adding specified keys to
G.GAME.banned_keys.
deck: Defines the challenge's deck.deck.type = 'Challenge Deck': The deck type for this challenge. It is not recommended to change this value.deck.cards: Defines the cards present in the deck using a list of control tables. Control tables have the following structure:s: Suit of the card, given by itscard_key.r: Rank of the card, given by itscard_key.e: Enhancement of the card, given by its key.d: Edition of the card, given by its key without thee_prefix.g: Seal of the card, given by its key. (The key for this option is based on Gold Seals being the only available seals in the demo version.)
deck.yes_ranks,deck.yes_suits: Can be used only if nocardstable is specified. Expects a key-indexed table of ranks/suits by theircard_keyand acts as a whitelist, i.e., it includes only cards of those ranks/suits in the starting deck.deck.no_ranks,deck.no_suits: Same asyes_ranksandyes_suits, but acts as a blacklist, i.e., the specified ranks/suits are excluded.deck.enhancement: Can be used only if nocardstable is specified. Given an enhancement by its key, apply it to all cards in the starting deck.deck.edition: Can be used only if nocardstable is specified. Given an edition by its key without thee_prefix, apply it to all cards in the starting deck.deck.seal: Can be used only if nocardstable is specified. Given a seal by its key, apply it to all cards in the starting deck.
button_colour = G.C.RED: Used to set a custom button colour in the challenge list.
unlocked(self) -> bool- Defines when the challenge should be unlocked (or not).