PHO - Pokémon Hackers Online
Go Back   PHO - Pokémon Hackers Online > Discussion Board > Archive

Notices

Archive Old threads that serve no purpose are here.

 
 
Thread Tools Display Modes
Old 10th August 2013, 07:22 PM   #1
Gal
Beginner
 
Join Date: Jul 2013
Location: Israel
Posts: 36
Gal
Default [GBA] Wildbattle result checker

Sigh, I am upset about this title. If you have a better title for this, tell me! (no kidding ;-;)


This code is desinged for BPRE 1.0 and not for others.

Okay, let's start.

The "wildbattle result checker" is a command that checks the results of a wildbattle - if you defeated the Pokémon or fled. Example: the Snorlax on FRLG. If you run or or defeat it, the game says
Code:
= SNORLAX calmed  down.\nIt gave a huge yawn[.]\lAnd returned to the mountains
and if you caught it, it won't say anything. Same goes to the Electrodes on Rocket Hideout in Pokémon Golden Sun (romhack). I couldn't figure out doing that checker if you caught the Pokémon, so don't bother me about it. Okay, let's get started...

The script looks like this:

Code:
wildbattle 0x[Species] 0x[Level] 0x[Item held] \wildbattle...?
special2 0x800D 0xB4 \Checks the results of the battle
compare 0x800D 0x1 \Compares if the player defeated the enemy Pokémon
if 0x1 goto @[Defeat pointer]
compare 0x800D 0x4 \Compares if the player fled from the battle
if 0x1 goto @[Fled pointer]
release
end
Unfortunatly, I tried to do that with my music controlling script and it didn't work, so don't bother me about that either.

Enjoy using the code!

- Gal
Gal is offline  
Likes J9794, Pia Carrot liked this post
Sponsored Links
Old 10th August 2013, 08:29 PM   #2
karatekid552
What does this button do?.....
Ex-Staff
 
karatekid552's Avatar
 
Join Date: Feb 2013
Location: Stalker.......
Posts: 229
karatekid552 karatekid552
Default

Game freak actually screwed up their own code in every battle. Here:

Quote:
Originally Posted by JPAN
Special 0B4- after battle, ceratin variables are set. b4 reads them and places on a given variable the status at battle end. *key 0x1 = fainted, 0x7 = captured, 0x4 = escaped*
Or they just didn't key in what happens when something is caught. It is the fact that they use 0x5 in their scripts, when the special never returns 0x5.

Last edited by karatekid552; 10th August 2013 at 08:32 PM.
karatekid552 is offline  
Old 10th August 2013, 08:53 PM   #3
Gal
Beginner
 
Join Date: Jul 2013
Location: Israel
Posts: 36
Gal
Default

Quote:
Originally Posted by karatekid552 View Post
Game freak actually screwed up their own code in every battle. Here:



Or they just didn't key in what happens when something is caught. It is the fact that they use 0x5 in their scripts, when the special never returns 0x5.
0x7...? Wow, I don't think I tested that number. I NEED to check that out!
Gal is offline  
Old 10th August 2013, 09:09 PM   #4
Jisuke
私の陰茎は非常に大きい
Ex-StaffPHO VIP
 
Jisuke's Avatar
 
Join Date: Mar 2013
Location: Brooooo...
Age: 22
Posts: 193
Jisuke Jisuke
Default

Quote:
Originally Posted by karatekid552 View Post
Game freak actually screwed up their own code in every battle. Here:



Or they just didn't key in what happens when something is caught. It is the fact that they use 0x5 in their scripts, when the special never returns 0x5.

Eh, what did I tell you, this guy, this guy!
Jisuke is offline  
Likes karatekid552 liked this post
 

Tags
checker, gba, result, wildbattle, [Document]

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:22 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc. User Alert System provided by Advanced User Tagging (Lite) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Lite) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Pokémon characters and images belong to Pokémon USA, Inc. and Nintendo.
Pokémon Hackers Online (PHO) is in no way affiliated with or endorsed by Nintendo LLC, Creatures, GAMEFREAK inc,
The Pokémon Company, Pokémon USA, Inc., The Pokémon Company International, or Wizards of the Coast.
All forum/site content (unless noted otherwise) and site designs are © 2006-2013 Pokémon Hackers Online (PHO).
Green Charizard Christos TreeckoLv100

"Black 2" by ARTPOP. Kyurem artwork by XOUS.

no new posts