Glitch City Laboratories Archives

Glitch City Laboratories closed on 1 September 2020 (announcement). This is an archived copy of a thread from Glitch City Laboratories Forums.

You can join Glitch City Research Institute to ask questions or discuss current developments.

You may also download the archive of this forum in .tar.gz, .sql.gz, or .sqlite.gz formats.

Arbitrary Code Execution Discussion

Is there a way to encounter glitch trainers with ACE? - Page 1

Is there a way to encounter glitch trainers with ACE?

Posted by: iTNZ
Date: 2020-02-04 16:53:20
Just the title. Just like the alternative catch em all code is there a way to encounter glitch trainers with ace? Thanks.

Re: Is there a way to encounter glitch trainers with ACE?

Posted by: CasualPokePlayer
Date: 2020-02-04 20:46:10
Certainly, it'd just require changing wCurOpponent to the fight you want to do. It'd take a fairly small payload.

ld a,xx ; xx is the fight you want, check the big hex list for the one you want
ld (d059),a ; d059 = wCurOpponent
ret


Assuming you are using items for the payload, this would be simply using these items:

Lemonade x(Fight you want)
TM34 x89
TM08 x201


EDIT: I forgot little endian existed for a moment lol

Re: Is there a way to encounter glitch trainers with ACE?

Posted by: iTNZ
Date: 2020-02-04 21:21:18
Thanks man! Appreciate it.