1) Launch Heroes in windowed mode (you can also use fullscreen, but then you won't see the Traffic Light itself);
2) Launch the Traffic Light;
3) Enter a battle (the Traffic Light will display UNKNOWN);
4) Press "Start";
5) If everything is done correctly, instead of UNKNOWN, you will see the changing remaining value. When it equals one, the program will signal this.
6) Make the Heroes window active;
7) Play!
ATTENTION! Morale will not drop during an attack, despite the program's signal (in this case, R is also used for luck, I haven't implemented it yet, but it's not a problem).
Morale! :)