Party Knockout Alert MEPR

Activate switch #999 when the entire party is knocked out while the map-screen is active instead of automatically calling the gameover-screen.

The switch, like gameover would, will only activate directly after event-commands that potentially could lead to some actor's HP becoming 0.

This variant executes a map-event-pages-check afterwards. This is not needed if you're only using on-page-code or a switch-precondition in a parallel or auto common-event to catch the switch.

Originally made and first released by KotatsuAkira.

RPG2000
1.00UNKNOWN2000-05-072000-06-192000-07-112000-11-132000-11-152000-12-27
1.07
2001-05-05
1.10
2003-03-27
1.50
2003-06-25
1.51/1.52
2015-07-05
1.60
2015-09-15
1.61
2017-09-14
1.62
RPG2003
1.00UNKNOWN1UNKNOWN21.0.2.1
1.0.2.1
1.0.3.0
1.0.4.0
1.0.5.0
1.0.5.0
1.0.6.0
1.0.6.0
1.0.7.0
1.0.7.0
1.0.8.0
1.0.8.0
1.0.9.1
1.0.9.1
1.101.111.12mp210414

Segment 1/1

Offsets

RPG2000
2000-12-27
1.07
2001-05-05
1.10
2003-03-27
1.50
2003-06-25
1.51/1.52
2015-07-05
1.60
2015-09-15
1.61
2017-09-14
1.62
0047C42Dh
0007B82Dh
0047C33Dh
0007B73Dh
00481289h
00080689h
004813A5h
000807A5h
00482151h
00081551h
00482B21h
00081F21h
00482CA1h
000820A1h
RPG2003
1.001.0.3.0
1.0.4.0
1.0.5.0
1.0.5.0
1.0.8.0
1.0.8.0
1.0.9.1
1.0.9.1
1.101.111.12mp210414
0049BB01h
0009AF01h
0049E15Dh
0009D55Dh
004A2835h
000A1C35h
004A43F9h
000A37F9h
004A372Dh
000A2B2Dh

