![]() |
Why does this script make my game freeze?
I'm a somewhat inexperienced scripter, and I'm working on a Fire Red hack (original, I know) and before you leave the first town, I want to have event tiles that will stop you from leaving the town if you haven't received a starter from the professor. When you get said starter, flag 1000 is triggered. The script that I have in my game looks good to me, but when you walk on the tile, your ROM will freeze. No message box will appear (but it should). I would be immensely grateful if someone could tell my why it's freezing, and even better, provide script that could get it to work. Thanks!
tile script (triggers when walked on): Spoiler:
(The guard who receives the exclaim movement has a standard talking script that works as it should, with no flags at all) All var values, var #s, unknowns, and person ID's are set to 0 (idk if this is relevant, but again, I'm inexperienced). Thanks! |
Okay, for one, script tiles should NOT check if something should happen with flags, you should do that with the var.
Example, you have a script that happens when 0x4772 (an example) is 0, at the end of the script, set the var to 1, or addvar it. I don't think 0x1000 is a good var to use btw.. |
Quote:
Quote:
Also, Karatekid552 posted a list of safe flags and variables (ie ones that won't break the game when you use them.) Flag 0x1000 goes into variable space and that can screw up your hack. |
Quote:
|
| All times are GMT -8. The time now is 2:26 AM. |
![]()
© 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.