Max Health and Sha-Chi

More maximum health and Sha-Chi: x1.5 each by default, 0.25 to 5. Each part has its own switch in config.lua. A new value shows after you load a save.

  • MIT · open source
  • 0 stars
  • Latest release v1.0
  • Updated 4 days ago
  • Gameplay
Description

Max Health and Sha-Chi

More maximum health and Sha-Chi: x1.5 each by default, 0.25 to 5. Each part has its own switch in config.lua. A new value shows after you load a save.

What it does

You get more maximum health and more maximum Sha-Chi: each is 1.5 times the game's value by default.

  • Each part has its own multiplier (HealthMultiplier, ShaChiMultiplier), from 0.25 to 5. A value below 1 makes the game harder.
  • Each part has its own switch (Health, ShaChi): turn off the one you do not want.
  • Only you change. Enemies keep their health and Sha-Chi.

The game uses a new value when it builds your character, so a changed setting shows after you load a save.

It is a UE4SS Lua script: it changes the start values of your character while the game builds it. It replaces no game file and writes nothing into your save.

Screenshots

Max Health and Sha-Chi

How to install

  1. Install UE4SS for Phantom Blade Zero, for example UE4SS (its zip phantombladezero_ue4ss_<version>.zip: the official UE4SS build with a config that makes it run in this game).
  2. Download the zip of the latest release on GitHub (phantombladezero_maxhealthandshachi_<version>.zip).
  3. Unpack it into the game folder platform\steam\, next to the game's exe. It adds the folder ue4ss\Mods\phantombladezero_maxhealthandshachi\ (with the file enabled.txt, UE4SS starts it by itself).
  4. Start the game.

To check that it runs: platform\steam\ue4ss\UE4SS.log has the line [Max Health and Sha-Chi] <version> loaded.

To update the mod, replace the folder with the one of the new release; to keep your settings, put your old Scripts\config.lua back (a setting that it does not have keeps its default). To remove it, delete the folder ue4ss\Mods\phantombladezero_maxhealthandshachi\; after the next load of a save you have the game's values again.

How to use

Nothing to do: load your save, and your health and Sha-Chi bars have the new maximum. UE4SS.log names the old and the new values in a line that starts with [Max Health and Sha-Chi] player build.

Settings

The settings are in platform\steam\ue4ss\Mods\phantombladezero_maxhealthandshachi\Scripts\config.lua. Open it with a text editor, change a value and save: the mod reads the file every 5 seconds, so the game does not need a restart. The new value shows when the game builds your character again: load your save. A file it cannot read (for example a typo) keeps the last settings. UE4SS.log shows the settings in use in the line [Max Health and Sha-Chi] Settings: ..., and names each value it could not use.

Setting Default What it does
Enable true false: the mod changes nothing, the game as normal
Health true false: your maximum health stays the game's
HealthMultiplier 1.5 Your maximum health times this (0.25 to 5; 1 = the game's value, 2 = double)
ShaChi true false: your maximum Sha-Chi stays the game's
ShaChiMultiplier 1.5 Your maximum Sha-Chi times this (0.25 to 5; 1 = the game's value, 2 = double)
LogDetail false true: UE4SS.log names every build of your character (for tests)

Compatibility

  • Game version: Steam build 26367565 (CL-302256_JKS-17280).
  • Tested with UE4SS v3.0.1-1195-g1ceefac8.
  • Mods that heal a share of your maximum health (for example Passive Regen and Live by the Blade) use the new maximum.
  • Another mod that changes the player's maximum health or Sha-Chi the same way multiplies with this one. Use one of them, or turn that part off here.

Known issues

None yet.

How to build

There is nothing to build: src\phantombladezero_maxhealthandshachi\Scripts\main.lua is the mod. tests\test_main.py runs the script outside the game with Lua 5.4 (lupa) and mocks of UE4SS: python tests\test_main.py. README.md has the details.

Credits

Made by Kintaro. MIT license: you may use, change and share this mod. UE4SS is made by the UE4SS-RE team. Phantom Blade Zero belongs to its makers.