Serp
King
- Joined
- Apr 1, 2015
- Messages
- 666
Better add this to the mod description at your picknmix website, since this thread is quite big and your statement could get lost here.Please note, this mod is only an example of how to change the base max hit points for a unit class (via the <Units> table) along with example promotions to give specific units additional max hit points, either as a fixed amount or a percentage of base max hit points.
It is NOT a complete stand-alone mod.
To make it stand-alone, you will need to add and then mod three core game UI files - PlotMouseoverInclude.lua, EnemyUnitPanel.lua and UnitPanel.lua - to remove references to GameDefines.MAX_HIT_POINTS (also coded as GameDefines["MAX_HIT_POINTS"]) and replace them with pUnit:GetMaxHitPoints() (or appropriate variant).
Without the appropriate changes, a unit's hit points will show as (100 - damage), as the game tracks damage taken by a unit and not it's remaining hit points.
However, creating such a mod will make it incompatible with every other mod/pseudo-DLC that also alters any of these three files. Conversely, any mod that alters these three files while keeping the coding to GameDefines.MAX_HIT_POINTS will be incompatible with any mod trying to use the new max hit points feature(s).
Note: Any Pick'N'Mix mod that alters these files, eg "UI - Condensed Promotions" has been changed as required in the latest version.