![]() |
Script to not allow passage not working
I have a script I'm going to use to prevent the player from leaving the town without a pokemon, but will let them pass once they receive the starter pokemon (i'm using this in place of oak dragging the player to the lab and doing the whole choose a pokemon thing) but when i step on it, it just gives me a non-existent item then allows passage while i lack a pokemon. I have no idea why this happens and would like help
here's my original script Spoiler:
And here's the decompiled code Spoiler:
|
So for one thing you should have a 0xFE byte at the end of all movement strings, but also you should be using variables for script tiles rather than flags.
Have a look for karatekid's flags, vars and script tiles tutorial to see :). |
Karatekid552's flags, vars and script tiles tutorial is HERE, so you don't have to dig so far to find it.
|
| 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.