The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script About variables of Fire Red

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 November 20th, 2016 (3:56 PM).
Scarlet D.'s Avatar
Scarlet D. Scarlet D. is offline
The Eternal
 
Join Date: Dec 2015
Location: Greece
Gender: Male
Nature: Adamant
Posts: 66
Hello people

I've been having a really hard problem recently with my ROM's variables.
People kept saying that i can freely put variables from 0x4011 to 0x40FF.

Well, i did this to my scripts and this happens:

When I step at the script tile again after the event is finished it DOESN'T reactivate (as expected since i've put 0x1 to it),
but. when i change route or enter a house, when i step at the script tile once more THE EVENT GETS ACTIVATED!

The most insane of all things is that i can put variables from 6000 till 6020's and it works properly! (after 6020 the events gets messed up)

Please help, it is driving me crazy!
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old November 20th, 2016 (10:56 PM).
Sefuree's Avatar
Sefuree Sefuree is offline
Canada Goose
 
Join Date: May 2014
Location: Canada
Age: 22
Gender: Male
Nature: Adamant
Posts: 3,183
Can you post the script?
__________________

:)
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old November 21st, 2016 (3:57 AM).
Scarlet D.'s Avatar
Scarlet D. Scarlet D. is offline
The Eternal
 
Join Date: Dec 2015
Location: Greece
Gender: Male
Nature: Adamant
Posts: 66
Quote:
Originally Posted by TheRealOCD View Post
Can you post the script?
sure, i will give you a simple one

Code:
'---------------
#dynamic 0x80FB39
#org @start 
lock 
textcolor 0x0 
checkgender
compare 0x800D 0x0
if 0x1 goto @boy
compare 0x800D 0x1
if 0x1 goto @girl
end

#org @boy
playsong 0x155 0x0
applymovement 2 @moverival 
waitmovement 2 
msgbox @talkrival 0x6  
closeonkeypress 
applymovement 2 @moverival2 
applymovement 0xFF @movehero 
waitmovement 0xFF 
applymovement 6 @moveINFECTED 
trainerbattle 0x1 0x00E 0x0 @begin @defeat @later 

#org @later 
applymovement 2 @moverival3
waitmovement 2  
msgbox @talkrival2 0x6 
closeonkeypress 
applymovement 0xFF @movehero2 
waitmovement 0xFF 
msgbox @talkhero2 0x6 
closeonkeypress 
applymovement 2 @moverival3 
waitmovement 2 
msgbox @talkrival3 0x6 
closeonkeypress
applymovement 2 @leaverival 
waitmovement 2
setflag 0x25B 
hidesprite 2 
setvar 0x4011 0x1
release 
end 

#org @girl 
playsong 0x155 0x0
applymovement 1 @moverival 
waitmovement 1 
msgbox @talkrival4 0x6  
closeonkeypress 
applymovement 1 @moverival2 
applymovement 0xFF @movehero 
waitmovement 0xFF 
applymovement 6 @moveINFECTED  
trainerbattle 0x1 0x00E 0x0 @begin @defeat @later2 

#org @later2 
applymovement 1 @moverival3
waitmovement 1
msgbox @talkrival5 0x6 
closeonkeypress
applymovement 0xFF @movehero2 
waitmovement 0xFF
msgbox @talkhero2 0x6 
applymovement 1 @moverival3 
waitmovement 1
msgbox @talkrival6 0x6 
closeonkeypress
applymovement 1 @leaverival
waitmovement 1
setflag 0x25B
hidesprite 1
setvar 0x4011 0x1
release 
end 

#org @moverival 
#raw 0x4A
#raw 0x62
#raw 0xFE

#org @moverival2 
#raw 0x3 
#raw 0xFE

#org @movehero 
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0xFE

#org @moveINFECTED 
#raw 0x4A 
#raw 0xFE

#org @moverival3 
#raw 0x4A 
#raw 0xFE

#org @movehero2
#raw 0x0 
#raw 0x21 
#raw 0xFE

#org @leaverival 
#raw 0x0
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0xFE
the very same script was working great at 600C variable but as all other scripts i put at 4011+ it just saves the 0x1 value until i change route and return
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
Thread Tools

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:18 AM.