2 months ago #10
    OK, I looked into this. The two least bits of $566 do seem to be set to zero at the start of a battle and do seem to count the number of times you've tried to run. Bit 3 probably is for pre-emptive strikes though I didn't test that. The other bits seem unrelated however -- bit 2 sometimes changes mid-round, and bit 6 appears related to what action the hero takes.