S.T.A.L.K.E.R. Anomaly addon that makes companions give you gifts from time to time.
Description
A simple addon that gives your companions the ability to give you gifts from time to time. The gifts are chosen randomically from different tables based on your squad "friendship".
Reach out on Discord to share ideas and feedback!
Friendship system
You and your companions will develop friendship by killing enemies and surviving the Zone. The friendship level is increased passively every X seconds by a number equal to your companion number. I know that is pretty simplistic but for now it will do.
When your squad kills an enemy stalker or mutant the friendship increases based on the rank of the creature killed. If one or more of your companions die, your friendship decreases. When you don't have any more companions your friendship is reset to 0. I still don't know if "friendship" is the right word to use but I'll figure it out later.
The total friendship (or max friendship) is determined by the number of your companions. For each companion, 50 points are added to the total friendship.
Your squad friendship is divided in 4 stages:
- Bad: 1/4 of the max friendship (if your max friendship is 100 then from 0 to 25)
- Normal: 2/4 of the max friendship (if your max friendship is 100 then from 26 to 50)
- Good: 3/4 of the max friendship (if your max friendship is 100 then from 51 to 75)
- Excellent: 4/4 of the max friendship (if your max friendship is 100 then from 76 to 100)
Gifts system
The gifts_tables include handpicked game items, the categories are: FOOD, DRINK, MEDICAL, DEVICE (PDAs), TOOL, REPAIR(Repair tools for weapons and outfits), MISC (Junk) and AMMO. I'm still working on the list, it is a tedious job and if you have suggestions about which items to add just let me know.
You can change these list if you want in the file gfcmod_tables.script inside the scripts folder.
Your companions will also say a random sentence while giving you the gift, I will add more in the future.
NEW
You can now talk to your companions and ask them to bring you a specific category of items. The available categories are unlocked with higher friendship (Medical items for example are unlocked at the "excellent" friendship stage).
Companion fetch quest
From time to time your companions will ask you to bring them something (like the classic fetch missions), but instead of money, they will reward you F R I E N D S H I P and sometimes a stash.
You can set the frequency of these quests, keeping in mind that you can have only 1 quest at a time, even if you have multiple companions.
You can turn this whole system off from the MCM or in the gfcmod_mcm.script. This system still needs to be expanded but maybe it will add more variety to the companions.
If you have problems with the latest version you can find previous releases here.
This is my first ever mod so it's bound to have some errors but I hope nothing game breaking. If you find some bugs or have some requests feel free to let me know in the comments.
Companion loans
When the friendship level is at least "normal" you can ask your companions for a money loan. These loans have no interests and the money received increases the higher your friendship. When you own money, every X seconds your companion will remind you about the debt and the friendship will increasingly decrease (eheh) until the debt is paid. You can ask for only 1 loan at a time.
Companion squad leaving
Your companion now will have a chance to leave your squad if the friendship goes under 0. The more it goes down the higher the chance of losing your companions. This feature was designed to complement the money lending system and you can turn it off in the settings.
How to install
Simply extract and copy the gamedata folder in your Anomaly installation (where the game's "gamedata" folder is located).
For MO2 simply install the mod using the 7z file provided.
Credits
Thanks to Darkasleif and their Chatty Companions Addon that I used to figure out what I was even doing.
I love to see some love for our not-so-smart-but-kind companions.
Thanks forsiid and Adlez_asleep for the russian translations.
Thanks to Beshel for the spanish translations.
Thanks to NLTP_ASHES and bvcx for the help and for being so kind.
Changelog
v0.6.1
- Thanks to Darkasleif for reaching out and helping me with better news captions, now when companions give you gift, instead of having the companion name in green inside the news message, the name of the companion is in the news caption instead of "Message".
v0.6.0
- As requested I moved the items pool from the gfcmod_tables.script to an ltx file "gfcmod_gifts.ltx" for better compatibility and patching. Thanks again to bvcx for the help.
v0.5.4
- Fixed a bug where the game crashed when companions try to leave your squad at negative friendship.
v0.5.3
- Added spanish translations thanks to Beshel
v0.5.2
- Stopped the friendship increment notifications when you are already at max friendship
v0.5.1
- Sorry for update spamming, someone was crashing with Hip so I looked into it and fixed it. If you have the same problem this update should fix it, let me know!
v0.4.3
- Sorry yesterday I screwed up and uploaded a broken version of the mod, this patch fixes that. Sorry again!
v0.4.2
- As requested, now companions that are story NPCs (like Hip or Fanatic) will give you gift, and will count for the max friendship. You still can't ask them for loans and won't give you fetch tasks. Hope I didn't break anything, let me know :D
v0.4.0
- Added in the PDA, in the relations tab, a voice that shows the friendship level and the current value.
v0.3.2
v0.3.1
- Added a money lending system where you can ask companions for money
- Added a companion leaving system where companions can choose to leave the squad if the group friendship is lower than 0
- Added new phrases tied to these new systems
- Bugs expected so let me know!
v0.2.0
- Added a new dialog option for your companions where based on the friendship level you can choose the category of the gifts that companion can bring to you. You can assign different categories for different companions. When your squad friendship is low you can only choose certain categories, at the different friendship levels new categories will be unlocked so make sure to check in with your companions from time to time. Big thanks to NLTP_ASHES and bvcx for the great help!
- Added a new news message for when the friendship status changes (there are four statuses: bad, normal, good, excellent)
- The gift chance now is calculated based on the group friendship. At max friendship the gift chance is 0.5 and the MCM setting is now the gift chance base, so if you want to have a gift chance of 100% at max friendship, set the gift chance base in the MCM to 0.5
- The max friendship in your squad is now dynamic, meaning that the more companions you have, the more friendship you have to accumulate to get to the good stages.
- I added some stuff and possibly introduced new bugs. I didn't find any but as always fell free to let me know, here or on Discord.
- Expanded the ammos for the possible gift lists. I hope I didn't break anything
- Ciao :)
v0.1.7
- Added russian translations (by forsiid)
v0.1.6
- Fixed a bug where story NPCs like Fanatic could give you fetch items quests and the player couldn't turn in the quest. Now these people won't bother you anymore because I stopped them from asking you for things. This fixed also the Ryan Gosling bug, because he is a story NPC. Thanks to Larrylangosta for the bug report
v0.1.5
- Literally You In Drive compatibility where Ryan Gosling simply doesn't give you quests. It's a rough fix but my inexperience makes it difficult for now to do more. I can eventually talk to NLTP_ASHES if they want to help me make it compatible!
V0.1.4
Big jump in version because I implemented a new system and had no idea on how to do it.
- Added the companion quests system where companions can ask YOU for gifts in exchange of friendship. These quests are automatically accepted, and you can have only one at a time. You can cancel the quest by talking to your companion, nothing will happen although I don't know if your reputation can decrease anyway.
- Killing mutants and NPCs will grant friendship based on their rank. There's a new multiplier if you want to tweak it, the addon is not balanced so you may need to adjust some settings to your likings. (thanks to xcvb for helping me out with this part, really kind people on that discord)
- When one of your companion dies now the friendship is halved, but there's a small chance that insted the group grows stronger and it increases
- Russian not supported for now
- forsiid or anyone interested, if you want to translate it but have trouble with understanding what have I done hit me up!
v0.0.7
- Added full russian translation thanks to forsiid
v0.0.6
- Sorry for update spamming
- Added custom phrases for every friendship stages so now when the friendship level is low, your companions will speak accordingly and vice versa.
v0.0.5
- Added MCM settings for controlling how friendship changes when killing enemies or companions dying.
- Added a MCM setting to hide the friendship notifications if you want but I like to keep them on.
- Added missing russian translations with ChatGPT, if anyone wants to translate the rus files, you are free to do so.
v0.0.4
- Added a friendship system, now gifts are based on the friendship level and note your stalker reputation
- Added a notification system for the friendship level changes
- Decreased the mod intervals to have more reactive notifications
- The timers and friendship level now are saved in the game, so when you reload your save you will pick up from where you left.
- Fixed a bug where if you played for a long time, the next play session has the timers really high because of last session
- The timers are now persistent through the levels. (Unlike before where each time you changed levels, timers where recalculated
- Now the code is a bit more complicated so crashes could happen more easily, I didn't encounter any.
v0.0.3
- Added russian translations thanks to forsiid
- Added a debug option that shows at regular intervals the time passed and the time to reach to receive the gift (i need it for debugging don't worry about it)
Future plans
- Interactions with your squad companions to improve your friendship level
- better list of items
- integrate more the player rank and reputation
Should've released it on the 24th/25th December T-T
Great mod though
Why didn't I think of that damn it
Hey that's pretty cool, thanks for sharing!
Thank you! You're very welcome :)
Maybe you could evolve this to be even more interesting, like raising the affinity with companions, that could unlock random traits or other things with each level, it would be cool if the companion had a chance to warn you of mutants around like "Hey, I think I heard a Chimera" msg on the chat or something like that, of course that would be a lot of work to do, but it's just some ideas to make the characters/companions more 'alive'
The companion affinity idea is really good, I will try and look into it, this is my first mod so I don't have lots of experience. BTW there's a really cool mod called Chatty Companions which does what you described, making the companions feel more alive. I highly suggest it!!
Stai benino fra?
Nice add-on.
ora sto meglio.
grazie thanksss :D
bene bene o bene ma non benissimo xD
Bella mod comunque, complimenti
Interesting idea, however I feel that this should be the other way around: player should have to give food and drinks to companions as sort of a "payment" for having them.
yeah that makes sense, I was trying to give companions more meaning and value, il think about this, I have plans
Cool idea, i love it.
Hi. Straight to the point, I already made rus translation. Do you have discord so I can send it to you?
that was fast my friend! you can find me on discord as sto_benino. thank you so much!!
Good work. I've always liked mods that make companions interesting. This mod brings to mind a skyrim companion mod where companions give gifts from time to time, iron ingot leather...
they deserve more love <3
Thanks, cool mod. And thanks for russian.
you're very welcome, yeah thank you forsiid for russian :D
Something from my pack has your name on it, Cap! (c)
I'm honored.
Nice idea and mod ! Another reason to start using companions. Ty for sharing it.
When you say it's your "first" mod, does it mean you have other projects in mind/preparation ? I hope so, it sounds great to me! gl
thank you so much! when I say this is my first mod I mean I never created any mod for any games, so mistakes can and will happen! :)
Hey, could you perhaps make an opposite of this? I think it be cool if not only companions would reward you from time to time but there could be a level of maintained to companions. Where every so often you'd need to give them food, meds etc to maintain them from dying or leaving you.
This is a really good idea. I always wanted companions to be like this, asking you from time to time to give them food, meds, or even repair items to repair their guns and gear, and if you don't give them what they need, they'll either leave you or die depending on the situation.
Yeah this is a good idea, unfortunately my coding skills are really basic so it'll take me some time to get to advanced stuff like that. But yeah, what you said makes total sense!
This is soo cool and will definitley bring more life to your companions!
10/10
you're very kind thank you :)
Отличный аддон, спасибо вам, этого не хватало в игре, потому что только главный герой может давать аптечки и снаряжение компаньонам, а так и они сами будут подкидывать вещи.
Пошли!
Hello, my English is not very good. I really like your mods, but your mods will conflict with another mod. "CHATTY COMPANIONS," will you solve this problem
oh really? That's really weird because I tested it with Chatty Companions and I had no problems at all. What do you mean by conflict? Is the game crashing or giving you trouble?
It seems to cause a crash and screen freeze, but the game will not exit. This issue did not occur in the previous version of "GIFTS From COMPANIONS"
damn that sucks, I'm sorry I will surely look into it, in the meantime if you want to download the previous versions you can find it here, it was the 0.0.2
Github.com
Okay, thank you very much!
The location where the game crashes is near the station where the lockdown line is located, I hope this is helpful to you.
In which map does it happen? also, what kind of companions you have? Is it like a story quest companion? Are they hired companions or normal companions that you asked to join you? Sorry for all the questions, it will give me a better idea of what the issue is
Sorry buddy, I noticed that "GIFTS OF COMPANIONS" doesn't seem to conflict with "chat companies", but with another mod I made myself. Sorry to bother you
you made me sweat man ahah
no worries, I hope you can fix your crash, have a good one :)
It's okay, I've already fixed it. Thank you for your reply
Does erase the 'misc' section in "gfcmod_tables.script" file will make my companions not to send me those junk items?
p.s sorry for my bad English
yes that's right, you can also erase single items if you don't want to erase the whole category
With each update this addon gets better and better I love it, good job 10/10
thank you larry <3
Спасибо за перевод!
thanks forsiid <3
Great concept, been playing with this mod for a while, however I cant turn in the item to Ryan Gosling, there is simply no options to do so, could you make a patch for that mod XD
Moddb.com
ahahah I will look into it!
hello Fastop, patch created, sadly now Ryan Gosling doesn't give you quests anymore because he doesn't need anything from you. I think you should load a save from before he gave you the quest. Let me know if it's fixed
YO THIS ROCKS! Wasn't expecting a compatibility patch so soon, thanks!
you're welcome:D you're lucky I'm hyperfixating on this addon ahah