Coding help costume schedules and dialogue for a specific day and weather

Dr_Bluebird

Newcomer
I'm currently working on a mod that expands on the birthdays of residents in pelican town. In their birthday, they actually talk and meet up with their friends, have dialogue special for their birthday aswell as special birthday events.

I have a problem with rainy days however since you can't make a dialogue appear on "only on that day only if it rains" i'm kinda stumped...
Like, you can only do it for a day of the week, not a day of the month.
Ideally, I also want them to have different dialogue depending on heart level, but you can't make a dialogue happen both on a specific day and with a specific heart level.

For example:
Its Haley's birthday, on her birthday she talks about how she's excited and have a lot of prepping to do. She'd go to Pierre for cake ingredients then go home and cook.
If it rains, I want her to be disappointed, saying "why must it rain today?" And instead of going to Pierre herself, Emily goes instead.
Originally Emily would talk about making paper decore for Haley's birthday. If it rains, Emily would instead say she's on decoration duties aswell as grocery duties, since Haley didn't want to go out in the rain.

How do I do these dialogue and schedule changes for a specific weather in a specific date?
And, if possible, how can I make the dialogue heart based too?
So, for example, if you're below two hearts with Haley she'd say she's busy today and ignore you, but if you're above four hearts she says she has a birthday party that day and ask if you're coming.

I am new to modding and I don't know c# coding, but I'm willing to learn!
Currently I'm doing it with Content Patcher
I'd appreciate any kind of help
 
I can't give you a clear single answer but here are a few possible things to aim you at solving it:

1: Please Remember my Birthday does SOME of what you want already, you can look at the code to see how they solved the problems. (Note, a mod already doing some of what you want is not a reason to not make your own, as your ideas will probably play out in a completely different way).

2: Content patcher has some "when" conditions which might apply for creating a more specific dialogue that will only trigger in set times.

3: I'd ask at the Stardew Discord in the modding threads to get a faster and more code specific reply.
(As a note, rain dialogue is only about 50-50 for showing up as it is, which is why sometimes Caroline will tell you it's a lovely day where she likes to help in the public gardens when it's pissing down outside)

4: One trick I've used for "I want this character to have very specific dialogue for this situation only" is to have them go to a location they're not usually in and have special dialogue for that one location instead. I know you can scale it by season and hearts. You can also do location by the exact xy coordinates but I haven't checked if you can do both xy and hearts together. This has the advantage that location specific dialogue usually trumps most other conditions.
 
Back
Top