Inspired by
this thread, I've put together a quick
Low Health Popup addon. The idea is to interrupt what you're doing when your life falls below a configurable percent of full by popping up a dialog in your face, to block your keystrokes and prevent you from merrily carrying on and only noticing the problem a few turns later when you're dead (why, no, I have no personal experience with this at all, why do you ask?

). The pop-up threshold is configurable via the "Low-health warning popup threshold" game option in the UI tab of the Game Options dialog.
So, to those who were asking for an option like this in the prior thread (and to those who are interested here), was this what you had in mind? Any changes you'd like to see? And is this something we want to merge into ZOmnibus at some point?
[
Technical info:]
Code: Select all
Hooks:
GameOptions:tabs [to add our game option]
Superload:
mod.class.Player:
takeHit() [to check for threshold crossing and pop up the dialog]