#đŸ’»ăƒ»modding-dev

1 messages · Page 532 of 1

daring fern
#

Why aren't you using ease_ante?

final jewel
daring fern
final jewel
#

ok and where do I place it

daring fern
wet crag
#

Example: Here I used a Foil Mult card when playing a High Card, which increased its base values to 65 x 5. Upon using Pluto, it reduces the values back down to the default for level 2 rather than simply adding onto the existing values.

clear ocean
#

Is your profile a seal

faint yacht
wet crag
clear ocean
#

Actually fire

#

My friend which loves seals loves balala

#

Mines an otter

modern kindle
wet crag
# faint yacht Are you updating all the values when messing with poker hand values?

What should I do there? I set the chips and mult for the hand with this bit:

G.E_MANAGER:add_event(Event({
                            func = function()
                                G.GAME.hands[text].chips = G.GAME.hands[text].chips + chips
                                G.GAME.hands[text].chips = G.GAME.hands[text].chips + edition_chips
                                if x_chips > 0 then
                                    G.GAME.hands[text].chips = G.GAME.hands[text].chips * x_chips
                                end
                                if edition_x_chips > 0 then
                                    G.GAME.hands[text].chips = G.GAME.hands[text].chips * edition_x_chips
                                end
                                if e_chips > 0 then
                                    G.GAME.hands[text].chips = G.GAME.hands[text].chips ^ e_chips
                                end
                                if edition_e_chips > 0 then
                                    G.GAME.hands[text].chips = G.GAME.hands[text].chips ^ edition_e_chips
                                end
                                G.GAME.hands[text].mult = G.GAME.hands[text].mult + mult
                                G.GAME.hands[text].mult = G.GAME.hands[text].mult + edition_mult
                                if x_mult > 0 then
                                    G.GAME.hands[text].mult = G.GAME.hands[text].mult * x_mult
                                end
                                if edition_x_mult > 0 then
                                    G.GAME.hands[text].mult = G.GAME.hands[text].mult * edition_x_mult
                                return true
                           end
                        }))
clear ocean
modern kindle
clear ocean
faint yacht
daring fern
modern kindle
final jewel
#

oh simple like that

lusty glade
modern kindle
#

it scales with ante, ante 1 is 50 points and then it gives more per ante so ante 8 is like 3k and something

#

per obstacle

lusty glade
#

Oh ok

#

That sounds more reasonable lol

modern kindle
#

yea it would be unlikely to be poss to complete a 1.2 million blind with that

#

so i had to figure some form of scaling

clear ocean
modern kindle
#

yahi is what i originally took this dino from, but i improved it significantly as you can see

#

theirs only has cacti and normal jump
ive got duck, birds, soon to be smaller cacti, and chip gain

clear ocean
#

Kinda dig Yahimod for some of its meta effects sets it apart

#

Also Dr. WhatsApp CLEARS

#

I wish they did update it to include the dubstep remix like they joked about in the video

modern kindle
#

insane

clear ocean
#

It even added a poker hand called “group chat” if all your hands had the WhatsApp seal I mean 😭

wet crag
clear ocean
# clear ocean

I don’t have much art outside of this they were drawn by a friend and mutual

final jewel
clear ocean
#

As a gift too like I didn’t ask for okay for the mutual it was like a voice chat and they were taking suggestions but the friend’s was unprompted

modern kindle
#

omg is that smt i saw

clear ocean
#

Idk

distant umbra
#

help

#

how to make like when you press a button

#

it gives you the joker

clear ocean
#

What kind of button

distant umbra
#

A

#

B

#

C

#

keyboard button

#

pls help

modern kindle
#

you can probably just do love keypress and then do the whole smods.add_card id assume

daring fern
modern kindle
#

oh yea keybind

#

i forget about that

clear ocean
#

I should get some sleep goodnight gang

modern kindle
#

gn

faint yacht
#

Fuck it, I'm turning the bug into a feature. ⛏

buoyant thorn
#

still haven't gotten the sound to work but oh well
no sfx is fine

could someone please direct me to the startingparams documentation?
trying to make a deck that starts with no cards/only one card

lament agate
#

is it possible to change the $ sign in game visually

modern kindle
#

smt gave you a better resource, read his linked doc

daring fern
#

Change Localization > misc > dictionary > ["$"]

lament agate
lament agate
#

like this?

daring fern
lament agate
#

thanks

wet crag
pastel kernel
#

Do stickers have almost the exact same formatting as editions, seals, and enhancements?

wild escarp
#

bump

vernal path
#

I'm hooking Card:remove, but I'm looking for specifically if it was removed from G.consumeables. Is there an easy way to check what area thr card is in?

#

Its activating if you use a card from the shop doing buy and use, but since that doesnt call emplace it breaks my code.

daring fern
stiff quiver
#

where are all stickers keys stored? if they are even stored at all

daring fern
vernal path
daring fern
vernal path
#

