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

help with giving a pokemon using xse

  • 2
    Posts
    5
    Years
    • Seen Aug 16, 2020
    i need help with giving pokemon. every time i use the give pokemon command it doesnt work even though everything else in the script does

    here is the script.

    #dynamic 0x800000

    #org @start
    lock
    checkflag 0x204
    if 0x1 goto @alreadyChoseAPokemon
    checkflag 0x201
    if 0x1 goto @alreadyChoseAPokemon
    showpokepic 0x30A 0xA 0x3
    pause 0x30
    msgbox @t1 0x5
    compare 0x800D 0x1
    if 0x1 goto @yes
    hidepokepic
    release
    end

    #org @yes
    hidepokepic
    hidesprite 0x4
    fanfare 0x13E
    givepokemon 0x30A 0x5 0xD 0x0 0x0 0x0
    waitfanfare
    setflag 0x202
    release
    end

    #org @alreadyChoseAPokemon
    msgbox @t2 0x6
    release
    end

    #org @t2
    = [black_fr]You can not take another!

    #org @t1
    = [black_fr]Choose [green_fr]Popplio[black_fr]?
     
    The reason as to why the givepokemon command isn't working is because you used 0x30A as the pokemon species number in hex which is 778 in decimal and there are only 386 pokemon in gen 3 games. If you want to give the player a pikachu for example, use 0x19 as pikachu is number 25 in the pokedex, and number 25 (decimal) is number 19 in hexadeximal.
    In conclusion, convert decimal numbers to hexadecimal.
     
    Back
    Top