Quote:
Originally Posted by PurpleOrange
try changing waitmovement 0xFF, waitmovement 0x1, and waitmovement 0x2 all to waitmovement 0x0 and use a waitstate after both specials, also as far as i know, there is no such special as 0x800, and 0x9C doesn't seem to be documented as doing anything, what are you trying to do with those specials?
|
Alright I took your advice and implemented it. While it didn't fully complete my problem, I'm like 90% closer, so thanks very much. The waitmovement changes didn't effect it whatsoever, but the wait states made the game stop freezing and the event actually happened! (the battle at least) Special 0x800 is actually a setflag for access to the pokemon menu (forgot to mention I'm editing ruby version) so it's not special 0x800, it's setflag 0x800. Special 0x9C does exist though, it is the special for choosing a starter pokemon in Ruby. Making a few edits with your help and a little research, everything works but two things:
1) The script that is being "skipped" still gets skipped, the npc doesn't move or show either times it's supposed to.
2) You can do the event again, and it's supposed to never happen again after you do it.
Below is another video showing the problem and my current script. I hovered my mouse twice where the npc should be, in case you're wondering why I did that. I sped the battle up as well, as it was superfluous to show it off. And I also showcased the event happening twice when it should only happen once and never again. Thanks for the help, closer than ever.
Video showcasing the problem:
https://www.youtube.com/watch?v=GNkPysNPcUc
Script:
'---------------
#org 0x801CC6
msgbox 0x8801AD6 MSG_NORMAL '"???: What the hell, get outta here..."
playsong 0x1D3 0x0
applymovement 0x1 0x8801C99
waitmovement 0x0
applymovement MOVE_PLAYER 0x8801CA4
waitmovement 0x0
applymovement 0x2 0x8801CA7
waitmovement 0x0
applymovement 0x2 0x8801CB3
waitmovement 0x0
msgbox 0x8801B01 MSG_NORMAL '"???: Oh no! Kid take one of these\..."
msgbox 0x8801B42 MSG_NORMAL '"???: Show no mercy Poochyena!"
setflag 0x800
special 0x9C
waitstate
msgbox 0x8801B61 MSG_NORMAL '"???: Um. Um.. Damn..."
applymovement 0x1 0x8801CBB
waitmovement 0x0
hidesprite 0x1
setvar 0x8000 0x1
fadesong 0x1BB
faceplayer
msgbox 0x8801B79 MSG_NORMAL '"???: You showed great skill in tha..."
release
end
'---------
' Strings
'---------
#org 0x801AD6
= ???: What the hell, get outta here runt!
#org 0x801B01
= ???: Oh no! Kid take one of these\nPokémon to protect yourself!
#org 0x801B42
= ???: Show no mercy Poochyena!
#org 0x801B61
= ???: Um. Um.. Damn...
#org 0x801B79
= ???: You showed great skill in that\nbattle kid.\pSkyla: Also I'm professor Skyla of this\nregion, the Guar region.\pSkyla: You can keep that Pokémon but\ndon't go up the mountain.\pSkyla: I need to investigate something\nbut it's too dangerous for kids.\pSkyla: Cya, around kid.
'-----------
' Movements
'-----------
#org 0x801C99
#raw 0x17 'Slide Left
#raw 0x17 'Slide Left
#raw 0x17 'Slide Left
#raw 0x17 'Slide Left
#raw 0x17 'Slide Left
#raw 0x17 'Slide Left
#raw 0x17 'Slide Left
#raw 0x17 'Slide Left
#raw 0x17 'Slide Left
#raw 0xFE 'End of Movements
#org 0x801CA4
#raw 0x49 'Jump in Place (Facing Right)
#raw 0xFE 'End of Movements
#org 0x801CA7
#raw 0x16 'Slide Up
#raw 0x16 'Slide Up
#raw 0x16 'Slide Up
#raw 0x16 'Slide Up
#raw 0x16 'Slide Up
#raw 0x16 'Slide Up
#raw 0x16 'Slide Up
#raw 0x16 'Slide Up
#raw 0x16 'Slide Up
#raw 0x16 'Slide Up
#raw 0xFE 'End of Movements
#org 0x801CB3
#raw 0x18 'Slide Right
#raw 0x18 'Slide Right
#raw 0x18 'Slide Right
#raw 0x18 'Slide Right
#raw 0x18 'Slide Right
#raw 0x18 'Slide Right
#raw 0xFE 'End of Movements
#org 0x801CBB
#raw 0x18 'Slide Right
#raw 0x18 'Slide Right
#raw 0x18 'Slide Right
#raw 0x18 'Slide Right
#raw 0x18 'Slide Right
#raw 0x18 'Slide Right
#raw 0x18 'Slide Right
#raw 0x18 'Slide Right
#raw 0x18 'Slide Right
#raw 0x18 'Slide Right
#raw 0xFE 'End of Movements