This diagram models a combat system inspired by the mechanics of *The Legend of Zelda: Breath of the Wild*, specifically focusing on the interaction between Link’s health, enemy damage scaling, and combat skills like dodging and parrying. The core loop revolves around two primary actors: Link's HP and Enemy HP. The system dynamically selects an opponent from a list of enemies (Bokoblin, Moblin, or Lynel) using the Select Random Enemy Register, which pulls statistical data for health and attack power from predefined arrays. Similarly, Link's damage output is determined by the Selected weapon from Inventory, which calculates potential damage based on items like the Master Sword or a Savage Lynel Sword.
The combat logic is driven by the Enemy Attacks Gate, which uses a random distribution to determine the outcome of a combat turn. Depending on Link's Player Dodging skill and Player Shield skill, the attack flow can be diverted through the Successful Dodge or Perfectly Timed Shield Block Gates. These outcomes trigger the Initiate slow-mo mode Gate, enabling a "Flurry Rush" that scales Link’s weapon damage via the Weapon Damage * Flurry Register. Conversely, a failed defense sends resources through the Successful Enemy Attack Gate, applying the enemy's attack power directly to Link's HP through the Enemy Damage Resource Connection.