#Hey, Listen! - You have voucher to buy!

1 messages · Page 1 of 1 (latest)

crystal oasis
sturdy radish
#

does it only warn once per shop?

crystal oasis
#

Of course

sturdy radish
#

cool

vast sparrow
#

Delightful

#

But can you make it spam me

crystal oasis
worldly rock
#

Or set how many times

crystal oasis
#

It was writen in hour, so no. Only once per shop. At least for now

crystal oasis
crystal oasis
#

Additionally added check for tier 3 and tier 4 discount vouchers. Still think this mod is more for vanilla+ expirience btw.
Should I add notify for something else?

sturdy radish
#

planet pack - constellation?

sturdy radish
#

also just thought that reroll could give a popup for both reroll vouchers & overstock

crystal oasis
#

Actually good idea

worldly rock
#

The list is definitely extendable

crystal oasis
#

In one moment it can be annoying

crystal oasis
#

One of suggestions from my friend was reminder about dagger buSilly

crystal oasis
crystal oasis
#

Mod foundation is ready, settings page too.
Time to create the most annoying Balatro mod ever!

crystal oasis
crystal oasis
sturdy radish
#

btw what do you think about an option "on save load"

#

or do you already not store reminder "lock" in the save file?

crystal oasis
#

Ofc not store any locks

glacial osprey
#

you should do this for some boss blinds

#

like The Psychic

cosmic hamlet
#

Oghhh definitely the psychic, I've ruined myself more times than I feel comfortable admitting by just playing 4 cards or something

crystal oasis
#

Good idea. Some of my runs was killed by this guy

odd walrus
#

Do you mind if mod compat is done with this mod?

crystal oasis
#

Which one?

odd walrus
#

Mine, SDM0's Stuff, got a few jokers that could make good use of this

crystal oasis
#

As you wish. Remember to make it togglable

odd walrus
#

Thanks, trough config or it works differently?

crystal oasis
#
if HeyListen then
  -- Event to check
  local event_key = 'shop_buy' | 'shop_reroll' | 'blind_select' | 'booster_skip' | 'hand_play'
  -- Unique key
  local listener_key = 'my_mod_joker'
  -- Insert key to check list
  table.insert(HeyListen.orders[event_key], listener_key)
  -- Add listener
  HeyListen.listeners[event_key][listener_key] = function()
    local card_to_notify = get_card_if_needed()
    -- If no conditions met, return false to skip
    if not card_to_notify then return false end
    -- Return card to notify, and where display text
    return card_to_notify, 'top' | 'bottom'
  end
  -- Add config
  -- 1 = Never
  -- 2 = Once per ante
  -- 3 = Once per shop | Once per round
  HeyListen.config.notification_levels[event_key] = 2
end
odd walrus
#

Is there an event check for a consumable about to be used?

crystal oasis
#

No, but I can add

odd walrus
#

Thatd be nice ty

#

Could check for either a specific one or a set

crystal oasis
#

Anyway I'll add some sort of easy way to attach to events

odd walrus
#

Lmk when its added

crystal oasis
#

It will look smth like this

HeyListen.add_event_listener({
    event = "shop_buy",
    key = "sale_voucher",
    config_label = "DIscount vouchers",
    config_options = {
        "Never",
        "Once per ante",
        "Once per shop",
    },
    config_default = 2,
    listener = function(card)
        local levels = {
            ["v_clearance_sale"] = 1,
            ["v_liquidation"] = 2,
            ["v_money_mint"] = 3,
            ["v_cry_massproduct"] = 4,
        }
        local hey_i_hear_voucher = HeyListen.utils.find_voucher_in_shop(levels)

        if not hey_i_hear_voucher or hey_i_hear_voucher == card then
            return false
        end
        if card.cost == 0 or G.GAME.dollars < (hey_i_hear_voucher.cost + card.cost) then
            return false
        end

        return hey_i_hear_voucher, "top"
    end,
})
crystal oasis
odd walrus
#

How do you decide whether to go for top or bottom message?

crystal oasis
#

On card position/placement

odd walrus
#

Ok

mighty night
#

How am I supposed to go to settings ? I can't see any button

crystal oasis
#

It appears only when Steamodded installed

#

(because for lovely mods there's no single determined place for settings)

mighty night
#

ok thanks

#

one incredibly useful reminder would be last hand when you have value generators copied by bs/bp and you need to switch to scoring jokers
The list of my runs ended like this is painfully long
Do you think you could add something like this ? maybe not the full thing, just last hand would already be super cool

crystal oasis
#

I guess not. Would be very annoying

mighty night
#

yeah i guess

pulsar urchin
#

@crystal oasis Heya, idk if you check github notifs so I thought I'd ping here
I submited a PR to fix the mod from crashing when you have it and talisman installed :)

crystal oasis
#

Thanks

vale matrix
#

funny mod - I still forgor to buy it sometimes even while being a Completionist++

sage mesa
#

love this, thanks :)

plain hound
#

@crystal oasis Can I submit this mod to the Mod Index so it's listed on the Balatro Mod Manager?