![]() |
Set the nickname of a pokémon to the [player] var?
Hey, this might be a weird request, but I am trying to manually set the nickname of a pokemon to a preset variable (namely the player name) by completely bypassing special 0x9E. Is there any way to do this at all? I'm pretty sure I remember there being a pointer to the playername but I'm not quite sure what that was...
|
Changing a Pokemon's nickname to the player's name is pretty simple to do through copying bytes in the the game's memory and easily be done in XSE. Here's a script that will give the player two Bulbasaurs and change the first one's name to the player's name:
Code:
This script is designed for FireRed but it can be ported over to Emerald like this though I haven't tested it: Code:
|
Thank you so much! This was exactly what I needed!
Quote:
Also, I'm pretty sure I'd have to figure out the size of the party in order to write the nickname to the right one. So my question is, when a pkmn is added to the party, is the size of your party updated directly when givepokemon is called? Or by some other command I have to call or wait to execute before I can run my own logic? Also, what is your source for the pointers of your Pokemon? Is it possible to edit other things as well like nature and gender? If you could provide a link to where you got your data structure info from that would be great! Thanks! EDIT: I found the article on data structures. I'm curious to know how one could prevent bad eggs because the data structures have checksums and if I edit things like nature that might radically change. Or does that only check some things and not the sort of things I'm changing? |
Quote:
Code:
Spoiler:
Quote:
Spoiler:
Quote:
You'd be able to easily change a Pokemon's nature and gender by messing around with the Pokemon's personality value but you'll need to be careful as minor edits can have big changes that a player might notice if they've had the Pokemon before having its data be edited. Quote:
|
Quote:
One more thing though, if I wanted to fake a simple evolution by changing the species ID of the Pokémon to the species of another one, would there be any caveats to using this method, assuming I'm using JPAN's engine? Even better, has a less hacky way to script an evolution been made since this post? Thanks and sorry for being an idiot pleb. |
Quote:
There's literally no reason to apologise and even less to call yourself an idiot pleb. Keep asking as many questions as you want~ |
| All times are GMT -8. The time now is 9:14 AM. |
![]()
© 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.
Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.