The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Delete Sprite

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old May 13th, 2021 (4:25 PM).
Caio Eduardo Caio Eduardo is offline
 
Join Date: Apr 2021
Posts: 1
I need help!!!
I use some scripts in which the player steps and some cutscene happens. some characters are scattered on the screen, so with this script they appear in places, talk and then leave. so far so good, but when I re-enter a house with this event, the character that was not supposed to be there, still it is.
basically, the event occurs normal, until the end, where an npc is transported to a location isolated from the map. In the end, the event is inactive with a switch. But when I enter the house again, the npc is not in the isolated corner, but in the starting position!
Sorry for my bad english...
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old May 15th, 2021 (9:33 AM).
soupercell's Avatar
soupercell soupercell is offline
 
Join Date: Jun 2011
Location: California
Age: 25
Gender: Male
Nature: Calm
Posts: 215
you need to set a flag at the end of the script and set that sprite's person id to the flag you set.

From Sierra's XSE Scripting Tutorial:
Flags are very useful when you need an event to only occur once or if you want a person to disappear.
Let's say you set flag 0x200. If you want an overworld to disappear, we have to assign the set flag (in this example, 0x200) to the overworld's people ID in Advance-Map. I'll go into more detail on that later.
Many flags are used within the game already. If you plan on leaving scripts that are already in the ROM, you'll need to be more careful on what flags you use, because flags can only really be used once.
__________________
Creator of Radical Red
Twitter
Twitch
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 9:17 AM.