0 of 0

File information

Last updated

Original upload

Created by

mym

Uploaded by

mym

Virus scan

Safe to use

About this mod

Some NPCs and creatures are now able to heal themselves and their friends.
This is done dynamically for any vanilla or added actor.
Works with enemies and with player's followers.

Requirements
Permissions and credits
Changelogs
Fair Care (OpenMW)

OpenMW 0.49 or newer is required!

Some NPCs and creatures are now able to heal themselves and their friends.
This is done dynamically for any vanilla or added actor.
Works with enemies and with player's followers.

Why

In vanilla Morrowind, most enemies cannot heal themselves, it's not fair.
Some mods add spells, potions or other items to a limited number of actors so they can heal themselves.
But this applies to very few of them, and it does not dynamically support added content.
Moreover, actors that cannot heal themselves get no help from their spell caster friends.

With Fair Care, some NPCs and creatures will gain self and touch healing spells, based on the magic skills and level.
During battles, actors fighting against the same enemy will be able to heal their friends.
Also, outside of battles, actors bound by a follow link will also heal their followers or following, if needed.

How it works

Adding spells to actors

The addon file adds 4 self-healing spells and 4 touch-healing spells to the list of all available spells:
there are a low, medium, high and huge versions for each of the 2 categories.

Each time a new actor is encountered, this mod determines if he is eligible to get a self and a touch healing spells.
Actors that already have a self-heal spell won't get a new one from Fair Care.
If the spell cost is greater than half of actor's base magicka, the spell won't be considered.

NPCs will get the best spell version they can cast with 100% success chance, or none if their magic skills are not sufficient.

Only creatures that can cast spells are considered for gaining the new spells.
This is to prevent adding heal spells to most creatures, as most of them are highly proficient in magic skills (even skeletons!).

Creatures get a spell version based on

  • their chance to cast the spell (good in most cases)
  • their level: 1-4=low, 5-9=medium, 10-19=high, 20+=huge (customizable in configuration.lua, variable minCreatureLevelForSpellIndex)

Casting spells

Self-heal spells are handle automatically by the engine.
Touch-heal spells are handled by Fair Care.

Conditions to initiate a touch heal spell:

  • a wounded actor has less than half of his health
  • the wounded has no means to heal himself
  • another actor has a touch-heal spell and is fighting the same target as the wounded, or is following the wounded, or has the wounded as a follower
  • the healer has enough magicka to cast the spell
  • the healer has enough chances to cast the spell (enough fatigue)
  • the healer has not just healed someone (he saves some time for fighting)
  • the healer is not currently healing another actor
  • the heal spell will have a significant impact on the wounded HP

When those conditions are met, Fair Care takes control of the healer to bring him to the wounded and cast the spell.

If the healer get stuck behind other actors, he'll stop trying to heal his friend and he'll go back to fighting.

As Morrowind doesn't allow casting a spell on someone who is not a combat target (the spell is cast but doesn't touch the target),
Fair Care manually applies the spell on the wounded friend, after validating spell success chances and touch distance.

Compatibility

Requires OpenMW 0.49.

Compatible with:


Load order

Mods that take control of actors (by disabling AI) should be placed before Fair Care in order to allow this mod to override actors' controls during touch healing.

Compatibility with Mercy CAO requires a recent version of that mod (after 06/10/2024), and load order doesn't matter.

Making Fair Care compatible with your mod

Mod devs can use Fair Care interface to known when this mod takes control of actors to heal their friends.
During that healing, other mods should not try to control those actors.

On any actor:

I.FairCare.isHealing()

Thanks to

  • Bethesda for creating Morrowind
  • OpenMW team for their great game engine and for adding so useful Lua bindings
  • Nexus for hosting most Morrowind mods
  • Modding-OpenMW for their huge contribution to Morrowind
  • lelimule for suggesting a new approach excluding combat target changes and for all his feedbacks
  • MaxYari for helping me on Mercy compatibility

Installation

  • Decompress the mod archive in a folder named "FairCare"
  • In openmw.cfg

    • Add the full path to the "FairCare/00 Core" directory as a data path
    • Add FairCare.omwscripts and FairCare.omwaddon as content files

For example:

data="C:\games\OpenMWMods\Gameplay\FairCare\00 Core"
content=FairCare.omwscripts
content=FairCare.omwaddon


More info on how to install OpenMW mods here.

Update the mod

Just replace the mod files.

Uninstallation

  • Finish all current fights or move to a place where nobody attacks anybody
  • Remove the openmw.cfg entries

Localization

EN: @mym

Repository

This is an open source project, check the repository.
Feel free to report issues or suggestions.

Author

@mym