Users browsing this thread: 10 Guest(s)
Pony Fantasy VI Remake
There are two ways (and more but I'll stick to the main two).
this is an example:
Command DE will set some event bit proper to each character. They are the following. In this example a check for $1A9 is made (Setzer bit), if it's clear (character not present) there is a return, otherwise the event with Setzer in it will play.
But in your case what would be better is this:
Just check with a hex editor and you'll get it. Once again it's command DE but the command after ($BE) check if shadow is in the party. You can check multiple bits with $BE but there always will be only one branching. Here $CA5A90 is the event without Shadow. $CAD9FC is his farewell at Barren Falls.
Edit: A solution to check if Shadow is alone is using technique A and check if all bits except his are cleared. You could do that with two C8 commands (numerous conditional "and" one in another one).
this is an example:
Code:
CA/3F91: DE Load CaseWord with the characters in the currently active party?
CA/3F92: C0 If ($1E80($1A9) [$1EB5, bit 1] is clear), branch to $CA5EB3 (simply returns)
CA/3F98: B2 Call subroutine $CAC6AC
Command DE will set some event bit proper to each character. They are the following. In this example a check for $1A9 is made (Setzer bit), if it's clear (character not present) there is a return, otherwise the event with Setzer in it will play.
Code:
1A0 B4:0 Multipurpose, Terra-related bit; CaseWord bit 0
1A1 B4:1 Multipurpose, Locke-related bit; CaseWord bit 1
1A2 B4:2 Multipurpose, Cyan-related bit; CaseWord bit 2
1A3 B4:3 Multipurpose, Shadow-related bit; CaseWord bit 3
1A4 B4:4 Multipurpose, Edgar-related bit
1A5 B4:5 Multipurpose, Sabin-related bit
1A6 B4:6 Multipurpose, Celes-related bit
1A7 B4:7 Multipurpose, Strago-related bit
1A8 B5:0 Multipurpose, Relm-related bit
1A9 B5:1 Multipurpose, Setzer-related bit
1AA B5:2 Multipurpose, Mog-related bit
1AB B5:3 Multipurpose, Gau-related bit
1AC B5:4 Multipurpose, Gogo-related bit
1AD B5:5 Multipurpose, Umaro-related bit
1AE B5:6 Multipurpose, actor 14-related bit
1AF B5:7 Multipurpose, actor 15-related bit
But in your case what would be better is this:
Code:
CA/5A8A: DE Load CaseWord with the characters in the currently active party?
CA/5A8B: BE If character $03 (SHADOW) is in the current CaseWord, call subroutine $CAD9FC
CA/5A90: B2 Call subroutine $CA5ABE
Just check with a hex editor and you'll get it. Once again it's command DE but the command after ($BE) check if shadow is in the party. You can check multiple bits with $BE but there always will be only one branching. Here $CA5A90 is the event without Shadow. $CAD9FC is his farewell at Barren Falls.
Edit: A solution to check if Shadow is alone is using technique A and check if all bits except his are cleared. You could do that with two C8 commands (numerous conditional "and" one in another one).
« Next Oldest | Next Newest »
Users browsing this thread: 10 Guest(s)