• 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!
  • 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 is the script offset for naming a pokemon in emerald

  • 4
    Posts
    3
    Years
    • Seen Aug 2, 2022
    I can't find the script offset for naming a pokemon in emerald.
    I'm using XSE and I think I am using the wrong script offset for a different game.

    #dynamic 0x800000

    #org @start
    checkflag 0x860
    if 0x1 goto @done
    msgbox @1 0x5
    compare LASTRESULT 0x1
    if 0x1 goto @take
    msgbox @2 0x6
    release
    end

    #org @take
    givepokemon 0x17 0x5 0x8B 0x0 0x0 0x0
    fanfare 0x13E
    msgbox @3 0x4
    waitfanfare
    setflag 0x860
    msgbox @4 0x5
    compare LASTRESULT 0x1
    if 0x1 call @name
    msgbox @5 0x6
    release
    end

    #org @name
    call 0x1A74EB
    return

    #org @done
    msgbox @6 0x6
    release
    end

    #org @1
    = Hello.\nSorry to trouble you.\pI can't take care\nof my Ekans.\pCan you take care of\nit for me?

    #org @2
    = That's okay.\pI'm sure someone else will\ntake it.

    #org @3
    = [black_fr]You recieved a Ekans!

    #org @4
    = [black_fr]Would you like to give a\nnickname to Ekans?

    #org @5
    = Please take care of\nEkans.

    #org @6
    = Are you taking good care\nof Ekans?

    Sorry for not using a link.
     
    Back
    Top