Given that you consult WHAM in there you might actually be better off writing a small combat script of your own and import WHAM into it.
Something like:
import WHAM.ash;
void main(int initround, monster foe, string pg) {
if (item_amount($item[military-grade fingernail clippers]) > 0...