Unfortunately, in quest and for its 'while' loops, I don't think you can pause it, sadly.
that said though, I'm a code noob and quest code noob still, some of the good coders who also know quest coding well, may know of ways to do this, so wait for their authoritative posts on this matter.
------
you can also take a look at my combat code, at least for ideas (if you can't or don't want to or don't understand it enough to use):
viewtopic.php?f=10&t=3348&start=120#p22483(scroll down to my next post also, as it has the key/legend for all of my annoying abrevs)
and there's of course Pixie's and Pertex' Combat Libraries too, to look at and/or use: look in the 'libraries and code samples' forum board for them.