The PokéCommunity Forums Fan Games ROM Hacking
Script Having Set IVs/Natures/etc. on Gift Pokemon

ROM Hacking Need a helping hand? You can get help on any ROM Hacking-related problems or questions you have here.

Reply
 
Thread Tools
  #1    
Old 1 Week Ago (1:52 AM). Edited 2 Days Ago by KrustyKong.
KrustyKong's Avatar
KrustyKong KrustyKong is offline
     
    Join Date: Feb 2016
    Location: California
    Age: 22
    Gender: Male
    Posts: 73
    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.
    Reply With Quote
      #2    
    Old 6 Days Ago (11:24 AM).
    struedelmuffin1 struedelmuffin1 is offline
       
      Join Date: Sep 2017
      Posts: 100
      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.
      Reply With Quote
        #3    
      Old 2 Days Ago (2:37 PM). Edited 2 Days Ago by KrustyKong.
      KrustyKong's Avatar
      KrustyKong KrustyKong is offline
         
        Join Date: Feb 2016
        Location: California
        Age: 22
        Gender: Male
        Posts: 73
        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
        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
        Thread Tools

        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 10:11 AM.