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