Main Menu
Main Page
Forums
New pages
Recent changes
Random page
Help

Glitches
Arbitrary code execution
Pokémon cloning
Pomeg glitch and Glitzer Popping
Tweaking and voiding
Glitches by generation
Glitch categories

References/Resources
Databases
Disassembly projects
The Big HEX List
Pokémon cheat codes
Pokémon glitch terminology
Useful tools
More

Affiliates
Legendary Star Blob 2 (Hakuda) (日本語/Japanese)
Pokémon Speedruns wiki (English)
PRAMA Initiative (Français/French)
MissingNo. Glitch City (Italiano/Italian)
Become an affiliate!

Technical
Site source code

Search Wiki

 

Search Forums

 

Author Topic: Setting all ailments in-battle  (Read 478 times)

0 Members and 1 Guest are viewing this topic.

Parzival

  • Buyer beware: House comes with 3 free skeletons in a closet of your choice.
  • GCLF Member
  • *
  • Offline Offline
  • Gender: Male
  • This box intentionally left blank. ...wait...
    • View Profile
    • (null)
Setting all ailments in-battle
« on: April 26, 2017, 05:04:08 pm »
So, just to get acquainted with 8F, I made a small script to set the CPU Ailment byte to FF, because why not. I don't think anyone will be interested, but just in case, here you go.
Code: [Select]
ld a,$FF;
ld [$CFE9],a;
ret;
In items, that'd be
Code: [Select]
Lemonade x255
TM34 x233
TM07 x201
I screwed everything up with one of my earlier tries, which was
Code: [Select]
push af;
ld a,$FF;
ld [$CFE9],a;
pop af;
ret;
I landed at 03:0573, which is an invalid opcode. I don't know what happened before that, because I can't find a way to press a button for one frame while in the BGB debugger.


Ask me about betrayal.
Ask me about depression.
Ask me about death.
Ask me about destruction.
Ask me about hardship.
I've been through s**t.
If you need to talk to someone, my PM inbox is always open.

ISSOtm

  • The French Lord of Laziness (and a huge The Legend Of Zelda fan)
  • Staff
  • *****
  • Offline Offline
  • Gender: Male
  • Pewter City (B)rocks !
    • View Profile
    • My Little Website
Re: Setting all ailments in-battle
« Reply #1 on: April 26, 2017, 05:28:16 pm »
Use the "Joypad" window.
"THOU SHALL NOT PASS !!"  RIVAL's effect, Gandalf.

Proudly glitching Pokémon Red and Yellow on a Black & White GB, Pocket GB, GB Color, GBA SP and new 3DS.

My Twitter (beware, I'm French)
My YouTube (same warning)

Here is an online tool to build 8F setups : GBz80 to Items !

They see me layzin', they ha-tin'...
Heavy contributor of the global augmentation of entropy (my room's is too damn high !)