- 4
- Posts
- 3
- Years
- Seen Jul 20, 2023
Hi guys, i'm a little in trouble with a script.
I wanted to expand the number of Tutor Moves, and now i've got 121 (i've repointed the Moves Table, Compatibility Table and the two list of the two Old Ladies at the Battle Frontier, through HMA).
I've also repointed and expanded the Multichoice Scrolling Table and the two Old Ladies Description Table (the first multichoice has 42 move names + Exit, so this filled 3 rows (3 indexes), anche the second mutichoice has 79 move names + Exit, so this filled 5 rows (5 indexes)).
Up to here everything works.
I read here https://www.pokecommunity.com/posts/9171350/ that i have to repoint a Jumptable at 0x0813A168 and to change the total amount of inserted routines. Now i have this (See Jumptable).
After modifying some parameters of the routine, this is what i got as the 0xD pointer:
--------------------
06 20 18 81 2B 20 58 81 11 20 98 81 01 20 D8 81 09 20 18 82 0C 20 58 82 00 20 98 82 DC 84 10 BC 01 BC 00 47
--------------------
I wrote a simple script copied from the Old Lady's original script (left), using 0xD. This is the script:
--------------------
#freespace 0xFF
#dynamic 0xE5D200
#org @start
lock
faceplayer
msgbox @1 MSG_KEEPOPEN
preparemsg @2
waitmsg
setvar 0x8004 0xD
special 0x1BE
waitstate
special 0x1DB
msgbox @3 MSG_KEEPOPEN
release
end
#org @1
= Hi!
#org @2
= Looke here!
#org @3
= Good bye!
--------------------
But when i try to speak to her, the final the is buggy (See Screen4). What's wrong? And why the description box doesn't pop up?
I wanted to expand the number of Tutor Moves, and now i've got 121 (i've repointed the Moves Table, Compatibility Table and the two list of the two Old Ladies at the Battle Frontier, through HMA).
I've also repointed and expanded the Multichoice Scrolling Table and the two Old Ladies Description Table (the first multichoice has 42 move names + Exit, so this filled 3 rows (3 indexes), anche the second mutichoice has 79 move names + Exit, so this filled 5 rows (5 indexes)).
Up to here everything works.
I read here https://www.pokecommunity.com/posts/9171350/ that i have to repoint a Jumptable at 0x0813A168 and to change the total amount of inserted routines. Now i have this (See Jumptable).
After modifying some parameters of the routine, this is what i got as the 0xD pointer:
--------------------
06 20 18 81 2B 20 58 81 11 20 98 81 01 20 D8 81 09 20 18 82 0C 20 58 82 00 20 98 82 DC 84 10 BC 01 BC 00 47
--------------------
I wrote a simple script copied from the Old Lady's original script (left), using 0xD. This is the script:
--------------------
#freespace 0xFF
#dynamic 0xE5D200
#org @start
lock
faceplayer
msgbox @1 MSG_KEEPOPEN
preparemsg @2
waitmsg
setvar 0x8004 0xD
special 0x1BE
waitstate
special 0x1DB
msgbox @3 MSG_KEEPOPEN
release
end
#org @1
= Hi!
#org @2
= Looke here!
#org @3
= Good bye!
--------------------
But when i try to speak to her, the final the is buggy (See Screen4). What's wrong? And why the description box doesn't pop up?