The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other Script troubles

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old June 1st, 2016 (1:11 PM). Edited June 4th, 2016 by i0Bjhansen0.
i0Bjhansen0's Avatar
i0Bjhansen0 i0Bjhansen0 is offline
 
Join Date: Mar 2016
Age: 27
Gender: Male
Posts: 130
[SOLVED] Turns out changing the Unknown, Var Number and Var Value numbers fixed the problem. This can be marked Solved.

I'm working on a FireRed hack and I want Oak to upgrade the Pokedex before the player leaves Pallet Town after getting the Pokedex. I'm running into a problem with my script. It works up until after the lockall command (I believe, it could be the movements that are wrong). [EDIT] I can say for certain that the script is no longer the problem. I must be something else. I don't have any value in the Unknown, Var Number and Var Value boxes if that's the problem.

Notes are in <<<>>>
Spoiler:
'---------------
#org 0x71CF70
checkflag 0x201 <<< this flag is set when the script ends the first time>>>
if 0x1 goto 0x871CF84
checkflag 0x829
if 0x1 goto 0x871CF86
end

'---------------
#org 0x71CF84
end

'--------------- <<<this is where I'm having troubles>>>
#org 0x71CF86
lockall
clearflag 0x200 <<<this flag is set in the player's room to make the Oak sprite disappear>>>
applymovement 0x4 0x871D4A1 <<<this is supposed to make Oak (0x4 is his person event) go from the bottom of the screen to next to the player>>>
applymovement MOVE_PLAYER 0x871D4A9 <<<this is supposed to turn the player to Oak>>>
waitmovement 0x0
goto 0x871CFA1

'---------------
#org 0x71CFA1
msgbox 0x871D128 MSG_KEEPOPEN '"I thought I would upgrade your\nPo..."
closeonkeypress
msgbox 0x871D480 MSG_KEEPOPEN '"The Pokedex has been upgraded." <<<I'm not sure if this is how it should be. I can't tell cause I haven't gotten this far>>>
sound 0x54 <<<I want the message to show up, then the sound happen>>> <<<I'm not sure if this is the right sound but I want it to be the sound when an item is found>>>
checksound <<<then when the sound is over, the player can close the box>>>
closeonkeypress
special 0x16F
goto 0x871CFC0

'---------------
#org 0x71CFC0
applymovement 0x4 0x871D4AC <<<this is supposed to move Oak out of the screen>>>
waitmovement 0x0
setflag 0x200 <<<this is to make Oak disappear again>>>
setflag 0x201 <<<this is supposed to make the script not run again>>>
releaseall <<<I was told to just do release but I haven't gotten far enough to see a difference>>>
end


'---------
' Strings
'---------
#org 0x71D128
= I thought I would upgrade your\nPokedex before you leave.\pThere has been a change in the\nKanto Region as of late.\pIt would be best if you had the\nNational Pokedex before you\lactually needed it.

#org 0x71D480
= The Pokedex has been upgraded.


'-----------
' Movements
'-----------
#org 0x71D4A1 <<<Oak move to player>>>
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements

#org 0x71D4A9 <<<player face oak>>>
#raw 0x2D 'Face Down (Delayed)
#raw 0xFE 'End of Movements

#org 0x71D4AC <<<oak leaves>>>
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0xFE 'End of Movements


So help to get this working would mean a lot. I'm new to scripting.
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 9:08 AM.