The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Help for a total newbie

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 March 26th, 2017 (12:45 AM).
Prete_Man Prete_Man is offline
 
Join Date: Mar 2017
Posts: 3
Salutations, my friends.
Recently, for the first time, I've been trying to make a Fire Red ROM hack, but I ran into a problem.
Basically, I wanted to make a script that forbids the player from advancing unless they've completed a certain event.
However, every time I try to run it, the game freezes.
This is the script:
Quote:
#dynamic 0x800000
#org @main
checkflag 0x201
if 0x1 goto @done
msgbox @msg 0x6
applymovement 0xFF @move
waitmovement 0x0
release
end
#org @done
end
#org @msg
= I should probably go to TONIO'S\nPIZZERIA...
#org @move
#raw 0x10
#raw 0xFE
Could anyone help me?
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old March 26th, 2017 (1:04 AM).
Turjo12's Avatar
Turjo12 Turjo12 is offline
The King
 
Join Date: Nov 2015
Location: South Asia
Gender: Male
Nature: Brave
Posts: 187
I You have to change Var Number or something like that,
Check some tutorials.
__________________
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old March 26th, 2017 (1:41 AM). Edited March 26th, 2017 by Kostas.
Kostas's Avatar
Kostas Kostas is offline
 
Join Date: Apr 2015
Location: Greece!
Gender: Male
Nature: Adamant
Posts: 1,279
I'm think the problem is that you haven't used the setvar command. Can you try this? Also, don't forget to put the number of the variable in this case 4011 to the "Var Number" of the script in A-map
Quote:
#dynamic 0x800000

#org @main
checkflag 0x201
if 0x0 goto @no
setvar 0x4011 0x1
end

#org @no
msgbox @nomon 0x6
applymovement 0xff @move
waitmovement 0x0
return

#org @nomon
= I should probably go to TONIO'S\nPIZZERIA...

#org @move
#raw 0x8
#raw 0xfe
__________________
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old March 26th, 2017 (1:47 AM).
Prete_Man Prete_Man is offline
 
Join Date: Mar 2017
Posts: 3
Yeah I think that's the problem. When I can I'll try what you said. I'll let you know.
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old March 26th, 2017 (2:24 AM).
Prete_Man Prete_Man is offline
 
Join Date: Mar 2017
Posts: 3
It worked! Thanks a lot.
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:17 AM.