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 [FRLG] Double script (https://www.pokecommunity.com/showthread.php?t=456034)

Gustavs36 August 1st, 2021 1:40 PM

[FRLG] Double script
 
1 Attachment(s)
So, basically, i need to edit the first script of the game where prof Oak calls you and gets you to his lab and all, but because of the layout of the map, the scripted path is now wrong.

But when i try to change it, this happens:

https://www.pokecommunity.com/attachment.php?attachmentid=98033&stc=1&d=1627853863

And i've noticed that, the script is doubled, so after the original part plays, it repeats itself, does anyone know why this is happening?

Thanks :)

Asith August 1st, 2021 11:55 PM

By "try to change it" do you mean just add more #raw commands to the movement data block that was originally there? You can't do that with editing rom scripts. They already take up a set amount of space, and randomly extending them will overwrite other data causing bugs like your double applymovement.
You need to create new movement data in new free space using xse's dynamic offsets and point to that. If you don't know what that means, it's time to look up a scripting tutorial.
If that's not your problem, then try posting your script here so we can dissect it

Gustavs36 August 2nd, 2021 7:15 AM

Ohh, i see it, that's exactly what i was doing, i'm going to try fix it now.

Thanks for the help! :D


All times are GMT -8. The time now is 9:15 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.