Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2016-08-06 14:47:48

Zlew
New member
Registered: 2013-09-14
Post 6/8

Post-HoF events in RBY

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)

Offline

#2 2016-08-06 16:59:35

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 3,361/3,455

Re: Post-HoF events in RBY

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)

Offline

#3 2016-08-06 18:43:11

Zlew
New member
Registered: 2013-09-14
Post 7/8

Re: Post-HoF events in RBY

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?

Offline

#4 2016-08-06 20:29:17

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 3,362/3,455

Re: Post-HoF events in RBY

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.

Offline

Board footer

Powered by FluxBB