![]() |
XSE's "hidesprite" command is uh, not hiding the sprite
This is one of the simplest scripts imaginable, and I don't know why it isn't working. The sprite is the pokeball sprite used for every other "pickupable" item in the game. The player is supposed to activate it, the pokeball disappears, and then they get one of the event tickets, depending on which of the four items it is (eon ticket, mystic ticket, aurora ticket, or old sea map). The pokeball sprite should then stay disappeared if the player leaves the area.
What's happening is, when I activate the item, I do get the ticket, however the pokeball does not disappear from the ground. I can keep reactivating it and getting the item again and again. I have literally no clue what is causing this, as the script really is very simple and there are very few places for errors to be introduced. Here's the script for the Eon Ticket: Code:
First line is supposed to hide the sprite, you know, the way it does for literally every single item in the game except these ones for some reason. Second line gives the player one of whichever ticket it is. Third line is the flag to activate that particular ticket so that it is a selectable option when you try to sail from the boat lady. Fourth line is an unused flag (my scripts use unused flags 0x20 to 0x23 for the four tickets) that is set so that that item does not reappear when you reenter the area. (Fifth and sixth lines are release and end, which should require no explanation.) Again, my issue is not that the item reappears after disappearing; I know how to set a flag so that it stays gone. My issue is that the item never disappears the in the first place. Does anyone have any ideas why the hell this incredibly simple command, which I have used successfully in the past, is just flat out not working here? |
Quote:
Hmm, think the issue here is the hidesprite command. What is the person event no. on Advance Map? If it's 12, then the hidesprite command should read hidesprite 0xC (since all numbers in AM is read as a hex rather than decimal. Try this. If not, it could potentially be the flag you're using. I find using flags above 0x200 as a safe bet. Hope this helps! |
The hidesprite command only hides the sprites for as long as the script is active, after you start walking again the sprite will reappear. You'll need to assign a flag to the item by setting a flag in the 'person id' in advancemap to keep it hidden. (Look at what the original games use as flags to be safe). If there's an item flag attached to the sprite, the 'giveitem' command will automatically hide the sprite and set the flag.
Hope this helps... |
Quote:
Code:
I'm quite new to this, so I don't even know how much I don't know about the intricacies of hacking, if you know what I mean. |
Quote:
|
Quote:
Think we all have a lot to learn no matter how long you've been doing this you always find something new :) |
| 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.