BattleActionLinkToEventFix

Prevents a bug that would crash the game or repeat the usage of a previously selected item/skill when choosing to use an event-linked actor-command in the engine's default battle-system. This patch resets the action-type to none when the detected command is neither attack, skill, item, defend or escape.

Originally made and first released by Cherry.

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/2

Offsets

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
0042FA34h
0002EE34h
0042FA14h
0002EE14h
0042FB18h
0002EF18h
0042FB18h
0002EF18h
0042FB18h
0002EF18h

Sourcecode

PROC__0042FA34h:
			INT3
PROC__0042FA35h:
			PUSH EAX
			MOV EAX, [EBP]
			MOV EAX, [EAX+4Ch]
			MOV EAX, [EAX+10h]
			MOV BYTE PTR [EAX+04h], 4
			POP EAX
			JMP PROC__0047995Ch
PROC__0042FA14h:
			INT3
PROC__0042FA15h:
			PUSH EAX
			MOV EAX, [EBP]
			MOV EAX, [EAX+4Ch]
			MOV EAX, [EAX+10h]
			MOV BYTE PTR [EAX+04h], 4
			POP EAX
			JMP PROC__0047A940h
PROC__0042FB18h:
			INT3
PROC__0042FB19h:
			PUSH EAX
			MOV EAX, [EBP]
			MOV EAX, [EAX+4Ch]
			MOV EAX, [EAX+10h]
			MOV BYTE PTR [EAX+04h], 4
			POP EAX
			JMP PROC__0047E63Ch
PROC__0042FB18h:
			INT3
PROC__0042FB19h:
			PUSH EAX
			MOV EAX, [EBP]
			MOV EAX, [EAX+4Ch]
			MOV EAX, [EAX+10h]
			MOV BYTE PTR [EAX+04h], 4
			POP EAX
			JMP PROC__0047F7E0h
PROC__0042FB18h:
			INT3
PROC__0042FB19h:
			PUSH EAX
			MOV EAX, [EBP]
			MOV EAX, [EAX+4Ch]
			MOV EAX, [EAX+10h]
			MOV BYTE PTR [EAX+04h], 4
			POP EAX
			JMP PROC__0047E714h

Bytes

CC 50 8B4500 8B404C 8B4010 C6400404 58 E9139F0400
CC 50 8B4500 8B404C 8B4010 C6400404 58 E917AF0400
CC 50 8B4500 8B404C 8B4010 C6400404 58 E90FEB0400
CC 50 8B4500 8B404C 8B4010 C6400404 58 E9B3FC0400
CC 50 8B4500 8B404C 8B4010 C6400404 58 E9E7EB0400

Segment 2/2

Offsets

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
0048F707h
0008EB07h
0049103Ah
0009043Ah
004951E2h
000945E2h
0049625Ah
0009565Ah
0049544Eh
0009484Eh

Sourcecode

			CALL PROC__0042FA35h
			CALL PROC__0042FA15h
			CALL PROC__0042FB19h
			CALL PROC__0042FB19h
			CALL PROC__0042FB19h

Bytes

E82903FAFF
E8D6E9F9FF
E832A9F9FF
E8BA98F9FF
E8C6A6F9FF