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

[Script] XSE troubles

  • 6
    Posts
    3
    Years
    • Seen Oct 27, 2020
    Hi. I'm currently making a rom hack and for the script where the professor gives the starter pokemon xse won't let me compile it because it says line 7 is missing "#define". Here's the code. Please help soon.

    #dynamic 0x800000

    #org @start
    lock
    faceplayer
    msgbox @t1 0x5
    compare LASTRESULT 0x1
    if 0x1 goto @treecko
    msgbox t2 0x5
    compare LASTRESULT 0x1
    if 0x1 goto @torchic
    msgbox t3 0x6
    compare LASTRESULT 0x1
    if 0x1 goto @mudkip
    msgbox t4 0x6
    msgbox t5 0x7
    release
    end

    #org @treecko
    givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
    goto @complete

    #org @torchic
    givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
    goto @complete

    #org @mudkip
    givepokemon 0x7 0x5 0x0 0x0 0x0 0x0
    goto @complete

    #org @complete
    msgbox @t6 0x7
    release
    end

    #org @t6
    = [red_fr]Professor Birch[blue_fr]:Great Choice!

    #org @t5
    = [blue_fr]Professor Birch[black_fr]: Ask again if you want one.
    #org @t4
    = [black_fr]Professor Birch[red_fr]: Do you want Mudkip?

    #org @t3
    = [blue_fr]Professor Birch[green_fr]: Do you want Torchic?
    #org @t2
    = [black_fr]Professor Birch[red_fr]: Do you want Treecko?
    #org @t1
    = [red_fr]Professor Birch[black_fr]: I have three Pokemon for y\nou to choose from.
     
    Last edited:

    Dr. Seuss

    Will finish GS Chronicles, I swear!
  • 527
    Posts
    10
    Years
    All the msgbox after t2 are missing the @ symbol. You put it in the first msgbox but it's missing from the other ones. It should be "msgbox @t2 0x5"
     
    Back
    Top