Users browsing this thread: 5 Guest(s)
Pony Fantasy VI Remake
07-31-2017, 12:54 AM
(07-30-2017, 08:25 PM)DrakeyC Wrote: On a separate note, how do AI scripts handle targeting with the line "Wait until the attack sequence is called upon again, then continue (reset targeting)." Because I have had multiple reports throughout the project of monsters attacking themselves and it usually traces back to this line, I have to specify "use normal targeting" afterward to get them to hit the party.
All what command $FD does is this. Basically it takes the script position in $F0-$F1 and transfer it in $F2-$F3. The only time $F2 is used is in the case of a $FC command, then $F2-$F3 is put back in $F0-$F1, see $C21AC9. It probably doesn't answer your question directly but a corruption of one of the two register would give false script position (in case of a $FC command?) then the monster would execute random AI code.
Code:
Command Script #$FD
C2/1A74: C2 20 REP #$20 (Set 16-bit Accumulator)
C2/1A76: A5 F0 LDA $F0
C2/1A78: 85 F2 STA $F2
C2/1A7A: 60 RTS
« Next Oldest | Next Newest »
Users browsing this thread: 5 Guest(s)