This is a little scriptlet that I made a couple of months back to help me testing. The purpose of it is to allow you as a developer (or a tester) to quickly dispose of all enemies in a battle by pressing a key of your choosing.
By default, the "kill switch" will be K in your keyboard and this will only work during playtest (battle test included), but you can disable that in case you want to use it as a cheating trick for your players or to help your beta testers.
You can also trigger the effect through the script call:
$gameTroop.killThemAll()
Usage:
Just set up what key you'd like to use as Kill Switch (default is K) and if you want the effect to trigger only in playtest or not.
Compatibility:
Should not cause any incompatibilities.
Terms of use:
·Free to use in comercial and non-comercial games, as long as you give credits to inVictor.
·Do not sell or claim authorship of this plugin wholy or partially.
·You can edit and adapt the code, as long as you still give credit.
·Do not redistribute this plugin.
·I reserve the right to change these terms of use.