The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script EV Script

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 June 28th, 2017 (12:30 PM).
6IVMagikarp 6IVMagikarp is offline
 
Join Date: Jun 2017
Location: Found wherever Old Rod is.
Posts: 10
I would like to know if there is a way to write a script for an NPC in which he/she can give your Pokemon a set amount of EVs in one of their stats each time you talk to them. I also would like to know if there was a script to have an NPC reset your Pokemon's EVs when you talk to them. Would help greatly if someone can enlighten me on this! Thanks!
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old June 28th, 2017 (10:04 PM).
Sakib66's Avatar
Sakib66 Sakib66 is offline
 
Join Date: Jan 2017
Gender: Male
Nature: Adamant
Posts: 196
Jpan's hacked Engine might help u there ( I'm not sure though so backup your ROM)
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old June 28th, 2017 (10:52 PM).
AkameTheBulbasaur's Avatar
AkameTheBulbasaur AkameTheBulbasaur is offline
Akame Marukawa of Iyotono
 
Join Date: May 2013
Location: A place :D
Age: 25
Gender: Male
Nature: Docile
Posts: 408
Hi again 6IV Magikarp! The scripts I showed you here will work for NPCs too since they are just normal scripts. You might have to edit them to a bit (like adding a yes/no message before selecting a Pokémon for example) but they will work just fine.

If you use JPAN's engine you can both read and edit IVs and EVs. Editing IVs is easy because you just set the new value when you do the special.

EVs are different in that you actually add or subtract from the original value. It doesn't have any kind of checks to make sure that you don't go below zero or above 252 EVs so you have to add those. You also have to have another check when adding EVs to make sure you don't go above 510 EVs total.

Unless you want to make the game completely broken. I won't judge.

Okay maybe I will a little XD

Okay back to being serious. I recommend using the tool (if you can) for using JPAN's engine because from what I've seen the patch has some problems, plus with the tool you can pick and choose what you want to put in (so you don't waste space with specials you won't use). I think somebody re uploaded it after all the attachments on Pokecommunity stopped working, but I don't know where it is.
__________________
"The human sacrificed himself, to save the Pokemon. I pitted them against each other, but not until they set aside their differences did I see the true power they all share deep inside. I see now that the circumstances of one's birth are irrelevant; it is what you do with the gift of life that determines who you are." -Mewtwo
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old June 28th, 2017 (11:40 PM).
6IVMagikarp 6IVMagikarp is offline
 
Join Date: Jun 2017
Location: Found wherever Old Rod is.
Posts: 10
Thank you guys so much for the help! I really like the features of the tool, but I'm still trying to learn how to implement all of this into my ROM. Writing the script seems a bit confusing tbh. I guess I'll just trial and error this until I get it right. I'm getting pretty close to how I want my ROM hack thanks to everyone's information and feedback throughout the forum. If I can get this right, next I'm going to learn how to expand the TM table so it matches the current TM table of Gen 6. Sigh it's all so confusing but I think I just need to keep at it. Thank you for the help though guys. I will probably end up asking for more help since I'm such a noob at this.
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:18 AM.