#so we arent flooding the chat?
1 messages · Page 1 of 1 (latest)
thread moment
so where are we rn
is it in the folder
it is
and is that folder in your mod folder
yes
with a cute little bowtie
okay thank you
but im also gonna link you to how localization works... the ones by the smods people
okay awesome
im guessing i just copy paste the skeleton
no 😭 you dont need ALL of that
okay yes
rn you just need
just funny joker colours
so you'll need the descriptions section
and in the description section, you'll need Joker
i get everything
done
alright now
youre gonna duplicate that
but change the id to whatever it is already and add _alt
to the end
as in the alternate description
wait in the discription of the file, I shoudl say just Joker
wdym
what do you have rn
kay
you have "Joker" already
okay
change the id you have there Empress_Of_Light to lowercase and also make it one word
done
add a j_ at the beginning to tell the game it's a joker
this is ONLY for the loc file we're not changing main rn
okay
and another underscore
done
how's it look
j_terraria_empressoflight
the whole thing i mean
okay
descriptions = {
Joker = {
j_terraria_empressoflight = {
name = 'Empress of Light',
text = {
'For every card {C:attention}Scored,',
'turn into {C:pink}Polychrome{}'
},
unlock = {
'This is a condition',
'for unlocking this card',
},
},
},
},
}
you forgot to add a {} to the "Scored"
just good practice
np
another tip
put three backticks and lua to format this
there ya go
right
yes
okay
just making sure you wanted the text to change when you have it versus when you dont?
well i wanted to use
name = '{C: <colour>} Empress of Light{}'
right
my original plan was to do Polychrome
but apparently thats hard
so now im going for pink maybe?
no pink.
mhm
also we'll only need the duplicate joker thing if it's changing
let me send a video
okie
oop thats mkv
we love mkv!
like the name
are you trying to do that with the pink? or do you want it always pink
have it always be pink lets say
thanks he
he
had help from the JokerDisplay guy but im glad he gave me the basics
OKAY
go back to the main
Sorry
okay
local file
SMODS.Joker{
key = 'empressoflight',
loc_txt = {
name = 'Empress of Light',
text = {
'For every card {C:attention}Scored{},',
'turn into {C:pink}Polychrome{}'
}
},
pos = { x = 1, y = 1 },
cost = 10,
rarity = 4,
blueprint_compat = true,
eternal_compat = false,
unlocked = true,
unlock_card = true,
discovered = true,
atlas = 'Jokers',
calculate = function(self, card, context)
if context.before then
-- Flip animation + sound
for i = 1, #context.scoring_hand do
local percent = 1.15 - (i - 0.999) / (#context.scoring_hand - 0.998) * 0.3
context.scoring_hand[i]:flip()
play_sound('card1', percent)
context.scoring_hand[i]:juice_up(0.3, 0.3)
end
delay(0.2)
-- Apply Poly enhancement to all non-stone cards
for i = 1, #context.scoring_hand do
local this_card = context.scoring_hand[i]
this_card:set_edition('e_polychrome', nil, true)
end
delay(0.3)
-- Flip back animation + sound
for i = 1, #context.scoring_hand do
local percent = 0.85 + (i - 0.999) / (#context.scoring_hand - 0.998) * 0.3
context.scoring_hand[i]:flip()
play_sound('tarot2', percent, 0.6)
context.scoring_hand[i]:juice_up(0.3, 0.3)
end
delay(0.5)
end
end
}
dont mind the middle comment
okay now that you have a localization file
mhm
take out loc text
okay
its useless now
ptuh
oh lmao
back to the localization file
we are so back
return {
descriptions = {
Joker = {
j_terraria_empressoflight = {
name = 'Empress of Light',
text = {
'For every card {C:attention}Scored,',
'turn into {C:pink}Polychrome{}'
},
unlock = {
'This is a condition',
'for unlocking this card',
},
},
},
},
}
ok
ill get rid of the C:pink
and terraria IS your mod's prefix right?
ya
we keep
we're gonna use it
hell yeah 🦅
go to your main file
back
local colour = 'hex code'
```?
(if it's one line you dont have to lua it but thanks)
okie
loc_colour('red')
okay
yes it has to be red
done
alright
very next line youre gonna set up a global ARGS using loc_colours
do you know how THAT works
i have never done this
but i remember someoen sending a screenshot
of like all the colours
and they had it set up
i see
this goes right under the loc_colours line remember
still top of the file
loc_colour('red')
loc_colours
G.ARGS.LOC_COLOURS[]
``` not to be stupid
but its this?
mhm
okay
once you do that we're gonna set this whole line equal to something
okay im ready
see where this is going?
yes i think so
= HEX()?
yep
all lower case and no hashtag right
Okay
you should have something like this
yep
cool you're done load it up
the game?
yes 😭
hmm
yeah i didnt save en-us
comment him out for now
highlight all and Alt+Shift+A
what
oh did you screw up your key
and the key in your local?
and then on this
'j_terraria_empressoflight'
oh ok
its this
can i see your metadata file?
i dont know that word in english 😭 and translate isnt helping
THE JSON
send me whats in that
{
"id": "TerrariaxBalatro",
"name": "Terraria",
"display_name": "Terraria",
"author": ["Misenrol, Megark"],
"description": "Something suspicious is brewing...",
"prefix": "terraria",
"main_file": "main.lua",
"priority": 0,
"badge_colour": "1390A1",
"badge_text_colour": "FCFCFC",
"version": "1.0.0",
"dependencies": [
"Steamodded (1.0.0 beta (0312b))",
"Lovely (0.7)"
]
}
can i see your folder setup?
so then it's something we did now
can you ss the localization fi-is your steamodded up to date
hm?
use " instead of ' 😭
what
mhm it didnt make a diff anyway
yes
{} after attention
hmhm
i cant see the issue
are the folders correct?
localization, etc
maybe change it to default?
try taking out the unlock text
i did
lets try default
no :/
ill send all the ss and if you cant spot naything lets just call it
alr
to single?
yes
and text?
text is fine
thank you so much!
ofc!
can i please credit oyu in the mod? as a special thanks
feel free!
what username?
can you put tomatose?
ofc!
do you need a picture
nope
kay
itll take more work but im sure someone in modding dev knows how the polychrome works
literally greedy joker but it changes into another joker after a hand is scored
AND the hand must contain diamonds ofc
Okay
sending file
that part works already
So what doesn’t work exactly
the problem is i could only get it to work on the right time
by putting it
in the for loop 😭
the one labeled greedy joker obv
So it changes constantly?
it changes for each diamond in the played hand
of course it changes to the same card
so it really only changes once
but it flips that same amount of times
so it looks silly
oh NOOOOO 😭
if i can get it to trigger at the right timing and condition
without using the for loop
I’m just brainstorming here
So let’s say we play a flush of diamonds
It flips 5 times?
Okay so we want it to look at only one card
Yeah yeah
cause what if i play a two pair and then just any diamond
Could we do a bolean?
maybe
Hmmm let me see
it's in a for loop so i can check if it's the suit
if i can do that in context.after without the for loop
then im set
reiterating that the animation itself has zero problems. works as intended
I’m trying to think here
youre good
This code is so bugged out by the way (mine)
For some reason it doesn’t work with high card
uh oh
Like if you do
the one im using is N's
Only activate with high card
(the joker display guy)
it just doesnt?
It’s really weird yeah
But when I put pair or anything else it’s fine
I think we do a suit_found = false
If found = true
Let me try doing it on NOTES
Omg it’s too large
Uhhhhh
calculate = function(self, card, context)
if context.individual and context.cardarea == G.play then
if context.other_card:is_suit(card.ability.extra.suit) then
return {
mult = card.ability.extra.mult,
card = card
}
end
end
if context.after and context.cardarea == G.jokers then
local suitFound = false
for _, v in ipairs(context.scoring_hand) do
if v:is_suit(card.ability.extra.suit) then
suitFound = true
break
end
end
if suitFound then
G.E_MANAGER:add_event(Event({
trigger = "after",
delay = 0.15,
func = function()
card:flip()
return true
end,
}))
G.E_MANAGER:add_event(Event({
trigger = "after",
delay = 0.15,
func = function()
card:set_ability(G.P_CENTERS["j_hpfx_ijiraq"])
play_sound("card1")
card:juice_up(0.3, 0.3)
return true
end,
}))
G.E_MANAGER:add_event(Event({
trigger = "after",
delay = 0.15,
func = function()
card:flip()
return true
end,
}))
end
end
end
``` @ripe idol try this
Hopefully that looks better
On your end
Because on my end it’s fucked
i will check
If not I can send a file
oh for a second i thought you changed the calculate
here's hopin
. . .
YEAHHHH
NOTES APP GOATED
OMG IM SO SUPRISED
now it’s my turn to credit YOU
thank you for the help 🙏
how should you be called
done
i don’t have a credits thing setup yet (as you could probably guess)
I am suprised you don’t
so rn ive just been commenting to remind myself lmfaoooo
Your stuff is so organised
trying to finish the content first
OH BUT WAIT TILL TOMORROW
my new terraria file
EVERYTHING FORMATED
EVERYTHING CONSISTANT
HURRAHHHGGG
I want to use like more complicated mechanics
And functions
Like I saw someone make a plasma joker
I want it
That’s so funny omg
My notes app now have:
shopping list
random thoughts
venting
a random joker
it do be like that
cinema

I should go to sleep now