SetBattler

The event-command that changes an actor's walking-graphic will swap their battler-animation-data to the ID stored in variable #3331 instead if it is above 0 (if not, the command will work normally).

Originally made and first released by bugmenot.

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

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
004A5608h
000A4A08h
004AFDB4h
000AF1B4h
004ACF5Ch
000AC35Ch
004B6EF0h
000B62F0h
004ADF08h
000AD308h

Sourcecode

PROC__004A5608h:
			PUSH EBP
			MOV EBP, ESP
			PUSH ECX
			PUSH EBX
			PUSH ESI
			PUSH EDI
			PUSH ECX
			PUSH EAX
			PUSH EDX
			MOV EAX, [004C2DACh]
			MOV EAX, [EAX]
			MOV EDX, 3331
			CALL PROC__00486058h
			CMP EAX, 0
			JE __004A5650h
			MOV EDX, [004C2DC0h]
			MOV EDX, [EDX]
			MOV EDX, [EDX+08h]
			MOV EDX, [EDX+08h]
			CMP EAX, EDX
			JG __004A5650h
			CMP EAX, -1
			JL __004A5650h
			JNE __004A5643h
			XOR EAX, EAX
__004A5643h:
			XCHG EDX, EAX
			POP EAX
			POP EAX
			POP ECX
			MOV [EAX+12Ch], EDX
			NOP
			JMP __004A56AFh
__004A5650h:
			POP EDX
			POP EAX
			XCHG ESI, EAX
			ADD ESI, 48
			MOV EBX, [EBP+08h]
			LEA EAX, [ESI+6Ch]
			CALL PROC__00404540h
			POP EAX
			MOV [ESI+70h], EAX
			TEST BL, BL
			JE __004A566Fh
			XOR EAX, EAX
			MOV AL, 3
			JMP __004A5671h
__004A566Fh:
			XOR EAX, EAX
__004A5671h:
			MOV [ESI+74h], EAX
			MOV EAX, [004C2E88h]
			MOV EAX, [EAX]
			MOV EDX, [ESI-2Ch]
			CALL PROC__0047D164h
			MOV EDI, EAX
			MOV EAX, [EDI+10h]
			MOV EDX, [ESI+6Ch]
			CALL PROC__004048E8h
			JNE __004A56AFh
			MOV EAX, [EDI+14h]
			CMP EAX, [ESI+70h]
			JNE __004A56AFh
			CMP BL, BYTE PTR [EDI+18h]
			JNE __004A56AFh
			LEA EAX, [ESI+6Ch]
			CALL PROC__004044ECh
			XOR EAX, EAX
			MOV [ESI+70h], EAX
			MOV [ESI+74h], EAX
__004A56AFh:
			POP EDI
			POP ESI
			POP EBX
			POP ECX
			POP EBP
			RET 0004h
PROC__004AFDB4h:
			PUSH EBP
			MOV EBP, ESP
			PUSH ECX
			PUSH EBX
			PUSH ESI
			PUSH EDI
			PUSH ECX
			PUSH EAX
			PUSH EDX
			MOV EAX, [004C5A94h]
			MOV EAX, [EAX]
			MOV EDX, 3331
			CALL PROC__00486364h
			CMP EAX, 0
			JE __004AFDFCh
			MOV EDX, [004C5AA8h]
			MOV EDX, [EDX]
			MOV EDX, [EDX+08h]
			MOV EDX, [EDX+08h]
			CMP EAX, EDX
			JG __004AFDFCh
			CMP EAX, -1
			JL __004AFDFCh
			JNE __004AFDEFh
			XOR EAX, EAX
__004AFDEFh:
			XCHG EDX, EAX
			POP EAX
			POP EAX
			POP ECX
			MOV [EAX+12Ch], EDX
			NOP
			JMP __004AFE5Bh
__004AFDFCh:
			POP EDX
			POP EAX
			XCHG ESI, EAX
			ADD ESI, 116
			MOV EBX, [EBP+08h]
			LEA EAX, [ESI+6Ch]
			CALL PROC__00404520h
			POP EAX
			MOV [ESI+70h], EAX
			TEST BL, BL
			JE __004AFE1Bh
			XOR EAX, EAX
			MOV AL, 3
			JMP __004AFE1Dh
