- 8
- Posts
- 6
- Years
- Seen May 25, 2020
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:
The script for the other tickets are identically structured, just with the person id, item id, and flags set to the appropriate values.
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?
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:
#org 0x854386
hidesprite 0x12
giveitem 0x113 0x1 MSG_OBTAIN
setflag 0x8B3
setflag 0x23
release
end
The script for the other tickets are identically structured, just with the person id, item id, and flags set to the appropriate values.
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?
Last edited: