You can assign Deadly Strike widgets to a Pixel Trap. Create the widget first, then create a new Pixel Trap, and chose the Deadly Strike widget as action for the appear/disappear condition.
Pixel Traps are arguably one of the coolest features in Magic Dosbox. The amount of automation you can build into 30+ years old DOS games is pretty mindblowing. 🙂