• 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.

Creating a special function that simply sets STR_VAR_1?

Kubes

Kubes
  • 6
    Posts
    7
    Years
    If anyone knows any good references for working with disassembled ROMs in C, it would be greatly appreciated!
    I wanted to initially only use PoryScript, but I've found myself tempted with C, but am not finding many resources.
    Right now, I am trying to get a custom special function that takes a byte as a parameter working. So far I have it compiling (when not referenced in a script)... now onto the working part :P

    Spoiler:


    Edit1: One thing...

    I hadn't added my script to ".rodata:" in "ld_script.txt"

    -fixed- But, now my string comes out as gibberish :/

    Edit2:
    Changed script to:
    Spoiler:

    Fixed gibberish.

    Edit 3:
    And today, success!

    kubes_notspecial_test(x) will set string buffer x to a specific value! My main issue was that I was trying to make it a special function.

    Spoiler:
     
    Last edited:
    Back
    Top