Conditions when deducting money

Beorn

Newcomer
Hello there!

I'm trying to make a mod in the Mail Framework Mod (MFM) to deduct an amount of money each month to emulate the cost of being married and having kids in SV.

So far my mod can deduct a set amount based on who you're married to (figuring some partners have a higher budget than others). This uses MFM conditions for NPC relationship as such:

{
"Id": "Test",
"Text": "TestGroup",
"Text": "To @!^The monthly cost is 50000^ Sincerely, TEST %item money -45000 -50000 %%",
"Repeatable": true,
"Days": [28],
"FriendshipConditions": [
{
"NpcName": "Haley",
"FriendshipStatus": ["Married"],
}
],
},

I have two problems, however - firstly I don't think MFM has conditions for number of children. Secondly, I would like there to be consequences if the player is unable to pay.

Like: if amount of money less than required money = -2000 relation with partner (and possibly children).

I'm thinking a relationship penalty is fair if the player isn't able to provide their family with the needed money for household expenses, but don't know how to set it up in MFM.

Is it possible I'll need Expanded Preconditions Utility and does anyone here know which conditions might help?

Thanks for reading! Hope someone might be able to help.

Warm greetings,

Beorn
 
Top