__004AFE1Bh:
			XOR EAX, EAX
__004AFE1Dh:
			MOV [ESI+74h], EAX
			MOV EAX, [004C5B70h]
			MOV EAX, [EAX]
			MOV EDX, [ESI-70h]
			CALL PROC__0047C6F4h
			MOV EDI, EAX
			MOV EAX, [EDI+10h]
			MOV EDX, [ESI+6Ch]
			CALL PROC__004048C8h
			JNE __004AFE5Bh
			MOV EAX, [EDI+14h]
			CMP EAX, [ESI+70h]
			JNE __004AFE5Bh
			CMP BL, BYTE PTR [EDI+18h]
			JNE __004AFE5Bh
			LEA EAX, [ESI+6Ch]
			CALL PROC__004044CCh
			XOR EAX, EAX
			MOV [ESI+70h], EAX
			MOV [ESI+74h], EAX
__004AFE5Bh:
			POP EDI
			POP ESI
			POP EBX
			POP ECX
			POP EBP
			RET 0004h
PROC__004ACF5Ch:
			PUSH EBP
			MOV EBP, ESP
			PUSH ECX
			PUSH EBX
			PUSH ESI
			PUSH EDI
			PUSH ECX
			PUSH EAX
			PUSH EDX
			MOV EAX, [004CCC7Ch]
			MOV EAX, [EAX]
			MOV EDX, 3331
			CALL PROC__0048B1C8h
			CMP EAX, 0
			JE __004ACFA4h
			MOV EDX, [004CCC90h]
			MOV EDX, [EDX]
			MOV EDX, [EDX+08h]
			MOV EDX, [EDX+08h]
			CMP EAX, EDX
			JG __004ACFA4h
			CMP EAX, -1
			JL __004ACFA4h
			JNE __004ACF97h
			XOR EAX, EAX
__004ACF97h:
			XCHG EDX, EAX
			POP EAX
			POP EAX
			POP ECX
			MOV [EAX+12Ch], EDX
			NOP
			JMP __004AD003h
__004ACFA4h:
			POP EDX
			POP EAX
			XCHG ESI, EAX
			ADD ESI, 116
			MOV EBX, [EBP+08h]
			LEA EAX, [ESI+6Ch]
			CALL PROC__00404540h
			POP EAX
			MOV [ESI+70h], EAX
			TEST BL, BL
			JE __004ACFC3h
			XOR EAX, EAX
			MOV AL, 3
			JMP __004ACFC5h
__004ACFC3h:
			XOR EAX, EAX
__004ACFC5h:
			MOV [ESI+74h], EAX
			MOV EAX, [004CCD54h]
			MOV EAX, [EAX]
			MOV EDX, [ESI-70h]
			CALL PROC__004820E0h
			MOV EDI, EAX
			MOV EAX, [EDI+10h]
			MOV EDX, [ESI+6Ch]
			CALL PROC__004048E8h
			JNE __004AD003h
			MOV EAX, [EDI+14h]
			CMP EAX, [ESI+70h]
			JNE __004AD003h
			CMP BL, BYTE PTR [EDI+18h]
			JNE __004AD003h
			LEA EAX, [ESI+6Ch]
			CALL PROC__004044ECh
			XOR EAX, EAX
			MOV [ESI+70h], EAX
			MOV [ESI+74h], EAX
__004AD003h:
			POP EDI
			POP ESI
			POP EBX
			POP ECX
			POP EBP
			RET 0004h
PROC__004B6EF0h:
			PUSH EBP
			MOV EBP, ESP
			PUSH ECX
			PUSH EBX
			PUSH ESI
			PUSH EDI
			PUSH ECX
			PUSH EAX
			PUSH EDX
			MOV EAX, [004CDC7Ch]
			MOV EAX, [EAX]
			MOV EDX, 3331
			CALL PROC__0048B398h
			CMP EAX, 0
			JE __004B6F38h
			MOV EDX, [004CDC90h]
			MOV EDX, [EDX]
			MOV EDX, [EDX+08h]
			MOV EDX, [EDX+08h]
			CMP EAX, EDX
			JG __004B6F38h
			CMP EAX, -1
			JL __004B6F38h
			JNE __004B6F2Bh
			XOR EAX, EAX
