The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary ROM Hacking (https://www.pokecommunity.com/forumdisplay.php?f=284)
-   -   Script Having Set IVs/Natures/etc. on Gift Pokemon (https://www.pokecommunity.com/showthread.php?t=414320)

KrustyKong October 11th, 2018 1:52 AM

Having Set IVs/Natures/etc. on Gift Pokemon
 
I want to be able to modify gift pokemon with stuff like certain ivs and natures instead of just level and held item. i was reading here that you can use the writebytetooffset command to fight a pokemon thats already damaged. so i was wondering if you could write a script that would instead set the stats to be specific values?

or if anyone has any idea of the basics of the Hyper Trainer they put in Sigma Emerald that would be fine too.

EDIT: it looks like a couple of the new special scripts in Dizzy's Various EM Upgrades are capable of doing this w the ATTR_[STAT]_IV stuff but idk how to write scripts with them.

struedelmuffin1 October 11th, 2018 11:24 AM

You can always try opening Sigma Emerald in Advancemap and looking at the script of the Hyper Trainer in XSE. I learned how to make my Hyper Trainer doing a similar process. For me, it didnt require any ASM so it's likely Sigma Emerald's has no ASM either. Should be able to just copy and repoint the script essentially.

KrustyKong October 15th, 2018 2:37 PM

Got it to work out. had to stare at some of the files in the Various EM upgrades folders for a while but basically, i got it to work for what i wanted to at least. first i just implemented the "Give custom pokemon script" from "new special scripts.txt" and then after that used the template for setting the attributes in that same file, but with their byte values in \src\defines\get_attr.h


All times are GMT -8. The time now is 9:13 AM.


Like our Facebook Page Follow us on Twitter © 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.