Elin
37 ratings
Invincible Companion
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
219.828 KB
10 Nov, 2024 @ 10:26am
1 Change Note ( view )

Subscribe to download
Invincible Companion

Description
This mod makes so that the pet Fiama gives you will not fall in battle. It will run in fear if it would otherwise die.

(Note for new players: The pet does not die permanently in vanilla, you can always resurrect them at Fiama or pay to bring them back.)

I wanted this as currently pets are really aggressive, and will fight to the death regardless of whether that is smart.

This does make the pet more powerful, because they can just slowly chip away at an enemy (as long as the enemy doesn't heal fast enough).

----

Addition/Removal Status: Safe, will revert back to vanilla behavior.

You may be interested in: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3364780463 which adjusts the allies to be more fearful. It is compatible with this mod.

----

I plan on extending this to have settings for arbitrary allies, and allowing configuration of whether it will have a fear effect once there's a nice custom UI library for mods to use.

TODO: Make so enemies stop targeting a fearful pet (when at minimum HP), it is a bit easy to pick them off like this if they don't switch focus.

Source Code: https://github.com/MinusGix/elin-mods/tree/master/InvincibleCompanion
6 Comments
Miss Queenie 1 Aug @ 10:37am 
This mod, for some reason, breaks the ability to throw items. I have no idea why but when I removed this mod, and only this mod, I was able to throw items again. I loved it for making my companion run away, though, so thank you for making this even if the recent updates have broken it.
Suwako 15 Nov, 2024 @ 5:18pm 
Hey, the art-style on your image reminds me of a flash game from when i was a kid. I think it was called "Fear less" What a blast from the past.
Missing Minus  [author] 12 Nov, 2024 @ 1:35pm 
I've made https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3364780463 which hopefully fits better with what you want. Imperfect still, but feedback would be useful for any tuning.
ACTIM 11 Nov, 2024 @ 5:51am 
no die?
Missing Minus  [author] 10 Nov, 2024 @ 2:11pm 
There's a Fear Condition, I just add that condition to the pet when they would have otherwise died. I believe allies/pets sometimes get this naturally, but yeah they are quite incautious.

The equation for vanilla fear think it uses is
> if (!IsPC && hp < MaxHP / 5 && Evalue(423) <= 0 && dmg * 100 / MaxHP + 10 > EClass.rnd(IsPowerful ? 400 : 150) && !HasCondition<ConFear>())

So, for non-players, where their hp < maxHP/5, some Evalue thing which is about having Negate Fear, and some math probably to make so they run from powerful creatures quicker with some randomness (rnd).

Making this more balanced for allies in general is a bit of a challenge. I'll give allies a dialogue option to discuss how risk-taking they should be, with some different presets. Should also add a factor for how far away you are, so if you're running or they chased monsters into a room then they are more likely to run.

Essentially, since this seems feasible with what I know, I'll try my hand at it.
Z03 10 Nov, 2024 @ 1:40pm 
''This mod makes so that the pet Fiama gives you will not fall in battle. It will run in fear if it would otherwise die.''
So it was possible of you do code the companion AI to do so? Any chance you could make a variation where the pet flees but isn't unkillable? I just want their AI to be a little more careful and aware.