• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

(SOLVED) Help setting EVs through a script

  • 2
    Posts
    1
    Years
    • Seen Apr 25, 2024
    I'm trying to use this post from the simple modifications: https://www.pokecommunity.com/threads/simple-modifications-directory.416647/post-10162417
    but I'm getting an error when making the ROM that says it's an undefined reference to 'SetEVs'.

    I'm using poryscript and doing call(SetEVs) but can't figure out why it doesn't recognize the new script in event_scripts.s

    Edit: some weird formatting error happened that changed the spelling and its fixed now
     
    Last edited:
    I'm trying to use this post from the simple modifications: https://www.pokecommunity.com/threads/simple-modifications-directory.416647/post-10162417
    but I'm getting an error when making the ROM that says it's an undefined reference to 'SetEVs'.

    I'm using poryscript and doing call(SetEVs) but can't figure out why it doesn't recognize the new script in event_scripts.s

    Edit: some weird formatting error happened that changed the spelling and its fixed now
    You can't use Poryscript's own syntax in a file like data/event_scripts.s, which is not a .pory file.
    What you can do is to make a new "event_scripts.pory" file inside your project's data folder, and then .include the .inc version of that file inside event_scripts.s.

    In other words, you'll want to do something like dropping in a .include "data/scripts/event_scripts.inc" in data/event_scripts.s and then make a new data/scripts/event_scripts.pory file to put general or common Poryscript-syntax overworld scripts in. The .inc file will be generated from the .pory automatically, like it happens with the rest of the .pory files.
     
    You can't use Poryscript's own syntax in a file like data/event_scripts.s, which is not a .pory file.
    What you can do is to make a new "event_scripts.pory" file inside your project's data folder, and then .include the .inc version of that file inside event_scripts.s.

    In other words, you'll want to do something like dropping in a .include "data/scripts/event_scripts.inc" in data/event_scripts.s and then make a new data/scripts/event_scripts.pory file to put general or common Poryscript-syntax overworld scripts in. The .inc file will be generated from the .pory automatically, like it happens with the rest of the .pory files.
    I was using poryscript in a specific map script and doing the call to SetEVs (located in data/event_scripts.s ) . When I was copying the name SetEVs into the map script it somehow changed the formatting and caused it to not recognize it. I changed the spelling and it works just fine now, but I appreciate your help!
     
    Back
    Top