03-08-2008, 11:48 PM
Do a loop.
Code:
Do Until Battle_Finished = 1
Player HP = 0 Battle_Finished = 1
Npc HP = 0 Battle_Finished = 1
Player flee Battle_Finished = 1
Something else Battle_Finished = 1
If tmrBattleMessage < GetTickCount Then
Blah blah attacks the NPC
tmrBattleMessage = GetTickCount + 500 'half a second attacks?
End If
Loop