r/SMAPI • • Jan 04 '21

new mod "Spouses React to Player Death"

Just released my very first mod! It's a content pack that adds cutscenes after the player 'dies' in the Skull Cavern or Mines, featuring worried spouses coming to see them in the hospital + other fun features that add a splash of marital drama to life in Pelican Town! Personalized cutscenes for the 12 vanilla marriage candidates, as well at the 4 SVE candidates, and supports custom spouses as well!

Check out Spouses React to Player 'Death' on Nexus!

It's a small thing, really, very not complicated at all, but it's my entry point into modding so I'm quite happy with it. It's also my first attempt at anything remotely like programming, and I'm really learning as I go, so please check it out if it's up your alley and let me know (gently) how I can improve!

106 Upvotes

16 comments sorted by

3

u/MaddoScientisto Jan 04 '21

Is it compatible with the multiple spouses mod?

1

u/CasualInvidia Jan 06 '21

Probably not because my educated guess is that the spouses in that mod are coded differently than vanilla, but if you do try it out, please let me know; it's a question I want an answer to as well lol.

(Dialogues with multiple spouses is a future plan though! I'll work on it as soon as I get a little more adept with CP haha)

1

u/MaddoScientisto Jan 06 '21

If you check out the mod page for multiple spouses it should say at the bottom that compatibility is as easy as using a particular function over another, if I recall correctly it's just an iteration over characters asking them if they are a spouse

2

u/CasualInvidia Jan 06 '21

Thanks for pointing it out! I really haven't looked at MS at all yet, but I most definitely will. I do want to write separate dialogue/scenes that take multiple spouses' presence into account, so this would probably be a project for a later content update... Definitely gotta take relationship diversity into account with a mod like this! (:

2

u/MaddoScientisto Jan 06 '21

here's the actual text:

The game has two separate ways of checking for spouses: 1) asking who a farmer's spouse is, and 2) asking whether a given NPC is the farmer's spouse. Where it asks the former, there can only be one spouse, so I've tried to replace or work around such requests. There are still instances where it matters who the "official spouse" is - most noticeably regarding who's spouse room is shown by default in the spouse room area. Also many mods seem to prefer the first method (you can bug mod authors to choose the second method; tell them I sent you ;) ).

just doing my duty as ordered

1

u/CasualInvidia Jan 07 '21

That's awesome, thank you! I'll take a look (:

21

u/sable-king Jan 04 '21

Aww I love this! Any mod that makes marriage feel like, well, marriage is a must-have for me.

8

u/GoldenEilonwy Jan 04 '21

I’ll check it out soon! I agree, it’s odd no one blinks an eye after life saving surgery. Yay, realism!

1

u/CasualInvidia Jan 06 '21

Thank you everyone for all the support you've given this mod!! It was very intimidating to take the leap and post for the first time like this but I'm really glad that so many people are enjoying it. Please feel free to check the Nexus page for future content plans, since I intend to update semi-regularly as I learn more and more about modding!

1

u/[deleted] Jan 05 '21

Ooh, very cool! I'll let you know how this meshes with my "multiple spouses" mod when I get there ;P

1

u/CasualInvidia Jan 06 '21

I would love to hear the outcome! I haven't tested with multiple spouses myself, nor have I actually even looked at the code for that mod, so I'm pretty blind as to what will happen. I intend to work towards including cutscenes with multiple spouses in the future, though!

2

u/The_Mighty_Amondee mod author Jan 04 '21

I'll be sure to try it. Congrats on your first mod!

2

u/Thorrina Jan 04 '21

Thank you, this is wonderful. It adds depth. Downloaded.

1

u/[deleted] Jan 05 '21

[removed] — view removed comment

2

u/CasualInvidia Jan 06 '21

No conflicts reported yet! Dialogue overhauls, portrait changes, etc won't conflict because there's nothing in the mod's code that refers to any dialogue or portrait files. The only thing that MIGHT conflict is a mod that redefines spouses, like a genderswap mod or a multiple marriage mod. A mod that completely overhauls the events in the hospital and mines may also conflict (but for the life of me, I cannot think of a single mod that would need to do that).

Conflict doesn't seem to be an issue with this mod, but if ever anything does get reported, I'll include it ASAP on the Nexus page!