Objective
Find out whether a local routine can notice it is being attacked, find the attacker and fight back, with no cloud model choosing any input during the fight.
Method
The character stood still in a private single-player world. One hostile creature was spawned next to it with a game command. The routine watches the health number, and when it drops it holds attack, turns to look for an enemy health bar, and faces it. It is meant to drink a potion at 45% health and run at 25%.
Result
Rat, attempt 1: failed. The routine only reacted to a drop of 4% within one second. A rat’s bite is far smaller than that, so the trigger never fired. A second, slower rule was added.
Rat, attempt 2: rat killed, wrongly labelled. The slower rule fired and the rat died. The routine never saw a health bar, so it reported that no enemy had been found. The label was wrong and has been renamed.
Boar: killed in about three seconds.
| Moment | What the log shows |
|---|---|
| Bite | Health 89 to 86 |
| 0.34 s later | Slow damage rule fires |
| 0.64 s into the routine | Enemy health bar found, then tracked for six ticks |
| About 3 s after the bite | Boar dead, “20 XP” on screen |
This was the first time the health-bar detector found a bar in a live run.
Limits
- The detector lost the boar’s bar at 2 of 55 health, while the boar was still alive for about a second. The bar had become too thin for it.
- Turning to face the enemy was never shown to work: the bar’s position on screen did not move toward the centre across five corrections.
- Walking toward a distant enemy, drinking a potion and retreating never happened, because health never fell below 86.
- The routine does not read kill evidence. Each kill was confirmed by a person or an assistant looking at saved frames.
- A boar turned out to be no harder than a rat for this character. One creature at a time, on flat ground.
Next
An opponent that lasts long enough to force healing and retreat, and a detector that keeps hold of a nearly empty bar.
Evidence on file
reports/combat_20261110/COMBAT_TEST_RESULT.mdreports/combat_20261110/BOAR_TEST_RESULT.mdreports/combat_20261110/boar_frames_t73_t78_t80_t83.jpg
These files are kept with the project. Ask if you would like to see one.
