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

[Script] What does #org do?

  • 46
    Posts
    10
    Years
    • Seen Nov 6, 2024
    I ask because I found many tutorials that explain how to make a script, but don't break down the types piece by piece. this includes DiegoIsAwesome's tutorial, tajaros' script, and a few others around the internet.

    I have a feeling that it starts the script, but I want to make doubly sure.

    And for this statement:

    #org 0x2202E4

    It starts the script for 0x2202E4?

    So, basically, you can predifine 0x2202E4 by using the org script? So, if I want to make a new offset, I would just input #org 0x530408?

    Thank you.
     
    Yeah, you've pretty much got it.

    #org = the beginning of a new offset in a script.
    @start = the name of your offset.

    It's a lot easier to name your offsets with @. So, when writing a simple script, the starting #org line would typically look like this:

    Spoiler:

    You can name the '@start' and '@1' to anything you like of course.

    Hope this clears up any confusion.
     
    Back
    Top