• 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!
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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] How do I script a wild pokemon battle on Pokemon Emerald?

  • 6
    Posts
    10
    Years
    • Seen Nov 9, 2014
    Hello, all. I've been looking for a way to successfully script a wild pokemon battle onto pokemon Emerald, but none of my attempts have worked. I would like to make it so a Snorlax is blocking the doors to the Dewford Gym, and you talk to it like you would a legendary. A battle would initiate, in which you could catch the Snorlax, beat it, or run. All of those would result in the Snorlax disappearing, granting access to the Gym. The Snorlax would not require a PokeFlute.
     
    Hello, all. I've been looking for a way to successfully script a wild pokemon battle onto pokemon Emerald, but none of my attempts have worked. I would like to make it so a Snorlax is blocking the doors to the Dewford Gym, and you talk to it like you would a legendary. A battle would initiate, in which you could catch the Snorlax, beat it, or run. All of those would result in the Snorlax disappearing, granting access to the Gym. The Snorlax would not require a PokeFlute.

    Look at the sudowoodo battle in emerald, and check the commands used. Decompiling that script and understanding it will be the key to doing what it is you're trying to do :D
     
    Here is the script you will need to battle Snorlax:

    #org $script
    lock
    faceplayer
    cry 0xA1 2C
    #raw 0x33
    pause 0x30
    message $cry
    $cry 1 = Snorlax! Snor!
    boxset 6
    wildbattle 2C (Put the number of what level you want here for the level) 0
    pause 0x70
    fadescreen 1
    removesprite 0x800F
    setflag 0x1211
    pause 0x10
    fadescreen 0
    release
    end

    This was made in XSE, and sorry if any parts are Slowpoke
     
    Back
    Top