• 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] Issues editing Oak's Dialogue

  • 10
    Posts
    6
    Years
    • Seen Jun 22, 2023
    Hello there! I'm trying to edit Oaks dialogue so that he explains a new item after explaining the Pokedex. Upon compiling I am given error code 9 'subscript is out of range on line 159' (Underlined below) Here is the excerpt of code I changed:


    msgbox 0x818E612 MSG_KEEPOPEN '"Oak: You can't get detailed data\n..."
    additem 0x4 0x5
    loadpointer 0x0 0x818E6B3 '"[player] received five Poké Balls."
    giveitem2 0x4 0x5 0x101
    msgbox 0x818E6D0 MSG_KEEPOPEN '"When a wild Pokémon appears,\nit's..."
    setvar 0x8004 0x0
    setvar 0x8005 0x1
    special 0x173
    msgbox @hyper 0x6
    pause 0xA
    textcolor 0x3
    fanfare 0x13E
    preparemsg 0x1CE2500 '"[player] received the Hyper Band \nfro..."
    waitmsg
    waitfanfare
    additem 0x4 0x15B
    msgbox 0x818E784 MSG_KEEPOPEN '"To make a complete guide on all\nt..."

    If anybody could tell me the issue I'd love to know, thank you.
     
    Back
    Top