• 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!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • Red, Hilda, Paxton, or Kellyn - 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.

[Script] XSE troubles

  • 6
    Posts
    4
    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:
    Back
    Top