The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary ROM Hacking (https://www.pokecommunity.com/forumdisplay.php?f=284)
-   -   Script About variables of Fire Red (https://www.pokecommunity.com/showthread.php?t=383642)

Scarlet D. November 20th, 2016 3:56 PM

About variables of Fire Red
 
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!

Sefuree November 20th, 2016 10:56 PM

Can you post the script?

Scarlet D. November 21st, 2016 3:57 AM

Quote:

Originally Posted by TheRealOCD (Post 9493885)
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


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


Like our Facebook Page Follow us on Twitter © 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.