The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other How to give certain Pokémon or Item with condition

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old January 4th, 2016 (2:39 PM). Edited January 7th, 2016 by thedarkdragon11.
thedarkdragon11's Avatar
thedarkdragon11 thedarkdragon11 is offline
New World Pirate
 
Join Date: May 2009
Location: Laugh Tale, New World
Gender: Male
Nature: Hasty
Posts: 518
How to write a script in FR using XSE that will give a certain Pokémon or an item based from one of the following:
  1. the chosen starter
  2. the chosen fossil
  3. the chosen Pokémon in the Fighting Dojo
Thanks!
__________________
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old January 4th, 2016 (4:14 PM). Edited January 4th, 2016 by Vendily.
Vendily's Avatar
Vendily Vendily is offline
 
Join Date: Aug 2015
Nature: Calm
Posts: 1,604
Quote:
Originally Posted by thedarkdragon11 View Post
How to write a script in FR using XSE that will give a certain Pokémon or an item based from one of the following:
  1. the chosen starter
  2. the chosen fossil
  3. the chosen Pokémon in the Fighting Dojo
Thanks!
I don't know about the other two but the chosen starter is stored in var 0x4031, according to this.
0x0 is grass, 0x1 is water, 0x2 is fire.

Edit: You could checkitem for the fossils.
(These are all in decimal)
Root Fossil 286
Claw Fossil 287
Helix Fossil 357
Dome Fossil 358

Sorry for the notification spam.
__________________
| VPP Stats

Common Errors (and How to Fix Them) in Essentials
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old January 4th, 2016 (6:23 PM).
Uncommon's Avatar
Uncommon Uncommon is offline
Oozma Kappa
 
Join Date: Jun 2015
Location: Johto
Nature: Careful
Posts: 192
Quote:
Originally Posted by thedarkdragon11 View Post
...the chosen Pokémon in the Fighting Dojo...
For the Dojo Pokemon, flag 0x278 is set when you get one, but I don’t think any var or flag stores which Pokemon you took. The relevant scripts are at 0x16EC00 and 0x16EC46, you should be able to decompile those in XSE and change them so they store a value in an unused var (or flag) fairly easily.
__________________
My work: HM type-check system hack (FireRed) | Turbo Test patch (FireRed)

Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old January 7th, 2016 (12:27 AM).
thedarkdragon11's Avatar
thedarkdragon11 thedarkdragon11 is offline
New World Pirate
 
Join Date: May 2009
Location: Laugh Tale, New World
Gender: Male
Nature: Hasty
Posts: 518
Thanks for the responses!
__________________
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content

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 -8. The time now is 9:10 AM.