I'm trying to add a condition that loads one of two sets of data based on a memory value, and the new routine is working inconsistently. It also screws up the number of cats in Crono's room, and freezes with an orange screen when you talk to one of those cats. I've attached the patch I have so far.

This is my new code, which applies to Frog and Lucca.

`Disassembly:`

$C0/E846 E2 20 SEP #$20 A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envMxdizC HC:1132 VC:049 00 FL:58

$C0/E848 5A PHY A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envMxdizC HC:1138 VC:049 00 FL:58

$C0/E849 DA PHX A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envMxdizC HC:1144 VC:049 00 FL:58

$C0/E84A A9 7F LDA #$7F A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envMxdizC HC:1150 VC:049 00 FL:58

$C0/E84C 48 PHA A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envMxdizC HC:1156 VC:049 00 FL:58

$C0/E84D AB PLB A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envMxdizC HC:1162 VC:049 00 FL:58

$C0/E84E E0 40 6B CPX #$6B40 A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envMxdizC HC:1168 VC:049 00 FL:58

$C0/E851 B0 08 BCS $08 [$E85B] A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envMxdizC HC:1174 VC:049 00 FL:58

$C0/E853 AF 80 28 7E LDA $7E2880[$7E:2880] A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envMxdizC HC:1180 VC:049 00 FL:58

$C0/E857 C9 01 CMP #$01 A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envMxdizC HC:1186 VC:049 00 FL:58

$C0/E859 B0 1E BCS $1E [$E879] A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envMxdizC HC:1192 VC:049 00 FL:58

$C0/E85B C2 20 REP #$20 A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envMxdizC HC:1204 VC:049 00 FL:58

$C0/E85D A9 00 00 LDA #$0000 A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envmxdizC HC:1210 VC:049 00 FL:58

$C0/E860 48 PHA A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envmxdizC HC:1216 VC:049 00 FL:58

$C0/E861 BF 00 00 D3 LDA $D30000,x[$D3:6B40] A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envmxdizC HC:1222 VC:049 00 FL:58

$C0/E865 99 00 00 STA $0000,y[$7F:3820] A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envmxdizC HC:1228 VC:049 00 FL:58

$C0/E868 68 PLA A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envmxdizC HC:1234 VC:049 00 FL:58

$C0/E869 1A INC A A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envmxdizC HC:1240 VC:049 00 FL:58

$C0/E86A 1A INC A A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envmxdizC HC:1246 VC:049 00 FL:58

$C0/E86B E8 INX A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envmxdizC HC:1252 VC:049 00 FL:58

$C0/E86C E8 INX A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envmxdizC HC:1258 VC:049 00 FL:58

$C0/E86D C8 INY A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envmxdizC HC:1264 VC:049 00 FL:58

$C0/E86E C8 INY A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envmxdizC HC:1270 VC:049 00 FL:58

$C0/E86F C9 20 00 CMP #$0020 A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envmxdizC HC:1276 VC:049 00 FL:58

$C0/E872 90 EC BCC $EC [$E860] A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envmxdizC HC:1282 VC:049 00 FL:58

$C0/E874 80 17 BRA $17 [$E88D] A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envmxdizC HC:1288 VC:049 00 FL:58

$C0/E876 A9 00 00 LDA #$0000 A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envmxdizC HC:1294 VC:049 00 FL:58

$C0/E879 48 PHA A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envmxdizC HC:1300 VC:049 00 FL:58

$C0/E87A BF 00 00 D3 LDA $D30000,x[$D3:6B40] A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envmxdizC HC:1306 VC:049 00 FL:58

$C0/E87E 99 00 00 STA $0000,y[$7F:3820] A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envmxdizC HC:1312 VC:049 00 FL:58

$C0/E881 68 PLA A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envmxdizC HC:1318 VC:049 00 FL:58

$C0/E882 1A INC A A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envmxdizC HC:1324 VC:049 00 FL:58

$C0/E883 1A INC A A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envmxdizC HC:1330 VC:049 00 FL:58

$C0/E884 E8 INX A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envmxdizC HC:1336 VC:049 00 FL:58

$C0/E885 E8 INX A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envmxdizC HC:1342 VC:049 00 FL:58

$C0/E886 C8 INY A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envmxdizC HC:1348 VC:049 00 FL:58

$C0/E887 C8 INY A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envmxdizC HC:1354 VC:049 00 FL:58

$C0/E888 C9 20 00 CMP #$0020 A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envmxdizC HC:1360 VC:049 00 FL:58

$C0/E88B 90 EC BCC $EC [$E879] A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envmxdizC HC:1366 VC:049 00 FL:58

$C0/E88D 7A PLY A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envmxdizC HC:1372 VC:049 00 FL:58

$C0/E88E FA PLX A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envmxdizC HC:1378 VC:049 00 FL:58

$C0/E88F AB PLB A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envmxdizC HC:1384 VC:049 00 FL:58

$C0/E890 98 TYA A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envmxdizC HC:1390 VC:049 00 FL:58

$C0/E891 18 CLC A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envmxdizC HC:1396 VC:049 00 FL:58

$C0/E892 69 20 00 ADC #$0020 A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envmxdizC HC:1402 VC:049 00 FL:58

$C0/E895 8D 81 21 STA $2181 [$7F:2181] A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envmxdizC HC:1408 VC:049 00 FL:58

$C0/E898 A4 C5 LDY $C5 [$00:01C5] A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envmxdizC HC:1414 VC:049 00 FL:58

$C0/E89A 60 RTS A:6B7F X:6B40 Y:3820 D:0100 DB:7F S:06F6 P:envmxdizC HC:1420 VC:049 00 FL:58