• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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
    4
    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]?
     
  • 120
    Posts
    5
    Years
    • Seen Nov 2, 2023
    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