From The Mana World
This article is currently only a proposal
The features or design guidelines described in this article are only a proposal made by one or some persons. It has not been evaluated or accepted by the core development team yet. Feel free to add your personal opinion about them or make counter proposals.
The premise of this page is to demonstrate a possible monster-threat system, where the game would warn the player when the monster is too strong for them to defeat. The system proposed here is simple, but should work fine. Of course, this assumes the player isn't using any glitches/cheats. There might be a small bit of error for long-ranged players, due to the distance the monster has to travel to attack.
if (p. lvl exp - m. exp) < 0.1% => gray if (p. hp - m. atk) =< -11% p. hp => red if (p. hp - m. atk) = -10% to 5% p. hp => orange if (p. hp - m. atk) >= 6% => green