(or it didnt work. I had it originally but it wasn't working)

stiff quiver
vernal path
frigid cargo
#

what does onUpdate for config menu do?

vernal path
# daring fern `if card.area == G.consumeables`

i figured out why i switched off from it: it didn't activate when a consumable was used, which is important. strangely, self.added_to_deck did activate, but obviously it activated too often

#

I tried hooking Card.use_consumeable but it led to much stranger results

daring fern
vernal path
#

oh, i suppose that makes sense. But that probably also counts for used consumables from the shop, right?

vernal path
#

hmmmmm, is there any way to do this then? Or would I have to hook something else entirely in order to make it work?

pastel kernel
#

Where is sticker code located in cryptid

distant umbra
#

hi

#

can anyone provide me example code for summoning joker

#

like

#

if you press j

#

it spawns joker

#

that i made

vernal path
#

Is this just for testing?

distant umbra
vernal path
#

download and install Debug plus, then go to the collection and press 3 on the joker you added.

pastel kernel
#

God I really need templates.

vernal path
#

then make a template for yourself- you can look in vanillaremade for inspiration

frigid cargo
# distant umbra

are you gonna change its rarity cause thats too good to be a common imo

distant umbra
#

maybe

#

uncommon?

frigid cargo
#

my friend might be able to help, he always balances

#

@old epoch i summon thee

distant umbra
#

what if I make it a rare and give 0.5x mult per round

#

no that would suck

old epoch
frigid cargo
old epoch
#

ok

distant umbra
old epoch
#

yep, just thinking of what would be good for this one

#

so what exactly are you going for with this joker?

distant umbra
#

early game maybe

#

it will get bad after a few rounds

#

will*

old epoch
#

alright

distant umbra
#

because it's +0.5 mult per hand

old epoch
#

right now its a jimbo mixed with a more lenient but worse payoff green joker

#

maybe you could flip it to where it gains mult every time you discard?

distant umbra
#

suer wait

pastel kernel
#

What are the keywords used when writing sets?

distant umbra
#

also question, how to make multiple jokers?

#

do you just put all of them in the main file

#

or can you make multiple files

#

kinda confused

pastel kernel
#

For example with SMODS.add_card, you typically have to look for which card you wanna make, is it a consumable? Joker? Playing card?

old epoch
#

i can show a screenshot of how i do it

distant umbra
#

oh

frigid cargo
vernal path
#

you can put jokers, or atlases, or stickers or whatever objects you like in any number of files, as long as the files are loaded. If you want to load more files, you can use SMODS.load_file(/path/to/file.lua)()

distant umbra
#

why did the game crash

#

i think it's because i had the old joker?

#

oh wait yeah

frigid cargo
pastel kernel
#

I’m looking for compat_exceptions

#

Joker and playing card are the only things I wanna add in the exceptions

old epoch
frigid cargo
frigid cargo
frigid cargo
old epoch
pastel kernel
# frigid cargo You would do `stickers = {“perishable”}` if im not mistaken
SMODS.Sticker {
        key = "repeat",
        loc_txt ={
            name = "Repeat",
            text = {"Retriggers card."}

        },
        atlas = 's_stickers', pos = { x = 0, y = 0 },
        badge_colour = HEX 'ff005d',
        default_compat = false,
        compat_exceptions = 
        {
            Joker = true,
        },
        rate = 0.3, -- Chance of the sticker applying on an eligible card
         -- If set to true, this sticker requires G.GAME.modifiers['enable_'..self.key] to be true before it can be applied.
    calculate = function(self, card, context)

}```
#

I am "making stickers"

velvet ingot
#

how to detect if a joker is the only one owned?

daring fern
frigid cargo
pastel kernel
vernal path
pastel kernel
vernal path
#

something's would be if you're are checking if it doesn't have any copies (i.e. it hasnt been anked)

frigid cargo
pastel kernel
vernal path
#

and for the cards with rarity, look at baseball card from vanilla remade

pastel kernel
vernal path
pastel kernel
#

Oh

vernal path
pastel kernel
#

Ok what about Retriggers?

vernal path
#

what do you mean by that?

pastel kernel
#

I wanna make a sticker meant for retriggering jokers and playing cards

#

Red seal but as a sticker

vernal path
#

you will need to have the optional feature enabled

frigid cargo
#

“optional schmoptional” - dilly

pastel kernel
#

Where are these optional features even located in the wiki

vernal path
#

and then just uhhhh actually im not sure, but im sure you can find it somewhere. Neato Jokers has blue yourself, might contain useful information

frigid cargo
#

N’ the goat for that

vernal path
#

n is truly the greatest of all goats

#

n' is actually short for numero uno

distant umbra
#

give me ideas for joker pls

pastel kernel
#

Oh wait it just retriggers jokers

#

I had to check notes

#

I wrote notes for ideas of what my other mod would have.

vernal path
#

reread 👍

pastel kernel
#

The sticker in question only retriggers jokers

#

Not playing cards

#

The sticker is called footprint

#

The next sticker is teeth, which when applied, adds a joker slot and also gives x1.5 chips and mult.

#
-- Footprint Sticker - retriggers jokers
SMODS.Atlas {
    key = "stickers",
    path = "s_stickers.png",
    px = 34,
    py = 34
}
SMODS.Sticker {
        key = "fprint",
        loc_txt ={
            name = "Footprint",
            text = {"Retriggers the joker whenever it is possible."}

        },
        atlas = 'stickers',
        pos = { x = 0, y = 0 },
        badge_colour = HEX 'ff005d',
        default_compat = false,
        compat_exceptions = 
        {
            Joker = true,
        },
        rate = 0.3, -- Chance of the sticker applying on an eligible card
         -- If set to true, this sticker requires G.GAME.modifiers['enable_'..self.key] to be true before it can be applied.
    calculate = function(self, card, context)
        if context.retrigger.joker_check then
            return { repetitions = 1 }
        end
    end
}```
#

like this?

#

Wdym?

#

This is a sticker, not a joker

daring fern
pastel kernel
#

Also the atlas

#

Is it 34x34 or 71x95?

#

I’m assuming 71x95 because it’s on a card

distant umbra
#

is this good

#

sorry i don't have any ideas

narrow merlin
#

Heya I'm making a mod tring to replace some names of tarots and curious what I'm doing wrong (3rd image is in localistion folder

narrow merlin
#

Oh okay why is localisation supposed to be spelt with a z

#

I fixed it

unborn bay
#

because that's how its spelt

velvet ingot
#

what am I doing wrong?

#

I get this error

wintry solar
#

That’s not a valid key

velvet ingot
#

it is one from my mod

#

do I have to use a prefix?

frigid cargo
velvet ingot
#

how do I make it negative too?

#

there is no edition = negative

frigid cargo
#

edition = “e_negative” i believe

feral tree
#

does context.selling_self nullify the eternal sticker or something???/

glass scaffold
narrow pendant
#

What's the tooltip code for enhancements?

#

like how {C:spectral,T:v_magic_trick}Magic Trick{} is for the voucher

velvet ingot
#

does anyone know how to make a deck? The smods documentation is outdated

frigid cargo
velvet ingot
#

all I want is a deck that makes you start with a certain joker

frigid cargo
# velvet ingot all I want is a deck that makes you start with a certain joker
--Stained Deck
SMODS.Atlas{
    key = 'DStained',
    path = 'StainedDeck.png',
    px = 71,
    py = 95,
}

SMODS.Back({
    key = "DStained",
    loc_txt = {
        name = "Stained Deck",
        text={
            "Start with an",
            "Eternal {C:attention,T:j_btct_Mosaic}Mosaic{}"
        },
    },
    
    config = { hands = 0, discards = 0},
    pos = { x = 0, y = 0 },
    order = 1,
    atlas = "DStained",
    unlocked = true,

    apply = function(self)
        G.E_MANAGER:add_event(Event({
            func = function()
                if G.consumeables then
                    SMODS.add_card { key = "j_btct_Mosaic", stickers = { "eternal" } }
                end
            return true
        end
        }))
    end,
})

Heres a reference to one of my decks, all it does is give an eternal joker, so you can just remove the stickers part if you want

frigid cargo
lament agate
#

trigger object?

#

like, it only triggers when theres a card?

red flower
#

it's the object that's triggering the probability i.e. the card

frigid cargo
agile path
#

good morning chat

#

i haven't been around as much

modern kindle
#

woah chat is chatting

knotty orchid
#

there's no update method for blinds right?

agile path
#

i've decided to play around with more coding

#

instead of always asking lol

like, maybe i should try things around instead of asking for help all the time. you guys already gave me the basics :3

frigid cargo
agile path
frigid cargo
modern kindle
#

i also havent slept and it is also 5 am

agile path
frigid cargo
modern kindle
#

gm N

red flower
#

hii

frigid cargo
#

Hi N’

distant umbra
#

help

#

i need to make a joker that gives +100 chips for each other joker

agile path
#

i slept to asmr, woke up to roffle doing a naninf run

frigid cargo
agile path
frigid cargo
#

Lol

slim ferry
distant umbra
#

abstract

slim ferry
#

use #G.jokers.cards to get the current amount of jokers

distant umbra
#

and then

slim ferry
#

just

knotty orchid
#

you should define a config extra variable with the base chips each joker would add and return chip_mod = #G.jokers.cards * card.ability.extra.chip_mod p.e.

slim ferry
#

DONT return chip_mod

#

return chips instead

knotty orchid
#

oh

#

what's the difference?

#

I've always used chip_mod

slim ferry
#

chips does the message automatically and chip_mod is old i think

distant umbra
#

can you give me an example

modern kindle
#

whatever thats enough for now, reworked my edition to not rely on hooking calculate joker

i need to iron out some joker specific bugs but im pretty satisfied overall

slim ferry
distant umbra
#

i know but

#

give me a quick refrence

knotty orchid
#
        local count = #G.jokers.cards
        return {
          message = localize { type = 'variable', key = 'a_chips', vars = { card.ability.extra.chip_mod * count } },
          colour = G.C.CHIPS,
          chips = card.ability.extra.chip_mod * count,
        }
#

something like this

#

maybe the message and colour is not needed right now with the chips return

#

idk

slim ferry
#

yeah they arent needed

knotty orchid
#

is there an equivalent for mult_mod?

#

that doesn't require message and colour anymore?

red flower
#

mult

knotty orchid
#

makes sense lol

#

HAHAHHA

frigid cargo
#

is it possible to use a for loop to go through the highlighted cards?

red flower
#

yes

modern kindle
#

Im in bed now
Finally, comfy

knotty orchid
frigid cargo
frigid cargo
red flower
#

is the question if it's possible or how to do it

frigid cargo
frigid cargo
knotty orchid
#

Blinds doesn't have update function right??

modern kindle
#

I just wanted to get that cringe ah ah edition better
I was unhappy with it being a big ass block in calc joker and running all the time

red flower
#

or change the area if you want another

frigid cargo
knotty orchid
#

you should use G.area.highlighted

red flower
#

that's what i said

knotty orchid
#

oh

#

i didn't read

daring fern
knotty orchid
#

sorry

frigid cargo
#

cause the consumable randomizes 2 selected cards soooo...

distant umbra
#
            local total_mult_bonus = num_jokers * card.ability.extra.mult
            local total_chips_bonus = num_jokers * card.ability.extra.chips
            return {```
modern kindle
#

N do u wike my edition

knotty orchid
red flower
modern kindle
#

What the scallop

distant umbra
#

yeah it worked

#

gave 500 chips and 100 mult

frigid cargo
#
loc_vars = function(self, info_queue, card)
        return { vars = { card.edition.extra.repetitions } }
    end,

it just... crashes?

slim ferry
#

because it doesnt have an edition i think

red flower
#

edition is nil if the card doesn't have one

frigid cargo
#

but... it itself IS the edition?

red flower
#

if it's for the collection you might need to use self instead

slim ferry
frigid cargo
red flower
#

no

#

self.config.extra

frigid cargo
#

ah ok thanks

daring fern
agile path
#

can i add a play sound inside a return? or is it only used for messages?

agile path
#
                    sound =
                    message = "Card Modified!"
                }
#

like so?

frigid cargo
#

also whats the different between ipairs and pairs and in which cases would i use either?

candid elbow
#

Sound = “sound key”

#

Message=“ text”

#

Don’t forget the ,

agile path
#

yes, i know :3
thank you

candid elbow
agile path
#

it can access the base game sounds, yes? i'm assuming i don't need to make a folder for it

slim ferry
frigid cargo
agile path
#

it does a "pop" yaaay

distant umbra
#

guys

slim ferry
#

so i haveth a laser pointere

distant umbra
#

rouxls kaard???

#

anyways i want to make like a joker called

agile path
distant umbra
#

joker

#

it has a special tag

#

called "joker"

agile path
#

i gotta uhm--- fix that description

red flower
distant umbra
#

<@&1133519078540185692>

red flower
#

<@&1133519078540185692>

distant umbra
#

beat you to it

slim ferry
#

damn it didnt appear in the role list for me

rotund sable
#

Don't mind if I do

candid elbow
#

Is this ethan

robust tundra
#

thanks for the ping!

#

đŸ”«

red flower
foggy ginkgo
#

I was to slow 😔

slim ferry
#

you could say

#

your taking too long

agile path
#

can i ping the mods just to say good morning to them

robust tundra
#

No

agile path
#

D:

distant umbra
red flower
#

no

modern kindle
#

N can you sing me a lullaby

red flower
#

i can try

modern kindle
#

Woo

#

Put me to sleep

agile path
#
if context.individual and context.cardarea == G.play  then
            if context.other_card:get_id() == 13 then
                assert(SMODS.change_base(context.other_card, nil, "Queen"))
                return {
                    wait = 1,
                    sound = play_sound('tarot1'),
                    wait = 1,
                    message = "Estrogen taken!"
                }
            end
        end

is it wait or delay 😭 or am i just doing this wrong

red flower
#

delay

frigid cargo
red flower
#

or wait maybe im wrong

candid elbow
#

Why do you have a delay

red flower
#

let me check

candid elbow
#

Wait

#

Sound =play_sound ?😭

#

I said use sound key😭

#

Sob

agile path
candid elbow
#

Oh great

#

What’s assert

distant umbra
#

how to check if there are face cards in hand

#

and if they are not give 10 mult for each scored non face card

candid elbow
#

Aren’t you the crab cat who made lovely

red flower
distant umbra
candid elbow
#

Cool

red flower
candid elbow
#

Wowy

primal robin
#

throw an error, not crash trash

agile path
#
return {
                    delay = 1,
                    sound = play_sound('tarot1'),
                    delay = 1,
                    message = "Estrogen taken!"
                }

it should go like

wait a sec
pop
wait a sec
text

yes?

red flower
#

no

agile path
#

oh

distant umbra
red flower
#

tables can only have one of each value

#

this is for the whole message

agile path
#

ah, i see

#

so i need to make individual tables?

#

two returns, with a delay inbetween them

candid elbow
#

You can only have 1 return

agile path
#

fuck

candid elbow
#

Returning a value ends the calculate function

red flower
#

You could have an extra table inside your return to do what you're saying but I don't think you can do sounds with a calculate return without a message

#

you would need to use play_sound directly

#

and then the return

agile path
#

that's how i'm doing it

#

play_sound

candid elbow
#

You can do some dynamic text

#

Maybe

red flower
#

i didn't notice that

#

that's wrong

#

in a return

#

sound takes a string

agile path
candid elbow
#

Oh would you look at that it turns out stupid kate was right all along

#

Sob

frigid cargo
#

how do i infoqueue eternal and glass? (for 2 different stuff so dont question why those two)

red flower
#

oh that formatting is weird

agile path
#

ah, i see

i was reading the whole g.e_manager stuff and it was frying my brains

frigid cargo
agile path
#

thank you N, it's working well

frigid cargo
agile path
#

imma try adding a flip animation to it, i'll send the code if i have any problems (probably will lol)

glass scaffold
lament agate
#

who pinged me

agile path
#

time for testing balatrojoker

paper citrus
#

I'm trying to code a joker that does the following effect: allows Straight Flushes to be made with three cards (at the cost of -2 hand size). I have tried looking at the vremade code to get some reference (four fingers) but I don't really understand how to code that

latent perch
#

only straight flushes?

paper citrus
#

only straight flushes

latent perch
#

that would be difficult I believe

agile path
ashen parrot
keen atlas
agile path
latent perch
#

only straight flushes is hard, because the game does the following;

  1. Check whether there is a Flush
  2. Check whether there is a Straight
  3. If there is both -> Straight Flush
ashen parrot
#

jestosterone

paper citrus
#

the thing is since I'm referencing a card game called Machiavelli in which you can make straights as long as they are the same suit I don't want players to be able to do stuff like 9D, 8D, 7H, and 6D

red flower
#

yeah there's a pr to add the hand type to the four fingers function but only for straight or flush

distant umbra
#

guys

#

how to check if there are face cards in hand or not

paper citrus
distant umbra
#

and give mult on every scored non face card

latent perch
distant umbra
latent perch
agile path
#

what does card:juice_up do? does it make them thick and juicy?

#

yummy

red flower
#

hmm

#

maybe

knotty orchid
#

oh

#

i forgot I was replying to that

distant umbra
knotty orchid
#

im really sorry

keen atlas
red flower
latent perch
daring fern
distant umbra
knotty orchid
#

sorry for the ping lol

#

wasn't intentionally

paper citrus
candid elbow
#

Cwab

red flower
latent perch
distant umbra
#

?

latent perch
#

You can see all Vanilla Jokers remade to work with SMODS

candid elbow
#

N i think this is metheral trolling

distant umbra
#

this is spectrals

latent perch
#

yup sent wrong link but it's there

#

you'll find it

#

the fabled jokers.lua file

red flower
candid elbow
#

The name

glass scaffold
keen atlas
#

not even smods?

glass scaffold
candid elbow
#

Try changing the pc

keen atlas
#

hmm

#

does the lovely console shows up?

glass scaffold
#

Ok, we're making some progress. I forced it to use Proton 9.0-4 and had WINEDLLOVERRIDES="version=n,b" %command%

#

The ONLY mods I had were Steamodded 0711a and the lovely folder

paper citrus
glass scaffold
#

<@&1133519078540185692>

#

JUMP THAT MF

#

ayy good stuff

latent perch
#

ontop of adding this, your joker should make SMODS.four_fingers() return 3

paper citrus
#

where would I put this code, though?

keen atlas
distant umbra
#

1 = Common, 2 = Uncommon, 3 = Rare, 4 = Legendary
is this true

red flower
#

yes

shell timber
distant umbra
#

if you put like 5

latent perch
distant umbra
#

what happens

#

does it give exotic rarity

glass scaffold
manic rune
red flower
distant umbra
#

why

#

can't it just give it no rarity

red flower
#

because it's not an existing rarity

distant umbra
#

give it like common

keen atlas
red flower
glass scaffold
paper citrus
shell timber
#

you would want to use a hook right

latent perch
red flower
#

yes

keen atlas
#

nice

latent perch
latent perch
glass scaffold
paper citrus
latent perch
paper citrus
#

yeaahhh

#

I'm slowly learning to make my own stuff tho

#

I was able to mostly figure out how to make a "First played 7 of diamonds gives X3 mult when scored" by merging existing lines of code

latent perch
#

Nice!

distant umbra
#

can i have coding ideas please

#

i'm bored

shell timber
#

you should make thing that injects code into the game at runtime

keen atlas
#

debugplusplus

distant umbra
#

something like joker

shell timber
#

make a joker that installs lovely (Virus)

distant umbra
#

no

#

serious

copper thorn
#

what did i do wrong ? the joker should reverse the play buttons position everytime a blind is selected and give 100$ when bought in the shop (or less i'll see dw about it)

distant umbra
#

end end end end

keen atlas
distant umbra
copper thorn
distant umbra
#

end end end end

copper thorn
#

oh

distant umbra
#

because i see so many ends

copper thorn
#

sorry btw if i cut a convo here

distant umbra
#

no you didn't

latent perch
copper thorn
latent perch
copper thorn
#
  • the joker im working on cus a i have a TEST rairty
#

with 10 basic weight

spring gyro
latent perch
copper thorn
#

at where it should crash

latent perch
copper thorn
latent perch
spring gyro
#

Code?
I just try to play heart deck with with heart Sleeve, with fusion jokers

distant umbra
#

Triple Threat

copper thorn
#

dos it bother to copy paste it ? (i can copy it by hand but yk it too much takes time for my dumb ass)

latent perch
copper thorn
#

fusion jokers often crashes liek this

distant umbra
#

Quadruple Attack

latent perch
#

woops

distant umbra
#

You are speak russian?

spring gyro
candid elbow
#

Suka

copper thorn
#

get rid of fusion jokers it is what makes the game crash, i've had it n a while couldn't stop crashing because of it

distant umbra
#

nice

#

also

foggy ginkgo
#

Cooked chat rn

distant umbra
#

guys i need ur opinion

#

good or bad

candid elbow
#

Nice 👍

copper thorn
primal robin
foggy ginkgo
#

Damn

#

I mean not damn

#

No swearing

candid elbow
latent perch
foggy ginkgo
paper citrus
# distant umbra

if you just play a single 3 or just a pair of 3s then it's way too strong

primal robin
#

nxkoo case is different

candid elbow
#

Owwwwwhhh

candid elbow
#

Silly me

latent perch
candid elbow
#

I love how this shit is uncommon

paper citrus
latent perch
#

..or did you mean "cards in played hand"

distant umbra
#

in played hand

foggy ginkgo
#

CARDS IN HAND?

latent perch
candid elbow
#

@distant umbra use joker forge

foggy ginkgo
#

Oh okay

keen atlas
foggy ginkgo
distant umbra
latent perch
candid elbow
distant umbra
short mauve
distant umbra
#

+333 chips is not bad

#

it's good

candid elbow
#

Yes

foggy ginkgo
#

Is it permanent chips or is it just 333 chips played 3

latent perch
distant umbra
#

anyways

spring gyro
short mauve
#

Stuntman gives 250 in exchange for 2 hand size

distant umbra
foggy ginkgo
#

Oh okay

latent perch
#

just

if context.setting_blind then
  (the function call)
foggy ginkgo
#

Why does it say gain then

distant umbra
#

but if all of the cardfs in ur played hand are 3s

#

then it gives chips

short mauve
distant umbra
#

single

#

i might balance

short mauve
#

Wow that's

#

A lot

distant umbra
#

you can play any

keen atlas
#

put it to rare

short mauve
#

Remember stuntman is rare and removes handsize

foggy ginkgo
#

+333 Chips when played hand are all 3s

#

Sorry wanted to reword it

copper thorn
#

@latent perch it does work now x) three days of pain just for 2 lines x)

foggy ginkgo
#

Real

latent perch
short mauve
# spring gyro Whats wrong now?!

Maybe send the crash to the minty silly little mod thread because I see something that looks like the crash comes from that mod
Idk

copper thorn
#

WHY THE FUCK IS IT ALWAYS JIMBO

short mauve
copper thorn
#

yh but no

latent perch
keen atlas
#

+balatrojoker

latent perch
#

try changing the weight there

#

dunno tho

copper thorn
#

i put it back to uncommon

#

and still doesn't do anything

latent perch
#

have you change the test rarities weight? because I have a theory

distant umbra
#

ok trust me

#

nil is supposed to be x3

copper thorn
#

i'll get rid of the rarity for now

#

justto see

latent perch
#

might be that the pools property of the rarity is trying to inject the rarity itself into the joker pool, leading to an invalid joker which gets replaced with Jimbo

#

maybe

keen atlas
latent perch
#

dunno if that's how it works though

#

I'd recommend checking the docs in any case

copper thorn
#

10 is indeed too much for the game x)

latent perch
#

thought so!

copper thorn
#

i put it back to weight 1 to see

copper thorn
latent perch
#

fair enough balatrojoker

copper thorn
#

ok 1 seems enoguh for the game

#

maybe i do need to read

latent perch
distant umbra
#

how to check hand type

latent perch
copper thorn
#

Absolute Idiot egg

#

(joke btw)

distant umbra
latent perch
copper thorn
#

f#ck i have a mind gap how to i play a sound ON he already existing music via a joker

latent perch
#

VanillaRemade has such things as

paper citrus
#

I made a joker that swaps chips and mult, how can I add a little UI that says "Swap!" much like resetting scaling jokers say "Reset!"?

latent perch
#

oh wait forgot to draw the red circle

latent perch
#

I think!

#

I hope!

#

I pray!

foggy ginkgo
copper thorn
foggy ginkgo
#

Aight :3

copper thorn
#

basically i have a test rarity for the shop, and 10 default_weight made the game put only Jimbos with my "test" jokers rarity

red flower
#

if you only have one joker with that rarity then it will do that if you get the joker yeah

#

it will do it if you have a lower weight too

latent perch
#

ooh that's why

red flower
#

just less frequently

latent perch
#

the more you know

#

the more you nope

copper thorn
red flower
#

i mean if you need it

copper thorn
#

i'll get rid of it anyway when i'll release my poorly made mod

#

so i don't know why i bother

rotund sable
#

Can't you just use debug plus

copper thorn
#

yes but no

#

my slash is broken on my keyboard

spice wadi
#

you dont need slash to spawn jokers

#

i think?

copper thorn
#

yeah but this joker had effect when bought

rotund sable
copper thorn
#

if i spawned within the collection won't prove anything

rotund sable
#

Or context?

copper thorn
rotund sable
#

Wasn't context calculated when spawned too? I'm not sure

copper thorn
#

no or atleast not this one

red flower
#

yeah i have a custom command to add a joker to the shop for debugplus for similar reasons

paper citrus
#
    key = "swappie",
    atlas = "ch_jokers",
    blueprint_compat = false,
    rarity = 2,
    cost = 7,
    pos = { x = 1, y = 0 },
    config = { },
    loc_vars = function(self, info_queue)
    end,
    calculate = function(self, context)
        if context.joker_main then
            return {
                swap = true
            }
        end
    end
}```
I don't really understand what I'm doing wrong. The joker simply doesn't work
#

probably it's a dumb issue

rotund sable
#

Does it like crash or do nothing?

paper citrus
#

does nothing

rotund sable
#

Oh wait

#

Calculate signature

red flower
#

you're missing an argument

rotund sable
#

function(self, card, context)

paper citrus
#

hold on

#

It does work, though for some reason it shakes when the cards are played

#

even though it only triggers once

#

yeah

#

it shakes when the cards are played, but doesn't when it actually triggers

red flower
#

weird

rotund sable
paper citrus
#

I knew I shouldn't have touched those

#

still

#

it still shakes at the wrong time

#
    key = "swappie",
    atlas = "ch_jokers",
    blueprint_compat = false,
    rarity = 2,
    cost = 7,
    pos = { x = 1, y = 0 },
    config = { },
    loc_vars = function(self, info_queue, card)
    end,
    calculate = function(self, card, context)
        if context.joker_main then
            return {
                swap = true,
                message = "Swap!",
            }
        end
    end
}``` here's the new code
red flower
#

i don't think it's a you problem

#

there might be an smods bug or something

paper citrus
#

oh

red flower
#

i will test once i get on my pc

stiff locust
#

graagh

candid elbow
#

You don’t need to add config and loc vars

#

If you don’t use them

#

What the fuck is a swap

paper citrus
candid elbow
#

Is that an smods function?

#

Try removing the config and loc vars and try again

paper citrus
paper citrus
daring fern
candid elbow
#

Maybe it has cold

red flower
#

first person to ever use swap lol

paper citrus
#

welp

#

also in what part of the localization file do I put that "Swap!" message

red flower
#

misc dictionary

latent perch
#

<@&1133519078540185692>

#

Thanks

agile path
#

noooo, i missed the corn message :(

#

also, mod works fine, i'm trying to add a flip animation

#

but, i don't think it's needed

distant umbra
#

um help

#

so basically

#

when the played hand scores

#

i am not getting mult

slim ferry
#

are you returning mult

#

in the joker

distant umbra
#

what

#

oh yes

#

so basically

#

i play hand

slim ferry
#

can i see the joker code?

distant umbra
#

but it gives mult after

#

it plays

slim ferry
#

when do you want it to give mult

solar eagle
#

how do i check the current deck in use?

distant umbra
#

tried using context.before

solar eagle
#

you want context.individual

slim ferry
#

do context.individual and context.cardarea == G.play

solar eagle
#

if you want to check card properties, reference context.other_card

slim ferry
#

also use vanillaremade for reference if you dont know how to do something still

distant umbra
#

what about context.score

solar eagle
#

context.other_card.base.value is the rank (e.g. 2, 3, Jack, Ace), .base.suit is the suit (e.g. Hearts, Spades), .config.center_key is the enhancement (e.g. m_steel, m_wild)

solar eagle
#

who told you that

distant umbra
#

i guessed

slim ferry
#

why are you guessing 😭

distant umbra
#

because idk

#

so what i want to do is

#

if hand is three of a kind

candid elbow
distant umbra
#

then give mult

solar eagle
#

on each card?

#

or total

distant umbra
#

total

candid elbow
#

Sigh

distant umbra
#

like abstract joker which gives after

#

after cards are played

solar eagle
#

context.joker_main and next(context.poker_hands['Three of a Kind'])

distant umbra
#

ok

solar eagle
#

actually no

#

joker_main, not before

candid elbow
#

Joker_main is the right context

#

You don’t need context.cardarea here tho

solar eagle
#

yea i just realized

#

i need to Not balatro mod so early

#

do you know how to check which deck is currently being used?

#

i cannot find it

candid elbow
#

I think it’s a global

#

Variable

#

You need to check when starting a run tho because it’s nil before that

solar eagle
#

aha selected_back

#

i love debugplus

#

yeah well it works very well most of the time

#

and its SO useful

#

oh

slim ferry
#

thats bug (singular) smh!!!

foggy ginkgo
#

Cooked

#

Double cooked

#

Deplu

slim ferry
#

😹

clear ocean
#

good day

copper thorn
#

quick dumb question, this should play a sound on top of the balatro music when the joker is in the deck ? (when the sound will have is register and all)

foggy ginkgo
#

One way to find out

copper thorn
#

yh

solar eagle
foggy ginkgo
#

True

solar eagle
#

play_sound("PF_placeholder")

#

assuming your SMODS.Sound key is placeholder

manic rune
#

how do i patch using .regex

copper thorn
manic rune
#

3:

#

i want to change all G.GAME.interest_cap/5 to (G.GAME.interest_cap/5 + (G.GAME.add_interest_cap or 0))

solar eagle
#

for example this one:

[[patches]]
[patches.regex]
target = 'functions/common_events.lua'
pattern = '\{cfg\.max_highlighted,'
position = 'at'
payload = '{cfg.max_highlighted + G.GAME.select_more,'
manic rune
#

a

#

whats a regex value-

solar eagle
#

that one wont do you what you want

manic rune
#

im terribly sorry but i dont know anything about regex 😭

solar eagle
#

they are Pain

#

Use this

#

It's handy

manic rune
#

ooh thanks

manic rune
solar eagle
#

im not giving you my OTHER hand

#

i need them both

manic rune
#

like this?

#

do i need to uh, do stuff with the payload too

solar eagle
#

Nah

solar eagle
#

idk regex is a black box for me too

manic rune
#

nice, lemme try

#

i absolutely hate how G.GAME.interest_cap works

#

so im adding another global variable to increase the cap more easily

solar eagle
#

a lot of the game is "whyyyyyyyyyyyyy"

manic rune
#

yeah 😭

#
  1. G.GAME.interest_cap is like, 5 * the actual cap
  2. vouchers hard set G.GAME.interest_cap to a value, like, i know it says Set in the description but cmon đŸ„€
#

it didnt work, damn

#

hm

distant umbra
#

guys

manic rune
#

hi

distant umbra
#

is Joker.Add a thing

manic rune
#

no

#

what are you trying to do

foggy ginkgo
#

SMODS.add_card is

#

-# I think that is right

solar eagle
#

ya

manic rune
#

it is

solar eagle
distant umbra
#

]i want to make Ultimate perkeo

solar eagle
#

what does that mean

distant umbra
#

which adds 50 negative eternal madnesses

#

when next round is selected

solar eagle
#
key = 'j_madness'
edition = 'e_negative'```
then loop 50 times over it?
#

i guess?

distant umbra
#

how about just keep copying it

solar eagle
#

the sound effects will Not be kind on your speakers

distant umbra
#

instead of looping

#

like

solar eagle
distant umbra
#

set = 'Joker'
key = 'j_madness'
edition = 'e_negative'
set = 'Joker'
key = 'j_madness'
edition = 'e_negative'
set = 'Joker'
key = 'j_madness'
edition = 'e_negative'

solar eagle
#

that's more complicated

distant umbra
#

that's three

#

then 6

distant umbra
#

then twelve

#

i know

#

but just keep repetaing the same thing

solar eagle
#

Yeah why would you do that

#

that's more complicated

distant umbra
#

easier method

solar eagle
#

it's bad

#

you really should learn how to code

#

?

#

the hell have i been doing the past three years then

distant umbra
solar eagle
#

Why the HELL would you think copying a function 50 times is better than a loop

distant umbra
#

<@&1133519078540185692>

pastel kernel
#

<@&1133519078540185692>

distant umbra
#

for whoever looks at the code

pastel kernel
#

how does this work?

should_apply(self, card, center, area, bypass_roll) -> bool
foggy ginkgo
#

I do

#

Real 😭

distant umbra
#

did you know localthunk is my best friend

#

i have him friended

proven belfry
#

how do I spawn the soul with add_card? I set the id to c_soul and the set to Spectral but it just spawns a random spectral

proven belfry
pastel kernel
#

c_spectral_soul?

proven belfry
#

thx

foggy ginkgo
#

Nah

pastel kernel
#

well i'm gonna have to wait again

royal ridge
#

hell naw

foggy ginkgo
#

I mean both works

pastel kernel
#

i need help with this

SMODS.Sticker {
    key  = "teef",
    loc_txt = {
        name = "Teeth",
        text = {"+#1# Joker Slot, {X:chips,C:white}X#2# Chips{} and {X:mult,C:white}X#3#{} Mult."}
    },
    atlas = 'stickers',
    pos = { x = 1, y = 0 },
    badge_colour = HEX 'C1DAFF',
        default_compat = false,
        compat_exceptions = 
        {
            Joker = true,
        },
        rate = 0.3,
    calculate = function(self, card, context)

        end
}
royal ridge
#

create card works but you do so much extra stuff for no reason

foggy ginkgo
#

^

red flower
#

add card just wraps create card anyway

pastel kernel
#

and also writing the appropriate context

foggy ginkgo
#

Oh thats a sticker

#

Idk how to do those

royal ridge
#

i think

pastel kernel
#

should_apply(self, card, center, area, bypass_roll) -> bool

  • Returns true if the sticker can be applied to the card.
distant umbra
royal ridge
#

yes

distant umbra
#

it is true

#

i have him added

#

so i can u banned

foggy ginkgo
#

Bro you ain't slick

#

Woah

royal ridge
pastel kernel
royal ridge
#

were you having a conversation

#

with him

distant umbra
#

tis is my alt account

#

i have him added on my main

foggy ginkgo
#

Go ahead

#

Switch then

distant umbra
#

i can get u screenshot

#

and i will send i show u i have him in

solar eagle
#

I dare you

#

Ban me

clear ocean
#

my dad works at the circus

foggy ginkgo
#

Aura farming

pastel kernel
#

i could really use their help

foggy ginkgo
#

Then go ask

pastel kernel
#

how does ```lua
apply(self, card, val)

#

it just says "Handles applying and removing the sticker"

#

but idk how it does

clear ocean
#

long stretch

royal ridge
#

i assume val is true/false

#

so you would do card.ability[self.key] = val

pastel kernel
#

"when applied, the joker adds an extra joker slot"

royal ridge
#

and i think that's the apply function if you don't do anything extra

#

like setting perishable rounds

distant umbra
clear ocean
#

that's so poorly edited together

distant umbra
#

this is true

#

he is my friend

royal ridge
pastel kernel
#

say i wanna make it so that the sticker gives an extra joker slot when it is present

clear ocean
#

the message button is slighty stretched out too

distant umbra
#

IT'S NOT

#

i can send dms

pastel kernel
#

when removed it removes the extra slot too

clear ocean
#

you ain't fooling ANYBODY

foggy ginkgo
#

Please ban me

pastel kernel
#

what do i write

foggy ginkgo
#

I need to be free

clear ocean
#

i want to be break free

royal ridge
pastel kernel
clear ocean
#

if you are really his friend, why not you record yourself refreshing discord and everything

royal ridge
#

i'd go for that?

clear ocean
pastel kernel
# royal ridge is there a calculate for add/remove from deck

API methods

calculate(self, card, context) (reference)
loc_vars (reference)
    Due to some constraints, the functionality of loc_vars on stickers is limited. Out of all possible return values, only vars, key and set are supported.
should_apply(self, card, center, area, bypass_roll) -> bool
    Returns true if the sticker can be applied to the card.
    bypass_roll skips the RNG check and only looks for compatibility
apply(self, card, val)
    Handles applying and removing the sticker
    Sets card.ability[self.key] to val by default.
draw(self, card, layer)
    Draws the sprite and shader of the sticker.
royal ridge
#

sorry i misspoke

pastel kernel
#

function? no

#

atleast i think

royal ridge
#

is there a context for add/remove from deck

#

bc you could throw that in calculate presumably