• 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.
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • 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.

[Other] Specials

Danny0317

Fluorite's back, brah
  • 1,066
    Posts
    11
    Years
    • Age 25
    • Seen Nov 19, 2023
    Well, since the scripting thread got sadly removed, I guess I'll have to ask here :)

    I'm planning to add a script in which someone checks if you have a specific Pokemon in your party, in this case Sneasel. I looked through this (https://www.pokecommunity.com/threads/184273) and found this: "17c checks for a pokemon species in the party. pokemon number wanted is stored in 0x8004, returns to given variable 0x1 if there is one." So I'm just wondering how this would work, I have no idea how to do this type of special script. Also, since this is the beginner's lounge I guess questions about specials would go here, I guess..
     
    So I extracted a script from my hack. It checks if Cubone is in the party.

    Code:
    [B]setvar 0x8004 [COLOR=Red]0x68[/COLOR]
    special2 LASTRESULT 0x17C
    compare LASTRESULT 0x1
    if 0x1 goto @yescubone[/B]
    First you set the variable 0x8004 and value to the Pokemon you want the script to check for. As it appears in my script, it sets 0x8004 with a value of 0x68. 0x68 is Cubone's number, so for your purpose, change it to Sneasel's number. The magic is in the second line. Given what you have provided, you probably will understand it. The third and fourth line are for directing the script; in my case, it will go to @yescubone if and only if the player has Cubone in his/her party.

    EDIT:
    Now that I have looked at it better, setvar 0x8004 0x(Pokemon number here) stores the Pokemon you want 0x17C to check. Special2 LASTRESULT 0x17C does the checking -- it checks what value you have stored in 0x8004. The last two commands are pretty self-explanatory, I think. Hope this helps.
     
    Last edited:
    I have been searching the threads and found this one which is fairy recent. I was looking for a comprehensive list of specials for FR/LG and their hex code as well as a description of what is stored there.

    I know XSE comes with a Help Guide and an Appendix section with FR/LG specials but there are so many unknowns (0x0 - 0x1BB). Anyone know where I can look to find out what these specials call within the rom. Looking through other Rom-hacks in XSE I see so many scripts that confidently use special 0x??? but I get stuck on these lines of code and don't understand what they are referencing to.

    Debugging could take forever so if anyone knows of a list or reference it would be nice of you to share it. I know many people would appreciate it. Thanks.
     
    I have been searching the threads and found this one which is fairy recent. I was looking for a comprehensive list of specials for FR/LG and their hex code as well as a description of what is stored there.

    I know XSE comes with a Help Guide and an Appendix section with FR/LG specials but there are so many unknowns (0x0 - 0x1BB). Anyone know where I can look to find out what these specials call within the rom. Looking through other Rom-hacks in XSE I see so many scripts that confidently use special 0x??? but I get stuck on these lines of code and don't understand what they are referencing to.

    Debugging could take forever so if anyone knows of a list or reference it would be nice of you to share it. I know many people would appreciate it. Thanks.

    https://www.pokecommunity.com/threads/184273 I think this is what you're looking for.
     
    Sweet! Thanks a lot. I'm getting pretty comfortable with reading and writing script and this is going to really give me a boost in the motivation and inspiration categories as far as hacking goes. Very cool stuff:)
     
    Those special ASMs are really useful. I managed to hack the table and add my own codes :3
     
    Back
    Top