Sourcecode

			MOV EDX, 999			; SwitchID
			MOV CL, 1			; Set ON
			CALL PROC__00469E84h		; TLcfgSystem.SetSwitch
			MOV EAX, [0049AC98h]		; TLcfgMap
			MOV EAX, [EAX]
			MOV EAX, [EAX+18h]		; TLcfgMap.Events
			CALL PROC__0048C648h		; TLcfgEvent.RefreshEventPages
			JMP __0047C494h
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			MOV EDX, 999			; SwitchID
			MOV CL, 1			; Set ON
			CALL PROC__00469D84h		; TLcfgSystem.SetSwitch
			MOV EAX, [0049AC98h]		; TLcfgMap
			MOV EAX, [EAX]
			MOV EAX, [EAX+18h]		; TLcfgMap.Events
			CALL PROC__0048C558h		; TLcfgEvent.RefreshEventPages
			JMP __0047C3A4h
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			MOV EDX, 999			; SwitchID
			MOV CL, 1			; Set ON
			CALL PROC__0046ED78h		; TLcfgSystem.SetSwitch
			MOV EAX, [0049FC78h]		; TLcfgMap
			MOV EAX, [EAX]
			MOV EAX, [EAX+18h]		; TLcfgMap.Events
			CALL PROC__00491748h		; TLcfgEvent.RefreshEventPages
			JMP __004812F0h
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			MOV EDX, 999			; SwitchID
			MOV CL, 1			; Set ON
			CALL PROC__0046EE94h		; TLcfgSystem.SetSwitch
			MOV EAX, [0049FC78h]		; TLcfgMap
			MOV EAX, [EAX]
			MOV EAX, [EAX+18h]		; TLcfgMap.Events
			CALL PROC__00491864h		; TLcfgEvent.RefreshEventPages
			JMP __0048140Ch
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			MOV EDX, 999			; SwitchID
			MOV CL, 1			; Set ON
			CALL PROC__0046EFD8h		; TLcfgSystem.SetSwitch
			MOV EAX, [0049FC78h]		; TLcfgMap
			MOV EAX, [EAX]
			MOV EAX, [EAX+18h]		; TLcfgMap.Events
			CALL PROC__00488B00h		; TLcfgEvent.RefreshEventPages
			JMP __004821B8h
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			MOV EDX, 999			; SwitchID
			MOV CL, 1			; Set ON
			CALL PROC__0046F5B8h		; TLcfgSystem.SetSwitch
			MOV EAX, [004A0C78h]		; TLcfgMap
			MOV EAX, [EAX]
			MOV EAX, [EAX+18h]		; TLcfgMap.Events
			CALL PROC__004894D0h		; TLcfgEvent.RefreshEventPages
			JMP __00482B88h
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			MOV EDX, 999			; SwitchID
			MOV CL, 1			; Set ON
			CALL PROC__0046F770h		; TLcfgSystem.SetSwitch
			MOV EAX, [004A0C78h]		; TLcfgMap
			MOV EAX, [EAX]
			MOV EAX, [EAX+18h]		; TLcfgMap.Events
			CALL PROC__00493188h		; TLcfgEvent.RefreshEventPages
			JMP __00482D08h
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			MOV EDX, 999			; SwitchID
			MOV CL, 1			; Set ON
			CALL PROC__00485FFCh		; TLcfgSystem.SetSwitch
			MOV EAX, [004C2EACh]		; TLcfgMap
			MOV EAX, [EAX]
			MOV EAX, [EAX+18h]		; TLcfgMap.Events
			CALL PROC__004B1EFCh		; TLcfgEvent.RefreshEventPages
			JMP __0049BB68h
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			MOV EDX, 999			; SwitchID
			MOV CL, 1			; Set ON
			CALL PROC__00486308h		; TLcfgSystem.SetSwitch
			MOV EAX, [004C5B94h]		; TLcfgMap
			MOV EAX, [EAX]
			MOV EAX, [EAX+18h]		; TLcfgMap.Events
			CALL PROC__004A5354h		; TLcfgEvent.RefreshEventPages
			JMP __0049E1C4h
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			MOV EDX, 999			; SwitchID
			MOV CL, 1			; Set ON
			CALL PROC__0048B16Ch		; TLcfgSystem.SetSwitch
			MOV EAX, [004CCD74h]		; TLcfgMap
			MOV EAX, [EAX]
			MOV EAX, [EAX+18h]		; TLcfgMap.Events
			CALL PROC__004BB6ECh		; TLcfgEvent.RefreshEventPages
			JMP __004A289Ch
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			MOV EDX, 999			; SwitchID
			MOV CL, 1			; Set ON
			CALL PROC__0048B33Ch		; TLcfgSystem.SetSwitch
			MOV EAX, [004CDD74h]		; TLcfgMap
			MOV EAX, [EAX]
			MOV EAX, [EAX+18h]		; TLcfgMap.Events
			CALL PROC__004AB8B4h		; TLcfgEvent.RefreshEventPages
			JMP __004A4460h
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			MOV EDX, 999			; SwitchID
			MOV CL, 1			; Set ON
			CALL PROC__0048B2F8h		; TLcfgSystem.SetSwitch
			MOV EAX, [004CDD74h]		; TLcfgMap
			MOV EAX, [EAX]
			MOV EAX, [EAX+18h]		; TLcfgMap.Events
			CALL PROC__004BD1B4h		; TLcfgEvent.RefreshEventPages
			JMP __004A3794h
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP

Bytes

BAE7030000 B101 E84BDAFEFF
A198AC4900 8B00 8B4018 E800020100
EB4A
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90
BAE7030000 B101 E83BDAFEFF
A198AC4900 8B00 8B4018 E800020100
EB4A
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90
BAE7030000 B101 E8E3DAFEFF
A178FC4900 8B00 8B4018 E8A4040100
EB4A
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90
BAE7030000 B101 E8E3DAFEFF
A178FC4900 8B00 8B4018 E8A4040100
EB4A
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90
BAE7030000 B101 E87BCEFEFF
A178FC4900 8B00 8B4018 E894690000
EB4A
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90
BAE7030000 B101 E88BCAFEFF
A1780C4A00 8B00 8B4018 E894690000
EB4A
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90
BAE7030000 B101 E8C3CAFEFF
A1780C4A00 8B00 8B4018 E8CC040100
EB4A
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90
BAE7030000 B101 E8EFA4FEFF
A1AC2E4C00 8B00 8B4018 E8E0630100
EB4A
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90
BAE7030000 B101 E89F81FEFF
A1945B4C00 8B00 8B4018 E8DC710000
EB4A
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90
BAE7030000 B101 E82B89FEFF
A174CD4C00 8B00 8B4018 E89C8E0100
EB4A
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90
BAE7030000 B101 E8376FFEFF
A174DD4C00 8B00 8B4018 E8A0740000
EB4A
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90
BAE7030000 B101 E8BF7BFEFF
A174DD4C00 8B00 8B4018 E86C9A0100
EB4A
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90