![]() |
[EM] Script (XSE) freezes game
So I am still desperate failing to find out what's wrong with my script for my Emerald based hack. It is supposed to activate, when you step on a certain script in the OW.
What I want the script to do is: First to check that the event hasnt happened yet and to make sure that a certain sprite is hidden until one has fought the rival in Rustboro City. Once that is done, stepping on the script shall make you (/the protagonist) notice (#raw 0x56) that a new person is on the map who wants to battle you. Screen fades black, you are slightly warped, screen turns normal, and the person appears and walks towards you. Blabla and Battle. After you win, the person gives you an item and walks away and disappears again (hidesprite 0x23). By experimenting, I could figure out that the script would hide the sprite when neither flag 0x23 nor 0xD3 are set. As it is supposed to do. Only when flag 0xD3 is activated, the according subscript freezes the game. The Script: Spoiler:
EDIT/Solved: I had to figure out that all my problems were mostly caused by a too great tile-distance of the script and the NPC. I assumed warping the player closer to the NPC would avoid that. It did not though. Fixing OW positions "fixed" the script. |
Maybe D3 is already being used by the game?
|
Quote:
I could eventually fix the problem. OP is edited. Still thank you. |
| All times are GMT -8. The time now is 9:14 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.