__004B6F2Bh:
			XCHG EDX, EAX
			POP EAX
			POP EAX
			POP ECX
			MOV [EAX+12Ch], EDX
			NOP
			JMP __004B6F97h
__004B6F38h:
			POP EDX
			POP EAX
			XCHG ESI, EAX
			ADD ESI, 116
			MOV EBX, [EBP+08h]
			LEA EAX, [ESI+6Ch]
			CALL PROC__00404540h
			POP EAX
			MOV [ESI+70h], EAX
			TEST BL, BL
			JE __004B6F57h
			XOR EAX, EAX
			MOV AL, 3
			JMP __004B6F59h
__004B6F57h:
			XOR EAX, EAX
__004B6F59h:
			MOV [ESI+74h], EAX
			MOV EAX, [004CDD54h]
			MOV EAX, [EAX]
			MOV EDX, [ESI-70h]
			CALL PROC__0048154Ch
			MOV EDI, EAX
			MOV EAX, [EDI+10h]
			MOV EDX, [ESI+6Ch]
			CALL PROC__004048E8h
			JNE __004B6F97h
			MOV EAX, [EDI+14h]
			CMP EAX, [ESI+70h]
			JNE __004B6F97h
			CMP BL, BYTE PTR [EDI+18h]
			JNE __004B6F97h
			LEA EAX, [ESI+6Ch]
			CALL PROC__004044ECh
			XOR EAX, EAX
			MOV [ESI+70h], EAX
			MOV [ESI+74h], EAX
__004B6F97h:
			POP EDI
			POP ESI
			POP EBX
			POP ECX
			POP EBP
			RET 0004h
PROC__004ADF08h:
			PUSH EBP
			MOV EBP, ESP
			PUSH ECX
			PUSH EBX
			PUSH ESI
			PUSH EDI
			PUSH ECX
			PUSH EAX
			PUSH EDX
			MOV EAX, [004CDC7Ch]
			MOV EAX, [EAX]
			MOV EDX, 3331
			CALL PROC__0048B354h
			CMP EAX, 0
			JE __004ADF50h
			MOV EDX, [004CDC90h]
			MOV EDX, [EDX]
			MOV EDX, [EDX+08h]
			MOV EDX, [EDX+08h]
			CMP EAX, EDX
			JG __004ADF50h
			CMP EAX, -1
			JL __004ADF50h
			JNE __004ADF43h
			XOR EAX, EAX
__004ADF43h:
			XCHG EDX, EAX
			POP EAX
			POP EAX
			POP ECX
			MOV [EAX+12Ch], EDX
			NOP
			JMP __004ADFAFh
__004ADF50h:
			POP EDX
			POP EAX
			XCHG ESI, EAX
			ADD ESI, 116
			MOV EBX, [EBP+08h]
			LEA EAX, [ESI+6Ch]
			CALL PROC__00404540h
			POP EAX
			MOV [ESI+70h], EAX
			TEST BL, BL
			JE __004ADF6Fh
			XOR EAX, EAX
			MOV AL, 3
			JMP __004ADF71h
__004ADF71h:
			XOR EAX, EAX
__004ADF6Fh:
			MOV [ESI+74h], EAX
			MOV EAX, [004CDD54h]
			MOV EAX, [EAX]
			MOV EDX, [ESI-70h]
			CALL PROC__004821B8h
			MOV EDI, EAX
			MOV EAX, [EDI+10h]
			MOV EDX, [ESI+6Ch]
			CALL PROC__004048E8h
			JNE __004ADFAFh
			MOV EAX, [EDI+14h]
			CMP EAX, [ESI+70h]
			JNE __004ADFAFh
			CMP BL, BYTE PTR [EDI+18h]
			JNE __004ADFAFh
			LEA EAX, [ESI+6Ch]
			CALL PROC__004044ECh
			XOR EAX, EAX
			MOV [ESI+70h], EAX
			MOV [ESI+74h], EAX
