Execution Prompt Stays
The execution prompt on a broken or low-health enemy no longer goes away: the enemy stays executable until it dies. Switches in config.lua, read live.
What it does
In the game you can execute an enemy only while it carries one of the game's "can execute" effects: one while it is broken, one at low health, and the same two for the Flying Guillotine. When the effect ends, the execution prompt is gone. With this mod the chance stays:
- An enemy that can be executed stays executable until it dies: the mod puts the same effect back on the enemy each time it has run out.
- The mod only keeps what the game gave. An enemy that cannot be executed is not changed.
- By default (
FarEnemies = false) this holds for an enemy that the execution prompt has targeted. WithFarEnemies = trueit holds for every enemy from the moment it can be executed, also far away with no prompt on screen. Enable = falseinconfig.luabrings the game's own rule back, live in game.
It is a UE4SS Lua script: it applies the game's own effects while the game runs. It replaces no game file.
Screenshots
How to install
- 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). - Download the zip of the latest release on GitHub (
phantombladezero_executionpromptstays_<version>.zip). - Unpack it into the game folder
platform\steam\, next to the game's exe. It adds the folderue4ss\Mods\phantombladezero_executionpromptstays\(with the fileenabled.txt, UE4SS starts it by itself). - Start the game.
To check that it runs: platform\steam\ue4ss\UE4SS.log has the line [Execution Prompt Stays] <version> loaded.,
and after you load a save [Execution Prompt Stays] The game's can-execute effects: .... The first enemy that the
mod keeps executable gets a line too: [Execution Prompt Stays] The first enemy is kept ....
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_executionpromptstays\; after the next game start the game's own rule is back.
How to use
Nothing to set up: the mod works as soon as you load a game. When an enemy can be executed, it stays executable until it dies.
Settings
The settings are in platform\steam\ue4ss\Mods\phantombladezero_executionpromptstays\Scripts\config.lua. Open it
with a text editor, change a value and save: the mod reads the file every 5 seconds, so you see the change in the
game without a restart. A file it cannot read (for example a typo) keeps the last settings. UE4SS.log shows the
settings in use in the line [Execution Prompt Stays] Settings: ..., and names each value it could not use.
| Setting | Default | What it does |
|---|---|---|
Enable |
true |
false: the mod puts no effect back; the game's own rule applies |
FarEnemies |
false |
false: only an enemy that the execution prompt has targeted stays executable. true: every enemy that can be executed stays so, also far away with no prompt on screen |
LogDetail |
false |
true: UE4SS.log names each enemy the mod keeps and each effect it puts back (for tests) |
Compatibility
- Game version: Steam build 26367565 (
CL-302256_JKS-17280). - Tested with UE4SS
v4.0.0. - Auto Execution (it presses the execution prompt for you as soon as it shows): the two mods change different parts of the game. With both, this mod has little to do, because an enemy is executed before its effect runs out.
- Another mod that keeps enemies executable the same way does the same job. Use one of them.
Known issues
- In the game test the prompt stayed, but the game's own effect had not run out yet, so the mod's main step (it puts
the effect back when it runs out) has not been seen in game yet. The first time it works,
UE4SS.loghas the line[Execution Prompt Stays] The first effect is back after the mod applied it again: .... - The mod lets go of an enemy only when the enemy is dead or gone. An enemy that is still alive after an execution stays executable.
How to build
There is nothing to build: src\phantombladezero_executionpromptstays\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.
