![]() |
Delete Sprite
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... |
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. |
| All times are GMT -8. The time now is 9:17 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.