You are not logged in.
I was wondering if such thing would be possible.
The game would first check if there is HoF data in the savefile
on negative it would just return
on positive it would enable some event (like a trainer to battle in a specific area)
Sure, it's possible. An easy way to do it is to have your script do something like this:
ld a, [wNumHoFTeams] and a ret z ; return if no Hall of Fame teams ; stuff goes here ; for whatever ; you want it to do ; if you have beaten the E4
Last edited by Mateo (2016-08-06 16:59:52)
I did not expect it to be that simple, cheers!
On a second thought, what code would be use to check for, let's say, if Mewtwo was caught instead of HoF record?
You could do basically what I did here with the legendary birds to check for Mewtwo. If you want the event to only check if you battled Mewtwo, you could do what I did and check if Mewtwo was registered as "Seen" in your Pokedex. If you want players to have to catch Mewtwo, not just battle him, for the thing to happen, then you could just check the Caught flags instead of the Seen flags in the same way.