
Comments

quick win and lose (UNDERTALE Xdelta)
Patch for UNDERTALE to allow using 1 and 2 keys to instantly win and lose (you do not need debug mode enabled)
Pressing "1" kills all enemies, and "2" instantly game-overs you. It only works in battles that use obj_battlecontroller (so not the Flowey cutscenes or whatever).
You can also press "3" to void the enemies. It doesn't actually kill things, just voids them out of existence, so you won't get any exp or anything. It should also work on enemies with no death animation (like sans) just fine for that reason as well. (it will typically act as if you spared the enemy)
I HAVE NOT TESTED THIS MOD YET!!! PLEASE REPORT ANY CRITICAL BUGS OR CRASHES
All I did was add this this at the beginning of gml_Object_obj_battlecontroller_Step_0if (keyboard_check_pressed(ord("3"))){Â Â Â Â global.monster[0] = 0;Â Â Â Â global.monster[1] = 0;Â Â Â Â global.monster[2] = 0;Â Â Â Â won = 0;}if (keyboard_check_pressed(ord("2")))Â Â Â Â scr_gameoverb();if (keyboard_check_pressed(ord("1"))){Â Â Â Â for (var index = 0; index < 3; index++)Â Â Â Â {Â Â Â Â Â Â Â Â if (global.monster[index] == 1)Â Â Â Â Â Â Â Â {Â Â Â Â Â Â Â Â Â Â Â Â with (global.monsterinstance[index])Â Â Â Â Â Â Â Â Â Â Â Â {Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â killed = 1;Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â instance_destroy(global.monsterinstance[index]);Â Â Â Â Â Â Â Â Â Â Â Â }Â Â Â Â Â Â Â Â }Â Â Â Â }}
This mod is small and intended to be used with other mods, so it is packaged as an XDelta Patch. To apply this mod, patch your source data.win found here if using Steam on windows: (C:\Program Files (x86)\Steam\steamapps\common\Undertale)
You can apply an XDelta patch using an XDelta patcher like this one: https://kotcrab.github.io/xdelta-wasm/