The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other Getting Pokemon Names

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 12th, 2016 (4:52 AM).
matharoo's Avatar
matharoo matharoo is offline
💜 We are Love, Love are we 💜
 
Join Date: Dec 2015
Location: Gaia
Age: 24
Gender: Male
Nature: Calm
Posts: 31
I want someone to say certain things depending on the starter you chose. Suppose if you chose charmander, someone would talk about charmander. Is this possible? How can I do that?
__________________
"Pokemon is booring!!" -Boringperson
matharoo used Mega Punch
Boringperson fainted.
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old January 12th, 2016 (7:49 AM).
Spherical Ice's Avatar
Spherical Ice Spherical Ice is online now
 
Join Date: Nov 2007
Location: Leicester, UK
Age: 25
Posts: 5,251
bufferpartypokemon would be the command you'd want to use, presuming you're using XSE.
__________________
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old January 12th, 2016 (7:23 PM).
Vendily's Avatar
Vendily Vendily is offline
 
Join Date: Aug 2015
Nature: Calm
Posts: 1,604
Quote:
Originally Posted by matharoo View Post
I want someone to say certain things depending on the starter you chose. Suppose if you chose charmander, someone would talk about charmander. Is this possible? How can I do that?
The chosen starter is stored in var 0x4031, according to this.
0x0 is grass, 0x1 is water, 0x2 is fire.
__________________
| VPP Stats

Common Errors (and How to Fix Them) in Essentials
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old January 13th, 2016 (12:07 AM).
matharoo's Avatar
matharoo matharoo is offline
💜 We are Love, Love are we 💜
 
Join Date: Dec 2015
Location: Gaia
Age: 24
Gender: Male
Nature: Calm
Posts: 31
Thank you. I'll try it. :)
__________________
"Pokemon is booring!!" -Boringperson
matharoo used Mega Punch
Boringperson fainted.
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old January 13th, 2016 (12:26 AM).
matharoo's Avatar
matharoo matharoo is offline
💜 We are Love, Love are we 💜
 
Join Date: Dec 2015
Location: Gaia
Age: 24
Gender: Male
Nature: Calm
Posts: 31
I changed my mind and now I wanted to get the name of the first Pokémon in the party. And, bufferfirstpokemon worked perfectly. :)
__________________
"Pokemon is booring!!" -Boringperson
matharoo used Mega Punch
Boringperson fainted.
Reply With Quote
  #6   Link to this post, but load the entire thread.  
Old January 14th, 2016 (10:52 PM).
Le pug's Avatar
Le pug Le pug is offline
Creator of Pokémon: Discovery / Fat Kid
 
Join Date: Aug 2013
Location: Le bed
Age: 30
Gender: Male
Nature: Bold
Posts: 870
Quote:
Originally Posted by matharoo View Post
I changed my mind and now I wanted to get the name of the first Pokémon in the party. And, bufferfirstpokemon worked perfectly. :)
There is also the setflag method as well ... if someone chose charmander for example, you could have it setflag 0xFlag1, squirtle then setflag 0xFlag2, etc
and then for any script you want it to talk about your pokemon, just have three checkflags at the beginning of your script...

#org @event
checkflag 0xflag1
if 0x1 goto @charmander
checkflag 0xflag2
if 0x1 goto @squirtle
checkflag 0xflag3
if 0x1 goto @salad
release
end

Just in case you wanted another method for it :P
__________________
Retired. Thank you guys for a wonderful five years.
Reply With Quote
  #7   Link to this post, but load the entire thread.  
Old January 14th, 2016 (11:38 PM).
matharoo's Avatar
matharoo matharoo is offline
💜 We are Love, Love are we 💜
 
Join Date: Dec 2015
Location: Gaia
Age: 24
Gender: Male
Nature: Calm
Posts: 31
Right, Le pug.
But, like you used flag 0xflag1, can we use flags in this way?? By putting names? I thought we could just use flags like 0x204 so I'd use it that way. If we can do it the name way, that's good. Thanks. :D
__________________
"Pokemon is booring!!" -Boringperson
matharoo used Mega Punch
Boringperson fainted.
Reply With Quote
  #8   Link to this post, but load the entire thread.  
Old January 15th, 2016 (8:53 AM).
Le pug's Avatar
Le pug Le pug is offline
Creator of Pokémon: Discovery / Fat Kid
 
Join Date: Aug 2013
Location: Le bed
Age: 30
Gender: Male
Nature: Bold
Posts: 870
Quote:
Originally Posted by matharoo View Post
Right, Le pug.
But, like you used flag 0xflag1, can we use flags in this way?? By putting names? I thought we could just use flags like 0x204 so I'd use it that way. If we can do it the name way, that's good. Thanks. :D
No, it's numbers only. I'm assuming you're hacking FR so the safe flags to use are 0x200 - 0x2FF. You can however expand the amount of flags to use, as well as more vars, by adding this ASM routine to your hack: click me
__________________
Retired. Thank you guys for a wonderful five years.
Reply With Quote
  #9   Link to this post, but load the entire thread.  
Old January 15th, 2016 (9:39 AM).
Mana's Avatar
Mana Mana is offline
 
Join Date: Jan 2009
Location: UK
Age: 31
Gender: Male
Posts: 10,075
Due to the limited number of flags, using a variable is much more efficient for anything that has multiple values (rather than on/off). No need to expand then.
__________________
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.