Adding your own pop-ups! #155
Replies: 1 comment
|
Great write-up! You can, in fact, add new NPC reactions by simply copying the format & listing the NPC's name -- and this does work for modded NPCs as well!
That'll get you started, and you can find the rest of the usable syntax here: https://stardewvalleywiki.com/Modding:Dialogue Once you know how to do all that, adding actual dedicated NPC dialogue (the kind you get when speaking to an NPC via clicking them) is also not terribly difficult either! (Just use the wiki, and remember to add an entry to Content.json)
Hope all this inspired some of you to tinker around with the mod <3 |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
For anyone who isn't good with anything code-related or who just don't know for any reason, it's really easy to add your own pop-ups for any of the many ways your farmer can go potty :)
Basically, the file en.json (Regression Mod>Regression>en.json) has this info as well as a bunch of other stuff. The bathroom related pop-ups are right after the hunger and thirst related ones.
With ANY of these pop-ups, you'll see all the things they can say in one context listed together right next to each other. The code that picks which one is shown is random and doesn't need there to be any specific number to choose from. You can add as many as you want to them! Here's a detailed explanation of how to make it work right:
Also, keep an eye out for any of the times the pop-ups mention what kind of pants or underwear your farmer is wearing or mentions anything gender related at all. You'll see they all get certain codes to make sure that the pop-up stays correct about those things no matter what gender your farmer is or what they're wearing.
Looking at the other popups, you'll see what your farmer is wearing represented in this file as UNDERWEAR_NAME and PANTS_NAME but with a $ at the beginning and end. Trying to type that in this post$makes it look like this$ for some reason.. You'll also occasionally see UNDERWEAR_PREFIX or PANTS_PREFIX also with the $s which is there because some things are referred to like "a pair of (thing)"
Anything that is different for gender reasons is put like this: <boy/girl>. Make sure the boy version of what you want to say comes first and they're separated by a slash. No spaces or you'll get two spaces in a row.
When something refers to something as wet or messy (like everything under "Still_Soiled") it'll be put like this <wet&messy> and whichever one applies for the situation will be put there. You pretty much only see that written exactly like that or maybe <wet&poopy> because how wet or messy the thing is isn't designed to change the words. Make sure you use the & for this purpose.
Because some things are treated as a singular and some as plural, They're done with <singular#plural> with a #. Like <it's#they're> or <is#are>
What else can you add to? Well, the warnings you get for when you need to pee/poop as well as getting hungrier or thirstier work this way too. NPC reactions are also in the same file and work the same way. Some reactions are generic and some are character-specific. They don't seem to work any different from each other. Only some of the characters currently have specific reactions to the farmer's continence-related shenanigans. I have no idea if the way the mod works allows you add characters just by putting them in the en.json in the same style as everyone else and I'm afraid to try for no serious reason. Realistically the worst that can happen is a corrupted save and maybe having to reinstall the mod honestly, so maybe make a backup but also most likely it doesn't do anything. I'd love to hear if anyone knows more about how that works :)
Now there is a slight chance something may be different because I play with a fork of this mod, but I haven't seen anything suggesting anything about that part of the code has changed at all.
(various edits bc the post was lwk a disaster and I can only notice so much at one time lolll)
All reactions