__004ADFAFh:
			POP EDI
			POP ESI
			POP EBX
			POP ECX
			POP EBP
			RET 0004h

Bytes

55 8BEC 51 53 56 57 51 50 52 A1AC2D4C00 8B00 BA030D0000 E8350AFEFF
83F800 7428 8B15C02D4C00 8B12 8B5208 8B5208 39D0 7F16
83F8FF 7C11
7502
33C0 92 58 58 59 89902C010000 90 EB5F
5A 58 96 83C630 8B5D08 8D466C E8DFEEF5FF
58 894670 84DB 7406
33C0 B003 EB02
33C0 894674 A1882E4C00 8B00 8B56D4 E8E17AFDFF
89C7 8B4710 8B566C E858F2F5FF
751D
8B4714 3B4670 7515
3A5F18 7510
8D466C E845EEF5FF
33C0 894670 894674 5F 5E 5B 59 5D C20400
55 8BEC 51 53 56 57 51 50 52 A1945A4C00 8B00 BA030D0000 E89565FDFF
83F800 7428 8B15A85A4C00 8B12 8B5208 8B5208 39D0 7F16
83F8FF 7C11
7502
33C0 92 58 58 59 89902C010000 90 EB5F
5A 58 96 83C674 8B5D08 8D466C E81347F5FF
58 894670 84DB 7406
33C0 B003 EB02
33C0 894674 A1705B4C00 8B00 8B5690 E8C5C8FCFF
89C7 8B4710 8B566C E88C4AF5FF
751D
8B4714 3B4670 7515
3A5F18 7510
8D466C E87946F5FF
33C0 894670 894674 5F 5E 5B 59 5D C20400
55 8BEC 51 53 56 57 51 50 52 A17CCC4C00 8B00 BA030D0000 E851E2FDFF
83F800 7428 8B1590CC4C00 8B12 8B5208 8B5208 39D0 7F16
83F8FF 7C11
7502
33C0 92 58 58 59 89902C010000 90 EB5F
5A 58 96 83C674 8B5D08 8D466C E88B75F5FF
58 894670 84DB 7406
33C0 B003 EB02
33C0 894674 A154CD4C00 8B00 8B5690 E80951FDFF
89C7 8B4710 8B566C E80479F5FF
751D
8B4714 3B4670 7515
3A5F18 7510
8D466C E8F174F5FF
33C0 894670 894674 5F 5E 5B 59 5D C20400
55 8BEC 51 53 56 57 51 50 52 A17CDC4C00 8B00 BA030D0000 E88D44FDFF
83F800 7428 8B1590DC4C00 8B12 8B5208 8B5208 39D0 7F16
83F8FF 7C11
7502
33C0 92 58 58 59 89902C010000 90 EB5F
5A 58 96 83C674 8B5D08 8D466C E8F7D5F4FF
58 894670 84DB 7406
33C0 B003 EB02
33C0 894674 A154DD4C00 8B00 8B5690 E8E1A5FCFF
89C7 8B4710 8B566C E870D9F4FF
751D
8B4714 3B4670 7515
3A5F18 7510
8D466C E85DD5F4FF
33C0 894670 894674 5F 5E 5B 59 5D C20400
55 8BEC 51 53 56 57 51 50 52 A17CDC4C00 8B00 BA030D0000 E831D4FDFF
83F800 7428 8B1590DC4C00 8B12 8B5208 8B5208 39D0 7F16
83F8FF 7C11
7502
33C0 92 58 58 59 89902C010000 90 EB5F
5A 58 96 83C674 8B5D08 8D466C E8DF65F5FF
58 894670 84DB 7406
33C0 B003 EB02
33C0 894674 A154DD4C00 8B00 8B5690 E83542FDFF
89C7 8B4710 8B566C E85869F5FF
751D
8B4714 3B4670 7515
3A5F18 7510
8D466C E84565F5FF
33C0 894670 894674 5F 5E 5B 59 5D C20400